]> granicus.if.org Git - php/log
php
8 years agoMerge branch 'PHP-7.1'
Anatol Belski [Mon, 8 Aug 2016 10:18:57 +0000 (12:18 +0200)]
Merge branch 'PHP-7.1'

* PHP-7.1:
  check malloc result

8 years agocheck malloc result
Anatol Belski [Sat, 6 Aug 2016 20:33:29 +0000 (22:33 +0200)]
check malloc result

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Sun, 7 Aug 2016 23:47:05 +0000 (01:47 +0200)]
Merge branch 'PHP-7.1'

8 years agoImplement #38992: invoke() and invokeArgs() static method calls should match
Christoph M. Becker [Sun, 7 Aug 2016 23:27:21 +0000 (01:27 +0200)]
Implement #38992: invoke() and invokeArgs() static method calls should match

We don't want ReflectionMethod::invoke() to simply ignore its first argument,
if the method to invoke is a static method. Instead we match its ZPP with
that of ReflectionMethod::invokeArgs(). Furthermore, we apply the DRY
principle by factoring out the code to a common helper function to prevent
inadvertent future divergence of the implementations of both methods.

As can be seen from the necessity to adapt some test cases, this causes a
BC break for some pathological cases. Therefore we apply this patch to PHP
7.1 only, which is still in beta phase.

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sun, 7 Aug 2016 16:50:34 +0000 (18:50 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sun, 7 Aug 2016 16:50:14 +0000 (18:50 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoFix bug #55451
Lauri Kenttä [Wed, 3 Aug 2016 08:29:12 +0000 (11:29 +0300)]
Fix bug #55451

Make substr_compare ignore the length if it's NULL. This allows to
use the last parameter (case_insensitivity) with the default length.

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sun, 7 Aug 2016 16:38:49 +0000 (18:38 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Sun, 7 Aug 2016 16:38:43 +0000 (18:38 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sun, 7 Aug 2016 16:38:28 +0000 (18:38 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFix stream_socket_enable_crypto() test
Nikita Popov [Sun, 7 Aug 2016 16:36:32 +0000 (18:36 +0200)]
Fix stream_socket_enable_crypto() test

The whole test doesn't make any sense at all, but this only fixes
the additional warnings you get when linked against openssl w/o
SSL3.

8 years agoUpdate php_version.h
Nikita Popov [Sun, 7 Aug 2016 15:52:37 +0000 (17:52 +0200)]
Update php_version.h

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Sun, 7 Aug 2016 15:47:17 +0000 (17:47 +0200)]
Merge branch 'PHP-7.1'

8 years agoFix PUTC warning
Nikita Popov [Sun, 7 Aug 2016 14:44:31 +0000 (16:44 +0200)]
Fix PUTC warning

Change the macro to not provide a useless return value using a
comma expression, which generates warnings.

8 years agoAvoid use of scratch space in HTTP fopen wrapper
Nikita Popov [Thu, 4 Aug 2016 13:12:33 +0000 (15:12 +0200)]
Avoid use of scratch space in HTTP fopen wrapper

Instead directly write into req_buf smart_str.

8 years agoNote about the recent change to the WSA version check on Windows
Kalle Sommer Nielsen [Sun, 7 Aug 2016 03:40:56 +0000 (05:40 +0200)]
Note about the recent change to the WSA version check on Windows

8 years agoFixed bug #71534 (Type confusion in exif_read_data() leading to heap overflow in...
Kalle Sommer Nielsen [Sun, 7 Aug 2016 03:35:46 +0000 (05:35 +0200)]
Fixed bug #71534 (Type confusion in exif_read_data() leading to heap  overflow in debug mode)

Unlike the original patch, this does not return an unknown format in case an unsigned compatible type cannot be found (cases for SINGLE and DOUBLE removed), as these seems rare cases according to the inline comments.

Note, the test does not test if PHP is in debug mode, although the report originally states it only occurs there only.

The fix is based on a patch by hlt99 at blinkenshell dot org

8 years agoAdded some extended info about ext/exif to phpinfo()
Kalle Sommer Nielsen [Sun, 7 Aug 2016 03:11:40 +0000 (05:11 +0200)]
Added some extended info about ext/exif to phpinfo()

8 years agoRemove void comment
Kalle Sommer Nielsen [Sun, 7 Aug 2016 02:58:29 +0000 (04:58 +0200)]
Remove void comment

8 years agoFix tests, although I was not able to reproduce these failures on an x86 build/Window...
Kalle Sommer Nielsen [Sun, 7 Aug 2016 02:22:27 +0000 (04:22 +0200)]
Fix tests, although I was not able to reproduce these failures on an x86 build/Windows, this should hopefully make travis happy

8 years agoMerge branch 'PHP-7.1'
Christopher Jones [Sun, 7 Aug 2016 00:25:41 +0000 (10:25 +1000)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Sun, 7 Aug 2016 00:25:16 +0000 (10:25 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoRemove old $Id$ tags
Christopher Jones [Sun, 7 Aug 2016 00:24:56 +0000 (10:24 +1000)]
Remove old $Id$ tags

8 years agoMerge branch 'PHP-7.1'
Christopher Jones [Sun, 7 Aug 2016 00:21:46 +0000 (10:21 +1000)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Sun, 7 Aug 2016 00:21:14 +0000 (10:21 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoSync with 7.1 branch changes from Nikita & Dimitri to keep OCI8 code identical
Christopher Jones [Sun, 7 Aug 2016 00:17:06 +0000 (10:17 +1000)]
Sync with 7.1 branch changes from Nikita & Dimitri to keep OCI8 code identical

8 years agoNews for 7.1
Christopher Jones [Sun, 7 Aug 2016 00:06:11 +0000 (10:06 +1000)]
News for 7.1

8 years agoMerge branch 'PHP-7.1'
Christopher Jones [Sun, 7 Aug 2016 00:02:53 +0000 (10:02 +1000)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Christopher Jones [Sun, 7 Aug 2016 00:02:14 +0000 (10:02 +1000)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoFix bug #72524 (Binding null values triggers ORA-24816 error)
Christopher Jones [Thu, 4 Aug 2016 02:45:32 +0000 (12:45 +1000)]
Fix bug #72524 (Binding null values triggers ORA-24816 error)

8 years ago[ast] Fix exporting **= in expansion of assign op
Sara Golemon [Sat, 6 Aug 2016 22:12:09 +0000 (15:12 -0700)]
[ast] Fix exporting **= in expansion of assign op

8 years agoMerge branch 'master' of git.php.net:php-src
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:40:12 +0000 (12:40 +0200)]
Merge branch 'master' of git.php.net:php-src

8 years agoNEWS + UPGRADING for recent EXIF additions
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:39:05 +0000 (12:39 +0200)]
NEWS + UPGRADING for recent EXIF additions

8 years agoAdded support for Sigma/Foveon EXIF tags
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:37:10 +0000 (12:37 +0200)]
Added support for Sigma/Foveon EXIF tags

Note, the tag_info_array is re-used for both SIGMA and FOVEON, as their IFD headers can differ

8 years agoAdded support for Minolta EXIF tags
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:31:01 +0000 (12:31 +0200)]
Added support for Minolta EXIF tags

8 years agoAdded support for PENTAX EXIF tags
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:24:19 +0000 (12:24 +0200)]
Added support for PENTAX EXIF tags

8 years agoRemove this redundant entry for Canon
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:18:12 +0000 (12:18 +0200)]
Remove this redundant entry for Canon

8 years agoMerge branch 'PHP-7.1'
Leigh [Sat, 6 Aug 2016 10:17:10 +0000 (11:17 +0100)]
Merge branch 'PHP-7.1'

8 years agomt_rand 32/64-bit consistency
Leigh [Sat, 6 Aug 2016 10:15:26 +0000 (11:15 +0100)]
mt_rand 32/64-bit consistency

8 years agoFix the fix (Nikita), thanks!
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:08:13 +0000 (12:08 +0200)]
Fix the fix (Nikita), thanks!

8 years agoAdded a warning in case --with-mp is combined with --enable-debug
Kalle Sommer Nielsen [Sat, 6 Aug 2016 09:00:22 +0000 (11:00 +0200)]
Added a warning in case --with-mp is combined with --enable-debug

This causes a D9030 since we specify a minimal build using /Gm in case we make a debug build

8 years agoCheck the return value of dbconvert() in mssql_guid_string(), as it may return -1...
Kalle Sommer Nielsen [Sat, 6 Aug 2016 08:17:49 +0000 (10:17 +0200)]
Check the return value of dbconvert() in mssql_guid_string(), as it may return -1 in case the conversion failed. In that case false is returned.

Also initialize buffer and buffer2 to NULL, which should fix bug #72039 (Use of uninitialised value on mssql_guid_string).

This only applies to 5.6, as we do not have mssql in 7.0 anymore

8 years agoFixed bug #5453 (WSA cleanup executes before MSHUTDOWN)
Kalle Sommer Nielsen [Sat, 6 Aug 2016 02:06:50 +0000 (04:06 +0200)]
Fixed bug #5453 (WSA cleanup executes before MSHUTDOWN)

This moves the WSACleanup() call to after zend_shutdown() in main.c, I did some testing and I could not find any issues with this. I don't expect this to cause any issues on Netware either, although untested as I do not have such an env available (do we even support Netware anymore? Last release was in 2009 and it is now discontinued)

Besides the movie, then this commit also contains a fix to the check of WSAStartup() where we don't actually confirm we get the desired version of the winsock.dll (We use 2.0).

8 years agoMerge branch 'master' of git.php.net:php-src
Kalle Sommer Nielsen [Sat, 6 Aug 2016 01:39:10 +0000 (03:39 +0200)]
Merge branch 'master' of git.php.net:php-src

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

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Fri, 5 Aug 2016 21:09:53 +0000 (23:09 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Fri, 5 Aug 2016 21:09:30 +0000 (23:09 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
ext/standard/ftp_fopen_wrapper.c

8 years agoFix #72764
Ville Hukkamaki [Fri, 5 Aug 2016 13:09:13 +0000 (16:09 +0300)]
Fix #72764

Negotiate data channel encryption after NLST command.
This is to prevent issues with IIS and ProFTPD.

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 5 Aug 2016 17:56:48 +0000 (19:56 +0200)]
Merge branch 'PHP-7.1'

8 years agoMerge branch 'PHP-7.0' into PHP-7.1
Nikita Popov [Fri, 5 Aug 2016 17:56:02 +0000 (19:56 +0200)]
Merge branch 'PHP-7.0' into PHP-7.1

8 years agoFix bug #72767
Nikita Popov [Fri, 5 Aug 2016 17:51:51 +0000 (19:51 +0200)]
Fix bug #72767

The page size calculation did not account for the size of the
stack header (or rather it did account for it, but in the wrong
direction...)

8 years agoMerge branch 'PHP-7.1'
Nikita Popov [Fri, 5 Aug 2016 14:32:25 +0000 (16:32 +0200)]
Merge branch 'PHP-7.1'

8 years agoAdd assertion to prevent type narrowing
Nikita Popov [Fri, 5 Aug 2016 14:30:57 +0000 (16:30 +0200)]
Add assertion to prevent type narrowing

Currently type narrowing is always a bug, make sure we know about
it.

8 years agoFixed bug #72762
Nikita Popov [Fri, 5 Aug 2016 14:27:55 +0000 (16:27 +0200)]
Fixed bug #72762

8 years agoMerge branch 'PHP-7.1'
Christoph M. Becker [Fri, 5 Aug 2016 11:23:33 +0000 (13:23 +0200)]
Merge branch 'PHP-7.1'

8 years agoFix #72711: `mb_ereg` does not clear the `$regs` parameter on failure
ju1ius [Sat, 30 Jul 2016 11:55:46 +0000 (13:55 +0200)]
Fix #72711: `mb_ereg` does not clear the `$regs` parameter on failure

When `mb_ereg` failed to match, it didn't update the `$regs` argument.
Now it will always set it to the empty array.

8 years agopefree() these (with persistent=0), as internally in zend_multibyte.c they do the...
Kalle Sommer Nielsen [Fri, 5 Aug 2016 09:17:26 +0000 (11:17 +0200)]
pefree() these (with persistent=0), as internally in zend_multibyte.c they do the same, and at the same time also cast them to void pointers to silence the compiler warnings.

8 years agoFix line endings, getting a little annoyed with VS' warning about mismatch
Kalle Sommer Nielsen [Fri, 5 Aug 2016 09:12:51 +0000 (11:12 +0200)]
Fix line endings, getting a little annoyed with VS' warning about mismatch

8 years agoFixed bug #68547 (Exif Header component value check error) (Patch by sjh21a at gmail...
Kalle Sommer Nielsen [Fri, 5 Aug 2016 08:03:14 +0000 (10:03 +0200)]
Fixed bug #68547 (Exif Header component value check error) (Patch by sjh21a at gmail dot com)

This patch changes processing a little and causes some crafted tags to not be parsed and generate a warning.

This is a slight BC break from earlier versions, since it will no longer return the tags of that it was mismatching (see bug68799.phpt), namely the "WINXP" section and the "Author" tag is no longer returned due to this. Although this BC break is merely only for crafted tags, this can also have some real life effects on pictures re-saved from editors that can cause bad exif data writes, so lets keep it here.

8 years agoNEWS and UPGRADING for recent fixes and additions to ext/exif
Kalle Sommer Nielsen [Fri, 5 Aug 2016 05:54:36 +0000 (07:54 +0200)]
NEWS and UPGRADING for recent fixes and additions to ext/exif

8 years agoAdded support for Sony pictures in EXIF as per requested in bug #72735
Kalle Sommer Nielsen [Fri, 5 Aug 2016 05:45:02 +0000 (07:45 +0200)]
Added support for Sony pictures in EXIF as per requested in bug #72735

Sony is a little more interesting, as it is have a large range of tags it support in different models. For now I have added all the tags found within the Exif.Sony1 namespace.

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