]> granicus.if.org Git - php/log
php
10 years agofix path separator
Anatol Belski [Tue, 11 Mar 2014 15:29:30 +0000 (16:29 +0100)]
fix path separator

10 years agoUse /dev/urandom as the default mcrypt_create_iv() source
Nikita Popov [Tue, 11 Mar 2014 12:42:16 +0000 (13:42 +0100)]
Use /dev/urandom as the default mcrypt_create_iv() source

Also fixes the ARGINFO for mcrypt_create_iv() and adds missing
UPGRADING entries.

10 years agoAdd tests for bug #66872 and gmp_[rem]root
Nikita Popov [Tue, 11 Mar 2014 12:28:26 +0000 (13:28 +0100)]
Add tests for bug #66872 and gmp_[rem]root

10 years agoFixed mcrypt test case
Tjerk Meesters [Sat, 8 Mar 2014 08:16:46 +0000 (16:16 +0800)]
Fixed mcrypt test case

10 years agoMerge branch 'php-5.5' into PHP-5.6
Tjerk Meesters [Tue, 11 Mar 2014 11:16:13 +0000 (19:16 +0800)]
Merge branch 'php-5.5' into PHP-5.6

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Tjerk Meesters [Tue, 11 Mar 2014 11:14:43 +0000 (19:14 +0800)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years agoRemoved bogus loops
Tjerk Meesters [Tue, 11 Mar 2014 09:52:20 +0000 (17:52 +0800)]
Removed bogus loops

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Tue, 11 Mar 2014 10:53:17 +0000 (11:53 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  restored the old code in 5.4/5 related to bug #66872

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Anatol Belski [Tue, 11 Mar 2014 10:51:35 +0000 (11:51 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  restored the old code in 5.4/5 related to bug #66872

10 years agorestored the old code in 5.4/5 related to bug #66872
Anatol Belski [Tue, 11 Mar 2014 10:50:14 +0000 (11:50 +0100)]
restored the old code in 5.4/5 related to bug #66872

The crash is reproducable in 5.6+ only, so 5.4 and 5.5 are fine
with the old code.

10 years agoMerge branch 'PHP-5.6' of https://git.php.net/repository/php-src into PHP-5.6
Christopher Jones [Mon, 10 Mar 2014 23:46:42 +0000 (16:46 -0700)]
Merge branch 'PHP-5.6' of https://git.php.net/repository/php-src into PHP-5.6

# By Pierre Joye (7) and others
# Via Pierre Joye (10) and others
* 'PHP-5.6' of https://git.php.net/repository/php-src:
  updated libsqlite to 3.8.3.1 in 5.5 branch, too
  DI
  Switch from a single flag to a flag byte
  update NEWS
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  update news
  - fix #66869, Invalid 2nd argument crashes imageaffinematrixget
  add vc12 (2013)
  add vc12 (2013)

10 years agoMerge branch 'PHP-5.5' of https://git.php.net/repository/php-src into PHP-5.5
Christopher Jones [Mon, 10 Mar 2014 23:46:40 +0000 (16:46 -0700)]
Merge branch 'PHP-5.5' of https://git.php.net/repository/php-src into PHP-5.5

# By Pierre Joye (7) and Anatol Belski (1)
# Via Pierre Joye (7) and Anatol Belski (1)
* 'PHP-5.5' of https://git.php.net/repository/php-src:
  updated libsqlite to 3.8.3.1 in 5.5 branch, too
  update NEWS
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  update news
  - fix #66869, Invalid 2nd argument crashes imageaffinematrixget
  add vc12 (2013)
  add vc12 (2013)

10 years agoMerge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4
Christopher Jones [Mon, 10 Mar 2014 23:46:39 +0000 (16:46 -0700)]
Merge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4

# By Pierre Joye
# Via Pierre Joye
* 'PHP-5.4' of https://git.php.net/repository/php-src:
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  add vc12 (2013)

10 years agoFixed Bug #66875 (Improve performance of multi-row OCI_RETURN_LOB queries)
Christopher Jones [Mon, 10 Mar 2014 23:33:35 +0000 (16:33 -0700)]
Fixed Bug #66875 (Improve performance of multi-row OCI_RETURN_LOB queries)

10 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Anatol Belski [Mon, 10 Mar 2014 16:52:51 +0000 (17:52 +0100)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Mon, 10 Mar 2014 16:50:45 +0000 (17:50 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  updated libsqlite to 3.8.3.1 in 5.5 branch, too

10 years agoupdated libsqlite to 3.8.3.1 in 5.5 branch, too
Anatol Belski [Mon, 10 Mar 2014 16:49:35 +0000 (17:49 +0100)]
updated libsqlite to 3.8.3.1 in 5.5 branch, too

10 years agoDI
Andrey Hristov [Mon, 10 Mar 2014 16:18:56 +0000 (18:18 +0200)]
DI

10 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Andrey Hristov [Mon, 10 Mar 2014 15:34:18 +0000 (17:34 +0200)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

10 years agoMerge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Pierre Joye [Mon, 10 Mar 2014 15:31:09 +0000 (16:31 +0100)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4

# By Anatol Belski
# Via Anatol Belski
* 'PHP-5.4' of git.php.net:php-src:
  updated libmagic.patch

10 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
Pierre Joye [Mon, 10 Mar 2014 15:30:05 +0000 (16:30 +0100)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

# By Anatol Belski (1) and others
# Via Anatol Belski
* 'PHP-5.5' of git.php.net:php-src:
  updated libmagic.patch
  Fix indentation
  Do not remove *.1, it's not generated by make but configure

10 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Pierre Joye [Mon, 10 Mar 2014 15:28:41 +0000 (16:28 +0100)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

# By Anatol Belski (2) and others
# Via Anatol Belski (3) and others
* 'PHP-5.6' of git.php.net:php-src:
  updated libmagic.patch
  updated libmagic.patch
  Fix indentation
  Do not remove *.1, it's not generated by make but configure
  Fix typo: entory -> entry

10 years agoSwitch from a single flag to a flag byte
Andrey Hristov [Mon, 10 Mar 2014 15:25:53 +0000 (17:25 +0200)]
Switch from a single flag to a flag byte

10 years agoupdated libmagic.patch
Anatol Belski [Mon, 10 Mar 2014 13:17:47 +0000 (14:17 +0100)]
updated libmagic.patch

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Mon, 10 Mar 2014 13:14:01 +0000 (14:14 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  updated libmagic.patch

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Anatol Belski [Mon, 10 Mar 2014 13:13:15 +0000 (14:13 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  updated libmagic.patch

10 years agoupdated libmagic.patch
Anatol Belski [Mon, 10 Mar 2014 13:12:20 +0000 (14:12 +0100)]
updated libmagic.patch

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Pierre Joye [Mon, 10 Mar 2014 11:18:57 +0000 (12:18 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  update NEWS
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  add vc12 (2013)

Conflicts:
ext/gmp/gmp.c

10 years agoupdate NEWS
Pierre Joye [Mon, 10 Mar 2014 11:12:46 +0000 (12:12 +0100)]
update NEWS

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Pierre Joye [Mon, 10 Mar 2014 11:10:57 +0000 (12:10 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  add vc12 (2013)

Conflicts:
win32/build/confutils.js

10 years agofix #66872, invalid argument crashes gmp_testbit
Pierre Joye [Mon, 10 Mar 2014 11:07:58 +0000 (12:07 +0100)]
fix #66872, invalid argument crashes gmp_testbit

10 years agofix #66872, invalid argument crashes gmp_testbit
Pierre Joye [Mon, 10 Mar 2014 11:06:40 +0000 (12:06 +0100)]
fix #66872, invalid argument crashes gmp_testbit

10 years agoMerge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Pierre Joye [Mon, 10 Mar 2014 11:04:04 +0000 (12:04 +0100)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4

# By Dmitry Panin (1) and Remi Collet (1)
# Via Nikita Popov
* 'PHP-5.4' of git.php.net:php-src:
  Fix HTML entity table generation
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Andrey Hristov [Mon, 10 Mar 2014 10:53:17 +0000 (12:53 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoFix indentation
Andrey Hristov [Mon, 10 Mar 2014 10:52:56 +0000 (12:52 +0200)]
Fix indentation

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Xinchen Hui [Mon, 10 Mar 2014 07:55:05 +0000 (15:55 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoDo not remove *.1, it's not generated by make but configure
Xinchen Hui [Mon, 10 Mar 2014 07:54:20 +0000 (15:54 +0800)]
Do not remove *.1, it's not generated by make but configure

10 years agoFix typo: entory -> entry
Lior Kaplan [Sun, 9 Mar 2014 20:58:04 +0000 (22:58 +0200)]
Fix typo: entory -> entry

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Pierre Joye [Sun, 9 Mar 2014 20:17:06 +0000 (21:17 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  update news
  - fix #66869, Invalid 2nd argument crashes imageaffinematrixget
  add vc12 (2013)

Conflicts:
win32/build/confutils.js

10 years agoupdate news
Pierre Joye [Sun, 9 Mar 2014 20:13:15 +0000 (21:13 +0100)]
update news

10 years ago- fix #66869, Invalid 2nd argument crashes imageaffinematrixget
Pierre Joye [Sun, 9 Mar 2014 20:12:19 +0000 (21:12 +0100)]
- fix #66869, Invalid 2nd argument crashes imageaffinematrixget

10 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
Pierre Joye [Sun, 9 Mar 2014 20:11:19 +0000 (21:11 +0100)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

# By Remi Collet (6) and others
# Via Nikita Popov (1) and others
* 'PHP-5.5' of git.php.net:php-src:
  Fixed null termination
  Updated NEWS for #65545
  Add fread(length) method
  Fix HTML entity table generation
  Fix order in NEWS
  Add CVE ref (not known at release time)
  Fix NEWS for 5.5.11 fix (really not in 5.5.10)
  5.5.10 release date for NEWS
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.
  NEWS
  Fixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327

10 years agoupdated NEWS
Anatol Belski [Sun, 9 Mar 2014 12:06:32 +0000 (13:06 +0100)]
updated NEWS

10 years agoremoved the libsqlite patch as it's not relevant anymore
Anatol Belski [Sun, 9 Mar 2014 12:03:43 +0000 (13:03 +0100)]
removed the libsqlite patch as it's not relevant anymore

10 years agoupdated bundled libsqlite to 3.8.3.1
Anatol Belski [Sun, 9 Mar 2014 12:01:48 +0000 (13:01 +0100)]
updated bundled libsqlite to 3.8.3.1

10 years agoadd OPSYS_Z_CPM missing constant
Remi Collet [Fri, 7 Mar 2014 13:10:16 +0000 (14:10 +0100)]
add OPSYS_Z_CPM missing constant

10 years agoUpdate php.ini files (new openssl directives)
Daniel Lowrey [Fri, 7 Mar 2014 12:26:37 +0000 (05:26 -0700)]
Update php.ini files (new openssl directives)

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Tjerk Meesters [Fri, 7 Mar 2014 11:24:02 +0000 (19:24 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoFixed null termination
Tjerk Meesters [Fri, 7 Mar 2014 11:23:46 +0000 (19:23 +0800)]
Fixed null termination

10 years agoUpdated NEWS for #65545
Tjerk Meesters [Fri, 7 Mar 2014 10:57:55 +0000 (18:57 +0800)]
Updated NEWS for #65545

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Tjerk Meesters [Fri, 7 Mar 2014 10:57:36 +0000 (18:57 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoUpdated NEWS for #65545
Tjerk Meesters [Fri, 7 Mar 2014 10:51:16 +0000 (18:51 +0800)]
Updated NEWS for #65545

10 years agoAdd fread(length) method
datibbaw [Wed, 12 Feb 2014 06:06:29 +0000 (14:06 +0800)]
Add fread(length) method

Fixed off-by-one write bug

Added test

10 years agoInclude the T_POW operator in constant scalar expressions
Bob Weinand [Fri, 7 Mar 2014 06:39:20 +0000 (07:39 +0100)]
Include the T_POW operator in constant scalar expressions

10 years agoUpdated news for #66822
Tjerk Meesters [Thu, 6 Mar 2014 00:33:01 +0000 (08:33 +0800)]
Updated news for #66822

10 years agoAllow T_POW in constant expressions
Tjerk Meesters [Thu, 6 Mar 2014 00:31:01 +0000 (08:31 +0800)]
Allow T_POW in constant expressions

10 years agoFix typo
Christopher Jones [Fri, 7 Mar 2014 00:49:11 +0000 (16:49 -0800)]
Fix typo

10 years agoFix #66698: Add fnv1a32 and fnv1a64 hash options
Michael M Slusarz [Wed, 12 Feb 2014 09:55:49 +0000 (02:55 -0700)]
Fix #66698: Add fnv1a32 and fnv1a64 hash options

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Nikita Popov [Thu, 6 Mar 2014 22:15:30 +0000 (23:15 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Nikita Popov [Thu, 6 Mar 2014 22:12:41 +0000 (23:12 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years agoFix HTML entity table generation
Dmitry Panin [Wed, 12 Feb 2014 00:39:27 +0000 (16:39 -0800)]
Fix HTML entity table generation

10 years agoAdd test for bug #62102 / RFC 2144
Andrey Andreev [Wed, 5 Mar 2014 10:47:11 +0000 (12:47 +0200)]
Add test for bug #62102 / RFC 2144

Using test vectors from RFC 2144, section B.1 (http://tools.ietf.org/rfc/rfc2144.txt)

10 years agoWhitespace.
Christopher Jones [Thu, 6 Mar 2014 18:21:36 +0000 (10:21 -0800)]
Whitespace.

10 years agoMisc cleanup including adding the version number
Christopher Jones [Thu, 6 Mar 2014 18:16:42 +0000 (10:16 -0800)]
Misc cleanup including adding the version number

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Thu, 6 Mar 2014 10:02:40 +0000 (11:02 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix order in NEWS
  Add CVE ref (not known at release time)
  Fix NEWS for 5.5.11 fix (really not in 5.5.10)
  5.5.10 release date for NEWS

10 years agoFix order in NEWS
Remi Collet [Thu, 6 Mar 2014 09:55:10 +0000 (10:55 +0100)]
Fix order in NEWS

10 years agoAdd CVE ref (not known at release time)
Remi Collet [Thu, 6 Mar 2014 09:54:18 +0000 (10:54 +0100)]
Add CVE ref (not known at release time)

10 years agoFix NEWS for 5.5.11 fix (really not in 5.5.10)
Remi Collet [Thu, 6 Mar 2014 09:53:07 +0000 (10:53 +0100)]
Fix NEWS for 5.5.11 fix (really not in 5.5.10)

10 years ago5.5.10 release date for NEWS
Julien Pauli [Thu, 6 Mar 2014 09:18:10 +0000 (10:18 +0100)]
5.5.10 release date for NEWS

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Thu, 6 Mar 2014 09:16:30 +0000 (10:16 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Remi Collet [Thu, 6 Mar 2014 09:16:16 +0000 (10:16 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.

10 years agoSet default Digest Message to use SHA1 instead of MD5 in openssl tests
Remi Collet [Thu, 6 Mar 2014 09:14:08 +0000 (10:14 +0100)]
Set default Digest Message to use SHA1 instead of MD5 in openssl tests
as MD5 signature are now rejected by newer openssl Version.

Noticed in RHEL-7 and Fedora 21 build.

10 years agoAdd NEWS/UPGRADING notes (openssl + curl)
Daniel Lowrey [Wed, 5 Mar 2014 17:49:21 +0000 (10:49 -0700)]
Add NEWS/UPGRADING notes (openssl + curl)

10 years agoAdd encrypted server SNI support
Daniel Lowrey [Wed, 5 Mar 2014 15:50:23 +0000 (10:50 -0500)]
Add encrypted server SNI support

- New "SNI_server_certs" context option maps host names to
  appropriate certs should client handshakes advertise the
  SNI extension:

    $ctx = stream_context_create(["ssl" => [
        "local_cert" => "/path/to/cert.pem",
        "SNI_server_certs" => [
            "domain1.com" => "/path/to/domain1.pem",
            "*.domain2.com" => "/path/to/domain2.pem",
            "domain3.com" => "/path/to/domain3.pem"
        ]
    ]]);

- Prefixing a "*." will utilize the matching cert if a client
  requests the primary host name or any subdomain thereof. So
  in the above example our "domain2.pem" will be used for both
  requests to "domain2.com" -and- "subdomain.domain2.com"
- The "SNI_server_certs" ctx option has no effect for client
  streams.
- SNI support is enabled by default as of 5.6 for both servers
  and clients. Servers must specify the "SNI_server_certs" array
  to actually use the SNI extension, though.
- If the `"SNI_enabled" => false` ctx option is also passed then
  "SNI_server_certs" has no effect.
- While supporting SNI by itself is enough to successfully
  negotiate the TLS handshake with many clients, servers MUST
  still specify a "local_cert" ctx option or run the risk of
  connection failures from clients that do not support the SNI
  extension.

10 years agoRaise timeout to 2s, reworded ssl timeout warning
datibbaw [Tue, 4 Mar 2014 03:02:18 +0000 (11:02 +0800)]
Raise timeout to 2s, reworded ssl timeout warning

10 years agoRefactor + reorganize openssl files
Daniel Lowrey [Tue, 4 Mar 2014 01:57:33 +0000 (18:57 -0700)]
Refactor + reorganize openssl files

- All streams-related code now lives in xp_ssl.c. Previously
  stream code was split across both openssl.c and xp_ssl.c
- Folded superfluous php_openssl_structs.h into xp_ssl.c
- Server-specific options now set on SSL_CTX instead of SSL
- Deprecate SNI_server_name ctx option
- Miscellaneous refactoring

10 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Andrey Hristov [Wed, 5 Mar 2014 14:47:16 +0000 (16:47 +0200)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

10 years agoAdd NEWS entry for mcrypt changes
Nikita Popov [Wed, 5 Mar 2014 14:36:00 +0000 (15:36 +0100)]
Add NEWS entry for mcrypt changes

10 years agoUse zpp for accepting encryption mode string
Nikita Popov [Wed, 5 Mar 2014 14:18:27 +0000 (15:18 +0100)]
Use zpp for accepting encryption mode string

Leaving the non-zpp usage for the mcrypt_{MODE} functions, as
they're deprecated and I'm too lazy to update all their tests.

10 years agoRemove a number of macros that are no longer used
Nikita Popov [Wed, 5 Mar 2014 14:09:25 +0000 (15:09 +0100)]
Remove a number of macros that are no longer used

10 years agoProvide expected IV length in IV error messages
Nikita Popov [Wed, 5 Mar 2014 11:42:01 +0000 (12:42 +0100)]
Provide expected IV length in IV error messages

10 years agoCall mcrypt_module_close on error
Nikita Popov [Sun, 2 Mar 2014 22:26:46 +0000 (23:26 +0100)]
Call mcrypt_module_close on error

10 years agoPrint supported key sizes in error message
Nikita Popov [Sun, 2 Mar 2014 22:23:12 +0000 (23:23 +0100)]
Print supported key sizes in error message

10 years agoClean up do_crypt code
Nikita Popov [Sat, 1 Mar 2014 23:42:13 +0000 (00:42 +0100)]
Clean up do_crypt code

Avoid unnecessary alloc/copy/free cycles and clean up structure in
general. Add a few extra checks for the key length.

10 years agoAbort on invalid key size
Nikita Popov [Sat, 1 Mar 2014 22:51:03 +0000 (23:51 +0100)]
Abort on invalid key size

Previously an incorrectly sized key was either silently padded
with NUL bytes or truncated. Especially the silent nature of this
behavior makes it extremely easy to use weak encryption. A common
mistake - which has also been extensively made in our tests - is
to use a password instead of a key.

Incorrectly sized keys will now be rejected.

10 years agoAbort on missing IV if the enc_mode requires it
Nikita Popov [Sat, 1 Mar 2014 14:42:07 +0000 (15:42 +0100)]
Abort on missing IV if the enc_mode requires it

Previously the code fell back on using a NUL IV if no IV was
passed and the encryption mode required it. This is dangerous and
makes no sense from a practical point of view (as you could just
as well use ECB then).

10 years agoAbort on invalid IV size
Nikita Popov [Sat, 1 Mar 2014 14:29:20 +0000 (15:29 +0100)]
Abort on invalid IV size

Previously, if the size of the IV did not match the block size
mcrypt would throw a warning and fall back to a NUL IV. This
behavior is both dangerous and makes no practical sense.

mcrypt_encrypt etc. will now return false if the IV has an incorrect
size.

10 years agoRefactor the result set data structures. Move more to the buffered and unbuffered
Andrey Hristov [Wed, 5 Mar 2014 14:22:23 +0000 (16:22 +0200)]
Refactor the result set data structures. Move more to the buffered and unbuffered
substructures. Add methods to these too. Preparing for pluggable interface for
returning data to the engine (zvals, c-style, something else)

10 years agoNEWS
Remi Collet [Wed, 5 Mar 2014 09:45:50 +0000 (10:45 +0100)]
NEWS

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Wed, 5 Mar 2014 09:44:04 +0000 (10:44 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  NEWS
  Fixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327

10 years agoNEWS
Remi Collet [Wed, 5 Mar 2014 09:43:45 +0000 (10:43 +0100)]
NEWS

10 years agoFixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327
Remi Collet [Wed, 5 Mar 2014 09:40:36 +0000 (10:40 +0100)]
Fixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327

This amends commit 8f4a537, which aimed to correct NULL dereference because of
missing check of gdImageCreateTrueColor() / gdImageCreate() return value.  That
commit checks for negative crop rectangle width and height, but
gdImageCreate*() can also return NULL when width * height overflows.  Hence
NULL deref is still possible, as gdImageSaveAlpha() and gdImagePaletteCopy()
is called before dst == NULL check.

This moves NULL check to happen right after gdImageCreate*().  It also removes
width and height check before gdImageCreate*(), as the same check is done by
image create functions (with an extra warning).

From thoger redhat com

10 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
Pierre Joye [Wed, 5 Mar 2014 09:37:04 +0000 (10:37 +0100)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

# By Anatol Belski (38) and others
# Via Anatol Belski (23) and others
* 'PHP-5.5' of git.php.net:php-src: (325 commits)
  NEWS
  NEWS
  Fixed Bug #66820 out-of-bounds memory access in fileinfo
  Improves fix for memory leak, keep in sync with upstream.
  Fixed news for #60602
  Updated news for #60602
  proc_open(): separate environment values that aren't strings
  Fixed NEWS.
  Updated news for #66535 and #66109
  Updated NEWS for #66535
  don't compare constants on run time
  substr_compare(): Allow zero length comparison
  Fixed test case title
  [bug 66535] X-PHP-Originating-Script adds newline if no custom headers are given
  Fixed expected output of a few cURL test cases
  Allow NULL as value for CURLOPT_CUSTOMREQUEST option.
  man page: long option name is --strip, not --stripped
  --global have be removed in 5.2
  typo spotted by Lajos Veres
  update libs_version.txt
  ...

10 years agoMerge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Pierre Joye [Wed, 5 Mar 2014 09:32:42 +0000 (10:32 +0100)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4

# By Anatol Belski (22) and others
# Via Derick Rethans (5) and others
* 'PHP-5.4' of git.php.net:php-src: (176 commits)
  NEWS
  Fixed Bug #66820 out-of-bounds memory access in fileinfo
  Improves fix for memory leak, keep in sync with upstream.
  Updated news for #60602
  proc_open(): separate environment values that aren't strings
  Updated NEWS for #66535
  Fixed test case title
  [bug 66535] X-PHP-Originating-Script adds newline if no custom headers are given
  man page: long option name is --strip, not --stripped
  --global have be removed in 5.2
  NEWS
  test for bug #66762
  Fixed Bug #66762 Segfault in mysqli_stmt::bind_result() when link closed
  fix tests broken by 633f898f1520253d3530fe91fc82f68bca7c4627
  add news entry
  add clear_env option to FPM config
  Reduce test noise on cross Oracle client <-> server version tests. This fix is already in PHP 5.6+
  Reduce test noise in cross Oracle client <-> server version testing. This change is already in PHP 5.6+
  fixed macro
  Make sure value is initialized
  ...

10 years agofix merge
Remi Collet [Tue, 4 Mar 2014 19:39:00 +0000 (20:39 +0100)]
fix merge

10 years agoNEWS
Remi Collet [Tue, 4 Mar 2014 19:36:31 +0000 (20:36 +0100)]
NEWS

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Remi Collet [Tue, 4 Mar 2014 19:36:08 +0000 (20:36 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  NEWS
  Fixed Bug #66820 out-of-bounds memory access in fileinfo

10 years agoNEWS
Remi Collet [Tue, 4 Mar 2014 19:35:56 +0000 (20:35 +0100)]
NEWS

10 years agoFixed Bug #66820 out-of-bounds memory access in fileinfo
Remi Collet [Tue, 4 Mar 2014 19:32:52 +0000 (20:32 +0100)]
Fixed Bug #66820 out-of-bounds memory access in fileinfo

Upstream fix:
https://github.com/glensc/file/commit/447558595a3650db2886cd2f416ad0beba965801

Notice, test changed, with upstream agreement:
-define OFFSET_OOB(n, o, i) ((n) < (o) || (i) >= ((n) - (o)))
+define OFFSET_OOB(n, o, i) ((n) < (o) || (i) >  ((n) - (o)))

10 years agofix merge
Remi Collet [Tue, 4 Mar 2014 12:46:21 +0000 (13:46 +0100)]
fix merge