Do you have a question? Post it now! No Registration Necessary. Now with pictures!
August 5, 2008, 8:25 pm
rate this thread
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? I'm running
PHP5. At present, I'm not sure which version of PHP they're running.
Re: PHP Notice vs. Warning
Different PHP versions.
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.
- » after moving to new server, variables in query string not instantiated?
- — Next thread in » PHP Scripting Forum