Just be sure that if it used to return -1 that you leave a note in the docs when it changed to false. PHP is open source, coders often times use their own personal preference on stuff like this. I'm not sure if php-dev encourages use of boolean false or not. Sometimes it's NULL, 0, -1, or false. I guess this is why loose == is more popular than strict === :)
Each function documents this individually, nowhere in the docs does it say false is always returned on failure. I agree it would be nice to be more consistant in this regard. But, breaking BC is no fun either. Regards, Philip On Fri, 8 Nov 2002, Maxim Maletsky wrote: > > Just because I was on it, I grep'ed my local tree over and over looking > for wrong "-1" returns. And so I found more. > > Here is a little snapshot for every function I found. Tell me what you > think so I go and fix those. [snip] -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
