summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/php_functions.c
diff options
context:
space:
mode:
authorAlex Dowad <alexinbeijing@gmail.com>2020-05-09 18:16:45 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-05-14 10:25:37 +0200
commitb983580dd78cbc7e4f0ddb56671f8b4b6631fb3e (patch)
tree44db8bbbb639aea776601ca555a55ad384c257f0 /sapi/apache2handler/php_functions.c
parenta84cd96e865db795edc72b2799eac5c3c67aadfe (diff)
downloadphp-git-b983580dd78cbc7e4f0ddb56671f8b4b6631fb3e.tar.gz
Don't leak memory if wrong resource type is passed to proc_open
proc_open can accept stream resources in the descriptorspec, like this: proc_open("command", array(0 => $resource), $pipes); Previously, if a resource which was *not* of type "stream" was passed, proc_open would return without freeing dynamically allocated memory. It's fixed now.
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
0 files changed, 0 insertions, 0 deletions