Commit Graph

6876 Commits

Author SHA1 Message Date
Hannes Magnusson
2fd3e799d8 The error message is different when built with zts 2011-09-07 10:41:38 +00:00
Pierre Joye
eea14c09fc - fix #55622, mem corruption on large input 2011-09-06 17:41:08 +00:00
Pierre Joye
d37605a5f1 - useless skipif 2011-09-06 17:10:16 +00:00
Pierre Joye
3d08ebd419 - useless skipif 2011-09-06 15:49:28 +00:00
Xinchen Hui
567ab9feaf move it to right place 2011-09-06 09:45:21 +00:00
Pierre Joye
4d576e21a9 - move it to the right place 2011-09-06 09:23:10 +00:00
Pierre Joye
427bb75d4b - fix skipif msg 2011-09-06 09:20:14 +00:00
Pierre Joye
ee9738077f - fix test 2011-09-06 07:47:20 +00:00
Pierre Joye
7c77d6b612 - fix test 2011-09-06 07:44:43 +00:00
Pierre Joye
1676e4044b - skip on win 2011-09-06 07:32:37 +00:00
Stanislav Malyshev
75cf1e8730 unused variables 2011-09-06 05:31:08 +00:00
Stanislav Malyshev
442e9c5148 allow user streams to override ch* on windows too 2011-09-06 05:28:25 +00:00
Shein Alexey
50d8d816c5 Reduced timeout in this test to 1ms, no need to wait further. 2011-09-05 14:43:08 +00:00
Pierre Joye
fdf9771773 - use the same test on win 2011-09-05 13:37:30 +00:00
Pierre Joye
a2b6e6a364 - close the stream before removing the file (win and other system may lock it) and use test dir for tmp data 2011-09-05 13:31:13 +00:00
Pierre Joye
7947df24af - sync&fix test with 5.3 2011-09-05 13:23:25 +00:00
Pierre Joye
10ced2993b - fix test, slash or back slash can be present 2011-09-05 13:13:37 +00:00
Pierre Joye
d6acaddca2 - stupid me. 2011-09-05 13:06:51 +00:00
Pierre Joye
ff0f145768 - disable on win 2011-09-05 13:05:28 +00:00
Pierre Joye
5dc49bebaa - disable on win 2011-09-05 13:04:12 +00:00
Pierre Joye
997a86ebb9 - other hostname can be defined or returned first 2011-09-05 12:34:55 +00:00
Hannes Magnusson
8154263956 typo 2011-09-05 12:00:24 +00:00
Pierre Joye
42ca18e853 - not used anymore, one version to rule them all 2011-09-05 11:00:52 +00:00
Shein Alexey
d1e7999d5b Make the test faster, what was done:
1) replaced multiple htmlentities calls with one call to get_html_translation table since they share the same code internally
2) reduced the upper range of the "for" loop to 0x2710 (10000), according to http://www.w3.org/TR/html4/sgml/entities.html it's enough
3) placed additional check to make sure all entities from get_html_translation_table were checked in the test
2011-09-05 11:00:14 +00:00
Hannes Magnusson
3986046b6e Fix test to use microtime() as time() doesn't always catchup fast enough :] 2011-09-05 10:55:07 +00:00
Pierre Joye
2ecaee20e9 - update test to the zeng arg path argument 2011-09-05 10:29:12 +00:00
Pierre Joye
69a1e5d3ac - fix test 2011-09-05 10:14:13 +00:00
Hannes Magnusson
22c4ca480f Interesting typo... 2011-09-05 09:34:14 +00:00
Hannes Magnusson
8db93019b4 Not all submodules have MINIT, but they have MINFO and need to be registered
(cought by tyrael@)
2011-09-05 09:27:23 +00:00
Gustavo André dos Santos Lopes
ac20ab11f7 - Fixed bug #55576: Cannot conditionally move uploaded file without race
condition.
2011-09-04 23:00:47 +00:00
Pierre Joye
861dac9726 - unify warning between win and unix and enable test 2011-09-04 21:48:22 +00:00
Ferenc Kovacs
38131641a0 pass an absolute path for the php binary to proc_open, without this the test would fail if ran with a relative TEST_DEV_EXECUTABLE 2011-09-02 20:28:39 +00:00
Tjerk Anne Meesters
892ac1fe58 Fixed expect format to ignore the textual error message from readlink().
Bug #55555
2011-08-31 18:26:23 +00:00
Xinchen Hui
92e84dbe3f Fixed test failed 2011-08-31 07:49:52 +00:00
Xinchen Hui
8c93430a6a Fixed test failed, due to error message changed 2011-08-31 07:37:42 +00:00
Stanislav Malyshev
a84c0ab32b fix strptime tests for mac 2011-08-31 07:34:07 +00:00
Stanislav Malyshev
25031cd387 test fixes on Darwin 2011-08-31 07:10:17 +00:00
Gustavo André dos Santos Lopes
6690258734 - Fixed test htmlentities15.phpt. 2011-08-31 06:32:05 +00:00
Gustavo André dos Santos Lopes
f0abb36192 - html_tables.h regeneration. 2011-08-31 05:47:19 +00:00
Gustavo André dos Santos Lopes
1a9d43a807 - Less GCC warnings; code less readable, yay!
- Fixed html_tables.h generaration in 64-bit archs.
- Closes bug #55394 - Patch to suppress initialization warnings in html.c
#signed/unsigned mismatches for another day
#regenerated tables on another commit
2011-08-31 05:45:02 +00:00
Arpad Ray
a912bd3c23 Fixed bug #55366: keys lost when using substr_replace an array 2011-08-29 20:38:52 +00:00
Arpad Ray
4a6c2a8b44 add support for SORT_NATURAL and SORT_FLAG_CASE in array sort functions 2011-08-29 20:23:34 +00:00
Stanislav Malyshev
4f980905a0 Unbreak crypt() (fix bug #55439)
# If you want to remove static analyser messages, be my guest,
# but please run unit tests after
2011-08-19 22:49:18 +00:00
Pierre Joye
15c1a73678 - Fixed bug #52461 (Incomplete doctype and missing xmlns) 2011-08-19 09:59:47 +00:00
Xinchen Hui
fa1883de19 Omitted GCC warning "comparison is always false" 2011-08-12 07:47:03 +00:00
Ilia Alshanetsky
78c823067f Fixed bug #55399 (parse_url() incorrectly treats ':' as a valid path) 2011-08-11 13:01:52 +00:00
Rasmus Lerdorf
46f5813895 Use HOST_NAME_MAX constant here instead for the gethostname() func 2011-08-10 17:40:56 +00:00
Ilia Alshanetsky
b207eebf57 Fix win32 build 2011-08-10 15:59:32 +00:00
Xinchen Hui
d5688cd19e Eliminated compiler's warnings 2011-08-10 11:59:11 +00:00
Ilia Alshanetsky
521ce49819 Minimize stack usage and added missing dtors 2011-08-09 13:10:57 +00:00
Xinchen Hui
5dc3195897 Avoiding strcpy, strcat, sprintf usage to make static analyzer happy 2011-08-09 12:16:58 +00:00
Gustavo André dos Santos Lopes
177645fd05 - Elided unused argument in internal linkage function. 2011-08-09 00:40:45 +00:00
Ilia Alshanetsky
9c834bd51c Make static analyzers happy 2011-08-08 12:10:27 +00:00
Xinchen Hui
caedca8dd0 Make codes more clearly, and make the static analyzer silent.. 2011-08-08 06:49:17 +00:00
Xinchen Hui
4e97a9fc3f Remove no sense statements 2011-08-08 00:47:40 +00:00
Rasmus Lerdorf
7eb5bbbf65 Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
static string copies
2011-08-07 16:10:34 +00:00
Rasmus Lerdorf
97bc4c8403 Make static analyzers happy 2011-08-07 15:38:36 +00:00
Xinchen Hui
2ce3f11f4b revert -r314422
No need to check erealloc's return
2011-08-07 14:25:30 +00:00
Xinchen Hui
a35462c71c Fixed bug that may dereferenced NULL pointer before checking 2011-08-07 13:19:04 +00:00
Pierrick Charron
ae1746c876 class entry is never used 2011-08-07 06:04:11 +00:00
Rasmus Lerdorf
8dc951194b I'm pretty sure you didn't mean to multiple by the size of a char* there
since that makes no sense. output is an array of char, not an array of
char*
Pierre, please review
2011-08-07 00:36:26 +00:00
Felipe Pena
9480eace41 - Added ZEND_MOD_END macro to use in the end of zend_module_dep[] 2011-08-06 14:47:44 +00:00
Felipe Pena
9c289189d3 - Added missing PHP_FE_END/ZEND_FE_END 2011-08-06 01:22:27 +00:00
Stanislav Malyshev
30aa3cea6a fix tests 2011-08-01 03:42:02 +00:00
Stanislav Malyshev
b56c6b24ff fix termination in sha-512 too 2011-07-31 23:14:04 +00:00
Stanislav Malyshev
d868c71617 fix salt truncation bug in sha256 2011-07-31 21:47:03 +00:00
Pierre Joye
991e108a85 - blowfish 1.2 update, 2nd part 2011-07-31 20:50:09 +00:00
Pierre Joye
96b142795c - Fix #55301 (url scanner part) check if malloc succeded 2011-07-28 10:52:45 +00:00
Pierre Joye
fc8afdf178 - Fixed bug 55124, recursive mkdir fails with current (dot) directory in path 2011-07-26 17:44:20 +00:00
Felipe Pena
da376383e8 - Make usage of new PHP_FE_END macro 2011-07-25 11:35:02 +00:00
Rasmus Lerdorf
c168ea8477 When you add something that changes the phpinfo output, please
update this test.
2011-07-25 05:32:08 +00:00
Felipe Pena
b2558d5f35 - Disable __sync_fetch_and_add for HPUX for now, gcc seems not provide __sync_fetch_and_add_4 for all targets 2011-07-23 01:08:24 +00:00
Pierrick Charron
fb5da94c1b Delete empty test files (old MQ tests) 2011-07-22 12:12:05 +00:00
Pierre Joye
cc1c7af037 - remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ 2011-07-22 11:25:30 +00:00
Felipe Pena
e97b0d7522 - Fixed bug #55231 (Unsatisfied symbols __sync_fetch_and_add_4) 2011-07-19 22:12:13 +00:00
Pierre Joye
03315d9625 - update blowfish to 1.2 (Solar Designer) 2011-07-18 21:26:29 +00:00
Philip Olson
1cf88d931e Updated is_a() and is_subclass_of() tests as per the removed E_WARNING from r313162 which was inspired by discussion after r312904 and PHP Bug #53727 2011-07-15 19:17:22 +00:00
David Soria Parra
cad2e53064 Fix #55212. Only declare STREAM_PF_INET6 if PHP is compiled with IPv6 support 2011-07-15 15:25:24 +00:00
Pierre Joye
b6745ea43a - Fixed bug #55187, readlink returns weird characters when false result 2011-07-12 15:15:17 +00:00
Kalle Sommer Nielsen
513dc26776 Changed http_response_code() to be able to set a response code 2011-07-12 03:56:32 +00:00
Dmitry Stogov
8171e1d81e Fixed bug #54332 (Crash in zend_mm_check_ptr // Heap corruption) 2011-07-11 09:47:59 +00:00
Ilia Alshanetsky
3c82aab151 Fixed bug relating to un-initialized memory access 2011-07-05 20:10:45 +00:00
Stanislav Malyshev
e3668bdf1c fix crypt() issue with overlong salt 2011-07-04 23:38:09 +00:00
Dmitry Stogov
34b8924f95 Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces) 2011-07-04 14:55:39 +00:00
Gustavo André dos Santos Lopes
86ff3bab2d - Fixed bug #55082 (var_export() doesn't escape properties properly). 2011-06-30 09:26:35 +00:00
Ilia Alshanetsky
b2a3d3132d Fixed test 2011-06-28 23:47:05 +00:00
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
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
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
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
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
8f4d497964 - Missing fixes for grammar fix 's/valid path/a valid path/' 2011-06-09 00:23:43 +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
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
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
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
9f7b09a265 touch() no longer attempts to create files on empty strings 2011-06-05 09:42:10 +00:00
Philip Olson
ad14faa7dd Updated the note maintainers credits 2011-06-05 06:57:13 +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
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
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
Hannes Magnusson
73c1488fec Fixed bug #54946 (stream_get_contents infinite loop) 2011-05-29 12:29:19 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Pierrick Charron
5a8c917c37 Fixed bug #54454 (substr_compare incorrectly reports equality in some cases) 2011-04-03 07:18:27 +00:00
Gustavo André dos Santos Lopes
7f2937223d - Make fclose() actually close stream, even when the resource refcount is > 1.
This reverts the fix for bug #24557.
- Make php_stream_free delete the stream from the resources list, not merely
  decrease its refcount, as a single call to zend_list_delete does.           
#Not worth the risk merging to 5.3. While change #2 may prevent some segfaults,
#a quick and dirty survey to the codebase only showed calls to php_stream_close
#or php_stream_free on streams allocated in the same function, which would have
#refcount == 1. May be reconsidered.
2011-03-21 02:58:54 +00:00