]> granicus.if.org Git - php/log
php
9 years agoMerge branch 'master' of https://git.php.net/push/php-src
Kalle Sommer Nielsen [Tue, 7 Jul 2015 10:43:58 +0000 (12:43 +0200)]
Merge branch 'master' of https://git.php.net/push/php-src

9 years agoFix x86 build
Kalle Sommer Nielsen [Tue, 7 Jul 2015 10:41:05 +0000 (12:41 +0200)]
Fix x86 build

9 years agoFixed use after free on closure_call_leak_with_exception.phpt
Xinchen Hui [Tue, 7 Jul 2015 10:19:57 +0000 (18:19 +0800)]
Fixed use after free on closure_call_leak_with_exception.phpt

9 years agoFixed test
Dmitry Stogov [Tue, 7 Jul 2015 07:14:37 +0000 (10:14 +0300)]
Fixed test

9 years agoThrow TypeError for invalid callback
Aaron Piotrowski [Mon, 6 Jul 2015 20:03:35 +0000 (15:03 -0500)]
Throw TypeError for invalid callback

Matches behavior of zend_internal_type_error() if E_ERROR is passed to
zend_wrong_callback_error().

9 years agoFix crash when exception occurs during nested rope
Nikita Popov [Mon, 6 Jul 2015 18:53:54 +0000 (20:53 +0200)]
Fix crash when exception occurs during nested rope

Adds extra condition that the rope var of INIT/ADD must match the
one one END.

9 years agoFix crash when exception is thrown during ROPE_END
Nikita Popov [Mon, 6 Jul 2015 18:12:07 +0000 (20:12 +0200)]
Fix crash when exception is thrown during ROPE_END

The CHECK_EXCEPTION() was done at a point where the old opline is
still used, thus redirecting the write to the result var into
EX(call) instead.

Handling the exception in-place to avoid leaking result.

9 years agoSmall cleanup in ternary compilation
Nikita Popov [Mon, 6 Jul 2015 15:41:29 +0000 (17:41 +0200)]
Small cleanup in ternary compilation

9 years agomove the define to the right place
Anatol Belski [Mon, 6 Jul 2015 17:43:35 +0000 (19:43 +0200)]
move the define to the right place

thanks Kalle )

9 years agofix ext/ldap build
Anatol Belski [Mon, 6 Jul 2015 17:35:29 +0000 (19:35 +0200)]
fix ext/ldap build

9 years agoRectify information about invalid shift warning being now ArithmeticError
Bob Weinand [Mon, 6 Jul 2015 16:09:36 +0000 (18:09 +0200)]
Rectify information about invalid shift warning being now ArithmeticError

9 years agoDo not display EXT_TYPE_UNUSED in phpdbg opcodes
Bob Weinand [Mon, 6 Jul 2015 16:05:03 +0000 (18:05 +0200)]
Do not display EXT_TYPE_UNUSED in phpdbg opcodes

9 years agoRun debug build with opcache on travis
Bob Weinand [Mon, 6 Jul 2015 15:41:06 +0000 (17:41 +0200)]
Run debug build with opcache on travis

9 years agoSimplify TMP var number decoding (without HashTable)
Dmitry Stogov [Mon, 6 Jul 2015 14:56:48 +0000 (17:56 +0300)]
Simplify TMP var number decoding (without HashTable)

9 years agoAvoid dangerous optimization
Dmitry Stogov [Mon, 6 Jul 2015 13:52:38 +0000 (16:52 +0300)]
Avoid dangerous optimization

9 years agoFixed JMPZNZ instruction printing
Dmitry Stogov [Mon, 6 Jul 2015 13:30:50 +0000 (16:30 +0300)]
Fixed JMPZNZ instruction printing

9 years agoMerge branch 'PHP-5.6'
Côme Bernigaud [Mon, 6 Jul 2015 12:56:20 +0000 (14:56 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Attempt at falling back on ldap_find_control for Mac OS

9 years agoAttempt at falling back on ldap_find_control for Mac OS
Côme Bernigaud [Mon, 6 Jul 2015 12:54:04 +0000 (14:54 +0200)]
Attempt at falling back on ldap_find_control for Mac OS

9 years agoMerge branch 'PHP-5.6'
Côme Bernigaud [Mon, 6 Jul 2015 12:28:01 +0000 (14:28 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Updated README, added test to create LDAP base if missing and ease tests

9 years agoupdate NEWS about #69900
Anatol Belski [Mon, 6 Jul 2015 12:27:17 +0000 (14:27 +0200)]
update NEWS about #69900

backport for 5.6 to go

9 years agoUpdated README, added test to create LDAP base if missing and ease tests
Côme Bernigaud [Mon, 6 Jul 2015 12:26:49 +0000 (14:26 +0200)]
Updated README, added test to create LDAP base if missing and ease tests

9 years agoFixed test (shift operators throw Error)
Dmitry Stogov [Mon, 6 Jul 2015 09:28:14 +0000 (12:28 +0300)]
Fixed test (shift operators throw Error)

9 years agoFixed return value
Dmitry Stogov [Mon, 6 Jul 2015 08:25:19 +0000 (11:25 +0300)]
Fixed return value

9 years agoMerge branch 'signed_char' of https://github.com/antonblanchard/php-src
Xinchen Hui [Mon, 6 Jul 2015 07:36:55 +0000 (15:36 +0800)]
Merge branch 'signed_char' of https://github.com/antonblanchard/php-src

9 years agoReorder the conditions
Xinchen Hui [Mon, 6 Jul 2015 07:24:51 +0000 (15:24 +0800)]
Reorder the conditions

9 years agoFixed segfault while with generating ext info
Xinchen Hui [Mon, 6 Jul 2015 07:22:40 +0000 (15:22 +0800)]
Fixed segfault while with generating ext info

9 years agohttp parser code assumes char is signed
Anton Blanchard [Sun, 5 Jul 2015 23:41:09 +0000 (09:41 +1000)]
http parser code assumes char is signed

A char can be either signed or unsigned, and on PowerPC and ARM it is
unsigned. The following code will always be false on these architectures:

        if (c == -1) goto error;

9 years agobring back the division by zero warning
Anatol Belski [Sun, 5 Jul 2015 18:18:17 +0000 (20:18 +0200)]
bring back the division by zero warning

9 years agoMerge branch 'pull-request/1368'
Stanislav Malyshev [Sun, 5 Jul 2015 08:24:35 +0000 (01:24 -0700)]
Merge branch 'pull-request/1368'

* pull-request/1368:
  moved function warning test to money_format_error.phpt file

9 years agoMerge branch 'PHP-5.6'
Stanislav Malyshev [Sun, 5 Jul 2015 08:10:29 +0000 (01:10 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Cleaned white spaces in PHP_INI definition of phar

9 years agoCleaned white spaces in PHP_INI definition of phar
Dominic [Fri, 19 Jun 2015 10:31:03 +0000 (12:31 +0200)]
Cleaned white spaces in PHP_INI definition of phar

Removes unnecessary white spaces.

9 years agoMerge branch 'pull-request/1351'
Stanislav Malyshev [Sun, 5 Jul 2015 08:04:22 +0000 (01:04 -0700)]
Merge branch 'pull-request/1351'

* pull-request/1351:
  Cleaned white spaces in PHP_INI definition of phar

9 years agoMerge branch 'PHP-5.6'
Stanislav Malyshev [Sun, 5 Jul 2015 08:01:27 +0000 (01:01 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  fix typo, see #68476

9 years agoMerge branch 'pull-request/1324' into PHP-5.6
Stanislav Malyshev [Sun, 5 Jul 2015 08:01:00 +0000 (01:01 -0700)]
Merge branch 'pull-request/1324' into PHP-5.6

* pull-request/1324:
  fix typo, see #68476

9 years agoFix use after free with opcache (interned strings)
Bob Weinand [Sun, 5 Jul 2015 00:00:38 +0000 (02:00 +0200)]
Fix use after free with opcache (interned strings)

9 years agoThis macro check is not needed (Anatol)
Kalle Sommer Nielsen [Sat, 4 Jul 2015 19:21:15 +0000 (21:21 +0200)]
This macro check is not needed (Anatol)

9 years agoReplace references to PHP_WIN32 and TSRM_WIN32 with ZEND_WIN32 in Zend/, this also...
Kalle Sommer Nielsen [Sat, 4 Jul 2015 16:55:22 +0000 (18:55 +0200)]
Replace references to PHP_WIN32 and TSRM_WIN32 with ZEND_WIN32 in Zend/, this also fixes 1 instance of where fflush(stderr) was misplaced (zend_extensions.c)

9 years agoFixed bug #69983 (get_browser fails with user agent of null)
Xinchen Hui [Sat, 4 Jul 2015 03:05:50 +0000 (11:05 +0800)]
Fixed bug #69983 (get_browser fails with user agent of null)

9 years agoSwitch code on thrown Errors to 0, update related tests
Aaron Piotrowski [Fri, 3 Jul 2015 22:28:11 +0000 (17:28 -0500)]
Switch code on thrown Errors to 0, update related tests

9 years agoRemove E_EXCEPTION
Aaron Piotrowski [Fri, 3 Jul 2015 21:47:16 +0000 (16:47 -0500)]
Remove E_EXCEPTION

9 years agoSwitch macro with __VA_ARGS__ to function
Aaron Piotrowski [Fri, 3 Jul 2015 21:21:02 +0000 (16:21 -0500)]
Switch macro with __VA_ARGS__ to function

9 years agoRemove need to pass error level
Aaron Piotrowski [Fri, 3 Jul 2015 21:04:33 +0000 (16:04 -0500)]
Remove need to pass error level

9 years agoEnable throwing custom exceptions from errors
Aaron Piotrowski [Fri, 3 Jul 2015 18:41:17 +0000 (13:41 -0500)]
Enable throwing custom exceptions from errors

9 years agoAlways report object leaks
Nikita Popov [Fri, 3 Jul 2015 16:32:09 +0000 (18:32 +0200)]
Always report object leaks

Previously cycles were excluded from leak reports, however the
situation here has improved a lot in the meantime and we can
report all leaks.

9 years agoDon't leak generator cycle in ReflectionGenerator test
Nikita Popov [Fri, 3 Jul 2015 16:38:12 +0000 (18:38 +0200)]
Don't leak generator cycle in ReflectionGenerator test

This is tracked by bug #69989.

9 years agoSwitch position of ce in exception ce variable names
Aaron Piotrowski [Fri, 3 Jul 2015 14:45:03 +0000 (09:45 -0500)]
Switch position of ce in exception ce variable names

9 years agoChange zend_exception_get_default() to zend_exception_ce
Aaron Piotrowski [Fri, 3 Jul 2015 14:44:48 +0000 (09:44 -0500)]
Change zend_exception_get_default() to zend_exception_ce

9 years agoCleanup exception ce API
Aaron Piotrowski [Fri, 3 Jul 2015 01:57:53 +0000 (20:57 -0500)]
Cleanup exception ce API

Removed recently added functions to get Error ce's and marked the old functions
fetching default_exception_ce and error_exception_ce as deprecated.

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