Fatal error: func_num_args()

From: Date: Tue, 28 Mar 2000 15:07:12 +0000
Subject: Fatal error: func_num_args()
Groups: php.version4 
Request: Send a blank email to php-version4+get-12752@lists.php.net to get a copy of this message
Fatal error: func_num_args(): Can't be used as a function parameter in d:/__server__/ww2/cynic/e2/stdheader.inc on line 28 This is what I get with RC1 while with b4pl1 it worked like a charm. Is it a bug or was I unknowingly using this where it shouldn't have been used? Situation: include.inc contains: ... function load_header() { global $DOCUMENT_ROOT ; require( $DOCUMENT_ROOT . "/e2/stdheader.inc" ) ; } ; ... stdheader.inc contains: .... some HTML .... <? if ( 1 == func_num_args() ) { $head = func_get_arg( 0 ) ; ?> .... some HTML .... <?= $head ; ?> .... some HTML .... <? } ; ?> Thanks for any replies. ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. <mailto:cynic@mail.cz>cynic<mailto:cynic@mail.cz>@mail.cz ICQ: 2808 2505

« previous php.version4 (#12752) next »