#31106 [Csd]: 4.3.10 - crashes with overloaded objects
| From: | alan_k@php.net | Date: | Fri, 24 Dec 2004 06:29:04 +0000 |
| Subject: | #31106 [Csd]: 4.3.10 - crashes with overloaded objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-71023@lists.php.net to get a copy of this message | ||
ID: 31106
Updated by: alan_k@php.net
Reported By: alan at akbkhome dot com
Status: Closed
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 4.3.10
Assigned To: stas
New Comment:
Yeap - confirmed - this is fixed
Previous Comments:
------------------------------------------------------------------------
[2004-12-21 11:38:53] stas@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Thanks for the test case. I believe I have fixed it.
------------------------------------------------------------------------
[2004-12-18 03:10:05] alan_k@php.net
nope - it affects cgi/cli/apache/apache2 all the same - segfault..
'connection lost' is the end user experience of the apache process
segfaulting.
------------------------------------------------------------------------
[2004-12-17 17:58:06] alan at akbkhome dot com
nice simple test case .. - causes segfault
<?php
class DBO {
function factory() {
$x = new DBO;
return $x;
}
var $x;
function w($s) {
$this->x = $s;
}
function __call($a,$b,&$c) {
echo "$a";
return FALSE;
}
}
overload('DBO');
$a = DBO::factory();
$a->w('test');
$a->bbb = 0;
------------------------------------------------------------------------
[2004-12-17 13:00:49] alan_k@php.net
I'll try and get a test case done over the weekend..
should be quite simple - create a overloaded object (with __call) - and
assign some vars's then set it so something else.. (based on a rough
guess)..
The real code is a bit to complex for a simple test case - but it broke
both my devel servers. ;)
------------------------------------------------------------------------
[2004-12-17 11:23:05] stas@php.net
Can you provide some example of the code that crashes? Of course I'd
prefer the code that I could run, so that I can check what's the
problem.
Removing unlock won't do good - it would just cause a memory leak.
------------------------------------------------------------------------
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/31106
--
Edit this bug report at http://bugs.php.net/?id=31106&edit=1