]>
granicus.if.org Git - php/log
Anatol Belski [Sun, 14 Aug 2016 19:00:56 +0000 (21:00 +0200)]
Merge branch 'PHP-7.1' of git.php.net:php-src into PHP-7.1
Anatol Belski [Sun, 14 Aug 2016 18:55:41 +0000 (20:55 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
update NEWS
update NEWS
Anatol Belski [Sun, 14 Aug 2016 18:55:26 +0000 (20:55 +0200)]
update UPGRADING
Anatol Belski [Sun, 14 Aug 2016 18:52:47 +0000 (20:52 +0200)]
update NEWS
Anatol Belski [Sun, 14 Aug 2016 18:51:44 +0000 (20:51 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
update NEWS
Anatol Belski [Sun, 14 Aug 2016 18:50:23 +0000 (20:50 +0200)]
update NEWS
Jakub Zelenka [Sun, 14 Aug 2016 18:34:03 +0000 (19:34 +0100)]
Return false if tag is not supplied or cannot be retrieved in AEAD
It doesn't make sense to return just encoded string as it cannot be
used anyway (decryption without a tag will not work).
Anatol Belski [Sun, 14 Aug 2016 18:06:44 +0000 (20:06 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Fixed bug #72759 Regression in pgo_pgsql
Anatol Belski [Sun, 14 Aug 2016 18:04:49 +0000 (20:04 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
Fixed bug #72759 Regression in pgo_pgsql
Anatol Belski [Sun, 14 Aug 2016 17:33:24 +0000 (19:33 +0200)]
Fixed bug #72759 Regression in pgo_pgsql
This is caused by the fix for #72633. Namely, lastval() throws an error,
if no nextval() was called earlier in the same session. This is by all
means correct so far, however inside a transaction it leads to an abort.
This is the opposite to MySQL's last_insert_id() which doesn't produce
any error no matter something were autoincremented or not.
To avoid existing scripts breakage in the stable branches, the previous
patch is extended to revert the transaction to the state before the lastval()
call in case of error. It is done only for 5.6 and 7.0 to retain BC. For 7.1+,
the clean behavior should persist. This is already the current behavior, when
the sequence name is explicitly passed. So there's no reason to obfuscate the
errors where this breakage is valid.
Jakub Zelenka [Sun, 14 Aug 2016 13:01:36 +0000 (14:01 +0100)]
Merge branch 'PHP-7.0' into PHP-7.1
Jakub Zelenka [Sun, 14 Aug 2016 13:00:35 +0000 (14:00 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
Jakub Zelenka [Sun, 14 Aug 2016 12:52:59 +0000 (13:52 +0100)]
Fixed bug #72787 (json_decode reads out of bounds)
Nikita Popov [Sat, 13 Aug 2016 19:42:17 +0000 (21:42 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sat, 13 Aug 2016 19:41:00 +0000 (21:41 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Benedict Singer [Wed, 10 Aug 2016 14:03:12 +0000 (15:03 +0100)]
Bug 70195
Many FTP-S servers now require FTP clients to re-use the SSL session
from the control connection on the data connection, to prove that the
same entity controls both connections. This patch updates PHP's FTP-S
client code to allow that possibility.
Christoph M. Becker [Sat, 13 Aug 2016 14:29:35 +0000 (16:29 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Sat, 13 Aug 2016 14:22:49 +0000 (16:22 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Sat, 13 Aug 2016 14:02:10 +0000 (16:02 +0200)]
Fix #72278: getimagesize returning FALSE on valid jpg
getimagesize() is rather strict about the length of the marker payload data,
and fails if there are extraneous bytes before the next marker. Only a very
special case reported in bug #13213 is catered to.
libjpeg is rather resilient to such corrupted JPEG files, and raises a
recoverable error in this case. Other image processors also accept such
JPEG files, so we adapt getimagesize() to skip (but warn about) such
extraneous bytes.
Christoph M. Becker [Sat, 13 Aug 2016 10:06:11 +0000 (12:06 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Sat, 13 Aug 2016 09:47:20 +0000 (11:47 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Sat, 13 Aug 2016 09:39:16 +0000 (11:39 +0200)]
Fix #72823: strtr out-of-bound access
If php_strtr_array_prepare_repls() reports pattern_len == 0, we return
early to avoid OOB accesses, and because there is nothing to replace anyway.
Christoph M. Becker [Fri, 12 Aug 2016 23:28:14 +0000 (01:28 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Fri, 12 Aug 2016 23:19:09 +0000 (01:19 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Fri, 12 Aug 2016 22:31:55 +0000 (00:31 +0200)]
Fix #60665: call to empty() on NULL result using PDO::FETCH_LAZY returns false
The has_property handler only checked whether a respective column name
exists, but neither whether the column value is set, nor whether it is
empty, respectively. We fix that to match the behavior of POD:FETCH_OBJ in
particular and PHP in general.
Christoph M. Becker [Fri, 12 Aug 2016 10:55:32 +0000 (12:55 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Fri, 12 Aug 2016 10:54:21 +0000 (12:54 +0200)]
Fix #72793: xml_parser_free leaks mem when execute xml_set_object
Xinchen Hui [Fri, 12 Aug 2016 08:36:57 +0000 (16:36 +0800)]
Update NEWs
Xinchen Hui [Fri, 12 Aug 2016 08:35:41 +0000 (16:35 +0800)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Fixed bug #72813 (Segfault with __get returned by ref)
Fix URL rewriter partially
Conflicts:
Zend/zend_object_handlers.c
ext/standard/url_scanner_ex.c
ext/standard/url_scanner_ex.re
Xinchen Hui [Fri, 12 Aug 2016 08:25:18 +0000 (16:25 +0800)]
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
* 'PHP-7.0' of git.php.net:/php-src:
Fix URL rewriter partially
Support "git worktree"
Xinchen Hui [Fri, 12 Aug 2016 08:23:40 +0000 (16:23 +0800)]
Fixed bug #72813 (Segfault with __get returned by ref)
This should be safe change, as we don't dereference value and member
after calling setter/getter.
And compare to adding unref codes, this is much cheaper.
Yasuo Ohgaki [Fri, 12 Aug 2016 03:28:25 +0000 (12:28 +0900)]
Merge RFC: Session ID without hashing
https://wiki.php.net/rfc/session-id-without-hashing
Andrea Faulds [Mon, 8 Aug 2016 15:15:59 +0000 (16:15 +0100)]
Show "or null" in TypeErrors for nullable arg_infos
Davey Shafik [Thu, 4 Aug 2016 16:14:41 +0000 (09:14 -0700)]
Use non-deprecated %pure-parser
Joey [Mon, 8 Aug 2016 18:31:28 +0000 (19:31 +0100)]
Corrected typo in comment
Finger-key interface malfunction.
Levi Morrison [Thu, 4 Aug 2016 15:35:14 +0000 (09:35 -0600)]
Remove extra pointer in SplFixedArray
Anatol Belski [Thu, 11 Aug 2016 11:35:12 +0000 (13:35 +0200)]
add missing chunk to support mb path in symlink()
Anatol Belski [Thu, 11 Aug 2016 11:25:40 +0000 (13:25 +0200)]
pull ps_title behind the logic to support the current codepage
Anatol Belski [Thu, 11 Aug 2016 11:24:00 +0000 (13:24 +0200)]
fix typo
Anatol Belski [Thu, 11 Aug 2016 11:16:51 +0000 (13:16 +0200)]
add missing mb path support chunk
Aaron Piotrowski [Tue, 9 Aug 2016 18:54:06 +0000 (13:54 -0500)]
ReflectionType improvements
Added ReflectionNamedType and updated ReflectionType::__toString()
Ville Hukkamäki [Thu, 11 Aug 2016 09:08:04 +0000 (12:08 +0300)]
Fix #72810. Add check for SKIP_ONLINE_TESTS
Yasuo Ohgaki [Wed, 10 Aug 2016 22:19:14 +0000 (07:19 +0900)]
Fix URL rewriter partially
Yasuo Ohgaki [Wed, 10 Aug 2016 22:18:35 +0000 (07:18 +0900)]
Fix URL rewriter partially
Yasuo Ohgaki [Wed, 10 Aug 2016 23:03:45 +0000 (08:03 +0900)]
Fix URL rewriter issues
Yasuo Ohgaki [Wed, 10 Aug 2016 23:09:37 +0000 (08:09 +0900)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Support "git worktree"
Yasuo Ohgaki [Wed, 10 Aug 2016 23:09:05 +0000 (08:09 +0900)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
Support "git worktree"
Yasuo Ohgaki [Wed, 10 Aug 2016 23:08:26 +0000 (08:08 +0900)]
Support "git worktree"
Leigh [Wed, 10 Aug 2016 22:32:32 +0000 (23:32 +0100)]
Preserve BC for rand() AND mt_rand() where min > max
Christoph M. Becker [Wed, 10 Aug 2016 16:09:38 +0000 (18:09 +0200)]
Update to SQLite 3.14.0
Keyur [Tue, 9 Aug 2016 17:30:26 +0000 (17:30 +0000)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Add NEWS
Fix ASSERT logic
Bugfix 72791: fix memory leak in PDO persistent connections
Keyur [Tue, 9 Aug 2016 17:29:36 +0000 (17:29 +0000)]
Add NEWS
Keyur [Tue, 9 Aug 2016 17:27:52 +0000 (17:27 +0000)]
Merge branch 'pull-request/2067' into PHP-7.0
Keyur [Tue, 9 Aug 2016 14:41:20 +0000 (14:41 +0000)]
Fix ASSERT logic
Keyur [Tue, 9 Aug 2016 14:01:25 +0000 (14:01 +0000)]
Bugfix 72791: fix memory leak in PDO persistent connections
Nikita Popov [Tue, 9 Aug 2016 13:35:04 +0000 (15:35 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Tue, 9 Aug 2016 13:33:15 +0000 (15:33 +0200)]
Don't copy mime types in CLI server
This is both unnecessary and causes leaks in valgrind.
Christoph M. Becker [Tue, 9 Aug 2016 09:54:43 +0000 (11:54 +0200)]
Class constant visibility modifiers are now supported
Christopher Jones [Tue, 9 Aug 2016 06:13:27 +0000 (16:13 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Tue, 9 Aug 2016 06:12:58 +0000 (16:12 +1000)]
Remove obsolete Id tags
Christopher Jones [Tue, 9 Aug 2016 06:00:44 +0000 (16:00 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Tue, 9 Aug 2016 05:59:59 +0000 (15:59 +1000)]
Bump version in OCI8 test
Xinchen Hui [Tue, 9 Aug 2016 03:32:55 +0000 (11:32 +0800)]
Update NEWS
Xinchen Hui [Tue, 9 Aug 2016 03:32:34 +0000 (11:32 +0800)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Fixed bug #72788 (Invalid memory access when using persistent PDO connection)
Remove typo'd commit
Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
Xinchen Hui [Tue, 9 Aug 2016 03:32:16 +0000 (11:32 +0800)]
Fixed bug #72788 (Invalid memory access when using persistent PDO connection)
Xinchen Hui [Tue, 9 Aug 2016 03:25:32 +0000 (11:25 +0800)]
Merge branch 'bug72788' of https://github.com/keyurdg/php-src into PHP-7.0
* 'bug72788' of https://github.com/keyurdg/php-src:
Remove typo'd commit
Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
Keyur [Tue, 9 Aug 2016 01:36:15 +0000 (01:36 +0000)]
Remove typo'd commit
Keyur [Mon, 8 Aug 2016 23:34:00 +0000 (23:34 +0000)]
Fix bug 72788: Invalid memory access when database_object_handle
is undefined. Also fix memory leak in dbh_free when using persistent
PDO connections.
Leigh [Mon, 8 Aug 2016 21:31:59 +0000 (22:31 +0100)]
Swap min/max if min > max
Leigh [Mon, 8 Aug 2016 21:16:27 +0000 (22:16 +0100)]
Allow min > max for mt_rand(). Bug #72784
Andrea Faulds [Mon, 8 Aug 2016 20:00:49 +0000 (21:00 +0100)]
Merge branch 'PHP-7.0' into PHP-7.1
Andrea Faulds [Mon, 8 Aug 2016 19:56:11 +0000 (20:56 +0100)]
Replace dead branch with ZEND_ASSERT()
Christoph M. Becker [Mon, 8 Aug 2016 16:51:34 +0000 (18:51 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Mon, 8 Aug 2016 16:46:54 +0000 (18:46 +0200)]
Fix array_column() packed hash initialization
FILL assumes enough space is alredy allocated -- do that. Note that
the used size is an upper bound, albeit a likely one.
Christoph M. Becker [Mon, 8 Aug 2016 16:45:27 +0000 (18:45 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Mon, 8 Aug 2016 16:43:33 +0000 (18:43 +0200)]
Add test for bug #69107: finfo no longer detects PHP files
Anatol Belski [Sat, 6 Aug 2016 20:33:29 +0000 (22:33 +0200)]
check malloc result
Christoph M. Becker [Sun, 7 Aug 2016 23:27:21 +0000 (01:27 +0200)]
Implement #38992: invoke() and invokeArgs() static method calls should match
We don't want ReflectionMethod::invoke() to simply ignore its first argument,
if the method to invoke is a static method. Instead we match its ZPP with
that of ReflectionMethod::invokeArgs(). Furthermore, we apply the DRY
principle by factoring out the code to a common helper function to prevent
inadvertent future divergence of the implementations of both methods.
As can be seen from the necessity to adapt some test cases, this causes a
BC break for some pathological cases. Therefore we apply this patch to PHP
7.1 only, which is still in beta phase.
Nikita Popov [Sun, 7 Aug 2016 16:50:14 +0000 (18:50 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Lauri Kenttä [Wed, 3 Aug 2016 08:29:12 +0000 (11:29 +0300)]
Fix bug #55451
Make substr_compare ignore the length if it's NULL. This allows to
use the last parameter (case_insensitivity) with the default length.
Nikita Popov [Sun, 7 Aug 2016 16:38:43 +0000 (18:38 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sun, 7 Aug 2016 16:38:28 +0000 (18:38 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sun, 7 Aug 2016 16:36:32 +0000 (18:36 +0200)]
Fix stream_socket_enable_crypto() test
The whole test doesn't make any sense at all, but this only fixes
the additional warnings you get when linked against openssl w/o
SSL3.
Nikita Popov [Sun, 7 Aug 2016 14:44:31 +0000 (16:44 +0200)]
Fix PUTC warning
Change the macro to not provide a useless return value using a
comma expression, which generates warnings.
Nikita Popov [Thu, 4 Aug 2016 13:12:33 +0000 (15:12 +0200)]
Avoid use of scratch space in HTTP fopen wrapper
Instead directly write into req_buf smart_str.
Christopher Jones [Sun, 7 Aug 2016 00:25:16 +0000 (10:25 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Sun, 7 Aug 2016 00:24:56 +0000 (10:24 +1000)]
Remove old $Id$ tags
Christopher Jones [Sun, 7 Aug 2016 00:21:14 +0000 (10:21 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Sun, 7 Aug 2016 00:17:06 +0000 (10:17 +1000)]
Sync with 7.1 branch changes from Nikita & Dimitri to keep OCI8 code identical
Christopher Jones [Sun, 7 Aug 2016 00:06:11 +0000 (10:06 +1000)]
News for 7.1
Christopher Jones [Sun, 7 Aug 2016 00:02:14 +0000 (10:02 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Thu, 4 Aug 2016 02:45:32 +0000 (12:45 +1000)]
Fix bug #72524 (Binding null values triggers ORA-24816 error)
Leigh [Sat, 6 Aug 2016 10:15:26 +0000 (11:15 +0100)]
mt_rand 32/64-bit consistency
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:08:13 +0000 (12:08 +0200)]
Fix the fix (Nikita), thanks!
Kalle Sommer Nielsen [Sat, 6 Aug 2016 08:17:49 +0000 (10:17 +0200)]
Check the return value of dbconvert() in mssql_guid_string(), as it may return -1 in case the conversion failed. In that case false is returned.
Also initialize buffer and buffer2 to NULL, which should fix bug #72039 (Use of uninitialised value on mssql_guid_string).
This only applies to 5.6, as we do not have mssql in 7.0 anymore
Nikita Popov [Fri, 5 Aug 2016 21:09:53 +0000 (23:09 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Fri, 5 Aug 2016 21:09:30 +0000 (23:09 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0
Conflicts:
ext/standard/ftp_fopen_wrapper.c
Ville Hukkamaki [Fri, 5 Aug 2016 13:09:13 +0000 (16:09 +0300)]
Fix #72764
Negotiate data channel encryption after NLST command.
This is to prevent issues with IIS and ProFTPD.
Nikita Popov [Fri, 5 Aug 2016 17:56:02 +0000 (19:56 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Fri, 5 Aug 2016 17:51:51 +0000 (19:51 +0200)]
Fix bug #72767
The page size calculation did not account for the size of the
stack header (or rather it did account for it, but in the wrong
direction...)