]> granicus.if.org Git - php/log
php
11 years agoGeneralize expression dereferencing
Nikita Popov [Fri, 30 May 2014 22:09:11 +0000 (00:09 +0200)]
Generalize expression dereferencing

11 years agoMinor cleanup
Nikita Popov [Fri, 30 May 2014 22:02:51 +0000 (00:02 +0200)]
Minor cleanup

11 years agoCleanup old grammar rules
Nikita Popov [Fri, 30 May 2014 21:51:54 +0000 (23:51 +0200)]
Cleanup old grammar rules

11 years agoReintroduce new expression dereferencing
Nikita Popov [Fri, 30 May 2014 21:44:30 +0000 (23:44 +0200)]
Reintroduce new expression dereferencing

11 years agoRemove reference_variable indirection
Nikita Popov [Fri, 30 May 2014 21:36:30 +0000 (23:36 +0200)]
Remove reference_variable indirection

11 years agoMake function calls directly callable
Nikita Popov [Fri, 30 May 2014 21:30:37 +0000 (23:30 +0200)]
Make function calls directly callable

11 years agoRecursive definition for object proprety fetches
Nikita Popov [Fri, 30 May 2014 20:53:30 +0000 (22:53 +0200)]
Recursive definition for object proprety fetches

11 years agoLTR static member access
Nikita Popov [Fri, 30 May 2014 20:33:03 +0000 (22:33 +0200)]
LTR static member access

11 years agoUse recursion for property fetches
Nikita Popov [Fri, 30 May 2014 20:03:24 +0000 (22:03 +0200)]
Use recursion for property fetches

11 years agoGet rid of base_variable_with_function_calls
Nikita Popov [Fri, 30 May 2014 19:14:18 +0000 (21:14 +0200)]
Get rid of base_variable_with_function_calls

11 years agoTemporarily disable complex variables in new expressions
Nikita Popov [Fri, 30 May 2014 19:11:25 +0000 (21:11 +0200)]
Temporarily disable complex variables in new expressions

11 years agoChange precedence of $ operator
Nikita Popov [Fri, 30 May 2014 14:31:10 +0000 (16:31 +0200)]
Change precedence of $ operator

$$foo['bar'] is now interpreted as ${$foo}['bar'] rather than
${$foo['bar']}.

11 years agoImproved conditions order
Dmitry Stogov [Fri, 30 May 2014 10:40:19 +0000 (14:40 +0400)]
Improved conditions order

11 years agoMerge branch 'phpng' of git.php.net:php-src into phpng
Dmitry Stogov [Fri, 30 May 2014 07:13:19 +0000 (11:13 +0400)]
Merge branch 'phpng' of git.php.net:php-src into phpng

* 'phpng' of git.php.net:php-src:
  typo
  Revert "Fix ArrayObject with immutable array"
  Fix ArrayObject with immutable array

11 years agoAvoid useless duplication of immutable arrays
Dmitry Stogov [Fri, 30 May 2014 07:12:24 +0000 (11:12 +0400)]
Avoid useless duplication of immutable arrays

11 years agoAvoid in-place modification
Dmitry Stogov [Fri, 30 May 2014 07:12:03 +0000 (11:12 +0400)]
Avoid in-place modification

11 years agotypo
Xinchen Hui [Fri, 30 May 2014 06:56:50 +0000 (14:56 +0800)]
typo

11 years agoRevert "Fix ArrayObject with immutable array"
Nikita Popov [Thu, 29 May 2014 19:49:54 +0000 (21:49 +0200)]
Revert "Fix ArrayObject with immutable array"

This reverts commit 9c85aa0489671e6cec43406161c558567e5b7336.

11 years agoFix ArrayObject with immutable array
Nikita Popov [Thu, 29 May 2014 19:19:49 +0000 (21:19 +0200)]
Fix ArrayObject with immutable array

11 years agoIntroduced immutable arrays. They don't need to be copyed and may be used directly...
Dmitry Stogov [Thu, 29 May 2014 14:21:56 +0000 (18:21 +0400)]
Introduced immutable arrays. They don't need to be copyed and may be used directly from SHM.

11 years agoFix length reset in JSON parser
Nikita Popov [Thu, 29 May 2014 10:53:32 +0000 (12:53 +0200)]
Fix length reset in JSON parser

11 years agoFix $http_response_header creation
Nikita Popov [Thu, 29 May 2014 10:51:03 +0000 (12:51 +0200)]
Fix $http_response_header creation

11 years agoImprove gdb ht and zval dumps
Nikita Popov [Thu, 29 May 2014 10:47:40 +0000 (12:47 +0200)]
Improve gdb ht and zval dumps

11 years agoImprove class constant fetch fix
Nikita Popov [Thu, 29 May 2014 09:17:33 +0000 (11:17 +0200)]
Improve class constant fetch fix

Dereference the cached constant for Test::TEST as well (and not just
self::TEST).

Also improve the phpt file to test this case as well - previously
this only manifested with opcache enabled, due to literal sharing.

Additionally the Z_TYPE_P != IS_REFERENCE assertion is now moved
into the TMP_VAR fetching code (as it applies to more than just
property assignments.)

11 years agoFix class constant fetching
Nikita Popov [Wed, 28 May 2014 22:02:13 +0000 (00:02 +0200)]
Fix class constant fetching

If a class is extended after the constant fetch has been cached
the cached value will be turned into a reference. On the next
fetch the polymorphic cache will return this reference, which
will be directly returned. The object assignment code then
dereferences this result and performs a shallow copy, which is
invalid for references. This subsequently leads to the constant
value being prematurely freed.

This is fixed by dereferencing the value returned from the
polymorphic cache. Furthermore the incorrect dereference from
in the object assignment code is replaced with an assertion that
we're dealing with a non-reference, so ensure that this kind of
problem cannot go unnoticed in the future.

11 years agoA few more fixes and improvements for gdbinit
Nikita Popov [Wed, 28 May 2014 20:43:53 +0000 (22:43 +0200)]
A few more fixes and improvements for gdbinit

11 years agoInitialize GC_TYPE_INFO for EG(symbol_table)
Nikita Popov [Wed, 28 May 2014 19:32:52 +0000 (21:32 +0200)]
Initialize GC_TYPE_INFO for EG(symbol_table)

11 years agoFixed conversion to phpng mistakes
Dmitry Stogov [Wed, 28 May 2014 19:04:50 +0000 (23:04 +0400)]
Fixed conversion to phpng mistakes

11 years agoUse zend_long_to_str in wddx
Nikita Popov [Wed, 28 May 2014 16:55:51 +0000 (18:55 +0200)]
Use zend_long_to_str in wddx

11 years agoUse zval_get_string in implode
Nikita Popov [Wed, 28 May 2014 16:45:00 +0000 (18:45 +0200)]
Use zval_get_string in implode

Also get rid of separate case for IS_OBJECT - this is already
handled by the default branch.

11 years agoUse smart_str_append_long in implode
Nikita Popov [Wed, 28 May 2014 16:39:41 +0000 (18:39 +0200)]
Use smart_str_append_long in implode

11 years agoUse zend_long_to_str in curl
Nikita Popov [Wed, 28 May 2014 16:34:35 +0000 (18:34 +0200)]
Use zend_long_to_str in curl

Also use STR_ADDREF instead of maintaining a numeric_key flag.

11 years agoUse zend_long_to_str in pcntl
Nikita Popov [Wed, 28 May 2014 16:26:11 +0000 (18:26 +0200)]
Use zend_long_to_str in pcntl

11 years agoClamb gdb string output at 256 chars
Nikita Popov [Tue, 27 May 2014 15:19:12 +0000 (17:19 +0200)]
Clamb gdb string output at 256 chars

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 14:45:01 +0000 (18:45 +0400)]
Use new zend_hash API

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 14:12:52 +0000 (18:12 +0400)]
Use new zend_hash API

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 13:49:31 +0000 (17:49 +0400)]
Use new zend_hash API

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 13:43:11 +0000 (17:43 +0400)]
Use new zend_hash API

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 13:30:05 +0000 (17:30 +0400)]
Use new zend_hash API

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 12:56:41 +0000 (16:56 +0400)]
Use new zend_hash API

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 10:09:42 +0000 (14:09 +0400)]
Use new zend_hash API

11 years agoUse extended iteration API to avoid in-place modification
Dmitry Stogov [Wed, 28 May 2014 09:00:33 +0000 (13:00 +0400)]
Use extended iteration API to avoid in-place modification

11 years agoUse extended iteration API to avoid in-place modification
Dmitry Stogov [Wed, 28 May 2014 08:39:27 +0000 (12:39 +0400)]
Use extended iteration API to avoid in-place modification

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 08:34:08 +0000 (12:34 +0400)]
Use new zend_hash API

11 years agoAvoid in-place modification
Dmitry Stogov [Wed, 28 May 2014 08:15:36 +0000 (12:15 +0400)]
Avoid in-place modification

11 years agoUse new zend_hash API
Dmitry Stogov [Wed, 28 May 2014 08:15:16 +0000 (12:15 +0400)]
Use new zend_hash API

11 years agoAvoid in-place modification
Dmitry Stogov [Wed, 28 May 2014 06:15:15 +0000 (10:15 +0400)]
Avoid in-place modification

11 years agoReference counter in phpng may have a bit different meaning and must not be the same
Dmitry Stogov [Tue, 27 May 2014 22:16:21 +0000 (02:16 +0400)]
Reference counter in phpng may have a bit different meaning and must not be the same

11 years agoUse new zend_hash API
Dmitry Stogov [Tue, 27 May 2014 22:13:45 +0000 (02:13 +0400)]
Use new zend_hash API

11 years agoAvoid in-place conversion
Dmitry Stogov [Tue, 27 May 2014 21:29:37 +0000 (01:29 +0400)]
Avoid in-place conversion

11 years agoFixed refcounting
Dmitry Stogov [Tue, 27 May 2014 21:28:38 +0000 (01:28 +0400)]
Fixed refcounting

11 years agoEscape non-printable characters in the junit XML output
Matteo Beccati [Tue, 27 May 2014 09:54:34 +0000 (11:54 +0200)]
Escape non-printable characters in the junit XML output

XML doesn't allow most of the characters < 0x20 and binary output
breaks XML parsers. Such characters are not allowed as entities
either, so the generated entities are escaped in order to be printed
as text.

11 years agoMerge branch 'phpng' of https://git.php.net/repository/php-src into phpng
Xinchen Hui [Tue, 27 May 2014 09:48:47 +0000 (17:48 +0800)]
Merge branch 'phpng' of https://git.php.net/repository/php-src into phpng

11 years agoretval's initializing is already taken by zend_call_function
Xinchen Hui [Tue, 27 May 2014 09:46:01 +0000 (17:46 +0800)]
retval's initializing is already taken by zend_call_function

11 years agoFixed broken XML junit output due to escaping of CDATA sections
Matteo Beccati [Tue, 27 May 2014 09:04:48 +0000 (11:04 +0200)]
Fixed broken XML junit output due to escaping of CDATA sections

I've removed CDATA and used htmlspecialchars as the output might not be UTF-8 safe, as pointed out by ircmaxell in 26b37f1792dfaf9b0b30f81e492c8f68b9ece571

11 years agoFixed bug #47407
Xinchen Hui [Tue, 27 May 2014 03:48:25 +0000 (11:48 +0800)]
Fixed bug #47407

11 years agoUse new zend_hash API
Dmitry Stogov [Mon, 26 May 2014 20:38:58 +0000 (00:38 +0400)]
Use new zend_hash API

11 years agoUse new zend_hash API
Dmitry Stogov [Mon, 26 May 2014 17:29:35 +0000 (21:29 +0400)]
Use new zend_hash API

11 years agoFix ** operator with references
Nikita Popov [Mon, 26 May 2014 16:17:55 +0000 (18:17 +0200)]
Fix ** operator with references

11 years agoAdd test for previous commit
Nikita Popov [Mon, 26 May 2014 16:13:16 +0000 (18:13 +0200)]
Add test for previous commit

11 years agoFix incdec of ref object properties
Nikita Popov [Mon, 26 May 2014 15:58:10 +0000 (17:58 +0200)]
Fix incdec of ref object properties

This fixes a number of infinite loops in the Symfony testsuite. It
took an obscene amount of time to track this down :/

11 years agoUse specialized functions instead of macros
Dmitry Stogov [Mon, 26 May 2014 13:16:16 +0000 (17:16 +0400)]
Use specialized functions instead of macros

11 years agoOptimize func_get_args() to build packed array
Dmitry Stogov [Mon, 26 May 2014 13:15:52 +0000 (17:15 +0400)]
Optimize func_get_args() to build packed array

11 years agoMerge branch 'master' into phpng
Xinchen Hui [Mon, 26 May 2014 09:32:53 +0000 (17:32 +0800)]
Merge branch 'master' into phpng

11 years agoSave some unnecessary zval copying
Xinchen Hui [Mon, 26 May 2014 09:25:57 +0000 (17:25 +0800)]
Save some unnecessary zval copying

11 years agoImprove call_user_function performance
Xinchen Hui [Mon, 26 May 2014 09:16:22 +0000 (17:16 +0800)]
Improve call_user_function performance

params are all zval * now, and retval will be initialized in
zend_call_function.

maybe we can make call_user_function as a macro proxy to
call_user_function_ex later.

11 years agoRemoved useless initializations
Dmitry Stogov [Mon, 26 May 2014 07:42:58 +0000 (11:42 +0400)]
Removed useless initializations

11 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Mon, 26 May 2014 07:40:57 +0000 (15:40 +0800)]
Merge branch 'PHP-5.6'

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Xinchen Hui [Mon, 26 May 2014 07:40:50 +0000 (15:40 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

11 years agoUpdate NEWs and add a test
Xinchen Hui [Mon, 26 May 2014 07:40:26 +0000 (15:40 +0800)]
Update NEWs and add a test

11 years agoMerge branch 'phpng' of git.php.net:php-src into phpng
Dmitry Stogov [Mon, 26 May 2014 06:53:14 +0000 (10:53 +0400)]
Merge branch 'phpng' of git.php.net:php-src into phpng

* 'phpng' of git.php.net:php-src:
  Finished persistent PDO implement

11 years agoMerge branch 'master' into phpng
Dmitry Stogov [Mon, 26 May 2014 06:52:43 +0000 (10:52 +0400)]
Merge branch 'master' into phpng

* master:
  Fixed issue #183 (TMP_VAR is not only used once)
  Fix broken Junit output with --disable-cgi
  Added folder mark
  Further test fixes for the fdb2709 breakage.
  Fix broken test caused by fdb2709.
  Added tests for ZipArchive::addGlob() and ZipArchive::addPattern()
  Fix run-tests.php with Valgrind >= 3.10.0.
  Add microseconds to the serialised form of DateTime objects.
  Improved test for bug #62479
  fix typo in ODBC code
  gcov: tentative fix for broken coverage data after fix for opcache coverage slightly hackish, but works. The idea is that we want to give priority to .gcda files in .libs dirs vs the files in the upper level dir
  5.5.14 now
  Fix bug #67060: use default mode of 660

Conflicts:
ext/date/php_date.c

11 years agoFinished persistent PDO implement
Xinchen Hui [Mon, 26 May 2014 06:17:45 +0000 (14:17 +0800)]
Finished persistent PDO implement

11 years agoMerge branch 'PHP-5.6'
Dmitry Stogov [Mon, 26 May 2014 06:12:36 +0000 (10:12 +0400)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed issue #183 (TMP_VAR is not only used once)

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Dmitry Stogov [Mon, 26 May 2014 06:12:10 +0000 (10:12 +0400)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed issue #183 (TMP_VAR is not only used once)

11 years agoFixed issue #183 (TMP_VAR is not only used once)
Dmitry Stogov [Mon, 26 May 2014 06:10:59 +0000 (10:10 +0400)]
Fixed issue #183 (TMP_VAR is not only used once)

11 years agoThis seems better
Xinchen Hui [Mon, 26 May 2014 04:05:21 +0000 (12:05 +0800)]
This seems better

11 years agoSave one zval copy
Xinchen Hui [Mon, 26 May 2014 03:49:43 +0000 (11:49 +0800)]
Save one zval copy

11 years agoDon't use cast (compiler friendly)
Xinchen Hui [Mon, 26 May 2014 03:05:04 +0000 (11:05 +0800)]
Don't use cast (compiler friendly)

11 years agoFix print_flat_hash for objects
Nikita Popov [Sun, 25 May 2014 18:07:29 +0000 (20:07 +0200)]
Fix print_flat_hash for objects

11 years agoFix parts of .gdbinit
Nikita Popov [Sun, 25 May 2014 16:53:28 +0000 (18:53 +0200)]
Fix parts of .gdbinit

11 years agoFix in_array (strict) with references
Nikita Popov [Sun, 25 May 2014 16:19:00 +0000 (18:19 +0200)]
Fix in_array (strict) with references

11 years agoFix ZTS build
Nikita Popov [Sun, 25 May 2014 16:11:24 +0000 (18:11 +0200)]
Fix ZTS build

11 years agoFixed apply_func_args_t
Xinchen Hui [Sun, 25 May 2014 12:04:35 +0000 (20:04 +0800)]
Fixed apply_func_args_t

11 years agoFixed apply_func_arg_t, and it's better not using cast (compiler friendly)
Xinchen Hui [Sun, 25 May 2014 11:56:51 +0000 (19:56 +0800)]
Fixed apply_func_arg_t, and it's better not using cast (compiler friendly)

11 years agoFixed apply_func_t (they should be broken before)
Xinchen Hui [Sun, 25 May 2014 10:32:35 +0000 (18:32 +0800)]
Fixed apply_func_t (they should be broken before)

11 years agoFix broken Junit output with --disable-cgi
Matteo Beccati [Sat, 24 May 2014 22:07:52 +0000 (00:07 +0200)]
Fix broken Junit output with --disable-cgi

11 years agoMerge branch 'PHP-5.6'
Matteo Beccati [Sat, 24 May 2014 22:08:56 +0000 (00:08 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix broken Junit output with --disable-cgi

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Matteo Beccati [Sat, 24 May 2014 22:08:41 +0000 (00:08 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix broken Junit output with --disable-cgi

11 years agoMerge branch 'PHP-5.4' into PHP-5.5
Matteo Beccati [Sat, 24 May 2014 22:08:32 +0000 (00:08 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fix broken Junit output with --disable-cgi

11 years agoFix broken Junit output with --disable-cgi
Matteo Beccati [Sat, 24 May 2014 22:07:52 +0000 (00:07 +0200)]
Fix broken Junit output with --disable-cgi

11 years agotypo
Xinchen Hui [Sat, 24 May 2014 13:45:07 +0000 (21:45 +0800)]
typo

11 years agofci->retval is always set
Xinchen Hui [Sat, 24 May 2014 13:37:15 +0000 (21:37 +0800)]
fci->retval is always set

11 years agoAdded folder mark and codes style
Xinchen Hui [Sat, 24 May 2014 13:19:34 +0000 (21:19 +0800)]
Added folder mark and codes style

11 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Sat, 24 May 2014 13:11:26 +0000 (21:11 +0800)]
Merge branch 'PHP-5.6'

11 years agoAdded folder mark
Xinchen Hui [Sat, 24 May 2014 13:11:13 +0000 (21:11 +0800)]
Added folder mark

11 years agoMerge branch 'new-tests' of https://github.com/SammyK/php-src
Xinchen Hui [Sat, 24 May 2014 07:43:37 +0000 (15:43 +0800)]
Merge branch 'new-tests' of https://github.com/SammyK/php-src

11 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
Matteo Beccati [Sat, 24 May 2014 06:06:53 +0000 (08:06 +0200)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

* 'PHP-5.5' of git.php.net:php-src:
  Further test fixes for the fdb2709 breakage.
  Fix broken test caused by fdb2709.
  Fix run-tests.php with Valgrind >= 3.10.0.
  Add microseconds to the serialised form of DateTime objects.

11 years agoUse optimized zend_array_dup() function. convert zend_hash_num_elements() and zend_ha...
Dmitry Stogov [Fri, 23 May 2014 16:37:53 +0000 (20:37 +0400)]
Use optimized zend_array_dup() function. convert zend_hash_num_elements() and zend_hash_next_free_element() into macros.

11 years agoMerge branch 'PHP-5.6'
Adam Harvey [Fri, 23 May 2014 15:23:55 +0000 (15:23 +0000)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Further test fixes for the fdb2709 breakage.
  Fix broken test caused by fdb2709.