Re: Quick Poll: PHP 4 / 5

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

 



Robert Cummings wrote:
I don't agree with your position that the above code is incorrect

I think notices are fine for situations where you've probably screwed up. I'd rather PHP let me know than do nothing.

I see this situation as being very similar to the following:

<?php

function foo(&$bar)
{
    /* ... */
}

foo(3);

?>

This happens to throw a fatal error, which seems fine (mainly because it always has, as far as I know, so no one can have working code that does this sort of thing).

I'm curious to know whether you would also disagree that this code is incorrect. I don't see a big fundamental difference, but I might be misunderstanding something.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
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