cellog Fri Jun 13 15:59:13 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/phar phar_internal.h Log: PHP_5_2 compat - add pestrndup if undefined http://cvs.php.net/viewvc.cgi/php-src/ext/phar/phar_internal.h?r1=1.109.2.8&r2=1.109.2.9&diff_format=u Index: php-src/ext/phar/phar_internal.h diff -u php-src/ext/phar/phar_internal.h:1.109.2.8 php-src/ext/phar/phar_internal.h:1.109.2.9 --- php-src/ext/phar/phar_internal.h:1.109.2.8 Fri Jun 13 06:34:41 2008 +++ php-src/ext/phar/phar_internal.h Fri Jun 13 15:59:13 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: phar_internal.h,v 1.109.2.8 2008/06/13 06:34:41 cellog Exp $ */ +/* $Id: phar_internal.h,v 1.109.2.9 2008/06/13 15:59:13 cellog Exp $ */ #ifdef HAVE_CONFIG_H #include "config.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 */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php