Bug #70555 [Opn->Csd]: fun_get_arg() on unsetted vars return UNKNOW

From: Date: Wed, 23 Sep 2015 02:06:18 +0000
Subject: Bug #70555 [Opn->Csd]: fun_get_arg() on unsetted vars return UNKNOW
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196172@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70555&edit=1 ID: 70555 Updated by: laruence@php.net Reported by: laruence@php.net Summary: fun_get_arg() on unsetted vars return UNKNOW -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 7.0.0RC3 Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=a9636ff5a254e0e054b55d328d6e370f34d71b0a Log: Fixed bug #70555 (fun_get_arg() on unsetted vars return UNKNOW) Previous Comments: ------------------------------------------------------------------------ [2015-09-23 01:59:29] laruence@php.net Description: ------------ see test script below: Test script: --------------- <?php function a($a) { unset($a); var_dump(func_get_arg(0)); } a("1st"); ?> Expected result: ---------------- NULL or "1st" Actual result: -------------- UNKNOWN:0 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70555&edit=1

« previous php.bugs (#196172) next »