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? I'm running
PHP5. At present, I'm not sure which version of PHP they're running.
<?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? I'm running
PHP5. At present, I'm not sure which version of PHP they're running.