From 09e1f0249e7bb0e1ab881327b8cd7c17cf1d60b8 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Fri, 13 Jun 2008 15:59:13 +0000 Subject: [PATCH] PHP_5_2 compat - add pestrndup if undefined --- ext/phar/phar_internal.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- 2.50.1