History log of /PHP-5.6/ (Results 276 – 300 of 63781)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
dc09f30919-Jun-2016 Christoph M. Becker

A picture is worth a thousand message digests

The bundled GD test suites makes heavy use of md5() to verify the result
of drawing operations. This leads to fragile tests (even a slight c

A picture is worth a thousand message digests

The bundled GD test suites makes heavy use of md5() to verify the result
of drawing operations. This leads to fragile tests (even a slight change
in a PNG header would cause failure, and of course there is the
possibility of collisions), and even worse, eventual test failures are
rather unrevealing.

Therefore we replace all md5() verification with a simplistic
test_image_equals_file(), which is basically a simplified port of libgd's
gdTestImageCompareToFile(), adapted to the needs of PHPTs.

In the long run better tests helpers should be introduced (see also
<http://news.php.net/php.internals/94081>), but for now this solution
is preferable over the former.

(cherry picked from commit 24f9e96792518ec2a75f26b1eb2471dd7694f2b7)

show more ...


.gitignore
ext/gd/tests/bug22544.phpt
ext/gd/tests/bug22544.png
ext/gd/tests/bug43828.phpt
ext/gd/tests/bug43828.png
ext/gd/tests/bug66005.phpt
ext/gd/tests/bug66005.png
ext/gd/tests/bug72604.phpt
ext/gd/tests/bug72604.png
ext/gd/tests/bug72913.phpt
ext/gd/tests/bug72913.png
ext/gd/tests/func.inc
ext/gd/tests/imagearc_basic.phpt
ext/gd/tests/imagearc_basic.png
ext/gd/tests/imagearc_error1.phpt
ext/gd/tests/imagearc_error1.png
ext/gd/tests/imagearc_variation1.phpt
ext/gd/tests/imagearc_variation1.png
ext/gd/tests/imagearc_variation2.phpt
ext/gd/tests/imagearc_variation2.png
ext/gd/tests/imagechar_basic.phpt
ext/gd/tests/imagechar_basic.png
ext/gd/tests/imagecharup_basic.phpt
ext/gd/tests/imagecharup_basic.png
ext/gd/tests/imagecolorallocatealpha_basic.phpt
ext/gd/tests/imagecolorallocatealpha_basic.png
ext/gd/tests/imagecolorset_basic.phpt
ext/gd/tests/imagecolorset_basic.png
ext/gd/tests/imageconvolution_basic.phpt
ext/gd/tests/imageconvolution_basic.png
ext/gd/tests/imagecreatetruecolor_basic.phpt
ext/gd/tests/imagecreatetruecolor_basic.png
ext/gd/tests/imageellipse_basic.phpt
ext/gd/tests/imageellipse_basic.png
ext/gd/tests/imagefilledarc_basic.phpt
ext/gd/tests/imagefilledarc_basic.png
ext/gd/tests/imagefilledarc_error1.phpt
ext/gd/tests/imagefilledarc_error1.png
ext/gd/tests/imagefilledarc_variation1.phpt
ext/gd/tests/imagefilledarc_variation1.png
ext/gd/tests/imagefilledarc_variation2.phpt
ext/gd/tests/imagefilledarc_variation2.png
ext/gd/tests/imagefilledellipse_basic.phpt
ext/gd/tests/imagefilledellipse_basic.png
ext/gd/tests/imagefilltoborder_basic.phpt
ext/gd/tests/imagefilltoborder_basic.png
ext/gd/tests/imagegammacorrect_basic.phpt
ext/gd/tests/imagegammacorrect_basic.png
ext/gd/tests/imagegammacorrect_variation1.phpt
ext/gd/tests/imagegammacorrect_variation1.png
ext/gd/tests/imagelayereffect_basic.phpt
ext/gd/tests/imagelayereffect_basic.png
ext/gd/tests/imagerectangle_basic.phpt
ext/gd/tests/imagerectangle_basic.png
ext/gd/tests/imagesetbrush_basic.phpt
ext/gd/tests/imagesetbrush_basic.png
ext/gd/tests/imagesetthickness_basic.phpt
ext/gd/tests/imagesetthickness_basic.png
ext/gd/tests/imagestring_basic.phpt
ext/gd/tests/imagestring_basic.png
ext/gd/tests/imagestringup_basic.phpt
ext/gd/tests/imagestringup_basic.png
ext/gd/tests/imagetruecolortopalette_basic.phpt
ext/gd/tests/imagetruecolortopalette_basic.png
ext/gd/tests/libgd00100.phpt
ext/gd/tests/libgd00100.png
326a4e3810-Sep-2016 Christoph M. Becker

Add regression test for bug #73053

The test succeeds with libxml < 2.9.4, and is supposed to succeed with
libxml > 2.9.4. Unfortunately, we can't conditionally mark a test case
as XF

Add regression test for bug #73053

The test succeeds with libxml < 2.9.4, and is supposed to succeed with
libxml > 2.9.4. Unfortunately, we can't conditionally mark a test case
as XFAIL, so we're simply skipping the test for libxml 2.9.4 instead.

show more ...

6c9d37d010-Sep-2016 Anatol Belski

update NEWS

669fda0010-Sep-2016 Anatol Belski

Bug #73058 crypt broken when salt is 'too' long

c42a7f2f09-Sep-2016 Christoph M. Becker

Remove ignored --FAIL-- section from test case

This is just confusing.

23e721fc09-Sep-2016 Christoph M. Becker

Fix #73054: default option ignored when object passed to int filter

If an object that can't be converted to string is validated, we must not
bail out early, but rather check for a reques

Fix #73054: default option ignored when object passed to int filter

If an object that can't be converted to string is validated, we must not
bail out early, but rather check for a requested default value.

show more ...

cb91a51b03-Sep-2015 Levi Morrison

Partially fix bug #67167 - Wrong return value...

...from FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE

The remainer of the fix would require the filter functions to only
conve

Partially fix bug #67167 - Wrong return value...

...from FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE

The remainer of the fix would require the filter functions to only
convert to string when it makes sense for that particular filter.

(cherry picked from commit 432dc527adcbc3bf4809f6315350300d42c16c52)

show more ...

38553e8509-Sep-2016 Yasuo Ohgaki

Fixed Bug #68015 Session does not report invalid uid for files save handler

b1f33db308-Sep-2016 Anatol Belski

backport 59444347 and 3d7343f6

8c70007608-Sep-2016 Yasuo Ohgaki

Fix bug26639.phpt

fb1c46f008-Sep-2016 Yasuo Ohgaki

Update NEWS

8bbd095208-Sep-2016 Yasuo Ohgaki

Fix Bug #72992 mbstring.internal_encoding doesn't inherit default_charset

5880428d07-Sep-2016 Christoph M. Becker

Fix potential memory issue with USE_ZEND_ALLOC=0

The PHP core and extensions are written with the assumption that memory
allocation either succeeds, or the allocator bails out (i.e. the

Fix potential memory issue with USE_ZEND_ALLOC=0

The PHP core and extensions are written with the assumption that memory
allocation either succeeds, or the allocator bails out (i.e. the allocator
is infallible). Therefore the result of emalloc() and friends are not checked
for NULL values.

However, with USE_ZEND_ALLOC=0, malloc() and friends are used as allocators,
but these are fallible, i.e. they return NULL instead of bailing out if they
fail. This easily leads to invalid memory accesses in the following, such as
in <https://bugs.php.net/73032>. Some of these cases may constitute
exploitable vulnerabilities.

Therefore we make the infallible __zend_alloc() and friends the default for
USE_ZEND_ALLOC=0.

show more ...

dad7936306-Sep-2016 Christoph M. Becker

Fix #73025: Heap Buffer Overflow in virtual_popen of zend_virtual_cwd.c

`command_length` is retrieved via strlen() and later passed to emalloc()
and memcpy(), so the appropriate type is

Fix #73025: Heap Buffer Overflow in virtual_popen of zend_virtual_cwd.c

`command_length` is retrieved via strlen() and later passed to emalloc()
and memcpy(), so the appropriate type is `size_t`.

We don't add a regression test, because that would need to allocate a string
of at least 2 GiB.

show more ...

3a35d43a06-Sep-2016 Yasuo Ohgaki

Update NEWS

a25f6f8906-Sep-2016 Yasuo Ohgaki

Fixed Bug #66964 mb_convert_variables() cannot detect recursion

8aad313105-Sep-2016 Christoph M. Becker

Fix #70752: Depacking with wrong password leaves 0 length files

We should not open the output stream before we have tried to open the
archive entry, as failing the latter could leave an

Fix #70752: Depacking with wrong password leaves 0 length files

We should not open the output stream before we have tried to open the
archive entry, as failing the latter could leave an empty file behind.

show more ...

dd6da58f05-Sep-2016 Julien Pauli

Updated NEWS

0045d16813-Jul-2016 Keyur

Fixes #72590: Opcache restart with kill_all_lockers does not work

ACCEL_LOG_ERROR is special and causes a zend_bailout() and the code
never gets to call kill() in the next line after the

Fixes #72590: Opcache restart with kill_all_lockers does not work

ACCEL_LOG_ERROR is special and causes a zend_bailout() and the code
never gets to call kill() in the next line after the logging. Change
the log level to WARNING.

show more ...

b92cb6b205-Sep-2016 Nikita Popov

Limit editorconfig to C code

PHPT files do not follow this.

[ci skip]

1abbcc8c05-Sep-2016 Julien Pauli

Updated NEWS

9834978a01-Sep-2016 Julien Pauli

Fix #72972, Bad filter for the flags FILTER_FLAG_NO_RES_RANGE and FILTER_FLAG_NO_PRIV_RANGE

5c38fbe526-Jun-2016 Richard Fussenegger

Added editorconfig file

39423e4221-Jul-2016 Christoph M. Becker

Implement #47456: Missing PCRE option 'J'

While it is possible to force the same behavior by setting the internal
option (?J), having a dedicated modifier appears to be useful. After all

Implement #47456: Missing PCRE option 'J'

While it is possible to force the same behavior by setting the internal
option (?J), having a dedicated modifier appears to be useful. After all,
J is even listed on the "Pattern Modifiers" man page[1], but the description
referrs to (?J).

[1] <http://php.net/manual/en/reference.pcre.pattern.modifiers.php>

show more ...

cee363d605-Sep-2016 Stanislav Malyshev

Merge branch 'pull-request/2061' into PHP-5.6

* pull-request/2061:
Recognize TDS versions 7.3 and 7.4


1...<<11121314151617181920>>...2552