Commit Graph

25779 Commits

Author SHA1 Message Date
Scott MacVicar
974c3b4981 Fix Bug #54918 - Crash when there is a failure to read the browscap file 2011-06-03 00:42:07 +00:00
Felipe Pena
0aaedef71d - Fix crash in pcntl 2011-06-03 00:35:22 +00:00
Scott MacVicar
398c0b9dad Added fabled hex2bin() function 2011-06-03 00:12:22 +00:00
Ilia Alshanetsky
939875133a Zend Signal Handling (see RFC: https://wiki.php.net/rfc/zendsignals)
This needs to go into 5.4 as well, but will wait for Pierre to review win32 situation

# Patch by Lucas Nealan, Arnaud Le Blanc, Brian Shire & Ilia Alshanetsky
2011-06-02 21:16:50 +00:00
Gustavo André dos Santos Lopes
e87534b017 - Fixed double registering of browscap ini directive. See bug #54896. 2011-06-02 08:46:40 +00:00
Felipe Pena
df4c4a9e7f - Fixed bug #54970 (SplFixedArray::setSize() isn't resizing) 2011-06-02 00:40:27 +00:00
Ilia Alshanetsky
be20efc476 More tests 2011-06-01 16:59:23 +00:00
Ilia Alshanetsky
ccd3633b5c Implemented FR #54561 (Expose ICU Version & ICU Data Version info). 2011-06-01 16:26:21 +00:00
Ilia Alshanetsky
8083c1ab89 Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings). 2011-06-01 13:23:25 +00:00
Ilia Alshanetsky
850db4b315 Fixed bug #54484 (Empty string in json_decode doesn't reset json_last_error()). 2011-06-01 09:44:38 +00:00
Rafael Machado Dohms
5c29ef1d8a Adding testcases to validate imageloadfont input parameter validation, tests were developed at #tek11 testfest 2011-05-31 21:10:01 +00:00
Andrey Hristov
b730fde67f reuse code 2011-05-31 20:42:44 +00:00
Shein Alexey
a2566cb684 Fixed notice breaking the test. 2011-05-31 12:57:40 +00:00
Shein Alexey
a44a8af3a0 Removed test since there's no more safe_mode in PHP >= 5.4. 2011-05-31 12:45:00 +00:00
Andrey Hristov
33701b76ae fix macros 2011-05-31 10:35:07 +00:00
Ilia Alshanetsky
4bc1fb265b Removed unnecessary rinit/rshutdown 2011-05-31 08:59:32 +00:00
Hannes Magnusson
73c1488fec Fixed bug #54946 (stream_get_contents infinite loop) 2011-05-29 12:29:19 +00:00
Hannes Magnusson
ca90339957 Fixed bug #54601 (Removing the doctype node segfaults) 2011-05-29 11:39:49 +00:00
Ilia Alshanetsky
57674f784f Fixed bug #53848 (fgetcsv() ignores spaces at beginnings of fields). 2011-05-29 10:23:06 +00:00
Ilia Alshanetsky
3ec51648ad Fixed bug #54137 (file_get_contents POST request sends additional line break). 2011-05-29 09:23:08 +00:00
Felipe Pena
3dcb256919 - Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11) 2011-05-27 23:31:30 +00:00
Ilia Alshanetsky
c5e56ff90c Fixed bug #54924 (assert.* is not being reset upon request shutdown). 2011-05-26 18:17:43 +00:00
Pierre Joye
2c9136a25e -fix bug 54935, php_win_err can lead to crash 2011-05-26 14:37:13 +00:00
Felipe Pena
565d0063eb - Fixed ZTS build and removed unused vars 2011-05-25 22:23:48 +00:00
Stanislav Malyshev
f9088156f4 implement streams metadata API per RFC 2011-05-25 21:03:55 +00:00
Philip Olson
0183514cfb Fixed test, as per r311323 2011-05-25 00:02:05 +00:00
Felipe Pena
b2780241d7 - Fixed bug #50363 (Invalid parsing in convert.quoted-printable-decode filter)
Patch by: slusarz at curecanti dot org
2011-05-24 23:49:26 +00:00
Philip Olson
bc499c4078 Updated test. touch() emits E_WARNING for bogus values. Updated 5.3 test to look the same. 2011-05-24 23:27:49 +00:00
Felipe Pena
f020659d9d - Fix logic, it must check for both flags (as says the comment in the code) (bug #54912) 2011-05-24 22:34:07 +00:00
Felipe Pena
b28294acc2 - Fixed bug #54912 (filter/logical_filters.c:685:32: warning: use of logical || with constant op)
Initial patch by: crrodriguez at opensuse dot org
2011-05-24 22:24:06 +00:00
Pierre Joye
c689dd9d59 - Fix #54721, different Hashes on Windows, BSD and Linux on wrong Salt size 2011-05-24 13:48:04 +00:00
Dmitry Stogov
7da89df267 Fixed comilation on x86_64 2011-05-24 08:27:36 +00:00
Felipe Pena
52f40f07e6 - Fix the fix
# Arghh, copy and paste error :(
2011-05-24 00:10:00 +00:00
Felipe Pena
89f893a95e - Fixed stack buffer overflow in socket_connect().
Found by: Mateusz Kocielski, Marek Kroemeke and Filip Palian
2011-05-24 00:05:50 +00:00
Michael Wallner
327a87fdd9 Fix Bug #54727, a re-incarnation of #26862 2011-05-23 10:42:00 +00:00
Stanislav Malyshev
9b8acf87a6 fix some failing tests 2011-05-23 07:06:04 +00:00
Felipe Pena
584f1c4381 - Fixed bug #54269 (Short exception message buffer causes crash) 2011-05-22 19:06:21 +00:00
Rasmus Lerdorf
cebe2a2139 Increase the overly conservative pcre backtrack limit from 100000 to 1000000 2011-05-21 19:48:37 +00:00
Felipe Pena
ac6edb41ec - Fixed bug #54895 (Fix compiling with older gcc version without need for membar_producer macro)
patch by: mhei at heimpold dot de
2011-05-20 21:24:51 +00:00
Scott MacVicar
9e7ae3b2d0 Allow management of your own padding in openssl_encrypt/decrypt.
For using mcrypt / openssl interchangeabley managing your own padding is the only solution.
2011-05-20 18:56:13 +00:00
Scott MacVicar
81eaa0c7fd Tidy up ldap paging code and rename the API as discussed in #42060 2011-05-19 17:41:21 +00:00
Jeraimee Hughes
a7c5be302e Fixed failing test (mismatch of tzoffset) 2011-05-18 20:52:30 +00:00
Johannes Schlüter
5d6b3ca113 - handle out of memory 2011-05-18 11:49:49 +00:00
Johannes Schlüter
f0b306af39 - Keep the old arginfo for now
# This change we would E_RECOVERABLE instead of E_WARNING
# and needs some more review, as well fixing ~80 tests
2011-05-18 10:21:28 +00:00
Jeraimee Hughes
daecb2c0f4 Fixes for broken tests. 2011-05-17 15:08:15 +00:00
Andrew Curioso
47db582a34 Use iterator when necessary to get the full properties hash - consistent with count (see test: ext/simplexml/tests/034.phpt) 2011-05-17 13:50:48 +00:00
Dmitry Stogov
13338a8f60 Fixed crash on recursive error handler invocation 2011-05-17 12:27:21 +00:00
Andrey Hristov
6c2f42b544 exchange a "trap" with an error 2011-05-17 09:44:11 +00:00
Johannes Schlüter
b83b4880d3 - Move the field access behind the check
# Only called from one place where the connection is checked, but
# playing safe, again (parfait)
2011-05-17 00:16:57 +00:00
Ferenc Kovacs
be6170c30d adding an XFAIL, as we have an open bug for this test 2011-05-16 23:43:12 +00:00
Ferenc Kovacs
0016dffc7b adding an XFAIL, as we have an open bug for this test 2011-05-16 23:39:16 +00:00
Ferenc Kovacs
4be65b4391 set the timezone to UTC as suggested by Alexey Shein, and adding an SKIPIF as this test was originaly intended to be windows only 2011-05-16 23:35:23 +00:00
Ferenc Kovacs
b3d32b153d fix the test with the removal of the unnecessary newline 2011-05-16 23:33:05 +00:00
Ferenc Kovacs
0f214e5c2c adding the serialize_precision=100 for the tests, credits to Mats Lindh for reporting it 2011-05-16 23:31:14 +00:00
Ferenc Kovacs
3295e36bff removing XFAIL as #39863 has already been fixed 2011-05-16 23:28:46 +00:00
Johannes Schlüter
103ded60c0 - Handle error if tempfile can't be opened, found by parfait 2011-05-16 22:24:41 +00:00
Johannes Schlüter
9f3f4eb8e8 - Fix a few more memleaks found by parfait 2011-05-16 21:29:45 +00:00
Rasmus Lerdorf
575ea1ef0b Suppress a dozen unused return value warnings in places where the return
value is really not useful to us.
2011-05-16 17:22:41 +00:00
Rasmus Lerdorf
22b689a3f9 Add php_ignore_value() macro to suppress unused return value warnings
from gcc. There are times when we really don't care about the return
value and this will cleanly tell gcc.
2011-05-16 16:58:02 +00:00
Johannes Schlüter
0179c5a0e6 - Fix Bug #53782 (foreach throws irrelevant exception) 2011-05-16 15:37:39 +00:00
Johannes Schlüter
898e3095f1 - Move the access behind the check.
# I can't find an unsafe call, but let's play safe
2011-05-16 10:15:28 +00:00
Rasmus Lerdorf
438cc7f201 Drop support for autoconf < 2.60 in trunk and the
new PHP_5_4 branch. autoconf >= 2.60 should finally
be working now.
2011-05-15 06:09:21 +00:00
Rasmus Lerdorf
08792f6f9b Cache the pdo include path 2011-05-15 05:03:29 +00:00
Rasmus Lerdorf
a8df376b91 We can't really predict what will happen on an unknown host lookup
since bogus ISPs like Comcast and many others try to "help" by resolving
everything to their own search page.
2011-05-15 01:52:07 +00:00
Stanislav Malyshev
b7ed1bcb20 forgot tokenizer... 2011-05-15 00:48:05 +00:00
Stanislav Malyshev
516c2f5920 removing scalar types in trunk 2011-05-15 00:36:13 +00:00
Martin Jansen
41dbe39471 MFB: Fixed two failing tests that were caused by arbitrarily chosen
but apparently bogus upper resp. lower limits for mt_rand().
2011-05-14 20:38:47 +00:00
Rasmus Lerdorf
a0ae7e5828 en_US locale preferred output has AM/PM and also the timezone 2011-05-14 17:51:38 +00:00
Rasmus Lerdorf
0e07aeee7e Fix the require in these tests 2011-05-14 17:34:18 +00:00
Felipe Pena
f1967befc8 - Fix test 2011-05-14 01:00:59 +00:00
Rasmus Lerdorf
2a927b5d7f Make sure 'E' is included in the variables_order, otherwise
this test won't work.
2011-05-13 21:54:25 +00:00
Scott MacVicar
db0c957f02 Fix Windows build, this really should be in a patch file / README.
I'll fix this up later.
2011-05-13 13:51:07 +00:00
Scott MacVicar
6ec23faa99 Update bundled PCRE to 8.12 2011-05-13 07:00:45 +00:00
Scott MacVicar
735b3423a9 Update bundled SQLite to 3.7.6.2 2011-05-13 06:11:06 +00:00
Scott MacVicar
2c7fb35b83 Fix use after free() in XMLReader::xml() 2011-05-13 05:54:34 +00:00
Scott MacVicar
194b48088c Fixed bug #54723 - getimagesize() doesn't check the full ico signature and misreports mpg files 2011-05-13 05:06:48 +00:00
Rasmus Lerdorf
155972b117 Check headers first and let the CHECK_LIBRARY macro
handle checking for the library. This makes it 
correctly handle non-standard system paths as long
as gcc knows about them. Should fix the build on
Ubuntu natty.
2011-05-12 08:19:37 +00:00
Philip Olson
c6ea819db4 Added missing date_default_timezone_set('UTC'); to the appropriate tests. A few now pass by not showing the timezone warning. 2011-05-12 06:51:46 +00:00
Boris Lytochkin
dbed284039 fixed typos in tests
ucd-snmp epoch is over, drop legacy memory allocation (non e*)
tune 'buggy snmp_snprint_value' detection on some systems
2011-05-10 20:04:26 +00:00
Scott MacVicar
b966897a0d Turns out that more than 1% of users clocks are more than a year out of date, this causes cookies to never get deleted since the date is in the future.
I can only guess its due to batteries on the motherboard being dead.
2011-05-10 19:09:24 +00:00
Boris Lytochkin
97930e9170 method renaming:
SNMP::get_errno() -> SNMP::getErrno()
SNMP::get_error() -> SNMP::getError()
2011-05-10 11:48:10 +00:00
Adam Harvey
a642b52295 Fix bug #54692 (SQLite3::open() Return Value) by correcting the SQLite3::open()
prototype.
2011-05-10 08:14:55 +00:00
Andrey Hristov
9a197618b4 Fix range
(thanks again nihen)
2011-05-10 07:15:22 +00:00
Boris Lytochkin
9d2f7c1e3e remove method open, __construct is enough 2011-05-09 19:34:07 +00:00
Andrey Hristov
d4ae5bd995 Fix for bug 54674..typo in the check of SJIS 2011-05-09 16:20:35 +00:00
Johannes Schlüter
410a781063 - Fix bug #54644 (wrong pathes in php_pdo_mysql_int.h) 2011-05-09 11:34:17 +00:00
Boris Lytochkin
ee0d7f3207 * new option for SNMP::get: force keys of return array be as in request array
* new option for SNMP::walk: use suffix of OID for keys in return array, not full OID
2011-05-08 13:58:37 +00:00
Boris Lytochkin
1dc02ac2de fix error reporting on OID not increasing
calling arguments markup
2011-05-08 09:20:58 +00:00
Felipe Pena
1c24911a46 - Fixed bug #54681 (addGlob() crashes on invalid flags) 2011-05-07 01:58:26 +00:00
Andrey Hristov
91bddbe26e add the BLOCK_LEAVE macro for non-gcc and non-win 2011-05-04 19:09:12 +00:00
Andrey Hristov
84a309f87b reorganize the DBG_ macros, add DBG_BLOCK_XXX 2011-05-04 19:05:19 +00:00
Andrey Hristov
2d5e51db05 fix valgrind warning 2011-05-04 10:35:04 +00:00
Antony Dovgal
bb2ccc96d3 fix tests 2011-05-04 08:44:14 +00:00
Antony Dovgal
968d49ae65 fix test 2011-05-04 08:28:31 +00:00
Dmitry Stogov
fbe8cf9a40 Fixed crash when passing invalid timestamp (negative integer on win32) 2011-05-04 07:53:22 +00:00
Antony Dovgal
354cb67597 fix tests 2011-05-03 11:15:30 +00:00
Felipe Pena
48cb3447bb - Fixed ZTS build 2011-05-01 19:22:24 +00:00
Gustavo André dos Santos Lopes
6d9d7af86f - Fixed bug #54580 (get_browser() segmentation fault when the browscap ini
directive is set in activation time). This commit fixes this by adding a per
  request parsing of the browscap file that's when get_browser is called the
  first time and the directive is set on activation time.w
2011-05-01 18:37:20 +00:00
Gustavo André dos Santos Lopes
93f65cdeac - Fixed bug #54623 (Segfault when when writing to a persistent socket after
closing a copy of the socket).
2011-05-01 03:57:01 +00:00
Derick Rethans
9c285fddbb - Updated to version 2011.7 (2011g) 2011-04-30 20:18:51 +00:00
Gustavo André dos Santos Lopes
c2d392e934 - Fixed build on Solaris. 2011-04-30 15:56:07 +00:00
Gustavo André dos Santos Lopes
a6c9737749 - Fixed SKIPIF section missing a semicolon. 2011-04-30 15:54:44 +00:00
Peter Cowburn
e77bd31f3f fix method name in JsonSerializable exception message 2011-04-30 12:57:23 +00:00
Ilia Alshanetsky
118695a4ea #doc
Added 3rd parameter to filter_var_array() and filter_input_array() 
functions that allows disabling addition of empty elements
2011-04-28 12:32:47 +00:00
Rasmus Lerdorf
53204a26d2 Fix test by pointing this at a smaller file that is less likely to break the test 2011-04-27 21:27:31 +00:00
Rasmus Lerdorf
c09f0822fd Fix broken test 2011-04-27 15:08:44 +00:00
Martin Jansen
0c8438462c The project calls itself OpenSSL and not openSSL, so let's keep it
that way in our code as well.
2011-04-25 16:50:30 +00:00
Pierre Joye
b948b7d8ea - keep node creation check 2011-04-25 09:31:00 +00:00
Pierre Joye
c8542ceac6 - keep inode creation check 2011-04-25 09:28:08 +00:00
Rasmus Lerdorf
380c3e5127 SSLV2 patch cleanup 2011-04-24 23:27:48 +00:00
Pierre Joye
6336b28019 - fix use of unitiliazed var 2011-04-24 22:08:11 +00:00
Rasmus Lerdorf
f1806e67e6 Support for openssl without SSLv2 supprot compiled in. Distros are starting to
remove support now and this wasn't compiling anymore on my Debian dev box.
2011-04-24 20:47:22 +00:00
Stanislav Malyshev
3440d853c7 implement FR #54540 - Allow loading of arbitrary resource bundles when fallback is disabled 2011-04-17 21:56:26 +00:00
Rob Richards
944a2b0c80 Implement FR #48587 (MySQL PDO driver doesn't support SSL connections) 2011-04-15 14:24:40 +00:00
Felipe Pena
07f60310b2 - Remove undesired line (reported by Gökhan Özbulak) 2011-04-13 13:38:52 +00:00
Stanislav Malyshev
c4a8866abb fix bug #54238 (use-after-free in substr_replace()) 2011-04-13 06:32:41 +00:00
Ilia Alshanetsky
465ffa7fa2 Fixed bug #54121 (error message format string typo). 2011-04-12 18:33:08 +00:00
Boris Lytochkin
b1d9284901 fix typo 2011-04-12 08:00:14 +00:00
Gustavo André dos Santos Lopes
09b990f499 - Fixed bug #54440: libxml extension ignores default context. 2011-04-09 18:32:55 +00:00
Gustavo André dos Santos Lopes
db01e840c2 - Fixed bug #54494: mb_substr() mishandles UTF-32LE and UCS-2LE. 2011-04-09 16:59:36 +00:00
Sebastian Bergmann
6f3148db81 Add optional argument to debug_backtrace() and debug_print_backtrace() to limit the amount of stack frames returned. 2011-04-09 09:52:24 +00:00
Dmitry Stogov
77ed819430 Fixed bug #54323 (Accessing unset()'ed ArrayObject's property causes crash) 2011-04-07 14:52:30 +00:00
Adam Harvey
187eb235fe Implement FR #54459 (Range function accuracy) by changing the way range()
calculates values when used with floating point bounds/step.
2011-04-06 10:23:06 +00:00
Boris Lytochkin
bbb4f679ae * Net-SNMP version detection and proper processing
* more UCD-SNMP-related code removal
2011-04-06 06:58:25 +00:00
Boris Lytochkin
cab643f615 * added detection and walkaround for net-snmp library bug (net-snmp BUGid 2027834)
* drop UCD-SNMP support, R.I.P.
2011-04-05 12:20:35 +00:00
Pierrick Charron
1368364469 Fix common typos in the source code (Reported in Bug #54065)
# External libraries were excluded
# Thanks eitan at eitanadler dot com for the first patch :)
2011-04-03 21:46:52 +00:00
Ilia Alshanetsky
063aba2e65 Fixed bug #53037 (FILTER_FLAG_EMPTY_STRING_NULL is not implemented). 2011-04-03 16:30:31 +00:00
Pierrick Charron
5a8c917c37 Fixed bug #54454 (substr_compare incorrectly reports equality in some cases) 2011-04-03 07:18:27 +00:00
Felipe Pena
70075bc84c - Improved message and version checking 2011-04-02 01:24:53 +00:00
Pierre Joye
599d9134fc - add CURLINFO_REDIRECT_URL 2011-04-01 17:19:08 +00:00
Pierre Joye
4aac903e61 - [doc] add ini option to set the default cainfo file, in case none was set at compile time 2011-04-01 17:10:52 +00:00
Derick Rethans
fee45b7a5f - Updated to version 2011.5 (2011e) 2011-04-01 11:24:49 +00:00
Pierre Joye
27c0221dc9 - not used on win 2011-03-30 09:46:56 +00:00
Pierre Joye
f7249e7c5c - fix build, should fix that code too on non win (wondering if that part was working at all) 2011-03-30 09:46:20 +00:00
Pierre Joye
38bbbe3417 - attempt to fix build, 1st error 2011-03-30 09:42:21 +00:00
Pierre Joye
b7a99bbbb8 - fix build 2011-03-30 09:25:09 +00:00
Christopher Jones
92ecff668f Refactor OCI8 config.m4: improve messages and merge similar conditionals 2011-03-29 21:37:45 +00:00
Felipe Pena
5def890d4d - Fixed bug #44989 (64bit Oracle RPMs still not supported by pdo-oci)
patch by: jbnance at tresgeek dot net
2011-03-29 18:40:20 +00:00
Nuno Lopes
301eda5b6d MFB (r309775): fix last commit 2011-03-28 09:11:28 +00:00
Gustavo André dos Santos Lopes
f7b7b6aa9e - Improved upon r309729.
- Extented strategy to remaining the classes on spl_directory.c, even those that don't crash.
- UPGRADING.
- Better bug54384.phpt, with all the classes covered.
2011-03-27 22:44:34 +00:00
Arnaud Le Blanc
b83e243c23 Added CallbackFilterIterator and RecursiveCallbackFilterIterator classes
[DOC] This is a concrete FilterIterator which takes a callback as
constructor parameter, and uses this callback for filtering. This allows
to use FilterIterator without extending it.

CallbackFilterIterator Example:

$it = new ArrayIterator(range(1,100));
$it = new CallbackFilterIterator($it, function($value) {
	return $value % 2;
});
foreach($it as $value) // ...

RecursiveCallbackFilterIterator Example:

$it = new RecursiveDirectoryIterator("/");
$it = new RecursiveCallbackFilterIterator($it, function($file, $k, $it) {
	return $it->hasChildren() || $file->getSize() > 1024;
});
foreach(new RecursiveIteratorIterator($it) as $file) // ...

The callback takes the current value, the current key and the inner
iterator as parameters.
2011-03-27 20:13:27 +00:00
Felipe Pena
2191af9546 - Fixed compiler warnings 2011-03-27 18:14:58 +00:00
Gustavo André dos Santos Lopes
c2fe893985 - Fixed bug #54384: Several SPL classes crash when parent constructor is
not called.
#Merge to 5.3 pending (slight BC break on AppendIterator, as it's no
#longer possible to defer the call to the parent constructor until
#after the constructor is performed).
#Bugs fixed in an atypical way for SPL. The parent constructor call
#check is performed at construction time by using a wrapper constructor
#instead of a check on the beginning of each instance method.
#Perhaps this should be uniformized in trunk; this method was mainly
#applied only to the ones crashing, except a few iterators (at least
#AppendIterator and RecursiveIteratorIterator).
2011-03-27 04:21:06 +00:00
Felipe Pena
3acdca4703 - Fixed bug #54395 (Phar::mount() crashes when calling with wrong parameters) 2011-03-26 17:02:34 +00:00
Ulf Wendel
8138f7de40 Update of mysqlnd version. This has been forgotten when introducing set_autocommit, tx_commit, tx_rollback calls (http://svn.php.net/viewvc?view=revision&revision=308669). 2011-03-25 10:45:28 +00:00
Andrey Hristov
133ba9b5dd fix buffer overflow - overwriting with 0x0, due to
unchecked buffer size. This can be easily workarouned on 
existing unpatched systems by increasing
mysqlnd.net_cmd_buffer_size ini variable to more than 8k
2011-03-24 16:12:18 +00:00
Ulf Wendel
38fd7f48d0 Limit test with 65k params, should crash mysqlnd 2011-03-24 13:40:06 +00:00
Felipe Pena
39e0aa4dc6 - Fixed bug #54292 (Wrong parameter causes crash in SplFileObject::__construct()) 2011-03-23 22:46:04 +00:00
Andrey Hristov
e7a5fb405e Fix compressed build, make it easier 2011-03-23 17:14:28 +00:00
Ulf Wendel
1eb3bdd802 Coverage for a 'silent server protocol change' from the past for which both mysqlnd and libmysql have workarounds. 2011-03-23 08:57:52 +00:00