You are here: Re: [PHP] Quick Poll: PHP 4 / 5 « PHP « IT news, forums, messages
Re: [PHP] Quick Poll: PHP 4 / 5

Posted by Chris Shiflett on 09/18/05 23:10

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация