]> granicus.if.org Git - php/log
php
8 years agoSplit this test up to a 64bit version for more coverage
Kalle Sommer Nielsen [Fri, 5 Aug 2016 05:15:34 +0000 (07:15 +0200)]
Split this test up to a 64bit version for more coverage

The 32bit version does not have the 64bit float values here, we already have 3 float tests which I guess will do for now at least

8 years agoFix exif_imagetype() test after zpp change
Nikita Popov [Thu, 4 Aug 2016 20:27:20 +0000 (22:27 +0200)]
Fix exif_imagetype() test after zpp change

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Thu, 4 Aug 2016 12:23:16 +0000 (14:23 +0200)]
Merge branch 'PHP-7.1'

8 years agoImplement request #27814
Ville Hukkamäki [Thu, 28 Jul 2016 19:17:20 +0000 (19:17 +0000)]
Implement request #27814

Construct HTTP request headers into smart_str and send whole
request in one go.

8 years agoMerge branch 'PHP-7.1'
Xinchen Hui [Thu, 4 Aug 2016 11:10:56 +0000 (19:10 +0800)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fixed bug #72743 (Out-of-bound read in php_stream_filter_create)

8 years agoFixed bug #72743 (Out-of-bound read in php_stream_filter_create)
Xinchen Hui [Thu, 4 Aug 2016 11:10:40 +0000 (19:10 +0800)]
Fixed bug #72743 (Out-of-bound read in php_stream_filter_create)

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Thu, 4 Aug 2016 10:11:02 +0000 (12:11 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Thu, 4 Aug 2016 10:10:34 +0000 (12:10 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Thu, 4 Aug 2016 10:09:16 +0000 (12:09 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix broken skip marker in test case
Christoph M. Becker [Thu, 4 Aug 2016 10:06:07 +0000 (12:06 +0200)]
Fix broken skip marker in test case

8 years agoMerge branch 'PHP-7.1'
Matteo Beccati [Thu, 4 Aug 2016 07:38:10 +0000 (09:38 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Clean up FR #72633
  Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Matteo Beccati [Thu, 4 Aug 2016 07:37:40 +0000 (09:37 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Clean up FR #72633
  Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.

Conflicts:
ext/oci8/package.xml

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Matteo Beccati [Thu, 4 Aug 2016 07:30:48 +0000 (09:30 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Clean up FR #72633

8 years agoClean up FR #72633
Matteo Beccati [Thu, 4 Aug 2016 07:28:58 +0000 (09:28 +0200)]
Clean up FR #72633

8 years agoFixed invalid handle error with Implicit Result Sets and bump OCI8 version.
Christopher Jones [Thu, 4 Aug 2016 04:48:07 +0000 (14:48 +1000)]
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.

8 years agoMerge branch 'PHP-7.1'
Christopher Jones [Thu, 4 Aug 2016 07:02:44 +0000 (17:02 +1000)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Thu, 4 Aug 2016 07:02:08 +0000 (17:02 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoFixed invalid handle error with Implicit Result Sets
Christopher Jones [Thu, 4 Aug 2016 07:01:57 +0000 (17:01 +1000)]
Fixed invalid handle error with Implicit Result Sets

8 years agoFixed invalid handle error with Implicit Result Sets and bump OCI8 version.
Christopher Jones [Thu, 4 Aug 2016 04:48:07 +0000 (14:48 +1000)]
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.

8 years agoMerge branch 'master' of https://git.php.net/repository/php-src
Christopher Jones [Thu, 4 Aug 2016 06:45:31 +0000 (16:45 +1000)]
Merge branch 'master' of https://git.php.net/repository/php-src

8 years agoMerge branch 'PHP-7.0' of https://git.php.net/repository/php-src into PHP-7.0
Christopher Jones [Thu, 4 Aug 2016 06:45:29 +0000 (16:45 +1000)]
Merge branch 'PHP-7.0' of https://git.php.net/repository/php-src into PHP-7.0

8 years agoMerge branch 'PHP-7.1'
Stanislav Malyshev [Thu, 4 Aug 2016 06:04:07 +0000 (23:04 -0700)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fix bug #72716 - initialize buffer before read

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Stanislav Malyshev [Thu, 4 Aug 2016 06:03:15 +0000 (23:03 -0700)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fix bug #72716 - initialize buffer before read

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Stanislav Malyshev [Thu, 4 Aug 2016 06:00:32 +0000 (23:00 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix bug #72716 - initialize buffer before read

Conflicts:
ext/standard/ftp_fopen_wrapper.c

8 years agoFix bug #72716 - initialize buffer before read
Stanislav Malyshev [Thu, 4 Aug 2016 05:59:01 +0000 (22:59 -0700)]
Fix bug #72716 - initialize buffer before read

8 years agoMerge branch 'PHP-7.1'
Ferenc Kovacs [Wed, 3 Aug 2016 23:44:18 +0000 (01:44 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Ferenc Kovacs [Wed, 3 Aug 2016 23:43:27 +0000 (01:43 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Ferenc Kovacs [Wed, 3 Aug 2016 23:42:00 +0000 (01:42 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
configure.in
main/php_version.h

8 years ago5.6.26 will be next
Ferenc Kovacs [Wed, 3 Aug 2016 23:39:37 +0000 (01:39 +0200)]
5.6.26 will be next

8 years agoUse 'p' to validate a path in exif_imagetype() (like the other exif function already...
Kalle Sommer Nielsen [Wed, 3 Aug 2016 21:57:51 +0000 (23:57 +0200)]
Use 'p' to validate a path in exif_imagetype() (like the other exif function already does)

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Wed, 3 Aug 2016 21:10:29 +0000 (23:10 +0200)]
Merge branch 'PHP-7.1'

8 years agoFix leak on self-referencing constants
Nikita Popov [Wed, 3 Aug 2016 21:09:17 +0000 (23:09 +0200)]
Fix leak on self-referencing constants

8 years agoMove fix for #72735 to 7.1.0beta3
Davey Shafik [Wed, 3 Aug 2016 19:31:15 +0000 (12:31 -0700)]
Move fix for #72735 to 7.1.0beta3

8 years agoimprove the check, avoid strlen on NULL
Anatol Belski [Wed, 3 Aug 2016 16:26:29 +0000 (18:26 +0200)]
improve the check, avoid strlen on NULL

8 years agoChanged the way MAKERNOTE is handled in case we do not have a matching signature...
Kalle Sommer Nielsen [Wed, 3 Aug 2016 15:05:31 +0000 (17:05 +0200)]
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.

The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.

This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.

8 years agoMerge branch 'PHP-7.1'
Jakub Zelenka [Wed, 3 Aug 2016 19:07:57 +0000 (20:07 +0100)]
Merge branch 'PHP-7.1'

8 years agoDo not add already added object to the internal OpenSSL table
Jakub Zelenka [Wed, 3 Aug 2016 19:01:41 +0000 (20:01 +0100)]
Do not add already added object to the internal OpenSSL table

This fixes OpenSSL 1.1 where adding object with OID that has been
already added causes an error - preventing of duplication.

8 years ago- add a test for makernote (#72682)
Remi Collet [Wed, 3 Aug 2016 16:33:26 +0000 (18:33 +0200)]
- add a test for makernote (#72682)
- reduce image size
- add panasonic.jpg sample

8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Wed, 3 Aug 2016 16:30:18 +0000 (18:30 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  improve the check, avoid strlen on NULL

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 3 Aug 2016 16:29:42 +0000 (18:29 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  improve the check, avoid strlen on NULL

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 16:28:48 +0000 (18:28 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  improve the check, avoid strlen on NULL

8 years agoimprove the check, avoid strlen on NULL
Anatol Belski [Wed, 3 Aug 2016 16:26:29 +0000 (18:26 +0200)]
improve the check, avoid strlen on NULL

8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Wed, 3 Aug 2016 15:45:43 +0000 (17:45 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  update NEWS
  update NEWS
  update NEWS
  Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

8 years agoupdate NEWS
Anatol Belski [Wed, 3 Aug 2016 15:44:50 +0000 (17:44 +0200)]
update NEWS

Fix for 72735 is now merged in 5.6 up

8 years agoupdate NEWS
Anatol Belski [Wed, 3 Aug 2016 15:42:45 +0000 (17:42 +0200)]
update NEWS

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 3 Aug 2016 15:40:38 +0000 (17:40 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  update NEWS
  update NEWS
  Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

8 years agoupdate NEWS
Anatol Belski [Wed, 3 Aug 2016 15:39:55 +0000 (17:39 +0200)]
update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 15:39:22 +0000 (17:39 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update NEWS
  Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

8 years agoupdate NEWS
Anatol Belski [Wed, 3 Aug 2016 15:38:11 +0000 (17:38 +0200)]
update NEWS

8 years agoChanged the way MAKERNOTE is handled in case we do not have a matching signature...
Kalle Sommer Nielsen [Wed, 3 Aug 2016 15:05:31 +0000 (17:05 +0200)]
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.

The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.

This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.

(cherry picked from commit aabcb5481d9e717df77192dab2894468b9fc63b4)

8 years agoFixed bug #72682 (exif_read_data() fails to read all data for some images)
Kalle Sommer Nielsen [Wed, 3 Aug 2016 15:33:18 +0000 (17:33 +0200)]
Fixed bug #72682 (exif_read_data() fails to read all data for some images)

This is fixed by adding DJI signatures to the MAKERNOTE and its supported tags, list is credits to ExifTool documentation.

8 years agoNEWS
Kalle Sommer Nielsen [Wed, 3 Aug 2016 15:06:39 +0000 (17:06 +0200)]
NEWS

8 years agoChanged the way MAKERNOTE is handled in case we do not have a matching signature...
Kalle Sommer Nielsen [Wed, 3 Aug 2016 15:05:31 +0000 (17:05 +0200)]
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.

The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.

This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.

8 years agoMerge branch 'master' of git.php.net:php-src
Kalle Sommer Nielsen [Wed, 3 Aug 2016 14:42:01 +0000 (16:42 +0200)]
Merge branch 'master' of git.php.net:php-src

8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Wed, 3 Aug 2016 13:07:10 +0000 (15:07 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  update libs_versions.txt
  update libs_versions.txt

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 3 Aug 2016 13:06:39 +0000 (15:06 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  update libs_versions.txt
  update libs_versions.txt

8 years agoupdate libs_versions.txt
Anatol Belski [Wed, 3 Aug 2016 13:06:02 +0000 (15:06 +0200)]
update libs_versions.txt

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 13:05:39 +0000 (15:05 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update libs_versions.txt

8 years agoupdate libs_versions.txt
Anatol Belski [Wed, 3 Aug 2016 13:03:41 +0000 (15:03 +0200)]
update libs_versions.txt

8 years agoMerge branch 'PHP-7.1'
Remi Collet [Wed, 3 Aug 2016 12:28:45 +0000 (14:28 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Minor revert of be3640150cb2f88d38a8d405b2bf708f04be39ef

8 years agoMinor revert of be3640150cb2f88d38a8d405b2bf708f04be39ef
Remi Collet [Wed, 3 Aug 2016 12:27:46 +0000 (14:27 +0200)]
Minor revert of be3640150cb2f88d38a8d405b2bf708f04be39ef

On 32bits this may cause php to hangs forever.

8 years agoMerge branch 'PHP-7.1'
Remi Collet [Wed, 3 Aug 2016 12:24:46 +0000 (14:24 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  fix paths in tests

8 years agofix paths in tests
Remi Collet [Wed, 3 Aug 2016 12:24:35 +0000 (14:24 +0200)]
fix paths in tests

8 years agoMerge branch 'PHP-7.1'
Remi Collet [Wed, 3 Aug 2016 10:59:21 +0000 (12:59 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  clean removed functions (since they are alias)

8 years agoclean removed functions (since they are alias)
Remi Collet [Wed, 3 Aug 2016 10:59:14 +0000 (12:59 +0200)]
clean removed functions (since they are alias)

8 years agoMerge branch 'PHP-7.1'
Remi Collet [Wed, 3 Aug 2016 10:56:52 +0000 (12:56 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Fix 32bits tests

8 years agoFix 32bits tests
Remi Collet [Wed, 3 Aug 2016 10:56:07 +0000 (12:56 +0200)]
Fix 32bits tests

Notice: this warning is only raise since rand is an alias to mt_rand

8 years agoNEWS
Kalle Sommer Nielsen [Wed, 3 Aug 2016 10:29:09 +0000 (12:29 +0200)]
NEWS

8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Wed, 3 Aug 2016 10:20:52 +0000 (12:20 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  fix ts build

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Wed, 3 Aug 2016 10:20:23 +0000 (12:20 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  fix ts build

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 3 Aug 2016 10:19:29 +0000 (12:19 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix ts build

8 years agofix ts build
Anatol Belski [Wed, 3 Aug 2016 10:16:42 +0000 (12:16 +0200)]
fix ts build

8 years agoMerge branch 'master' of git.php.net:php-src
Kalle Sommer Nielsen [Wed, 3 Aug 2016 09:59:58 +0000 (11:59 +0200)]
Merge branch 'master' of git.php.net:php-src

8 years agoFixed Redhat bug #1362571 (PHP not returning full results for exif_read_data function)
Kalle Sommer Nielsen [Wed, 3 Aug 2016 09:59:30 +0000 (11:59 +0200)]
Fixed Redhat bug #1362571 (PHP not returning full results for exif_read_data function)

There are two factors for this bug fix:
 - First of all, the maximum nesting level has been increased to 150 (previously 100), I'm not sure how much an impact this will have, but increasing this value also seems to resolve PHP bug #66443 (Corrupt EXIF header: maximum directory nesting level reached for some cameras.)
  - Second, this adds support for most common Panasonic EXIF tags, again this list is based off the Exiv2 website

Note about Panasonic's format:
From what I could find, then the offset was always 12 bytes for such, the signature always had the 'P' capitalized, and the rest lower cased, followed by 3 NULL bytes

@Remi, can you review this? I'm gonna look into Sony (which is huge btw!) and your patch next

8 years agoMerge branch 'PHP-7.1'
Remi Collet [Wed, 3 Aug 2016 09:03:35 +0000 (11:03 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  add skipif (needs json)

8 years agoadd skipif (needs json)
Remi Collet [Wed, 3 Aug 2016 09:03:22 +0000 (11:03 +0200)]
add skipif (needs json)

8 years agoNEWS
Kalle Sommer Nielsen [Wed, 3 Aug 2016 08:05:33 +0000 (10:05 +0200)]
NEWS

8 years agoMerge branch 'master' of git.php.net:php-src
Kalle Sommer Nielsen [Wed, 3 Aug 2016 08:02:54 +0000 (10:02 +0200)]
Merge branch 'master' of git.php.net:php-src

8 years agoFixed bug #72735 (Samsung picture thumb not read (zero size))
Kalle Sommer Nielsen [Wed, 3 Aug 2016 08:02:22 +0000 (10:02 +0200)]
Fixed bug #72735 (Samsung picture thumb not read (zero size))

It seems like there is no maker data for "Samsung", this causes the IDF tag parsing to fail, and it bails early on, despite there still is valid remaining data in image, such as the thumbnail data as reported in the bug.

I used the Exiv2 website as a reference guide for tags that's specific to Samsung's EXIF data, which should also mean that we will be able to name some of those tags more specifically now.

I have chosen again not to commit this to other branches, simply because I'm not 100% sure on the byte order and offsets for Samsung, I did some research and it seems like there are many variants, but this (very copy/pasted), entry works for this particular image and does not break any other tests. This does add a new feature I suppose, while also fixing a bug, but I will leave it to the other branch RMs to decide on how far down they will want to merge this.

8 years agoMerge branch 'PHP-7.1'
Xinchen Hui [Wed, 3 Aug 2016 04:37:42 +0000 (12:37 +0800)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  It's packed array

8 years agoIt's packed array
Xinchen Hui [Wed, 3 Aug 2016 04:37:14 +0000 (12:37 +0800)]
It's packed array

8 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Wed, 3 Aug 2016 04:17:35 +0000 (12:17 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Fixed compiler warning (Sorry Anatol, but this one was killing me)
  Revert "Fixed bug #72735 (Samsung picture thumb not read (zero size))"
  Fixed bug #72735 (Samsung picture thumb not read (zero size))
  Minor touches to the exif build script on Windows; ADD_EXTENSION_DEP() will already ERROR() out, so the WARNING() statement would never be returned anyway.

8 years agoFixed compiler warning (Sorry Anatol, but this one was killing me)
Kalle Sommer Nielsen [Wed, 3 Aug 2016 04:16:48 +0000 (06:16 +0200)]
Fixed compiler warning (Sorry Anatol, but this one was killing me)

8 years agoRevert "Fixed bug #72735 (Samsung picture thumb not read (zero size))"
Kalle Sommer Nielsen [Wed, 3 Aug 2016 04:10:56 +0000 (06:10 +0200)]
Revert "Fixed bug #72735 (Samsung picture thumb not read (zero size))"

This reverts commit 406dff2a02ff1cfac89942ce5e991d88d3b6cb50.

This seems to break more than expected and other tests seems to fail:
 - bug60150.phpt
 - bug62523_2.phpt
 - bug72603.phpt
 - bug72618.phpt

I'm gonna go do around of thinking and see if I can come up with a better fix

8 years agoMerge branch 'PHP-7.1'
Xinchen Hui [Wed, 3 Aug 2016 04:06:38 +0000 (12:06 +0800)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  Optmized array_rand
  Optimized array_pad
  Update NEWS for 7.1.0beta3

8 years agoOptmized array_rand
Xinchen Hui [Wed, 3 Aug 2016 04:06:04 +0000 (12:06 +0800)]
Optmized array_rand

8 years agoFixed bug #72735 (Samsung picture thumb not read (zero size))
Kalle Sommer Nielsen [Wed, 3 Aug 2016 03:39:39 +0000 (05:39 +0200)]
Fixed bug #72735 (Samsung picture thumb not read (zero size))

This fix is only committed to master for now. I'm no exif expert on this matter, so someone else might want to take a look over this and merge as wanted in case this will break something.

In exif_process_IFD_in_JPEG() we loop over the tag entries and try to process the IFD tag, this is fine and all, however in case one fail to process correctly, the entire routine is aborted, which means that other possible data, such as the thumbnail data as reported in #72735 may not be read, despite it is there, perfectly valid.

Also, big props to whoever added EXIF_DEBUG, this rocks!

8 years agoOptimized array_pad
Xinchen Hui [Wed, 3 Aug 2016 03:24:31 +0000 (11:24 +0800)]
Optimized array_pad

8 years agoMinor touches to the exif build script on Windows; ADD_EXTENSION_DEP() will already...
Kalle Sommer Nielsen [Wed, 3 Aug 2016 02:24:17 +0000 (04:24 +0200)]
Minor touches to the exif build script on Windows; ADD_EXTENSION_DEP() will already ERROR() out, so the WARNING() statement would never be returned anyway.

There are probably other similar cases around ext/, however the main reason for fixing this was for the typo (libxml > mbstring).

8 years agoUpdate NEWS for 7.1.0beta3
Davey Shafik [Tue, 2 Aug 2016 23:40:07 +0000 (16:40 -0700)]
Update NEWS for 7.1.0beta3

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Tue, 2 Aug 2016 22:35:16 +0000 (00:35 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Tue, 2 Aug 2016 22:35:00 +0000 (00:35 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoFix bug #72724
Nikita Popov [Tue, 2 Aug 2016 22:33:32 +0000 (00:33 +0200)]
Fix bug #72724

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Tue, 2 Aug 2016 16:59:48 +0000 (18:59 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christoph M. Becker [Tue, 2 Aug 2016 16:53:54 +0000 (18:53 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Christoph M. Becker [Tue, 2 Aug 2016 16:47:36 +0000 (18:47 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix #72709: imagesetstyle() causes OOB read for empty $styles
Christoph M. Becker [Tue, 2 Aug 2016 16:41:20 +0000 (18:41 +0200)]
Fix #72709: imagesetstyle() causes OOB read for empty $styles

Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle()
to be called with `noOfPixels==0`, what could have lead to OOB reads.
Actually, this issue will be fixed in libgd, but to avoid issues when older
libgd is in use, we simply disallow passing an empty $styles array to
imagesetstyle(), what wouldn't serve a useful purpose anyway.

8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Tue, 2 Aug 2016 12:43:44 +0000 (14:43 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  update NEWS
  cleanup table after test
  - lastInsertId using Postgres Lastval() function

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Anatol Belski [Tue, 2 Aug 2016 12:42:55 +0000 (14:42 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  update NEWS
  cleanup table after test
  - lastInsertId using Postgres Lastval() function

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 2 Aug 2016 12:40:31 +0000 (14:40 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update NEWS
  cleanup table after test
  - lastInsertId using Postgres Lastval() function