]>
granicus.if.org Git - php/log
Nikita Popov [Thu, 20 Jul 2017 16:29:44 +0000 (18:29 +0200)]
Temporary fix for windows build
This API should be changed to stop using negative offsets. For now
I'm replacing ssize_t with long.
Nikita Popov [Thu, 20 Jul 2017 16:09:05 +0000 (18:09 +0200)]
Free last_used_encoding_name in RSHUTDOWN
efree() cannot be used in GSHUTDOWN
Côme Chilliet [Thu, 20 Jul 2017 14:14:47 +0000 (16:14 +0200)]
Added ldap_exop_refresh helper for EXOP REFRESH operation on dds overlay
ldap_exop_refresh(resource link, string dn, int ttl)
Returns FALSE on failure, newttl on success
Nikita Popov [Thu, 20 Jul 2017 13:33:24 +0000 (15:33 +0200)]
Reduce number of encoding conversions in case conversion
Don't indirect through UCS4BE, instead directly work on wchars
using a custom filter.
This replaces the pipeline
utf8 -> wchar -> ucs4be -> wchar -case-> wchar -> ucs4be -> wchar -> utf8
with
utf8 -> wchar -case-> -> wchar -> utf8
Nikita Popov [Thu, 20 Jul 2017 11:57:18 +0000 (13:57 +0200)]
Optimize php_unicode_tolower/upper for ASCII
Nikita Popov [Thu, 20 Jul 2017 11:45:25 +0000 (13:45 +0200)]
Add basic mbstring encoding cache
Store the last used encoding and compare against it. It's quite
likely that an application is going to be using the same encoding
again and again.
The actual mbfl_name2encoding() function could also be optimized
to use a hash lookup rather than a linear scan, but we don't have
a hashtable implmentation in libmbfl...
Nikita Popov [Thu, 20 Jul 2017 11:33:51 +0000 (13:33 +0200)]
Add php_mb_get_no_encoding() helper function
Nikita Popov [Thu, 20 Jul 2017 11:21:17 +0000 (13:21 +0200)]
Switch libmbfl to use size_t
Switch mbfl_string and related structures to use size_t lengths.
Quite likely that I broke some things along the way...
Nikita Popov [Thu, 20 Jul 2017 09:48:52 +0000 (11:48 +0200)]
Optimize php_unicode_is_lower/upper for ASCII
Côme Chilliet [Thu, 20 Jul 2017 10:34:43 +0000 (12:34 +0200)]
Using LDAP_CONTROL_MANAGEDSAIT constant in ldap tests instead of string oid
Joe Watkins [Thu, 20 Jul 2017 06:52:14 +0000 (07:52 +0100)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Fixed bug #74941 - Session fails to start after having headers sent
Sergei Morozov [Wed, 19 Jul 2017 14:13:34 +0000 (17:13 +0300)]
Fixed bug #74941 - Session fails to start after having headers sent
Nikita Popov [Wed, 19 Jul 2017 21:50:14 +0000 (23:50 +0200)]
Directly accept encoding in php_unicode_convert_case()
As a side-effect mb_strtolower() and mb_strtoupper() now correctly
handle a NULL encoding parameter by using the internal encoding.
This is what caused the two test changes.
Nikita Popov [Wed, 19 Jul 2017 21:29:36 +0000 (23:29 +0200)]
Add php_mb_get_encoding() convenience function
Nikita Popov [Wed, 19 Jul 2017 21:06:05 +0000 (23:06 +0200)]
Optimize php_unicode_is_prop()
Do not try to extract the properties from a bitmask. Instead make
the function variadic and pass all properties individually.
Also add a php_unicode_is_prop1() function to check only a single
property.
Nikita Popov [Wed, 19 Jul 2017 20:36:53 +0000 (22:36 +0200)]
Avoid unnecessary encoding lookups in mbstring
Extract part of php_mb_convert_encoding that does the actual work
and use it whenever we already know the encoding.
Anatol Belski [Wed, 19 Jul 2017 20:42:34 +0000 (22:42 +0200)]
Merge branch 'PHP-7.2'
* PHP-7.2:
fix dir separator in test
Anatol Belski [Wed, 19 Jul 2017 20:42:05 +0000 (22:42 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
fix dir separator in test
Anatol Belski [Wed, 19 Jul 2017 20:41:32 +0000 (22:41 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
fix dir separator in test
Anatol Belski [Wed, 19 Jul 2017 20:41:09 +0000 (22:41 +0200)]
fix dir separator in test
Sara Golemon [Wed, 19 Jul 2017 18:01:56 +0000 (14:01 -0400)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Do not allow using traits/interfaces/abstract classes as stream wrappers
Sara Golemon [Wed, 19 Jul 2017 18:01:18 +0000 (14:01 -0400)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Do not allow using traits/interfaces/abstract classes as stream wrappers
Add oci8_failover.c to config.w32, follow up for commit
1b797f7a
Sara Golemon [Wed, 19 Jul 2017 18:01:00 +0000 (14:01 -0400)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Do not allow using traits/interfaces/abstract classes as stream wrappers
Sara Golemon [Wed, 19 Jul 2017 16:29:05 +0000 (12:29 -0400)]
Do not allow using traits/interfaces/abstract classes as stream wrappers
Fixes https://bugs.php.net/bug.php?id=74951
Nikita Popov [Wed, 19 Jul 2017 17:55:28 +0000 (19:55 +0200)]
Merge branch 'PHP-7.2'
Emmanuel Dreyfus [Wed, 19 Jul 2017 02:36:55 +0000 (04:36 +0200)]
Fixed bug #74851: Improve uniqid() performance
uniqid() relies on microsecond-precise system clock to produce an
unique identifier. In order to avoid using the same value, the
original implementation calls usleep(1) to wait for the next microsecond.
Unfortunately, usleep() specification says "The suspension time may be
longer than requested due to the scheduling of other activity by the
system." Indeed, the pause may as as long as an entire execution slice,
causing a uniqid() call to last more than 10 ms.
This is fixed by replacing the usleep() call by time polling using
gettimeofday() until the microsecond changes. Since the getttimeoday()
system call lasts around a microsecond, only a small time is wasted
calling multiple gettimeofday. On the benefit side, uniqid() performance
in increased 10000 fold without changing its behavior.
Nikita Popov [Wed, 19 Jul 2017 17:34:14 +0000 (19:34 +0200)]
Remove version checks for MySQL < 5.0
Lior Kaplan [Wed, 19 Jul 2017 14:28:12 +0000 (17:28 +0300)]
Merge branch 'PHP-7.1'
* PHP-7.1:
Add oci8_failover.c to config.w32, follow up for commit
1b797f7a
Lior Kaplan [Wed, 19 Jul 2017 14:26:38 +0000 (17:26 +0300)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Add oci8_failover.c to config.w32, follow up for commit
1b797f7a
Lior Kaplan [Wed, 19 Jul 2017 14:23:22 +0000 (17:23 +0300)]
Add oci8_failover.c to config.w32, follow up for commit
1b797f7a
Dmitry Stogov [Wed, 19 Jul 2017 14:18:41 +0000 (17:18 +0300)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Keep resource of enclosing stream, because it may be referenced from other place(s). This fixes valgrind warnings on Zend/tests/type_declarations/scalar_basic.phpt
Dmitry Stogov [Wed, 19 Jul 2017 14:16:56 +0000 (17:16 +0300)]
Keep resource of enclosing stream, because it may be referenced from other place(s).
This fixes valgrind warnings on Zend/tests/type_declarations/scalar_basic.phpt
Dmitry Stogov [Wed, 19 Jul 2017 12:43:29 +0000 (15:43 +0300)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Separate the fast-patch
Convert CONCAT into FAST_CONCAT for non-object operands
Dmitry Stogov [Wed, 19 Jul 2017 12:42:32 +0000 (15:42 +0300)]
Separate the fast-patch
Dmitry Stogov [Wed, 19 Jul 2017 12:41:46 +0000 (15:41 +0300)]
Convert CONCAT into FAST_CONCAT for non-object operands
Dmitry Stogov [Wed, 19 Jul 2017 12:36:58 +0000 (15:36 +0300)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Reset globals on startup or restart
Dmitry Stogov [Wed, 19 Jul 2017 12:36:48 +0000 (15:36 +0300)]
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Reset globals on startup or restart
Dmitry Stogov [Wed, 19 Jul 2017 12:36:24 +0000 (15:36 +0300)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Reset globals on startup or restart
Dmitry Stogov [Wed, 19 Jul 2017 12:35:10 +0000 (15:35 +0300)]
Reset globals on startup or restart
Dmitry Stogov [Wed, 19 Jul 2017 10:08:22 +0000 (13:08 +0300)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Remove dead live ranges and FREE instructions
Remove live ranges
Dmitry Stogov [Wed, 19 Jul 2017 10:07:33 +0000 (13:07 +0300)]
Remove dead live ranges and FREE instructions
Dmitry Stogov [Wed, 19 Jul 2017 10:06:25 +0000 (13:06 +0300)]
Remove live ranges
Kalle Sommer Nielsen [Wed, 19 Jul 2017 08:19:32 +0000 (10:19 +0200)]
Removed Bird(broken)step support from ODBC
Kalle Sommer Nielsen [Wed, 19 Jul 2017 07:09:24 +0000 (09:09 +0200)]
Remove old references to SAPIs and extensions no longer in the core
Nikita Popov [Tue, 18 Jul 2017 23:06:01 +0000 (01:06 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Tue, 18 Jul 2017 23:04:36 +0000 (01:04 +0200)]
Don't reuse compare_function operands
If the same zval is used for the result and one operand, then the
function thinks it is responsible for freeing the value in case of
a type conversion.
Sara Golemon [Tue, 18 Jul 2017 22:26:48 +0000 (18:26 -0400)]
Add notes for cutting release branches
Nikita Popov [Tue, 18 Jul 2017 20:25:50 +0000 (22:25 +0200)]
Merge branch 'PHP-7.2'
Sergei Morozov [Mon, 17 Jul 2017 09:39:34 +0000 (12:39 +0300)]
Fixed bug #74936 - session_*() functions trigger a warning in read mode when the session is active
Nikita Popov [Tue, 18 Jul 2017 20:16:38 +0000 (22:16 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Tue, 18 Jul 2017 20:16:33 +0000 (22:16 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Tue, 18 Jul 2017 20:15:20 +0000 (22:15 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
andrewnester [Tue, 6 Jun 2017 06:37:05 +0000 (09:37 +0300)]
Fixed #74699 - Broken ArrayIterator unserializing
Nikita Popov [Tue, 18 Jul 2017 19:45:46 +0000 (21:45 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Tue, 18 Jul 2017 19:45:41 +0000 (21:45 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Tue, 18 Jul 2017 19:45:35 +0000 (21:45 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
YaoGuai [Sun, 16 Jul 2017 07:12:29 +0000 (15:12 +0800)]
Fix check of mysql_commit() return value
For mysql_commit() everything non-zero is an error.
Nikita Popov [Tue, 18 Jul 2017 19:22:12 +0000 (21:22 +0200)]
Merge branch 'PHP-7.2'
Nikita Popov [Tue, 18 Jul 2017 19:21:30 +0000 (21:21 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2
Andrew Nester [Tue, 11 Jul 2017 18:50:38 +0000 (21:50 +0300)]
Fixed #74892 - Fixed URL rewriting for urls started with #
Dmitry Stogov [Tue, 18 Jul 2017 17:45:21 +0000 (20:45 +0300)]
Merge branch 'PHP-7.2'
* PHP-7.2:
Remove dead JMP/JMPZ/JMPNZ/JMPZNZ (DCE pass can't remove them)
Constant evaluation of few more constant functions
Disabled compile-time constant DOUBLE to STRING evaluation (its result depends on run-time 'precision' setting)
Update NEWS for 7.2.0beta2
Update NEWS for PHP 7.2.0beta1
Dmitry Stogov [Tue, 18 Jul 2017 17:43:06 +0000 (20:43 +0300)]
Remove dead JMP/JMPZ/JMPNZ/JMPZNZ (DCE pass can't remove them)
Dmitry Stogov [Tue, 18 Jul 2017 17:42:40 +0000 (20:42 +0300)]
Constant evaluation of few more constant functions
Dmitry Stogov [Tue, 18 Jul 2017 17:41:01 +0000 (20:41 +0300)]
Disabled compile-time constant DOUBLE to STRING evaluation (its result depends on run-time 'precision' setting)
Joe Watkins [Tue, 18 Jul 2017 16:21:19 +0000 (17:21 +0100)]
bump versions
Sebastian Bergmann [Tue, 18 Jul 2017 16:14:41 +0000 (18:14 +0200)]
Sara Golemon [Tue, 18 Jul 2017 16:00:34 +0000 (16:00 +0000)]
Update NEWS for 7.2.0beta2
Sara Golemon [Tue, 18 Jul 2017 15:40:26 +0000 (15:40 +0000)]
Update NEWS for PHP 7.2.0beta1
Frank Denis [Tue, 18 Jul 2017 14:53:45 +0000 (16:53 +0200)]
sodium ext: drop unused code
/via @remicollet
Sara Golemon [Tue, 18 Jul 2017 14:36:50 +0000 (10:36 -0400)]
Prepare for PHP 7.3
Sara Golemon [Tue, 18 Jul 2017 14:40:42 +0000 (10:40 -0400)]
Bump all API numbers in prep for 7.2 fork
Frank Denis [Tue, 18 Jul 2017 12:42:15 +0000 (14:42 +0200)]
sodium ext: implement sodium_crypto_kdf()
Also add zend_parse_parameters_none() statements where appropriate.
Frank Denis [Tue, 18 Jul 2017 10:53:18 +0000 (12:53 +0200)]
Merge remote-tracking branch 'jedisct1/sodium-keygen'
* jedisct1/sodium-keygen:
sodium ext: remove unused sodium_randombytes_*() prototypes
sodium ext: add bindings for keygen() functions
sodium ext: sort prototypes
Anatol Belski [Tue, 18 Jul 2017 10:11:17 +0000 (12:11 +0200)]
Merge branch 'PHP-7.1'
* PHP-7.1:
Exclude ext/ftp from AppVeyor test run
Anatol Belski [Tue, 18 Jul 2017 10:09:58 +0000 (12:09 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Exclude ext/ftp from AppVeyor test run
Anatol Belski [Tue, 18 Jul 2017 10:08:31 +0000 (12:08 +0200)]
Exclude ext/ftp from AppVeyor test run
as the tests depend on fork() and otherwise an extra setup would be
needed anyway.
Anatol Belski [Tue, 18 Jul 2017 08:26:51 +0000 (10:26 +0200)]
Merge branch 'PHP-7.1'
* PHP-7.1:
move to 7.0.23 for dev
Anatol Belski [Tue, 18 Jul 2017 08:26:10 +0000 (10:26 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
move to 7.0.23 for dev
Anatol Belski [Tue, 18 Jul 2017 08:25:40 +0000 (10:25 +0200)]
move to 7.0.23 for dev
Anatol Belski [Mon, 17 Jul 2017 22:35:01 +0000 (00:35 +0200)]
Dmitry Stogov [Mon, 17 Jul 2017 20:21:03 +0000 (23:21 +0300)]
Added NEWS entry
Dmitry Stogov [Mon, 17 Jul 2017 20:17:16 +0000 (23:17 +0300)]
gc_check_possible_root() may throw exception.
Dmitry Stogov [Mon, 17 Jul 2017 20:09:13 +0000 (23:09 +0300)]
Merge branch 'master' into unset_cv
* master:
Constant evaluation of in_array() (support for more cases).
fix missing var for phpize
Add support for OpenSSL security level
Dmitry Stogov [Mon, 17 Jul 2017 20:08:42 +0000 (23:08 +0300)]
Merge branch 'master' of git.php.net:php-src
* 'master' of git.php.net:php-src:
fix missing var for phpize
Add support for OpenSSL security level
Dmitry Stogov [Mon, 17 Jul 2017 14:27:21 +0000 (17:27 +0300)]
Constant evaluation of in_array() (support for more cases).
Anatol Belski [Mon, 17 Jul 2017 17:41:21 +0000 (19:41 +0200)]
Merge branch 'PHP-7.1'
* PHP-7.1:
fix missing var for phpize
Anatol Belski [Mon, 17 Jul 2017 17:40:31 +0000 (19:40 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
fix missing var for phpize
Anatol Belski [Mon, 17 Jul 2017 04:54:27 +0000 (06:54 +0200)]
fix missing var for phpize
(cherry picked from commit
36c3d7140753bb692e36f5dcef7db7aa76224751 )
Jakub Zelenka [Mon, 17 Jul 2017 16:40:51 +0000 (17:40 +0100)]
Add support for OpenSSL security level
Dmitry Stogov [Mon, 17 Jul 2017 14:27:21 +0000 (17:27 +0300)]
Constant evaluation of in_array() (support for more cases).
Dmitry Stogov [Mon, 17 Jul 2017 11:11:50 +0000 (14:11 +0300)]
Separate ISSET_ISEMPTY_CV/UNSET_CV from ISSET_ISEMPTY_VAR/UNSET_VAR
Dmitry Stogov [Mon, 17 Jul 2017 10:35:47 +0000 (13:35 +0300)]
Fixed CFG/SSA construction (avoid multiple identical predecessors)
Dmitry Stogov [Mon, 17 Jul 2017 08:00:46 +0000 (11:00 +0300)]
Removed vim mode lines. zend_vm_opcodes.h loses these lines after regeneration. Lines in zend_vm_def.h lead to insertion inthe middle of zend_vm_execute.h.
Dmitry Stogov [Mon, 17 Jul 2017 06:11:14 +0000 (09:11 +0300)]
Allocate additional slot for third argument
Anatol Belski [Mon, 17 Jul 2017 06:00:41 +0000 (08:00 +0200)]
fix new password related pieces wrt failing tests
Peter Kokot [Wed, 12 Jul 2017 19:42:06 +0000 (21:42 +0200)]
Fixed bug #74906 redirecting incorrect include <sys/errno.h>
Joe Watkins [Mon, 17 Jul 2017 05:55:28 +0000 (06:55 +0100)]
Merge branch 'PHP-7.1'
* PHP-7.1:
Fixed bug #74906 redirecting incorrect include <sys/errno.h>
Joe Watkins [Mon, 17 Jul 2017 05:54:46 +0000 (06:54 +0100)]
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
Fixed bug #74906 redirecting incorrect include <sys/errno.h>
Peter Kokot [Tue, 11 Jul 2017 22:41:43 +0000 (00:41 +0200)]
Fixed bug #74906 redirecting incorrect include <sys/errno.h>
Joe Watkins [Mon, 17 Jul 2017 05:52:00 +0000 (06:52 +0100)]
Merge branch 'PHP-7.1'
* PHP-7.1:
Fixed bug 74913 redirecting incorrect include <sys/poll.h>