Re: SEGV support for run-tests

From: Date: Thu, 03 Jul 2014 09:23:39 +0000
Subject: Re: SEGV support for run-tests
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-75204@lists.php.net to get a copy of this message
On 3 July 2014 11:18, Ferenc Kovacs <tyrael@php.net> wrote: > hi, > > I think the patch is wrong. > from my experience, when a proc_opened process is killed via a signal > (before you had a chance to proc_close() it) then the exitcode reported by > proc_close() and proc_get_status() will be -1, but > proc_get_status()["signaled"] will be true and proc_get_status()["termsig"] > will have the signalcode of the signal which terminated the process(11 for > sigsegv). > This worked: --TEST-- segfault --SKIPIF-- <?php extension_loaded("posix") or die("skip need posix\n"); --FILE-- <?php echo "before\n"; posix_kill(posix_getpid(),11); echo "after\n"; ?> ===DONE=== --EXPECTF-- before -- Regards, Mike

« previous php.internals (#75204) next »