| Ilia Alshanetsky 2006-10-06, 6:57 pm |
|
On 6-Oct-06, at 2:19 PM, Alan Harder wrote:
> - I found that modulo zero now generates a PHP error.
> This seems like a good change, but just want to recommend this
> is documented somewhere (changelog..). Couldn't find any reference
> in NEWS file. In our case it found buggy code, but who knows, maybe
> someone expects this to just return false w/o php error.
Yes, it is a new thing, I'll add it to the 5.2 readme file.
> - The php error generated in the case above happened to be code
> invoked via call_user_func.. PHPUnit got some warnings because
> the debug_backtrace didn't have 'file' or 'line' info. I wrote
> a little test script and it doesn't seem like any PHP version
> puts in this info when call_user_func is used.
> Should I file a bug for this? Or maybe this should be documented?
> debug_backtrace docs do say these are "possible" values to be
> in the results, but doesn't list any cases where file/line might
> be missing.
For now I'd say open a bug report, we'd need to examine the
responsible code in the engine to see if addressing is doable, but
for now let's consider it a bug.
> Thanks,
>
> - Alan
>
>
>
> Bharat Mediratta wrote:
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Ilia Alshanetsky
|