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

From: Date: Wed, 18 May 2005 13:46:20 +0000
Subject: #33054 [Csd->Fbk]: call_user_func + autoloader
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79142@lists.php.net to get a copy of this message
 ID:               33054
 Updated by:       tony2001@php.net
 Reported By:      mateusz at oksinski dot com
-Status:           Closed
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: OpenBSD 3.6, Windows XP
 PHP Version:      5.0.4


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

[2005-05-18 14:01:06] mateusz at oksinski dot com

It isn't as simple as I wrote in an example code. I'll try to put some
more code in the future.

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

[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


Thread (2 messages)

« previous php.bugs (#79142) next »