setjmp usage
| From: | Rasmus Lerdorf | Date: | Tue, 18 Mar 2008 03:53:38 +0000 |
| Subject: | setjmp usage | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-36186@lists.php.net to get a copy of this message | ||
We are using setjmp(__bailout) in zend_try, but setjmp behaves differently on BSD and Linux. POSIX doesn't specify whether the signal mask should be saved or not for this call, so different operating systems do different things here. I think it would be more consistent if we used sigsetjmp(__bailout,0) to always specify that we don't need to store the signal mask. This avoids an expensive sigprocmask syscall.
-Rasmus