diff options
author | foobar <sniper@php.net> | 2005-12-06 01:08:40 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-12-06 01:08:40 +0000 |
commit | becbb993a1f64c83e23e530080cf3c100fabcda4 (patch) | |
tree | 6eb7a0d1699bbee98d4235178e688788542c64be | |
parent | 1c0ece71495ea13c69e018437478a7289e538341 (diff) | |
download | php-git-becbb993a1f64c83e23e530080cf3c100fabcda4.tar.gz |
nuke php3 legacy
-rw-r--r-- | sapi/cli/php_cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 682298fe88..a6a0d69ef8 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -1117,7 +1117,7 @@ int main(int argc, char *argv[]) { char *input; size_t len, index = 0; - pval *argn, *argi; + zval *argn, *argi; cli_register_file_handles(TSRMLS_C); @@ -1128,7 +1128,7 @@ int main(int argc, char *argv[]) Z_TYPE_P(argi) = IS_LONG; Z_LVAL_P(argi) = index; INIT_PZVAL(argi); - zend_hash_update(&EG(symbol_table), "argi", sizeof("argi"), &argi, sizeof(pval *), NULL); + zend_hash_update(&EG(symbol_table), "argi", sizeof("argi"), &argi, sizeof(zval *), NULL); while (exit_status == SUCCESS && (input=php_stream_gets(s_in_process, NULL, 0)) != NULL) { len = strlen(input); while (len-- && (input[len]=='\n' || input[len]=='\r')) { @@ -1139,7 +1139,7 @@ int main(int argc, char *argv[]) Z_STRLEN_P(argn) = ++len; Z_STRVAL_P(argn) = estrndup(input, len); INIT_PZVAL(argn); - zend_hash_update(&EG(symbol_table), "argn", sizeof("argn"), &argn, sizeof(pval *), NULL); + zend_hash_update(&EG(symbol_table), "argn", sizeof("argn"), &argn, sizeof(zval *), NULL); Z_LVAL_P(argi) = ++index; if (exec_run) { if (zend_eval_string_ex(exec_run, NULL, "Command line run code", 1 TSRMLS_CC) == FAILURE) { |