|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-08 20:42 UTC] nino dot skopac at gmail dot com
-Package: Doc Build problem
+Package: CGI/CLI related
-Operating System: jessie
+Operating System: debian jessie
[2016-03-08 20:42 UTC] nino dot skopac at gmail dot com
[2016-03-09 04:09 UTC] laruence@php.net
-Status: Open
+Status: Not a bug
[2016-03-09 04:09 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 22 05:00:01 2026 UTC |
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 ] } }