Commit Graph

25863 Commits

Author SHA1 Message Date
Stanislav Malyshev
b158091ed6 Fix crypt_blowfish 8-bit chars problem (CVE-2011-2483), add tests
# See details at http://www.openwall.com/lists/announce/2011/06/21/1
2011-06-26 21:34:39 +00:00
Knut Urdalen
27934faf97 small fix in disk_total_space() tests (PHP_5_3 already includes this) 2011-06-25 21:22:42 +00:00
Knut Urdalen
785a7a5056 fixed temp directory names in spl tests 2011-06-25 07:45:41 +00:00
Knut Urdalen
bf61fbb33a fixed/refactored some spl tests related to owner/group retrieval 2011-06-25 04:50:42 +00:00
Felipe Pena
c4e0d06aee - Added SKIPIF 2011-06-24 19:18:06 +00:00
Felipe Pena
6c02d95bd3 - Missing valid path check 2011-06-23 21:53:25 +00:00
Hannes Magnusson
9f8501b3b7 These are annoyingly slow 2011-06-23 21:27:42 +00:00
Nuno Lopes
cc438880c0 MFB: properly regen file to fix coverage data 2011-06-23 15:00:00 +00:00
Shein Alexey
ade71aa42a Fixed dom tests. 2011-06-22 09:28:14 +00:00
Patrick Allaert
97ec4f2702 Changed register_shutdown_function() to reflect that it is using a cb (thx arpad) 2011-06-20 07:11:21 +00:00
Stanislav Malyshev
30c5e0e87d fix error reporting on missing data - don't produce double errors 2011-06-19 18:55:48 +00:00
Daniel Convissor
cfd54f2e0f Provide test for DateTime::add() issue (for discussion on internals, bugs.php.net is down). 2011-06-19 16:59:58 +00:00
Daniel Convissor
aed261683b Split DateTime diff/add/sub tests into separate files to make things easier to see, test and (one hopes) fix. 2011-06-19 16:55:11 +00:00
Felipe Pena
8f68b48514 - Fix tests 2011-06-19 15:43:16 +00:00
Felipe Pena
3276cc4f7a - Opss, restore old behavior 2011-06-19 14:50:44 +00:00
Felipe Pena
54d5662919 - Added missing void param check in sys_get_temp_dir
- Fixed param check of umask()
2011-06-19 14:27:33 +00:00
Felipe Pena
e98eafeedf - Missing usage of 'p' parameter specifier 2011-06-19 13:20:12 +00:00
Felipe Pena
744ce6af65 - Fix test 2011-06-19 12:58:56 +00:00
Felipe Pena
5a70cde724 - New tests (code coverage++) 2011-06-19 12:33:49 +00:00
Felipe Pena
5992c06441 - Added missing void param checks, and fix arginfo 2011-06-18 22:48:31 +00:00
Felipe Pena
bf1779e973 - Added missing arginfos for void params and void param checks 2011-06-18 15:56:14 +00:00
Christopher Jones
dba594a4e2 Fix skipif to resolve the common reason this test fails 2011-06-17 18:28:34 +00:00
Derick Rethans
57d2f39c54 - Fixed bug where the DateTime object got changed while using date_diff(). 2011-06-17 16:38:23 +00:00
Felipe Pena
a8cc93d54f - Fixed two "jump or move depends on uninitialised value" 2011-06-17 02:00:20 +00:00
Pierre Joye
3c8bd9ebb6 - did I not kill that already? (do not use rand_screen, pointless on server and not TS) 2011-06-16 13:06:41 +00:00
Pierre Joye
175f84436c - install extra headers 2011-06-16 01:21:01 +00:00
Christopher Jones
fedc6b2926 Improve cross version compat 2011-06-14 20:04:18 +00:00
Scott MacVicar
e39ed9781e Upgrade SQLite to 3.7.6.3 2011-06-14 17:00:49 +00:00
Timm Friebe
7229afbd41 - Fix compiler warning about long vs. int in printf()
# See bug #55009
# Compare to _server_message_handler() a little below, where this
# is done the same way
2011-06-13 08:43:21 +00:00
Rasmus Lerdorf
c30bde0ef5 These regexes don't fail under the new backtrack limit, so lower it
just for the test to check the failure.
2011-06-12 18:38:26 +00:00
Felipe Pena
2997719120 - Restore basename in filename on non Windows OS 2011-06-12 15:15:44 +00:00
Rasmus Lerdorf
b88a5db4dd Don't expect a path for tidy_repair_string() and fix the tests 2011-06-12 14:49:10 +00:00
Boris Lytochkin
edd80c571d move SNMP VERSION constants into SNMP class itself 2011-06-12 11:58:49 +00:00
Boris Lytochkin
0db6d3b16c fix typo in comment 2011-06-12 11:25:20 +00:00
Boris Lytochkin
787cb14c3e no more method open 2011-06-12 10:13:30 +00:00
Boris Lytochkin
12517f51a8 fix method names in header 2011-06-12 10:07:43 +00:00
Felipe Pena
8d4a35f3e9 - Fixed bug #54680 (missing TRACK_VARS_SERVER check) 2011-06-12 02:47:48 +00:00
Gustavo André dos Santos Lopes
89da1ab1e8 - Reverted r301991, which is a (partial) fix to bug #52550, addressing an
overflow in a signed subtraction. This fixes the overflow without
  changing the algorithm.
2011-06-12 00:56:18 +00:00
Felipe Pena
e9a6750cdc - Fixed tests 2011-06-12 00:31:13 +00:00
Gustavo André dos Santos Lopes
0cfed19b9d - Fixed ext/sockets build on Mac OS X (hopefully).
- Improvements in the multicast tests.
- Very light refactoring in sockets.c.
2011-06-11 20:20:50 +00:00
Felipe Pena
d65b6dc038 - Missing fix for bug #54347 2011-06-11 15:11:49 +00:00
Felipe Pena
950a716b12 - Possible fix for bug #55022 (memory_limit exhausted when set charset in sybase_connect) 2011-06-11 01:15:14 +00:00
Christopher Jones
9c81d05238 Fix TSRMLS for Windows build 2011-06-11 00:24:26 +00:00
Felipe Pena
b8d10158d1 - Drop C++ style comments 2011-06-10 23:14:15 +00:00
Felipe Pena
ddd88ff93c - Fixed bug #55028 (// is abad comment) 2011-06-10 22:48:36 +00:00
Christopher Jones
4329ae1e26 Bump OCI8 version to stable in preparation for 5.3.7 RC 2011-06-10 20:01:46 +00:00
Christopher Jones
1c35a1926b Add new OCI8 tests. Refactor skipifs. Sync 5.3/5.4/trunk branches 2011-06-10 19:16:35 +00:00
Christopher Jones
16b744d2d4 Add oci_client_version() returning the runtime Oracle client library version - predominantly useful for the test suite 2011-06-10 17:38:07 +00:00
Felipe Pena
7c46410876 - Fixed bug #54347 (reflection_extension does not lowercase module function name)
patch by: laruence at yahoo dot com dot cn
2011-06-09 22:45:35 +00:00
Shein Alexey
024439c66e Removed tests checking old/removed functionality (session_register/session_unregister/session_is_registered/register_globals) 2011-06-09 08:54:47 +00:00
Shein Alexey
f1d7b4d3c6 Changed session.save_path to /tmp to make test run. 2011-06-09 08:24:12 +00:00
Shein Alexey
fb014c0f6d Skip reason is now printed if session.save_path is not writable. 2011-06-09 08:18:49 +00:00
Shein Alexey
59b06399ad Fixed session test breakage due to serialize precision issue. 2011-06-09 07:44:10 +00:00
Shein Alexey
0214bbed25 Updated (currently failing) test for bug48203 with curl_stderr and added also curl_multi_exec variant of this test. 2011-06-09 07:16:13 +00:00
Shein Alexey
42478b46e9 Removed 'b' string prefix as unneeded from some tests. 2011-06-09 06:49:31 +00:00
Felipe Pena
8f4d497964 - Missing fixes for grammar fix 's/valid path/a valid path/' 2011-06-09 00:23:43 +00:00
Ilia Alshanetsky
8d2fe9fcb9 Fixed test 2011-06-08 23:30:02 +00:00
Timm Friebe
9c98b18950 - Changed output to be more verbose as to what libraries are used
- Changed check for 64-bit vs 32-bit build environment to check sizeof(int)
  instead of assuming that if libsybct64.so exists, it must be 64-bit
# Bug #53540: Correct Sybase 15.0 libraries not found by configure
2011-06-08 08:14:49 +00:00
Ilia Alshanetsky
d42683cbd2 Fixed test to account for smaller default floating point # precision 2011-06-08 02:03:14 +00:00
Felipe Pena
547ab48521 s/valid path/a valid path/ 2011-06-08 00:53:55 +00:00
Gustavo André dos Santos Lopes
2b72c6e7df - Fixed bug #54992: Stream not closed and error not returned when SSL CN_match
fails.
2011-06-08 00:23:02 +00:00
Christopher Jones
c287e682f2 Sync OCI8 branches. Allow 'pecl install' to work on both PHP 5.3 & 5.4 2011-06-07 23:53:02 +00:00
Christopher Jones
0a4ec69806 Update tests to match Felipe's null byte arg parsing change 2011-06-07 20:58:08 +00:00
Felipe Pena
ac86bf82b4 - Test fixes 2011-06-07 02:29:03 +00:00
Felipe Pena
33a8442c5d - Fix memory leak caused by RSHUTDOWN not being called by MINIT dependency 2011-06-07 01:58:56 +00:00
Ilia Alshanetsky
370febcd37 Fixed test 008 2011-06-07 01:40:54 +00:00
Felipe Pena
8da563ed9a - Test fixes 2011-06-06 22:36:54 +00:00
Felipe Pena
4737910b69 - Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Ilia Alshanetsky
6b85eb58b2 Fixed bug #51997 (SEEK_CUR with 0 value, returns a warning). 2011-06-05 21:57:01 +00:00
Hannes Magnusson
938d066d49 Fixed bug#51819 (Case discrepancy in timezone names cause Uncaught exception and fatal error) 2011-06-05 13:30:01 +00:00
Hannes Magnusson
d4f6e7d937 When you write to a symlink - you access the file itself, not the symlink, so we need to compare the atime to the orignal file 2011-06-05 12:08:14 +00:00
Hannes Magnusson
c1a96c16d0 Make sure we are writing more data then the block size 2011-06-05 12:07:11 +00:00
Hannes Magnusson
bf3cd0675d No need to fetch external files and endless amount of DTDs for this test 2011-06-05 11:31:18 +00:00
Hannes Magnusson
9f7b09a265 touch() no longer attempts to create files on empty strings 2011-06-05 09:42:10 +00:00
Stanislav Malyshev
ed001a8ec6 This method doesn't seem to be very useful without scalar types, so reverting it too 2011-06-05 08:59:24 +00:00
Hannes Magnusson
6ff402e280 This isn't less then 5.4.. but these still fail though. 2011-06-05 08:56:52 +00:00
Philip Olson
ad14faa7dd Updated the note maintainers credits 2011-06-05 06:57:13 +00:00
Felipe Pena
a2124382ac - Possible fix for bug #54609 (Certain implementation(s) of SplFixedArray cause hard crash) 2011-06-05 01:38:12 +00:00
Felipe Pena
b86161982b - Fixed bug #54929 (Parse error with single quote in sql comment) 2011-06-04 22:54:40 +00:00
Ilia Alshanetsky
53b6c0c8eb Show ICU Data version inside phpinfo() 2011-06-03 18:14:36 +00:00
Ilia Alshanetsky
2dce38f598 Fixed crash and improved signal validation 2011-06-03 17:18:46 +00:00
Ilia Alshanetsky
52e353e973 Compiler warning fix 2011-06-03 07:00:38 +00:00
Scott MacVicar
14e330556c Further fix for #54918 - We attach a bunch of submodules loading to the basic MINIT, but if an error occurs during their MINIT we still call the MSHUTDOWN()
Other possible fix is that we should halt execution entirely when this happens but this feels a little drastic.

Committing to trunk for now
2011-06-03 01:44:37 +00:00
Stanislav Malyshev
aa29bd5d73 and clean the tokenizer too 2011-06-03 01:16:01 +00:00
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