]> granicus.if.org Git - php/log
php
10 years agoRemove HASH_NEXT_INSERT flag
Nikita Popov [Tue, 16 Sep 2014 12:28:30 +0000 (14:28 +0200)]
Remove HASH_NEXT_INSERT flag

We already pass ht->nNextFreeElement and the rest is handled by
ZEND_HASH_ADD.

10 years agoRemove two more always-true conditions
Nikita Popov [Tue, 16 Sep 2014 12:09:32 +0000 (14:09 +0200)]
Remove two more always-true conditions

10 years agoMerge branch 'pull-request/808'
krakjoe [Tue, 16 Sep 2014 14:40:31 +0000 (15:40 +0100)]
Merge branch 'pull-request/808'

10 years agoImprove opcache.fast_shutdown
Dmitry Stogov [Tue, 16 Sep 2014 11:28:46 +0000 (15:28 +0400)]
Improve opcache.fast_shutdown

10 years agobetter error messages in ZMM on Windows
Anatol Belski [Tue, 16 Sep 2014 10:27:25 +0000 (12:27 +0200)]
better error messages in ZMM on Windows

10 years agoemalloc() must not return NULL
Dmitry Stogov [Tue, 16 Sep 2014 09:53:26 +0000 (13:53 +0400)]
emalloc() must not return NULL

10 years agocode optimization
Dmitry Stogov [Tue, 16 Sep 2014 09:52:50 +0000 (13:52 +0400)]
code optimization

10 years agoMerge branch 'PHP-5.6'
Matteo Beccati [Tue, 16 Sep 2014 08:23:03 +0000 (10:23 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed freetype test on multiple environments

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Matteo Beccati [Tue, 16 Sep 2014 08:22:49 +0000 (10:22 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed freetype test on multiple environments

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Matteo Beccati [Tue, 16 Sep 2014 08:22:34 +0000 (10:22 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fixed freetype test on multiple environments

10 years agoFixed freetype test on multiple environments
Matteo Beccati [Tue, 16 Sep 2014 08:17:25 +0000 (10:17 +0200)]
Fixed freetype test on multiple environments

Some environments, apparently regardless to the freetype version, output 155, while others 156. I guess we can accept both ;)

This reverts commit 592df890276604c790d02be26b1b3c3710b3b888.

10 years agows
Dmitry Stogov [Tue, 16 Sep 2014 07:56:56 +0000 (11:56 +0400)]
ws

10 years agocast the other way round, the sign check is already done before
Anatol Belski [Tue, 16 Sep 2014 07:28:49 +0000 (09:28 +0200)]
cast the other way round, the sign check is already done before

10 years agoit's good for gc debuging
Xinchen Hui [Tue, 16 Sep 2014 06:15:01 +0000 (14:15 +0800)]
it's good for gc debuging

10 years agoWe don't have to check for undefined CV if we fetch it for isset() operation
Dmitry Stogov [Tue, 16 Sep 2014 05:15:47 +0000 (09:15 +0400)]
We don't have to check for undefined CV if we fetch it for isset() operation

10 years agoSwitch (un)mangle property name to size_t and zend_string
Nikita Popov [Mon, 15 Sep 2014 22:23:58 +0000 (00:23 +0200)]
Switch (un)mangle property name to size_t and zend_string

Also use the _ex variants where possible.

10 years agoOptimized FE_RESET and FE_FETCH
Dmitry Stogov [Mon, 15 Sep 2014 21:34:27 +0000 (01:34 +0400)]
Optimized FE_RESET and FE_FETCH

10 years agoRemove always-true comparisons
Nikita Popov [Mon, 15 Sep 2014 21:04:34 +0000 (23:04 +0200)]
Remove always-true comparisons

10 years agoUpdate types in zend_hash
Nikita Popov [Mon, 15 Sep 2014 21:01:52 +0000 (23:01 +0200)]
Update types in zend_hash

 * String lengths are size_t
 * Indexes are uint32_t
 * Flags are uint32_t
 * Booleans are zend_bool

10 years agofix signed/unsigned mismatch warnings
Anatol Belski [Mon, 15 Sep 2014 16:14:37 +0000 (18:14 +0200)]
fix signed/unsigned mismatch warnings

10 years agofix types
Anatol Belski [Mon, 15 Sep 2014 16:05:58 +0000 (18:05 +0200)]
fix types

10 years agofix signed/unsigned mismatch
Anatol Belski [Mon, 15 Sep 2014 15:51:07 +0000 (17:51 +0200)]
fix signed/unsigned mismatch

10 years agofix negating an unsigned
Anatol Belski [Mon, 15 Sep 2014 15:48:15 +0000 (17:48 +0200)]
fix negating an unsigned

10 years agofix signed/unsigned mismatch
Anatol Belski [Mon, 15 Sep 2014 14:52:19 +0000 (16:52 +0200)]
fix signed/unsigned mismatch

10 years agorevamp serialization to work with size_t for Serializable
Anatol Belski [Mon, 15 Sep 2014 14:32:18 +0000 (16:32 +0200)]
revamp serialization to work with size_t for Serializable

10 years agofix signed/unsigned mismatch
Anatol Belski [Mon, 15 Sep 2014 14:14:37 +0000 (16:14 +0200)]
fix signed/unsigned mismatch

10 years agofix signed/unsigned mismatch
Anatol Belski [Mon, 15 Sep 2014 14:04:12 +0000 (16:04 +0200)]
fix signed/unsigned mismatch

10 years agofix most of signed/unsigned warnings in vm def
Anatol Belski [Mon, 15 Sep 2014 13:52:39 +0000 (15:52 +0200)]
fix most of signed/unsigned warnings in vm def

10 years agoMerge branch 'PHP-5.6'
Remi Collet [Mon, 15 Sep 2014 11:32:37 +0000 (13:32 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  NEWS
  NEWS
  Fixed bug #65641 PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache

10 years agoNEWS
Remi Collet [Mon, 15 Sep 2014 11:32:13 +0000 (13:32 +0200)]
NEWS

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Mon, 15 Sep 2014 11:31:26 +0000 (13:31 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  NEWS
  Fixed bug #65641 PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache

10 years agoNEWS
Remi Collet [Mon, 15 Sep 2014 11:31:17 +0000 (13:31 +0200)]
NEWS

10 years agoFixed bug #65641 PHP-FPM incorrectly defines the SCRIPT_NAME variable when using...
Remi Collet [Mon, 15 Sep 2014 11:29:55 +0000 (13:29 +0200)]
Fixed bug #65641 PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache

ProxyPass is unable to provide correct PATH_INFO
as it is not aware of file path (while SetHandler is).

As we can extract PATH_INFO from PATH_TRANSLATED,
we also need to check if present in SCRIPT_NAME
and remove it.

After applying this patch.
With mod_php
_SERVER["REQUEST_URI"]     /info.php/foo/bar?q=1
_SERVER["SCRIPT_NAME"]     /info.php
_SERVER["PATH_INFO"]       /foor/bar
_SERVER["PHP_SELF"]        /info.php/foo/bar
_SERVER["QUERY_STRING"]    q=1

With mod_proxy_fcgi + SetHandler
_SERVER["REQUEST_URI"]     /info.php/foo/bar?q=1
_SERVER["SCRIPT_NAME"]     /info.php
_SERVER["PATH_INFO"]       /foo/bar
_SERVER["PHP_SELF"]        /info.php/foo/bar
_SERVER["QUERY_STRING"]    q=1

With mod_proxy_fcgi + ProxyPass
_SERVER["REQUEST_URI"]     /info.php/foo/bar?q=1
_SERVER["SCRIPT_NAME"]     /info.php
_SERVER["PATH_INFO"]       /foo/bar
_SERVER["PHP_SELF"]        /info.php/foo/bar
_SERVER["QUERY_STRING"]    q=1

10 years agocorrect fix to the natcmp_ex
Anatol Belski [Mon, 15 Sep 2014 10:54:46 +0000 (12:54 +0200)]
correct fix to the natcmp_ex

Till now the actualy length diff between the strings was under
circumstances returned. Whereby for a compare function only return
values of (1, 0, -1) make sense. Thus the old behavior isn't
present anymore, natcmp_ex now behaves as a standard compare function.

10 years agofix signed/unsigned mismatch
Anatol Belski [Mon, 15 Sep 2014 10:12:18 +0000 (12:12 +0200)]
fix signed/unsigned mismatch

10 years agofix signed/unsigned mismatch
Anatol Belski [Mon, 15 Sep 2014 10:08:42 +0000 (12:08 +0200)]
fix signed/unsigned mismatch

10 years agofix unsigned negation
Anatol Belski [Mon, 15 Sep 2014 09:59:48 +0000 (11:59 +0200)]
fix unsigned negation

10 years agofix signed/unsigned mismatch
Anatol Belski [Mon, 15 Sep 2014 09:40:18 +0000 (11:40 +0200)]
fix signed/unsigned mismatch

10 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Mon, 15 Sep 2014 10:37:59 +0000 (14:37 +0400)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  fix initializer struct
  fix signature
  fix type
  fix condition

10 years agoReplaced macro with better optimized inline function
Dmitry Stogov [Mon, 15 Sep 2014 10:36:55 +0000 (14:36 +0400)]
Replaced macro with better optimized inline function

10 years agofix initializer struct
Anatol Belski [Mon, 15 Sep 2014 09:28:24 +0000 (11:28 +0200)]
fix initializer struct

10 years agofix signature
Anatol Belski [Mon, 15 Sep 2014 09:13:55 +0000 (11:13 +0200)]
fix signature

10 years agofix type
Anatol Belski [Mon, 15 Sep 2014 08:57:04 +0000 (10:57 +0200)]
fix type

10 years agofix condition
Anatol Belski [Mon, 15 Sep 2014 08:51:56 +0000 (10:51 +0200)]
fix condition

10 years agoMerge branch 'master' of https://git.php.net/repository/php-src
Xinchen Hui [Mon, 15 Sep 2014 08:54:36 +0000 (16:54 +0800)]
Merge branch 'master' of https://git.php.net/repository/php-src

10 years agoRemove redundant codes
Xinchen Hui [Mon, 15 Sep 2014 08:52:33 +0000 (16:52 +0800)]
Remove redundant codes

10 years agofix type
Anatol Belski [Mon, 15 Sep 2014 08:39:51 +0000 (10:39 +0200)]
fix type

10 years agooptimize path length retrieval
Kalle Sommer Nielsen [Mon, 15 Sep 2014 08:35:39 +0000 (10:35 +0200)]
optimize path length retrieval

10 years agoMerge branch 'PHP-5.6'
Anatol Belski [Mon, 15 Sep 2014 08:29:28 +0000 (10:29 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated NEWS
  updated NEWS

10 years agoupdated NEWS
Anatol Belski [Mon, 15 Sep 2014 08:29:00 +0000 (10:29 +0200)]
updated NEWS

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Mon, 15 Sep 2014 08:28:22 +0000 (10:28 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  updated NEWS

10 years agoupdated NEWS
Anatol Belski [Mon, 15 Sep 2014 08:27:52 +0000 (10:27 +0200)]
updated NEWS

10 years agoMerge branch 'master' of https://git.php.net/repository/php-src
Xinchen Hui [Mon, 15 Sep 2014 06:50:16 +0000 (14:50 +0800)]
Merge branch 'master' of https://git.php.net/repository/php-src

10 years agoAdd test script for the segfault in gc while run phpspec
Xinchen Hui [Mon, 15 Sep 2014 06:49:34 +0000 (14:49 +0800)]
Add test script for the segfault in gc while run phpspec

10 years agoMerge branch 'PHP-5.6'
Remi Collet [Mon, 15 Sep 2014 06:28:22 +0000 (08:28 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix NEWS - #65641 mod_proxy-fcgi is not fixed (still open) - #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17
  Fix NEWS - #65641 mod_proxy-fcgi is not fixed (still open) - #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17
  Fix bug #111 (compile error without ZEND_SIGNALS)
  Don't run travis against master (phpng)
  Update README.md

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Mon, 15 Sep 2014 06:24:20 +0000 (08:24 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix NEWS - #65641 mod_proxy-fcgi is not fixed (still open) - #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17
  Fix NEWS - #65641 mod_proxy-fcgi is not fixed (still open) - #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17

10 years agoFix NEWS
Remi Collet [Mon, 15 Sep 2014 06:24:10 +0000 (08:24 +0200)]
Fix NEWS
- #65641 mod_proxy-fcgi is not fixed (still open)
- #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Remi Collet [Mon, 15 Sep 2014 06:23:40 +0000 (08:23 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fix NEWS - #65641 mod_proxy-fcgi is not fixed (still open) - #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17

10 years agoFix NEWS
Remi Collet [Mon, 15 Sep 2014 06:23:25 +0000 (08:23 +0200)]
Fix NEWS
- #65641 mod_proxy-fcgi is not fixed (still open)
- #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17

10 years agoMerge phpdbg into PHP-5.6
Bob Weinand [Mon, 15 Sep 2014 03:48:09 +0000 (05:48 +0200)]
Merge phpdbg into PHP-5.6

10 years agoavoid strlen usage in the loop
Anatol Belski [Sun, 14 Sep 2014 22:39:55 +0000 (00:39 +0200)]
avoid strlen usage in the loop

10 years agofix format
Anatol Belski [Sun, 14 Sep 2014 21:10:41 +0000 (23:10 +0200)]
fix format

10 years agofix ftell/fseek calls
Anatol Belski [Sun, 14 Sep 2014 21:03:13 +0000 (23:03 +0200)]
fix ftell/fseek calls

10 years agoreduce struct size by 8 byte on 64 bit
Anatol Belski [Sun, 14 Sep 2014 20:31:01 +0000 (22:31 +0200)]
reduce struct size by 8 byte on 64 bit

10 years agofix ftell/fseek calls
Anatol Belski [Sun, 14 Sep 2014 20:28:42 +0000 (22:28 +0200)]
fix ftell/fseek calls

10 years agobetter way to check for empty string
Anatol Belski [Sun, 14 Sep 2014 20:07:38 +0000 (22:07 +0200)]
better way to check for empty string

10 years agomake xml_utf8_ encode/decode work with size_t
Anatol Belski [Sun, 14 Sep 2014 19:38:46 +0000 (21:38 +0200)]
make xml_utf8_ encode/decode work with size_t

10 years agoavoid repeated strlen usage
Anatol Belski [Sun, 14 Sep 2014 15:00:34 +0000 (17:00 +0200)]
avoid repeated strlen usage

10 years agoavoid strlen() usage in loop
Anatol Belski [Sun, 14 Sep 2014 15:00:06 +0000 (17:00 +0200)]
avoid strlen() usage in loop

10 years agofix int overflow preserving the old behavior
Anatol Belski [Sun, 14 Sep 2014 14:37:38 +0000 (16:37 +0200)]
fix int overflow preserving the old behavior

10 years agoFix use of stack variable outside its block
Nikita Popov [Sat, 13 Sep 2014 21:30:32 +0000 (23:30 +0200)]
Fix use of stack variable outside its block

10 years agozend_get_property_info takes a zend_string* now
Nikita Popov [Sat, 13 Sep 2014 21:14:04 +0000 (23:14 +0200)]
zend_get_property_info takes a zend_string* now

10 years agouse nice way to achieve the property name length
Anatol Belski [Sun, 14 Sep 2014 13:09:54 +0000 (15:09 +0200)]
use nice way to achieve the property name length

10 years agomake it safer for an array underrun
Anatol Belski [Sun, 14 Sep 2014 13:03:52 +0000 (15:03 +0200)]
make it safer for an array underrun

10 years agofix type
Anatol Belski [Sun, 14 Sep 2014 12:43:39 +0000 (14:43 +0200)]
fix type

10 years agoavoid repeated strlen() usage
Anatol Belski [Sun, 14 Sep 2014 10:59:31 +0000 (12:59 +0200)]
avoid repeated strlen() usage

10 years agoreduce struct size by 8 bytes on 64 bit
Anatol Belski [Sun, 14 Sep 2014 10:32:38 +0000 (12:32 +0200)]
reduce struct size by 8 bytes on 64 bit

10 years agoavoid repeated strlen() usage
Anatol Belski [Sun, 14 Sep 2014 10:30:01 +0000 (12:30 +0200)]
avoid repeated strlen() usage

10 years agoFix bug #111 (compile error without ZEND_SIGNALS)
Bob Weinand [Sun, 14 Sep 2014 10:24:56 +0000 (12:24 +0200)]
Fix bug #111 (compile error without ZEND_SIGNALS)

10 years agofix possible pointer truncation
Anatol Belski [Sun, 14 Sep 2014 10:18:52 +0000 (12:18 +0200)]
fix possible pointer truncation

10 years agobetter way to zero away sensitive data
Anatol Belski [Sun, 14 Sep 2014 09:48:51 +0000 (11:48 +0200)]
better way to zero away sensitive data

memset could be optimized away by the compiler

10 years agoreduce struct size by 8 byte on 64 bit
Anatol Belski [Sun, 14 Sep 2014 09:36:11 +0000 (11:36 +0200)]
reduce struct size by 8 byte on 64 bit

10 years agoreduce struct size by 8 byte on 64 bit
Anatol Belski [Sun, 14 Sep 2014 09:26:17 +0000 (11:26 +0200)]
reduce struct size by 8 byte on 64 bit

10 years agoreduce struct sizes by 8 bytes each on 64 bit
Anatol Belski [Sun, 14 Sep 2014 09:13:17 +0000 (11:13 +0200)]
reduce struct sizes by 8 bytes each on 64 bit

10 years agoremove useless casts and checks
Anatol Belski [Sun, 14 Sep 2014 09:00:22 +0000 (11:00 +0200)]
remove useless casts and checks

10 years agoalign 4 byte to the start of the word
Anatol Belski [Sun, 14 Sep 2014 08:27:00 +0000 (10:27 +0200)]
align 4 byte to the start of the word

10 years agofix conditions
Anatol Belski [Sun, 14 Sep 2014 08:24:10 +0000 (10:24 +0200)]
fix conditions

substraction from an unsigned

10 years agoreduce the struct size by 8 byte on 64 bit
Anatol Belski [Sun, 14 Sep 2014 07:40:56 +0000 (09:40 +0200)]
reduce the struct size by 8 byte on 64 bit

10 years agoreduce the struct size by 8 byte on 64 bit
Anatol Belski [Sun, 14 Sep 2014 07:25:09 +0000 (09:25 +0200)]
reduce the struct size by 8 byte on 64 bit

10 years agoreduce the struct size by 8 byte on 64 bit
Anatol Belski [Sun, 14 Sep 2014 07:22:02 +0000 (09:22 +0200)]
reduce the struct size by 8 byte on 64 bit

10 years agoreduce the struct size by 8 byte on 64 bit
Anatol Belski [Sat, 13 Sep 2014 23:22:55 +0000 (01:22 +0200)]
reduce the struct size by 8 byte on 64 bit

10 years agoreduce the struct size by 8 byte on 64 bit
Anatol Belski [Sat, 13 Sep 2014 23:12:12 +0000 (01:12 +0200)]
reduce the struct size by 8 byte on 64 bit

10 years agoreduce the struct size by 8 byte on 64 bit
Anatol Belski [Sat, 13 Sep 2014 22:59:46 +0000 (00:59 +0200)]
reduce the struct size by 8 byte on 64 bit

10 years agouse the generator to produce the header
Anatol Belski [Sat, 13 Sep 2014 22:43:58 +0000 (00:43 +0200)]
use the generator to produce the header

10 years agoupdate the html table generator
Anatol Belski [Sat, 13 Sep 2014 22:42:48 +0000 (00:42 +0200)]
update the html table generator

10 years agoremoved the emalloc result check, out of memory will bailout
Anatol Belski [Sat, 13 Sep 2014 22:00:52 +0000 (00:00 +0200)]
removed the emalloc result check, out of memory will bailout

10 years agoreplaced the check with assert as it's kinda unusual case
Anatol Belski [Sat, 13 Sep 2014 21:57:53 +0000 (23:57 +0200)]
replaced the check with assert as it's kinda unusual case

10 years agoremoved extra 1 byte member, padding will be done anyway by the compiler
Anatol Belski [Sat, 13 Sep 2014 21:55:30 +0000 (23:55 +0200)]
removed extra 1 byte member, padding will be done anyway by the compiler

10 years agoreduce struct size by 8 byte on 64 bit
Anatol Belski [Sat, 13 Sep 2014 21:34:08 +0000 (23:34 +0200)]
reduce struct size by 8 byte on 64 bit

10 years agoavoid usage of strlen() in the loop
Anatol Belski [Sat, 13 Sep 2014 19:44:40 +0000 (21:44 +0200)]
avoid usage of strlen() in the loop