#24485 [Com]: $a = $b; become $a=&$b; when I use a function
| From: | php dot net at nanonanonano dot net | Date: | Tue, 23 Aug 2005 07:39:58 +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-83892@lists.php.net to get a copy of this message | ||
ID: 24485
Comment by: php dot net at nanonanonano dot net
Reported By: bugs dot php dot net at public dot salagir dot com
Status: Feedback
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5CVS, 4CVS (2005-06-07)
Assigned To: derick
New Comment:
To start with, this bug is not fixed in php4-STABLE-200508230645.
This bug has already been marked as fixed in PHP5, so asking us to run
a test case against the PHP5 CVS snapshot isn't really that sensible,
is it?
BTW making a new "does it work in the latest snapshot" comment each
time we say "no it's not fixed yet", makes it look like you are hoping
to fix this bug by accident rather than deliberately set out to fix it.
I find it hard to believe you would be actually doing that, but it's
certainly what it looks like from this end when you are obviously not
even running the really simple test case provided by the original
submitter.
Can we most politely ask you to use the really simple test case that
provided here to test your fixes? And when you think you've actually
solved it, then ask if we think you've solved it too. Most of us lack
either the time or ability to keep testing CVS snapshots to see if you
have fixed it yet; it would be so much easier for everyone if you guys
tested it yourselves when you already have the latest installed on your
machines and the test case is this simple.
Previous Comments:
------------------------------------------------------------------------
[2005-08-22 01:09:17] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-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.
------------------------------------------------------------------------
[2005-02-03 21:16:08] ericvanblokland at gmail dot com
Ain't it time to think about a fix? (Reproduced with 4.3.10 on fedora
core 2 in debug-mode)
The references created due to this bug, might be the cause my script
keeps segfaulting.
About this I've posted a report before, and will post another in the
near future. So I won't mention anything about that hear just yet.
------------------------------------------------------------------------
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