From 4b77c2baa507dede146c33c4f7c47817e6932a7c Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 21 Jun 2008 17:05:32 +0000 Subject: [PATCH] define ALLOC_PERMANENT_ZVAL for PHP 5.2 --- ext/phar/phar_internal.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/phar/phar_internal.h b/ext/phar/phar_internal.h index c80ac263d7..e41101ab3d 100755 --- a/ext/phar/phar_internal.h +++ b/ext/phar/phar_internal.h @@ -72,11 +72,15 @@ #endif #ifndef E_RECOVERABLE_ERROR -#define E_RECOVERABLE_ERROR E_ERROR +# define E_RECOVERABLE_ERROR E_ERROR #endif #ifndef pestrndup -#define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length))) +# define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(length))) +#endif + +#ifndef ALLOC_PERMANENT_ZVAL +# define ALLOC_PERMANENT_ZVAL (z) = (zval*)malloc(sizeof(zval)); #endif /* PHP_ because this is public information via MINFO */ -- 2.50.1