From ed235cf8b779b81acccdcf126d796c972ddf1f29 Mon Sep 17 00:00:00 2001 From: Jason Greene Date: Mon, 6 May 2002 23:10:54 +0000 Subject: MFH --- ext/pcntl/pcntl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 4fdbd1f15c..8f48cbb578 100755 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -227,6 +227,8 @@ PHP_FUNCTION(pcntl_waitpid) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz|l", &pid, &z_status, &options) == FAILURE) return; + + convert_to_long_ex(&z_status); status = Z_LVAL_P(z_status); @@ -622,8 +624,7 @@ void pcntl_zend_extension_statement_handler(zend_op_array *op_array) if (zend_hash_index_find(&PCNTL_G(php_signal_table), *signal_num, (void *) &func_name)==FAILURE) { continue; } - convert_to_long_ex(¶m); - convert_to_string_ex(&call_name); + ZVAL_LONG(param, *signal_num); ZVAL_STRING(call_name, func_name, 0); -- cgit v1.2.1