]> granicus.if.org Git - php/log
php
10 years agoUse HashTable.u.flags instead of HashTable.arHash to check if HashTable is properly...
Dmitry Stogov [Mon, 29 Dec 2014 21:14:13 +0000 (00:14 +0300)]
Use HashTable.u.flags instead of HashTable.arHash to check if HashTable is properly initialized

10 years agoRevert "Add type info for spl_autoload_register"
Stanislav Malyshev [Mon, 29 Dec 2014 17:50:00 +0000 (09:50 -0800)]
Revert "Add type info for spl_autoload_register"

This reverts commit ad728725cb8e899a8415aa81db48825fac25e0d5.

Revert the change for now, probably needs better handling with account to BC
or joined with exceptions-in-engine RFC.

10 years agoMake zend_parse_parameters share fast zpp implementation where possible
Andrea Faulds [Mon, 15 Dec 2014 00:51:41 +0000 (00:51 +0000)]
Make zend_parse_parameters share fast zpp implementation where possible

Rename shared implementation functions and build them unconditionally

Don't fail on empty path for zend_parse_arg_path

Update type names

Fix behaviour of by-reference "z"

Make 'o' use zend_parse_arg_object

Fix NULL string check in zend_parse_arg_path(_str)

10 years agoMicro optimization for better register allocation
Dmitry Stogov [Mon, 29 Dec 2014 11:21:16 +0000 (14:21 +0300)]
Micro optimization for better register allocation

10 years agoReored conditions
Dmitry Stogov [Mon, 29 Dec 2014 11:20:52 +0000 (14:20 +0300)]
Reored conditions

10 years agoCleanup
Dmitry Stogov [Mon, 29 Dec 2014 10:38:36 +0000 (13:38 +0300)]
Cleanup

10 years agoMerge branch 'master' of https://git.php.net/push/php-src
Kalle Sommer Nielsen [Mon, 29 Dec 2014 10:00:15 +0000 (11:00 +0100)]
Merge branch 'master' of https://git.php.net/push/php-src

10 years agoFixed bug #68676 (Explicit Double Free)
Kalle Sommer Nielsen [Mon, 29 Dec 2014 09:55:14 +0000 (10:55 +0100)]
Fixed bug #68676 (Explicit Double Free)

10 years agoeliminate usage of deprecated zend_get_parameters_ex
Stanislav Malyshev [Mon, 29 Dec 2014 07:46:42 +0000 (23:46 -0800)]
eliminate usage of deprecated zend_get_parameters_ex

10 years agofix "comparing size_t to <0" warning
Stanislav Malyshev [Mon, 29 Dec 2014 07:46:28 +0000 (23:46 -0800)]
fix "comparing size_t to <0" warning

10 years agofix typo
Stanislav Malyshev [Mon, 29 Dec 2014 07:18:12 +0000 (23:18 -0800)]
fix typo

10 years agoFix tests I broke with the E_ERROR > E_RECOVERABLE_ERROR change
Kalle Sommer Nielsen [Mon, 29 Dec 2014 06:54:44 +0000 (07:54 +0100)]
Fix tests I broke with the E_ERROR > E_RECOVERABLE_ERROR change

10 years agoUse internd string as key
Xinchen Hui [Mon, 29 Dec 2014 06:35:08 +0000 (14:35 +0800)]
Use internd string as key

10 years agoFixed build of litespped
Xinchen Hui [Mon, 29 Dec 2014 05:46:01 +0000 (13:46 +0800)]
Fixed build of litespped

10 years agoBe verbose if --with-mp is enabled
Kalle Sommer Nielsen [Sun, 28 Dec 2014 18:40:33 +0000 (19:40 +0100)]
Be verbose if --with-mp is enabled

10 years agoAdd type info for spl_autoload_register
Levi Morrison [Sun, 28 Dec 2014 17:16:14 +0000 (10:16 -0700)]
Add type info for spl_autoload_register

10 years agofix invalid free mentioned in bug 68665
Anatol Belski [Sun, 28 Dec 2014 15:36:07 +0000 (16:36 +0100)]
fix invalid free mentioned in bug 68665

thanks honey at internot dot info

10 years agoadded test for bug #68665
Anatol Belski [Sun, 28 Dec 2014 15:27:08 +0000 (16:27 +0100)]
added test for bug #68665

10 years agoMerge branch 'PHP-5.6'
Anatol Belski [Sun, 28 Dec 2014 13:02:25 +0000 (14:02 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated NEWs
  Fixed bug #68665 (Invalid free)

10 years agoupdated NEWs
Anatol Belski [Sun, 28 Dec 2014 13:00:58 +0000 (14:00 +0100)]
updated NEWs

10 years agoFixed bug #68665 (Invalid free)
Anatol Belski [Sun, 28 Dec 2014 12:58:01 +0000 (13:58 +0100)]
Fixed bug #68665 (Invalid free)

10 years agoFix bug #68641
Levi Morrison [Sun, 28 Dec 2014 02:05:16 +0000 (19:05 -0700)]
Fix bug #68641

Include more reflection information for spl_autoload_register

10 years agoImplemented FR #55428 (E_RECOVERABLE_ERROR when output buffering in output buffering...
Kalle Sommer Nielsen [Sat, 27 Dec 2014 19:56:39 +0000 (20:56 +0100)]
Implemented FR #55428 (E_RECOVERABLE_ERROR when output buffering in output buffering handler)

## Can probably go in lower branches, but I'd like to keep it in
## master for now

10 years agoIntroduce specialized functions to compare with integer and string, to eliminate...
Dmitry Stogov [Sat, 27 Dec 2014 08:11:40 +0000 (11:11 +0300)]
Introduce specialized functions to compare with integer and string, to eliminate repeatable checks on each loop iteration in in_array() function.

10 years agoUse special flag (HASH_FLAG_INITIALIZED) instead of (nTableMask == 0) to indicate...
Dmitry Stogov [Sat, 27 Dec 2014 08:07:12 +0000 (11:07 +0300)]
Use special flag (HASH_FLAG_INITIALIZED) instead of (nTableMask == 0) to indicate that HashTable is allocated.
Make nTableMask to be 0 for packed arrays.
Remove checks fo HASH_FLAG_PACKED in zend_hash_find/zend_hash_del and family (string keys are resolved through uninitialized_bucket).
Change HashTable layout for better locality.

10 years agoMerge branch 'PHP-5.6'
Keyur Govande [Fri, 26 Dec 2014 20:38:26 +0000 (20:38 +0000)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix for failing tests. gcc 4.8.3 would optimize away the assigment.

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Keyur Govande [Fri, 26 Dec 2014 20:37:50 +0000 (20:37 +0000)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix for failing tests. gcc 4.8.3 would optimize away the assigment.

10 years agoFix for failing tests. gcc 4.8.3 would optimize away the assigment.
Keyur Govande [Fri, 26 Dec 2014 20:36:19 +0000 (20:36 +0000)]
Fix for failing tests. gcc 4.8.3 would optimize away the assigment.

10 years agoDrop duplicate arg from hash_get_current_key_ex
Nikita Popov [Tue, 23 Dec 2014 21:00:18 +0000 (22:00 +0100)]
Drop duplicate arg from hash_get_current_key_ex

10 years agoSmall cleanups in hash implementation
Nikita Popov [Tue, 23 Dec 2014 20:19:04 +0000 (21:19 +0100)]
Small cleanups in hash implementation

 * Drop unnecessary checks in non-inlined part of numeric key
   detection
 * Drop zend_hash_apply_deleter in favor of zend_hash_del_el.
   Also move block/unblock interruption macros in there.

10 years agoOptimized destruction of extra arguments passed to user functions.
Dmitry Stogov [Fri, 26 Dec 2014 19:34:44 +0000 (22:34 +0300)]
Optimized destruction of extra arguments passed to user functions.
If no refcounted arguments are passed, then destruction code is not triggered at all.
(Full rebuild required)

10 years agoRevert "Revert "Fix failing tests""
Xinchen Hui [Fri, 26 Dec 2014 14:38:24 +0000 (09:38 -0500)]
Revert "Revert "Fix failing tests""

This reverts commit c2a047cf99f3d020bab12701e8dafed7424673bf.

10 years agoremove the extra comma
Anatol Belski [Fri, 26 Dec 2014 12:08:57 +0000 (13:08 +0100)]
remove the extra comma

10 years agoReimplemented used stack size recalculation (replaced 3d4babdc2b03515fa30e382125a7e79...
Dmitry Stogov [Fri, 26 Dec 2014 09:42:38 +0000 (12:42 +0300)]
Reimplemented used stack size recalculation (replaced 3d4babdc2b03515fa30e382125a7e79d10bafe7e)

10 years agoMerge branch 'PHP-5.6'
Remi Collet [Fri, 26 Dec 2014 07:35:31 +0000 (08:35 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  NEWS
  Fix bug #68656 Report gd library version

10 years agoNEWS
Remi Collet [Fri, 26 Dec 2014 07:35:08 +0000 (08:35 +0100)]
NEWS

10 years agoFix bug #68656 Report gd library version
Remi Collet [Fri, 26 Dec 2014 07:33:21 +0000 (08:33 +0100)]
Fix bug #68656 Report gd library version

10 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Thu, 25 Dec 2014 11:21:48 +0000 (06:21 -0500)]
Merge branch 'PHP-5.6'

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Xinchen Hui [Thu, 25 Dec 2014 11:21:14 +0000 (06:21 -0500)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoFixed test
Xinchen Hui [Thu, 25 Dec 2014 11:20:52 +0000 (06:20 -0500)]
Fixed test

10 years agoAdjust tempoary variable used in caller's side
Xinchen Hui [Thu, 25 Dec 2014 06:27:20 +0000 (14:27 +0800)]
Adjust tempoary variable used in caller's side

10 years agoRe-apply part fix of 4e2c016
Xinchen Hui [Thu, 25 Dec 2014 05:43:39 +0000 (00:43 -0500)]
Re-apply part fix of 4e2c016

10 years agoFixed test
Xinchen Hui [Thu, 25 Dec 2014 05:39:54 +0000 (00:39 -0500)]
Fixed test

10 years agoRevert "Fix failing tests"
Xinchen Hui [Thu, 25 Dec 2014 05:36:26 +0000 (00:36 -0500)]
Revert "Fix failing tests"

This fix break test due to precision setting

This reverts commit 4e2c01617f207c039881f635d3beb77eff0d9669.

Conflicts:
ext/mysqli/tests/mysqli_change_user.phpt
ext/mysqli/tests/table.inc

10 years agoFixed tests fails
Xinchen Hui [Thu, 25 Dec 2014 03:33:07 +0000 (11:33 +0800)]
Fixed tests fails

10 years agoAdd php_string_tolower/toupper which is locale depened
Xinchen Hui [Thu, 25 Dec 2014 03:28:54 +0000 (11:28 +0800)]
Add php_string_tolower/toupper which is locale depened

10 years agoRevert "Use zend_string_tolower in zif_strtolower"
Xinchen Hui [Thu, 25 Dec 2014 02:41:10 +0000 (10:41 +0800)]
Revert "Use zend_string_tolower in zif_strtolower"

This reverts commit 06abeab50c00fce1e8f06a8a137d4760ac13acae.

10 years agoMerge branch 'master' of https://git.php.net/repository/php-src
Xinchen Hui [Wed, 24 Dec 2014 13:16:44 +0000 (08:16 -0500)]
Merge branch 'master' of https://git.php.net/repository/php-src

10 years agoUse zend_string_tolower in zif_strtolower
Xinchen Hui [Wed, 24 Dec 2014 13:16:17 +0000 (08:16 -0500)]
Use zend_string_tolower in zif_strtolower

10 years agoremove unused variable
Anatol Belski [Wed, 24 Dec 2014 12:58:41 +0000 (13:58 +0100)]
remove unused variable

10 years agoC89 compat
Anatol Belski [Wed, 24 Dec 2014 12:56:54 +0000 (13:56 +0100)]
C89 compat

10 years agoMerge branch 'master' of https://git.php.net/repository/php-src
Xinchen Hui [Wed, 24 Dec 2014 12:45:25 +0000 (07:45 -0500)]
Merge branch 'master' of https://git.php.net/repository/php-src

10 years agoNo need to do this check for master, ZEND_COMPILE_NO_BUILTIN_STRLEN already cover it
Xinchen Hui [Wed, 24 Dec 2014 12:42:17 +0000 (20:42 +0800)]
No need to do this check for master, ZEND_COMPILE_NO_BUILTIN_STRLEN already cover it

10 years agoFor disabled function, to disable arguments checks, we have to reset num_args and...
Dmitry Stogov [Wed, 24 Dec 2014 12:34:52 +0000 (15:34 +0300)]
For disabled function, to disable arguments checks, we have to reset num_args and some related flags (in addition to arg_info)

10 years agoAdded new API function 'zend_string* zend_string_tolower(zend_string*)'.
Dmitry Stogov [Wed, 24 Dec 2014 12:04:51 +0000 (15:04 +0300)]
Added new API function 'zend_string* zend_string_tolower(zend_string*)'.
It simplifies code and avoids unnecessary allocation and copying if string is already in lower case.

10 years agoUpdate NEWs
Xinchen Hui [Wed, 24 Dec 2014 10:30:36 +0000 (18:30 +0800)]
Update NEWs

10 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Wed, 24 Dec 2014 10:30:06 +0000 (18:30 +0800)]
Merge branch 'PHP-5.6'

Conflicts:
ext/opcache/Optimizer/pass1_5.c

10 years agoFixed bug #68644 (strlen incorrect : mbstring + func_overload=2 +UTF-8 + Opcache)
Xinchen Hui [Wed, 24 Dec 2014 09:55:58 +0000 (17:55 +0800)]
Fixed bug #68644 (strlen incorrect : mbstring + func_overload=2 +UTF-8 + Opcache)

10 years agoFAST_ZPP for hot functions
Xinchen Hui [Tue, 23 Dec 2014 07:43:34 +0000 (02:43 -0500)]
FAST_ZPP for hot functions

10 years agobetter fix for script encoding ini
Anatol Belski [Tue, 23 Dec 2014 16:33:30 +0000 (17:33 +0100)]
better fix for script encoding ini

10 years agofix NULL deref when the script encoding wasn't previously set
Anatol Belski [Tue, 23 Dec 2014 16:02:45 +0000 (17:02 +0100)]
fix NULL deref when the script encoding wasn't previously set

10 years agoAPI for fast construction of packed arrays
Dmitry Stogov [Tue, 23 Dec 2014 16:08:28 +0000 (19:08 +0300)]
API for fast construction of packed arrays

10 years agozend_hash_do_resize: fix compacting condition
K. [Tue, 23 Dec 2014 14:32:15 +0000 (15:32 +0100)]
zend_hash_do_resize: fix compacting condition

nNumUsed should always be greater or equal to nNumOfElements so original condition is never true and arrays are always doubled in size and compaction is never triggered

10 years agothrow error in configure.js when no 64-bit compiler detected
Anatol Belski [Tue, 23 Dec 2014 13:06:30 +0000 (14:06 +0100)]
throw error in configure.js when no 64-bit compiler detected

10 years agoimproved system time function determination
Anatol Belski [Tue, 23 Dec 2014 11:02:36 +0000 (12:02 +0100)]
improved system time function determination

It doesn't need to LoadLibrary and all that stuff every time, but
once on the first access. Also the functions which are not directly
used inlined now.

10 years agocleanup
Anatol Belski [Tue, 23 Dec 2014 09:33:54 +0000 (10:33 +0100)]
cleanup

10 years agoFixed possible crash (pcre cache must keep permanent strings)
Dmitry Stogov [Tue, 23 Dec 2014 11:38:30 +0000 (14:38 +0300)]
Fixed possible crash (pcre cache must keep permanent strings)

10 years agoRevert "Improve Hash foreach macros"
Xinchen Hui [Tue, 23 Dec 2014 08:51:06 +0000 (03:51 -0500)]
Revert "Improve Hash foreach macros"

This reverts commit 95bb0a0f7aec46cacf6a447ded1688e6c6ff4b62.

10 years agoImprove Hash foreach macros
Xinchen Hui [Tue, 23 Dec 2014 05:50:39 +0000 (00:50 -0500)]
Improve Hash foreach macros

10 years agoPlease becareful with the tailed space after slash
Xinchen Hui [Tue, 23 Dec 2014 03:59:17 +0000 (22:59 -0500)]
Please becareful with the tailed space after slash

10 years agoshare that hunk of code
Andrea Faulds [Tue, 23 Dec 2014 01:51:19 +0000 (01:51 +0000)]
share that hunk of code

10 years agoImproved trim/ltrim/rtrim functions.
Dmitry Stogov [Tue, 23 Dec 2014 01:29:41 +0000 (04:29 +0300)]
Improved trim/ltrim/rtrim functions.
Now php_trim() operates on zend_string and returns zend_string (it may return the same zend_string).

10 years agoImproved array_keys()
Dmitry Stogov [Tue, 23 Dec 2014 01:29:27 +0000 (04:29 +0300)]
Improved array_keys()

10 years agoImproved get_object_vars()
Dmitry Stogov [Mon, 22 Dec 2014 23:49:47 +0000 (02:49 +0300)]
Improved get_object_vars()

10 years agoImproved unserialize()
Dmitry Stogov [Mon, 22 Dec 2014 23:49:33 +0000 (02:49 +0300)]
Improved unserialize()

10 years agoremove 3.0 from excluded versions because limitation lifted by native-tls
krakjoe [Mon, 22 Dec 2014 21:32:14 +0000 (21:32 +0000)]
remove 3.0 from excluded versions because limitation lifted by native-tls

10 years agoRemoved useless checks
Dmitry Stogov [Mon, 22 Dec 2014 16:04:29 +0000 (19:04 +0300)]
Removed useless checks

10 years agoMerge branch 'master' of https://git.php.net/repository/php-src
Xinchen Hui [Mon, 22 Dec 2014 15:48:10 +0000 (23:48 +0800)]
Merge branch 'master' of https://git.php.net/repository/php-src

10 years agoFixed warning
Xinchen Hui [Mon, 22 Dec 2014 15:39:32 +0000 (23:39 +0800)]
Fixed warning

10 years agoDon't count variadic argument in zend_func.common.num_args. This allows faster CALL...
Dmitry Stogov [Mon, 22 Dec 2014 13:44:39 +0000 (16:44 +0300)]
Don't count variadic argument in zend_func.common.num_args. This allows faster CALL/RETURN code.

10 years agomissed include for intptr_t/uintptr_t
Anatol Belski [Mon, 22 Dec 2014 10:28:13 +0000 (11:28 +0100)]
missed include for intptr_t/uintptr_t

10 years agouse cleaner tsrm_intptr_t/tsrm_uintptr_t typedef
Anatol Belski [Mon, 22 Dec 2014 09:34:44 +0000 (10:34 +0100)]
use cleaner tsrm_intptr_t/tsrm_uintptr_t typedef

10 years agotypo
Dmitry Stogov [Mon, 22 Dec 2014 09:31:00 +0000 (12:31 +0300)]
typo

10 years agoMicro optimaztion (yeah, I know compiler supposed to do that)
Xinchen Hui [Mon, 22 Dec 2014 05:10:46 +0000 (00:10 -0500)]
Micro optimaztion (yeah, I know compiler supposed to do that)

10 years agoFixed segfault
Xinchen Hui [Mon, 22 Dec 2014 04:18:56 +0000 (23:18 -0500)]
Fixed segfault

10 years agoMicro optimization
Xinchen Hui [Mon, 22 Dec 2014 04:16:25 +0000 (23:16 -0500)]
Micro optimization

10 years agoMicro optimizations
Xinchen Hui [Mon, 22 Dec 2014 03:35:25 +0000 (22:35 -0500)]
Micro optimizations

10 years agoMerge branch 'master' of https://git.php.net/repository/php-src
Xinchen Hui [Mon, 22 Dec 2014 02:53:32 +0000 (21:53 -0500)]
Merge branch 'master' of https://git.php.net/repository/php-src

10 years agofix zts build on mac/clang
Ferenc Kovacs [Sun, 21 Dec 2014 19:01:39 +0000 (20:01 +0100)]
fix zts build on mac/clang

10 years agoUse "float" and "integer" in typehint and zpp errors
Andrea Faulds [Sun, 14 Dec 2014 18:20:23 +0000 (18:20 +0000)]
Use "float" and "integer" in typehint and zpp errors

10 years agoUnify HTTP status code maps
Andrea Faulds [Mon, 15 Dec 2014 02:26:00 +0000 (02:26 +0000)]
Unify HTTP status code maps

10 years agoUPGRADING and NEWS cleanups
Andrea Faulds [Sun, 21 Dec 2014 03:08:29 +0000 (03:08 +0000)]
UPGRADING and NEWS cleanups

10 years agoAllow arrays with define(), to match const syntax support
Dmitry Stogov [Sun, 21 Dec 2014 03:03:49 +0000 (03:03 +0000)]
Allow arrays with define(), to match const syntax support

10 years agoMake it inline
Xinchen Hui [Sat, 20 Dec 2014 10:17:56 +0000 (05:17 -0500)]
Make it inline

10 years agoMerge branch 'PHP-5.6'
Nikita Popov [Fri, 19 Dec 2014 20:51:05 +0000 (21:51 +0100)]
Merge branch 'PHP-5.6'

Conflicts:
ext/opcache/Optimizer/pass2.c

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Nikita Popov [Fri, 19 Dec 2014 20:45:54 +0000 (21:45 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoFix bug #67111
Nikita Popov [Fri, 19 Dec 2014 20:40:54 +0000 (21:40 +0100)]
Fix bug #67111

Loop variables need to be freed for both "break" and "continue".

I'm adding the test to Zend/ because it's good to have a test for
this even without opcache.

10 years agoFixed memory leaks
Dmitry Stogov [Fri, 19 Dec 2014 16:43:17 +0000 (19:43 +0300)]
Fixed memory leaks

10 years agoAvoid NULL pointer dereferencing
Dmitry Stogov [Fri, 19 Dec 2014 15:20:55 +0000 (18:20 +0300)]
Avoid NULL pointer dereferencing

10 years agoImproved setlocale(). Eliminated locale comparison in ext/pcre if it's not necessary.
Dmitry Stogov [Fri, 19 Dec 2014 15:00:16 +0000 (18:00 +0300)]
Improved setlocale(). Eliminated locale comparison in ext/pcre if it's not necessary.