1
0
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:
Nikita Popov
2014-05-28 18:26:11 +02:00
parent a6d33eb654
commit 0987d19712
+1 -3
View File
@@ -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);
}