471,066 Members | 1,184 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

PHP Notice vs. Warning

Say I have the following file:

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.
Aug 5 '08 #1
0 1124

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by sam | last post: by
5 posts views Thread by Geoff Berrow | last post: by
3 posts views Thread by Mike | last post: by
1 post views Thread by spanov | last post: by
11 posts views Thread by Jeff | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.