Reply to Re: constant() - php5

Your name:

Reply:


Posted by Jason Barnett on 06/29/05 16:39

Actually, thanks for pointing out this function to me because I never
even knew that it existed. You learn something new every day.

I have to admit that a warning seems a little unusual given that an
undefined variable would result in only an E_NOTICE. Especially since
the default behavior for an undefined constant (anywhere except for this
function) is an E_NOTICE. Seems like you may have found a bug to report.

<?php

/* Causes E_WARNING */
echo constant(UNDEFINED_CONSTANT);

/* Causes E_NOTICE */
echo UNDEFINED_CONSTANT;

?>

[Back to original 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

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