more than one php binaries within one workdir (idea from FreeBSD) - move pdo_sqlite support from core to extensions and also add a pdo_mysql and a pdo_sqlite subpackage - regen patches while here - bump PKGNAMEs
22 lines
798 B
Plaintext
22 lines
798 B
Plaintext
$OpenBSD: patch-ext_posix_posix_c,v 1.2 2007/04/01 21:37:27 robert Exp $
|
|
--- ext/posix/posix.c.orig Fri Jan 12 02:46:11 2007
|
|
+++ ext/posix/posix.c Sun Apr 1 13:42:42 2007
|
|
@@ -884,7 +884,7 @@ PHP_FUNCTION(posix_getgrgid)
|
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &gid) == FAILURE) {
|
|
RETURN_FALSE;
|
|
}
|
|
-#ifdef HAVE_GETGRGID_R
|
|
+#if defined(ZTS) && defined(HAVE_GETGRGID_R) && defined(_SC_GETGR_R_SIZE_MAX)
|
|
|
|
grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
|
grbuf = emalloc(grbuflen);
|
|
@@ -909,7 +909,7 @@ PHP_FUNCTION(posix_getgrgid)
|
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "unable to convert posix group struct to array");
|
|
RETVAL_FALSE;
|
|
}
|
|
-#ifdef HAVE_GETGRGID_R
|
|
+#if defined(ZTS) && defined(HAVE_GETGRGID_R) && defined(_SC_GETGR_R_SIZE_MAX)
|
|
efree(grbuf);
|
|
#endif
|
|
}
|