PHP 4.0 Bug #3858: segfault in eval and twice func_get_arg()
| From: | wico at cnh dot nl | Date: | Fri, 17 Mar 2000 14:19:19 +0000 |
| Subject: | PHP 4.0 Bug #3858: segfault in eval and twice func_get_arg() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16942@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux
PHP version: 4.0 Latest CVS (17/03/2000)
PHP Bug Type: Reproduceable crash
Bug description: segfault in eval and twice func_get_arg()
Hiya,
test case:
<?
class email {
function email ($a, $b, $c) {
echo "plop $a, $b, $c";
}
}
function Test() {
eval ("\$MAKE_FUNCTION = NEW email (func_get_arg(0));");
}
function Test2() {
eval ("\$MAKE_FUNCTION = NEW email (func_get_arg(0), func_get_arg(1));");
}
test(1); // works
// test2(1,2); // crash
?>