Re: [PHP4BETA] Fatal error: func_num_args()
| From: | Andi Gutmans | Date: | Tue, 28 Mar 2000 19:16:22 +0000 |
| Subject: | Re: [PHP4BETA] Fatal error: func_num_args() | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12763@lists.php.net to get a copy of this message | ||
Damn, the fix I did was wrong :'(
We have commited a new fix to the CVS. If you don't want to use the CVS let me know and I'll send you the correct zend_builtin_functions.c file.
Thanks for the report!
Andi
At 05:07 PM 3/28/00 +0200, Cynic wrote:
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() {--- Andi Gutmans <andi@zend.com> http://www.zend.com/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 -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net