Req #61031 [Opn->Wfx]: Need E_COMPILE_DEPRECATED error

From: Date: Sat, 23 Dec 2017 12:05:26 +0000
Subject: Req #61031 [Opn->Wfx]: Need E_COMPILE_DEPRECATED error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213255@lists.php.net to get a copy of this message
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)

« previous php.bugs (#213255) next »