Re: cvs: php4 /ext/zip zip.c
| From: | Sterling Hughes | Date: | Fri, 12 Oct 2001 15:43:55 +0000 |
| Subject: | Re: cvs: php4 /ext/zip zip.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-7781@lists.php.net to get a copy of this message | ||
On Fri, 12 Oct 2001, Andrei Zmievski wrote:
> On Fri, 12 Oct 2001, Sterling Hughes wrote:
> > sterling Fri Oct 12 11:07:06 2001 EDT
> >
> > Modified files:
> > /php4/ext/zip zip.c
> > Log:
> > fix segv's, zend_parse_parameters seems not to be able to handle
> > resources.
>
> Please explain.
>
{
zval **r;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &r) ==
FAILURE) {
return;
}
}
Will cause a SIGSEGV (see bug report for zip extension in bug db).
I've encountered this before, whenever using zend_parse_parameters
with a resource it segfaults at the :
if (Z_TYPE_PP(arg) != IS_RESOURCE) {
line.
-Sterling