|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-10 06:42 UTC] andrew@php.net
[2003-06-09 02:40 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 21:00:01 2025 UTC |
Try this, it simply let's my PHP crash: class foo { public $newfunc; public function __construct() { $this->newfunc = create_function('$a,$b','print "ln($a) + ln($b) = ".log($a * $b);'); call_user_func(array($this, $this->newfunc), 1, 2); //$this->$newfunc(1, 2); } } $f = new foo(); Ok, ok - this is really, well, weird code, however... PHP: PHP Version 5.0.0-dev System Windows NT localhost 5.1 build 2600 Build Date Jan 26 2003 16:10:39 Server API CGI/FastCGI Virtual Directory Support enabled Configuration File (php.ini) Path E:\php\php.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 90021012 Debug Build no Thread Safety enabled Registered PHP Streams php, http, ftp, compress.zlib Zend Engine v2.0.0-dev,