#33054 [Opn->Csd]: call_user_func + autoloader

From: Date: Wed, 18 May 2005 12:01:08 +0000
Subject: #33054 [Opn->Csd]: call_user_func + autoloader
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79135@lists.php.net to get a copy of this message
ID: 33054 User updated by: mateusz at oksinski dot com Reported By: mateusz at oksinski dot com -Status: Open +Status: Closed Bug Type: Reproducible crash Operating System: OpenBSD 3.6, Windows XP PHP Version: 5.0.4 New Comment: It isn't as simple as I wrote in an example code. I'll try to put some more code in the future. Previous Comments: ------------------------------------------------------------------------ [2005-05-18 13:33:24] mateusz at oksinski dot com Description: ------------ PHP produces a coredump on unix/linux systems or crashes on windows xp after trying to execute a method using call_user_func on a class that should have been loaded using autoload. Reproduce code: --------------- <?php //file OneClass.php class OneClass { function paint() { return 'Class one'; } } ?> <?php //file mainFile.php echo call_user_func(array('OneClass','paint')); ?> Expected result: ---------------- returns string 'Class one' Actual result: -------------- produces coredump ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33054&edit=1

« previous php.bugs (#79135) next »