]> granicus.if.org Git - php/log
php
9 years agoMerge branch 'PHP-5.6'
Anatol Belski [Fri, 3 Jul 2015 14:22:01 +0000 (16:22 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  fix backport mistake

9 years agofix backport mistake
Anatol Belski [Fri, 3 Jul 2015 14:21:02 +0000 (16:21 +0200)]
fix backport mistake

in 5.6 it has to be explicitly copied to avoid double free

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Fri, 3 Jul 2015 11:32:05 +0000 (13:32 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  fixed fix #69975 wrt. ODBCVER < 0x0300

9 years agofixed fix #69975 wrt. ODBCVER < 0x0300
Christoph M. Becker [Fri, 3 Jul 2015 11:30:39 +0000 (13:30 +0200)]
fixed fix #69975 wrt. ODBCVER < 0x0300

9 years agoimprove info about the applink
Anatol Belski [Fri, 3 Jul 2015 10:45:59 +0000 (12:45 +0200)]
improve info about the applink

9 years agoadded openssl applink shim note to UPGRADING.INTERNALS
Anatol Belski [Fri, 3 Jul 2015 10:40:18 +0000 (12:40 +0200)]
added openssl applink shim note to UPGRADING.INTERNALS

9 years agoadd missing item in the content table
Anatol Belski [Fri, 3 Jul 2015 09:46:30 +0000 (11:46 +0200)]
add missing item in the content table

9 years agoMerge branch 'PHP-5.6'
Anatol Belski [Fri, 3 Jul 2015 09:17:16 +0000 (11:17 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  backport c01943bffc8b719e552d307f522820d50f783a4c into 5.6

9 years agobackport c01943bffc8b719e552d307f522820d50f783a4c into 5.6
Anatol Belski [Fri, 3 Jul 2015 09:16:02 +0000 (11:16 +0200)]
backport c01943bffc8b719e552d307f522820d50f783a4c into 5.6

9 years agofix improper behavior
Anatol Belski [Fri, 3 Jul 2015 08:15:52 +0000 (10:15 +0200)]
fix improper behavior

openssl_spki_export() is documented to return string, but it's
obviously not achieved writing it to stdout :)

9 years agointegrate the applink shim in the other bins
Anatol Belski [Fri, 3 Jul 2015 05:10:46 +0000 (07:10 +0200)]
integrate the applink shim in the other bins

9 years agointegrate the openssl applink shim
Anatol Belski [Thu, 2 Jul 2015 17:49:40 +0000 (19:49 +0200)]
integrate the openssl applink shim

This fixes ext/openssl/tests/openssl_spki_export.phpt failing
with the no OPENSSL_Applink error. Applink is also an interesting
technique documented in the OpenSSL FAQ
https://www.openssl.org/support/faq.html#PROG2
which allows under circumstances using different OpenSSL binaries
than those a program was linked with.

9 years agoCatch the specifical exception
Xinchen Hui [Fri, 3 Jul 2015 03:18:53 +0000 (11:18 +0800)]
Catch the specifical exception

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Fri, 3 Jul 2015 01:12:09 +0000 (03:12 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Added more tests to improve function coverage

9 years agoAdded more tests to improve function coverage
Edgar R. Sandi [Tue, 30 Jun 2015 01:02:19 +0000 (22:02 -0300)]
Added more tests to improve function coverage

9 years agoAllow integer default for float type
Aaron Piotrowski [Thu, 2 Jul 2015 22:46:51 +0000 (17:46 -0500)]
Allow integer default for float type

9 years agoupdated NEWS
Christoph M. Becker [Thu, 2 Jul 2015 22:29:44 +0000 (00:29 +0200)]
updated NEWS

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Thu, 2 Jul 2015 22:25:03 +0000 (00:25 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated NEWS
  Fix #69975: PHP segfaults when accessing nvarchar(max) defined columns

9 years agoupdated NEWS
Christoph M. Becker [Thu, 2 Jul 2015 22:23:44 +0000 (00:23 +0200)]
updated NEWS

9 years agoFix #69975: PHP segfaults when accessing nvarchar(max) defined columns
Christoph M. Becker [Thu, 2 Jul 2015 22:04:50 +0000 (00:04 +0200)]
Fix #69975: PHP segfaults when accessing nvarchar(max) defined columns

The SQL Server Native Client 11.0 and maybe other ODBC drivers report
NVARCHAR(MAX) columns as SQL_WVARCHAR with size 0. This causes too small a
buffer to be emalloc'd, likely causing a segfault in the following. As we don't
know the real size of the column data, we treat such colums as
SQL_WLONGVARCHAR.

The related bug #67437 suggests that some drivers report a size of ~4GB. It is
not certain that this is really the case (there might be some integer overflow
involved, and anyway, there has been no feedback), so we do not cater for this
now. However, it would not be hard to treat all sizes above a certain threshold
in a similar way, i.e. as SQL_WLONGVARCHAR.

9 years agoUpdate NEWS for bug #69957
Bob Weinand [Thu, 2 Jul 2015 19:19:26 +0000 (21:19 +0200)]
Update NEWS for bug #69957

9 years agoCorrect type hint name for booleans in method signatures
Niklas Keller [Thu, 2 Jul 2015 18:34:49 +0000 (20:34 +0200)]
Correct type hint name for booleans in method signatures

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