]> granicus.if.org Git - php/log
php
11 years agoUpdated UPGRADING to cover PDO_pgsql changes
Matteo Beccati [Wed, 12 Mar 2014 11:31:04 +0000 (12:31 +0100)]
Updated UPGRADING to cover PDO_pgsql changes

11 years agoUpdated NEWS
Matteo Beccati [Tue, 11 Mar 2014 22:28:53 +0000 (23:28 +0100)]
Updated NEWS

11 years agoAdded new PDO::PGSQL_ATTR_DISABLE_PREPARES that uses PQexecParams
Matteo Beccati [Sun, 9 Mar 2014 13:08:17 +0000 (14:08 +0100)]
Added new PDO::PGSQL_ATTR_DISABLE_PREPARES that uses PQexecParams

Faster than prepared statements when queries are run once. Slightly
slower than PDO::ATTR_EMULATE_PREPARES but without the potential
security implications of embedding parameters in the query itself.

11 years agoDeprecated PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT
Matteo Beccati [Sun, 9 Mar 2014 11:14:23 +0000 (12:14 +0100)]
Deprecated PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT

11 years agoDrop PDO support for extremely old libpq versions
Matteo Beccati [Sun, 9 Mar 2014 10:43:13 +0000 (11:43 +0100)]
Drop PDO support for extremely old libpq versions

configure will now fail if any of the following function is missing:
* PQprepare
* PQexecParams
* PQescapeStringConn
* PQescapeByteaConn

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Adam Harvey [Tue, 11 Mar 2014 18:06:39 +0000 (11:06 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

11 years agoFix compile error with theoretically supported versions of libcurl < 7.12.3.
Adam Harvey [Tue, 11 Mar 2014 18:04:26 +0000 (11:04 -0700)]
Fix compile error with theoretically supported versions of libcurl < 7.12.3.

11 years agofix path separator
Anatol Belski [Tue, 11 Mar 2014 15:29:30 +0000 (16:29 +0100)]
fix path separator

11 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.

11 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

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

11 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

11 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

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

11 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

11 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

11 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.

11 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)

11 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)

11 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)

11 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)

11 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

11 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

11 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

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

11 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

11 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

11 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

11 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

11 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

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

11 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

11 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

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

11 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

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

11 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

11 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

11 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

11 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.

11 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

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

11 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

11 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

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

11 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

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

11 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

11 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

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

11 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

11 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

11 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

11 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)

11 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

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

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

11 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

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

11 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

11 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

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

11 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

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

11 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

11 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

11 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

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

11 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)

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

11 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

11 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

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

11 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)

11 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)

11 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

11 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.

11 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.

11 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.

11 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)

11 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.

11 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

11 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

11 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

11 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

11 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.

11 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

11 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

11 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

11 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

11 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.

11 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.

11 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).

11 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.

11 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)

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

11 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

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

11 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

11 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
  ...