#24485 [Com]: $a = $b; become $a=&$b; when I use a function

From: Date: Tue, 09 Aug 2005 03:48:03 +0000
Subject: #24485 [Com]: $a = $b; become $a=&$b; when I use a function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83214@lists.php.net to get a copy of this message
 ID:               24485
 Comment by:       php dot net at nanonanonano dot net
 Reported By:      gomez at efrei dot fr
 Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: *
 PHP Version:      5CVS, 4CVS (2005-06-07)
 Assigned To:      derick
 New Comment:

This bug is still present in PHP 4.4.0 (Debian package 4.4.0-1). Thanks
for trying, guys, but your latest references fixes don't fix this
problem (nor are any of the E_NOTICE messages that are threatened for
interesting use of references emitted).

The simple test case included by the original submitter still fails.

This one's still open...


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

[2005-06-15 01:00:05] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2005-06-07 15:51:56] derick@php.net

Please try using this CVS snapshot:

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



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

[2005-03-24 21:48:33] sniper@php.net

For Derick, see also bug #32261 (same issue?)




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

[2005-02-03 23:18:38] ericvanblokland at gmail dot com

Where do you live? If it's anywhere near here I'll buy you a beer (or
two)!! 

I'm working on a huge project, with extremely large and complex object
constructions, and I have been fighting against segmentation faults for
weeks now which is a mayor setback as the deadline is comming closer.
I'm still trying to narrow down the cause of these problems but it
seems that some construction of circular references (That might exist
as a result of this bug) causes memory leaks and crashes php on simple
variable assignments. To make me more desperate, after installing the
latest rpm in debug-mode memory leaks were reported once and never
after and de segmentation faults disappeared. Using that same rpm
without debug mode resulted in the same segaults.

I've posted this before http://bugs.php.net/bug.php?id=31624 but that
bug-report got broken and I've been investigating the cause more before
reposting. (I reproduced my problem there with the latest CVS of that
time) 

However, as this bug might be causing the exceptional conditions that
causes my segfaults (Copying, a complex, reference-rich object to
another location in a session, resulting in another reference), I will
wait looking into that any further for now. I can only pray it fixes
it.

Sorry for the long story, but as it might be related I feld the need to
post it here.

Once more, thanks a lot!

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

[2005-02-03 21:59:04] derick@php.net

This should NOT be a problem in PHP - but it is one in PHP 4. I've seen
this too and have a patch almost ready that backports the fixes done in
PHP 5.

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

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/24485

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


Thread (27 messages)

« previous php.bugs (#83214) next »