From 8b1e9acd2eef54c5c156387f52792efdbfec7677 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Sun, 24 Aug 2003 19:44:48 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'php_4_3_3'. --- ext/bz2/config.m4 | 16 +++++----------- ext/mbstring/mbstring.c | 2 +- ext/mbstring/tests/bug25140.phpt | 10 ---------- ext/mcve/mcve.c | 9 +-------- ext/openssl/config0.m4 | 17 ----------------- ext/standard/filestat.c | 4 ---- 6 files changed, 7 insertions(+), 51 deletions(-) delete mode 100644 ext/mbstring/tests/bug25140.phpt delete mode 100644 ext/openssl/config0.m4 (limited to 'ext') diff --git a/ext/bz2/config.m4 b/ext/bz2/config.m4 index 90dec7c937..b4ac1ee177 100644 --- a/ext/bz2/config.m4 +++ b/ext/bz2/config.m4 @@ -23,17 +23,11 @@ if test "$PHP_BZ2" != "no"; then AC_MSG_ERROR(Please reinstall the BZip2 distribution) fi - PHP_CHECK_LIBRARY(bz2, BZ2_bzerror, - [ - PHP_ADD_INCLUDE($BZIP_DIR/include) - PHP_ADD_LIBRARY_WITH_PATH(bz2, $BZIP_DIR/lib, BZ2_SHARED_LIBADD) - AC_DEFINE(HAVE_BZ2,1,[ ]) - ], [ - AC_MSG_ERROR(bz2 module requires libbz2 >= 1.0.0) - ], [ - -L$BZIP_DIR/lib - ]) + PHP_ADD_INCLUDE($BZIP_DIR/include) - PHP_NEW_EXTENSION(bz2, bz2.c, $ext_shared) PHP_SUBST(BZ2_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(bz2, $BZIP_DIR/lib, BZ2_SHARED_LIBADD) + AC_CHECK_LIB(bz2, BZ2_bzerror, [AC_DEFINE(HAVE_BZ2,1,[ ])], [AC_MSG_ERROR(bz2 module requires libbz2 >= 1.0.0)],) + + PHP_NEW_EXTENSION(bz2, bz2.c, $ext_shared) fi diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 7e53e7e350..b0939cebc1 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -2485,7 +2485,7 @@ MBSTRING_API char * php_mb_convert_encoding(char *input, size_t length, char *_t if (output_len) { *output_len = 0; } - if (!input) { + if ( !input || !length) { return NULL; } /* new encoding */ diff --git a/ext/mbstring/tests/bug25140.phpt b/ext/mbstring/tests/bug25140.phpt deleted file mode 100644 index 0b209120f5..0000000000 --- a/ext/mbstring/tests/bug25140.phpt +++ /dev/null @@ -1,10 +0,0 @@ ---TEST-- -Bug #25140 (mb_convert_encoding returns FALSE on an empty string) ---SKIPIF-- - ---FILE-- - ---EXPECT-- -string(0) "" diff --git a/ext/mcve/mcve.c b/ext/mcve/mcve.c index 44cefacbfc..a328037baa 100644 --- a/ext/mcve/mcve.c +++ b/ext/mcve/mcve.c @@ -509,17 +509,10 @@ PHP_FUNCTION(mcve_destroyconn) if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) WRONG_PARAM_COUNT; -/* If MCVE_DestroyConn() is called within a PHP script, the Resource handle is - never cleared, as there does not appear to be an UNREGISTER or DESTROY resource - call in the Zend API. What happens is this uninitialized memory location is - passed again to the MCVE_DestroyConn() function at script exit (cleanup), and - causes weird stuff. So we just go ahead and let the PHP garbage collector call - our _free_mcve_conn() we registered (le_conn) to clean up */ -#if 0 ZEND_FETCH_RESOURCE(conn, MCVE_CONN *, arg, -1, "mcve connection", le_conn); MCVE_DestroyConn(conn); -#endif + RETURN_TRUE; } /* }}} */ diff --git a/ext/openssl/config0.m4 b/ext/openssl/config0.m4 deleted file mode 100644 index 157c35b66b..0000000000 --- a/ext/openssl/config0.m4 +++ /dev/null @@ -1,17 +0,0 @@ -dnl -dnl $Id$ -dnl - -PHP_ARG_WITH(openssl, for OpenSSL support, -[ --with-openssl[=DIR] Include OpenSSL support (requires OpenSSL >= 0.9.6)]) - -if test "$PHP_OPENSSL" != "no"; then - PHP_SETUP_OPENSSL(OPENSSL_SHARED_LIBADD, - [ - PHP_NEW_EXTENSION(openssl, openssl.c xp_ssl.c, $ext_shared) - PHP_SUBST(OPENSSL_SHARED_LIBADD) - AC_DEFINE(HAVE_OPENSSL_EXT,1,[ ]) - ], [ - AC_MSG_ERROR([OpenSSL check failed. Please check config.log for more information.]) - ]) -fi diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index e199583d47..94580f6fdd 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -34,10 +34,6 @@ # include #endif -#if HAVE_SYS_PARAM_H -# include -#endif - #if HAVE_SYS_VFS_H # include #endif -- cgit v1.2.1