PHP 4.0 Bug #3858 Updated: segfault in eval and twice func_get_arg()
| From: | Bug Database | Date: | Sun, 19 Mar 2000 12:02:43 +0000 |
| Subject: | PHP 4.0 Bug #3858 Updated: segfault in eval and twice func_get_arg() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17018@lists.php.net to get a copy of this message | ||
ID: 3858
User Update by: wico@cnh.nl
Old-Status: Closed
Status: Open
Bug Type: Reproduceable crash
Description: segfault in eval and twice func_get_arg()
Hiya
Even thought it shouldn't be used this way (wich i also want to argue) the it shouldn't
segfault
Greetz,
Wico
<OLD>
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
?>
</OLD>
Full Bug description available at: http://bugs.php.net/version4/?id=3858