cvs: php4(PHP_4_2_0) /ext/pcntl pcntl.c

From: Date: Mon, 06 May 2002 23:10:54 +0000
Subject: cvs: php4(PHP_4_2_0) /ext/pcntl pcntl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11733@lists.php.net to get a copy of this message
jason Mon May 6 19:10:54 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/pcntl pcntl.c Log: MFH Index: php4/ext/pcntl/pcntl.c diff -u php4/ext/pcntl/pcntl.c:1.19.2.2 php4/ext/pcntl/pcntl.c:1.19.2.3 --- php4/ext/pcntl/pcntl.c:1.19.2.2 Mon May 6 16:44:58 2002 +++ php4/ext/pcntl/pcntl.c Mon May 6 19:10:54 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pcntl.c,v 1.19.2.2 2002/05/06 20:44:58 jason Exp $ */ +/* $Id: pcntl.c,v 1.19.2.3 2002/05/06 23:10:54 jason Exp $ */ #define PCNTL_DEBUG 0 @@ -227,6 +227,8 @@ 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 @@ if (zend_hash_index_find(&PCNTL_G(php_signal_table), *signal_num, (void *) &func_name)==FAILURE) { continue; } - convert_to_long_ex(&param); - convert_to_string_ex(&call_name); + ZVAL_LONG(param, *signal_num); ZVAL_STRING(call_name, func_name, 0);

« previous php.cvs (#11733) next »