Doc #66965 [Ana->Csd]: Example code says it should cause error, causes warning

From: Date: Sun, 14 Jun 2015 19:50:29 +0000
Subject: Doc #66965 [Ana->Csd]: Example code says it should cause error, causes warning
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12426@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66965&edit=1 ID: 66965 Updated by: cmb@php.net Reported by: ext dot rmolotkiewicz at gmail dot com Summary: Example code says it should cause error, causes warning -Status: Analyzed +Status: Closed Type: Documentation Problem Package: *General Issues PHP Version: 5.5.10 -Assigned To: +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: ------------------------------------------------------------------------ [2015-06-14 19:49:50] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=336955 Log: fixed comment regarding version dependent behavior (fixes #66965) ------------------------------------------------------------------------ [2015-04-23 14:25:19] cmb@php.net Indeed, the behavior changed as of PHP 5.1.1, see <http://3v4l.org/TMBiq>. ------------------------------------------------------------------------ [2014-03-27 10:55:39] ext dot rmolotkiewicz at gmail dot com Description: ------------ --- From manual page: http://www.php.net/language.references.pass --- Manual says: foo(bar()); // Produces fatal error since PHP 5.0.5 But then: Just tried it on PHP5.5.10 - get a Strict warning, but the request completed without error – Clive 1 min ago Test script: --------------- // Your own script from manual Expected result: ---------------- Fatal error Actual result: -------------- Strict warning ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66965&edit=1

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