com php-src: Use zend_long_to_str in pcntl: ext/p cntl/pcntl.c

From: Date: Wed, 28 May 2014 16:26:11 +0000
Subject: com php-src: Use zend_long_to_str in pcntl: ext/p cntl/pcntl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78621@lists.php.net to get a copy of this message
Commit: 0987d19712e0934870932394ec41e77ea6a2bfc8 Author: Nikita Popov <nikic@php.net> Wed, 28 May 2014 18:26:11 +0200 Parents: a6d33eb654e7b20853c202467f60de124e381245 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0987d19712e0934870932394ec41e77ea6a2bfc8 Log: Use zend_long_to_str in pcntl Changed paths: M ext/pcntl/pcntl.c Diff: diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 4e125e5..5de4ae1 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -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); }

« previous php.cvs (#78621) next »