Dmitry Stogov [Wed, 18 Dec 2013 15:19:53 +0000 (19:19 +0400)]
Fixed reavlidate_path=1 behavior to avoid caching of symlinks values.
Anatol Belski [Tue, 17 Dec 2013 07:45:07 +0000 (08:45 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fixed possibly uninitialized value usage
Anatol Belski [Tue, 17 Dec 2013 07:44:22 +0000 (08:44 +0100)]
fixed possibly uninitialized value usage
Stanislav Malyshev [Mon, 16 Dec 2013 19:35:54 +0000 (11:35 -0800)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fix bug #65873 - Integer overflow in exif_read_data()
Stanislav Malyshev [Sun, 8 Dec 2013 23:37:35 +0000 (15:37 -0800)]
Fix bug #65873 - Integer overflow in exif_read_data()
Dmitry Stogov [Mon, 16 Dec 2013 09:13:29 +0000 (13:13 +0400)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
* 'PHP-5.5' of git.php.net:php-src:
Fix tests expecting specific resource IDs
fixed parameter order for zend_throw_exception_ex call
Fix doc (svn -> git)
Updated release process
Xinchen Hui [Sun, 15 Dec 2013 08:55:11 +0000 (16:55 +0800)]
Merge branch 'PHP-5.5' of https://git.php.net/push/php-src into PHP-5.5
Eric Stenson [Fri, 13 Dec 2013 18:42:32 +0000 (10:42 -0800)]
Fix tests expecting specific resource IDs
When Wincache or APC are installed, the resource IDs are not the same.
This is because Wincache takes a few resource objects for itself. As a
result, these tests become false positives.
On Windows boxes, the microtime precision is not granular enough
to reliably register a difference if two calls to uniqid() are made
concurrently. This is a fix to the uniqid() test to avoid the false
positive when run on Windows machines. Also, added a test to exercise
the 'more_entropy' variant of uniqid().
Anatol Belski [Sat, 14 Dec 2013 19:46:43 +0000 (20:46 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fixed parameter order for zend_throw_exception_ex call
Fix doc (svn -> git)
Anatol Belski [Sat, 14 Dec 2013 19:43:02 +0000 (20:43 +0100)]
fixed parameter order for zend_throw_exception_ex call
DQNEO [Fri, 13 Dec 2013 21:20:37 +0000 (23:20 +0200)]
Fix doc (svn -> git)
Julien Pauli [Fri, 13 Dec 2013 12:27:19 +0000 (13:27 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Updated release process
Julien Pauli [Fri, 13 Dec 2013 12:26:16 +0000 (13:26 +0100)]
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3:
Updated release process
Julien Pauli [Fri, 13 Dec 2013 12:16:54 +0000 (13:16 +0100)]
Updated release process
Dmitry Stogov [Fri, 13 Dec 2013 07:16:17 +0000 (11:16 +0400)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
* 'PHP-5.5' of git.php.net:php-src:
Use zend_error_noreturn here
Add Tests for #65784 in 5.5
Disallowed JMP into a finally block.
Update NEWS for 5.5.7 release
Xinchen Hui [Fri, 13 Dec 2013 02:56:35 +0000 (10:56 +0800)]
Use zend_error_noreturn here
Xinchen Hui [Thu, 12 Dec 2013 17:45:45 +0000 (01:45 +0800)]
Add Tests for #65784 in 5.5
Xinchen Hui [Thu, 12 Dec 2013 17:44:54 +0000 (01:44 +0800)]
Disallowed JMP into a finally block.
Julien Pauli [Thu, 12 Dec 2013 16:15:43 +0000 (17:15 +0100)]
Update NEWS for 5.5.7 release
Dmitry Stogov [Thu, 12 Dec 2013 12:46:49 +0000 (16:46 +0400)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
* 'PHP-5.5' of git.php.net:php-src:
fix test
Michael Wallner [Thu, 12 Dec 2013 11:09:34 +0000 (12:09 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fix test
Michael Wallner [Thu, 12 Dec 2013 11:08:50 +0000 (12:08 +0100)]
fix test
Dmitry Stogov [Thu, 12 Dec 2013 10:00:03 +0000 (14:00 +0400)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
* 'PHP-5.5' of git.php.net:php-src:
Fixed bug #65486 mysqli_poll() is broken on Win x64
Dmitry Stogov [Thu, 12 Dec 2013 09:35:37 +0000 (13:35 +0400)]
Fixed tests
Anatol Belski [Thu, 12 Dec 2013 09:17:01 +0000 (10:17 +0100)]
Fixed bug #65486 mysqli_poll() is broken on Win x64
While this issue is visible in mysqli_poll() functions, the cause
lays deeper in the stream to socket casting API. On Win x64 the
SOCKET datatype is a 64 or 32 bit unsigned, while on Linux/Unix-like
it's 32 bit signed integer. The game of casting 32 bit var to/from
64 bit pointer back and forth is the best way to break it.
Further more, while socket and file descriptors are always integers
on Linux, those are different things using different APIs on Windows.
Even though using integer instead of SOCKET might work on Windows, this
issue might need to be revamped more carefully later. By this time
this patch is tested well with phpt and apps and shows no regressions,
neither in mysqli_poll() nor in any other parts.
Dmitry Stogov [Thu, 12 Dec 2013 09:02:50 +0000 (13:02 +0400)]
Fixed ext/soap/tests/bugs/bug54911.phpt
Anatol Belski [Wed, 11 Dec 2013 12:31:29 +0000 (13:31 +0100)]
fix dir separator in cve-2013-6420 test
Stanislav Malyshev [Tue, 10 Dec 2013 19:32:11 +0000 (11:32 -0800)]
5.3.29-dev
Stanislav Malyshev [Sun, 8 Dec 2013 19:40:18 +0000 (11:40 -0800)]
Fix CVE-2013-6420 - memory corruption in openssl_x509_parse
Adam Harvey [Sun, 8 Dec 2013 03:41:23 +0000 (19:41 -0800)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Switch to using freetype-config for freetype detection.
Anatol Belski [Wed, 11 Dec 2013 13:15:40 +0000 (14:15 +0100)]
added missing prototype
Anatol Belski [Wed, 11 Dec 2013 12:33:16 +0000 (13:33 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fix dir separator in cve-2013-6420 test
Anatol Belski [Wed, 11 Dec 2013 12:32:49 +0000 (13:32 +0100)]
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3:
fix dir separator in cve-2013-6420 test
Ard Biesheuvel [Wed, 11 Dec 2013 07:50:53 +0000 (08:50 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
Ard Biesheuvel [Tue, 10 Dec 2013 11:07:46 +0000 (12:07 +0100)]
Zend: fix overflow handling bug in non-x86 fast_add_function()
The 'result' argument of fast_add_function() may alias with either
of its operands (or both). Take care not to write to 'result' before
reading op1 and op2.
Stanislav Malyshev [Tue, 10 Dec 2013 19:35:26 +0000 (11:35 -0800)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
5.3.29-dev
Fix CVE-2013-6420 - memory corruption in openssl_x509_parse
Stanislav Malyshev [Tue, 10 Dec 2013 19:34:45 +0000 (11:34 -0800)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
* 'PHP-5.4' of git.php.net:php-src:
Fixed Bug #66218 zend_register_functions breaks reflection
Stanislav Malyshev [Tue, 10 Dec 2013 19:33:40 +0000 (11:33 -0800)]
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3:
5.3.29-dev
Fix CVE-2013-6420 - memory corruption in openssl_x509_parse
Conflicts:
configure.in
main/php_version.h
Remi Collet [Tue, 10 Dec 2013 15:10:02 +0000 (16:10 +0100)]
NEWS
Remi Collet [Tue, 10 Dec 2013 15:09:41 +0000 (16:09 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed Bug #66218 zend_register_functions breaks reflection
Remi Collet [Tue, 10 Dec 2013 15:07:16 +0000 (16:07 +0100)]
Fixed Bug #66218 zend_register_functions breaks reflection
Functions registered using zend_register_functions instead of zend_module_entry.functions are not seen on reflection.
Ex: additional_functions from api_module_entry.
Ex: in CLI, dl, cli_set_process_title and cli_get_process_title
Note:
- also affects functions overrided in extension
(should be be reported in extension, where overrided, not in original extension)
- also allow extension to call zend_register_functions for various list
(instead of having a single bug list)
Dmitry Stogov [Tue, 10 Dec 2013 13:57:05 +0000 (17:57 +0400)]
Fixed bug #66112 (Use after free condition in SOAP extension). (martin dot koegler at brz dot gv dot at)
Dmitry Stogov [Tue, 10 Dec 2013 12:02:59 +0000 (16:02 +0400)]
Revered func_get_args() changes, because they were not completly transparent and broke some tricky PHP code that worked because of luck before php-5.5.6 (see Bug #66107). The changes are going to be kept in PHP-5.6.
Dmitry Stogov [Tue, 10 Dec 2013 09:00:45 +0000 (13:00 +0400)]
Arguments passed to user function have to be properly allocated on heap
Stanislav Malyshev [Sun, 8 Dec 2013 23:50:08 +0000 (15:50 -0800)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Replace invalid code with a proper #error
Lior Kaplan [Fri, 4 Oct 2013 21:31:16 +0000 (23:31 +0200)]
Replace invalid code with a proper #error
This code creates a nasty error as mentioned in bugs #31131, #37062
Patch taken from Debian's PHP package: 044-strtod_arm_fix
Adam Harvey [Sun, 8 Dec 2013 03:39:40 +0000 (19:39 -0800)]
Switch to using freetype-config for freetype detection.
This fixes GD compilation against libfreetype 2.5.1 and later after they made
the rather interesting decision to change their include directory layout in a
point release.
The original suggestion in the bug was to use pkg-config, but my inclination is
to use freetype-config instead: we should be able to get the same configuration
information without actually needing pkg-config installed, since pkg-config is
by no means guaranteed to exist on many Unices and distros, whereas
freetype-config should always be present if a libfreetype build environment is
installed. Let's try it out and see what happens.
Fixes bug #64405 (Use freetype-config for determining freetype2 dir(s)).
Michael Wallner [Fri, 6 Dec 2013 09:39:02 +0000 (10:39 +0100)]
BFN
Michael Wallner [Fri, 6 Dec 2013 09:33:10 +0000 (10:33 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed bug #61645 (fopen and O_NONBLOCK)
fix possibly uninitialized value
Michael Wallner [Fri, 6 Dec 2013 09:29:24 +0000 (10:29 +0100)]
Fixed bug #61645 (fopen and O_NONBLOCK)
if a mode like "rn" was passed to fopen(), then
php_stream_parse_fopen_modes() would assign O_WRONLY to
flags, because O_NONBLOCK tainted flags for the r/w/+ check
Michael Wallner [Fri, 6 Dec 2013 09:27:33 +0000 (10:27 +0100)]
fix possibly uninitialized value
Sara Golemon [Wed, 4 Dec 2013 15:49:16 +0000 (07:49 -0800)]
Use 'user@example.com' rather than 'user@company.com' in tests
Using some arbitrary 3rd party's domain name is clowny,
even if it never tries to send.
Andrey Hristov [Wed, 4 Dec 2013 10:07:18 +0000 (12:07 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5
Andrey Hristov [Wed, 4 Dec 2013 10:06:59 +0000 (12:06 +0200)]
Fix loss of precision
Sara Golemon [Wed, 4 Dec 2013 00:36:07 +0000 (16:36 -0800)]
Fix php_module_startup() when loading more than one additional module
Dereferencing addition_modules within php_module_startup would
point to a vector entirely on the stack (which is of course, wrong).
Use a specialized helper to keep BC with the current php_module_startup()
calling semantics.
Fixes 63159
Thanks to @a-j-k
Adam Harvey [Tue, 3 Dec 2013 22:51:03 +0000 (14:51 -0800)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Remove 128.0.0.0/16 and 191.255.0.0/16 from the reserved list.
Adam Harvey [Tue, 3 Dec 2013 22:46:15 +0000 (14:46 -0800)]
Remove 128.0.0.0/16 and 191.255.0.0/16 from the reserved list.
These were returned to the general allocation pool by RFC 3330, and hence
shouldn't cause an IP address validation failure due to being reserved. At
least 128.0.0.0/16 is in use on the public Internet today.
Fixes bug #66229 (128.0.0.0/16 isn't reserved any longer).
Michael Wallner [Mon, 2 Dec 2013 16:02:01 +0000 (17:02 +0100)]
BFN
Michael Wallner [Mon, 2 Dec 2013 16:01:25 +0000 (17:01 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fix bug #65196
Michael Wallner [Mon, 2 Dec 2013 15:58:34 +0000 (16:58 +0100)]
Fix bug #65196
Passing DOMDocumentFragment to DOMDocument::saveHTML()
produces invalid markup, because a DocumentFragment is just a container
for child nodes and not a real node itself.
Michael Wallner [Mon, 2 Dec 2013 11:14:26 +0000 (12:14 +0100)]
BFN
Michael Wallner [Mon, 2 Dec 2013 11:10:59 +0000 (12:10 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fix bug #49634x
Michael Wallner [Mon, 2 Dec 2013 11:08:22 +0000 (12:08 +0100)]
fix bug #49634x
Dmitry Stogov [Mon, 2 Dec 2013 08:04:07 +0000 (12:04 +0400)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed tests
Dmitry Stogov [Mon, 2 Dec 2013 07:53:35 +0000 (11:53 +0400)]
Fixed tests
Dmitry Stogov [Mon, 2 Dec 2013 07:02:40 +0000 (11:02 +0400)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed ability to build non-specialized GOTO VM
Conflicts:
Zend/zend_vm_gen.php
Dmitry Stogov [Mon, 2 Dec 2013 06:59:32 +0000 (10:59 +0400)]
Fixed ability to build non-specialized GOTO VM
Nikita Popov [Sun, 1 Dec 2013 12:37:56 +0000 (13:37 +0100)]
Fix bug #65764
I'm not exactly sure whether this is the right way to fix it. The
question is whether Generator::throw() on a newborn generator (i.e.
a generator that is not yet at yield expression) should first advance to
the first yield and throw the exception there or whether it should
instead throw the exception in the caller's context.
The old behavior was to throw it at the start of the function (i.e.
the very first opcode), which causes issues like the one in #65764.
Effectively it's impossible to properly handle the exceptions in this
case.
For now I choose the variant where the generator advances to the
first yield before throwing, as that's consistent with how all other
methods on the Generator object currently behave. This does not
necessarily match the behavior in other languages, e.g. Python would throw
the exception in the caller's context. But then our send() method already
has this kind of deviation, so it stays internally consistent at least.
Felipe Pena [Sat, 30 Nov 2013 14:05:51 +0000 (12:05 -0200)]
- BFN
Felipe Pena [Sat, 30 Nov 2013 13:44:08 +0000 (11:44 -0200)]
Merge branch 'PHP-5.5' of git.php.net:/php-src into PHP-5.5
Felipe Pena [Sat, 30 Nov 2013 13:39:57 +0000 (11:39 -0200)]
- Fixed bug #65923 (ext/socket assumes AI_V4MAPPED is defined)
Nikita Popov [Sat, 30 Nov 2013 12:35:33 +0000 (13:35 +0100)]
Cleanup generator closing code a bit
All code dealing with unfinished execution cleanup is now in a separate
function (previously most of it was run even when execution was properly
finished.
Furthermore some code dealing with unclean shutdowns has been removed,
which is no longer necessary, because we no longer try to clean up in
this case.
Nikita Popov [Sat, 30 Nov 2013 12:05:40 +0000 (13:05 +0100)]
Fixed bug #66041: list() fails to unpack yielded ArrayAccess object
Yield return values now use IS_VAR rather than IS_TMP_VAR. This
fixes the issue with list() and should also be faster as it avoids
doing a zval copy.
nikita2206 [Tue, 29 Oct 2013 15:40:17 +0000 (19:40 +0400)]
Fixed bug #65768: DateTimeImmutable::diff does not work
This commit also prevents user classes from directly implementing
DateTimeInterface, because ext/date relies on classes implementing
it to support certain internal structures.
Dmitry Stogov [Fri, 29 Nov 2013 08:54:22 +0000 (12:54 +0400)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Added validation of class names in the autoload process
Dmitry Stogov [Fri, 29 Nov 2013 08:53:02 +0000 (12:53 +0400)]
Added validation of class names in the autoload process
Derick Rethans [Thu, 28 Nov 2013 16:33:08 +0000 (16:33 +0000)]
Merge branch 'PHP-5.4' into PHP-5.5
Derick Rethans [Thu, 28 Nov 2013 16:32:11 +0000 (16:32 +0000)]
Fixed bug #65199 (Wrong Day of Week) and fixed bug #63391 (Incorrect/inconsistent day of week prior to the year 1600)
Derick Rethans [Thu, 28 Nov 2013 14:30:08 +0000 (14:30 +0000)]
Merge branch 'PHP-5.4' into PHP-5.5
Conflicts:
ext/date/php_date.c
Derick Rethans [Thu, 28 Nov 2013 14:26:01 +0000 (14:26 +0000)]
Merge branch 'date-time-dst-rfc' into PHP-5.4
This is a partial resolve of some DST issues, plenty of things to do, but as
this *does* fix a few issues it's worth merging it already.
Derick Rethans [Thu, 28 Nov 2013 14:24:39 +0000 (14:24 +0000)]
Marking those two as XFAIL for now.
Derick Rethans [Thu, 20 Jun 2013 08:28:23 +0000 (09:28 +0100)]
Fixed a few DST changeover issues.
Derick Rethans [Tue, 16 Apr 2013 15:31:10 +0000 (16:31 +0100)]
Move add/sub to timelib.
Derick Rethans [Sat, 13 Apr 2013 22:47:23 +0000 (23:47 +0100)]
Fix backwards transition diffs.
Derick Rethans [Sat, 13 Apr 2013 22:28:59 +0000 (23:28 +0100)]
Split up tests into their different categories.
Derick Rethans [Sat, 13 Apr 2013 17:45:51 +0000 (18:45 +0100)]
Group those tests a bit better, as some of the bd ones wanted a "ST" feature that doesn't exist yet.
Derick Rethans [Fri, 12 Apr 2013 10:24:14 +0000 (11:24 +0100)]
Fixed forward transitions in diffs.
Derick Rethans [Fri, 12 Apr 2013 10:23:49 +0000 (11:23 +0100)]
Always reset those parameters.
Derick Rethans [Sun, 31 Mar 2013 17:11:35 +0000 (18:11 +0100)]
Fixed "Forward Transition" construction of DateTime objects.
This fixes the issue in
https://wiki.php.net/rfc/datetime_and_daylight_saving_time#forward_transitions
There is a period during transition to DST where a time (such as 02:30) does
not exist. PHP already calculated the correct timestamp for this, but failed to
"rounded forward" to the existing correct hour value.
Derick Rethans [Wed, 27 Nov 2013 22:01:03 +0000 (22:01 +0000)]
Merge branch 'PHP-5.4' into PHP-5.5
Derick Rethans [Wed, 27 Nov 2013 22:00:53 +0000 (22:00 +0000)]
Merge branch 'bug53879' into PHP-5.4
Derick Rethans [Wed, 27 Nov 2013 21:59:46 +0000 (21:59 +0000)]
Fixed bug #53879 (DateTime::createFromFormat() fails to parse cookie expiration date)
Dmitry Stogov [Wed, 27 Nov 2013 10:58:54 +0000 (14:58 +0400)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
* 'PHP-5.4' of git.php.net:php-src:
Fixed bug #66060 (Heap buffer over-read in DateInterval)
Dmitry Stogov [Wed, 27 Nov 2013 10:58:35 +0000 (14:58 +0400)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
* 'PHP-5.5' of git.php.net:php-src:
NEWS
Fixed bug #66060 (Heap buffer over-read in DateInterval)
Dmitry Stogov [Wed, 27 Nov 2013 10:39:40 +0000 (14:39 +0400)]
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Fixed bug #65969 (Chain assignment with T_LIST failure)
Conflicts:
NEWS
Zend/zend_vm_def.h
Zend/zend_vm_execute.h
Dmitry Stogov [Wed, 27 Nov 2013 10:26:34 +0000 (14:26 +0400)]
Fixed bug #65969 (Chain assignment with T_LIST failure)
Remi Collet [Wed, 27 Nov 2013 10:15:34 +0000 (11:15 +0100)]
NEWS
Remi Collet [Wed, 27 Nov 2013 10:15:08 +0000 (11:15 +0100)]
Fixed bug #66060 (Heap buffer over-read in DateInterval)
Remi Collet [Wed, 27 Nov 2013 10:13:16 +0000 (11:13 +0100)]
Fixed bug #66060 (Heap buffer over-read in DateInterval)
Julien Pauli [Wed, 27 Nov 2013 08:34:40 +0000 (09:34 +0100)]
5.5.8-dev now