]> granicus.if.org Git - php/commitdiff
define ALLOC_PERMANENT_ZVAL for PHP 5.2
authorGreg Beaver <cellog@php.net>
Sat, 21 Jun 2008 17:05:32 +0000 (17:05 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 21 Jun 2008 17:05:32 +0000 (17:05 +0000)
ext/phar/phar_internal.h

index c80ac263d7ca8ac5cb9c2a228ab4d1172c4436cf..e41101ab3dc21dadb822665aaaa428c012b1f536 100755 (executable)
 #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 */