Doc #71991 [Ver->Csd]: assert() docs seem to imply PHP 5 only

From: Date: Sat, 09 Apr 2016 11:12:27 +0000
Subject: Doc #71991 [Ver->Csd]: assert() docs seem to imply PHP 5 only
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13401@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71991&edit=1 ID: 71991 Updated by: cmb@php.net Reported by: lsloan at umich dot edu Summary: assert() docs seem to imply PHP 5 only -Status: Verified +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: OS X 10.11 PHP Version: 5.6.20 Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2016-04-09 11:12:07] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=338974 Log: fixed #71991 (assert() docs seem to imply PHP 5 only) fix contributed by Lance Sloan ------------------------------------------------------------------------ [2016-04-09 11:10:00] cmb@php.net Oops -- I thought $description isn't supported anymore as of PHP 7.0.0. ------------------------------------------------------------------------ [2016-04-09 09:29:02] requinix@php.net @lsloan is talking about the syntax portion at the top of the description. > PHP 5 > bool assert ( mixed $assertion [, string $description ] ) > PHP 7 > bool assert ( mixed $assertion [, Throwable $exception ] ) It implies that the string $description argument is only supported in PHP 5. The patch changes the first line to "PHP 5 and 7". ------------------------------------------------------------------------ [2016-04-09 09:19:23] cmb@php.net Immediately below the section on the PHP 5 synopsis, there is a section on the PHP 7 synopsis, which differs slightly. Additionally, at the very top of the page is the info, that assert is available under PHP 4, PHP 5 and PHP 7. ------------------------------------------------------------------------ [2016-04-09 00:56:29] requinix@php.net If you really wanted to, but the online editor is easier. It would help to do the reverse, though: mention this bug report in your commit. (If you didn't already.) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=71991 -- Edit this bug report at https://bugs.php.net/bug.php?id=71991&edit=1

« previous php.doc.bugs (#13401) next »