Re: phpsadness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, May 29, 2011 at 14:56, Robert Cummings <robert@xxxxxxxxxxxxx> wrote:
>
> Personally, I prefer the exception. Logically, I can take 0 from something
> an infinite number of times... zero seems a far cry from this. To properly
> determine the intent of a division by zero, I think the programmer SHOULD
> have to handle it.
>
> Personally, I don't see 0 as acceptable. It suggests improper boundary
> checking.

    I'd like to see a patch against the core, or perhaps a PECL
module, that allows the use of explode() with empty parameters, which
will then cause the physical machine on which the code is hosted to
detonate itself.  Unfortunately, it's unlikely we'll see that in the
5.3 branch.

-- 
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux