[PHP-CVS] svn: /php/php-src/branches/PHP_5_3/ext/standard/tests/network/ define_syslog_variables_variation.phpt
jani Thu, 10 Dec 2009 09:22:54 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291940 Log: - Fix test mess (testing the deprecated ini option is pointless when using the func does same thing) Changed paths: U php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt Modified: php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt === --- php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt 2009-12-10 07:11:52 UTC (rev 291939) +++ php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt 2009-12-10 09:22:54 UTC (rev 291940) @@ -1,12 +1,5 @@ --TEST-- Test define_syslog_variables() function : variation ---SKIPIF-- -?php -if(substr(PHP_OS, 0, 3) == WIN) - die(skip don't run on Windows); -? ---INI-- -define_syslog_variables = true --FILE-- ?php /* Prototype : void define_syslog_variables(void) @@ -15,6 +8,8 @@ * Alias to functions: */ +define_syslog_variables(); + echo *** Testing define_syslog_variables() : variation ***\n; $log_constants = array( @@ -90,8 +85,8 @@ } ? ===DONE=== ---EXPECT-- -Warning: Directive 'define_syslog_variables' is deprecated in PHP 5.3 and greater in Unknown on line 0 +--EXPECTF-- +Deprecated: Function define_syslog_variables() is deprecated in %s on line %d *** Testing define_syslog_variables() : variation *** PASSED ===DONE=== -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /php/php-src/branches/PHP_5_3/ext/standard/tests/network/ define_syslog_variables_variation-win32.phpt
jani Thu, 10 Dec 2009 09:23:06 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291941 Log: - not needed anymore Changed paths: D php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation-win32.phpt Deleted: php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation-win32.phpt === --- php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation-win32.phpt 2009-12-10 09:22:54 UTC (rev 291940) +++ php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation-win32.phpt 2009-12-10 09:23:06 UTC (rev 291941) @@ -1,97 +0,0 @@ ---TEST-- -Test define_syslog_variables() function : variation ---INI-- -define_syslog_variables = true ---SKIPIF-- -?php -if(substr(PHP_OS, 0, 3) != WIN) - die(skip Only run on Windows); -? ---FILE-- -?php -/* Prototype : void define_syslog_variables(void) - * Description: Initializes all syslog-related variables - * Source code: ext/standard/syslog.c - * Alias to functions: - */ - -echo *** Testing define_syslog_variables() : variation ***\n; - -$log_constants = array( - LOG_EMERG, - LOG_ALERT, - LOG_CRIT, - LOG_ERR, - LOG_WARNING, - LOG_NOTICE, - LOG_INFO, - LOG_DEBUG, - LOG_KERN, - LOG_USER, - LOG_MAIL, - LOG_DAEMON, - LOG_AUTH, - LOG_SYSLOG, - LOG_LPR, - LOG_NEWS, - LOG_UUCP, - LOG_CRON, - LOG_AUTHPRIV, - LOG_PID, - LOG_CONS, - LOG_ODELAY, - LOG_NDELAY, - LOG_NOWAIT, - LOG_PERROR, -); - - -$log_variables = array( - LOG_EMERG, - LOG_ALERT, - LOG_CRIT, - LOG_ERR, - LOG_WARNING, - LOG_NOTICE, - LOG_INFO, - LOG_DEBUG, - LOG_KERN, - LOG_USER, - LOG_MAIL, - LOG_DAEMON, - LOG_AUTH, - LOG_SYSLOG, - LOG_LPR, - LOG_NEWS, - LOG_UUCP, - LOG_CRON, - LOG_AUTHPRIV, - LOG_PID, - LOG_CONS, - LOG_ODELAY, - LOG_NDELAY, - LOG_NOWAIT, - LOG_PERROR, -); - -error_reporting(E_ALL); -$failed = false; - -// show variables defined -for ($t = 0; $t count($log_variables); $t++) { - if (isset($$log_variables[$t]) === false || $$log_variables[$t] != $log_constants[$t]) { - $failed = true; - echo FAILED: $log_variables[$t] doesn't contain the correct value\n; - } -} - -if ($failed == false) { - echo PASSED\n; -} -? -===DONE=== ---EXPECT-- -*** Testing define_syslog_variables() : variation *** -PASSED -===DONE=== -Warning: Directive 'define_syslog_variables' is deprecated in PHP 5.3 and greater in Unknown on line 0 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/pdo_mysql/mysql_driver.c branches/PHP_5_3/ext/pdo_mysql/pdo_mysql.c branches/PHP_5_3/ext/pdo_mysql/php_pdo_mysql_int.h trunk/ext/pdo_mysql/mysql_drive
andrey Thu, 10 Dec 2009 09:35:10 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291942 Log: Fix pdo build, forgot to remove the zval caching from pdo-mysql Changed paths: U php/php-src/branches/PHP_5_3/ext/pdo_mysql/mysql_driver.c U php/php-src/branches/PHP_5_3/ext/pdo_mysql/pdo_mysql.c U php/php-src/branches/PHP_5_3/ext/pdo_mysql/php_pdo_mysql_int.h U php/php-src/trunk/ext/pdo_mysql/mysql_driver.c U php/php-src/trunk/ext/pdo_mysql/pdo_mysql.c U php/php-src/trunk/ext/pdo_mysql/php_pdo_mysql_int.h Modified: php/php-src/branches/PHP_5_3/ext/pdo_mysql/mysql_driver.c === --- php/php-src/branches/PHP_5_3/ext/pdo_mysql/mysql_driver.c 2009-12-10 09:23:06 UTC (rev 291941) +++ php/php-src/branches/PHP_5_3/ext/pdo_mysql/mysql_driver.c 2009-12-10 09:35:10 UTC (rev 291942) @@ -731,7 +731,7 @@ } if (mysqlnd_connect(H-server, host, dbh-username, dbh-password, password_len, dbname, dbname_len, - port, unix_socket, connect_opts, PDO_MYSQL_G(mysqlnd_thd_zval_cache) TSRMLS_CC) == NULL) { + port, unix_socket, connect_opts TSRMLS_CC) == NULL) { #else if (mysql_real_connect(H-server, host, dbh-username, dbh-password, dbname, port, unix_socket, connect_opts) == NULL) { #endif Modified: php/php-src/branches/PHP_5_3/ext/pdo_mysql/pdo_mysql.c === --- php/php-src/branches/PHP_5_3/ext/pdo_mysql/pdo_mysql.c 2009-12-10 09:23:06 UTC (rev 291941) +++ php/php-src/branches/PHP_5_3/ext/pdo_mysql/pdo_mysql.c 2009-12-10 09:35:10 UTC (rev 291942) @@ -57,17 +57,12 @@ #if PDO_DBG_ENABLED STD_PHP_INI_ENTRY(pdo_mysql.debug,NULL, PHP_INI_SYSTEM, OnUpdateString, debug, zend_pdo_mysql_globals, pdo_mysql_globals) #endif - STD_PHP_INI_ENTRY(pdo_mysql.cache_size, 2000, PHP_INI_SYSTEM, OnUpdateLong, cache_size, zend_pdo_mysql_globals, pdo_mysql_globals) PHP_INI_END() /* }}} */ #endif -/* true global environment */ -#ifdef PDO_USE_MYSQLND -static MYSQLND_ZVAL_PCACHE *pdo_mysqlnd_zval_cache; -#endif +/* true global environment */ - /* {{{ PHP_MINIT_FUNCTION */ static PHP_MINIT_FUNCTION(pdo_mysql) @@ -89,10 +84,6 @@ REGISTER_PDO_CLASS_CONST_LONG(MYSQL_ATTR_FOUND_ROWS, (long)PDO_MYSQL_ATTR_FOUND_ROWS); REGISTER_PDO_CLASS_CONST_LONG(MYSQL_ATTR_IGNORE_SPACE, (long)PDO_MYSQL_ATTR_IGNORE_SPACE); -#ifdef PDO_USE_MYSQLND - pdo_mysqlnd_zval_cache = mysqlnd_palloc_init_cache(PDO_MYSQL_G(cache_size)); -#endif - return php_pdo_register_driver(pdo_mysql_driver); } /* }}} */ @@ -103,7 +94,6 @@ { php_pdo_unregister_driver(pdo_mysql_driver); #if PDO_USE_MYSQLND - mysqlnd_palloc_free_cache(pdo_mysqlnd_zval_cache); UNREGISTER_INI_ENTRIES(); #endif @@ -120,20 +110,6 @@ php_info_print_table_header(2, PDO Driver for MySQL, enabled); php_info_print_table_row(2, Client API version, mysql_get_client_info()); -#ifdef PDO_USE_MYSQLND - { - zval values; - - php_info_print_table_header(2, Persistent cache, pdo_mysqlnd_zval_cache ? enabled:disabled); - - if (pdo_mysqlnd_zval_cache) { - /* Now report cache status */ - mysqlnd_palloc_stats(pdo_mysqlnd_zval_cache, values); - mysqlnd_minfo_print_hash(values); - zval_dtor(values); - } - } -#endif php_info_print_table_end(); #ifdef PDO_USE_MYSQLND @@ -147,9 +123,7 @@ /* {{{ PHP_RINIT_FUNCTION */ static PHP_RINIT_FUNCTION(pdo_mysql) -{ - PDO_MYSQL_G(mysqlnd_thd_zval_cache) = mysqlnd_palloc_rinit(pdo_mysqlnd_zval_cache); - +{ #if PDO_DBG_ENABLED if (PDO_MYSQL_G(debug)) { MYSQLND_DEBUG *dbg = mysqlnd_debug_init(TSRMLS_C); @@ -170,8 +144,6 @@ */ static PHP_RSHUTDOWN_FUNCTION(pdo_mysql) { - mysqlnd_palloc_rshutdown(PDO_MYSQL_G(mysqlnd_thd_zval_cache)); - #if PDO_DBG_ENABLED MYSQLND_DEBUG *dbg = PDO_MYSQL_G(dbg); PDO_DBG_ENTER(RSHUTDOWN); @@ -190,8 +162,6 @@ */ static PHP_GINIT_FUNCTION(pdo_mysql) { - pdo_mysql_globals-mysqlnd_thd_zval_cache = NULL; /* zval cache */ - pdo_mysql_globals-cache_size = 0; #ifndef PHP_WIN32 pdo_mysql_globals-default_socket = NULL; #endif Modified: php/php-src/branches/PHP_5_3/ext/pdo_mysql/php_pdo_mysql_int.h === --- php/php-src/branches/PHP_5_3/ext/pdo_mysql/php_pdo_mysql_int.h 2009-12-10 09:23:06 UTC (rev 291941) +++ php/php-src/branches/PHP_5_3/ext/pdo_mysql/php_pdo_mysql_int.h 2009-12-10 09:35:10 UTC (rev 291942) @@ -63,8 +63,6 @@ #ifdef PDO_USE_MYSQLND
[PHP-CVS] svn: /php/php-src/trunk/ext/standard/ http_fopen_wrapper.c
felipe Thu, 10 Dec 2009 10:46:33 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291944 Log: - Fix build Changed paths: U php/php-src/trunk/ext/standard/http_fopen_wrapper.c Modified: php/php-src/trunk/ext/standard/http_fopen_wrapper.c === --- php/php-src/trunk/ext/standard/http_fopen_wrapper.c 2009-12-10 10:38:46 UTC (rev 291943) +++ php/php-src/trunk/ext/standard/http_fopen_wrapper.c 2009-12-10 10:46:33 UTC (rev 291944) @@ -654,7 +654,7 @@ if (php_stream_get_line(stream, ZSTR(http_header_line), HTTP_HEADER_BLOCK_SIZE, http_header_line_length) *http_header_line != '\n' *http_header_line != '\r') { char *e = http_header_line + http_header_line_length - 1; if (*e != '\n') { /* partial header */ - php_stream_get_line(stream, http_header_line, HTTP_HEADER_BLOCK_SIZE, http_header_line_length); + php_stream_get_line(stream, ZSTR(http_header_line), HTTP_HEADER_BLOCK_SIZE, http_header_line_length); continue; } while (*e == '\n' || *e == '\r') { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/mysqlnd/mysqlnd.h trunk/ext/mysqlnd/mysqlnd.h
andrey Thu, 10 Dec 2009 11:59:14 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291947 Log: bump version number Changed paths: U php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd.h U php/php-src/trunk/ext/mysqlnd/mysqlnd.h Modified: php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd.h === --- php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd.h 2009-12-10 11:18:05 UTC (rev 291946) +++ php/php-src/branches/PHP_5_3/ext/mysqlnd/mysqlnd.h 2009-12-10 11:59:14 UTC (rev 291947) @@ -22,8 +22,8 @@ #ifndef MYSQLND_H #define MYSQLND_H -#define MYSQLND_VERSION mysqlnd 5.0.6-dev - 091022 - $Revision$ -#define MYSQLND_VERSION_ID 50006 +#define MYSQLND_VERSION mysqlnd 5.0.7-dev - 091210 - $Revision$ +#define MYSQLND_VERSION_ID 50007 /* This forces inlining of some accessor functions */ #define MYSQLND_USE_OPTIMISATIONS 0 Modified: php/php-src/trunk/ext/mysqlnd/mysqlnd.h === --- php/php-src/trunk/ext/mysqlnd/mysqlnd.h 2009-12-10 11:18:05 UTC (rev 291946) +++ php/php-src/trunk/ext/mysqlnd/mysqlnd.h 2009-12-10 11:59:14 UTC (rev 291947) @@ -22,8 +22,8 @@ #ifndef MYSQLND_H #define MYSQLND_H -#define MYSQLND_VERSION mysqlnd 5.0.6-dev - 091022 - $Revision$ -#define MYSQLND_VERSION_ID 50006 +#define MYSQLND_VERSION mysqlnd 5.0.7-dev - 091210 - $Revision$ +#define MYSQLND_VERSION_ID 50007 /* This forces inlining of some accessor functions */ #define MYSQLND_USE_OPTIMISATIONS 0 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /php/php-src/tags/
iliaaThu, 10 Dec 2009 13:12:03 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291949 Log: 5.2.12RC4 Changed paths: A + php/php-src/tags/php_5_2_12RC4/ (from php/php-src/branches/PHP_5_2/:r291948) Property changes on: php/php-src/tags/php_5_2_12RC4 ___ Added: svn:ignore + Makefile.objects Makefile.fragments Makefile acconfig.h aclocal.m4 autom4te.cache bsd_converted buildmk.stamp buildconf.stamp config.h.in config.cache config.log config.status config_vars.mk configuration-parser.c configuration-parser.h configuration-parser.output configuration-scanner.c configure conftest conftest.c generated_lists meta_cc meta_ccld mkinstalldirs missing install-sh internal_functions.c libtool shlibtool php php5.spec stamp-h test.php3 *.lo *.la libs modules php-*.tar.gz want_dependencies deps config.nice php_version.h *.plg *.opt *.ncb Release Release_inline Debug Release_TS Release_TSDbg Release_TS_inline Debug_TS results.txt libs _libs include autom4te.cache FBCIndex FBCLockFolder debug.log confdefs.h configure.js config.nice.bat ZendEngine1 php_test_results_*.txt *.gcda *.gcno lcov_data lcov_html php_lcov.info tmp-php.ini Added: svn:mergeinfo + /php/php-src/branches/PHP_5_3:284120,288260,288273 /php/php-src/trunk:284726 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /php/php-src/branches/PHP_5_2/ NEWS configure.in main/php_version.h
iliaaThu, 10 Dec 2009 13:16:23 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291950 Log: Back to dev Changed paths: U php/php-src/branches/PHP_5_2/NEWS U php/php-src/branches/PHP_5_2/configure.in U php/php-src/branches/PHP_5_2/main/php_version.h Modified: php/php-src/branches/PHP_5_2/NEWS === --- php/php-src/branches/PHP_5_2/NEWS 2009-12-10 13:12:03 UTC (rev 291949) +++ php/php-src/branches/PHP_5_2/NEWS 2009-12-10 13:16:23 UTC (rev 291950) @@ -1,5 +1,7 @@ PHPNEWS ||| +?? Dec 2009, PHP 5.2.12RC5 + 10 Dec 2009, PHP 5.2.12RC4 - Added LIBXML_PARSEHUGE constant to overrides the maximum text size of a single text node when using libxml2.7.3+. (Kalle) Modified: php/php-src/branches/PHP_5_2/configure.in === --- php/php-src/branches/PHP_5_2/configure.in 2009-12-10 13:12:03 UTC (rev 291949) +++ php/php-src/branches/PHP_5_2/configure.in 2009-12-10 13:16:23 UTC (rev 291950) @@ -42,7 +42,7 @@ PHP_MAJOR_VERSION=5 PHP_MINOR_VERSION=2 PHP_RELEASE_VERSION=12 -PHP_EXTRA_VERSION=RC4 +PHP_EXTRA_VERSION=RC5-dev PHP_VERSION=$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 1 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION` Modified: php/php-src/branches/PHP_5_2/main/php_version.h === --- php/php-src/branches/PHP_5_2/main/php_version.h 2009-12-10 13:12:03 UTC (rev 291949) +++ php/php-src/branches/PHP_5_2/main/php_version.h 2009-12-10 13:16:23 UTC (rev 291950) @@ -3,6 +3,6 @@ #define PHP_MAJOR_VERSION 5 #define PHP_MINOR_VERSION 2 #define PHP_RELEASE_VERSION 12 -#define PHP_EXTRA_VERSION RC4 -#define PHP_VERSION 5.2.12RC4 +#define PHP_EXTRA_VERSION RC5-dev +#define PHP_VERSION 5.2.12RC5-dev #define PHP_VERSION_ID 50212 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/oci8/README trunk/ext/oci8/README
sixd Thu, 10 Dec 2009 17:28:19 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291958 Log: Remove text recently merged to online doc Changed paths: U php/php-src/branches/PHP_5_3/ext/oci8/README U php/php-src/trunk/ext/oci8/README Modified: php/php-src/branches/PHP_5_3/ext/oci8/README === --- php/php-src/branches/PHP_5_3/ext/oci8/README 2009-12-10 17:13:14 UTC (rev 291957) +++ php/php-src/branches/PHP_5_3/ext/oci8/README 2009-12-10 17:28:19 UTC (rev 291958) @@ -1,454 +1,12 @@ -Installing OCI8 +The OCI8 Extension +-- -0. Overview -1. Common requirements -2. Installing as a shared extension -3. Installing as a statically compiled extension -4. Installing from PECL to an existing PHP -5. Testing OCI8 -6. Oracle DRCP and FAN Support +The OCI8 extension allows PHP to access Oracle databases. It can be +built using Oracle 9.2, 10, or 11 client libraries. It allows Oracle's +standard cross-version connectivity, for example PHP using Oracle 10.2 +libraries can connect to Oracle Database 9.2 onwards. +This release of OCI8 can be used with PHP versions 4.3.9 to 5.x. -0. Overview - -The OCI8 extension allows you to access Oracle databases. It can be -built using Oracle 9.2, 10.2, 11.1 or 11.2 client libraries, and -allows Oracle's standard cross-version connectivity. This release can -be used with PHP versions 4.3.9 to 5.x. - -The OCI8 extension is not related to, or used by, PDO_OCI, the PHP -Data Objects (PDO) extension for Oracle. - -1. Common requirements --- - -This version of PHP OCI8: - - - Will build with Oracle 9.2 (or more recent) client libraries. The -same (or more recent) version of Oracle libraries used when -building OCI8 must also be used at runtime. - - - Can be used with PHP versions 4.3.9 to 5.x. - -If you build PHP with the ORACLE_HOME Oracle database or full Oracle -client libraries: - - - you MUST set at least the ORACLE_HOME environment variable and -make it visible for your web server BEFORE it starts. - - - the Oracle software must be readable by the web server. With -Oracle 10.2, see the $ORACLE_HOME/install/changePerm.sh script -included in patch releases. - -If you build PHP with Oracle Instant Client libraries from -http://www.oracle.com/technology/tech/oci/instantclient/index.html - - - either the basic or basic-lite package is required. - - - the devel package is required. - - - you don't have to set ORACLE_HOME and many of the other -environment variables to build PHP with OCI8 support. - -For both ORACLE_HOME and Instant Client installs you may have to set: - - - LD_LIBRARY_PATH: it must include the $ORACLE_HOME/lib or Instant -Client library directory - - - NLS_LANG: if you want to change the default encoding used during -interaction with Oracle servers - -The most appropriate places to add the environment variables are: - - /etc/profile - /etc/profile.local - /etc/profile.d - - -2. Installing as a shared extension - -Configure OCI8 using one of the the following configure options: - - a) if you use an Oracle server or Oracle Client installation: - - ./configure --with-oci8=shared,$ORACLE_HOME - - b) with Oracle Instant Client: - - ./configure --with-oci8=shared,instantclient,/path/to/instant/client/lib - -If you use an RPM-based installation of Oracle Instant Client, -your configure line will look like this: - - ./configure --with-oci8=shared,instantclient,/usr/lib/oracle/version/client/lib - -Follow the usual building procedure, e.g. make install. The OCI8 -shared extension oci8.so will be created. It may need to be manually -moved to the PHP extension directory, specified by the extension_dir -option in your php.ini file. - -Edit php.ini file and add the line: - - extension=oci8.so - - -3. Installing as a statically compiled extension - - -Configure OCI8 using one of the the following configure options: - - a) with a common Oracle server or full Oracle client installation - - ./configure --with-oci8=$ORACLE_HOME - - b) with Oracle Instant Client - - ./configure --with-oci8=instantclient,/path/to/instant/client/lib - -Run make install. - -After successful compile, you do not need to add oci8.so to php.ini. -The module will be usable without any additional actions. - - -4. Installing from PECL to an existing PHP --- - -The OCI8 extension is also available as a PECL module on -http://pecl.php.net/package/oci8. - -Install using either (a) or (b) below. - - a) Do an automated download and install: - -Set PEARs proxy, if necessary: - - pear config-set http_proxy http://my-proxy.example.com:80/ - -Run - - pecl install oci8 - -When prompted, enter either the
Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/ext/standard/http_fopen_wrapper.c trunk/ext/standard/http_fopen_wrapper.c
We are too close to the 5.2 release, I'll merge it after the final release into the 5.2 branch. On 09-12-10 2:05 AM, Jani Taskinen wrote: It happens in PHP_5_2 as well, why not fix that too? :) --Jani On 12/10/2009 05:23 AM, Ilia Alshanetsky wrote: iliaaThu, 10 Dec 2009 03:23:05 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291938 Log: Fixed bug #49851 (http wrapper breaks on 1024 char long headers). Bug: http://bugs.php.net/49851 (Open) http wrapper breaks on 1024 char long headers Changed paths: U php/php-src/branches/PHP_5_3/NEWS U php/php-src/branches/PHP_5_3/ext/standard/http_fopen_wrapper.c U php/php-src/trunk/ext/standard/http_fopen_wrapper.c Modified: php/php-src/branches/PHP_5_3/NEWS === --- php/php-src/branches/PHP_5_3/NEWS2009-12-10 02:25:47 UTC (rev 291937) +++ php/php-src/branches/PHP_5_3/NEWS2009-12-10 03:23:05 UTC (rev 291938) @@ -95,6 +95,7 @@ - Fixed bug #49866 (Making reference on string offsets crashes PHP). (Dmitry) - Fixed bug #49855 (import_request_variables() always returns NULL). (Ilia, sjoerd at php dot net) +- Fixed bug #49851 (http wrapper breaks on 1024 char long headers). (Ilia) - Fixed bug #49800 (SimpleXML allow (un)serialize() calls without warning). (Ilia, wmeler at wp-sa dot pl) - Fixed bug #49719 (ReflectionClass::hasProperty returns true for a private Modified: php/php-src/branches/PHP_5_3/ext/standard/http_fopen_wrapper.c === --- php/php-src/branches/PHP_5_3/ext/standard/http_fopen_wrapper.c 2009-12-10 02:25:47 UTC (rev 291937) +++ php/php-src/branches/PHP_5_3/ext/standard/http_fopen_wrapper.c 2009-12-10 03:23:05 UTC (rev 291938) @@ -610,6 +610,10 @@ size_t http_header_line_length; if (php_stream_get_line(stream, http_header_line, HTTP_HEADER_BLOCK_SIZE,http_header_line_length) *http_header_line != '\n' *http_header_line != '\r') { char *e = http_header_line + http_header_line_length - 1; +if (*e != '\n') { /* partial header */ +php_stream_get_line(stream, http_header_line, HTTP_HEADER_BLOCK_SIZE,http_header_line_length); +continue; +} while (*e == '\n' || *e == '\r') { e--; } Modified: php/php-src/trunk/ext/standard/http_fopen_wrapper.c === --- php/php-src/trunk/ext/standard/http_fopen_wrapper.c2009-12-10 02:25:47 UTC (rev 291937) +++ php/php-src/trunk/ext/standard/http_fopen_wrapper.c2009-12-10 03:23:05 UTC (rev 291938) @@ -653,6 +653,10 @@ size_t http_header_line_length; if (php_stream_get_line(stream, ZSTR(http_header_line), HTTP_HEADER_BLOCK_SIZE,http_header_line_length) *http_header_line != '\n' *http_header_line != '\r') { char *e = http_header_line + http_header_line_length - 1; +if (*e != '\n') { /* partial header */ +php_stream_get_line(stream, http_header_line, HTTP_HEADER_BLOCK_SIZE,http_header_line_length); +continue; +} while (*e == '\n' || *e == '\r') { e--; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/run-tests.php branches/PHP_5_3/run-tests.php trunk/run-tests.php
jani Fri, 11 Dec 2009 07:34:06 + Revision: http://svn.php.net/viewvc?view=revisionrevision=291972 Log: - Fix problem with SKIPIF failing to skip in some cases (deprecated warnings f.e.) Changed paths: U php/php-src/branches/PHP_5_2/run-tests.php U php/php-src/branches/PHP_5_3/run-tests.php U php/php-src/trunk/run-tests.php Modified: php/php-src/branches/PHP_5_2/run-tests.php === --- php/php-src/branches/PHP_5_2/run-tests.php 2009-12-11 06:57:12 UTC (rev 291971) +++ php/php-src/branches/PHP_5_2/run-tests.php 2009-12-11 07:34:06 UTC (rev 291972) @@ -1426,7 +1426,7 @@ $env['USE_ZEND_ALLOC'] = '1'; } - $output = system_with_timeout($extra $php $pass_options -q $ini_settings $test_skipif, $env); + $output = system_with_timeout($extra $php $pass_options -q $ini_settings -d display_errors=0 $test_skipif, $env); if (!$cfg['keep']['skip']) { @unlink($test_skipif); Modified: php/php-src/branches/PHP_5_3/run-tests.php === --- php/php-src/branches/PHP_5_3/run-tests.php 2009-12-11 06:57:12 UTC (rev 291971) +++ php/php-src/branches/PHP_5_3/run-tests.php 2009-12-11 07:34:06 UTC (rev 291972) @@ -1426,7 +1426,7 @@ $env['USE_ZEND_ALLOC'] = '1'; } - $output = system_with_timeout($extra $php $pass_options -q $ini_settings $test_skipif, $env); + $output = system_with_timeout($extra $php $pass_options -q $ini_settings -d display_errors=0 $test_skipif, $env); if (!$cfg['keep']['skip']) { @unlink($test_skipif); Modified: php/php-src/trunk/run-tests.php === --- php/php-src/trunk/run-tests.php 2009-12-11 06:57:12 UTC (rev 291971) +++ php/php-src/trunk/run-tests.php 2009-12-11 07:34:06 UTC (rev 291972) @@ -1140,7 +1140,6 @@ global $leak_check, $temp_source, $temp_target, $cfg, $environment; global $no_clean; global $valgrind_version; - $temp_filenames = null; $org_file = $file; @@ -1427,7 +1426,7 @@ $env['USE_ZEND_ALLOC'] = '1'; } - $output = system_with_timeout($extra $php $pass_options -q $ini_settings $test_skipif, $env); + $output = system_with_timeout($extra $php $pass_options -q $ini_settings -d display_errors=0 $test_skipif, $env); if (!$cfg['keep']['skip']) { @unlink($test_skipif); -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php