mirror of
https://github.com/php/php-src.git
synced 2026-04-27 18:23:26 +02:00
Use zend_long_to_str in pcntl
This commit is contained in:
+1
-3
@@ -790,9 +790,7 @@ PHP_FUNCTION(pcntl_exec)
|
||||
ZEND_HASH_FOREACH_KEY_VAL(envs_hash, key_num, key, element) {
|
||||
if (envi >= envc) break;
|
||||
if (!key) {
|
||||
key = STR_ALLOC(101, 0);
|
||||
snprintf(key->val, 100, "%ld", key_num);
|
||||
key->len = strlen(key->val);
|
||||
key = zend_long_to_str(key_num);
|
||||
} else {
|
||||
STR_ADDREF(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user