Commit Graph

97800 Commits

Author SHA1 Message Date
Remi Collet
593c1542e8 Merge branch 'PHP-7.1'
* PHP-7.1:
  clean removed functions (since they are alias)
2016-08-03 12:59:21 +02:00
Remi Collet
8b7f594a2b clean removed functions (since they are alias) 2016-08-03 12:59:14 +02:00
Remi Collet
90ceb6ebf8 Merge branch 'PHP-7.1'
* PHP-7.1:
  Fix 32bits tests
2016-08-03 12:56:52 +02:00
Remi Collet
cff668f7a7 Fix 32bits tests
Notice: this warning is only raise since rand is an alias to mt_rand
2016-08-03 12:56:07 +02:00
Kalle Sommer Nielsen
544f0dab1f NEWS 2016-08-03 12:29:09 +02:00
Anatol Belski
9ebfc28c7a Merge branch 'PHP-7.1'
* PHP-7.1:
  fix ts build
2016-08-03 12:20:52 +02:00
Anatol Belski
39587c4817 Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
  fix ts build
2016-08-03 12:20:23 +02:00
Anatol Belski
151c39827a Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  fix ts build
2016-08-03 12:19:29 +02:00
Anatol Belski
fad3f936ac fix ts build 2016-08-03 12:16:42 +02:00
Kalle Sommer Nielsen
de3be17703 Merge branch 'master' of git.php.net:php-src 2016-08-03 11:59:58 +02:00
Kalle Sommer Nielsen
fbb1690198 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
2016-08-03 11:59:30 +02:00
Remi Collet
0c94a93057 Merge branch 'PHP-7.1'
* PHP-7.1:
  add skipif (needs json)
2016-08-03 11:03:35 +02:00
Remi Collet
60bb15d8a1 add skipif (needs json) 2016-08-03 11:03:22 +02:00
Kalle Sommer Nielsen
71ad192c1f NEWS 2016-08-03 10:05:33 +02:00
Kalle Sommer Nielsen
d9613a850f Merge branch 'master' of git.php.net:php-src 2016-08-03 10:02:54 +02:00
Kalle Sommer Nielsen
9c8c37854e 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.
2016-08-03 10:02:22 +02:00
Xinchen Hui
bd9858ead2 Merge branch 'PHP-7.1'
* PHP-7.1:
  It's packed array
2016-08-03 12:37:42 +08:00
Xinchen Hui
6d1f473247 It's packed array 2016-08-03 12:37:14 +08:00
Xinchen Hui
f451a2358d 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.
2016-08-03 12:17:35 +08:00
Kalle Sommer Nielsen
1e02e52859 Fixed compiler warning (Sorry Anatol, but this one was killing me) 2016-08-03 06:16:48 +02:00
Kalle Sommer Nielsen
aa821d8cad Revert "Fixed bug #72735 (Samsung picture thumb not read (zero size))"
This reverts commit 406dff2a02.

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
2016-08-03 06:10:56 +02:00
Xinchen Hui
33a30691b2 Merge branch 'PHP-7.1'
* PHP-7.1:
  Optmized array_rand
  Optimized array_pad
  Update NEWS for 7.1.0beta3
2016-08-03 12:06:38 +08:00
Xinchen Hui
be00b4ed13 Optmized array_rand 2016-08-03 12:06:04 +08:00
Kalle Sommer Nielsen
406dff2a02 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!
2016-08-03 05:39:39 +02:00
Xinchen Hui
501d24f81b Optimized array_pad 2016-08-03 11:24:31 +08:00
Kalle Sommer Nielsen
3e921aa9df 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).
2016-08-03 04:24:17 +02:00
Davey Shafik
9ecefe72d8 Update NEWS for 7.1.0beta3 2016-08-02 16:40:07 -07:00
Nikita Popov
6a748c2f4b Merge branch 'PHP-7.1' 2016-08-03 00:35:16 +02:00
Nikita Popov
41e93041f8 Merge branch 'PHP-7.0' into PHP-7.1 2016-08-03 00:35:00 +02:00
Nikita Popov
1bcd439cad Fix bug #72724 2016-08-03 00:34:36 +02:00
Christoph M. Becker
a970da0890 Merge branch 'PHP-7.1' 2016-08-02 18:59:48 +02:00
Christoph M. Becker
3d0002ed36 Merge branch 'PHP-7.0' into PHP-7.1 2016-08-02 18:56:35 +02:00
Christoph M. Becker
3a8c027ec3 Merge branch 'PHP-5.6' into PHP-7.0 2016-08-02 18:49:59 +02:00
Christoph M. Becker
f5622f5c87 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.
2016-08-02 18:43:37 +02:00
Anatol Belski
09e4116810 Merge branch 'PHP-7.1'
* PHP-7.1:
  update NEWS
  cleanup table after test
  - lastInsertId using Postgres Lastval() function
2016-08-02 14:43:44 +02:00
Anatol Belski
02fce3ecea Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0:
  update NEWS
  cleanup table after test
  - lastInsertId using Postgres Lastval() function
2016-08-02 14:42:55 +02:00
Anatol Belski
072af35b5c Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  update NEWS
  cleanup table after test
  - lastInsertId using Postgres Lastval() function
2016-08-02 14:40:31 +02:00
Anatol Belski
e95625f47e update NEWS 2016-08-02 14:36:56 +02:00
Anatol Belski
40b3a031b2 cleanup table after test 2016-08-02 14:35:24 +02:00
Pablo Santiago Sánchez
90c6cbd09b - lastInsertId using Postgres Lastval() function 2016-08-02 14:34:30 +02:00
Xinchen Hui
ced184a870 Merge branch 'PHP-7.1'
* PHP-7.1:
  Fixed warning: "operation on ‘s’ may be undefined"
2016-08-02 20:29:05 +08:00
Xinchen Hui
82ba5b59d9 Fixed warning: "operation on ‘s’ may be undefined" 2016-08-02 20:28:42 +08:00
Xinchen Hui
1cd9b1a34e Merge branch 'PHP-7.1'
* PHP-7.1:
  Folder marks
2016-08-02 20:08:25 +08:00
Xinchen Hui
81a7d52814 Folder marks 2016-08-02 20:08:15 +08:00
Xinchen Hui
ff6a14a907 Merge branch 'PHP-7.1'
* PHP-7.1:
  Optimized array_merge and cleanup
2016-08-02 20:02:49 +08:00
Xinchen Hui
70f79fd8b6 Optimized array_merge and cleanup 2016-08-02 20:02:23 +08:00
Xinchen Hui
a006363aea Merge branch 'master' of git.php.net:/php-src
* 'master' of git.php.net:/php-src:
  increase versions for 7.2
2016-08-02 17:45:22 +08:00
Xinchen Hui
4bb4b13c5c Merge branch 'PHP-7.1'
* PHP-7.1:
  Optimized array_merge
  prepare next
  fix php_version.h
2016-08-02 17:40:47 +08:00
Xinchen Hui
87057858a0 Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
* 'PHP-7.1' of git.php.net:/php-src:
  prepare next
  fix php_version.h
2016-08-02 17:40:37 +08:00
Xinchen Hui
e730c8fc90 Optimized array_merge 2016-08-02 17:39:53 +08:00