Re: note 9755 added to phpinfo

From: Date: Wed, 22 Nov 2000 21:51:46 +0000
Subject: Re: note 9755 added to phpinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-7998@lists.php.net to get a copy of this message
You have the incorrect proto there, take a look at the file ext/standard/info.c in the source distribution: /* {{{ proto void phpinfo([int what]) Output a page of useful information about PHP and the current request */ PHP_FUNCTION(phpinfo) { int flag; zval **flag_arg; switch (ZEND_NUM_ARGS()) { case 0: flag = 0xFFFFFFFF; break; case 1: if (zend_get_parameters_ex(1, &flag_arg)==FAILURE) { RETURN_FALSE; } convert_to_long_ex(flag_arg); flag = (*flag_arg)->value.lval; break; default: WRONG_PARAM_COUNT; break; } php_print_info(flag); RETURN_TRUE; } The possible info flags have an internal representation in the code, which could be mapped to constants defined in the appropriate module. Your note is thus not correct and will be removed. --- cgi@harrison.org wrote: > int phpinfo ([int what]) > > should read: > int phpinfo ([string what]) > > I believe this could have a string as a parameter, > not an integer. > > http://www.php.net/manual/function.phpinfo.php > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/

« previous php.notes (#7998) next »