Anyone experienced this bug? (FreeBSD PHP4.4)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Anyone experienced this bug? (FreeBSD PHP4.4)

Post by timvw »

Ok, i'm experiencing a weird bug...

Code: Select all

<?php

ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);

$array = array();
$array[] = array('name' => 'row1', 'value' => '1');
$array[] = array('name' => 'row2', 'value' => '3');
$array[] = array('name' => 'row3', 'value' => '2');

foreach($array as $row)
{
  print_r($row);
  echo "<br>";
}
?>
Expected Output (I can get this with php4.4/linux and php5.5/windows)

Code: Select all

Array ( &#1111;name] =&amp;gt; row1 &#1111;value] =&amp;gt; 1 )
Array ( &#1111;name] =&amp;gt; row2 &#1111;value] =&amp;gt; 3 )
Array ( &#1111;name] =&amp;gt; row3 &#1111;value] =&amp;gt; 2 )
Actual Output:

Code: Select all

Array ( &#1111;0] =&amp;gt; Array ( &#1111;name] =&amp;gt; row1 &#1111;value] =&amp;gt; 1 ) &#1111;1] =&amp;gt; 0 )
Array ( &#1111;0] =&amp;gt; Array ( &#1111;name] =&amp;gt; row2 &#1111;value] =&amp;gt; 3 ) &#1111;1] =&amp;gt; 1 )
Array ( &#1111;0] =&amp;gt; Array ( &#1111;name] =&amp;gt; row3 &#1111;value] =&amp;gt; 2 ) &#1111;1] =&amp;gt; 2 )
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

But what version is the bug appearing on?

Edit - Ah, my mistake, it's in the post title.
Last edited by Ambush Commander on Thu Jul 28, 2005 9:26 pm, edited 1 time in total.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Oh, forgot to mention it in my post (was in the topic though)


FreeBSD/Apache1.3/PHP4.4.0
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

On a side note here, I tried to install FreeBSD today and yesterday. However I'm completely lost when X server starts and I want to get into the KDE. Someone told me I have to edit .xinitrc, but I'm a n00b to the whole unix jumble and was wondering if you could kindly point me towards a link that would show how to do this, and also something with commands and what they do.

I tried the FreeBSD handbook, but it doesn't have any documentation on using KDE or GNome.

PS: I'm growing to really despise windows :evil:
Post Reply