]> granicus.if.org Git - php/log
php
9 years agoXFAILED tests are not "You may have found a problem in PHP"
Bob Weinand [Thu, 2 Jul 2015 18:49:30 +0000 (20:49 +0200)]
XFAILED tests are not "You may have found a problem in PHP"

9 years agoIntroduce ArithmeticError
Bob Weinand [Thu, 2 Jul 2015 18:47:44 +0000 (20:47 +0200)]
Introduce ArithmeticError

9 years agoCleanup (avoid reallocation)
Dmitry Stogov [Thu, 2 Jul 2015 17:29:06 +0000 (20:29 +0300)]
Cleanup (avoid reallocation)

9 years agoCleanup (avoid reallocation)
Dmitry Stogov [Thu, 2 Jul 2015 16:09:37 +0000 (19:09 +0300)]
Cleanup (avoid reallocation)

9 years agoCleanup (avoid reallocations)
Dmitry Stogov [Thu, 2 Jul 2015 15:58:04 +0000 (18:58 +0300)]
Cleanup (avoid reallocations)

9 years agoCleanup (avoid reallocation)
Dmitry Stogov [Thu, 2 Jul 2015 15:50:54 +0000 (18:50 +0300)]
Cleanup (avoid reallocation)

9 years agoadd missing items to the table of contents
Anatol Belski [Thu, 2 Jul 2015 14:34:42 +0000 (16:34 +0200)]
add missing items to the table of contents

9 years agoupdate UPGRADING infos
Anatol Belski [Thu, 2 Jul 2015 14:32:57 +0000 (16:32 +0200)]
update UPGRADING infos

9 years agofix pipe peek timeout
Anatol Belski [Thu, 2 Jul 2015 13:19:38 +0000 (15:19 +0200)]
fix pipe peek timeout

9 years agoFix alignment on 32-bit
Christoph M. Becker [Thu, 2 Jul 2015 10:16:41 +0000 (12:16 +0200)]
Fix alignment on 32-bit

9 years agoimprove timings evaluations in test
Christoph M. Becker [Thu, 2 Jul 2015 08:51:26 +0000 (10:51 +0200)]
improve timings evaluations in test

9 years agouse proper place to cleanup
Anatol Belski [Wed, 1 Jul 2015 18:06:48 +0000 (20:06 +0200)]
use proper place to cleanup

9 years agofix test for systems with lower time resolution
Anatol Belski [Wed, 1 Jul 2015 08:23:57 +0000 (10:23 +0200)]
fix test for systems with lower time resolution

9 years agoremove stderr descriptor
Anatol Belski [Tue, 30 Jun 2015 17:53:48 +0000 (19:53 +0200)]
remove stderr descriptor

9 years agono need to fflush here
Anatol Belski [Tue, 30 Jun 2015 17:25:14 +0000 (19:25 +0200)]
no need to fflush here

9 years agoadded test for bug #69900
Anatol Belski [Tue, 30 Jun 2015 17:22:17 +0000 (19:22 +0200)]
added test for bug #69900

9 years agoselect the case to set the pipe blocking option more precisely
Anatol Belski [Tue, 30 Jun 2015 16:07:16 +0000 (18:07 +0200)]
select the case to set the pipe blocking option more precisely

9 years agofixed wrong number for the new option
Anatol Belski [Tue, 30 Jun 2015 16:05:41 +0000 (18:05 +0200)]
fixed wrong number for the new option

9 years agofix c/p issue
Anatol Belski [Tue, 30 Jun 2015 15:37:38 +0000 (17:37 +0200)]
fix c/p issue

9 years agoproperly set the pipe blocking option
Anatol Belski [Tue, 30 Jun 2015 15:21:21 +0000 (17:21 +0200)]
properly set the pipe blocking option

9 years agoadd missing stuff is the header
Anatol Belski [Tue, 30 Jun 2015 13:57:49 +0000 (15:57 +0200)]
add missing stuff is the header

9 years agoinitial stuff to make allow blocking pipes on windows
Anatol Belski [Tue, 30 Jun 2015 13:47:25 +0000 (15:47 +0200)]
initial stuff to make allow blocking pipes on windows

9 years agoFixed conditional jump or move depends on uninitialised value(s)
Xinchen Hui [Thu, 2 Jul 2015 11:02:49 +0000 (19:02 +0800)]
Fixed conditional jump or move depends on uninitialised value(s)

==11551==    at 0x57CB23C: xpmParseData (parse.c:702)

9 years agoFixed bug #69521 (Segfault in gc_collect_cycles()).
Xinchen Hui [Thu, 2 Jul 2015 10:43:06 +0000 (18:43 +0800)]
Fixed bug #69521 (Segfault in gc_collect_cycles()).

9 years agoUse hash_str directly
Xinchen Hui [Thu, 2 Jul 2015 04:31:26 +0000 (12:31 +0800)]
Use hash_str directly

9 years agoSame here
Xinchen Hui [Thu, 2 Jul 2015 04:23:50 +0000 (12:23 +0800)]
Same here

9 years agoUse one_char_string
Xinchen Hui [Thu, 2 Jul 2015 04:19:55 +0000 (12:19 +0800)]
Use one_char_string

9 years agoUse one_char_string
Xinchen Hui [Thu, 2 Jul 2015 04:18:23 +0000 (12:18 +0800)]
Use one_char_string

9 years agoUse zend_string in setcookie (save value reallocated)
Xinchen Hui [Thu, 2 Jul 2015 04:04:14 +0000 (12:04 +0800)]
Use zend_string in setcookie (save value reallocated)

9 years agoUnnecessary duplication
Xinchen Hui [Thu, 2 Jul 2015 03:44:28 +0000 (11:44 +0800)]
Unnecessary duplication

9 years agoThis can not be true
Xinchen Hui [Thu, 2 Jul 2015 03:04:24 +0000 (11:04 +0800)]
This can not be true

9 years agoCT eval ZEND_DIV in all cases (warning was removed)
Bob Weinand [Thu, 2 Jul 2015 00:04:16 +0000 (02:04 +0200)]
CT eval ZEND_DIV in all cases (warning was removed)

9 years agoUse DivisionByZeroError instead of exception for %/intdiv()
Bob Weinand [Wed, 1 Jul 2015 23:54:08 +0000 (01:54 +0200)]
Use DivisionByZeroError instead of exception for %/intdiv()

9 years agoRemove warning upon division by zero
Bob Weinand [Wed, 1 Jul 2015 22:32:46 +0000 (00:32 +0200)]
Remove warning upon division by zero

9 years agoFixed memory leak because of incorrect 'if ();' optimization
Dmitry Stogov [Wed, 1 Jul 2015 23:00:34 +0000 (02:00 +0300)]
Fixed memory leak because of incorrect 'if ();' optimization

9 years agoupdated NEWS
Christoph M. Becker [Wed, 1 Jul 2015 21:50:12 +0000 (23:50 +0200)]
updated NEWS

9 years agoFix #69976: Unable to parse "all" urls with colon char
Christoph M. Becker [Wed, 1 Jul 2015 21:45:52 +0000 (23:45 +0200)]
Fix #69976: Unable to parse "all" urls with colon char

If a colon occurs in a query string or fragment of a partial URL without
scheme, parse_url() tries to regard it as port separator. If up to 5 digits
follow and then a slash or the end of the string, parse_url() fails.

We're fixing this by checking whether the colon is part of the query string or
the fragment, under the assumption that question marks and hash signs are only
allowed as separators of query string and fragments, respectively, what is
guarenteed for URIs (RFC 3986), but not necessarily for URLs (RFC 1738) where
question marks are allowed for usernames and passwords.

Anyhow, this constitutes a minor BC, so the fix is applied to master only.

9 years agoCleanup (removed dead code)
Dmitry Stogov [Wed, 1 Jul 2015 19:18:40 +0000 (22:18 +0300)]
Cleanup (removed dead code)

9 years agoCleanup (avoid reallocation)
Dmitry Stogov [Wed, 1 Jul 2015 19:17:55 +0000 (22:17 +0300)]
Cleanup (avoid reallocation)

9 years agoCleanup (avoid reallocation)
Dmitry Stogov [Wed, 1 Jul 2015 19:17:08 +0000 (22:17 +0300)]
Cleanup (avoid reallocation)

9 years agoCleanup (avoid reallocatios and side effects in php_strip_tags)
Dmitry Stogov [Wed, 1 Jul 2015 16:04:18 +0000 (19:04 +0300)]
Cleanup (avoid reallocatios and side effects in php_strip_tags)

9 years agoFixed broken name
Dmitry Stogov [Wed, 1 Jul 2015 15:23:06 +0000 (18:23 +0300)]
Fixed broken name

9 years agoCleanup (updated comments)
Dmitry Stogov [Wed, 1 Jul 2015 14:32:04 +0000 (17:32 +0300)]
Cleanup (updated comments)

9 years agoCleanup (replce hack by a clean implementation)
Dmitry Stogov [Wed, 1 Jul 2015 14:30:00 +0000 (17:30 +0300)]
Cleanup (replce hack by a clean implementation)

9 years agoCleanup (removed dead code)
Dmitry Stogov [Wed, 1 Jul 2015 14:07:57 +0000 (17:07 +0300)]
Cleanup (removed dead code)

9 years agoCleanup (avoid duplication)
Dmitry Stogov [Wed, 1 Jul 2015 14:01:42 +0000 (17:01 +0300)]
Cleanup (avoid duplication)

9 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Wed, 1 Jul 2015 13:32:13 +0000 (16:32 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  change the inclusion order which fixes the vc build

9 years agoCleanup (updated comments about optimization of comparison with IS_NULL)
Dmitry Stogov [Wed, 1 Jul 2015 13:31:20 +0000 (16:31 +0300)]
Cleanup (updated comments about optimization of comparison with IS_NULL)

9 years agochange the inclusion order which fixes the vc build
Anatol Belski [Wed, 1 Jul 2015 13:21:04 +0000 (15:21 +0200)]
change the inclusion order which fixes the vc build

9 years agoCleanup (we don't use is_ref=1/refcount=2 trick to trigger COW in PHP-7)
Dmitry Stogov [Wed, 1 Jul 2015 13:15:45 +0000 (16:15 +0300)]
Cleanup (we don't use is_ref=1/refcount=2 trick to trigger COW in PHP-7)

9 years agoCleanup (avoid reallocation)
Dmitry Stogov [Wed, 1 Jul 2015 11:59:58 +0000 (14:59 +0300)]
Cleanup (avoid reallocation)

9 years agoCleanup (avoid reallocation)
Dmitry Stogov [Wed, 1 Jul 2015 11:12:46 +0000 (14:12 +0300)]
Cleanup (avoid reallocation)

9 years agoCleanup (avoid reallocation).
Dmitry Stogov [Wed, 1 Jul 2015 11:08:54 +0000 (14:08 +0300)]
Cleanup (avoid reallocation).

9 years agoCleanup (avoid reallocation).
Dmitry Stogov [Wed, 1 Jul 2015 10:49:57 +0000 (13:49 +0300)]
Cleanup (avoid reallocation).

9 years agoCleanup (avoid string reallocations)
Dmitry Stogov [Wed, 1 Jul 2015 10:26:39 +0000 (13:26 +0300)]
Cleanup (avoid string reallocations)

9 years agoGet rid of ZVAL_ZVAL() macro usages. Replace them with more clear and optimal equiale...
Dmitry Stogov [Tue, 30 Jun 2015 23:05:21 +0000 (02:05 +0300)]
Get rid of ZVAL_ZVAL() macro usages. Replace them with more clear and optimal equialent sequences.

9 years agodebug_print_backtrace has a 2nd optional arg
Rasmus Lerdorf [Tue, 30 Jun 2015 16:57:30 +0000 (09:57 -0700)]
debug_print_backtrace has a 2nd optional arg

9 years agophp_uname has an optional arg
Rasmus Lerdorf [Tue, 30 Jun 2015 16:54:42 +0000 (09:54 -0700)]
php_uname has an optional arg

9 years agoMerge branch 'amortize-hash-compaction' of https://github.com/kaja47/php-src
Xinchen Hui [Tue, 30 Jun 2015 13:26:07 +0000 (21:26 +0800)]
Merge branch 'amortize-hash-compaction' of https://github.com/kaja47/php-src

9 years agoUse ZSTR_ API to access zend_string elements (this is just renaming without semantick...
Dmitry Stogov [Tue, 30 Jun 2015 10:59:27 +0000 (13:59 +0300)]
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).

9 years agoMerge branch 'PHP-5.6'
Côme Bernigaud [Tue, 30 Jun 2015 07:31:19 +0000 (09:31 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  keep LDAP_DEPRECATED in config.w32

9 years agokeep LDAP_DEPRECATED in config.w32
Anatol Belski [Mon, 29 Jun 2015 08:12:36 +0000 (10:12 +0200)]
keep LDAP_DEPRECATED in config.w32

9 years agoAdd tests for dynamic static call to instance method
Aaron Piotrowski [Tue, 30 Jun 2015 03:07:29 +0000 (22:07 -0500)]
Add tests for dynamic static call to instance method

9 years agoThrow Error on dynamic call to instance method when called statically
Aaron Piotrowski [Tue, 30 Jun 2015 01:41:08 +0000 (20:41 -0500)]
Throw Error on dynamic call to instance method when called statically

9 years agoFix test failures from previous commit
Bob Weinand [Tue, 30 Jun 2015 05:02:32 +0000 (07:02 +0200)]
Fix test failures from previous commit
(I really don't get that issue in phar... if there's a better fix, it's welcome...)

9 years agoMore PHP 7 patches (Rajendra/Abdullah)
Christopher Jones [Tue, 30 Jun 2015 03:54:40 +0000 (13:54 +1000)]
More PHP 7 patches (Rajendra/Abdullah)

9 years agoOnly call stream_flush if anything was written
Bob Weinand [Tue, 30 Jun 2015 01:49:54 +0000 (03:49 +0200)]
Only call stream_flush if anything was written
This avoids flushing in readonly mode upon close

9 years agoUse ZSTR_ API to access zend_string elements (this is just renaming without semantick...
Dmitry Stogov [Tue, 30 Jun 2015 01:05:24 +0000 (04:05 +0300)]
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).

9 years agoFix Windows compilation warnings (Senthil)
Christopher Jones [Mon, 29 Jun 2015 22:48:37 +0000 (08:48 +1000)]
Fix Windows compilation warnings (Senthil)

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Mon, 29 Jun 2015 21:55:18 +0000 (23:55 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Improved code coverage of explode function

9 years agoImproved code coverage of explode function
Edgar R. Sandi [Mon, 29 Jun 2015 20:34:57 +0000 (17:34 -0300)]
Improved code coverage of explode function

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Mon, 29 Jun 2015 21:16:50 +0000 (23:16 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Added basic and error tests for hex2bin function

9 years agoAdded basic and error tests for hex2bin function
Edgar R. Sandi [Mon, 29 Jun 2015 17:33:21 +0000 (14:33 -0300)]
Added basic and error tests for hex2bin function

9 years agorefix the negative zend_long to size_t casts
Anatol Belski [Mon, 29 Jun 2015 18:33:34 +0000 (20:33 +0200)]
refix the negative zend_long to size_t casts

There is no good way to fix this for 32-bit without enormously
overcomplicating the logic. Therefore switching back to the previous
code and adding the casts to ensure there are no sudden casts of
negative to size_t.

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Mon, 29 Jun 2015 17:26:01 +0000 (19:26 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  adding several other testing scenarios of code without coverage in stripcslashes function

9 years agoadding several other testing scenarios of code without coverage in stripcslashes...
Edgar R. Sandi [Mon, 29 Jun 2015 13:05:27 +0000 (10:05 -0300)]
adding several other testing scenarios of code without coverage in stripcslashes function

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Mon, 29 Jun 2015 16:25:30 +0000 (18:25 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  adding another testing scenario without coverage in setlocale function

9 years agoadding another testing scenario without coverage in setlocale function
Edgar R. Sandi [Mon, 29 Jun 2015 12:50:27 +0000 (09:50 -0300)]
adding another testing scenario without coverage in setlocale function

9 years agoMerge branch 'PHP-5.6'
Dmitry Stogov [Mon, 29 Jun 2015 15:14:14 +0000 (18:14 +0300)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  On Windows PHP may be restarted with different set of DSO extensions without SHM reset. This may make optimisation for entities from DSO extensions inconsistent.
  Putting back deprecated symbols for ldap_sort
  Removed deprecated function calls from ldap module
  Removed ifdefs of LDAP_API_FEATURE_X_OPENLDAP, fixed a warning

9 years agoOn Windows PHP may be restarted with different set of DSO extensions without SHM...
Dmitry Stogov [Mon, 29 Jun 2015 14:45:56 +0000 (17:45 +0300)]
On Windows PHP may be restarted with different set of DSO extensions without SHM reset.
This may make optimisation for entities from DSO extensions inconsistent.

9 years agoOn Windows PHP may be restarted with different set of DSO extensions without SHM...
Dmitry Stogov [Mon, 29 Jun 2015 14:45:56 +0000 (17:45 +0300)]
On Windows PHP may be restarted with different set of DSO extensions without SHM reset.
This may make optimisation for entities from DSO extensions inconsistent.

9 years agoUPGRADING typos/wording
jrchamp [Mon, 29 Jun 2015 13:54:56 +0000 (09:54 -0400)]
UPGRADING typos/wording

9 years agoImproved zend_string API (Francois Laupretre)
Dmitry Stogov [Mon, 29 Jun 2015 13:44:54 +0000 (16:44 +0300)]
Improved zend_string API (Francois Laupretre)

Squashed commit of the following:

commit d96eab8d79b75ac83d49d49ae4665f948d15a804
Author: Francois Laupretre <francois@tekwire.net>
Date:   Fri Jun 26 01:23:31 2015 +0200

    Use the new 'ZSTR' macros in the rest of the code.

    Does not change anything to the generated code (thanks to compat macros) but cleaner.

commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8
Author: Francois Laupretre <francois@tekwire.net>
Date:   Thu Jun 25 13:45:06 2015 +0200

    Improve zend_string API

    Add missing methods

9 years agoDeprecating ldap_sort the right way
Côme Bernigaud [Mon, 29 Jun 2015 12:31:20 +0000 (14:31 +0200)]
Deprecating ldap_sort the right way

9 years agoRestored old behavior
Dmitry Stogov [Mon, 29 Jun 2015 11:10:46 +0000 (14:10 +0300)]
Restored old behavior

9 years agofix more places with subtle negative zend_long to size_t cast
Anatol Belski [Mon, 29 Jun 2015 09:35:36 +0000 (11:35 +0200)]
fix more places with subtle negative zend_long to size_t cast

9 years agoremove useless check
Anatol Belski [Mon, 29 Jun 2015 09:24:11 +0000 (11:24 +0200)]
remove useless check

thanks Yasuo :)

9 years agoremove comment
Anatol Belski [Mon, 29 Jun 2015 08:56:51 +0000 (10:56 +0200)]
remove comment

f and l are the $start and $length, since they come from the user
land, they only can be zend_long

9 years agoRevert "Fixed last previously broken tests"
Dmitry Stogov [Mon, 29 Jun 2015 10:05:14 +0000 (13:05 +0300)]
Revert "Fixed last previously broken tests"

This reverts commit 79b1832dd5086cd9b4a2e778a62f1743b548726c.

9 years agoPrevent attempts of compile-time evaluation of invalid operators (e.g. division/modul...
Dmitry Stogov [Mon, 29 Jun 2015 09:58:07 +0000 (12:58 +0300)]
Prevent attempts of compile-time evaluation of invalid operators (e.g. division/modulo by zero and shift by negative number)

9 years agoReverted wrong fb08798c9f0ea820d567668d0cea4833dc61dd8e
Dmitry Stogov [Mon, 29 Jun 2015 09:20:09 +0000 (12:20 +0300)]
Reverted wrong fb08798c9f0ea820d567668d0cea4833dc61dd8e

9 years agoFixes ldap_sort-tests
Andreas Heigl [Mon, 29 Jun 2015 08:18:44 +0000 (10:18 +0200)]
Fixes ldap_sort-tests

Thanks to Côme Bernigaud for fixing!

9 years agoAdds deprecation-message for ldap_sort
Andreas Heigl [Sun, 28 Jun 2015 20:42:59 +0000 (22:42 +0200)]
Adds deprecation-message for ldap_sort

9 years agoDon't evaluate invalid constant expressions.
Dmitry Stogov [Mon, 29 Jun 2015 08:35:12 +0000 (11:35 +0300)]
Don't evaluate invalid constant expressions.

9 years agofix negative zend_long to size_t cast
Anatol Belski [Mon, 29 Jun 2015 08:27:13 +0000 (10:27 +0200)]
fix negative zend_long to size_t cast

9 years agoremoved unreachable code in the substr_replace function
Edgar R. Sandi [Fri, 26 Jun 2015 14:58:04 +0000 (11:58 -0300)]
removed unreachable code in the substr_replace function

9 years agoFixed bug #69955 (Segfault when trying to combine [] and assign-op on ArrayAccess...
Dmitry Stogov [Mon, 29 Jun 2015 08:17:56 +0000 (11:17 +0300)]
Fixed bug #69955 (Segfault when trying to combine [] and assign-op on ArrayAccess object). (Laruence)

9 years agokeep LDAP_DEPRECATED in config.w32
Anatol Belski [Mon, 29 Jun 2015 08:12:36 +0000 (10:12 +0200)]
keep LDAP_DEPRECATED in config.w32

9 years agoPutting back deprecated symbols for ldap_sort
Côme Bernigaud [Mon, 29 Jun 2015 07:07:49 +0000 (09:07 +0200)]
Putting back deprecated symbols for ldap_sort

9 years agoRemoved deprecated function calls from ldap module
Côme Bernigaud [Tue, 23 Jun 2015 14:44:48 +0000 (16:44 +0200)]
Removed deprecated function calls from ldap module

ldap_search -> ldap search_ext
ldap_search_s ->_ldap_search_ext_s
ldap_add_s -> ldap_add_ext_s
ldap_delete_s -> ldap_delete_ext_s
ldap_compare_s -> ldap_compare_ext_s
ldap_value_free -> ldap_memvfree

Only thing left is ldap_sort_entries, no replacement

Conflicts:
ext/ldap/ldap.c