Page 1 of 1

Anyone experienced this bug? (FreeBSD PHP4.4)

Posted: Thu Jul 28, 2005 8:35 pm
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 )

Posted: Thu Jul 28, 2005 9:17 pm
by Ambush Commander
But what version is the bug appearing on?

Edit - Ah, my mistake, it's in the post title.

Posted: Thu Jul 28, 2005 9:23 pm
by timvw
Oh, forgot to mention it in my post (was in the topic though)


FreeBSD/Apache1.3/PHP4.4.0

Posted: Fri Jul 29, 2005 1:41 am
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: