Bug #71747 [Opn]: php --rf assert on php7 erronously returns function description
| From: | nino dot skopac at gmail dot com | Date: | Tue, 08 Mar 2016 20:42:44 +0000 |
| Subject: | Bug #71747 [Opn]: php --rf assert on php7 erronously returns function description | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199673@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71747&edit=1
ID: 71747
User updated by: nino dot skopac at gmail dot com
Reported by: nino dot skopac at gmail dot com
Summary: php --rf assert on php7 erronously returns function
description
Status: Open
Type: Bug
-Package: Doc Build problem
+Package: CGI/CLI related
-Operating System: jessie
+Operating System: debian jessie
PHP Version: 7.0.4
Block user comment: N
Private report: N
New Comment:
changed package
Previous Comments:
------------------------------------------------------------------------
[2016-03-08 20:22:17] nino dot skopac at gmail dot com
Description:
------------
Running php --rf assert on CLI returns assert() function synopsis, but the docs for assert() say
that as of php7 the function is no longer a function, but a language construct, so it should return
"Exception: Function assert() does not exist instead", innit?
Also:
php -v
PHP 7.0.4-1~bpo80+1 (cli) ( NTS )
Test script:
---------------
php --rf assert
Expected result:
----------------
Exception: Function assert() does not exist
Actual result:
--------------
Function [ <internal:standard> function assert ] {
- Parameters [2] {
Parameter #0 [ <required> $assertion ]
Parameter #1 [ <optional> $description ]
}
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71747&edit=1