]> granicus.if.org Git - php/log
php
12 years agoFixed defective cloning in ext/intl classes
Gustavo Lopes [Sun, 26 Aug 2012 21:37:09 +0000 (23:37 +0200)]
Fixed defective cloning in ext/intl classes

See also bug #62915

Cherry picked from 886a50a (I forgot about 5.3)

Conflicts:
ext/intl/spoofchecker/spoofchecker_class.c
ext/intl/transliterator/transliterator_class.c

12 years agoFixed bug (segfault while build with zts and GOTO vm-kind)
Xinchen Hui [Sat, 25 Aug 2012 13:47:53 +0000 (21:47 +0800)]
Fixed bug (segfault while build with zts and GOTO vm-kind)

12 years agobetter fix
Xinchen Hui [Fri, 24 Aug 2012 10:21:49 +0000 (18:21 +0800)]
better fix

12 years agoFix test
Xinchen Hui [Fri, 24 Aug 2012 10:18:38 +0000 (18:18 +0800)]
Fix test

12 years agoFixed bug #62904 (Crash when cloning an object which inherits SplFixedArray)
Xinchen Hui [Thu, 23 Aug 2012 15:27:16 +0000 (23:27 +0800)]
Fixed bug #62904 (Crash when cloning an object which inherits SplFixedArray)

12 years agoZTS fix introduced by Felipe must also go into 5.3
Anatoliy Belsky [Thu, 23 Aug 2012 11:32:06 +0000 (13:32 +0200)]
ZTS fix introduced by Felipe must also go into 5.3

12 years agoUpdated INSTALL. Generated from the XML Docs.
Philip Olson [Thu, 23 Aug 2012 06:33:29 +0000 (23:33 -0700)]
Updated INSTALL. Generated from the XML Docs.

12 years agoUpdate NEWS given a5d0c1e2
Gustavo Lopes [Wed, 22 Aug 2012 21:04:46 +0000 (23:04 +0200)]
Update NEWS given a5d0c1e2

12 years agoFix handling of several uinitialized intl objects
Gustavo Lopes [Tue, 21 Aug 2012 21:21:59 +0000 (23:21 +0200)]
Fix handling of several uinitialized intl objects

12 years agoFixed bug #62885 (mysqli_poll - Segmentation fault)
Xinchen Hui [Wed, 22 Aug 2012 05:41:47 +0000 (13:41 +0800)]
Fixed bug #62885 (mysqli_poll - Segmentation fault)

12 years ago- Removed PHP 6 checks
Felipe Pena [Tue, 21 Aug 2012 23:15:34 +0000 (20:15 -0300)]
- Removed PHP 6 checks

12 years agoskip test properly
Xinchen Hui [Tue, 21 Aug 2012 14:11:11 +0000 (22:11 +0800)]
skip test properly

12 years agoAdded test for bug #51353. It'll be skipped by default and must be
Anatoliy Belsky [Tue, 21 Aug 2012 11:22:00 +0000 (13:22 +0200)]
Added test for bug #51353. It'll be skipped by default and must be
activated manually.

12 years agoMove test files to tests dir
Reeze Xia [Tue, 21 Aug 2012 06:32:39 +0000 (14:32 +0800)]
Move test files to tests dir

There are 7 files duplicated, so those files was deleted

12 years agoskip test for bug 43130 on firebird , not relevant
Popa Adrian Marius [Mon, 20 Aug 2012 13:56:37 +0000 (16:56 +0300)]
skip test for bug 43130 on firebird , not relevant

12 years ago- Value stored to var is never used
Felipe Pena [Sun, 19 Aug 2012 18:09:14 +0000 (15:09 -0300)]
- Value stored to var is never used

12 years ago- Value stored to var is never used
Felipe Pena [Sun, 19 Aug 2012 17:50:49 +0000 (14:50 -0300)]
- Value stored to var is never used

12 years ago- Value stored to var is never used
Felipe Pena [Sun, 19 Aug 2012 17:34:38 +0000 (14:34 -0300)]
- Value stored to var is never used

12 years ago- Value stored to var is never used
Felipe Pena [Sun, 19 Aug 2012 15:55:38 +0000 (12:55 -0300)]
- Value stored to var is never used

12 years ago- Value stored to var is never used
Felipe Pena [Sun, 19 Aug 2012 15:44:44 +0000 (12:44 -0300)]
- Value stored to var is never used

12 years ago- Value stored to var is never read
Felipe Pena [Sun, 19 Aug 2012 15:13:48 +0000 (12:13 -0300)]
- Value stored to var is never read

12 years agoUpdate NEWS
Xinchen Hui [Sun, 19 Aug 2012 10:33:06 +0000 (18:33 +0800)]
Update NEWS

12 years agoFixed bug #62852 (Unserialize invalid DateTime causes crash)
Reeze Xia [Sun, 19 Aug 2012 09:57:45 +0000 (17:57 +0800)]
Fixed bug #62852 (Unserialize invalid DateTime causes crash)

12 years agoMore intl tests extracted from symfony
Matt Ficken [Fri, 17 Aug 2012 18:29:08 +0000 (20:29 +0200)]
More intl tests extracted from symfony

12 years agoFixed bug #62839
Pierrick Charron [Thu, 16 Aug 2012 18:48:44 +0000 (14:48 -0400)]
Fixed bug #62839

curl_copy_handle segfault with CURLOPT_FILE. The refcount was incremented
before the assignement.

12 years agoFixed bug #62838
Antony Dovgal [Thu, 16 Aug 2012 10:32:55 +0000 (14:32 +0400)]
Fixed bug #62838

enchant_dict_quick_check() destroys zval, but fails to initialize it

12 years agoMerge branch 'skipif1' into PHP-5.3
Christopher Jones [Tue, 14 Aug 2012 21:12:27 +0000 (14:12 -0700)]
Merge branch 'skipif1' into PHP-5.3

* skipif1:
  Fix skipifs

12 years agoFix skipifs
Christopher Jones [Tue, 14 Aug 2012 21:10:20 +0000 (14:10 -0700)]
Fix skipifs

Skipifs were referencing an unset variable

12 years agoSmall test tidy up
Christopher Jones [Tue, 14 Aug 2012 18:41:36 +0000 (11:41 -0700)]
Small test tidy up

Make some test changes so the tests can be run with the CLI webserver

12 years agoMerge fix e7535e06e63104ccc0c90c4425b6c2541aa3c939 to 5.3
Xinchen Hui [Tue, 14 Aug 2012 17:06:10 +0000 (01:06 +0800)]
Merge fix e7535e06e63104ccc0c90c4425b6c2541aa3c939 to 5.3

thanks for reeze.xia@gmail.com notice this

12 years agoFixed bug (segfault due to retval is not initialized)
Xinchen Hui [Tue, 14 Aug 2012 16:44:47 +0000 (00:44 +0800)]
Fixed bug (segfault due to retval is not initialized)

12 years agoFix exif test failure
Nikita Popov [Tue, 14 Aug 2012 15:33:38 +0000 (17:33 +0200)]
Fix exif test failure

There are two slightly different error messages for invalid pointers, so
make the pattern slightly less strict to account for both.

12 years agoMerge branch 'skip-memory-exhaust-tests' of https://github.com/reeze/php-src into...
Xinchen Hui [Tue, 14 Aug 2012 05:58:15 +0000 (13:58 +0800)]
Merge branch 'skip-memory-exhaust-tests' of https://github.com/reeze/php-src into PHP-5.3

12 years agoAsk for less random data in mcrypt_create_iv
Nikita Popov [Mon, 13 Aug 2012 19:46:15 +0000 (21:46 +0200)]
Ask for less random data in mcrypt_create_iv

Otherwise the RNG blocks and the test takes a lot of time to run (and
occasionally fails).

12 years agoRename mcrypt_cbf -> mcrypt_cfb
Nikita Popov [Mon, 13 Aug 2012 19:44:50 +0000 (21:44 +0200)]
Rename mcrypt_cbf -> mcrypt_cfb

Also fix ECB -> CFB in the initialization vector size call (not that it
makes a difference, they have the same size).

12 years agoFixed bug #62763 (register_shutdown_function and extending class)
Xinchen Hui [Sun, 12 Aug 2012 12:58:09 +0000 (20:58 +0800)]
Fixed bug #62763 (register_shutdown_function and extending class)

12 years agoFixed bug #62795 (Zip extension version not defined)
Xinchen Hui [Sat, 11 Aug 2012 07:59:06 +0000 (15:59 +0800)]
Fixed bug #62795 (Zip extension version not defined)

12 years agoSkip tests reply on Zend MM turned on
Reeze Xia [Fri, 10 Aug 2012 16:34:37 +0000 (00:34 +0800)]
Skip tests reply on Zend MM turned on

Those two tests have expect memory exhausted fatal error

12 years agoFix test, from PR 158
Xinchen Hui [Fri, 10 Aug 2012 16:22:52 +0000 (00:22 +0800)]
Fix test, from PR 158

12 years agoUpdate to work with libxml 2.9.0
Daniel Veillard [Thu, 9 Aug 2012 18:02:33 +0000 (14:02 -0400)]
Update to work with libxml 2.9.0

12 years agoAdded the intl tests extracted from Symfony. These are making the intl ext crash...
Matt Ficken [Mon, 6 Aug 2012 12:07:42 +0000 (14:07 +0200)]
Added the intl tests extracted from Symfony. These are making the intl ext crash with ICU at least 4.6, but probably with earlier versions too.

12 years agofix for #62460
Stanislav Malyshev [Mon, 6 Aug 2012 03:31:08 +0000 (20:31 -0700)]
fix for #62460

12 years agoFixed bug #62460 (php binaries installed as binary.dSYM)
Reeze Xia [Wed, 18 Jul 2012 16:27:34 +0000 (00:27 +0800)]
Fixed bug #62460 (php binaries installed as binary.dSYM)

See http://marc.info/?l=php-cvs&m=125961714419896
Mac OS X 10.7&10.8 affected too.

12 years agoFix 126 tests failed of phar when --enable-zend-multibyte
Xinchen Hui [Sun, 5 Aug 2012 04:40:59 +0000 (12:40 +0800)]
Fix 126 tests failed of phar when --enable-zend-multibyte

12 years agoThis becomes useless, since we have set that in the INIT macro
Xinchen Hui [Sat, 4 Aug 2012 03:03:21 +0000 (11:03 +0800)]
This becomes useless, since we have set that in the INIT macro

12 years agoFixed bug #62744 (dangling pointers made by zend_disable_class)
Xinchen Hui [Sat, 4 Aug 2012 02:41:26 +0000 (10:41 +0800)]
Fixed bug #62744 (dangling pointers made by zend_disable_class)

the test will be added while commit the fix for #62737

12 years agoFixed bug that can not get default value of parameter if it's not `optional`
Xinchen Hui [Thu, 2 Aug 2012 14:16:46 +0000 (22:16 +0800)]
Fixed bug that can not get default value of parameter if it's not `optional`

12 years agoFix test, wrong exepct rule used
Xinchen Hui [Thu, 2 Aug 2012 11:31:34 +0000 (19:31 +0800)]
Fix test, wrong exepct rule used

12 years agofix test due to float value
Xinchen Hui [Thu, 2 Aug 2012 11:14:06 +0000 (19:14 +0800)]
fix test due to float value

12 years agoFixed bug #62685 (Wrong return datatype in PDO::inTransaction())
Xinchen Hui [Thu, 2 Aug 2012 04:52:11 +0000 (12:52 +0800)]
Fixed bug #62685 (Wrong return datatype in PDO::inTransaction())

12 years agoFixed bug #62716 (munmap() is called with the incorrect length)
Xinchen Hui [Thu, 2 Aug 2012 04:30:07 +0000 (12:30 +0800)]
Fixed bug #62716 (munmap() is called with the incorrect length)

12 years agoFixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong result)
Xinchen Hui [Wed, 1 Aug 2012 12:23:30 +0000 (20:23 +0800)]
Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong result)

12 years agoTest for bug #62680
Xinchen Hui [Tue, 31 Jul 2012 02:49:13 +0000 (10:49 +0800)]
Test for bug #62680

12 years agoLimit test to ICU 49
Gustavo André dos Santos Lopes [Mon, 30 Jul 2012 08:27:41 +0000 (10:27 +0200)]
Limit test to ICU 49

12 years agoRemove executable bit from files
Gustavo André dos Santos Lopes [Mon, 30 Jul 2012 08:25:17 +0000 (10:25 +0200)]
Remove executable bit from files

12 years agoSike test while there is no zend mm max_size guard
Xinchen Hui [Sun, 29 Jul 2012 06:30:01 +0000 (14:30 +0800)]
Sike test while there is no zend mm max_size guard

12 years agoSkip test while zend mm is disabled
Xinchen Hui [Sun, 29 Jul 2012 05:25:31 +0000 (13:25 +0800)]
Skip test while zend mm is disabled

12 years agoMerge branch 'PHP-5.3' of git.php.net:php-src into PHP-5.3
Xinchen Hui [Sun, 29 Jul 2012 04:18:07 +0000 (12:18 +0800)]
Merge branch 'PHP-5.3' of git.php.net:php-src into PHP-5.3

12 years agoSkip test while zend_mm is disabled
Xinchen Hui [Sun, 29 Jul 2012 04:17:43 +0000 (12:17 +0800)]
Skip test while zend_mm is disabled

12 years ago- Fixed bug #57933 (Wrong table type used in phpinfo output) patch by: selsky at...
Felipe Pena [Sat, 28 Jul 2012 22:05:13 +0000 (19:05 -0300)]
- Fixed bug #57933 (Wrong table type used in phpinfo output) patch by: selsky at columbia dot edu

12 years agoFixed bug #60194 for eavl
Xinchen Hui [Sat, 28 Jul 2012 09:00:05 +0000 (17:00 +0800)]
Fixed bug #60194 for eavl

same reason here

12 years agoFixed bug #60194 (--with-zend-multibyte and --enable-debug reports LEAK with run...
Xinchen Hui [Fri, 27 Jul 2012 16:50:45 +0000 (00:50 +0800)]
Fixed bug #60194 (--with-zend-multibyte and --enable-debug reports LEAK with run-test.php)

It's not a big deal, just because lexer will read the char after cursor before leaving

12 years agoFix bug #62654
Rasmus Lerdorf [Tue, 24 Jul 2012 23:28:49 +0000 (16:28 -0700)]
Fix bug #62654

12 years agomerge 5.3.15 NEWS
Johannes Schlüter [Sun, 22 Jul 2012 20:45:39 +0000 (22:45 +0200)]
merge 5.3.15 NEWS

12 years agomissed the test script
Xinchen Hui [Sat, 21 Jul 2012 15:30:32 +0000 (23:30 +0800)]
missed the test script

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 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 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 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 agoTypofix in test-description
Jille Timmermans [Thu, 12 Jul 2012 14:41:07 +0000 (16:41 +0200)]
Typofix in test-description

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 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 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 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:33:42 +0000 (22:33 +0200)]
updated NEWS

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 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 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 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 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 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 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 agoremove duplicates, fix order
Stanislav Malyshev [Sun, 1 Jul 2012 00:36:22 +0000 (17:36 -0700)]
remove duplicates, fix order

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 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' 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 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 agonew charsets
andrey [Fri, 29 Jun 2012 09:42:54 +0000 (12:42 +0300)]
new charsets

12 years agoFixed bug #62443 (Crypt SHA256/512 Segfaults With Malformed Salt)
Anthony Ferrara [Fri, 29 Jun 2012 00:00:03 +0000 (20:00 -0400)]
Fixed bug #62443 (Crypt SHA256/512 Segfaults With Malformed Salt)

Fixed a memory allocation bug in crypt() SHA256/512 that can
cause segmentation faults when passed in salts with a null byte
early.

12 years agoAdd json_last_error_msg() function
Nikita Popov [Thu, 28 Jun 2012 18:09:47 +0000 (20:09 +0200)]
Add json_last_error_msg() function

This replaces json_last_error(true) and is consistent with other custom
error handling functions.

12 years agoFix #62432 ReflectionMethod random corrupt memory on high concurrent
Johannes Schlüter [Wed, 27 Jun 2012 21:26:33 +0000 (23:26 +0200)]
Fix #62432 ReflectionMethod random corrupt memory on high concurrent

This fixes the same issue in multiple extensions. This isn't needed
in later branches as 5.4 introduced object_properties_init()

12 years agoImprove JSON error handling
Nikita Popov [Wed, 27 Jun 2012 10:19:41 +0000 (12:19 +0200)]
Improve JSON error handling

json_encode() no longer throws warnings. Instead only the error code for
json_last_error() is set.

As it is hard to debug the error from just an error code an optional
$as_string parameter was added to json_last_error(), which returns an
error message instead of an error code.

12 years agoFix memleak in CLI
Johannes Schlüter [Wed, 27 Jun 2012 09:42:43 +0000 (11:42 +0200)]
Fix memleak in CLI

12 years agows fix
Stanislav Malyshev [Tue, 26 Jun 2012 22:22:29 +0000 (15:22 -0700)]
ws fix

12 years agoBFN
Moriyoshi Koizumi [Mon, 25 Jun 2012 10:20:38 +0000 (19:20 +0900)]
BFN