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

From: Date: Thu, 17 Feb 2005 04:45:23 +0000
Subject: cvs: Zend(PHP_4_3) / Zend.m4 zend_strtod.c php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3393@lists.php.net to get a copy of this message
sniper Wed Feb 16 23:45:23 2005 EDT Modified files: (Branch: PHP_4_3) /php-src NEWS /Zend 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.1247.2.835&r2=1.1247.2.836&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.835 php-src/NEWS:1.1247.2.836 --- php-src/NEWS:1.1247.2.835 Sat Feb 12 13:16:03 2005 +++ php-src/NEWS Wed Feb 16 23:45:21 2005 @@ -3,7 +3,7 @@ ?? ??? ????, Version 4.3.11 - Added Oracle Instant Client support. (cjbj at hotmail dot com, Tony) - Changed phpize not to require libtool. (Jani) -- 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 MacOSX shared extensions crashing on Apache startup. (Rasmus) @@ -44,7 +44,8 @@ (Ilia) - Fixed bug #31120 (mssql_query returns false on successfull inserts and stored procedures). (Frank) -- Fixed bugs #31107, #31110, #31111 (Compile failure of zend_strtod.c). (Jani) +- Fixed bugs #31107, #31110, #31111, #31249 (Compile failure of zend_strtod.c). + (Jani) - Fixed bug #31106 (Fixed crash in overloaded objects). (Stas) - Fixed bug #31103 (Better error message when c-client cannot be found). (Ilia) - Fixed bug #31101 (missing kerberos header file path with --with-openssl). (Jani) http://cvs.php.net/diff.php/Zend/Zend.m4?r1=1.35.2.9&r2=1.35.2.10&ty=u Index: Zend/Zend.m4 diff -u Zend/Zend.m4:1.35.2.9 Zend/Zend.m4:1.35.2.10 --- Zend/Zend.m4:1.35.2.9 Sat Jan 22 15:31:18 2005 +++ Zend/Zend.m4 Wed Feb 16 23:45:22 2005 @@ -1,5 +1,5 @@ dnl -dnl $Id: Zend.m4,v 1.35.2.9 2005/01/22 20:31:18 sniper Exp $ +dnl $Id: Zend.m4,v 1.35.2.10 2005/02/17 04:45:22 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]) @@ -62,26 +84,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/Zend/zend_strtod.c?r1=1.1.2.15&r2=1.1.2.16&ty=u Index: Zend/zend_strtod.c diff -u Zend/zend_strtod.c:1.1.2.15 Zend/zend_strtod.c:1.1.2.16 --- Zend/zend_strtod.c:1.1.2.15 Thu Feb 10 17:20:27 2005 +++ Zend/zend_strtod.c Wed Feb 16 23:45:22 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 (#3393) next »