]> granicus.if.org Git - php/log
php
12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Xinchen Hui [Sat, 21 Jul 2012 15:27:52 +0000 (23:27 +0800)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix test failed
  Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)

12 years agoFix test failed
Xinchen Hui [Sat, 21 Jul 2012 15:27:09 +0000 (23:27 +0800)]
Fix test failed

12 years agoFixed bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segment...
Xinchen Hui [Sat, 21 Jul 2012 15:26:18 +0000 (23:26 +0800)]
Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)

12 years agoFixed bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segment...
Xinchen Hui [Sat, 21 Jul 2012 14:45:16 +0000 (22:45 +0800)]
Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault)

12 years agoFixed bug #55544 (ob_gzhandler always conflicts with zlib.output_compression)
Xinchen Hui [Fri, 20 Jul 2012 18:56:28 +0000 (02:56 +0800)]
Fixed bug #55544 (ob_gzhandler always conflicts with zlib.output_compression)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Xinchen Hui [Fri, 20 Jul 2012 16:47:54 +0000 (00:47 +0800)]
Merge branch 'PHP-5.3' into PHP-5.4

12 years agomerge 9eb5cb6571698ca1c623ad3e02c8727c4b0c9a09 to 5.3
Xinchen Hui [Fri, 20 Jul 2012 16:46:32 +0000 (00:46 +0800)]
merge 9eb5cb6571698ca1c623ad3e02c8727c4b0c9a09 to 5.3

12 years agothis initialization is unnecessary anymore after commit 2d9d2cadadf0fdf12a01b4a689d05...
Xinchen Hui [Wed, 18 Jul 2012 13:45:37 +0000 (21:45 +0800)]
this initialization is unnecessary anymore after commit 2d9d2cadadf0fdf12a01b4a689d0554e1450904f

12 years agoFixed bug #62597 (segfault in php_stream_wrapper_log_error with ZTS build)
Xinchen Hui [Wed, 18 Jul 2012 12:16:27 +0000 (20:16 +0800)]
Fixed bug #62597 (segfault in php_stream_wrapper_log_error with ZTS build)

12 years agoFix test (no charset outputed)
Xinchen Hui [Wed, 18 Jul 2012 11:50:30 +0000 (19:50 +0800)]
Fix test (no charset outputed)

12 years agoskip for ZTS
Xinchen Hui [Wed, 18 Jul 2012 11:47:54 +0000 (19:47 +0800)]
skip for ZTS

12 years agofix test (dos2unix, typo)
Xinchen Hui [Wed, 18 Jul 2012 11:25:22 +0000 (19:25 +0800)]
fix test (dos2unix, typo)

12 years agofix test, the key may be a float value
Xinchen Hui [Wed, 18 Jul 2012 11:21:25 +0000 (19:21 +0800)]
fix test, the key may be a float value

12 years agoFixed bug #62594 (segfault in mysqlnd_res_meta::set_mode)
Xinchen Hui [Wed, 18 Jul 2012 11:06:27 +0000 (19:06 +0800)]
Fixed bug #62594 (segfault in mysqlnd_res_meta::set_mode)

12 years agoBug doesn't exists in any release
Xinchen Hui [Wed, 18 Jul 2012 10:00:09 +0000 (18:00 +0800)]
Bug doesn't exists in any release

12 years agoNEWS for b47d6b32
Gustavo André dos Santos Lopes [Tue, 17 Jul 2012 21:12:25 +0000 (23:12 +0200)]
NEWS for b47d6b32

12 years agoFix test fails: ext/standard/tests/general_functions/bug27678.phpt
Reeze Xia [Tue, 17 Jul 2012 15:01:20 +0000 (23:01 +0800)]
Fix test fails: ext/standard/tests/general_functions/bug27678.phpt

After commit 3e62aae1, number_format() returns string with length,
but _php_math_number_format_ex_len() didn't set string length
on nan and inf. This cause segfault when destruct the return value.

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Tue, 17 Jul 2012 15:52:25 +0000 (17:52 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix for bug #62379 was missing in 5.3

12 years agoFix for bug #62379 was missing in 5.3
Anatoliy Belsky [Tue, 17 Jul 2012 15:50:05 +0000 (17:50 +0200)]
Fix for bug #62379 was missing in 5.3

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Hannes Magnusson [Tue, 17 Jul 2012 09:05:42 +0000 (10:05 +0100)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Do not unload shared extensions when checking for leaks

12 years agoDo not unload shared extensions when checking for leaks
Hannes Magnusson [Tue, 17 Jul 2012 09:04:56 +0000 (10:04 +0100)]
Do not unload shared extensions when checking for leaks

12 years agoUpdate libmagic.patch
Xinchen Hui [Sun, 15 Jul 2012 10:25:58 +0000 (18:25 +0800)]
Update libmagic.patch

12 years agoMerge branch 'pull-request/96' into PHP-5.4
Stanislav Malyshev [Sun, 15 Jul 2012 06:07:11 +0000 (23:07 -0700)]
Merge branch 'pull-request/96' into PHP-5.4

* pull-request/96:
  Implemented FR #61602 Allow access to name of constant used as default value

12 years agoupdate NEWS
Stanislav Malyshev [Sun, 15 Jul 2012 05:41:08 +0000 (22:41 -0700)]
update NEWS

12 years agoFixed bug #61527 (Recursive/ArrayIterator gives misleading notice when array empty...
Stanislav Malyshev [Sun, 15 Jul 2012 05:34:28 +0000 (22:34 -0700)]
Fixed bug #61527 (Recursive/ArrayIterator gives misleading notice when array empty or moved to the end)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Stanislav Malyshev [Sun, 15 Jul 2012 05:08:19 +0000 (22:08 -0700)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Typofix in test-description

12 years agoTypofix in test-description
Jille Timmermans [Thu, 12 Jul 2012 14:41:07 +0000 (16:41 +0200)]
Typofix in test-description

12 years agoremoved unneccesary arrat and ini settings
donnut [Thu, 28 Jun 2012 11:13:47 +0000 (11:13 +0000)]
removed unneccesary arrat and ini settings

12 years agoaddition SplFileObject tests
donnut [Sun, 24 Jun 2012 10:41:29 +0000 (10:41 +0000)]
addition SplFileObject tests

12 years agonew tests from PHP TestFest June 2012
donnut [Sun, 24 Jun 2012 06:30:24 +0000 (06:30 +0000)]
new tests from PHP TestFest June 2012

12 years agoFixing up closing tag
Adam Gegotek [Sat, 23 Jun 2012 13:10:16 +0000 (15:10 +0200)]
Fixing up closing tag

12 years agoTesting variation on input parameters of http_build_query() function
Adam Gegotek [Sat, 23 Jun 2012 12:58:58 +0000 (14:58 +0200)]
Testing variation on input parameters of http_build_query() function

12 years agoMerge branch 'pull-request/91' into PHP-5.4
Stanislav Malyshev [Sun, 15 Jul 2012 01:28:41 +0000 (18:28 -0700)]
Merge branch 'pull-request/91' into PHP-5.4

* pull-request/91:
  Fixed bug #61964 (finfo_open with directory cause invalid free)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Felipe Pena [Sat, 14 Jul 2012 18:15:24 +0000 (15:15 -0300)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  - Fixed bug #62525 (sigabrt while converting floating point to string)

12 years ago- Fixed bug #62525 (sigabrt while converting floating point to string)
Felipe Pena [Sat, 14 Jul 2012 18:15:11 +0000 (15:15 -0300)]
- Fixed bug #62525 (sigabrt while converting floating point to string)

12 years ago- Fixed conflict
Felipe Pena [Sat, 14 Jul 2012 16:16:35 +0000 (13:16 -0300)]
- Fixed conflict

12 years ago- Fixed memory leak when extending DOMXPath
Felipe Pena [Sat, 14 Jul 2012 16:13:31 +0000 (13:13 -0300)]
- Fixed memory leak when extending DOMXPath

12 years ago- BFN
Felipe Pena [Sat, 14 Jul 2012 15:27:44 +0000 (12:27 -0300)]
- BFN

12 years ago- Fixed bug #62565 (Crashes due non-initialized internal properties_table)
Felipe Pena [Sat, 14 Jul 2012 15:16:16 +0000 (12:16 -0300)]
- Fixed bug #62565 (Crashes due non-initialized internal properties_table)

12 years ago- Fixed bug #62564 (Extending MessageFormatter and adding property causes crash)
Felipe Pena [Sat, 14 Jul 2012 14:37:08 +0000 (11:37 -0300)]
- Fixed bug #62564 (Extending MessageFormatter and adding property causes crash)

12 years agoFixed bug #62379 failing ODBC long column functionality
Matt Ficken [Fri, 13 Jul 2012 13:34:00 +0000 (15:34 +0200)]
Fixed bug #62379 failing ODBC long column functionality

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Fri, 13 Jul 2012 09:46:14 +0000 (11:46 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fixed bug #61677 ext\zlib\tests\bug_52944.phpt fails

12 years agoFixed bug #61677 ext\zlib\tests\bug_52944.phpt fails
Anatoliy Belsky [Fri, 13 Jul 2012 09:39:57 +0000 (11:39 +0200)]
Fixed bug #61677 ext\zlib\tests\bug_52944.phpt fails

The test is known to fail on windows with zlib version < 1.2.7 (current dep is 1.2.5),
with 1.2.7 it works. As it's primarily a zlib 1.2.5 issue on windows, skip it for now.

12 years agofixed the test for warnings changed
Anatoliy Belsky [Thu, 12 Jul 2012 16:24:38 +0000 (18:24 +0200)]
fixed the test for warnings changed

12 years agoreverted news about #62477
Anatoliy Belsky [Thu, 12 Jul 2012 08:57:56 +0000 (10:57 +0200)]
reverted news about #62477

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Thu, 12 Jul 2012 08:57:26 +0000 (10:57 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  reverted changes for #62477

12 years agoreverted changes for #62477
Anatoliy Belsky [Thu, 12 Jul 2012 08:54:14 +0000 (10:54 +0200)]
reverted changes for #62477

12 years agoupdated NEWS
Anatoliy Belsky [Wed, 11 Jul 2012 20:37:39 +0000 (22:37 +0200)]
updated NEWS

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Wed, 11 Jul 2012 20:35:00 +0000 (22:35 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  updated NEWS

12 years agoupdated NEWS
Anatoliy Belsky [Wed, 11 Jul 2012 20:33:42 +0000 (22:33 +0200)]
updated NEWS

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anatoliy Belsky [Wed, 11 Jul 2012 20:29:45 +0000 (22:29 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fixed bug #62477 LimitIterator int overflow

12 years agoFixed bug #62477 LimitIterator int overflow
Anatoliy Belsky [Wed, 11 Jul 2012 20:25:31 +0000 (22:25 +0200)]
Fixed bug #62477 LimitIterator int overflow

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Xinchen Hui [Tue, 10 Jul 2012 10:45:16 +0000 (18:45 +0800)]
Merge branch 'PHP-5.3' into PHP-5.4

12 years agoFixed Bug #62500 (Segfault in DateInterval class when extended)
Xinchen Hui [Tue, 10 Jul 2012 10:43:11 +0000 (18:43 +0800)]
Fixed Bug #62500 (Segfault in DateInterval class when extended)

12 years agoFixed test bug #62312 (warnings changed one more time)
Anatoliy Belsky [Mon, 9 Jul 2012 16:21:51 +0000 (18:21 +0200)]
Fixed test bug #62312 (warnings changed one more time)

12 years agoMerge branch 'PHP-5.4' of ssh://git.php.net/php-src into PHP-5.4
andrey [Mon, 9 Jul 2012 14:59:42 +0000 (17:59 +0300)]
Merge branch 'PHP-5.4' of ssh://git.php.net/php-src into PHP-5.4

12 years agofix valgrind warning
andrey [Mon, 9 Jul 2012 14:59:23 +0000 (17:59 +0300)]
fix valgrind warning

12 years agofixed #62433 test for win
Anatoliy Belsky [Mon, 9 Jul 2012 10:42:10 +0000 (12:42 +0200)]
fixed #62433 test for win

12 years agoupdate NEWS
Xinchen Hui [Mon, 9 Jul 2012 00:44:59 +0000 (08:44 +0800)]
update NEWS

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Xinchen Hui [Mon, 9 Jul 2012 00:38:03 +0000 (08:38 +0800)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false)
  appease MSVC (doesnt like unary minus of unsigned ints)

Conflicts:
ext/curl/interface.c

12 years agoFixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false)
Xinchen Hui [Mon, 9 Jul 2012 00:32:40 +0000 (08:32 +0800)]
Fixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false)

this bc break is caused by the fix for #61948

12 years agoappease MSVC (doesnt like unary minus of unsigned ints)
Nuno Lopes [Sun, 8 Jul 2012 19:19:41 +0000 (15:19 -0400)]
appease MSVC (doesnt like unary minus of unsigned ints)

12 years agoappease MSVC (doesnt like unary minus of unsigned ints)
Nuno Lopes [Sun, 8 Jul 2012 19:19:41 +0000 (15:19 -0400)]
appease MSVC (doesnt like unary minus of unsigned ints)

12 years ago- Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of...
Felipe Pena [Sun, 8 Jul 2012 17:05:28 +0000 (14:05 -0300)]
- Fixed bug #62507 (['REQUEST_TIME'] under mod_php5 returns miliseconds instead of seconds)

12 years agoFixed Bug #62500 (Segfault in DateInterval class when extended)
Xinchen Hui [Sun, 8 Jul 2012 16:25:48 +0000 (00:25 +0800)]
Fixed Bug #62500 (Segfault in DateInterval class when extended)

This fix also fixed bug #62508  (Segfault while access a non-string
property of DateInterval object)

12 years agoMerge branch 'pull-request/112' into PHP-5.4
Stanislav Malyshev [Sat, 7 Jul 2012 19:50:03 +0000 (12:50 -0700)]
Merge branch 'pull-request/112' into PHP-5.4

* pull-request/112:
  Added in NEWS and UPGRADING for feature 55218
  Adding in test for feature 55218
  Implements feature 55218

12 years agoAdded in NEWS and UPGRADING for feature 55218
Lonny Kapelushnik [Sat, 7 Jul 2012 13:10:08 +0000 (09:10 -0400)]
Added in NEWS and UPGRADING for feature 55218

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Anthony Ferrara [Sat, 7 Jul 2012 02:38:15 +0000 (22:38 -0400)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix two issues with run-tests.php

12 years agoFix two issues with run-tests.php
Anthony Ferrara [Sat, 7 Jul 2012 02:37:50 +0000 (22:37 -0400)]
Fix two issues with run-tests.php

1. E_STRICT error due to passing return of array_intersect() into reset() directly
2. Details in junit output can produce invalid UTF-8 and XML due to unescaped characters

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Nikita Popov [Thu, 5 Jul 2012 18:59:18 +0000 (20:59 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix potential integer overflow in nl2br
  Fix potential integer overflow in bin2hex

Conflicts:
ext/standard/string.c

12 years agoFix potential integer overflow in nl2br
Nikita Popov [Thu, 5 Jul 2012 18:31:58 +0000 (20:31 +0200)]
Fix potential integer overflow in nl2br

The buffer size was calculated manually, thus creating integer overflows
for very large inputs, e.g. nl2br(str_repeat("\n", 613566757)).

The code now uses safe_emalloc, thus making the code throw an error
instead of crashing.

12 years agoFix potential integer overflow in bin2hex
Nikita Popov [Thu, 5 Jul 2012 18:14:49 +0000 (20:14 +0200)]
Fix potential integer overflow in bin2hex

The code was already using safe_emalloc but did the multiplication in
the first argument, thus making the use of safe_emalloc pretty useless.

The *2 is now moved to the second argument.

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Johannes Schlüter [Wed, 4 Jul 2012 23:18:57 +0000 (01:18 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

12 years agoThis wil be PHP 5.3.16
Johannes Schlüter [Wed, 4 Jul 2012 23:15:27 +0000 (01:15 +0200)]
This wil be PHP 5.3.16

12 years agoRevert change 3f3ad30c50: There shouldn't be new features in 5.3, especially
johannes [Wed, 4 Jul 2012 22:55:47 +0000 (00:55 +0200)]
Revert change 3f3ad30c50: There shouldn't be new features in 5.3, especially
not if they aren't in 5.4, too.

12 years agofix (signed) integer overflow (part of bug #52550
Nuno Lopes [Mon, 2 Jul 2012 05:31:40 +0000 (01:31 -0400)]
fix (signed) integer overflow (part of bug #52550

12 years agofix (signed) integer overflow (part of bug #52550
Nuno Lopes [Mon, 2 Jul 2012 05:31:40 +0000 (01:31 -0400)]
fix (signed) integer overflow (part of bug #52550

12 years agoFixed bug #62433 (Inconsistent behavior of RecursiveDirectoryIterator to dot files).
Xinchen Hui [Mon, 2 Jul 2012 03:33:38 +0000 (11:33 +0800)]
Fixed bug #62433 (Inconsistent behavior of RecursiveDirectoryIterator to dot files).

12 years agoFix accidential change of php_version.h
Nikita Popov [Sun, 1 Jul 2012 15:05:19 +0000 (17:05 +0200)]
Fix accidential change of php_version.h

For some reason the merge reverts changed the version :/

12 years agoRevert JSON merges to 5.4
Nikita Popov [Sun, 1 Jul 2012 14:38:26 +0000 (16:38 +0200)]
Revert JSON merges to 5.4

This reverts the following merge commits (-m 1):

405ebfcd182a39f0960ff7d7055d49053d3e0316
d372b33c9b941be9a795bf3705bd22dc5f6092c3
36fa17a5fae84ab332366a202f0a709279a2466a

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Nikita Popov [Sun, 1 Jul 2012 14:35:43 +0000 (16:35 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Revert JSON changes to PHP 5.3

12 years agoRevert JSON changes to PHP 5.3
Nikita Popov [Sun, 1 Jul 2012 14:28:57 +0000 (16:28 +0200)]
Revert JSON changes to PHP 5.3

This reverts the following commits:

974324676b2436f159f42d9241c569f813471684
4662151ea7d7b6920d115cf2a2d6e9d4232727a3
84fe2cc890e49f40bac7c3ba74b3cfc6dc4cef2f

This does not revert the JSON changes released in PHP 5.3.14.

12 years agofix bug #61359: json_encode() calls too many reallocs
Stanislav Malyshev [Sun, 1 Jul 2012 02:14:30 +0000 (19:14 -0700)]
fix bug #61359: json_encode() calls too many reallocs

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Stanislav Malyshev [Sun, 1 Jul 2012 00:37:20 +0000 (17:37 -0700)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  remove duplicates, fix order

12 years agoupdate NEWS
Stanislav Malyshev [Sun, 1 Jul 2012 00:37:09 +0000 (17:37 -0700)]
update NEWS

12 years agoremove duplicates, fix order
Stanislav Malyshev [Sun, 1 Jul 2012 00:36:22 +0000 (17:36 -0700)]
remove duplicates, fix order

12 years agoFixed the common misspelling of the word occurred (occured -> occurred)
Marc Easen [Mon, 11 Jun 2012 20:47:40 +0000 (21:47 +0100)]
Fixed the common misspelling of the word occurred (occured -> occurred)

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Felipe Pena [Sat, 30 Jun 2012 19:29:47 +0000 (16:29 -0300)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  - Fixed bug #62415 (Undefined variable: diff in run-tests.php on line 2093 for successful XFAIL)

12 years ago- Fixed bug #62415 (Undefined variable: diff in run-tests.php on line 2093 for succes...
Felipe Pena [Sat, 30 Jun 2012 19:29:30 +0000 (16:29 -0300)]
- Fixed bug #62415 (Undefined variable: diff in run-tests.php on line 2093 for successful XFAIL)

12 years agomerge
andrey [Fri, 29 Jun 2012 13:32:55 +0000 (16:32 +0300)]
merge

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
andrey [Fri, 29 Jun 2012 11:48:37 +0000 (14:48 +0300)]
Merge branch 'PHP-5.3' into PHP-5.4

12 years agofix Bug #62273 Segmentation Fault in Mysqli/Mysqlnd
andrey [Fri, 29 Jun 2012 11:42:36 +0000 (14:42 +0300)]
fix Bug #62273  Segmentation Fault in Mysqli/Mysqlnd

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
andrey [Fri, 29 Jun 2012 11:41:11 +0000 (14:41 +0300)]
Merge branch 'PHP-5.3' into PHP-5.4

12 years agoMerge branch 'PHP-5.4' of ssh://git.php.net/php-src into PHP-5.4
andrey [Fri, 29 Jun 2012 11:41:01 +0000 (14:41 +0300)]
Merge branch 'PHP-5.4' of ssh://git.php.net/php-src into PHP-5.4

12 years agoMerge branch 'PHP-5.3' of ssh://git.php.net/php-src into PHP-5.3
andrey [Fri, 29 Jun 2012 11:40:41 +0000 (14:40 +0300)]
Merge branch 'PHP-5.3' of ssh://git.php.net/php-src into PHP-5.3

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
Nikita Popov [Fri, 29 Jun 2012 11:15:35 +0000 (13:15 +0200)]
Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fix some lengths in crypt()

Conflicts:
ext/standard/crypt.c

12 years agoFix some lengths in crypt()
Nikita Popov [Fri, 29 Jun 2012 10:47:37 +0000 (12:47 +0200)]
Fix some lengths in crypt()

Use salt_len_in instead of strlen(salt) or PHP_MAX_SALT_LEN, otherwise too
much memory will be allocated.

sha512 has a 86 character checksum, not 43. That probably was a copy&paste
from the sha256 code which indeed has 43.

The allocation also was using sizeof(char *), thus allocating 4 or 8 times
as much memory as necessary. The sizeof(char *) was removed in the 5.4
branch in b7a92c9 but forgotten on 5.3.

The memset 0 call was using PHP_MAX_SALT_LEN which can be smaller than the
output buffer and thus not zeroing out everything. Use the size of the
output buffer (needed) instead.

12 years agoMerge branch 'PHP-5.3' into PHP-5.4
andrey [Fri, 29 Jun 2012 09:43:14 +0000 (12:43 +0300)]
Merge branch 'PHP-5.3' into PHP-5.4

12 years agonew charsets
andrey [Fri, 29 Jun 2012 09:42:54 +0000 (12:42 +0300)]
new charsets

12 years agofix NEWS order
Stanislav Malyshev [Fri, 29 Jun 2012 01:08:11 +0000 (18:08 -0700)]
fix NEWS order