ID:               17959
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pkeshish at yahoo dot com
-Status:           Analyzed
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: linux
 PHP Version:      4CVS-20021218(STABLE)
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

It really doesn't work as expected. Documented with this example:

<?php
$top = array(
    'A' => array(),
    'B' => array(
        'B_b' => array(),
    ),
);

$top['A']['parent'] = &$top;
$top['B']['parent'] = &$top;
$top['B']['B_b']['data'] = 'test';
print_r($top['A']['parent']['B']['B_b']); // array()
?>



Previous Comments:
------------------------------------------------------------------------

[2002-12-21 15:08:50] [EMAIL PROTECTED]

Reclassification & version update

------------------------------------------------------------------------

[2002-12-21 11:03:30] [EMAIL PROTECTED]

Related to bug #20993(http://bugs.php.net/20993)


------------------------------------------------------------------------

[2002-12-19 12:12:56] pkeshish at yahoo dot com

I grabbed Apache/1.3.27 built and installed it.

Next I grabbed php4-STABLE-200212182230 built and
installed it.

The same test-case presented in this bug report failed.

I also grabbed php4-200212191630 a few minutes ago
built and installed it.

Again, the very same test-case in this bug report failed.

--patrick

------------------------------------------------------------------------

[2002-12-07 01:46:07] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

Could you confirm that the problem still exists in latest CVS and if it
does ,please provide a SMALL (10 or so) line script that could be used
to replicate the problem.

------------------------------------------------------------------------

[2002-11-27 22:57:56] mikemc-phpbug at contactdesigns dot com

I have experienced similar problems with PHP on Linux 2.4.x.  It only
seems to occur in very weird circumstances where you have a reference
pointing (yes I know references are not pointers) to an array element. 
My only test cases are much larger that those presented by
"[EMAIL PROTECTED]" as they involve production code.  The one piece of
information I can offer which may be of some use is that in my case, the
problem can be eliminated by removing an uneeded "global" statement (the
reference was already in scope).  I realize that sounds absurd, but I
have a case where "global" actually breaks the reference.  When I
comment out the global statement, the reference doesn't get wiped out. 
I know the reference is global because it was created in $GLOBALS.  I
know this seems strange, but I can var_dump it before and after and the
only thing that changes is me commenting out the global statement.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17959

-- 
Edit this bug report at http://bugs.php.net/?id=17959&edit=1

Reply via email to