Version 5.2

PHP 5.2.17
Released 06 Jan, 2011
PHP 5.2.16
Released 16 Dec, 2010
PHP 5.2.15
Released 09 Dec, 2010
fixed null pointer dereference in ziparchive
  • Fixed possible crash in mssql_fetch_batch(). (Kalle) (CVE-2010-3709).
  • Fixed bug #53492 (fix crash if anti-aliasing steps are invalid).
  • Fixed bug #53323 (pdo_firebird getAttribute() crash).
  • Fixed bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with large amount of data). (CVE-2010-3709).
  • Fixed bug #52879 (Objects unreferenced in __get, __set, __isset or __unset can be freed too early).
  • Fixed bug #52772 (var_dump() doesn't check for the existence of get_class_name before calling it).
  • Fixed bug #52546 (pdo_dblib segmentation fault when iterating MONEY values).
  • Fixed bug #52436 (Compile error if systems do not have stdint.h)
  • Fixed bug #52390 (mysqli_report() should be per-request setting).
  • Fixed bug #51008 (Zend/tests/bug45877.phpt fails).
  • Fixed bug #47643 (array_diff() takes over 3000 times longer than php 5.2.4).
  • Fixed bug #44248 (RFC2616 transgression while HTTPS request through proxy with SoapClient object).
PHP 5.2.14
Released 22 Jul, 2010
reset error state in pdo
  • Fixed a possible stack exaustion inside fnmatch(). Reporeted by Stefan Esser
  • Fixed a NULL pointer dereference when processing invalid XML-RPC requests (Fixes CVE-2010-0397, bug #51288).
  • Fixed handling of session variable serialization on certain prefix characters. Reported by Stefan Esser
  • Fixed a possible arbitrary memory access inside sqlite extension. Reported by Mateusz Kocielski.
  • Fixed a crash when calling an inexistent method of a class that inherits PDOStatement if instantiated directly instead of doing by the PDO methods.
  • Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate filter fed invalid data).
  • Fixed bug #52317 (Segmentation fault when using mail() on a rhel 4.x (only 64 bit)).
  • Fixed bug #52238 (Crash when an Exception occured in iterator_to_array).
  • Fixed bug #52237 (Crash when passing the reference of the property of a non-object).
fixed bug #52163 (splfileobject
  • Fixed bug #52162 (custom request header variables with numbers are removed).
  • Fixed bug #52160 (Invalid E_STRICT redefined constructor error).
  • Fixed bug #52061 (memory_limit above 2G).
  • Fixed bug #52041 (Memory leak when writing on uninitialized variable returned from function).
  • Fixed bug #52037 (Concurrent builds fail in install-programs).
  • Fixed bug #52019 (make lcov doesn't support TESTS variable anymore).
  • Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command).
fixed bug #51911 (reflectionparameter
  • Fixed bug #51905 (ReflectionParameter fails if default value is an array with an access to self::).
  • Fixed bug #51822 (Segfault with strange __destruct() for static class variables).
  • Fixed bug #51671 (imagefill does not work correctly for small images).
  • Fixed bug #51670 (getColumnMeta causes segfault when re-executing query after calling nextRowset).
  • Fixed bug #51629 (CURLOPT_FOLLOWLOCATION error message is misleading).
  • Fixed bug #51617 (PDO PGSQL still broken against PostGreSQL < 7.4).
  • Fixed bug #51615 (PHP crash with wrong HTML in SimpleXML).
fixed bug #51608 (pg_copy_to
  • Fixed bug #51607 (pg_copy_from does not allow schema in the tablename argument).
  • Fixed bug #51604 (newline in end of header is shown in start of message).
  • Fixed bug #51562 (query timeout in mssql can not be changed per query).
  • Fixed bug #51552 (debug_backtrace() causes segmentation fault and/or memory issues).
fixed bug #51532 (wrong prototype for splfileobject
  • Fixed bug #51445 (var_dump() invalid/slow *RECURSION* detection).
fixed bug #51393 (datetime
  • Fixed bug #51374 (Wrongly initialized object properties).
  • Fixed bug #51338 (URL-Rewriter is still enabled if use_only_cookies is on).
  • Fixed bug #51273 (Faultstring property does not exist when the faultstring is empty)
  • Fixed bug #51269 (zlib.output_compression Overwrites Vary Header).
  • Fixed bug #51263 (imagettftext and rotated text uses wrong baseline)
  • Fixed bug #51237 (milter SAPI crash on startup).
  • Fixed bug #51213 (pdo_mssql is trimming value of the money column).
  • Fixed bug #51192 (FILTER_VALIDATE_URL will invalidate a hostname that includes '-'). .
  • Fixed bug #51190 (ftp_put() returns false when transfer was successful).
  • Fixed bug #51183 (ext/date/php_date.c fails to compile with Sun Studio).
  • Fixed bug #51171 (curl_setopt() doesn't output any errors or warnings when an invalid option is provided).
  • Fixed bug #51128 (imagefill() doesn't work with large images).
  • Fixed bug #51086 (DBA DB4 doesn't work with Berkeley DB 4.8).
  • Fixed bug #51062 (DBA DB4 uses mismatched headers and libraries).
  • Fixed bug #51023 (filter doesn't detect int overflows with GCC 4.4).
  • Fixed bug #50762 (in WSDL mode Soap Header handler function only being called if defined in WSDL).
  • Fixed bug #50698 (SoapClient should handle wsdls with some incompatiable endpoints).
  • Fixed bug #50383 (Exceptions thrown in __call() / __callStatic() do not include file and line in trace).
  • Fixed bug #49730 (Firebird - new PDO() returns NULL).
  • Fixed bug #49723 (LimitIterator with empty SeekableIterator).
  • Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the number of reported malformed sequences). (CVE-2010-3870)
  • Fixed bug #49576 (FILTER_VALIDATE_EMAIL filter needs updating)
  • Fixed bug #49320 (PDO returns null when SQLite connection fails).
  • Fixed bug #49267 (Linking fails for iconv).
  • Fixed bug #48601 (xpath() returns FALSE for legitimate query).
  • Fixed bug #48289 (iconv_mime_encode() quoted-printable scheme is broken). .
  • Fixed bug #43314 (iconv_mime_encode(), broken Q scheme).
  • Fixed bug #33210 (getimagesize() fails to detect width/height on certain JPEGs).
  • Fixed bug #23229 (syslog() truncates messages).
PHP 5.2.13
Released 25 Feb, 2010
fixed bug #50823 (reflectionfunction
  • Fixed bug #50832 (HTTP fopen wrapper does not support passwordless HTTP authentication). (Jani) statically" error).
fixed bug #50791 (compile failure
  • Fixed bug #50787 (stream_set_write_buffer() has no effect on socket streams).
  • Fixed bug #50772 (mysqli constructor without parameters does not return a working mysqli object).
  • Fixed bug #50761 (system.multiCall crashes in xmlrpc extension).
  • Fixed bug #50732 (exec() adds single byte twice to $output array).
  • Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0).
  • Fixed bug #50727 (Accessing mysqli->affected_rows on no connection causes segfault).
  • Fixed bug #50680 (strtotime() does not support eighth ordinal number).
fixed bug #50661 (domdocument
  • Fixed bug #50657 (copy() with an empty (zero-byte) HTTP source succeeds but returns false).
  • Fixed bug #50636 (MySQLi_Result sets values before calling constructor).
  • Fixed bug #50632 (filter_input() does not return default value if the variable does not exist).
  • Fixed bug #50576 (XML_OPTION_SKIP_TAGSTART option has no effect).
  • Fixed bug #50575 (PDO_PGSQL LOBs are not compatible with PostgreSQL 8.5).
  • Fixed bug #50558 (Broken object model when extending tidy).
  • Fixed bug #50540 (Crash while running ldap_next_reference test cases).
fixed bug #50508 (compile failure
  • Fixed bug #50394 (Reference argument converted to value in __call).
  • Fixed bug #49851 (http wrapper breaks on 1024 char long headers).
  • Fixed bug #49600 (imageTTFText text shifted right).
  • Fixed bug #49585 (date_format buffer not long enough for >4 digit years).
  • Fixed bug #49463 (setAttributeNS fails setting default namespace).
  • Fixed bug #48667 (Implementing Iterator and IteratorAggregate).
  • Fixed bug #48590 (SoapClient does not honor max_redirects).
  • Fixed bug #48190 (Content-type parameter "boundary" is not case-insensitive in HTTP uploads).
  • Fixed bug #47601 (defined() requires class to exist when testing for class constants).
  • Fixed bug #47409 (extract() problem with array containing word "this").
  • Fixed bug #47002 (Field truncation when reading from dbase dbs with more then 1024 fields).
  • Fixed bug #45599 (strip_tags() truncates rest of string with invalid attribute).
PHP 5.2.12
Released 17 Dec, 2009
fixed crash in sqlitedatabase
  • Fixed a open_basedir bypass in posix_mkfifo() identified by Grzegorz Stachowiak. (Rasmus) when calling using Reflection.
  • Fixed crash when instantiating PDORow and PDOStatement through Reflection.
  • Fixed memory leak in openssl_pkcs12_export_to_file().
  • Fixed bug #50445 (PDO-ODBC stored procedure call from Solaris 64-bit causes segfault).
  • Fixed bug #50345 (nanosleep not detected properly on some solaris versions).
  • Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN).
  • Fixed bug #50285 (xmlrpc does not preserve keys in encoded indexed arrays).
  • Fixed bug #50282 (xmlrpc_encode_request() changes object into array in calling function).
  • Fixed bug #50266 (conflicting types for llabs).
  • Fixed bug #50255 (isset() and empty() silently casts array to object).
  • Fixed bug #50219 (soap call Segmentation fault on a redirected url).
  • Fixed bug #50209 (Compiling with libedit cannot find readline.h).
  • Fixed bug #50207 (segmentation fault when concatenating very large strings on 64bit linux).
  • Fixed bug #50195 (pg_copy_to() fails when table name contains schema.
  • Fixed bug #50185 (ldap_get_entries() return false instead of an empty array when there is no error).
  • Fixed bug #50174 (Incorrectly matched docComment).
  • Fixed bug #50168 (FastCGI fails with wrong error on HEAD request to non-existent file).
  • Fixed bug #50162 (Memory leak when fetching timestamp column from Oracle database).
  • Fixed bug #50158 (FILTER_VALIDATE_EMAIL fails with valid addresses containing = or ?).
  • Fixed bug #50073 (parse_url() incorrect when ? in fragment).
  • Fixed bug #50006 (Segfault caused by uksort()).
  • Fixed bug #50005 (Throwing through Reflection modified Exception object makes segmentation fault).
  • Fixed bug #49990 (SNMP3 warning message about security level printed twice).
  • Fixed bug #49985 (pdo_pgsql prepare() re-use previous aborted transaction).
  • Fixed bug #49972 (AppendIterator undefined function crash).
  • Fixed bug #49921 (Curl post upload functions changed).
  • Fixed bug #49855 (import_request_variables() always returns NULL).
  • Fixed bug #49847 (exec() fails to return data inside 2nd parameter, given output lines >4095 bytes).
  • Fixed bug #49809 (time_sleep_until() is not available on OpenSolaris).
  • Fixed bug #49785 (insufficient input string validation of htmlspecialchars()).
  • Fixed bug #49757 (long2ip() can return wrong value in a multi-threaded applications).
  • Fixed bug #49738 (calling mcrypt() after mcrypt_generic_deinit() crashes).
fixed bug #49719 (reflectionclass
  • Fixed bug #49698 (Unexpected change in strnatcasecmp()).
  • Fixed bug #49677 (ini parser crashes with apache2 and using ${something} ini variables).
  • Fixed bug #49660 (libxml 2.7.3+ limits text nodes to 10MB).
  • Fixed bug #49647 (DOMUserData does not exist).
  • Fixed bug #49630 (imap_listscan() function missing).
  • Fixed bug #49627 (error_log to specified file does not log time according to date.timezone).
  • Fixed bug #49578 (make install-pear fails).
  • Fixed bug #49536 (mb_detect_encoding() returns incorrect results when mbstring.strict_mode is turned on).
  • Fixed bug #49531 (CURLOPT_INFILESIZE sometimes causes warning "CURLPROTO_FILE cannot be set").
  • Fixed bug #49528 (UTF-16 strings prefixed by BOMs wrongly converted).
  • Fixed bug #49521 (PDO fetchObject sets values before calling constructor).
  • Fixed bug #49517 (cURL's CURLOPT_FILE prevents file from being deleted after fclose()).
  • Fixed bug #49472 (Constants defined in Interfaces can be overridden).
  • Fixed bug #49354 (mb_strcut() cuts wrong length when offset is in the middle of a multibyte character).
  • Fixed bug #49332 (Build error with Snow Leopard).
  • Fixed bug #49244 (Floating point NaN cause garbage characters).
  • Fixed bug #49174 (crash when extending PDOStatement and trying to set queryString property).
  • Fixed bug #49098 (mysqli segfault on error).
  • Fixed bug #48805 (IPv6 socket transport is not working).
fixed bug #48764 (pdo_pgsql
  • Fixed bug #47848 (importNode doesn't preserve attribute namespaces).
  • Fixed bug #45120 (PDOStatement->execute() returns true then false for same statement).
  • Fixed bug #34852 (Failure in odbc_exec() using oracle-supplied odbc driver).
PHP 5.2.11
Released 17 Sep, 2009
fixed bug #49286 (php
  • Fixed bug #49289 (bcmath module doesn't compile with phpize configure).
  • Fixed bug #49269 (Ternary operator fails on Iterator object when used inside foreach declaration).
  • Fixed bug #49236 (Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)).
  • Fixed bug #49144 (Import of schema from different host transmits original authentication details).
  • Fixed bug #49132 (posix_times returns false without error).
  • Fixed bug #49125 (Error in dba_exists C code).
  • Fixed bug #49095 (proc_get_status['exitcode'] fails on win32).
  • Fixed bug #49074 (private class static fields can be modified by using reflection).
  • Fixed bug #49072 (feof never returns true for damaged file in zip).
  • Fixed bug #49052 (context option headers freed too early when using --with-curlwrappers).
fixed bug #49032 (splfileobject
  • Fixed bug #49026 (proc_open() can bypass safe_mode_protected_env_vars restrictions).
  • Fixed bug #49000 (PHP CLI in Interactive mode (php -a) crashes when including files from function).
  • Fixed bug #48994 (zlib.output_compression does not output HTTP headers when set to a string value).
  • Fixed bug #48980 (Crash when compiling with pdo_firebird).
  • Fixed bug #48962 (cURL does not upload files with specified filename).
  • Fixed bug #48929 (Double \r\n after HTTP headers when "header" context option is an array).
  • Fixed bug #48913 (Too long error code strings in pdo_odbc driver).
  • Fixed bug #48802 (printf() returns incorrect outputted length).
  • Fixed bug #48801 (Problem with imagettfbbox).
  • Fixed bug #48788 (RecursiveDirectoryIterator doesn't descend into symlinked directories).
  • Fixed bug #48774 (SIGSEGVs when using curl_copy_handle()).
  • Fixed bug #48763 (ZipArchive produces corrupt archive).
  • Fixed bug #48762 (IPv6 address filter still rejects valid address).
  • Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns on files that have been opened with r+).
  • Fixed bug #48732 (TTF Bounding box wrong for letters below baseline).
  • Fixed bug #48718 (FILTER_VALIDATE_EMAIL does not allow numbers in domain components).
  • Fixed bug #48709 (metaphone and 'wh').
  • Fixed bug #48697 (mb_internal_encoding() value gets reset by parse_str()).
  • Fixed bug #48696 (ldap_read() segfaults with invalid parameters).
  • Fixed bug #48693 (Double declaration of __lambda_func when lambda wrongly formatted).
  • Fixed bug #48661 (phpize is broken with non-bash shells).
  • Fixed bug #48645 (mb_convert_encoding() doesn't understand hexadecimal html-entities).
  • Fixed bug #48637 ("file" fopen wrapper is overwritten when using --with-curlwrappers).
  • Fixed bug #48636 (Error compiling of ext/date on netware).
  • Fixed bug #48629 (get_defined_constants() ignores categorize parameter).
  • Fixed bug #48619 (imap_search ALL segfaults).
  • Fixed bug #48608 (Invalid libreadline version not detected during configure).
  • Fixed bug #48555 (ImageFTBBox() differs from previous versions for texts with new lines)
  • Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException "SQLSTATE[] (null)").
  • Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent when using TMPDIR).
  • Fixed bug #48450 (Compile failure under IRIX 6.5.30 building gd.c).
  • Fixed bug #48400 (imap crashes when closing stream opened with OP_PROTOTYPE flag).
  • Fixed bug #48284 (hash "adler32" byte order is reversed).
  • Fixed bug #48276 (date("Y") on big endian machines produces the wrong result).
  • Fixed bug #48247 (Infinite loop and possible crash during startup with errors when errors are logged).
  • Fixed bug #48182 (ssl handshake fails during asynchronous socket connection).
  • Fixed bug #48116 (Fixed build with Openssl 1.0).
  • Fixed bug #48060 (pdo_pgsql - large objects are returned as empty).
  • Fixed bug #48057 (Only the date fields of the first row are fetched, others are empty).
  • Fixed bug #47481 (natcasesort() does not sort extended ASCII characters correctly).
  • Fixed bug #47351 (Memory leak in DateTime).
  • Fixed bug #47273 (Encoding bug in SoapServer->fault).
  • Fixed bug #46020 (with Sun Java System Web Server 7.0 on HPUX, #define HPUX).
  • Fixed bug #45905 (imagefilledrectangle() clipping error).
  • Fixed bug #45280 (Reflection of instantiated COM classes causes PHP to crash).
  • Fixed bug #45141 (setcookie will output expires years of >4 digits).
  • Fixed bug #44683 (popen crashes when an invalid mode is passed).
  • Fixed bug #44144 (spl_autoload_functions() should return object instance when appropriate).
  • Fixed bug #43510 (stream_get_meta_data() does not return same mode as used in fopen).
  • Fixed bug #42434 (ImageLine w/ antialias = 1px shorter).
  • Fixed bug #28038 (Sent incorrect RCPT TO commands to SMTP server)
  • Fixed bug #49572 (use of C++ style comments causes build failure).
PHP 5.2.10
Released 18 Jun, 2009
fixed bug #48336 (reflectionproperty
  • Fixed bug #48359 (Script hangs on snmprealwalk if OID is not increasing). (Ilia, simonov at gmail dot com) with redeclared property).
  • Fixed bug #48326 (constant MSG_DONTWAIT not defined).
  • Fixed bug #48313 (fgetcsv() does not return null for empty rows).
  • Fixed bug #48309 (stream_copy_to_stream() and fpasstru() do not update stream position of plain files).
  • Fixed bug #48307 (stream_copy_to_stream() copies 0 bytes when $source is a socket).
  • Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values).
  • Fixed bug #48256 (Crash due to double-linking of history.o).
  • Fixed bug #48248 (SIGSEGV when access to private property via &__get).
  • Fixed bug #48247 (Crash on errors during startup).
  • Fixed bug #48240 (DBA Segmentation fault dba_nextkey).
  • Fixed bug #48224 (Incorrect shuffle in array_rand).
  • Fixed bug #48221 (memory leak when passing invalid xslt parameter).
  • Fixed bug #48207 (CURLOPT_(FILE|WRITEHEADER options do not error out when working with a non-writable stream).
  • Fixed bug #48206 (Iterating over an invalid data structure with RecursiveIteratorIterator leads to a segfault).
  • Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid paths).
  • Fixed bug #48203 (Crash when CURLOPT_STDERR is set to regular file).
  • Fixed bug #48202 (Out of Memory error message when passing invalid file path)
  • Fixed bug #48156 (Added support for lcov v1.7).
  • Fixed bug #48132 (configure check for curl ssl support fails with --disable-rpath).
  • Fixed bug #48131 (Don't try to bind ipv4 addresses to ipv6 ips via bindto).
fixed bug #48070 (pdo_oci
  • Fixed bug #48058 (Year formatter goes wrong with out-of-int range).
  • Fixed bug #48038 (odbc_execute changes variables used to form params array).
  • Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams).
  • Fixed bug #47991 (SSL streams fail if error stack contains items).
  • Fixed bug #47981 (error handler not called regardless).
  • Fixed bug #47969 (ezmlm_hash() returns different values depend on OS).
  • Fixed bug #47946 (ImageConvolution overwrites background).
  • Fixed bug #47940 (memory leaks in imap_body).
  • Fixed bug #47937 (system() calls sapi_flush() regardless of output buffering).
  • Fixed bug #47903 ("@" operator does not work with string offsets).
  • Fixed bug #47893 (CLI aborts on non blocking stdout).
  • Fixed bug #47849 (Non-deep import loses the namespace).
  • Fixed bug #47845 (PDO_Firebird omits first row from query).
  • Fixed bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value).
  • Fixed bug #47831 (Compile warning for strnlen() in main/spprintf.c).
  • Fixed bug #47828 (openssl_x509_parse() segfaults when a UTF-8 conversion fails).
  • Fixed bug #47818 (Segfault due to bound callback param).
fixed bug #47801 (__call() accessed via parent
  • Fixed bug #47769 (Strange extends PDO).
  • Fixed bug #47745 (FILTER_VALIDATE_INT doesn't allow minimum integer).
  • Fixed bug #47721 (Alignment issues in mbstring and sysvshm extension).
  • Fixed bug #47704 (PHP crashes on some "bad" operations with string offsets).
  • Fixed bug #47695 (build error when xmlrpc and iconv are compiled against different iconv versions).
fixed bug #47667 (ziparchive
  • Fixed bug #47644 (Valid integers are truncated with json_decode()).
fixed bug #47639 (pg_copy_from() warning
  • Fixed bug #47616 (curl keeps crashing).
  • Fixed bug #47598 (FILTER_VALIDATE_EMAIL is locale aware).
  • Fixed bug #47566 (pcntl_wexitstatus() returns signed status).
  • Fixed bug #47564 (unpacking unsigned long 32bit bit endian returns wrong result).
  • Fixed bug #47487 (performance degraded when reading large chunks after fix of bug #44607).
  • Fixed bug #47468 (enable cli|cgi-only extensions for embed sapi).
  • Fixed bug #47435 (FILTER_FLAG_NO_PRIV_RANGE does not work with ipv6 addresses in the filter extension).
  • Fixed bug #47430 (Errors after writing to nodeValue parameter of an absent previousSibling).
  • Fixed bug #47365 (ip2long() may allow some invalid values on certain 64bit systems).
  • Fixed bug #47254 (Wrong Reflection for extends class).
  • Fixed bug #47042 (cgi sapi is incorrectly removing SCRIPT_FILENAME).
  • Fixed bug #46882 (Serialize / Unserialize misbehaviour under OS with different bit numbers).
  • Fixed bug #46812 (get_class_vars() does not include visible private variable looking at subclass).
  • Fixed bug #46386 (Digest authentication with SOAP module fails against MSSQL SOAP services).
fixed bug #46109 (memory leak when mysqli
  • Fixed bug #45997 (safe_mode bypass with exec/system/passthru (windows only)).
  • Fixed bug #45877 (Array key '2147483647' left as string).
  • Fixed bug #45822 (Near infinite-loops while parsing huge relative offsets).
  • Fixed bug #45799 (imagepng() crashes on empty image).
  • Fixed bug #45622 (isset($arrayObject->p) misbehaves with ArrayObject::ARRAY_AS_PROPS set).
fixed bug #45614 (arrayiterator
  • Fixed bug #45540 (stream_context_create creates bad http request).
  • Fixed bug #45202 (zlib.output_compression can not be set with ini_set()).
  • Fixed bug #45191 (error_log ignores date.timezone php.ini val when setting logging timestamps).
  • Fixed bug #45092 (header HTTP context option not being used when compiled using --with-curlwrappers).
  • Fixed bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime).
  • Fixed bug #44827 (define() is missing error checks for class constants).
  • Fixed bug #44214 (Crash using preg_replace_callback() and global variables).
  • Fixed bug #43073 (TrueType bounding box is wrong for angle<>0).
  • Fixed bug #42663 (gzinflate() try to allocate all memory with truncated data).
  • Fixed bug #42414 (some odbc_*() functions incompatible with Oracle ODBC driver).
  • Fixed bug #42362 (HTTP status codes 204 and 304 should not be gzipped).
  • Fixed bug #42143 (The constant NAN is reported as 0 on Windows)
  • Fixed bug #38805 (PDO truncates text from SQL Server text data type field).
PHP 5.2.9
Released 26 Feb, 2009
fixed bug #47049 (soapclient
  • Fixed bug #47104 (Linking shared extensions fails with icc). (Jani)
  • Fixed bug #47048 (Segfault with new pg_meta_data).
  • Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache).
  • Fixed bug #47037 (No error when using fopen with empty string).
  • Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record).
  • Fixed bug #47027 (var_export doesn't show numeric indices on ArrayObject).
  • Fixed bug #46985 (OVERWRITE and binary mode does not work, regression introduced in 5.2.8).
  • Fixed bug #46973 (IPv6 address filter rejects valid address).
  • Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL).
  • Fixed bug #46959 (Unable to disable PCRE).
  • Fixed bug #46918 (imap_rfc822_parse_adrlist host part not filled in correctly).
  • Fixed bug #46889 (Memory leak in strtotime()).
  • Fixed bug #46887 (Invalid calls to php_error_docref()).
  • Fixed bug #46873 (extract($foo) crashes if $foo['foo'] exists).
  • Fixed bug #46843 (CP936 euro symbol is not converted properly).
  • Fixed bug #46798 (Crash in mssql extension when retrieving a NULL value inside a binary or image column type).
  • Fixed bug #46782 (fastcgi.c parse error).
  • Fixed bug #46760 (SoapClient doRequest fails when proxy is used).
  • Fixed bug #46748 (Segfault when an SSL error has more than one error).
  • Fixed bug #46739 (array returned by curl_getinfo should contain content_type key).
  • Fixed bug #46699 (xml_parse crash when parser is namespace aware).
  • Fixed bug #46419 (Elements of associative arrays with NULL value are lost).
  • Fixed bug #46282 (Corrupt DBF When Using DATE).
  • Fixed bug #46026 (bz2.decompress/zlib.inflate filter tries to decompress after end of stream).
  • Fixed bug #46005 (User not consistently logged under Apache2).
  • Fixed bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse()).
  • Fixed bug #45940 (MySQLI OO does not populate connect_error property on failed connect).
  • Fixed bug #45923 (mb_st[r]ripos() offset not handled correctly).
  • Fixed bug #45327 (memory leak if offsetGet throws exception).
  • Fixed bug #45239 (Encoding detector hangs with mbstring.strict_detection enabled).
  • Fixed bug #45161 (Reusing a curl handle leaks memory).
  • Fixed bug #44336 (Improve pcre UTF-8 string matching performance).
  • Fixed bug #43841 (mb_strrpos() offset is byte count for negative values).
  • Fixed bug #37209 (mssql_execute with non fatal errors).
  • Fixed bug #35975 (Session cookie expires date format isn't the most compatible. Now matches that of setcookie()).
PHP 5.2.8
Released 08 Dec, 2008
PHP 5.2.7
Released 04 Dec, 2008
fixed endless loop in pdostatement
  • Fixed stream_get_line() to behave as documented on non-blocking streams. (Arnaud)
  • Fixed ability to use "internal" heaps in extensions.
  • Fixed weekdays adding/subtracting algorithm.
  • Fixed some ambiguities in the date parser.
  • Fixed a bug with the YYYY-MM format not resetting the day correctly.
  • Fixed a bug in the DateTime->modify() methods, it would not use the advanced relative time strings.
  • Fixed extraction of zip files or directories when the entry name is a relative path.
  • Fixed read or write errors for large zip archives.
  • Fixed security issues detailed in CVE-2008-2665 and CVE-2008-2666.
  • Fixed simplexml asXML() not to lose encoding when dumping entire document to file.
  • Fixed a crash inside PDO when trying instantiate PDORow manually.
  • Fixed build failure of ext/mysqli with libmysql 6.0 - missing rplfunctions.
  • Fixed a regression when using strip_tags() and < is within an attribute.(Scott)
  • Fixed a crash on invalid method in ReflectionParameter constructor.
  • Fixed bug #46732 (mktime.year description is wrong).
  • Fixed bug #46696 (cURL fails in upload files with specified content-type).
  • Fixed bug #46673 (stream_lock call with wrong parameter).
  • Fixed bug #46649 (Setting array element with that same array produces inconsistent results).
  • Fixed bug #46626 (mb_convert_case does not handle apostrophe correctly).
  • Fixed bug #46543 (ibase_trans() memory leaks when using wrong parameters).
  • Fixed bug #46521 (Curl ZTS OpenSSL, error in config.m4 fragment).
  • Fixed bug #46496 (wddx_serialize treats input as ISO-8859-1).
  • Fixed bug #46427 (SoapClient() stumbles over its "stream_context" parameter).
  • Fixed bug #46426 (offset parameter of stream_get_contents() does not workfor "0").
  • Fixed bug #46406 (Unregistering nodeclass throws E_FATAL).
  • Fixed bug #46389 (NetWare needs small patch for _timezone).
  • Fixed bug #46388 (stream_notification_callback inside of object destroys object variables).
  • Fixed bug #46381 (wrong $this passed to internal methods causes segfault).
  • Fixed bug #46379 (Infinite loop when parsing '#' in one line file).
  • Fixed bug #46366 (bad cwd with / as pathinfo).
  • Fixed bug #46360 (TCP_NODELAY constant for socket_{get,set}_option).
  • Fixed bug #46343 (IPv6 address filter accepts invalid address).
fixed bug #46335 (domtext
  • Fixed bug #46323 (compilation of simplexml for NetWare breaks).
  • Fixed bug #46319 (PHP sets default Content-Type header for HTTP 304 response code, in cgi sapi).
  • Fixed bug #46313 (Magic quotes broke $_FILES).
  • Fixed bug #46308 (Invalid write when changing property from inside getter).
fixed bug #46292 (pdo
  • Fixed bug #46274, #46249 (pdo_pgsql always fill in NULL for empty BLOB and segfaults when returned by SELECT).
  • Fixed bug #46271 (local_cert option is not resolved to full path).
  • Fixed bug #46247 (ibase_set_event_handler() is allowing to pass callback without event).
  • Fixed bug #46246 (difference between call_user_func(array($this, $method)) and $this->$method()).
  • Fixed bug #46222 (ArrayObject EG(uninitialized_var_ptr) overwrite).
  • Fixed bug #46215 (json_encode mutates its parameter and has some class-specific state).
  • Fixed bug #46206 (pg_query_params/pg_execute convert passed values to strings).
fixed bug #46191 (bc break
  • Fixed bug #46164 (stream_filter_remove() closes the stream).
fixed bug #46157 (pdostatement
  • Fixed bug #46147 (after stream seek, appending stream filter reads incorrect data).
  • Fixed bug #46139 (PDOStatement->setFetchMode() forgets FETCH_PROPS_LATE).
  • Fixed bug #46127 (php_openssl_tcp_sockop_accept forgets to set context on accepted stream)
  • Fixed bug #46110 (XMLWriter - openmemory() and openuri() leak memory on multiple calls).
fixed bug #46088 (regexiterator
  • Fixed bug #46082 (stream_set_blocking() can cause a crash in some circumstances).
  • Fixed bug #46064 (Exception when creating ReflectionProperty object on dynamicly created property).
  • Fixed bug #46059 (Compile failure under IRIX 6.5.30 building posix.c).
fixed bug #46051 (splfileinfo
  • Fixed bug #46047 (SimpleXML converts empty nodes into object with nested array).
fixed bug #46031 (segfault in appenditerator
  • Fixed bug #46029 (Segfault in DOMText when using with Reflection).
  • Fixed bug #46026 (bzip2.decompress/zlib.inflate filter tries to decompress after end of stream).
  • Fixed bug #46024 (stream_select() doesn't return the correct number).
  • Fixed bug #46010 (warnings incorrectly generated for iv in ecb mode).
  • Fixed bug #46003 (isset on nonexisting node return unexpected results).
  • Fixed bug #45956 (parse_ini_file() does not return false with syntax errors in parsed file).
  • Fixed bug #45901 (wddx_serialize_value crash with SimpleXMLElement object).
  • Fixed bug #45862 (get_class_vars is inconsistent with 'protected' and 'private' variables).
  • Fixed bug #45860 (header() function fails to correctly replace all Status lines).
  • Fixed bug #45805 (Crash on throwing exception from error handler).
fixed bug #45765 (reflectionobject with default parameters of self
  • Fixed bug #45751 (Using auto_prepend_file crashes (out of scope stack address use)).
  • Fixed bug #45722 (mb_check_encoding() crashes).
  • Fixed bug #45705 (rfc822_parse_adrlist() modifies passed address parameter).
  • Fixed bug #45691 (Some per-dir or runtime settings may leak into other requests).
  • Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items).
  • Fixed bug #45580 (levenshtein() crashes with invalid argument).
  • Fixed bug #45575 (Segfault with invalid non-string as event handler callback).
  • Fixed bug #45568 (ISAPI doesn't properly clear auth_digest in header).
  • Fixed bug #45556 (Return value from callback isn't freed).
  • Fixed bug #45555 (Segfault with invalid non-string as register_introspection_callback).
  • Fixed bug #45553 (Using XPath to return values for attributes with a namespace does not work).
  • Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone() behave different).
  • Fixed bug #45522 (FCGI_GET_VALUES request does not return supplied values).
fixed bug #45486 (mb_send_mail(); header 'content-type
  • Fixed bug #45485 (strip_tags and <?XML tag).
  • Fixed bug #45460 (imap patch for fromlength fix in imap_headerinfo doesn't accept lengths of 1024).
  • Fixed bug #45449 (filesize() regression using ftp wrapper).
  • Fixed bug #45423 (fastcgi parent process doesn't invoke php_module_shutdown before shutdown)
  • Fixed bug #45406 (session.serialize_handler declared by shared extension fails).
  • Fixed bug #45405 (snmp extension memory leak).
  • Fixed bug #45382 (timeout bug in stream_socket_enable_crypto).
  • Fixed bug #45373 (php crash on query with errors in params).
  • Fixed bug #45352 (Segmentation fault because of tick function on second request).
  • Fixed bug #45312 (Segmentation fault on second request for array functions).
fixed bug #45303 (opening php
  • Fixed bug #45251 (double free or corruption with setAttributeNode()).
  • Fixed bug #45226 and #18916 (xmlrpc_set_type() segfaults and wrong behavior with valid ISO8601 date string).
  • Fixed bug #45220 (curl_read callback returns -1 when needs to return size_t (unsigned)).
  • Fixed bug #45181 (chdir() should clear relative entries in stat cache).
  • Fixed bug #45178 (memory corruption on assignment result of "new" by reference).
  • Fixed bug #45166 (substr() overflow changes).
  • Fixed bug #45151 (Crash with URI/file..php (filename contains 2 dots)). (Fixes CVE-2008-3660)
  • Fixed bug #45139 (ReflectionProperty returns incorrect declaring class).
  • Fixed bug #45124 ($_FILES['upload']['size'] sometimes return zero and some times the filesize).
  • Fixed bug #45028 (CRC32 output endianness is different between crc32() and hash()).
  • Fixed bug #45004 (pg_insert() does not accept 4 digit timezone format).
  • Fixed bug #44991 (Compile Failure With freetds0.82).
  • Fixed bug #44938 (gettext functions crash with overly long domain).
  • Fixed bug #44925 (preg_grep() modifies input array).
  • Fixed bug #44900 (OpenSSL extension fails to link with OpenSSL 0.9.6).
  • Fixed bug #44891 Memory leak using registerPHPFunctions and XSLT Variable as function parameter.
  • Fixed bug #44882 (SOAP extension object decoding bug).
  • Fixed bug #44830 (Very minor issue with backslash in heredoc).
fixed bug #44818 (php
  • Fixed bug #44811 (Improve error message when creating a new SoapClient that contains invalid data).
  • Fixed bug #44798 (Memory leak assigning value to attribute).
  • Fixed bug #44716 (Progress notifications incorrect).
  • Fixed bug #44712 (stream_context_set_params segfaults on invalid arguments).
  • Fixed bug #44617 (wrong HTML entity output when substitute_character=entity).
  • Fixed bug #44607 (stream_get_line unable to correctly identify the "ending" in the stream content).
  • Fixed bug #44425 (Extending PDO/MySQL class with a __call() function doesn't work).
fixed bug #44327 (pdorow
  • Fixed bug #44251, #41125 (PDO + quote() + prepare() can result in segfault).
  • Fixed bug #44246 (closedir() accepts a file resource opened by fopen()).
  • Fixed bug #44182 (extract($a, EXTR_REFS) can fail to split copy-on-write references).
  • Fixed bug #44181 (extract($a, EXTR_OVERWRITE|EXTR_REFS) can fail to create references to $a).
  • Fixed bug #44127 (UNIX abstract namespace socket connect does not work).
  • Fixed bug #43993 (mb_substr_count() behaves differently to substr_count() with overlapping needles).
  • Fixed Bug #43958 (class name added into the error message).
  • Fixed bug #43941 (json_encode silently cuts non-UTF8 strings).
  • Fixed bug #43925 (Incorrect argument counter in prepared statements with pgsql).
fixed bug #43731 (socket_getpeername
  • Fixed bug #43723 (SOAP not sent properly from client for <choice>).
  • Fixed bug #43668 (Added odbc.default_cursortype to control the ODBCcursor model).
  • Fixed bug #43666 (Fixed code to use ODBC 3.52 datatypes for 64bit systems).
  • Fixed bug #43540 (rfc1867 handler newlength problem).
  • Fixed bug #43452 (strings containing a weekday, or a number plus weekday behaved incorrect of the current day-of-week was the same as the one in the phrase).
  • Fixed bug #43353 (wrong detection of 'data' wrapper causes notice).
fixed bug #43053 (regression
  • Fixed bug #43045 (SOAP encoding violation on "INF" for type double/float).
fixed bug #42862 (imap toolkit crash
  • Fixed bug #42855 (dns_get_record() doesn't return all text from TXT record).
  • Fixed bug #42737 (preg_split('//u') triggers a E_NOTICE with newlines).
  • Fixed bug #42718 (FILTER_UNSAFE_RAW not applied when configured as default filter).
  • Fixed bug #42604 ("make test" fails with --with-config-file-scan-dir=path).
fixed bug #42473 (ob_start php
  • Fixed bug #42318 (problem with nm on AIX, not finding object files).
  • Fixed bug #42294 (Unified solution for round() based on C99 round).
  • Fixed bug #42078 (pg_meta_data mix tables metadata from different schemas).
fixed bug #41348 (oci8
  • Fixed bug #41033 (enable signing with DSA keys.
  • Fixed bug #37100 (data is returned truncated with BINARY CURSOR).
  • Fixed bug #30312 (crash in sybase_unbuffered_query() function).
  • Fixed bug #24679 (pg_* functions doesn't work using schema).
fixed bug #14962 (pecl) (
  • Fixed bug #14032 (Mail() always returns false but mail is sent).
PHP 5.2.6
Released 01 May, 2008
fixed a bug with pdo
  • Fixed a safe_mode bypass in cURL identified by Maksymilian Arciemowicz. which to group by data is specified.
  • Fixed segfault in filter extension when using callbacks.
  • Fixed faulty fix for bug #40189 (endless loop in zlib.inflate stream filter).
  • Fixed bug #44742 (timezone_offset_get() causes segmentation faults).
  • Fixed bug #44720 (Prevent crash within session_register()).
  • Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument).
  • Fixed bug #44673 (With CGI argv/argc starts from arguments, not from script)
  • Fixed bug #44667 (proc_open() does not handle pipes with the mode 'wb' correctly).
  • Fixed bug #44663 (Crash in imap_mail_compose if "body" parameter invalid).
  • Fixed bug #44650 (escaepshellscmd() does not check arg count).
  • Fixed bug #44613 (Crash inside imap_headerinfo()).
  • Fixed bug #44603 (Order issues with Content-Type/Length headers on POST).
  • Fixed bug #44594 (imap_open() does not validate # of retries parameter).
  • Fixed bug #44591 (imagegif's filename parameter).
  • Fixed bug #44557 (Crash in imap_setacl when supplied integer as username)
  • Fixed bug #44487 (call_user_method_array issues a warning when throwing an exception).
  • Fixed bug #44478 (Inconsistent behaviour when assigning new nodes).
  • Fixed bug #44445 (email validator does not handle domains starting/ending with a -).
  • Fixed bug #44440 (st_blocks undefined under BeOS).
  • Fixed bug #44394 (Last two bytes missing from output).
  • Fixed bug #44388 (Crash inside exif_read_data() on invalid images)
  • Fixed bug #44373 (PDO_OCI extension compile failed).
  • Fixed bug #44333 (SEGFAULT when using mysql_pconnect() with client_flags).
  • Fixed bug #44306 (Better detection of MIPS processors on Windows).
  • Fixed bug #44242 (metaphone('CMXFXM') crashes PHP).
  • Fixed bug #44233 (MSG_PEEK undefined under BeOS R5).
  • Fixed bug #44216 (strftime segfaults on large negative value).
  • Fixed bug #44209 (strtotime() doesn't support 64 bit timestamps on 64 bit platforms).
  • Fixed bug #44206 (OCI8 selecting ref cursors leads to ORA-1000 maximum open cursors reached).
  • Fixed bug #44200 (A crash in PDO when no bound targets exists and yet bound parameters are present).
  • Fixed bug #44197 (socket array keys lost on socket_select).
  • Fixed bug #44191 (preg_grep messes up array index).
  • Fixed bug #44189 (PDO setAttribute() does not properly validate values for native numeric options).
  • Fixed bug #44184 (Double free of loop-variable on exception).
  • Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error).
fixed bug #44159 (crash
  • Fixed bug #44152 (Possible crash with syslog logging on ZTS builds).
  • Fixed bug #44141 (private parent constructor callable through static function).
  • Fixed bug #44113 (OCI8 new collection creation can fail with OCI-22303).
  • Fixed bug #44069 (Huge memory usage with concatenation using . instead of .=).
  • Fixed bug #44046 (crash inside array_slice() function with an invalid by-ref offset).
  • Fixed bug #44028 (crash inside stream_socket_enable_crypto() when enabling encryption without crypto type).
  • Fixed bug #44018 (RecursiveDirectoryIterator options inconsistancy).
  • Fixed bug #44008 (OCI8 incorrect usage of OCI-Lob->close crashes PHP).
  • Fixed bug #43998 (Two error messages returned for incorrect encoding for mb_strto[upper|lower]).
  • Fixed bug #43994 (mb_ereg 'successfully' matching incorrect).
  • Fixed bug #43954 (Memory leak when sending the same HTTP status code multiple times).
  • Fixed bug #43927 (koi8r is missing from html_entity_decode()).
  • Fixed bug #43912 (Interbase column names are truncated to 31 characters).
  • Fixed bug #43875 (Two error messages returned for $new and $flag argument in mysql_connect()).
  • Fixed bug #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251).
  • Fixed bug #43841 (mb_strrpos offset is byte count for negative values).
  • Fixed bug #43840 (mb_strpos bounds check is byte count rather than a character count).
  • Fixed bug #43808 (date_create never fails (even when it should)).
  • Fixed bug #43793 (zlib filter is unable to auto-detect gzip/zlib file headers).
  • Fixed bug #43703 (Signature compatibility check broken).
  • Fixed bug #43677 (Inconsistent behaviour of include_path set with php_value).
  • Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
  • Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";").
  • Fixed bug #43635 (mysql extension ingores INI settings on NULL values passed to mysql_connect()).
  • Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result in a crash).
  • Fixed bug #43614 (incorrect processing of numerical string keys of array in arbitrary serialized data).
  • Fixed bug #43606 (define missing depencies of the exif extension).
  • Fixed bug #43589 (a possible infinite loop in bz2_filter.c).
  • Fixed bug #43580 (removed bogus declaration of a non-existent php_is_url() function).
  • Fixed bug #43559 (array_merge_recursive() doesn't behave as expected with duplicate NULL values).
  • Fixed bug #43533 (escapeshellarg('') returns null).
  • Fixed bug #43527 (DateTime created from a timestamp reports environment timezone).
  • Fixed bug #43522 (stream_get_line() eats additional characters).
  • Fixed bug #43507 (SOAPFault HTTP Status 500 - would like to be able to set the HTTP Status).
  • Fixed bug #43505 (Assign by reference bug).
  • Fixed bug #43498 (file_exists() on a proftpd server got SIZE not allowed in ASCII mode).
  • Fixed bug #43497 (OCI8 XML/getClobVal aka temporary LOBs leak UGA memory).
  • Fixed bug #43495 (array_merge_recursive() crashes with recursive arrays).
  • Fixed bug #43493 (pdo_pgsql does not send username on connect when password is not available).
  • Fixed bug #43491 (Under certain conditions, file_exists() never returns).
  • Fixed bug #43483 (get_class_methods() does not list all visible methods).
  • Fixed bug #43482 (array_pad() does not warn on very small pad numbers).
  • Fixed bug #43457 (Prepared statement with incorrect parms doesn't throw exception with pdo_pgsql driver).
  • Fixed bug #43450 (Memory leak on some functions with implicit object __toString() call).
  • Fixed bug #43386 (array_globals not reset to 0 properly on init).
  • Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone).
  • Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error).
  • Fixed bug #43364 (recursive xincludes don't remove internal xml nodes properly).
  • Fixed bug #43301 (mb_ereg*_replace() crashes when replacement string is invalid PHP expression and 'e' option is used).
  • Fixed bug #43295 (crash because of uninitialized SG(sapi_headers).mimetype).
  • Fixed bug #43293 (Multiple segfaults in getopt()).
  • Fixed bug #43279 (pg_send_query_params() converts all elements in 'params' to strings).
  • Fixed bug #43276 (Incomplete fix for bug #42739, mkdir() under safe_mode).
  • Fixed bug #43248 (backward compatibility break in realpath()).
  • Fixed bug #43221 (SimpleXML adding default namespace in addAttribute).
fixed bug #43216 (stream_is_local() returns false on "file
  • Fixed bug #43201 (Crash on using uninitialized vals and __get/__set).
  • Fixed bug #43182 (file_put_contents() LOCK_EX does not work properly on file truncation).
  • Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault).
  • Fixed bug #43128 (Very long class name causes segfault).
  • Fixed bug #43105 (PHP seems to fail to close open files).
  • Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL).
  • Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed using a timestamp).
  • Fixed bug #42978 (mismatch between number of bound params and values causes a crash in pdo_pgsql).
  • Fixed bug #42945 (preg_split() swallows part of the string).
  • Fixed bug #42937 (__call() method not invoked when methods are called on parent from child class).
  • Fixed bug #42841 (REF CURSOR and oci_new_cursor() crash PHP).
  • Fixed bug #42838 (Wrong results in array_diff_uassoc)
  • Fixed bug #42779 (Incorrect forcing from HTTP/1.0 request to HTTP/1.1 response).
  • Fixed bug #42736 (xmlrpc_server_call_method() crashes).
  • Fixed bug #42692 (Procedure 'int1' not present with doc/lit SoapServer).
  • Fixed bug #42548 (mysqli PROCEDURE calls can't return result sets).
  • Fixed bug #42505 (new sendmail default breaks on Netware platform)
  • Fixed bug #42369 (Implicit conversion to string leaks memory). .
  • Fixed bug #42272 (var_export() incorrectly escapes char(0)).
  • Fixed bug #42261 (Incorrect lengths for date and boolean data types).
  • Fixed bug #42190 (Constructing DateTime with TimeZone Indicator invalidates DateTimeZone).
fixed bug #42177 (warning "array_merge_recursive()
  • Fixed bug #41941 (oci8 extension not lib64 savvy).
fixed bug #41828 (failing to call recursiveiteratoriterator
  • Fixed bug #41599 (setTime() fails after modify() is used).
  • Fixed bug #41562 (SimpleXML memory issue).
  • Fixed bug #40013 (php_uname() does not return nodename on Netware
  • Fixed bug #38468 (Unexpected creation of cycle).
  • Fixed bug #32979 (OpenSSL stream->fd casts broken in 64-bit build)
PHP 5.2.5
Released 08 Nov, 2007
fixed bug #43099 (xmlwriter
  • Fixed bug #43130 (Bound parameters cannot have - in their name).
  • Fixed bug #43020 (Warning message is missing with shuffle() and more than one argument).
  • Fixed bug #42976 (Crash when constructor for newInstance() or newInstanceArgs() fails)
fixed bug #42917 (pdo
  • Fixed bug #42890 (Constant "LIST" defined by mysqlclient and c-client).
  • Fixed bug #42869 (automatic session id insertion adds sessions id to non-local forms).
  • Fixed bug #42818 ($foo = clone(array()); leaks memory).
  • Fixed bug #42817 (clone() on a non-object does not result in a fatal error).
  • Fixed bug #42785 (json_encode() formats doubles according to locale rather then following standard syntax).
  • Fixed bug #42783 (pg_insert() does not accept an empty list for insertion).
  • Fixed bug #42773 (WSDL error causes HTTP 500 Response).
  • Fixed bug #42772 (Storing $this in a static var fails while handling a cast to string).
  • Fixed bug #42767 (highlight_string() truncates trailing comment).
  • Fixed bug #42739 (mkdir() doesn't like a trailing slash when safe_mode is enabled).
fixed bug #42703 (exception raised in an iterator
  • Fixed bug #42699 (PHP_SELF duplicates path).
  • Fixed bug #42654 (RecursiveIteratorIterator modifies only part of leaves)
  • Fixed bug #42643 (CLI segfaults if using ATTR_PERSISTENT).
fixed bug #42637 (soapfault
  • Fixed bug #42629 (Dynamically loaded PHP extensions need symbols exported on MacOSX).
  • Fixed bug #42627 (bz2 extension fails to build with -fno-common).
  • Fixed Bug #42596 (session.save_path MODE option does not work).
  • Fixed bug #42590 (Make the engine recognize \v and \f escape sequences).
  • Fixed bug #42587 (behavior change regarding symlinked .php files).
  • Fixed bug #42579 (apache_reset_timeout() does not exist).
  • Fixed bug #42549 (ext/mysql failed to compile with libmysql 3.23).
  • Fixed bug #42523 (PHP_SELF duplicates path).
  • Fixed bug #42512 (ip2long('255.255.255.255') should return 4294967295 on 64-bit PHP).
  • Fixed bug #42506 (php_pgsql_convert() timezone parse bug)
  • Fixed bug #42496 (OCI8 cursor is not closed when using 2 clobs in a select query).
  • Fixed bug #42462 (Segmentation when trying to set an attribute in a DOMElement).
  • Fixed bug #42453 (CGI SAPI does not shut down cleanly with -i/-m/-v cmdline options).
  • Fixed bug #42452 (PDO classes do not expose Reflection API information).
  • Fixed bug #42468 (Write lock on file_get_contents fails when using a compression stream).
  • Fixed bug #42488 (SoapServer reports an encoding error and the error itself breaks).
  • Fixed bug #42378 (mysqli_stmt_bind_result memory exhaustion).
fixed bug #42359 (xsd
  • Fixed bug #42326 (SoapServer crash).
  • Fixed bug #42214 (SoapServer sends clients internal PHP errors).
  • Fixed bug #42189 (xmlrpc_set_type() crashes php on invalid datetime values).
  • Fixed bug #42139 (XMLReader option constants are broken using XML()).
  • Fixed bug #42086 (SoapServer return Procedure '' not present for WSIBasic compliant wsdl).
  • Fixed bug #41822 (Relative includes broken when getcwd() fails).
  • Fixed bug #41561 (Values set with php_admin_* in httpd.conf can be overwritten with ini_set()).
  • Fixed bug #39651 (proc_open() append mode doesn't work on windows).
PHP 5.2.4
Released 30 Aug, 2007
added reflectionextension
  • Added PCRE_VERSION constant. (Tony) block for an extension.
implemented fr #41884 (reflectionclass
  • Fixed "Floating point exception" inside wordwrap().
  • Fixed several integer overflows in ImageCreate(), ImageCreateTrueColor(), ImageCopyResampled() and ImageFilledPolygon() reported by Mattias Bengtsson.
  • Fixed size calculation in chunk_split().
  • Fixed integer overflow in str[c]spn().
  • Fixed money_format() not to accept multiple %i or %n tokens.
  • Fixed zend_alter_ini_entry() memory_limit interruption vulnerability.
  • Fixed INFILE LOCAL option handling with MySQL extensions not to be allowed when open_basedir or safe_mode is active.
  • Fixed session.save_path and error_log values to be checked against open_basedir and safe_mode (CVE-2007-3378)
  • Fixed possible invalid read in glob() win32 implementation (CVE-2007-3806).
  • Improved fix for MOPB-03-2007.
  • Corrected fix for CVE-2007-2872.
  • Fixed possible crash in imagepsloadfont(), work around a bug in the pslib on Windows.
  • Fixed oci8 and PDO_OCI extensions to allow configuring with Oracle 11g client libraries.
  • Fixed EOF handling in case of reading from file opened in write only mode.
  • Fixed var_export() to use the new H modifier so that it can generate parseable PHP code for floats, independent of the locale.
  • Fixed regression introduced by the fix for the libgd bug #74.
  • Fixed SimpleXML's behavior when used with empty().
  • Fixed crash in OpenSSL extension because of non-string passphrase.
  • Fixed PECL Bug #11345 (PDO_OCI crash after National language Support "NLS" environment initialization error).
fixed bug #42848 (status
  • Fixed bug #42368 (Incorrect error message displayed by pg_escape_string).
  • Fixed bug #42365 (glob() crashes and/or accepts way too many flags).
  • Fixed Bug #42364 (Crash when using getRealPath with DirectoryIterator).
  • Fixed bug #42292 ($PHP_CONFIG not set for phpized builds).
  • Fixed bug #42261 (header wrong for date field).
  • Fixed bug #42259 (SimpleXMLIterator loses ancestry).
  • Fixed bug #42247 (ldap_parse_result() not defined under win32).
  • Fixed bug #42243 (copy() does not output an error when the first arg is a dir).
  • Fixed bug #42242 (sybase_connect() crashes).
  • Fixed bug #42237 (stream_copy_to_stream returns invalid values for mmaped streams).
  • Fixed bug #42233 (Problems with æøå in extract()).
  • Fixed bug #42222 (possible buffer overflow in php_openssl_make_REQ).
  • Fixed bug #42211 (property_exists() fails to find protected properties from a parent class).
  • Fixed bug #42208 (substr_replace() crashes when the same array is passed more than once).
  • Fixed bug #42198 (SCRIPT_NAME and PHP_SELF truncated when inside a userdir and using PATH_INFO).
  • Fixed bug #42195 (C++ compiler required always).
  • Fixed bug #42183 (classmap causes crash in non-wsdl mode).
  • Fixed bug #42173 (oci8 INTERVAL and TIMESTAMP type fixes).
  • Fixed bug #42151 (__destruct functions not called after catching a SoapFault exception).
  • Fixed bug #42142 (substr_replace() returns FALSE when length > string length).
  • Fixed bug #42135 (Second call of session_start() causes creation of SID).
  • Fixed bug #42134 (oci_error() returns false after oci_new_collection() fails).
  • Fixed bug #42119 (array_push($arr,&$obj) doesn't work with zend.ze1_compatibility_mode On).
  • Fixed bug #42117 (bzip2.compress loses data in internal buffer).
  • Fixed bug #42112 (deleting a node produces memory corruption).
  • Fixed bug #42107 (sscanf broken when using %2$s format parameters).
  • Fixed bug #42090 (json_decode causes segmentation fault).
  • Fixed bug #42082 (NodeList length zero should be empty).
  • Fixed bug #42072 (No warning message for clearstatcache() with arguments).
  • Fixed bug #42071 (ini scanner allows using NULL as option name).
  • Fixed bug #42027 (is_file() / is_dir() matches file/dirnames with wildcard char or trailing slash in Windows).
  • Fixed bug #42019 (configure option --with-adabas=DIR does not work).
fixed bug #42015 (ldap_rename()
  • Fixed bug #42009 (is_a() and is_subclass_of() should NOT call autoload, in the same way as "instanceof" operator).
  • Fixed bug #41989 (move_uploaded_file() & relative path in ZTS mode).
  • Fixed bug #41984 (Hangs on large SoapClient requests).
  • Fixed bug #41983 (Error Fetching http headers terminated by '\n').
  • Fixed bug #41973 (--with-ldap=shared fails with LDFLAGS="-Wl,--as-needed").
fixed bug #41971 (pdostatement
  • Fixed bug #41964 (strtotime returns a timestamp for non-time string of pattern '(A|a) .+').
  • Fixed bug #41961 (Ensure search for hidden private methods does not stray from class hierarchy).
  • Fixed bug #41947 (SimpleXML incorrectly registers empty strings asnamespaces).
  • Fixed bug #41929 (Foreach on object does not iterate over all visible properties).
  • Fixed bug #41919 (crash in string to array conversion).
  • Fixed bug #41909 (var_export() is locale sensitive when exporting float values).
  • Fixed bug #41908 (CFLAGS="-Os" ./configure --enable-debug fails).
fixed bug #41861 (simplexml
  • Fixed bug #41845 (pgsql extension does not compile with PostgreSQL <7.4).
  • Fixed bug #41844 (Format returns incorrect number of digits for negative years -0001 to -0999).
  • Fixed bug #41842 (Cannot create years < 0100 & negative years with date_create or new DateTime).
  • Fixed bug #41833 (addChild() on a non-existent node, no node created, getName() segfaults).
  • Fixed bug #41831 (pdo_sqlite prepared statements convert resources to strings).
  • Fixed bug #41815 (Concurrent read/write fails when EOF is reached).
  • Fixed bug #41813 (segmentation fault when using string offset as an object).
  • Fixed bug #41795 (checkdnsrr does not support DNS_TXT type).
  • Fixed bug #41773 (php_strip_whitespace() sends headers with errors suppressed).
fixed bug #41770 (ssl
  • Fixed bug #41765 (Recode crashes/does not work on amd64).
  • Fixed bug #41724 (libxml_get_last_error() - errors service request scope).
  • Fixed bug #41717 (imagepolygon does not respect thickness).
  • Fixed bug #41713 (Persistent memory consumption on win32 since 5.2).
  • Fixed bug #41711 (NULL temporary lobs not supported in OCI8).
  • Fixed bug #41709 (strtotime() does not handle 00.00.0000).
  • Fixed bug #41698 (float parameters truncated to integer in prepared statements).
  • Fixed bug #41692 (ArrayObject shows weird behavior in respect to inheritance).
fixed bug #41691 (arrayobject
  • Fixed bug #41686 (Omitting length param in array_slice not possible).
  • Fixed bug #41685 (array_push() fails to warn when next index is already occupied).
  • Fixed bug #41655 (open_basedir bypass via glob()).
  • Fixed bug #41640 (get_class_vars produces error on class constants).
  • Fixed bug #41635 (SoapServer and zlib.output_compression with FastCGI result in major slowdown).
  • Fixed bug #41633 (Crash instantiating classes with self-referencing constants).
  • Fixed bug #41630 (segfault when an invalid color index is present in the image data). (Reported by Elliot <wccoder@gmail dot com>)
  • Fixed bug #41628 (PHP settings leak between Virtual Hosts in Apache 1.3).
  • Fixed bug #41608 (segfault on a weird code with objects and switch()).
  • Fixed bug #41600 (url rewriter tags doesn't work with namespaced tags).
  • Fixed bug #41596 (Fixed a crash inside pdo_pgsql on some non-well-formed SQL queries).
  • Fixed bug #41594 (OCI8 statement cache is flushed too frequently).
  • Fixed bug #41582 (SimpleXML crashes when accessing newly created element).
  • Fixed bug #41576 (configure failure when using --without-apxs or some other SAPIs disabling options).
  • Fixed bug #41567 (json_encode() double conversion is inconsistent with PHP).
  • Fixed bug #41566 (SOAP Server not properly generating href attributes).
fixed bug #41555 (configure failure
  • Fixed bug #41527 (WDDX deserialize numeric string array key).
fixed bug #41523 (strtotime('0000-00-00 00
  • Fixed bug #41518 (file_exists() warns of open_basedir restriction on non-existent file).
  • Fixed bug #41445 (parse_ini_file() has a problem with certain types of integer as sections).
fixed bug #41433 (dba
  • Fixed bug #41372 (Internal pointer of source array resets during array copying).
  • Fixed bug #41350 (my_thread_global_end() error during request shutdown on Windows).
  • Fixed bug #41278 (get_loaded_extensions() should list Zend extensions).
  • Fixed bug #41127 (Memory leak in ldap_{first|next}_attribute functions).
  • Fixed bug #40757 (get_object_vars get nothing in child class).
  • Fixed bug #40705 (Iterating within function moves original array pointer).
  • Fixed bug #40509 (key() function changed behaviour if global array is used within function).
  • Fixed bug #40419 (Trailing slash in CGI request does not work).
  • Fixed bug #39330 (apache2handler does not call shutdown actions before apache child die).
  • Fixed bug #39291 (ldap_sasl_bind() misses the sasl_authc_id parameter).
  • Fixed bug #37715 (array pointers resetting on copy).
  • Fixed bug #37273 (Symlinks and mod_files session handler allow open_basedir bypass).
  • Fixed bug #36492 (Userfilters can leak buckets).
  • Fixed bugs #36796, #36918, #41371 (stream_set_blocking() does not work).
  • Fixed bug #35981 (pdo-pgsql should not use pkg-config when not present).
  • Fixed bug #31892 (PHP_SELF incorrect without cgi.fix_pathinfo, but turning on screws up PATH_INFO).
  • Fixed bug #21197 (socket_read() outputs error with PHP_NORMAL_READ).
PHP 5.2.3
Released 31 May, 2007
added pdo
  • Added a 4th parameter flag to htmlspecialchars() and htmlentities() that makes the function not encode existing html entities. an associated array.
  • Added CURLOPT_TIMEOUT_MS and CURLOPT_CONNECTTIMEOUT_MS cURL constants.
  • Added --ini switch to CLI that prints out configuration file names.
  • Added mysql_set_charset() to allow runtime altering of connection encoding.
  • Implemented FR #41416 (getColumnMeta() should also return table name).
  • Fixed an integer overflow inside chunk_split(). Identified by Gerhard Wagner.
  • Fixed SOAP extension's handler() to work even when "always_populate_raw_post_data" is off.
  • Fixed possible infinite loop in imagecreatefrompng. (libgd #86) (by Xavier Roche, CVE-2007-2756).
  • Fixed ext/filter Email Validation Vulnerability (MOPB-45 by Stefan Esser).
  • Fixed altering $this via argument named "this".
  • Fixed PHP CLI usage of php.ini from the binary location.
  • Fixed segfault in strripos().
  • Fixed bug #41693 (scandir() allows empty directory names).
  • Fixed bug #41673 (json_encode breaks large numbers in arrays).
fixed bug #41525 (reflectionparameter
  • Fixed bug #41511 (Compile failure under IRIX 6.5.30 building md5.c).
  • Fixed bug #41504 (json_decode() incorrectly decodes JSON arrays with empty string keys).
  • Fixed bug #41492 (open_basedir/safe_mode bypass inside realpath()).
fixed bug #41477 (no arginfo about soapclient
  • Fixed bug #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS).
  • Fixed bug #41442 (imagegd2() under output control).
  • Fixed bug #41430 (Fatal error with negative values of maxlen parameter of file_get_contents()).
  • Fixed bug #41423 (PHP assumes wrongly that certain ciphers are enabled in OpenSSL).
  • Fixed bug #41421 (Uncaught exception from a stream wrapper segfaults).
  • Fixed bug #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.').
  • Fixed bug #41401 (wrong unary operator precedence).
  • Fixed bug #41394 (dbase_create creates file with corrupted header).
  • Fixed bug #41390 (Clarify error message with invalid protocol scheme).
  • Fixed bug #41378 (fastcgi protocol lacks support for Reason-Phrase in "Status:" header).
  • Fixed bug #41374 (whole text concats values of wrong nodes).
  • Fixed bug #41358 (configure cannot determine SSL lib with libcurl >= 7.16.2).
  • Fixed bug #41353 (crash in openssl_pkcs12_read() on invalid input).
  • Fixed bug #41351 (Invalid opcode with foreach ($a[] as $b)).
  • Fixed bug #41347 (checkdnsrr() segfaults on empty hostname).
  • Fixed bug #41337 (WSDL parsing doesn't ignore non soap bindings).
fixed bug #41326 (writing empty tags with xmlwriter
  • Fixed bug #41321 (downgrade read errors in getimagesize() to E_NOTICE).
  • Fixed bug #41304 (compress.zlib temp files left).
  • Fixed bug #41293 (Fixed creation of HTTP_RAW_POST_DATA when there is no default post handler).
  • Fixed bug #41291 (FastCGI does not set SO_REUSEADDR).
  • Fixed gd build when used with freetype 1.x
  • Fixed bug #41287 (Namespace functions don't allow xmlns definition to be optional).
  • Fixed bug #41285 (Improved fix for CVE-2007-1887 to work with non-bundled sqlite2 lib).
  • Fixed bug #41283 (Bug with deserializing array key that are doubles or floats in wddx).
  • Fixed bug #41257 (lookupNamespaceURI does not work as expected).
  • Fixed bug #41236 (Regression in timeout handling of non-blocking SSL connections during reads and writes).
  • Fixed bug #41134 (zend_ts_hash_clean not thread-safe).
  • Fixed bug #41097 (ext/soap returning associative array as indexed without using WSDL).
  • Fixed bug #41004 (minOccurs="0" and null class member variable).
  • Fixed bug #39542 (Behavior of require/include different to < 5.2.0).
PHP 5.2.2
Released 03 May, 2007
added tidynode
  • Added --ri switch to CLI which allows to check extension information.
added openbasedir and safemode checks in zip
  • Added php_pdo_sqlite_external.dll, a version of the PDO SQLite driver that links against an external sqlite3.dll. This provides Windows users to upgrade their sqlite3 version outside of the PHP release cycle.
  • Added linenumbers to array returned by token_get_all().
  • Upgraded SQLite 3 to version 3.3.16
  • Upgraded libraries bundled in the Windows distribution.
  • c-client to version 2006e
  • libpq to version 8.2.3
  • libmysql to version 5.0.37
  • openssl to version 0.9.8e
  • Upgraded PCRE to version 7.0
  • Updated timezone database to version 2007.5.
  • Fixed commandline handling for CLI and CGI.
  • Fixed iterator_apply() with a callback using __call().
  • Fixed possible multi bytes issues in openssl csr parser
  • Fixed shmop_open() with IPC_CREAT|IPC_EXCL flags on Windows. .
fixed possible leak in ziparchive
  • Fixed possible relative path issues in zip_open and TS mode (old API)
  • Fixed zend_llist_remove_tail
  • Fixed a thread safety issue in gd gif read code
  • Fixed CVE-2007-1001, GD wbmp used with invalid image size
  • Fixed unallocated memory access/double free in in array_user_key_compare() (MOPB-24 by Stefan Esser)
  • Fixed wrong length calculation in unserialize S type (MOPB-29 by Stefan Esser)
  • Fixed bug #41215 (setAttribute return code reversed).
  • Fixed bug #41192 (Per Directory Values only work for one key).
  • Fixed bug #41175 (addAttribute() fails to add an attribute with an empty value).
  • Fixed bug #41159 (mysql_pconnect() hash does not account for connect flags).
  • Fixed bug #41121 (range() overflow handling for large numbers on 32bit machines).
  • Fixed bug #41118 (PHP does not handle overflow of octal integers).
  • Fixed bug #41109 (recursiveiterator.inc says "implements" Iterator instead of "extends").
  • Fixed bug #40130 (TTF usage doesn't work properly under Netware).
  • Fixed bug #41093 (magic_quotes_gpc ignores first arrays keys).
  • Fixed bug #41075 (memleak when creating default object caused exception).
  • Fixed bug #41067 (json_encode() problem with UTF-16 input).
  • Fixed bug #41063 (chdir doesn't like root paths).
fixed bug #41061 ("visibility error" in reflectionfunction
  • Fixed bug #41043 (pdo_oci crash when freeing error text with persistent connection).
  • Fixed bug #41037 (unregister_tick_function() inside the tick function crash PHP).
  • Fixed bug #41034 (json_encode() ignores null byte started keys in arrays).
fixed bug #41026 (segfault when calling "self
  • Fixed bug #40999 (mcrypt_create_iv() not using random seed).
  • Fixed bug #40998 (long session array keys are truncated).
  • Implement feature request #40947, allow a single filter as argument for filter_var_array
  • Fixed bug #40935 (pdo_mysql does not raise an exception on empty fetchAll()).
  • Fixed bug #40931 (open_basedir bypass via symlink and move_uploaded_file()).
  • Fixed bug #40921 (php_default_post_reader crashes when post_max_size is exceeded).
  • Fixed bug #40915 (addcslashes unexpected behavior with binary input).
  • Fixed bug #40899 (memory leak when nesting list()).
  • Fixed bug #40897 (error_log file not locked).
  • Fixed bug #40883 (mysql_query() is allocating memory incorrectly).
  • Fixed bug #40872 (inconsistency in offsetSet, offsetExists treatment of string enclosed integers).
  • Fixed bug #40861 (strtotime() doesn't handle double negative relative time units correctly).
  • Fixed bug #40854 (imap_mail_compose() creates an invalid terminator for multipart e-mails).
  • Fixed bug #40848 (sorting issue on 64-bit Solaris).
  • Fixed bug #40836 (Segfault in ext/dom).
  • Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get()).
  • Fixed bug #40822 (pdo_mysql does not return rowCount() on select).
fixed bug #40815 (using strings like "class
  • Fixed bug #40809 (Poor performance of ".=").
  • Fixed bug #40805 (Failure executing function ibase_execute()).
  • Fixed bug #40800 (cannot disable memory_limit with -1).
fixed bug #40794 (reflectionobject
  • Fixed bug #40784 (Case sensitivity in constructor's fallback).
  • Fixed bug #40770 (Apache child exits when PHP memory limit reached).
  • Fixed bug #40764 (line thickness not respected for horizontal and vertical lines).
  • Fixed bug #40758 (Test fcgi_is_fastcgi() is wrong on windows).
  • Fixed bug #40754 (added substr() & substr_replace() overflow checks).
  • Fixed bug #40752 (parse_ini_file() segfaults when a scalar setting is redeclared as an array).
  • Fixed bug #40750 (openssl stream wrapper ignores default_stream_timeout).
  • Fixed bug #40727 (segfault in PDO when failed to bind parameters).
  • Fixed bug #40709 (array_reduce() behaves strange with one item stored arrays).
  • Fixed bug #40703 (Resolved a possible namespace conflict between libxmlrpc and MySQL's NDB table handler).
  • Fixed bug #40961 (Incorrect results of DateTime equality check).
  • Fixed bug #40678 (Cross compilation fails).
  • Fixed bug #40621 (Crash when constructor called inappropriately).
  • Fixed bug #40609 (Segfaults when using more than one SoapVar in a request).
  • Fixed bug #40606 (umask is not being restored when request is finished).
  • Fixed bug #40598 (libxml segfault).
  • Fixed bug #40591 (list()="string"; gives invalid opcode).
  • Fixed bug #40578 (imagettftext() multithreading issue).
  • Fixed bug #40576 (double values are truncated to 6 decimal digits when encoding).
  • Fixed bug #40560 (DIR functions do not work on root UNC path).
fixed bug #40546 (splfileinfo
  • Fixed bug #40545 (multithreading issue in zend_strtod()).
  • Fixed bug #40503 (json_encode() value corruption on 32bit systems with overflown values).
  • Fixed bug #40467 (Partial SOAP request sent when XSD sequence or choice include minOccurs=0).
  • Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump).
  • Fixed bug #40464 (session.save_path wont use default-value when safe_mode or open_basedir is enabled).
  • Fixed bug #40455 (proc_open() uses wrong command line when safe_mode_exec_dir is set).
  • Fixed bug #40432 (strip_tags() fails with greater than in attribute).
  • Fixed bug #40431 (dynamic properties may cause crash in ReflectionProperty methods).
  • Fixed bug #40451 (addAttribute() may crash when used with non-existent child node).
fixed bug #40442 (arrayobject
  • Fixed bug #40428 (imagepstext() doesn't accept optional parameter).
  • Fixed bug #40417 (Allow multiple instances of the same named PDO token in prepared statement emulation code).
  • Fixed bug #40414 (possible endless fork() loop when running fastcgi).
  • Fixed bug #40410 (ext/posix does not compile on MacOS 10.3.9).
  • Fixed bug #40392 (memory leaks in PHP milter SAPI).
  • Fixed bug #40371 (pg_client_encoding() not working on Windows).
  • Fixed bug #40352 (FCGI_WEB_SERVER_ADDRS function get lost).
  • Fixed bug #40290 (strtotime() returns unexpected result with particular timezone offset).
  • Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed).
  • Fixed bug #40261 (Extremely slow data handling due to memory fragmentation).
  • Fixed bug #40236 (php -a function allocation eats memory).
  • Fixed bug #40109 (iptcembed fails on non-jfif jpegs).
  • Fixed bug #39965 (Latitude and longitude are backwards in date_sun_info()).
  • Implement #39867 (openssl PKCS#12 support)
  • Fixed bug #39836 (SplObjectStorage empty after unserialize).
  • Fixed bug #39416 (Milliseconds in date()).
  • Fixed bug #39396 (stream_set_blocking crashes on Win32).
  • Fixed bug #39351 (relative include fails on Solaris).
  • Fixed bug #39322 (proc_terminate() destroys process resource).
  • Fixed bug #38406 (crash when assigning objects to SimpleXML attributes).
  • Fixed bug #37799 (ftp_ssl_connect() falls back to non-ssl connection).
  • Fixed bug #36496 (SSL support in imap_open() not working on Windows).
  • Fixed bug #36226 (Inconsistent handling when passing nillable arrays).
  • Fixed bug #35872 (Avoid crash caused by object store being referenced during RSHUTDOWN).
  • Fixed bug #34794 (proc_close() hangs when used with two processes).
  • Fixed PECL bug #10194 (crash in Oracle client when memory limit reached in the callback).
  • Fixed substr_compare and substr_count information leak (MOPB-14)
  • Fixed crash on op-assign where argument is string offset
  • Fixed bug #38710 (data leakage because of nonexisting boundary checking in statements in mysqli)
  • Fixed bug #37386 (autocreating element doesn't assign value to first node).
  • Fixed bug #37013 (server hangs when returning circular object references).
  • Fixed bug #33664 Console window appears when using exec()
PHP 5.2.1
Released 08 Feb, 2007
moved extensions to pecl
  • Removed double "wrong parameter count" warnings in various functions.
  • ext/informix
  • Changed double-to-string utilities to use BSD implementation.
  • Updated bundled libcURL to version 7.16.0 in the Windows distro.
  • Updated timezone database to version 2006.16.
  • cgi.* and fastcgi.* directives are moved to INI subsystem. The new directive cgi.check_shebang_line can be used to omitting check for "#! /usr/bin/php" line. .
  • Improved proc_open(). Now on Windows it can run external commands not through CMD.EXE.
  • VCWD_REALPATH() is improved to use realpath cache without VIRTUAL_DIR.
  • ext/bcmath initialization code is moved from request startup to module startup.
  • Zend Memory Manager Improvements
  • use HeapAlloc() instead of VirtualAlloc()
  • use "win32" storage manager on Windows by default
  • Zip Extension Improvements
  • Fixed leak in statName and stateIndex
  • Fixed return setComment
  • Added addEmptyDir method
  • Filter Extension Improvements
  • Fixed a bug when callback function returns a non-modified value.
  • Added filter support for $_SERVER in cgi/apache2 sapis.
  • Make sure PHP_SELF is filtered in Apache 1 sapi.
  • Fixed bug #39358 .
  • Added "default" option that allows a default value to be set for an invalid or missing value.
  • Invalid filters fails instead of returning unsafe value
  • Fixed possible double encoding problem with sanitizing filters
  • Make use of space-strict strip_tags() function
  • Fixed whitespace trimming
  • Added support for FastCGI environment variables.
  • PDO_MySQL Extension Improvements
  • Enabled buffered queries by default.
  • Enabled prepared statement emulation by default.
  • Small optimization of the date() function.
  • Optimized the internal is_numeric_string() function.
  • Optimized array functions utilizing php_splice().
  • Windows related optimizations
  • COM initialization/deinitialization are done only if necessary
  • removed unnecessary checks for ISREG file and corresponding stat() calls
  • opendir() is reimplementation using GetFistFile/GetNextFile those are faster then _findfirst/_findnext
  • implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic
  • start timeout thread only if necessary
  • stat() is reimplementation using GetFileAttributesEx(). The new implementation is faster then implementation in MS VC CRT, but it doesn't support Windows 95.
  • Streams optimization
  • removed unnecessary ftell() calls
  • disabled calls to read() after EOF
  • Fixed incorrect function names on FreeBSD where inet_pton() was named __inet_pton() and inet_ntop() was named __inet_ntop().
  • Fixed FastCGI impersonation for persistent connections on Windows.
  • Fixed wrong signature initialization in imagepng
  • Fixed ftruncate() with negative size on FreeBSD.
  • Fixed segfault in RegexIterator when given invalid regex.
  • Fixed segfault in SplFileObject->openFile()->getPathname().
  • Fixed segfault in ZTS mode when OCI8 statements containing sub-statements are destroyed in wrong order.
  • Fixed the validate email filter so that the letter "v" can also be used in the user part of the email address.
  • Fixed bug #40297 (compile failure in ZTS mode when collections support is missing).
  • Fixed bug #40285 (The PDO prepare parser goes into an infinite loop in some instances).
  • Fixed bug #40274 (Sessions fail with numeric root keys).
  • Fixed bug #40259 (ob_start call many times - memory error).
  • Fixed bug #40231 (file_exists incorrectly reports false).
fixed bug #40228 (ziparchive
  • Fixed bug #40200 (The FastCgi version has different realpath results than thread safe version).
  • Fixed bug #40191 (use of array_unique() with objects triggers segfault).
  • Fixed bug #40189 (possible endless loop in zlib.inflate stream filter).
  • Fixed bug #40169 (CURLOPT_TCP_NODELAY only available in curl >= 7.11.2).
  • Fixed bug #40129 (iconv extension doesn't compile with CodeWarrior on Netware).
  • Fixed bug #40127 (apache2handler doesn't compile on Netware).
  • Fixed bug #40121 (PDO_DBLIB driver wont free statements).
  • Fixed bug #40098 (php_fopen_primary_script() not thread safe).
  • Fixed bug #40092 (chroot() doesn't clear realpath cache).
  • Fixed bug #40091 (spl_autoload_register with 2 instances of the same class).
  • Fixed bug #40083 (milter SAPI functions always return false/null).
  • Fixed bug #40079 (php_get_current_user() not thread safe).
  • Fixed bug #40078 (ORA-01405 when fetching NULL values using oci_bind_array_by_name()).
fixed bug #40076 (zend_alloc.c
  • Fixed bug #40073 (exif_read_data dies on certain images).
  • Fixed bug #40036 (empty() does not work correctly with ArrayObject when using ARRAY_AS_PROPS).
  • Fixed bug #40012 (php_date.c doesn't compile on Netware).
  • Fixed bug #40009 (http_build_query(array()) returns NULL).
  • Fixed bug #40002 (Try/Catch performs poorly).
  • Fixed bug #39993 (tr_TR.UTF-8 locale has problems with PHP).
  • Fixed bug #39990 (Cannot "foreach" over overloaded properties).
  • Fixed bug #39988 (type argument of oci_define_by_name() is ignored).
  • Fixed bug #39984 (redirect response code in header() could be ignored in CGI sapi).
  • Fixed bug #39979 (PGSQL_CONNECT_FORCE_NEW will causes next connect to establish a new connection).
  • Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for timestamp fields).
  • Fixed bug #39969 (ini setting short_open_tag has no effect when using --enable-maintainer-zts).
  • Fixed bug #39952 (zip ignoring --with-libdir on zlib checks)
  • Fixed bug #39944 (References broken).
  • Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores --with-libdir).
  • Fixed bug #39903 (Notice message when executing __halt_compiler() more than once).
  • Fixed bug #39898 (FILTER_VALIDATE_URL validates \r\n\t etc).
  • Fixed bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR install path).
fixed bug #39884 (reflectionparameter
  • Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro).
  • Fixed bug #39873 (number_format() breaks with locale & decimal points).
  • Fixed bug #39869 (safe_read does not initialize errno).
  • Fixed bug #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong").
  • Fixed bug #39846 (Invalid IPv4 treated as valid).
  • Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql).
fixed bug #39832 (soap server
  • Fixed bug #39825 (foreach produces memory error).
  • Fixed bug #39816 (apxs2filter ignores httpd.conf & .htaccess php config settings).
  • Fixed bug #39815 (SOAP double encoding is not locale-independent).
  • Fixed bug #39797 (virtual() does not reset changed INI settings).
  • Fixed bug #39795 (build fails on AIX because crypt_r() uses different data struct).
  • Fixed bug #39791 (Crash in strtotime() on overly long relative date multipliers).
  • Fixed bug #39787 (PHP doesn't work with Apache 2.3). .
  • Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday yields incorrect results).
  • Fixed bug #39780 (PNG image with CRC/data error raises fatal error)
  • Fixed bug #39779 (Enable AUTH PLAIN mechanism in underlying libc-client).
  • Fixed bug #39775 ("Indirect modification ..." message is not shown).
  • Fixed bug #39763 (magic quotes are applied twice by ext/filter in parse_str()).
  • Fixed bug #39760 (cloning fails on nested SimpleXML-Object).
  • Fixed bug #39759 (Can't use stored procedures fetching multiple result sets in pdo_mysql).
  • Fixed bug #39754 (Some POSIX extension functions not thread safe).
  • Fixed bug #39751 (putenv crash on Windows).
  • Fixed bug #39732 (oci_bind_array_by_name doesn't work on Solaris 64bit).
  • Fixed bug #39724 (Broken build due to spl/filter usage of pcre extension).
  • Fixed bug #39718 (possible crash if assert.callback is set in ini).
  • Fixed bug #39702 (php crashes in the allocator on linux-m68k).
  • Fixed bug #39685 (iconv() - undefined function).
  • Fixed bug #39673 (file_get_contents causes bus error on certain offsets).
  • Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory corruption on Windows in pgsql and pdo_pgsql extensions).
  • Fixed bug #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement).
  • Fixed bug #39656 (crash when calling fetch() on a PDO statment object after closeCursor()).
  • Fixed bug #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled).
  • Fixed bug #39652 (Wrong negative results from memory_get_usage()).
  • Fixed bug #39648 (Implementation of PHP functions chown() and chgrp() are not thread safe).
  • Fixed bug #39640 (Segfault with "Allowed memory size exhausted").
  • Fixed bug #39625 (Apache crashes on importStylesheet call).
  • Fixed bug #39623 (thread safety fixes on *nix for putenv() & mime_magic).
  • Fixed bug #39621 (str_replace() is not binary safe on strings with equal length).
  • Fixed bug #39613 (Possible segfault in imap initialization due to missing module dependency).
  • Fixed bug #39606 (Use of com.typelib_file in PHP.ini STILL causes A/V).
  • Fixed bug #39602 (Invalid session.save_handler crashes PHP).
  • Fixed bug #39596 (Creating Variant of type VT_ARRAY).
  • Fixed bug #39583 (ftp_put() does not change transfer mode to ASCII).
  • Fixed bug #39576 (array_walk() doesn't separate user data zval).
  • Fixed bug #39575 (move_uploaded_file() no longer working (safe mode related)).
fixed bug #39564 (pdo
  • Fixed bug #39548 (ZMSG_LOG_SCRIPT_NAME not routed to OutputDebugString() on Windows).
  • Fixed bug #39538 (fgetcsv can't handle starting newlines and trailing odd number of backslashes).
  • Fixed bug #39534 (Error in maths to calculate of ZEND_MM_ALIGNED_MIN_HEADER_SIZE).
  • Fixed bug #39527 (Failure to retrieve results when multiple unbuffered, prepared statements are used in pdo_mysql).
  • Fixed bug #39508 (imagefill crashes with small images 3 pixels or less).
fixed bug #39506 (archive corrupt with ziparchive
  • Fixed bug #39504 (xmlwriter_write_dtd_entity() creates Attlist tag, not entity).
  • Fixed bug #39483 (Problem with handling of \ char in prepared statements).
  • Fixed bug #39458 (ftp_nlist() returns false on empty dirs).
  • Fixed bug #39454 (Returning a SOAP array segfaults PHP).
  • Fixed bug #39450 (getenv() fills other super-globals).
  • Fixed bug #39449 (Overloaded array properties do not work correctly).
  • Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash).
fixed bug #39438 (fatal error
  • Fixed bug #39435 ('foo' instanceof bar gives invalid opcode error).
  • Fixed bug #39414 (Syntax error while compiling with Sun Workshop Complier).
  • Fixed bug #39398 (Booleans are not automatically translated to integers).
  • Fixed bug #39394 (Missing check for older variants of openssl).
  • Fixed bug #39367 (clearstatcache() doesn't clear realpath cache).
  • Fixed bug #39366 (imagerotate does not use alpha with angle > 45 degrees)
  • Fixed bug #39364 (Removed warning on empty haystack inside mb_strstr()).
  • Fixed bug #39362 (Added an option to imap_open/imap_reopen to control the number of connection retries).
  • Fixed bugs #39361 & #39400 (mbstring function overloading problem).
  • Fixed bug #39354 (Allow building of curl extension against libcurl 7.16.0).
  • Fixed bug #39350 (crash with implode("\n", array(false))).
  • Fixed bug #39344 (Unnecessary calls to OnModify callback routine for an extension INI directive).
  • Fixed bug #39320 (ZEND_HASH_APPLY_STOP causes deletion).
  • Fixed bug #39313 (spl_autoload triggers Fatal error).
  • Fixed bug #39300 (make install fails if wget is not available).
  • Fixed bug #39297 (Memory corruption because of indirect modification of overloaded array).
  • Fixed bug #39286 (misleading error message when invalid dimensions are given)
  • Fixed bug #39273 (imagecopyresized may ignore alpha channel)
  • Fixed bug #39265 (Fixed path handling inside mod_files.sh).
  • Fixed bug #39217 (serialNumber might be -1 when the value is too large).
  • Fixed bug #39215 (Inappropriate close of stdin/stdout/stderr).
  • Fixed bug #39201 (Possible crash in Apache 2 with 413 ErrorHandler).
  • Fixed bug #39151 (Parse error in recursiveiteratoriterator.php).
  • Fixed bug #39121 (Incorrect return array handling in non-wsdl soap client).
  • Fixed bug #39090 (DirectoryFilterDots doxygen docs and example is wrong).
  • Fixed bug #38852 (XML-RPC Breaks iconv).
  • Fixed bug #38770 (unpack() broken with longs on 64 bit machines). .
  • Fixed bug #38698 (for some keys cdbmake creates corrupted db and cdb can't read valid db).
  • Fixed bug #38680 (Added missing handling of basic types in json_decode).
  • Fixed bug #38604 (Fixed request time leak inside foreach() when iterating through virtual properties).
  • Fixed bug #38602 (header( "HTTP/1.0 ..." ) does not change proto version).
  • Fixed bug #38542 (proc_get_status() returns wrong PID on windows).
  • Fixed bug #38536 (SOAP returns an array of values instead of an object).
  • Fixed bug #38456 (Apache2 segfaults when virtual() is called in .php ErrorDocument).
  • Fixed bug #38325 (spl_autoload_register() gives wrong line for "class not found").
  • Fixed bug #38319 (Remove bogus warnings from persistent PDO connections).
  • Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi).
  • Fixed bug #38252 (Incorrect PDO error message on invalid default fetch mode).
  • Fixed bug #37927 (Prevent trap when COM extension processes argument of type VT_DISPATCH|VT_REF)
  • Fixed bug #37773 (iconv_substr() gives "Unknown error" when string length = 1").
  • Fixed bug #37627 (session save_path check checks the parent directory).
  • Fixed bug #37619 (proc_open() closes stdin on fork() failure).
  • Fixed bug #37588 (COM Property propputref converts to PHP function and can't be accesed).
  • Fixed bug #36975 (natcasesort() causes array_pop() to misbehave).
  • Fixed bug #36812 (pg_execute() modifies input array).
  • Fixed bug #36798 (Error parsing named parameters with queries containing high-ascii chars).
  • Fixed bug #36644 (possible crash in variant_date_from_timestamp()).
  • Fixed bug #36427 (proc_open() / proc_close() leak handles on windows).
  • Fixed bug #36392 (wrong number of decimal digits with %e specifier in sprintf).
  • Fixed bug #36214 (__get method works properly only when conditional operator is used).
  • Fixed bug #35634 (Erroneous "Class declarations may not be nested" error raised).
  • Fixed bug #35106 (nested foreach fails when array variable has a reference).
  • Fixed bug #34564 (COM extension not returning modified "out" argument)
  • Fixed bug #33734 (Something strange with COM Object).
  • Fixed bug #33386 (ScriptControl only sees last function of class).
  • Fixed bug #33282 (Re-assignment by reference does not clear the is_ref flag)
  • Fixed bug #30074 (apparent symbol table error with extract($blah, EXTR_REFS))
  • Fixed bug #29840 (is_executable() does not honor safe_mode_exec_dir setting).
PHP 5.2.0
Released 02 Nov, 2006
added soapserver
  • Added DSA key generation support to openssl_pkey_new(), FR #38731 (marci at balabit dot hu, Tony) SoapServer::setClass() method).
  • Added support for hexadecimal entity in imagettftext() for the bundled GD.
  • Added support for httpOnly flag for session extension and cookie setting functions.
  • Added version specific registry keys to allow different configurations for different php version.
  • Added "PHPINIDir" Apache directive to apache and apache_hooks SAPIs.
  • Added an optional boolean parameter to memory_get_usage() and memory_get_peak_usage() to get memory size allocated by emalloc() or real size of memory allocated from system.
  • Added Zip Archive extension.
  • Added RFC1867 fileupload processing hook.
  • Added JSON and Filter extensions.
  • Added error messages to disk_free_space() and disk_total_space() functions. FR #37971
  • Added PATHINFO_FILENAME option to pathinfo() to get the filename.
  • Added array_fill_keys() function.
  • Added posix_initgroups() function.
  • Added an optional parameter to parse_url() to allow retrieval of distinct URL components.
  • Added optional parameter to http_build_query() to allow specification of string separator.
  • Added image_type_to_extension() function.
  • Added allow_url_include ini directive to complement allow_url_fopen.
  • Added automatic module globals management.
added rfc2397 (data
  • Added new error mode E_RECOVERABLE_ERROR.
  • Added support for getenv() input filtering.
  • Added support for constructors in interfaces to force constructor signature checks in implementations.
  • Added memory_get_peak_usage() function for retrieving peak memory usage of a PHP script.
  • Added pg_field_table() function.
added domnode
  • Added gmp_nextprime() function.
  • Added error_get_last() function.
  • Removed current working directory from the php.ini search path for CLI and re-added it for other SAPIs (restore to pre 5.1.x behavior).
moved extensions to pecl
  • ext/filepro
  • ext/hwapi
  • Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are enabled.
  • Increased default memory limit to 16 megabytes to accommodate for a more accurate memory utilization measurement.
  • In addition to path to php.ini, PHPRC now may specify full file name.
  • Optimized array/HashTable copying.
  • Optimized zend_try/zend_catch macros by eliminating memcpy(3).
  • Optimized require_once() and include_once() by eliminating fopen(3) on second usage.
  • Optimized request shutdown sequence. Restoring ini directives now iterates only over modified directives instead of all.
  • Changed priority of PHPRC environment variable on win32 to be higher then value from registry.
  • Changed __toString() to be called wherever applicable.
  • Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR.
  • Changed realpath cache to be disabled when "open_basedir" or "safe_mode" are enabled on per-request basis.
improved snmp extension
  • Renamed snmp_set_oid_numeric_print() to snmp_set_oid_output_format().
  • Added 2 new constants: SNMP_OID_OUTPUT_FULL and SNMP_OID_OUTPUT_NUMERIC
  • Fixed bug #37564 (AES privacy encryption not possible due to net-snmp 5.2 compatibility issue).
improved openssl extension
  • Added support for all supported algorithms in openssl_verify
  • Added openssl_pkey_get_details, returns the details of a key
  • Added x509 v3 extensions support
  • Added openssl_csr_get_subject() and openssl_csr_get_public_key()
  • Added 3 new constants OPENSSL_VERSION_TEXT and OPENSSL_VERSION_NUMBER and OPENSSL_KEYTYPE_EC
improved the zend memory manager
  • Removed unnecessary "--disable-zend-memory-manager" configure option.
  • Added "--enable-malloc-mm" configure option which is enabled by default in debug builds to allow using internal and external memory debuggers.
  • Allow tweaking the memory manager with ZEND_MM_MEM_TYPE and ZEND_MM_SEG_SIZE environment variables.
  • For more information: Zend/README.ZEND_MM
  • Improved safe_mode check for the error_log() function.
  • Improved the error reporting in SOAP extension on request failure.
  • Improved crypt() on win32 to be about 10 times faster and to have friendlier license.
  • Improved performance of the implode() function on associated arrays.
  • Improved performance of str_replace() when doing 1 char to 1 char or 1 char to many chars replacement.
improved apache2filter sapi
  • Allowed PHP to be an arbitrary filter in the chain and read the script from the Apache stream.
  • Added support for apache2filter in the Windows build including binary support for both Apache 2.0.x (php5apache2_filter.dll) and Apache 2.2.x (php5apache2_2_filter.dll).
improved apache2handler sapi
  • Changed ap_set_content_type() to be called only once.
  • Added support for Apache 2.2 handler in the Windows distribution.
improved fastcgi sapi
  • Removed source compatibility with libfcgi.
  • Optimized access to FastCGI environment variables by using HashTable instead of linear search.
  • Allowed PHP_FCGI_MAX_REQUESTS=0 that assumes no limit.
  • Allowed PHP_FCGI_CHILDREN=0 that assumes no worker children.
improved curl
  • Added control character checks for "open_basedir" and "safe_mode" checks.
  • Added implementation of curl_multi_info_read().
improved pcre
  • Added run-time configurable backtracking/recursion limits.
  • Added preg_last_error().
improved pdo
  • Added new attribute ATTR_DEFAULT_FETCH_MODE.
  • Added FETCH_PROPS_LATE.
improved spl
  • Made most iterator code exception safe.
  • Added RegExIterator and RecursiveRegExIterator.
  • Added full caching support and ArrayAccess to CachingIterator.
  • Added array functions to ArrayObject/ArrayIterator and made them faster.
  • Added support for reading csv and skipping empty lines in SplFileObject.
  • Added CachingIterator::TOSTRING_USE_INNER, calls inner iterator __toString.
  • Added ability to set the CSV separator per SplFileObject.
improved xmlreader
  • Added readInnerXml(), xmlReader::setSchema().
  • Added readInnerXML(), readOuterXML(), readString(), setSchema().
  • Changed to passing libxml options when loading reader.
  • Fixed invalid read in imagecreatefrompng when an empty file is given
  • Fixed infinite loop when a wrong color index is given to imagefill
  • Fixed mess with CGI/CLI -d option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests).
  • Fixed missing open_basedir check inside chdir() function.
  • Fixed overflow on 64bit systems in str_repeat() and wordwrap().
fixed xsltprocessor
  • Fixed leaks in openssl_csr_sign and openssl_csr_new
  • Fixed phpinfo() cutoff of variables at \0.
  • Fixed a bug in the filter extension that prevented magic_quotes_gpc from being applied when RAW filter is used.
  • Fixed memory leaks in openssl streams context options.
  • Fixed handling of extremely long paths inside tempnam() function.
  • Fixed bug #39721 (Runtime inheritance causes data corruption).
  • Fixed bug #39304 (Segmentation fault with list unpacking of string offset).
  • Fixed bug #39192 (Not including nsapi.h properly with SJSWS 7). This will make PHP 5.2 compatible to new Sun Webserver.
  • Fixed bug #39140 (Uncaught exception may cause crash).
  • Fixed bug #39125 (Memleak when reflecting non-existing class/method).
  • Fixed bug #39067 (getDeclaringClass() and private properties).
fixed bug #39039 (ssl
  • Fixed bug #39035 (Compatibility issue between DOM and zend.ze1_compatibility_mode).
  • Fixed bug #39034 (curl_exec() with return transfer returns TRUE on empty files).
  • Fixed bug #39032 (strcspn() stops on null character).
  • Fixed bug #39020 (PHP in FastCGI server mode crashes).
  • Fixed bug #39017 (foreach(($obj = new myClass) as $v); echo $obj; segfaults).
  • Fixed bug #39004 (Fixed generation of config.nice with autoconf 2.60).
  • Fixed bug #39003 (__autoload() is called for type hinting).
  • Fixed bug #39001 (ReflectionProperty returns incorrect declaring class for protected properties).
  • Fixed bug #38996 (PDO_MYSQL doesn't check connections for liveness).
  • Fixed bug #38993 (Fixed safe_mode/open_basedir checks for session.save_path, allowing them to account for extra parameters).
  • Fixed bug #38989 (Absolute path with slash at beginning doesn't work on win).
  • Fixed bug #38985 (Can't cast COM objects).
  • Fixed bug #38981 (using FTP URLs in get_headers() causes crash).
  • Fixed bug #38963 (Fixed a possible open_basedir bypass in tempnam()).
  • Fixed bug #38961 (metaphone() results in segmentation fault on NetBSD).
  • Fixed bug #38949 (Cannot get xmlns value attribute).
  • Fixed bug #38942 (Double old-style-ctor inheritance).
  • Fixed bug #38941 (imap extension does not compile against new version of the imap library).
  • Fixed bug #38934 (move_uploaded_file() cannot read uploaded file outside of open_basedir).
  • Fixed bug #38904 (apache2filter changes cwd to /).
  • Fixed bug #38891 (get_headers() do not work with curl-wrappers).
  • Fixed bug #38882 (ldap_connect causes segfault with newer versions of OpenLDAP).
  • Fixed bug #38859 (parse_url() fails if passing '@' in passwd).
  • Fixed bug #38850 (lookupNamespaceURI doesn't return default namespace).
  • Fixed bug #38844 (curl_easy_strerror() is defined only since cURL 7.12.0).
  • Fixed bug #38813 (DOMEntityReference->__construct crashes when called explicitly).
  • Fixed bug #38808 ("maybe ref" issue for current() and others).
  • Fixed bug #38779 (engine crashes when require()'ing file with syntax error through userspace stream wrapper).
  • Fixed bug #38772 (inconsistent overriding of methods in different visibility contexts).
  • Fixed bug #38759 (PDO sqlite2 empty query causes segfault).
  • Fixed bug #38721 (Invalid memory read in date_parse()).
fixed bug #38700 (soapclient
  • Fixed bug #38693 (curl_multi_add_handle() set curl handle to null).
  • Fixed bug #38687 (sockaddr local storage insufficient for all sock families).
  • Fixed bug #38661 (mixed-case URL breaks url-wrappers).
fixed bug #38653 (memory leak in reflectionclass
  • Fixed bug #38649 (uninit'd optional arg in stream_socket_sendto()).
  • Fixed bug #38637 (curl_copy_handle() fails to fully copy the cURL handle).
  • Fixed bug #38624 (Strange warning when incrementing an object property and exception is thrown from __get method).
  • Fixed bug #38623 (leaks in a tricky code with switch() and exceptions).
  • Fixed bug #38579 (include_once() may include the same file twice).
  • Fixed bug #38574 (missing curl constants and improper constant detection).
  • Fixed bug #38543 (shutdown_executor() may segfault when memory_limit is too low).
  • Fixed bug #38535 (memory corruption in pdo_pgsql driver on error retrieval inside a failed query executed via query() method).
  • Fixed bug #38534 (segfault when calling setlocale() in userspace session handler).
  • Fixed bug #38524 (strptime() does not initialize the internal date storage structure).
  • Fixed bug #38511, #38473, #38263 (Fixed session extension request shutdown order to ensure it is shutdown before the extensions it may depend on).
fixed bug #38488 (access to "php
  • Fixed bug #38474 (getAttribute select attribute by order, even when prefixed).
  • Fixed bug #38467 (--enable-versioning causes make fail on OS X).
  • Fixed bug #38465 (ReflectionParameter fails if default value is an access to self::).
  • Fixed bug #38464 (array_count_values() mishandles numeric strings).
  • Fixed bug #38461 (setting private attribute with __set() produces segfault).
  • Fixed bug #38458, PECL bug #8944, PECL bug #7775 (error retrieving columns after long/text columns with PDO_ODBC).
  • Fixed bug #38454 (warning upon disabling handler via xml_set_element_handler).
  • Fixed bug #38451 (PDO_MYSQL doesn't compile on Solaris).
  • Fixed bug #38450 (constructor is not called for classes used in userspace stream wrappers).
  • Fixed bug #38438 (DOMNodeList->item(0) segfault on empty NodeList).
  • Fixed bug #38431 (xmlrpc_get_type() crashes PHP on objects).
  • Fixed bug #38427 (unicode causes xml_parser to misbehave).
  • Fixed bug #38424 (Different attribute assignment if new or existing).
  • Fixed bug #38400 (Use of com.typelib_file may cause a crash).
  • Fixed bug #38394 (PDO fails to recover from failed prepared statement execution).
  • Fixed bug #38377 (session_destroy() gives warning after session_regenerate_id()).
  • Implemented #38357 (dbase_open can't open DBase 3 dbf file).
  • Fixed bug #38354 (Unwanted reformatting of XML when using AsXML).
  • Fixed bug #38347 (Segmentation fault when using foreach with an unknown/empty SimpleXMLElement).
  • Fixed bug #38322 (reading past array in sscanf() leads to arbitrary code execution).
  • Fixed bug #38315 (Constructing in the destructor causes weird behavior).
  • Fixed bug #38303 (spl_autoload_register() suppress all errors silently).
  • Fixed bug #38290 (configure script ignores --without-cdb,inifile,flatfile).
  • Fixed bug #38289 (segfault in session_decode() when _SESSION is NULL).
  • Fixed bug #38287 (static variables mess up global vars).
  • Fixed bug #38278 (session_cache_expire()'s value does not match phpinfo's session.cache_expire).
  • Fixed bug #38276 (file_exists() works incorrectly with long filenames on Windows).
  • Fixed bug #38269 (fopen wrapper doesn't fail on invalid hostname with curlwrappers enabled).
  • Fixed bug #38265 (heap corruption).
  • Fixed bug #38261 (openssl_x509_parse() leaks with invalid cert)
  • Fixed bug #38255 (openssl possible leaks while passing keys)
  • Fixed bug #38253 (PDO produces segfault with default fetch mode).
  • Fixed bug #38251 (socket_select() and invalid arguments).
  • Fixed bug #38236 (Binary data gets corrupted on multipart/formdata POST).
  • Fixed bug #38234 (Exception in __clone makes memory leak).
  • Fixed bug #38229 (strtotime() does not parse YYYY-MM format).
  • Fixed bug #38224 (session extension can't handle broken cookies).
  • Fixed bug #38220 (Crash on some object operations).
fixed bug #38217 (reflectionclass
  • Fixed bug #38214 (gif interlace output cannot work).
  • Fixed bug #38213, #37611, #37571 (wddx encoding fails to handle certain characters).
  • Fixed bug #38212 (Segfault on invalid imagecreatefromgd2part() parameters).
  • Fixed bug #38211 (variable name and cookie name match breaks script execution).
  • Fixed bug #38199 (fclose() unable to close STDOUT and STDERR).
  • Fixed bug #38198 (possible crash when COM reports an exception).
fixed bug #38194 (reflectionclass
  • Fixed bug #38183 (disable_classes=Foobar causes disabled class to be called Foo).
  • Fixed bug #38179 (imagecopy from a palette to a truecolor image loose alpha channel)
  • Fixed bug #38173 (Freeing nested cursors causes OCI8 to segfault).
  • Fixed bug #38168 (Crash in pdo_pgsql on missing bound parameters).
  • Fixed bug #38161 (oci_bind_by_name() returns garbage when Oracle didn't set the variable).
fixed bug #38132 (reflectionclass
  • Fixed bug #38125 (undefined reference to spl_dual_it_free_storage).
  • Fixed bug #38112 (corrupted gif segfaults)
  • Fixed bug #38096 (large timeout values ignored on 32bit machines in stream_socket_accept() and stream_socket_client()).
  • Fixed bug #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length).
  • Fixed bug #38072 (boolean arg for mysqli_autocommit() is always true on Solaris).
  • Fixed bug #38067 (Parameters are not decoded from utf-8 when using encoding option).
  • Fixed bug #38064 (ignored constructor visibility).
  • Fixed bug #38055 (Wrong interpretation of boolean parameters).
  • Fixed bug #38047 ("file" and "line" sometimes not set in backtrace from inside error handler).
  • Fixed bug #38019 (segfault extending mysqli class).
  • Fixed bug #38005 (SoapFault faultstring doesn't follow encoding rules).
  • Fixed bug #38004 (Parameters in SoapServer are decoded twice).
  • Fixed bug #38003 (in classes inherited from MySQLi it's possible to call private constructors from invalid context).
  • Fixed bug #37987 (invalid return of file_exists() in safe mode).
  • Fixed bug #37947 (zend_ptr_stack reallocation problem).
  • Fixed bug #37945 (pathinfo() cannot handle argument with special characters like German "Umlaut").
  • Fixed bug #37931 (possible crash in OCI8 after database restart when using persistent connections).
fixed bug #37923 (display constant value in reflection
  • Fixed bug #37920 (compilation problems on z/OS).
  • Fixed bug #37870 (pgo_pgsql tries to de-allocate unused statements).
  • Fixed bug #37864 (file_get_contents() leaks on empty file).
  • Fixed bug #37862 (Integer pointer comparison to numeric value).
  • Fixed bug #37846 (wordwrap() wraps incorrectly).
  • Fixed bug #37816 (ReflectionProperty does not throw exception when accessing protected attribute).
  • Fixed bug #37811 (define not using toString on objects).
  • Fixed bug #37807 (segmentation fault during SOAP schema import).
  • Fixed bug #37806 (weird behavior of object type and comparison).
  • Fixed bug #37780 (memory leak trying to execute a non existing file (CLI)).
  • Fixed bug #37779 (empty include_path leads to search for files inside /).
  • Fixed bug #37747 (strtotime segfaults when given "nextyear").
  • Fixed bug #37720 (merge_php_config scrambles values).
fixed bug #37709 (possible crash in pdo
  • Fixed bug #37707 (clone without assigning leaks memory).
  • Fixed bug #37705 (Semaphore constants not available).
  • Fixed bug #37671 (MySQLi extension fails to recognize BIT column).
  • Fixed bug #37667 (Object is not added into array returned by __get).
  • Fixed bug #37635 (parameter of pcntl signal handler is trashed).
  • Fixed bug #37632 (Protected method access problem).
  • Fixed bug #37630 (MySQL extensions should link against thread safe client libs if built with ZTS).
  • Fixed bug #37620 (mysqli_ssl_set validation is inappropriate).
  • Fixed bug #37616 (DATE_RFC822 does not product RFC 822 dates).
  • Fixed bug #37614 (Class name lowercased in error message).
  • Fixed bug #37587 (var without attribute causes segfault).
  • Fixed bug #37586 (Bumped minimum PCRE version to 6.6, needed for recursion limit support).
  • Fixed bug #37581 (oci_bind_array_by_name clobbers input array when using SQLT_AFC, AVC).
  • Fixed bug #37569 (WDDX incorrectly encodes high-ascii characters).
fixed bug #37565 (using reflection
  • Fixed bug #37564 (AES privacy encryption not possible due to net-snmp 5.2 compatibility issue).
  • Fixed bug #37563 (array_key_exists performance is poor for &$array).
  • Fixed bug #37558 (timeout functionality doesn't work after a second PHP start-up on the same thread).
  • Fixed bug #37531 (oci8 persistent connection corruption).
fixed bug #37523 (namespaces added too late, leads to missing xsi
  • Fixed bug #37514 (strtotime doesn't assume year correctly).
  • Fixed bug #37510 (session_regenerate_id changes session_id() even on failure).
  • Fixed bug #37505 (touch() truncates large files).
  • Fixed bug #37499 (CLI segmentation faults during cleanup with sybase-ct extension enabled).
  • Fixed bug #37496 (FastCGI output buffer overrun).
  • Fixed bug #37487 (oci_fetch_array() array-type should always default to OCI_BOTH).
  • Fixed bug #37457 (Crash when an exception is thrown in accept() method of FilterIterator).
  • Fixed bug #37456 (DOMElement->setAttribute() loops forever).
  • Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature object destruction).
  • Fixed bug #37428 (PHP crashes on windows if there are start-up errors and event log is used for logging them).
  • Fixed bug #37418 (tidy module crashes on shutdown).
  • Fixed bug #37416 (iterator_to_array() hides exceptions thrown in rewind() method).
  • Fixed bug #37413 (Rejected versions of flex that don't work).
  • Fixed bug #37395 (recursive mkdir() fails to create nonexistent directories in root dir).
  • Fixed bug #37394 (substr_compare() returns an error when offset equals string length).
  • Fixed bug #37392 (Unnecessary call to OCITransRollback() at the end of request).
  • Fixed bug #37376 (fastcgi.c compile fail with gcc 2.95.4).
  • Fixed bug #37368 (Incorrect timestamp returned for strtotime()).
  • Fixed bug #37363 (PDO_MYSQL does not build if no other mysql extension is enabled).
  • Fixed bug #37348 (make PEAR install ignore open_basedir).
  • Fixed bug #37341 ($_SERVER in included file is shortened to two entries, if $_ENV gets used).
  • Fixed bug #37313 (sigemptyset() used without including <signal.h>).
  • Fixed bug #37306 (max_execution_time = max_input_time).
  • Fixed bug #37278 (SOAP not respecting uri in __soapCall).
  • Fixed bug #37265 (Added missing safe_mode & open_basedir checks to imap_body()).
  • Fixed bug #37262 (var_export() does not escape \0 character).
  • Fixed bug #37256 (php-fastcgi doesn't handle connection abort).
  • Fixed bug #37244 (Added strict flag to base64_decode() that enforces RFC3548 compliance).
  • Fixed bug #37144 (PHP crashes trying to assign into property of dead object).
  • Fixed bug #36949 (invalid internal mysqli objects dtor).
  • Implement #36732 (req/x509 extensions support for openssl_csr_new and openssl_csr_sign)
  • Fixed bug #36759 (Objects destructors are invoked in wrong order when script is finished).
  • Fixed bug #36681 (pdo_pgsql driver incorrectly ignored some errors).
  • Fixed bug #36630 (umask not reset at the end of the request).
  • Fixed bug #36515 (Unlinking buckets from non-existent brigades).
  • Fixed bug #35973 (Error ORA-24806 occurs when trying to fetch a NCLOB field).
  • Fixed bug #35886 (file_get_contents() fails with some combinations of offset & maxlen).
  • Fixed bug #35512 (Lack of read permission on main script results in E_WARNING rather then E_ERROR).
  • Fixed bug #34180 (--with-curlwrappers causes PHP to disregard some HTTP stream context options).
  • Fixed bug #34066 (recursive array_walk causes segfault).
  • Fixed bug #34065 (throw in foreach causes memory leaks).
  • Fixed bug #34005 (oci_password_change() fails).
  • Fixed bug #33895 (Missing math constants).
fixed bug #33770 (https
  • Fixed bug #29538 (number_format and problem with 0).
  • Implement #28382 (openssl_x509_parse() extensions support)
  • Fixed PECL bug #9061 (oci8 might reuse wrong persistent connection).
  • Fixed PECL bug #8816 (issue in php_oci_statement_fetch with more than one piecewise column)
  • Fixed PECL bug #8112 (OCI8 persistent connections misbehave when Apache process times out).
  • Fixed PECL bug #7755 (error selecting DOUBLE fields with PDO_ODBC).
To Top