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

From: Date: Thu, 23 Apr 2015 14:25:19 +0000
Subject: Doc #66965 [Ana]: Example code says it should cause error, causes warning
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12238@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 Type: Documentation Problem Package: *General Issues PHP Version: 5.5.10 Block user comment: N Private report: N New Comment: Indeed, the behavior changed as of PHP 5.1.1, see <http://3v4l.org/TMBiq>. Previous Comments: ------------------------------------------------------------------------ [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 (#12238) next »