Bug #17375: proc_open() segfaults with faulty parameters

From: Date: Thu, 23 May 2002 04:42:24 +0000
Subject: Bug #17375: proc_open() segfaults with faulty parameters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8281@lists.php.net to get a copy of this message
From: kims@contrail.com.au Operating system: Debian GNU/Linux PHP version: 4.0CVS-2002-05-23 PHP Bug Type: Reproducible crash Bug description: proc_open() segfaults with faulty parameters proc_open() causes my apache process to segfault when I pass it a broken descriptorspec array. An entry in the descriptorspec array of type "file" that has only two elements (i.e., is missing the third element, the mode with which to open the file) causes the segfault. I suggest that: * proc_open() should return an invalid resource, and a meaningful warning, instead of segfaulting like this. * perhaps the mode should default to something if ommitted, instead of giving a warning, perhaps "r" would be a safe default. -- Edit bug report at http://bugs.php.net/?id=17375&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17375&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17375&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17375&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17375&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17375&r=support Expected behavior: http://bugs.php.net/fix.php?id=17375&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17375&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17375&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17375&r=globals

« previous php.bugs (#8281) next »