Re: Make debug_zval_dump prints int as long

From: Date: Tue, 04 Aug 2015 00:51:04 +0000
Subject: Re: Make debug_zval_dump prints int as long
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-87591@lists.php.net to get a copy of this message
On 25.07.2015 at 16:16, Rowan Collins wrote: > On 25/07/2015 12:49, Christoph Becker wrote: >> I agree that the manual page needs an update, but it seems that would >> result in an even more lengthy explanation of the caveats due to the >> different behavior under PHP 5 and PHP 7, respectively. > > Well, the current manual page is invalid for any version of PHP which is > currently maintained, since 5.3 is EOL, and 5.4 raises a fatal error for > the first example. > > That actually simplifies things a little bit, because you don't need all > the caveats about whether the variable is passed by reference or not, > that's can just be a historical footnote. I agree, but even then it's a bit tricky, and the doc team seems to be shorthanded currently. You may consider to give a helping hand. :) > If we're not going to make any attempt at accuracy, then rather than > making cosmetic changes like "int" for "long", we should be adding an > E_DEPRECATED flag and leaving the function to die quietly. I guess that might require an RFC. -- Christoph M. Becker

« previous php.internals (#87591) next »