Skip to content

Commit ed235cf

Browse files
author
Jason Greene
committed
MFH
1 parent adb0cb5 commit ed235cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/pcntl/pcntl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ PHP_FUNCTION(pcntl_waitpid)
227227

228228
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz|l", &pid, &z_status, &options) == FAILURE)
229229
return;
230+
231+
convert_to_long_ex(&z_status);
230232

231233
status = Z_LVAL_P(z_status);
232234

@@ -622,8 +624,7 @@ void pcntl_zend_extension_statement_handler(zend_op_array *op_array)
622624
if (zend_hash_index_find(&PCNTL_G(php_signal_table), *signal_num, (void *) &func_name)==FAILURE) {
623625
continue;
624626
}
625-
convert_to_long_ex(&param);
626-
convert_to_string_ex(&call_name);
627+
627628
ZVAL_LONG(param, *signal_num);
628629
ZVAL_STRING(call_name, func_name, 0);
629630

0 commit comments

Comments
 (0)