From: Greg Beaver Date: Fri, 13 Jun 2008 15:59:13 +0000 (+0000) Subject: PHP_5_2 compat - add pestrndup if undefined X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09e1f0249e7bb0e1ab881327b8cd7c17cf1d60b8;p=php PHP_5_2 compat - add pestrndup if undefined --- diff --git a/ext/phar/phar_internal.h b/ext/phar/phar_internal.h index 27dc843012..e8d384ce7c 100755 --- a/ext/phar/phar_internal.h +++ b/ext/phar/phar_internal.h @@ -75,6 +75,10 @@ #define E_RECOVERABLE_ERROR E_ERROR #endif +#ifndef pestrndup +#define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length))) +#endif + /* PHP_ because this is public information via MINFO */ #define PHP_PHAR_API_VERSION "1.1.1" /* x.y.z maps to 0xyz0 */