php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70555 fun_get_arg() on unsetted vars return UNKNOW
Submitted: 2015-09-23 01:59 UTC Modified: -
From: laruence@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.0.0RC3 OS:
Private report: No CVE-ID: None
 [2015-09-23 01:59 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-23 02:06 UTC] laruence@php.net
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)
 [2015-09-23 02:06 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2015-09-29 13:10 UTC] ab@php.net
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)
 [2016-07-20 11:36 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC