php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61031 Need E_COMPILE_DEPRECATED error
Submitted: 2012-02-09 17:06 UTC Modified: 2017-12-23 12:05 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: ondrej@php.net Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.3.10 OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ondrej@php.net
New email:
PHP Version: OS:

 

 [2012-02-09 17:06 UTC] ondrej@php.net
Description:
------------
Hi,

it's probably non-issue for 5.4, but in 5.3.x the "Call-time pass-by-reference has 
been deprecated" is declared as E_DEPRECATED while in fact is is evaluated at 
compile time and thus more correct would be E_COMPILE_DEPRECATED error.

See the: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647641

O.

Test script:
---------------
<?php

function i_am_bad_bad_girl($robyn) { return; };

error_reporting(E_ALL);

i_am_bad_bad_girl(&$ted);

?>


Expected result:
----------------
Depends on the settings of your php.ini, but prints error as E_DEPRECATED (which 
is marked as run-time error setting.

Actual result:
--------------
Depends on the settings of your php.ini and prints error as E_COMPILE_DEPRECATED.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-30 19:31 UTC] mike@php.net
-Package: Output Control +Package: *General Issues
 [2017-12-23 12:05 UTC] nikic@php.net
-Status: Open +Status: Wont fix
 [2017-12-23 12:05 UTC] nikic@php.net
We no longer have technical reasons to distinguish compile-time and run-time warnings (calling an error handler during compilation is safe nowadays), so I'm marking this as won't fix.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 06:01:27 2025 UTC