summaryrefslogtreecommitdiff
path: root/ext/skeleton/skeleton.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-08-16 00:16:00 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-08-16 00:16:00 +0000
commit2b4c2a2ff5a06cf049eb674198365b079eca756f (patch)
tree54d6682b3b6a90d835f7149ca36ced3d60297d52 /ext/skeleton/skeleton.c
parent891dfed09118c20dca8b015a8d1b1ddb5e7fd807 (diff)
downloadphp-git-2b4c2a2ff5a06cf049eb674198365b079eca756f.tar.gz
Commit a bit of random plane hacking.
- A slight exif fix from the latest version of jhead - Make ext_skel's confirm_module_compiled function consistent
Diffstat (limited to 'ext/skeleton/skeleton.c')
-rw-r--r--ext/skeleton/skeleton.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/ext/skeleton/skeleton.c b/ext/skeleton/skeleton.c
index b53df673de..22e017d4fa 100644
--- a/ext/skeleton/skeleton.c
+++ b/ext/skeleton/skeleton.c
@@ -131,17 +131,14 @@ PHP_MINFO_FUNCTION(extname)
Return a string to confirm that the module is compiled in */
PHP_FUNCTION(confirm_extname_compiled)
{
- zval **arg;
- int len;
+ char *arg = NULL;
+ int arg_len, len;
char string[256];
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
- ZEND_WRONG_PARAM_COUNT();
- }
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arg, &arg_len) == FAILURE)
+ return;
- convert_to_string_ex(arg);
-
- len = sprintf(string, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", Z_STRVAL_PP(arg));
+ len = sprintf(string, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg);
RETURN_STRINGL(string, len, 1);
}
/* }}} */