]> granicus.if.org Git - php/log
php
9 years agoFix #70112 RFE Allow dirname to go up various times
Remi Collet [Sat, 25 Jul 2015 14:58:36 +0000 (16:58 +0200)]
Fix #70112 RFE Allow dirname to go up various times

9 years agoRemove -Wunused-result warnings
Bob Weinand [Mon, 27 Jul 2015 13:02:01 +0000 (15:02 +0200)]
Remove -Wunused-result warnings

9 years agoHmm, not sure why this is missed while merged
Xinchen Hui [Mon, 27 Jul 2015 03:19:58 +0000 (11:19 +0800)]
Hmm, not sure why this is missed while merged

9 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Mon, 27 Jul 2015 03:17:23 +0000 (11:17 +0800)]
Merge branch 'master' of git.php.net:php-src

9 years agoFixed bug #70140 (str_ireplace/php_string_tolower - Arbitrary Code Execution)
Xinchen Hui [Mon, 27 Jul 2015 03:17:05 +0000 (11:17 +0800)]
Fixed bug #70140 (str_ireplace/php_string_tolower - Arbitrary Code Execution)

9 years agoFix infinite lexer loop for :\ sequence in phpdbg
Bob Weinand [Sun, 26 Jul 2015 20:57:12 +0000 (22:57 +0200)]
Fix infinite lexer loop for :\ sequence in phpdbg

9 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Sun, 26 Jul 2015 20:07:07 +0000 (22:07 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  make the travis irc notification a oneliner

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Ferenc Kovacs [Sun, 26 Jul 2015 20:06:51 +0000 (22:06 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  make the travis irc notification a oneliner

9 years agomake the travis irc notification a oneliner
Ferenc Kovacs [Sun, 26 Jul 2015 20:06:26 +0000 (22:06 +0200)]
make the travis irc notification a oneliner

9 years agoFix bug #70138 (difference between gcc and clang)
Bob Weinand [Sun, 26 Jul 2015 19:49:11 +0000 (21:49 +0200)]
Fix bug #70138 (difference between gcc and clang)

9 years agoFix leaks from bug #70138
Bob Weinand [Sun, 26 Jul 2015 16:11:45 +0000 (18:11 +0200)]
Fix leaks from bug #70138

9 years agoFix RECV_VARIADIC literal compacting wrt cache slot
Nikita Popov [Sun, 26 Jul 2015 19:22:31 +0000 (21:22 +0200)]
Fix RECV_VARIADIC literal compacting wrt cache slot

9 years agoexclude the platform diff case from the test
Anatol Belski [Sun, 26 Jul 2015 18:31:32 +0000 (20:31 +0200)]
exclude the platform diff case from the test

Say the string is \377\000, basename will use mbrlen() to check whether
it's a start of a multibyte sequence. While on Linux it'll return -1 for
any char in the extended ASCII, on Windows it's returning 1. From what I
see the reason is that Windows doesn't implement UTF-8 in the CRT lib,
it's rather 16-bit Unicode or DBCS. Since extended ASCII is convertable
to Unicode directly - thus the behavior. On Linux however, it's a true
UTF-8 locale and implementation, for it \377\000 is invalid.

Maybe mbrlen needs an independent implementation for Windows supporting
UTF-8. For now I just split out this case so the most of the big basename
test doesn't fail on this one case.

9 years agoadd NULL check
Anatol Belski [Sat, 25 Jul 2015 18:05:58 +0000 (20:05 +0200)]
add NULL check

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Sun, 26 Jul 2015 15:35:23 +0000 (17:35 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  allow to skip slow tests

9 years agoallow to skip slow tests
Christoph M. Becker [Sun, 26 Jul 2015 15:33:09 +0000 (17:33 +0200)]
allow to skip slow tests

9 years agouse the new php7 compatible pear installer
Ferenc Kovacs [Sun, 26 Jul 2015 12:17:32 +0000 (14:17 +0200)]
use the new php7 compatible pear installer

9 years agoFixed Bug #70092 pg_field_type() is too slow
Yasuo Ohgaki [Sat, 25 Jul 2015 20:29:06 +0000 (05:29 +0900)]
Fixed Bug #70092 pg_field_type() is too slow

10 years agoJust always copy the buffer, that makes it much safer
Bob Weinand [Sat, 25 Jul 2015 17:50:31 +0000 (19:50 +0200)]
Just always copy the buffer, that makes it much safer
At least compared to conditionally using the mmap()ped input

10 years agoRemove old unused header file
Bob Weinand [Fri, 24 Jul 2015 23:35:29 +0000 (01:35 +0200)]
Remove old unused header file

10 years agoFix memory leak with opcache
Bob Weinand [Fri, 24 Jul 2015 23:08:57 +0000 (01:08 +0200)]
Fix memory leak with opcache

10 years agoFix op_arrays with opcache
Bob Weinand [Fri, 24 Jul 2015 22:31:05 +0000 (00:31 +0200)]
Fix op_arrays with opcache

10 years agoFix print of ZEND_CATCH
Bob Weinand [Fri, 24 Jul 2015 21:40:02 +0000 (23:40 +0200)]
Fix print of ZEND_CATCH

10 years agoRevert "avoid pointer truncation"
Anatol Belski [Fri, 24 Jul 2015 20:29:45 +0000 (22:29 +0200)]
Revert "avoid pointer truncation"

This reverts commit 5334d53499b2d7f2a3281f5fbc6b0963ae61aaad.

10 years agoFully fix typed generator returns
Bob Weinand [Fri, 24 Jul 2015 20:03:05 +0000 (22:03 +0200)]
Fully fix typed generator returns

10 years agofix printf format
Anatol Belski [Fri, 24 Jul 2015 19:45:36 +0000 (21:45 +0200)]
fix printf format

10 years agoavoid pointer truncation
Anatol Belski [Fri, 24 Jul 2015 19:30:53 +0000 (21:30 +0200)]
avoid pointer truncation

10 years agofix scope
Anatol Belski [Fri, 24 Jul 2015 19:28:40 +0000 (21:28 +0200)]
fix scope

10 years agoFix bug using not set temporary with typed generator returns
Bob Weinand [Fri, 24 Jul 2015 18:30:32 +0000 (20:30 +0200)]
Fix bug using not set temporary with typed generator returns

10 years agoupdate libs_version.txt
Anatol Belski [Fri, 24 Jul 2015 18:18:58 +0000 (20:18 +0200)]
update libs_version.txt

10 years agoMerge branch 'PHP-5.6'
Anatol Belski [Fri, 24 Jul 2015 18:24:12 +0000 (20:24 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated libs_versions.txt

10 years agoupdated libs_versions.txt
Anatol Belski [Fri, 24 Jul 2015 18:23:07 +0000 (20:23 +0200)]
updated libs_versions.txt

10 years agoFix non-debug build
Bob Weinand [Fri, 24 Jul 2015 15:51:46 +0000 (17:51 +0200)]
Fix non-debug build

10 years agoUse relative paths in phpdbg_lexer.c
Bob Weinand [Fri, 24 Jul 2015 15:33:45 +0000 (17:33 +0200)]
Use relative paths in phpdbg_lexer.c

10 years agoCleanup shutdown, enable proper memory leak displaying
Bob Weinand [Fri, 24 Jul 2015 15:17:09 +0000 (17:17 +0200)]
Cleanup shutdown, enable proper memory leak displaying
phpdbg should not memory leak...

10 years agofix libwebp namings
Anatol Belski [Fri, 24 Jul 2015 15:06:01 +0000 (17:06 +0200)]
fix libwebp namings

10 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Fri, 24 Jul 2015 08:13:07 +0000 (16:13 +0800)]
Merge branch 'master' of git.php.net:php-src

10 years agoFixed bug #70124 (null ptr deref / seg fault in ZEND_HANDLE_EXCEPTION)
Xinchen Hui [Fri, 24 Jul 2015 07:49:01 +0000 (15:49 +0800)]
Fixed bug #70124 (null ptr deref / seg fault in ZEND_HANDLE_EXCEPTION)

10 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Thu, 23 Jul 2015 23:25:45 +0000 (01:25 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  added regression test for bug #55472, which has already been fixed as of PHP 5.5.0

10 years agoadded regression test for bug #55472, which has already been fixed as of PHP
Christoph M. Becker [Thu, 23 Jul 2015 23:23:33 +0000 (01:23 +0200)]
added regression test for bug #55472, which has already been fixed as of PHP
5.5.0

10 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Thu, 23 Jul 2015 19:43:40 +0000 (21:43 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix #53854: Missing constants for compression type

10 years agoFix #53854: Missing constants for compression type
Christoph M. Becker [Thu, 23 Jul 2015 19:31:58 +0000 (21:31 +0200)]
Fix #53854: Missing constants for compression type

The constants have already been added long ago. This patch just adds a PHPT
which checks the recognition of the respective compression methods.
Unfortunately, I've not been able to assemble a zip with all compression
methods.

10 years agoupdated NEWS
Christoph M. Becker [Thu, 23 Jul 2015 16:46:00 +0000 (18:46 +0200)]
updated NEWS

10 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Thu, 23 Jul 2015 16:40:54 +0000 (18:40 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix #70052: getimagesize() fails for very large and very small WBMP

Conflicts:
ext/standard/image.c

10 years agoupdated NEWS
Christoph M. Becker [Thu, 23 Jul 2015 16:37:07 +0000 (18:37 +0200)]
updated NEWS

10 years agoFix #70052: getimagesize() fails for very large and very small WBMP
Christoph M. Becker [Thu, 23 Jul 2015 16:13:47 +0000 (18:13 +0200)]
Fix #70052: getimagesize() fails for very large and very small WBMP

Very large WBMP (width or height greater than 2**31-1) cause an overflow and
circumvent the size limitation of 2048x2048 px. Very small WBMP (less than 12
bytes) cause a read error and are not recognized. This patch fixes both bugs.

10 years agoenable ext/gd to support libpng16
Anatol Belski [Thu, 23 Jul 2015 14:09:35 +0000 (16:09 +0200)]
enable ext/gd to support libpng16

10 years agoFix build failure for non-osx *nixes
Bob Weinand [Thu, 23 Jul 2015 12:55:13 +0000 (14:55 +0200)]
Fix build failure for non-osx *nixes

10 years agoFix valgrind warning with sigaction
Bob Weinand [Thu, 23 Jul 2015 12:26:50 +0000 (14:26 +0200)]
Fix valgrind warning with sigaction

10 years agoFix printf format issues on 32 bit
Bob Weinand [Thu, 23 Jul 2015 12:23:24 +0000 (14:23 +0200)]
Fix printf format issues on 32 bit

10 years agoMerge branch 'PHP-5.6'
Anatol Belski [Thu, 23 Jul 2015 05:43:33 +0000 (07:43 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  fix config.w32
  fix C99 compat
  Align CVE format for #69669
  Fix 69882 entry

10 years agofix config.w32
Anatol Belski [Thu, 23 Jul 2015 05:34:31 +0000 (07:34 +0200)]
fix config.w32

10 years agofix C99 compat
Anatol Belski [Thu, 23 Jul 2015 05:31:54 +0000 (07:31 +0200)]
fix C99 compat

10 years agocleanup
Xinchen Hui [Thu, 23 Jul 2015 04:16:22 +0000 (12:16 +0800)]
cleanup

10 years agoMake IS_TMP_VAR and IS_VAR differentiable
Xinchen Hui [Thu, 23 Jul 2015 03:36:46 +0000 (11:36 +0800)]
Make IS_TMP_VAR and IS_VAR differentiable

10 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Thu, 23 Jul 2015 03:18:50 +0000 (11:18 +0800)]
Merge branch 'master' of git.php.net:php-src

10 years agoFixed bug #70117 (Unexpected return type error)
Xinchen Hui [Thu, 23 Jul 2015 03:16:10 +0000 (11:16 +0800)]
Fixed bug #70117 (Unexpected return type error)

10 years agoFix phpdbg test failure and crash with opcache
Bob Weinand [Wed, 22 Jul 2015 23:03:03 +0000 (01:03 +0200)]
Fix phpdbg test failure and crash with opcache

10 years agoOpcache is assuming that op_arrays without refcount are always efree()d
Bob Weinand [Wed, 22 Jul 2015 21:16:50 +0000 (23:16 +0200)]
Opcache is assuming that op_arrays without refcount are always efree()d
We maybe should search for some other way, because just not refcounting the op_array is rather a dirty hack.
If possible, we should change opcache and just expect op_array->refcount != NULL ... but I have not found a clean way yet.

10 years agoAlign CVE format for #69669
Lior Kaplan [Wed, 22 Jul 2015 17:35:31 +0000 (20:35 +0300)]
Align CVE format for #69669

10 years agoFix 69882 entry
Lior Kaplan [Wed, 22 Jul 2015 17:34:31 +0000 (20:34 +0300)]
Fix 69882 entry

10 years agoAdd phpdbg_get_executable() (gets executable ops/lines)
Bob Weinand [Wed, 22 Jul 2015 16:11:35 +0000 (18:11 +0200)]
Add phpdbg_get_executable() (gets executable ops/lines)

10 years agoWe cannot safely assume that all op array will be refcount 0 after execution
Bob Weinand [Wed, 22 Jul 2015 15:15:09 +0000 (17:15 +0200)]
We cannot safely assume that all op array will be refcount 0 after execution
Some extensions may want to analyze or re-run the op array later

10 years agoFixed bug #70111 (Segfault when a function uses both an explicit return type and...
Xinchen Hui [Wed, 22 Jul 2015 14:43:30 +0000 (22:43 +0800)]
Fixed bug #70111 (Segfault when a function uses both an explicit return type and an explicit cast)

10 years agoAlways lowercase function names for lookup in phpdbg -p
Bob Weinand [Wed, 22 Jul 2015 13:33:44 +0000 (15:33 +0200)]
Always lowercase function names for lookup in phpdbg -p

10 years agoFix opcode tests which may generate FCALL instead of ICALL
Bob Weinand [Wed, 22 Jul 2015 11:49:28 +0000 (13:49 +0200)]
Fix opcode tests which may generate FCALL instead of ICALL

10 years agoAdd -e (ZEND_EXT_* generation) option to phpdbg
Bob Weinand [Wed, 22 Jul 2015 11:46:06 +0000 (13:46 +0200)]
Add -e (ZEND_EXT_* generation) option to phpdbg

10 years agoEmit EXT_STMT for each statement
Nikita Popov [Wed, 22 Jul 2015 11:12:54 +0000 (13:12 +0200)]
Emit EXT_STMT for each statement

I'm excluding unticked statements for this (in 5.x they were included)
as this would just result in two consecutive EXT_STMTs.

Also add all class statements to unticked statements, these would
generate superfluous EXT_STMT/TICKS in the parent op_array.

10 years agoFixed opcodes printing.
Xinchen Hui [Wed, 22 Jul 2015 11:13:26 +0000 (19:13 +0800)]
Fixed opcodes printing.

-p"function"
-p"class::"
-p"class::method"

10 years agoMerge branch 'PHP-5.6'
Julien Pauli [Wed, 22 Jul 2015 07:28:59 +0000 (09:28 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  5.6.13 now

Conflicts:
configure.in
main/php_version.h

10 years ago5.6.13 now
Julien Pauli [Wed, 22 Jul 2015 07:27:49 +0000 (09:27 +0200)]
5.6.13 now

10 years ago$argv and $argc may be IS_INDIRECT
Bob Weinand [Tue, 21 Jul 2015 22:22:39 +0000 (00:22 +0200)]
$argv and $argc may be IS_INDIRECT

10 years agoUndefined values may lead to big allocation
Bob Weinand [Tue, 21 Jul 2015 22:02:40 +0000 (00:02 +0200)]
Undefined values may lead to big allocation

10 years agoRemove FAST_CALL_FROM_CATCH
Nikita Popov [Tue, 21 Jul 2015 16:06:19 +0000 (18:06 +0200)]
Remove FAST_CALL_FROM_CATCH

This was generated for a return from a try block with both a catch
and a finally. However at this point no exception can be active,
because it either didn't exist in the first place or was explicitly
discarded using DISCARD_EXCEPTION.

10 years agoFix bug #70106 (Inheritance by anonymous class)
Bob Weinand [Tue, 21 Jul 2015 18:34:06 +0000 (20:34 +0200)]
Fix bug #70106 (Inheritance by anonymous class)

10 years agoAdd an option to not generate INIT_FCALL ops for user functions too
Bob Weinand [Tue, 21 Jul 2015 14:39:22 +0000 (16:39 +0200)]
Add an option to not generate INIT_FCALL ops for user functions too

10 years agoversion up in NEWS
Anatol Belski [Tue, 21 Jul 2015 14:37:43 +0000 (16:37 +0200)]
version up in NEWS

10 years agoremove BOM from NEWS
Anatol Belski [Tue, 21 Jul 2015 14:36:36 +0000 (16:36 +0200)]
remove BOM from NEWS

10 years agoReverted ad4533fdbabcc3e545277e30023b2fdce16297a0
Anatol Belski [Tue, 21 Jul 2015 09:18:36 +0000 (11:18 +0200)]
Reverted ad4533fdbabcc3e545277e30023b2fdce16297a0

The E_ERROR to E_RECOVERABLE_ERROR should be readded with the
proper tests.

10 years agoupdate UPGRADING
Anatol Belski [Tue, 21 Jul 2015 09:12:08 +0000 (11:12 +0200)]
update UPGRADING

10 years agoupdated NEWS
Anatol Belski [Tue, 21 Jul 2015 08:42:06 +0000 (10:42 +0200)]
updated NEWS

10 years agofix comment
Anatol Belski [Sat, 18 Jul 2015 16:28:42 +0000 (18:28 +0200)]
fix comment

10 years agolibwebp support for linux
Anatol Belski [Sat, 18 Jul 2015 16:12:01 +0000 (09:12 -0700)]
libwebp support for linux

10 years agoReplaced libvpx by libwebp (first draft; Windows only)
Christoph M. Becker [Mon, 13 Jul 2015 22:29:05 +0000 (00:29 +0200)]
Replaced libvpx by libwebp (first draft; Windows only)

ext/gd/libgd/gd_webp.c has been taken from libgd[1]. Mainly, gd_error(X) has
been subsituted by zend_error(E_ERROR, X) and BGD_DECLARE(X) by X. Further
modifications are obvious from the diff.

All GD tests are passing, what raises hope, but we need more WebP tests,
anyway.

[1] <https://github.com/libgd/libgd/blob/7ec030c4f1dae75ed5d82c3eed2abe6775742c75/src/gd_webp.c>

10 years agoupdate news with bug #70022
Anatol Belski [Tue, 21 Jul 2015 07:22:45 +0000 (09:22 +0200)]
update news with bug #70022

10 years agoChange E_ERROR and some E_WARNING to E_RECOVERABLE_ERROR.
Yasuo Ohgaki [Tue, 21 Jul 2015 03:59:23 +0000 (12:59 +0900)]
Change E_ERROR and some E_WARNING to E_RECOVERABLE_ERROR.

10 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Tue, 21 Jul 2015 00:00:16 +0000 (02:00 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Add tests for json_last_error()/json_last_error_msg() failures

10 years agoAdd tests for json_last_error()/json_last_error_msg() failures
Kubo2 [Mon, 20 Jul 2015 11:05:44 +0000 (13:05 +0200)]
Add tests for json_last_error()/json_last_error_msg() failures

10 years agoupdated NEWS
Christoph M. Becker [Mon, 20 Jul 2015 23:24:55 +0000 (01:24 +0200)]
updated NEWS

10 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Mon, 20 Jul 2015 23:20:02 +0000 (01:20 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated NEWS
  revised bug53156.phpt
  Fix #53156: imagerectangle problem with point ordering

10 years agoupdated NEWS
Christoph M. Becker [Mon, 20 Jul 2015 23:17:51 +0000 (01:17 +0200)]
updated NEWS

10 years agoMerge branch 'pull-request/1425' into PHP-5.6
Christoph M. Becker [Mon, 20 Jul 2015 23:13:04 +0000 (01:13 +0200)]
Merge branch 'pull-request/1425' into PHP-5.6

* pull-request/1425:
  revised bug53156.phpt
  Fix #53156: imagerectangle problem with point ordering

10 years agoExclude opcache from a few opcode related tests
Bob Weinand [Mon, 20 Jul 2015 22:06:10 +0000 (00:06 +0200)]
Exclude opcache from a few opcode related tests

10 years agoupdated NEWS
Christoph M. Becker [Mon, 20 Jul 2015 21:50:40 +0000 (23:50 +0200)]
updated NEWS

10 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Mon, 20 Jul 2015 21:44:04 +0000 (23:44 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated NEWS
  Fix #66387: Stack overflow with imagefilltoborder

10 years agoupdated NEWS
Christoph M. Becker [Mon, 20 Jul 2015 21:40:23 +0000 (23:40 +0200)]
updated NEWS

10 years agoFix #66387: Stack overflow with imagefilltoborder
Christoph M. Becker [Mon, 20 Jul 2015 21:24:55 +0000 (23:24 +0200)]
Fix #66387: Stack overflow with imagefilltoborder

The stack overflow is caused by the recursive algorithm in combination with a
very large negative coordinate passed to gdImageFillToBorder(). As there is
already a clipping for large positive coordinates to the width and height of
the image, it seems to be consequent to clip to zero also.

10 years agoFix various Windows issues (e.g. dir separators)
Bob Weinand [Mon, 20 Jul 2015 21:25:50 +0000 (23:25 +0200)]
Fix various Windows issues (e.g. dir separators)

10 years agoRemove bogus exception_save() from FETCH_CLASS
Nikita Popov [Mon, 20 Jul 2015 20:56:51 +0000 (22:56 +0200)]
Remove bogus exception_save() from FETCH_CLASS

There can't be no exception at the start of the op. Also would miss
the corresponding exception_restore().

10 years agoFix readline/libedit build
Bob Weinand [Mon, 20 Jul 2015 20:45:05 +0000 (22:45 +0200)]
Fix readline/libedit build