#29904 [Opn->Fbk]: php crash ( object creation + autoload )
| From: | tony2001@php.net | Date: | Tue, 31 Aug 2004 05:06:39 +0000 |
| Subject: | #29904 [Opn->Fbk]: php crash ( object creation + autoload ) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65487@lists.php.net to get a copy of this message | ||
ID: 29904
Updated by: tony2001@php.net
Reported By: segv at sayclub dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 5.0.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Cannot reproduce. Please try it with the latest snapshot.
Previous Comments:
------------------------------------------------------------------------
[2004-08-31 06:33:57] segv at sayclub dot com
Description:
------------
It seems that php crashes when creating object with arguments of
autoloaded class.
Reproduce code:
---------------
test.inc --------------------
<?
class B {
function func() {
return true;
}
}
?>
test.php --------------------
<?
function __autoload($className) {
include "test.inc";
}
class A {
function __construct ($a) { }
}
$a = new A(B::func());
var_dump($a)
?>
Actual result:
--------------
% php test.php
segment fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29904&edit=1