Re: Quick Poll: PHP 4 / 5
| From: | Chris Shiflett | Date: | Sun, 18 Sep 2005 20:10:28 +0000 |
| Subject: | Re: Quick Poll: PHP 4 / 5 | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222599@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
I don't agree with your position that the above code is incorrectI 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/