Edit report at http://bugs.php.net/bug.php?id=52552&edit=1

 ID:                 52552
 Updated by:         johan...@php.net
 Reported by:        andree at froglogic dot com
 Summary:            create_function on stdClass Object
-Status:             Open
+Status:             Bogus
 Type:               Bug
 Package:            Class/Object related
 Operating System:   linux
 PHP Version:        5.2.14
 Block user comment: N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

PHP differentiates between properties and methods.


Previous Comments:
------------------------------------------------------------------------
[2010-08-06 10:19:06] andree at froglogic dot com

Description:
------------
The create_function doesn't work on stdClass Object's like the below
source.







Test script:
---------------
$foo = new stdClass;

$foo->bar = create_function('','echo "bar";');

$foo->bar(); // doesn't work 

Expected result:
----------------
The expected result ist, to get the return value of the attached
function.



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



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52552&edit=1

Reply via email to