]> granicus.if.org Git - php/commitdiff
PHP_5_2 compat - add pestrndup if undefined
authorGreg Beaver <cellog@php.net>
Fri, 13 Jun 2008 15:59:13 +0000 (15:59 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 13 Jun 2008 15:59:13 +0000 (15:59 +0000)
ext/phar/phar_internal.h

index 27dc843012b09e2d101ff4e9d110180faf871e0e..e8d384ce7cec91701bae4a308a9cfc0842df3dcc 100755 (executable)
 #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 */