|
Posted by Michael Fesser on August 5, 2008, 4:57 pm
Please log in for more thread options
.oO(yawnmoth)
>Say I have the following file:
>
><?php
>unpack('Na/Nb', str_repeat(chr('0'), 7));
>?>
>
>One user claims it generates the following error for them:
>
>PHP Notice: in file test.php on line 2:
>unpack() [function.unpack]: Type N: not enough input, need 4, have 3
>
>For me, however, it generates this error:
>
>Warning: unpack() [function.unpack]: Type N: not enough input, need 4,
>have 3 in /path/to/test.php on line 2
>
>My question is... why are we getting different errors?
Different PHP versions.
>I'm running
>PHP5. At present, I'm not sure which version of PHP they're running.
Looks like the severity level for this issue was changed with some
version, which is not that unusual. If you know your and the user's PHP
version, you could have a look at the changelogs in order to see when
this change took place.
Micha
|