Req #61031 [Opn->Wfx]: Need E_COMPILE_DEPRECATED error
Edit report at https://bugs.php.net/bug.php?id=61031&edit=1
ID: 61031
Updated by: nikic@php.net
Reported by: ondrej@php.net
Summary: Need E_COMPILE_DEPRECATED error
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
Operating System: Irrelevant
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2012-02-09 17:06:19] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61031&edit=1
Thread (2 messages)