php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66965 Example code says it should cause error, causes warning
Submitted: 2014-03-27 10:55 UTC Modified: 2015-06-14 19:50 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: ext dot rmolotkiewicz at gmail dot com Assigned: cmb (profile)
Status: Closed Package: *General Issues
PHP Version: 5.5.10 OS:
Private report: No CVE-ID: None
 [2014-03-27 10:55 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-16 18:14 UTC] dm@php.net
-Status: Open +Status: Analyzed
 [2015-04-23 14:25 UTC] cmb@php.net
Indeed, the behavior changed as of PHP 5.1.1, see <http://3v4l.org/TMBiq>.
 [2015-06-14 19:49 UTC] 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-06-14 19:50 UTC] cmb@php.net
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: cmb
 [2015-06-14 19:50 UTC] cmb@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC