]> granicus.if.org Git - php/log
php
6 years agorename ref_dtor_func to rc_dtor_func
Xinchen Hui [Fri, 6 Jul 2018 11:14:44 +0000 (19:14 +0800)]
rename ref_dtor_func to rc_dtor_func

6 years agoRename zval_dtor_func and ref_dotr_func
Xinchen Hui [Fri, 6 Jul 2018 10:47:30 +0000 (18:47 +0800)]
Rename zval_dtor_func and ref_dotr_func

6 years agoRevert "Rename _zval_dtor_func to _ref_dtor_func"
Xinchen Hui [Fri, 6 Jul 2018 10:37:45 +0000 (18:37 +0800)]
Revert "Rename _zval_dtor_func to _ref_dtor_func"

This reverts commit a362ae6b12419369c5cbdbb4e924915f9b196ef6.

6 years agoRename _zval_dtor_func to _ref_dtor_func
Xinchen Hui [Fri, 6 Jul 2018 10:32:27 +0000 (18:32 +0800)]
Rename _zval_dtor_func to _ref_dtor_func

6 years agofixes typo in daemonization DEBUG message after fork: acknoledge -> acknowledge
Yousif Masoud [Sun, 1 Jul 2018 10:23:18 +0000 (11:23 +0100)]
fixes typo in daemonization DEBUG message after fork: acknoledge -> acknowledge

6 years agoUse zval_ptr_dtor() instead of zval_dtor() in in-place array/object conversion functions
Dmitry Stogov [Fri, 6 Jul 2018 09:07:13 +0000 (12:07 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in in-place array/object conversion functions

6 years ago[ci skip] Fix typo
Mike [Thu, 5 Jul 2018 18:42:46 +0000 (14:42 -0400)]
[ci skip] Fix typo

6 years agoFixed reference-counting in zend_parse_arg_str_weak()
Dmitry Stogov [Fri, 6 Jul 2018 00:11:20 +0000 (03:11 +0300)]
Fixed reference-counting in zend_parse_arg_str_weak()

6 years agoOptimize array to object casting
Dmitry Stogov [Fri, 6 Jul 2018 00:10:05 +0000 (03:10 +0300)]
Optimize array to object casting

6 years agoConversion related optimizations
Dmitry Stogov [Thu, 5 Jul 2018 22:26:43 +0000 (01:26 +0300)]
Conversion related optimizations

6 years agoOptimize object to array casting
Dmitry Stogov [Thu, 5 Jul 2018 22:25:24 +0000 (01:25 +0300)]
Optimize object to array casting

6 years agoAvoid useless checks in object_init()
Dmitry Stogov [Thu, 5 Jul 2018 22:24:15 +0000 (01:24 +0300)]
Avoid useless checks in object_init()

6 years agoFix inverted stristr() argument order in mysqli test
Nikita Popov [Thu, 5 Jul 2018 19:25:09 +0000 (21:25 +0200)]
Fix inverted stristr() argument order in mysqli test

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Thu, 5 Jul 2018 17:11:43 +0000 (19:11 +0200)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Thu, 5 Jul 2018 17:11:25 +0000 (19:11 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Thu, 5 Jul 2018 17:10:24 +0000 (19:10 +0200)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Thu, 5 Jul 2018 17:09:40 +0000 (19:09 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFix string.strip_tags filter
Nikita Popov [Thu, 5 Jul 2018 17:08:00 +0000 (19:08 +0200)]
Fix string.strip_tags filter

Was segfaulting if no allowed tags are specified and performing an
out of bounds read if they were.

6 years agoReduce error buffer size
Anatol Belski [Thu, 5 Jul 2018 15:23:47 +0000 (17:23 +0200)]
Reduce error buffer size

120 bytes is ample, the doc says.

6 years agoUse zval_ptr_dtor() imstead of zval_dtor()
Dmitry Stogov [Thu, 5 Jul 2018 14:55:54 +0000 (17:55 +0300)]
Use zval_ptr_dtor() imstead of zval_dtor()

6 years agoIt's safer to use zval_ptr_dtor() for iterator keys.
Dmitry Stogov [Thu, 5 Jul 2018 13:56:52 +0000 (16:56 +0300)]
It's safer to use zval_ptr_dtor() for iterator keys.

6 years agoUse zval_ptr_dtor() to replace bound variables (original values nay be circular struc...
Dmitry Stogov [Thu, 5 Jul 2018 13:46:38 +0000 (16:46 +0300)]
Use zval_ptr_dtor() to replace bound variables (original values nay be circular structures).

6 years agoUse zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references...
Dmitry Stogov [Thu, 5 Jul 2018 12:25:55 +0000 (15:25 +0300)]
Use zval_ptr_dtor_nogc() instead of zval_dtor() inplaces where circular-references are not possible

6 years agoUse zval_ptr_dtor_nogc() in JSON parser (it can't produce circular data structures)
Dmitry Stogov [Thu, 5 Jul 2018 12:07:16 +0000 (15:07 +0300)]
Use zval_ptr_dtor_nogc() in JSON parser (it can't produce circular data structures)

6 years agoUse zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new...
Dmitry Stogov [Thu, 5 Jul 2018 11:25:17 +0000 (14:25 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)

6 years agoReplace zval_dtor() with specialized destructors
Dmitry Stogov [Thu, 5 Jul 2018 11:17:53 +0000 (14:17 +0300)]
Replace zval_dtor() with specialized destructors

6 years agoUse zval_ptr_dtor() instead of legacy zval_dtor(), to destroy unused values returned...
Dmitry Stogov [Thu, 5 Jul 2018 11:09:47 +0000 (14:09 +0300)]
Use zval_ptr_dtor() instead of legacy zval_dtor(), to destroy unused values returned from PHP functions (they may be circular data structures).

6 years agoReplace zval_dtor() with specialized destructors
Dmitry Stogov [Thu, 5 Jul 2018 10:55:56 +0000 (13:55 +0300)]
Replace zval_dtor() with specialized destructors

6 years agoFixed wrong zval_dtor() usage
Dmitry Stogov [Thu, 5 Jul 2018 10:37:59 +0000 (13:37 +0300)]
Fixed wrong zval_dtor() usage

6 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Thu, 5 Jul 2018 10:33:18 +0000 (13:33 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  [ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE

6 years agoReplace zval_dtor() with specialized destructors
Dmitry Stogov [Thu, 5 Jul 2018 10:32:39 +0000 (13:32 +0300)]
Replace zval_dtor() with specialized destructors

6 years ago[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE
Tyson Andre [Wed, 4 Jul 2018 21:09:21 +0000 (14:09 -0700)]
[ci skip] Fix a typo. RANGE_RANGE should be RAND_RANGE

6 years agoDon't keep dangling pointer to function_name
Dmitry Stogov [Thu, 5 Jul 2018 09:20:50 +0000 (12:20 +0300)]
Don't keep dangling pointer to function_name

6 years agoUse zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new...
Dmitry Stogov [Thu, 5 Jul 2018 08:54:26 +0000 (11:54 +0300)]
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)

6 years agoFixed incorrrecr zval_dtor() usage to replace value of argument passed by reference...
Dmitry Stogov [Thu, 5 Jul 2018 07:57:49 +0000 (10:57 +0300)]
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.

6 years agoNEW and UPGRADING
Remi Collet [Thu, 5 Jul 2018 04:34:08 +0000 (06:34 +0200)]
NEW and UPGRADING

6 years agoFixed bug #62596 add getallheaders (apache_request_headers) missing function in FPM...
Remi Collet [Wed, 4 Jul 2018 06:48:38 +0000 (08:48 +0200)]
Fixed bug #62596 add getallheaders (apache_request_headers) missing function in FPM add sapi_add_request_header in public API (was add_request_header) fix arginfo for fastcgi_finish_request fucntion

6 years agoRemoved legacy zval_dtor() usage. It doesn't work with zvals with refcount == 0,...
Dmitry Stogov [Wed, 4 Jul 2018 23:28:00 +0000 (02:28 +0300)]
Removed legacy zval_dtor() usage. It doesn't work with zvals with refcount == 0, anyway.

6 years agoFixed some incorrect zval_dtor() usages
Dmitry Stogov [Wed, 4 Jul 2018 20:48:39 +0000 (23:48 +0300)]
Fixed some incorrect zval_dtor() usages

6 years agoArgument unpacking with Traversables and non-integer keys.
Dmitry Stogov [Wed, 4 Jul 2018 19:34:36 +0000 (22:34 +0300)]
Argument unpacking with Traversables and non-integer keys.
Changed error message, added UPGRADING note and test.

6 years agoAdded test case for bug #76539 for master only as the behavior has been restored
Kalle Sommer Nielsen [Wed, 4 Jul 2018 17:50:34 +0000 (19:50 +0200)]
Added test case for bug #76539 for master only as the behavior has been restored

6 years agoReplace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
Dmitry Stogov [Wed, 4 Jul 2018 16:22:24 +0000 (19:22 +0300)]
Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized destructors.
zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places.
Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.

6 years ago[ci skip] Document GC_C() → zend_gc_get_status()
Christoph M. Becker [Wed, 4 Jul 2018 10:19:29 +0000 (12:19 +0200)]
[ci skip] Document GC_C() → zend_gc_get_status()

6 years agose zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)
Dmitry Stogov [Wed, 4 Jul 2018 09:08:07 +0000 (12:08 +0300)]
se zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)

6 years agoconcat_function() micro optimization
Dmitry Stogov [Wed, 4 Jul 2018 09:05:51 +0000 (12:05 +0300)]
concat_function() micro optimization

6 years agoSEND_UNPACK should throw exception on Traversable with non-integer keys
Dmitry Stogov [Wed, 4 Jul 2018 06:35:12 +0000 (09:35 +0300)]
SEND_UNPACK should throw exception on Traversable with non-integer keys

6 years agoFixed test skip
Xinchen Hui [Wed, 4 Jul 2018 03:19:25 +0000 (11:19 +0800)]
Fixed test skip

6 years agoFixed build
Xinchen Hui [Wed, 4 Jul 2018 03:15:32 +0000 (11:15 +0800)]
Fixed build

6 years agoFixed bug #76501 (Funny message with fatal error)
Kalle Sommer Nielsen [Wed, 4 Jul 2018 01:04:31 +0000 (03:04 +0200)]
Fixed bug #76501 (Funny message with fatal error)

6 years agoAvoid useless copying and conversion
Dmitry Stogov [Tue, 3 Jul 2018 22:09:00 +0000 (01:09 +0300)]
Avoid useless copying and conversion

6 years agoAPI cleanup. Removed unused functions (kept compatibility macros).
Dmitry Stogov [Tue, 3 Jul 2018 21:50:57 +0000 (00:50 +0300)]
API cleanup. Removed unused functions (kept compatibility macros).

6 years agoDo not continue extract()ing after an exception has been thrown
Nikita Popov [Tue, 3 Jul 2018 20:44:41 +0000 (22:44 +0200)]
Do not continue extract()ing after an exception has been thrown

Make behavior consistent with a loop of normal assignments.

This is not a big issue now, because $this is the only case that
may generate an error. However typed references introduce additional
error conditions, which would be silenced by this kind of behavior.

6 years ago[ci skip] Update NEWS
Anatol Belski [Tue, 3 Jul 2018 18:03:11 +0000 (20:03 +0200)]
[ci skip] Update NEWS

6 years agoAdd missing autoconf m4 quotes
Peter Kokot [Tue, 3 Jul 2018 13:10:22 +0000 (15:10 +0200)]
Add missing autoconf m4 quotes

Two macro calls were missing quotes and in order to be able to run the
autoupdate script, this patch adds them.

6 years agoRemove BOM
Anatol Belski [Tue, 3 Jul 2018 17:06:14 +0000 (19:06 +0200)]
Remove BOM

6 years agoFix compilation with Firebird < 3
Anatol Belski [Tue, 3 Jul 2018 17:00:19 +0000 (19:00 +0200)]
Fix compilation with Firebird < 3

6 years agoBoolean data type support, added in Firebird 3. Fixes #74462.
Dorin Marcoci [Sat, 13 May 2017 14:27:15 +0000 (17:27 +0300)]
Boolean data type support, added in Firebird 3. Fixes #74462.

6 years ago[ci skip] Document zend_parse_parameters_none()
Christoph M. Becker [Tue, 3 Jul 2018 16:58:07 +0000 (18:58 +0200)]
[ci skip] Document zend_parse_parameters_none()

6 years agoRemove sqlite and xmlrpc extension versions from phpinfo output
Peter Kokot [Sat, 30 Jun 2018 17:59:13 +0000 (19:59 +0200)]
Remove sqlite and xmlrpc extension versions from phpinfo output

The rest of the core extensions don't display the extension versions in
the phpinfo output since they in most cases match the PHP release version.

6 years agostr_replace() micro-optimization
Dmitry Stogov [Tue, 3 Jul 2018 14:47:08 +0000 (17:47 +0300)]
str_replace() micro-optimization

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Tue, 3 Jul 2018 13:46:48 +0000 (15:46 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #76564 ext/zip link issues

6 years agoFixed bug #76564 ext/zip link issues
Anatol Belski [Tue, 3 Jul 2018 13:45:01 +0000 (15:45 +0200)]
Fixed bug #76564 ext/zip link issues

Add zlib for linking directly, so then ext/zlib is not required.

6 years agoUpdate NEWS for 7.3.0beta1
Christoph M. Becker [Tue, 3 Jul 2018 12:52:48 +0000 (12:52 +0000)]
Update NEWS for 7.3.0beta1

6 years agoMerge branch 'PHP-7.2'
Remi Collet [Tue, 3 Jul 2018 11:53:33 +0000 (13:53 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  bump to 7.2.9-dev

6 years agobump to 7.2.9-dev
Remi Collet [Tue, 3 Jul 2018 11:52:04 +0000 (13:52 +0200)]
bump to 7.2.9-dev

6 years agoEliminated REFCOUNTED checks on persistent constant operands in SEND_VAL[_EX] and...
Dmitry Stogov [Tue, 3 Jul 2018 10:10:22 +0000 (13:10 +0300)]
Eliminated REFCOUNTED checks on persistent constant operands in SEND_VAL[_EX] and QM_ASSIGN.

6 years agoMerge branch 'bug63217'
Dmitry Stogov [Tue, 3 Jul 2018 09:58:50 +0000 (12:58 +0300)]
Merge branch 'bug63217'

* bug63217:
  Another fix for bug #63217
  Partial revert of 30156d588c07e26d4e752ddb62344e96854d4773

6 years agoBetter hot/cold code splitting
Dmitry Stogov [Tue, 3 Jul 2018 08:07:39 +0000 (11:07 +0300)]
Better hot/cold code splitting

6 years agoAnother fix for bug #63217
Dmitry Stogov [Mon, 2 Jul 2018 22:09:58 +0000 (01:09 +0300)]
Another fix for bug #63217

6 years agoFix check for invoking abstract method
Nikita Popov [Mon, 2 Jul 2018 19:33:09 +0000 (21:33 +0200)]
Fix check for invoking abstract method

6 years agoAdd $ before property name in error message
Nikita Popov [Mon, 2 Jul 2018 19:24:38 +0000 (21:24 +0200)]
Add $ before property name in error message

6 years agoPartial revert of 30156d588c07e26d4e752ddb62344e96854d4773
Dmitry Stogov [Mon, 2 Jul 2018 17:54:44 +0000 (20:54 +0300)]
Partial revert of 30156d588c07e26d4e752ddb62344e96854d4773

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Mon, 2 Jul 2018 16:57:31 +0000 (18:57 +0200)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Mon, 2 Jul 2018 16:57:14 +0000 (18:57 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFixed bug #75231
Nikita Popov [Mon, 2 Jul 2018 16:56:27 +0000 (18:56 +0200)]
Fixed bug #75231

The behavior is now consistent with ReflectionMethod.

6 years agoRemove unnecessary explicit argc check
Nikita Popov [Mon, 2 Jul 2018 16:29:17 +0000 (18:29 +0200)]
Remove unnecessary explicit argc check

Instead specify a default value for the argument, which is more
idiomatic.

6 years agoRemove METHOD_NOTSTATIC checks in reflection
Nikita Popov [Mon, 2 Jul 2018 16:26:48 +0000 (18:26 +0200)]
Remove METHOD_NOTSTATIC checks in reflection

PHP does not allow static calls to non-static internal methods
anyway, so these checks are redundant.

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Mon, 2 Jul 2018 15:59:20 +0000 (17:59 +0200)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Mon, 2 Jul 2018 15:58:53 +0000 (17:58 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFix test after serialization change
Nikita Popov [Mon, 2 Jul 2018 15:58:26 +0000 (17:58 +0200)]
Fix test after serialization change

And move it to a more appropriate location.

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Mon, 2 Jul 2018 15:29:57 +0000 (17:29 +0200)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Mon, 2 Jul 2018 15:28:45 +0000 (17:28 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFixed bug #74670
Nikita Popov [Mon, 2 Jul 2018 15:24:35 +0000 (17:24 +0200)]
Fixed bug #74670

Validate that "C" serialization payload is followed by "}" prior to
calling the unserialize() handler. This mitigates issues caused by
unserialize() not correctly handling strings that are not NUL
terminated. Making sure that there is a "}" at the end avoids the
problem.

6 years agoFixed bug #63217
Rudi Theunissen [Thu, 28 Jun 2018 22:56:30 +0000 (18:56 -0400)]
Fixed bug #63217

Don't automatically convert literal string keys to integers on
array access, as we may be dealing with an ArrayAccess object,
rather than a plain array.

6 years agoRemove the forked test and adjust the original one
Anatol Belski [Mon, 2 Jul 2018 14:07:25 +0000 (16:07 +0200)]
Remove the forked test and adjust the original one

6 years agoAvoid magic method hash lookups
Dmitry Stogov [Mon, 2 Jul 2018 14:03:50 +0000 (17:03 +0300)]
Avoid magic method hash lookups

6 years agoAvoid string comparisons for magic methods (all magic methods start with "__")
Dmitry Stogov [Mon, 2 Jul 2018 14:03:02 +0000 (17:03 +0300)]
Avoid string comparisons for magic methods (all magic methods start with "__")

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Mon, 2 Jul 2018 10:12:39 +0000 (12:12 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Update libs_version.txt

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Mon, 2 Jul 2018 10:12:02 +0000 (12:12 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Update libs_version.txt

6 years agoUpdate libs_version.txt
Anatol Belski [Mon, 2 Jul 2018 10:09:54 +0000 (12:09 +0200)]
Update libs_version.txt

6 years agoAdd ssl/tls streams options for min and max proto version
Jakub Zelenka [Mon, 18 Jun 2018 13:05:12 +0000 (14:05 +0100)]
Add ssl/tls streams options for min and max proto version

6 years agoUpdate NEWS, UPGRADING and default php.ini files with syslog changes
Jakub Zelenka [Sun, 1 Jul 2018 17:27:36 +0000 (18:27 +0100)]
Update NEWS, UPGRADING and default php.ini files with syslog changes

6 years agoAdd syslog's ident and facility parameters to config
Philip Prindeville [Tue, 22 Aug 2017 22:34:06 +0000 (16:34 -0600)]
Add syslog's ident and facility parameters to config

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agoMerge branch 'PHP-7.2'
Christoph M. Becker [Sat, 30 Jun 2018 22:23:06 +0000 (00:23 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Make newly introduced bug76556.phpt more resilient

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Sat, 30 Jun 2018 22:21:34 +0000 (00:21 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Make newly introduced bug76556.phpt more resilient

6 years agoMake newly introduced bug76556.phpt more resilient
Christoph M. Becker [Sat, 30 Jun 2018 22:16:09 +0000 (00:16 +0200)]
Make newly introduced bug76556.phpt more resilient

Obviously, different compilers mangle the C++ class name differently.
We should neither expect a prefix nor a suffix.

6 years agoMerge branch 'PHP-7.2'
Christoph M. Becker [Sat, 30 Jun 2018 21:21:30 +0000 (23:21 +0200)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix #76556: get_debug_info handler for BreakIterator shows wrong type

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Sat, 30 Jun 2018 21:16:50 +0000 (23:16 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #76556: get_debug_info handler for BreakIterator shows wrong type

6 years agoFix #76556: get_debug_info handler for BreakIterator shows wrong type
Christoph M. Becker [Sat, 30 Jun 2018 17:41:55 +0000 (19:41 +0200)]
Fix #76556: get_debug_info handler for BreakIterator shows wrong type

We use the retrieved type for the "type" element instead of the text.
This has been confused during the PHP 7 upgrade[1].

[1] http://git.php.net/?p=php-src.git;a=commit;h=1d793348067e5769144c0f7efd86428a4137baec

6 years agoAdd test for void return type on internal function
Nikita Popov [Sat, 30 Jun 2018 18:14:15 +0000 (20:14 +0200)]
Add test for void return type on internal function