cvs: /php4/ext/standard info.c
| From: | Thies C. Arntzen | Date: | Tue, 14 Dec 1999 03:49:17 +0000 |
| Subject: | cvs: /php4/ext/standard info.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7892@lists.php.net to get a copy of this message | ||
thies Mon Dec 13 22:49:17 1999 EDT
Modified files:
/php4/ext/standard info.c
Log:
use _ex-API
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.48 php4/ext/standard/info.c:1.49
--- php4/ext/standard/info.c:1.48 Mon Dec 6 21:49:03 1999
+++ php4/ext/standard/info.c Mon Dec 13 22:48:46 1999
@@ -439,11 +439,12 @@
/* {{{ proto void phpinfo(void)
+
Output a page of useful information about PHP and the current request */
PHP_FUNCTION(phpinfo)
{
int flag;
- zval *flag_arg;
+ zval **flag_arg;
switch (ARG_COUNT(ht)) {
@@ -451,11 +452,11 @@
flag = 0xFFFFFFFF;
break;
case 1:
- if (getParameters(ht, 1, &flag_arg)==FAILURE) {
+ if (getParametersEx(1, &flag_arg)==FAILURE) {
RETURN_FALSE;
}
- convert_to_long(flag_arg);
- flag = flag_arg->value.lval;
+ convert_to_long_ex(flag_arg);
+ flag = (*flag_arg)->value.lval;
break;
default:
WRONG_PARAM_COUNT;
@@ -464,6 +465,7 @@
php_print_info(flag);
RETURN_TRUE;
}
+
/* }}} */
/* {{{ proto string phpversion(void)
@@ -476,11 +478,12 @@
/* {{{ proto void phpcredits(int)
+
Prints the list of people who've contributed to the PHP project */
PHP_FUNCTION(phpcredits)
{
int flag;
- zval *flag_arg;
+ zval **flag_arg;
switch (ARG_COUNT(ht)) {
@@ -488,11 +491,11 @@
flag = 0xFFFFFFFF;
break;
case 1:
- if (getParameters(ht, 1, &flag_arg)==FAILURE) {
+ if (getParametersEx(1, &flag_arg)==FAILURE) {
RETURN_FALSE;
}
- convert_to_long(flag_arg);
- flag = flag_arg->value.lval;
+ convert_to_long_ex(flag_arg);
+ flag = (*flag_arg)->value.lval;
break;
default:
WRONG_PARAM_COUNT;
@@ -501,6 +504,7 @@
php_print_credits(flag);
RETURN_TRUE;
}
+
/* }}} */
/*