sniper Fri Nov 28 21:29:05 2003 EDT
Added files: (Branch: PHP_4_3)
/php-src/tests/lang bug24926.phpt
Log:
MFH
Index: php-src/tests/lang/bug24926.phpt
+++ php-src/tests/lang/bug24926.phpt
--TEST--
Bug #24926 (lambda function (create_function()) cannot be stored in a class property)
--FILE--
<?php
error_reporting (E_ALL);
class foo {
public $functions = array();
function foo()
{
$function = create_function('', 'return "FOO\n";');
print($function());
$this->functions['test'] = $function;
print($this->functions['test']()); // werkt al niet meer
}
}
$a = new foo ();
?>
--EXPECT--
FOO
FOO
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php