cvs: ZendEngine2(PHP_5_0) / Zend.m4 zend_strtod.c php-src NEWS

From: Date: Thu, 17 Feb 2005 04:45:14 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / Zend.m4 zend_strtod.c php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3392@lists.php.net to get a copy of this message
sniper Wed Feb 16 23:45:14 2005 EDT Modified files: (Branch: PHP_5_0) /php-src NEWS /ZendEngine2 Zend.m4 zend_strtod.c Log: MFH: - Compile fix for systems without int32_t typedef http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.245&r2=1.1760.2.246&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1760.2.245 php-src/NEWS:1.1760.2.246 --- php-src/NEWS:1.1760.2.245 Wed Feb 16 04:59:28 2005 +++ php-src/NEWS Wed Feb 16 23:45:13 2005 @@ -8,7 +8,7 @@ - Changed phpize not to require libtool. (Jani) - Fixed a bug in mysql_affected_rows and mysql_stmt_affected_rows when the api function returns -1 (Georg) -- Fixed several egregious leaks in ext/browscap and sapi/embed. (Andrei) +- Fixed several leaks in ext/browscap and sapi/embed. (Andrei) - Fixed several leaks in ext/filepro. (Tony) - Fixed build system to always use bundled libtool files. (Jani) - Fixed a bug in mysqli_stmt_execute() (type conversion with NULL values). (Georg) @@ -69,7 +69,8 @@ - Fixed bug #31139 (XML Parser Functions seem to drop &amp; when parsing). (Rob) - Fixed bug #31398 (When magic_guotes_gpc are enabled filenames with ' get cutoff). (Ilia) -- Fixed bug #31111 (Compile failure of zend_strtod.c). (Derick) +- Fixed bug #31107, #31110, #31111, #31249 (Compile failure of zend_strtod.c). + (Jani) - Fixed bug #31110 (PHP 4.3.10 does not compile on Tru64 UNIX 5.1B). (Derick) - Fixed bug #31107 (Compile failure on Solaris 9 (Intel) and gcc 3.4.3). (Derick) - Fixed bug #31103 (Better error message when c-client cannot be found). (Ilia) http://cvs.php.net/diff.php/ZendEngine2/Zend.m4?r1=1.43.2.2&r2=1.43.2.3&ty=u Index: ZendEngine2/Zend.m4 diff -u ZendEngine2/Zend.m4:1.43.2.2 ZendEngine2/Zend.m4:1.43.2.3 --- ZendEngine2/Zend.m4:1.43.2.2 Wed Feb 16 23:42:15 2005 +++ ZendEngine2/Zend.m4 Wed Feb 16 23:45:14 2005 @@ -1,5 +1,5 @@ dnl -dnl $Id: Zend.m4,v 1.43.2.2 2005/02/17 04:42:15 sniper Exp $ +dnl $Id: Zend.m4,v 1.43.2.3 2005/02/17 04:45:14 sniper Exp $ dnl dnl This file contains Zend specific autoconf functions. dnl @@ -19,6 +19,28 @@ ]) +AC_DEFUN([LIBZEND_CHECK_INT_TYPE],[ +AC_MSG_CHECKING(for $1) +AC_TRY_COMPILE([ +#if HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif +#if HAVE_INTTYPES_H +#include <inttypes.h> +#elif HAVE_STDINT_H +#include <stdint.h> +#endif], +[if (($1 *) 0) + return 0; +if (sizeof ($1)) + return 0; +],[ + AC_DEFINE_UNQUOTED([HAVE_]translit($1,a-z_-,A-Z__), 1,[Define if $1 type is present. ]) + AC_MSG_RESULT(yes) +], AC_MSG_RESULT(no) +)dnl +]) + AC_DEFUN([LIBZEND_BASIC_CHECKS],[ AC_REQUIRE([AC_PROG_YACC]) @@ -84,26 +106,9 @@ AC_CHECK_TYPE( uint, unsigned int ) AC_CHECK_TYPE( ulong, unsigned long ) -dnl Check if uint32_t is defined -AC_MSG_CHECKING(for uint32_t) -AC_TRY_COMPILE([ -#if HAVE_SYS_TYPES_H -#include <sys/types.h> -#endif -#if HAVE_INTTYPES_H -#include <inttypes.h> -#elif HAVE_STDINT_H -#include <stdint.h> -#endif], -[if ((uint32_t *) 0) - return 0; -if (sizeof (uint32_t)) - return 0; -],[ - AC_DEFINE(HAVE_UINT32_T,1,[Define if uint32_t type is present. ]) - AC_MSG_RESULT(yes) -], AC_MSG_RESULT(no) -)dnl +dnl Check if int32_t and uint32_t are defined +LIBZEND_CHECK_INT_TYPE(int32_t) +LIBZEND_CHECK_INT_TYPE(uint32_t) dnl Checks for library functions. AC_FUNC_VPRINTF http://cvs.php.net/diff.php/ZendEngine2/zend_strtod.c?r1=1.1.2.16&r2=1.1.2.17&ty=u Index: ZendEngine2/zend_strtod.c diff -u ZendEngine2/zend_strtod.c:1.1.2.16 ZendEngine2/zend_strtod.c:1.1.2.17 --- ZendEngine2/zend_strtod.c:1.1.2.16 Thu Feb 10 17:19:55 2005 +++ ZendEngine2/zend_strtod.c Wed Feb 16 23:45:14 2005 @@ -101,6 +101,14 @@ #include <stdint.h> #endif +#ifndef HAVE_INT32_T +# if SIZEOF_INT == 4 +typedef int int32_t; +# elif SIZEOF_LONG == 4 +typedef long int int32_t; +# endif +#endif + #ifndef HAVE_UINT32_T # if SIZEOF_INT == 4 typedef unsigned int uint32_t;

« previous php.zend-engine.cvs (#3392) next »