Commit Graph

26041 Commits

Author SHA1 Message Date
Nuno Lopes
1a88e45cf2 MFB: generalize output 2009-09-22 12:35:35 +00:00
Ulf Wendel
341e125d60 Fixing test 2009-09-22 11:58:46 +00:00
Dmitry Stogov
798b8e77b1 Fixed test (it failed from time to time because of very small timeouts) 2009-09-22 10:15:10 +00:00
Jani Taskinen
7ae78572e2 - Move tests in the right location 2009-09-22 09:41:39 +00:00
Ulf Wendel
f0cf479eb4 Fixing test 2009-09-22 08:42:44 +00:00
Dmitry Stogov
eedc39f4f3 Fixed ext/spl/tests/arrayObject_magicMethods2.phpt 2009-09-22 07:54:06 +00:00
Ulf Wendel
f532a81aea Fixing test. There is nothing we can do about the MySQL Client Library allocate huge 4GB buffers for some SQL types. 2009-09-22 07:11:50 +00:00
Ulf Wendel
1cafe8c54c Fixing test. Can't wait to see the new run-tests materialize for detecting skip section parse errors. 2009-09-22 06:59:04 +00:00
Ilia Alshanetsky
efba216e32 Fixed build with older version of libcurl 2009-09-22 01:17:16 +00:00
Ulf Wendel
decdb55cef Fixing test 2009-09-21 15:59:22 +00:00
Ulf Wendel
16be7ee5c5 Fixing test 2009-09-21 15:24:47 +00:00
Dmitry Stogov
197eb8b13b Fixed tests (removed irrelevant check which makes test to fail from time to time) 2009-09-21 15:23:25 +00:00
Dmitry Stogov
d79b83ed87 Fixed tests ("none" is an alias of "false" and it can't be used as a string value of ini option) 2009-09-21 14:32:20 +00:00
Ulf Wendel
ddef8f511f Moving test code around to get test failures down without testing less. Users of the MySQL Client Lib should always call stmt_bind_result after execute - not before. 2009-09-21 14:20:05 +00:00
Ulf Wendel
4dcea7c624 Fixing test by calling it a known limit. We keept the test failing as a reminder to think about how to handle BIT(32) and up but none of us has an idea. Thinks work fine up to BIT(31) - the limitation should be documented. 2009-09-21 12:02:30 +00:00
Ulf Wendel
b979107fd0 Fixing test 2009-09-21 11:54:15 +00:00
Dmitry Stogov
a7a3d28f6d Fixed tests 2009-09-21 11:38:14 +00:00
Dmitry Stogov
dc2442bcd2 Fixed tests 2009-09-21 11:30:38 +00:00
Ulf Wendel
0c8262069f Not nice but neither the MySQL Client Library not mysqlnd are supposed to detect invalid flags. Therefore: fixing test 2009-09-21 10:16:44 +00:00
Ulf Wendel
356371a7bc Fixing mysqli_result_references_mysqlnd.php 2009-09-21 10:06:13 +00:00
Ulf Wendel
b35ffe4689 Fixing mysqli_get_client_stats.phpt. More testing for MYSQLI_INIT_COMMAND 2009-09-21 09:35:23 +00:00
Ulf Wendel
0d202cd84d Fixing test: references has to be collected even if the users disables the collection of statistics. It is needed for memory management. 2009-09-21 08:59:00 +00:00
Ulf Wendel
a65e1456e9 Fixing test - the standard test table will not accept NULL values for column id 2009-09-21 08:36:14 +00:00
Hannes Magnusson
f7aa838e1a And now use proper colspanning 2009-09-18 23:06:21 +00:00
Hannes Magnusson
043a86b31d Fix typo in comment (danbrown) 2009-09-18 22:26:44 +00:00
Hannes Magnusson
73028016ec Throw some credit around 2009-09-18 22:01:58 +00:00
Andrey Hristov
528e66fbf5 Fix for bug#48909 Segmentation fault in mysqli_stmt_execute 2009-09-18 14:32:01 +00:00
Andrey Hristov
b30dfcd475 Fix for bug#48754 mysql_close() crash php when no handle specified 2009-09-18 10:46:51 +00:00
Andrey Hristov
4ac04d8936 Afix not included by the fix committed by Ulf.
pemalloc and then efree - too bad!
Sorry for committing in two passes, my big tree is already patched
with compressed.
2009-09-17 15:13:36 +00:00
Ulf Wendel
4bb9113812 better coverage for mysqli_info 2009-09-17 07:11:25 +00:00
Felipe Pena
55b77fa017 - Fixed ZTS build 2009-09-16 18:01:10 +00:00
Ulf Wendel
1b5f0f63b4 Fix (by Andrey) and test for bug #49442 . Don't use efree() for memory allocated with malloc()... If a connection gets created by mysqli_init(), mysqlnd makes it 'persistent'. 'Persistent' means that mysqlnd uses malloc(). mysqlnd does use malloc() instead of ealloc() because it is unknown if the connection will become a true persistent connection in the sense of ext/mysqli. It is unknown if the user wants a persistent connection or not until the user calls mysqli_real_connect(). To avoid tricky conversions mysqlnd uses malloc(), which sets a private persistent flag in the mysqlnd structures. A precondition for the crash to happen was that the private persistent flag is set. The flag is also set when creating a real persistent connection (in the sense of ext/mysqli) and so the bug can happen with mysql_init()/mysqli_real_connect() and mysql_connect('p:<host>', ...). Therefore we test both cases. Note the (tricky?) difference between the implementation detail'mysqlnd private persistent flag = use malloc()' and persistent connections from a user perspective. Although mysqlnd will always set its private persistent flag and use malloc() for connections created with mysqli_init() it is still up to the user to decide in mysqli_real_connect() if the connection shall become a (true) persistent connection or not. 2009-09-16 17:03:44 +00:00
Ulf Wendel
8e42cbfeac Fix and tests for bug #49511 . mysqlnd and the MySQL Client Library (libmysql) use different networking APIs. mysqlnd does use PHP streams whereas libmysql uses its own wrapper of the operating level network calls. PHP sets by default a read timeout of 60s for streams - php.ini, default_socket_timeout. This default applies to all streams that set no other timeout value. mysqlnd has not set any other value and therefore it connections of long running queries can have been cut off after default_socket_timeout seconds resulting in a 2006 - MySQL Server has gone away error message. The MySQL Client Library sets a default timeout of 365 * 24 * 3600 seconds (1year) and waits for other timeouts to happen, e.g. TCP/IP timeouts. mysqlnd now uses the same very long timeout. The value is configurable through a new php.ini setting: mysqlnd.net_read_timeout. mysqlnd.net_read_timeout gets used by any extension (ext/mysql, ext/mysqli, PDO_MySQL) that uses mysqlnd. mysqlnd tells PHP Streams to use mysqlnd.net_read_timeout. Please note that there may be subtle differences between MYSQL_OPT_READ_TIMEOUT from the MySQL Client Library and PHP Streams. E.g. MYSQL_OPT_READ_TIMEOUT is documented to work only for TCP/IP connections and, prior to MySQL 5.1.2, only for Windows. PHP streams may not have this limitation. Please check the streams documentation, if in doubt. 2009-09-16 15:00:54 +00:00
Patrick Allaert
56732c9f51 Minor change to improve code coverage 2009-09-16 12:35:54 +00:00
andy wharmby
1690a26b60 Fix SKIPIF sections 2009-09-15 21:44:08 +00:00
Rasmus Lerdorf
5e0e9419e2 Fix for bug #49558 for 5.2 and HEAD as well. 2009-09-15 20:34:54 +00:00
Ilia Alshanetsky
69e0e2fe90 Upgraded bundled sqlite to version 3.6.18. 2009-09-15 16:54:11 +00:00
Pierre Joye
a22276faa7 - #49253, add support for libcurl's CERTINFO option 2009-09-15 15:47:06 +00:00
Ilia Alshanetsky
d3ae759391 Fixed certificate validation inside php_openssl_apply_verification_policy 2009-09-14 12:50:30 +00:00
Moriyoshi Koizumi
aa59726268 - Looks like bug #48697 has already been fixed in RC1. 2009-09-14 04:11:29 +00:00
andy wharmby
829e4529fb Add missing SKIPIF 2009-09-11 21:57:04 +00:00
Moriyoshi Koizumi
afe681c301 - Fix bug #49536 (mb_detect_encoding() returns incorrect results when strict_mode is turned on.)
(patch by komura, thanks!)
2009-09-11 21:26:18 +00:00
Ulf Wendel
30a6d1b851 Fix for bug #49357 (MySQLi extension fails to recognize POINT (spatial) colums).
Do yourself a favour and use mysqlnd. mysqlnd has no isuses here.

If you insist on using the MySQL Client Library (libmysql) I strongly recommend to use mysqli_stmt_store_result() when fetching geometry data using prepared statements. When streaming data, which is the default for prepared statements, ext/mysqli will have to make a guess on the size of the result buffer it needs. The guess is based on a length reported by the MySQL CLient Library (libmysql). The MySQL Client Library reports 4GB (!) for a POINT - a conservative and safe guess. Consequently, ext/mysqli will try to allocate 4GB of RAM. The true (maximum) size of the column is not available before buffering the result on the client using mysqli_stmt_store_result(). If you call mysqli_stmt_store_result(), the result buffers will not get bigger than needed. However, store_result()/buffering is usually not what you want when you ask for prepared statements.
2009-09-11 13:38:47 +00:00
Ulf Wendel
a69c198790 Stepping back to PHP 5.2.x and earlier logic of allocating even huge pieces of memory for large BLOB types to avoid data truncation. This fixes the test failure of 005.phpt when using MySQL Client
Library (libmysql). The test does pass with mysqlnd because mysqlnd does not have any issues here.
2009-09-11 12:28:47 +00:00
Ulf Wendel
9af451ff49 Fixing a crash which must have existed since PHP 5.0. At least the crash can be reproduced with PHP 5.0.6. The crash happens only when using the MySQL Client Library (libmysql) - it does not happen
when using mysqlnd.
2009-09-11 12:16:56 +00:00
Moriyoshi Koizumi
384c7bce5a - Fix bug #49528 (UTF-16 strings prefixed by BOM wrongly converted). 2009-09-11 08:22:19 +00:00
Jani Taskinen
8974c5e051 - Fix skips 2009-09-10 15:05:49 +00:00
Jani Taskinen
04e3e09f9c - Fix build for !win32 systems.. 2009-09-10 13:19:43 +00:00
Sebastian Bergmann
24f4a4a9f9 Use getThis() correctly. 2009-09-10 05:15:24 +00:00
Sebastian Bergmann
46ce6802e5 Add ReflectionMethod::setAccessible() for invoking non-public methods through the Reflection API. 2009-09-10 05:04:53 +00:00
Ilia Alshanetsky
0a54e5b768 Fixed test 2009-09-10 02:15:08 +00:00
Felipe Pena
4198e8f727 - Possible fix for bug #49344 on Windows (pdo_mssql fails to connect,throws PDOException SQLSTATE[] (null) (severity 0)) 2009-09-10 01:20:42 +00:00
Ulf Wendel
667c597512 Andrey fixed the bug but the test was somewhat borked. Fixing test. 2009-09-09 18:31:00 +00:00
Ulf Wendel
59a52247e7 Some extra test coverage for http://bugs.php.net/bug.php?id=48754 . 2009-09-09 17:16:24 +00:00
Ulf Wendel
86481c0ac0 Tests for http://bugs.php.net/bug.php?id=49357 (libmysql only) . The simple fix suggested in the bug system is not good enough, therefore no fix yet. 2009-09-09 17:10:29 +00:00
Ulf Wendel
5254c6f372 Next attempt to fix http://bugs.php.net/bug.php?id=48745. Patch by Andrey. 2009-09-09 17:03:03 +00:00
Derick Rethans
5b709c4718 - Updated to version 2009.13 (2009m) 2009-09-08 14:03:53 +00:00
Kalle Sommer Nielsen
e834d1a1f4 Experimental build support for VC10
- Contains newly introduced compiler warning fixes
 - configure now picks up VC10
2009-09-08 01:50:40 +00:00
Kalle Sommer Nielsen
1d39d37fad Fixed ext/sockets build 2009-09-08 01:45:25 +00:00
Kalle Sommer Nielsen
b2f1a3e865 Fixed ext/interbase build 2009-09-08 01:44:37 +00:00
Ilia Alshanetsky
f05407e227 Fixed tests 2009-09-07 14:18:46 +00:00
Ilia Alshanetsky
df377868bd Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters). 2009-09-07 02:35:25 +00:00
Felipe Pena
ba50aa6572 - Fixed bug #49483 (preg_replace 'subject' parameter listed as optional) 2009-09-06 17:41:34 +00:00
Pierre Joye
a733fe2521 - add test for #48746 2009-09-05 18:10:31 +00:00
Pierre Joye
2eaf8bf222 - useless #ifdef 2009-09-05 17:39:18 +00:00
Pierre Joye
b1f10764f9 - fix #49274, filter_var does not accept object without a toString implementation 2009-09-05 17:35:26 +00:00
Pierre Joye
d23fc95257 - #49464, fix build 2009-09-04 19:53:39 +00:00
Sriram Natarajan
00406ac1ae - Fixed bug #49447 (php engine need to correctly check for socket API
return status on windows). (Sriram Natarajan)
2009-09-04 07:59:48 +00:00
Sebastian Bergmann
fa67b14651 Make invokeArgs() error messages consistent with invoke(). 2009-09-03 14:02:51 +00:00
Pierre Joye
e5f4d5841e - Fix sanity check for the color index in imagecolortransparent 2009-09-03 09:45:56 +00:00
Ilia Alshanetsky
180c7ad8a9 Fixed return value to comply with tests 2009-09-02 13:07:44 +00:00
Kalle Sommer Nielsen
dcd43b5264 Fixes #49428 - Patch by Patrick Allaert 2009-09-01 14:05:00 +00:00
Patrick Allaert
321c9f2921 Added Tidy basic test for tidy_access_count 2009-09-01 13:06:52 +00:00
Patrick Allaert
f4ee7dee81 Added Tidy basic test for tidy_warning_count 2009-09-01 13:06:31 +00:00
Patrick Allaert
a137593541 Added Tidy basic test for tidy_error_count 2009-09-01 13:06:16 +00:00
Patrick Allaert
476569b691 Added Tidy basic test for tidy_config_count 2009-09-01 13:05:54 +00:00
Jani Taskinen
eb2f9ad0cc - Fixed zlib.deflate compress filter to actually accpet level parameter. 2009-08-31 21:18:55 +00:00
Zoe Slattery
c53880beca add missing skipifs 2009-08-31 19:22:29 +00:00
Antony Dovgal
1ad2044b80 nuke duplicated tests 2009-08-31 15:32:39 +00:00
Ilia Alshanetsky
820d7d28b7 Fixed bug #49361 (wordwrap() wraps incorrectly on end of line boundaries). 2009-08-31 12:28:46 +00:00
Antony Dovgal
c3615ef874 export le_socket from ext/sockets 2009-08-31 08:41:03 +00:00
Zoe Slattery
36a338a569 The last of the 2009 testfest tests 2009-08-30 18:18:50 +00:00
Ilia Alshanetsky
0ff589c12d Bug #49391 ldap.c utilizing deprecated ldap_modify_s 2009-08-30 15:33:59 +00:00
Zoe Slattery
b08aef70ab More tests from 2009 testfest 2009-08-30 12:19:50 +00:00
Zoe Slattery
53d2bbddfc bc math tests from testfest 2009 2009-08-30 11:10:20 +00:00
Zoe Slattery
acbc3d54f8 server for ftp tests 2009-08-30 09:31:54 +00:00
Zoe Slattery
d4ba889aa4 More tests from 2009 testfest 2009-08-30 09:30:13 +00:00
Zoe Slattery
0ee945e727 Fixed to allow for http etc 2009-08-30 08:18:53 +00:00
Antony Dovgal
3a080e82f5 fix tests 2009-08-29 19:18:27 +00:00
andy wharmby
83b40961b7 New basic network function tests. Tested on Windows, Linux and Linux 64 bit 2009-08-28 22:46:43 +00:00
Zoe Slattery
157453148a More tests from 2009 testfest 2009-08-28 14:31:19 +00:00
Andrey Hristov
e8412fb61c Fix for bug#48745
mysqlnd: mysql_num_fields returns wrong column count for mysql_list_fields
2009-08-28 09:30:16 +00:00
Pierre Joye
5c7b133648 - fix VC6 build 2009-08-27 14:45:41 +00:00
Andrey Hristov
149914f644 Fixed bug #49027 (mysqli_options() doesn't work when using mysqlnd) 2009-08-27 13:16:39 +00:00
Andrey Hristov
2e92372322 Fix for bug#46614 Extended MySQLi class gives incorrect empty() result 2009-08-27 12:41:14 +00:00
andy wharmby
1d28a09b24 Fix tests. Add missing SKIPIF sections so test do not run when POSIX extension not available. 2009-08-27 12:21:19 +00:00
Patrick Allaert
552d8f4836 Added: Tidy basic test for getConfig() 2009-08-27 08:50:07 +00:00
Patrick Allaert
e9201af574 Added: Tidy test with invalid configuration options 2009-08-27 08:49:24 +00:00
Rasmus Lerdorf
0ca2db41a9 This needs to be larger to avoid an overflow on the bit-shifting in this function 2009-08-27 05:05:42 +00:00
Pierre Joye
24d9cfb97d - fix #49372, segfault in php_curl_option_url 2009-08-26 22:24:10 +00:00
Zoe Slattery
7effcd5f6c Test from 2009 testfest 2009-08-26 17:17:58 +00:00
Pierre Joye
1a372313ca - fix test and use __DIR__ as usual 2009-08-26 16:07:05 +00:00
Pierre Joye
3a5edf568e - add win32 version 2009-08-26 14:09:45 +00:00
Dmitry Stogov
d0afbfb509 Fixed bug #47273 (Encoding bug in SoapServer->fault) 2009-08-26 14:05:48 +00:00
Pierre Joye
cf4841cd5b - fix test 2009-08-26 09:59:20 +00:00
Pierre Joye
acbdbf2d49 Improved readlink, supress \??\ and use the drive syntax only 2009-08-25 23:51:04 +00:00
Andrey Hristov
ad310d21ee Baby, one more time :( 2009-08-25 14:31:29 +00:00
Andrey Hristov
ac71943174 Better fix. A fix of the fix 2009-08-25 14:30:37 +00:00
Andrey Hristov
eb02cd4450 Fix bug#48198 error: 'MYSQLND_LLU_SPEC' undeclared
Possibly fix also :
Bug #48780  	mysqlnd compile failure
Bug #46952  	mysqlnd compile failure with suncc
2009-08-25 14:14:23 +00:00
Pierre Joye
94d8307363 - fix #49047, touch may fail on directory 2009-08-25 09:16:53 +00:00
Pierre Joye
90498da2fb - fix test when part of the path is a symlink 2009-08-25 00:22:11 +00:00
Pierre Joye
a7450bfc74 - fix test 2009-08-25 00:14:23 +00:00
Pierre Joye
c8e9b49c4f - fix test 2009-08-24 19:19:43 +00:00
Pierre Joye
390c8204c4 - fix test 2009-08-24 18:45:45 +00:00
Pierre Joye
8747c631fc - fix test 2009-08-24 18:43:21 +00:00
Ilia Alshanetsky
45700b1c69 Don't clober variables 2009-08-24 18:40:13 +00:00
Rafael Machado Dohms
0410d21364 Adding tests for imagecolorallocatealpha 2009-08-24 02:50:19 +00:00
Mikko Koppanen
fbe33a1448 Fixes a memory leak in ssl streams. The context was not properly freed 2009-08-22 02:31:23 +00:00
Antony Dovgal
855a458b06 fix build broken by the fix for bug #49306 2009-08-21 07:46:43 +00:00
Jani Taskinen
f3f8bd086e - Fixed bug #49286 (php://input (php_stream_input_read) is broken) 2009-08-20 12:40:15 +00:00
Jani Taskinen
fd9a1fa1b3 - Merge missing commit by Ilia from PHP_5_3: Make filters without a resource throw E_RECOVERABLE_ERROR rather then E_ERROR 2009-08-20 12:19:49 +00:00
Jani Taskinen
f6dcba571e - WS + CS + sync 2009-08-20 12:17:32 +00:00
Ilia Alshanetsky
e0349c5cb5 Fixed bug #49306 (inside pdo_mysql default socket settings are ignored). 2009-08-20 12:13:38 +00:00
Jani Taskinen
dac527bfde - Fixed bug #49289 (bcmath module does not compile with phpize configure). 2009-08-20 11:19:20 +00:00
andy wharmby
b59f4b245c New basic test for md5(). Tested on Windows, Linux and Linux 64 bit 2009-08-19 08:39:33 +00:00
Ilia Alshanetsky
73adf7a25a NULL the value after free 2009-08-18 12:44:32 +00:00
Stanislav Malyshev
ae69e05ad3 cleanup parameter parsing 2009-08-18 00:41:43 +00:00
andy wharmby
0855be02d7 New str_replace() tests. All tested on Windows, Linux and Linux 64 2009-08-17 22:41:30 +00:00
Stanislav Malyshev
60cbce382b fix parameter parsing for SNMP 2009-08-17 22:15:18 +00:00
Garrett Serack
e721b2461c - Fix for bug #49223 Inconsistency using get_defined_constants(true) 2009-08-17 21:28:22 +00:00
Dmitry Stogov
5fea6def76 Fixed bug #49144 (import of schema from different host transmits original authentication details) 2009-08-17 18:23:48 +00:00
Jani Taskinen
b96d6075f6 - Fixed bug #49236 (Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)). 2009-08-17 17:57:40 +00:00
Derick Rethans
2d466648de - Updated to version 2009.12 (2009l) 2009-08-17 14:46:58 +00:00
andy wharmby
aea600260b New basic tests for uniqid(). Tested on Windows, Linux and Linux 64 bit 2009-08-17 14:22:02 +00:00
andy wharmby
db6a41487d New basic string tests - includes back-porting a few existing tests back to 5.2. All tested on Windows, Linux and Linux 64 2009-08-17 10:37:30 +00:00
Ilia Alshanetsky
62448f6687 MFB: Added missing sanity checks around exif processing. 2009-08-16 14:32:32 +00:00
Felipe Pena
044a5f90b6 - Fix ZTS build && removed unused vars 2009-08-15 16:05:06 +00:00
Felipe Pena
620fc39fca - Add check 2009-08-15 14:46:34 +00:00
Stanislav Malyshev
721b51d2df cleanup string parameter parsing, fix some tests 2009-08-15 05:43:18 +00:00
Felipe Pena
e413825019 - Improved param. parsing for ldap_read(), ldap_search() and ldap_list() 2009-08-15 00:52:31 +00:00
Dmitry Stogov
7511c183ff Fixed crash in usort() and uasort() in case user comparison function modifyes th
e array.
2009-08-14 06:21:49 +00:00
Etienne Kneuss
642251da3c Fix several recursion problems when var_dump'ing self-referencing objects 2009-08-13 22:07:05 +00:00
Christopher Jones
0645f93622 refactor & WS for local test config change 2009-08-12 14:54:16 +00:00
Ilia Alshanetsky
e5f121ef92 Fixed compiler warning 2009-08-12 12:47:19 +00:00
Scott MacVicar
ed5b573242 Fix build on platforms where crypt isn't always available 2009-08-12 09:18:41 +00:00
Scott MacVicar
62a07e7f2e Fix BC break in mime_content_type() 2009-08-11 23:05:13 +00:00
Stanislav Malyshev
f9af0d4c3b fix potential memory issue on serialization
# When internal class uses zend_mangle_property_name it's malloc()
# so it should be freed with free()
2009-08-11 22:46:07 +00:00
Scott MacVicar
4f76b44d83 Update libsqlite to 3.6.17. 2009-08-11 22:22:21 +00:00
Scott MacVicar
f69e06937d We should check /usr/local/include last 2009-08-11 21:40:15 +00:00
Pierre Joye
5d7c5eaee2 - destroy the file entry stream first 2009-08-11 17:19:35 +00:00
Pierre Joye
841e4d15f8 - fixed bug #49072, feof never returns true for damaged file in zip 2009-08-11 15:12:00 +00:00
Pierre Joye
5dfda903ad -skip if not 5.3 2009-08-11 13:09:11 +00:00
Scott MacVicar
2192f61a43 Search /usr/include too for those wanting to use a system PCRE. 2009-08-11 12:03:29 +00:00
Kalle Sommer Nielsen
d6242c96fe Don't build sqlite as threadsafe if we are doing an NTS build 2009-08-10 16:58:53 +00:00
Pierre Joye
064d0ff3c0 - fix and improve dns' AAAA support on windows 2009-08-10 08:05:11 +00:00
Rasmus Lerdorf
a564ce3717 Tweak a few tests that failed on OSX 2009-08-10 06:53:49 +00:00
Rasmus Lerdorf
8c4e702f3c Make these socket tests less Linux-specific 2009-08-09 14:50:51 +00:00
Rasmus Lerdorf
3b3f13eb61 The system error here may not be "Filename too long". On OSX, for example,
it is "Invalid ioctl" in this case.
2009-08-09 14:20:54 +00:00
Ilia Alshanetsky
d24d6a449e MFB: Fixed bug #49193 (gdJpegGetVersionString() inside gd_compact identifies wrong type in declaration) 2009-08-09 13:16:21 +00:00
Rasmus Lerdorf
d80dac8aae Skip this test on osx because ceil(-0.5) doesn't return -0 like
everywhere else because of weird optimizations.
2009-08-09 05:16:17 +00:00
Rasmus Lerdorf
2be0578481 Doing a strnatcasecmp(chr(128),chr(255)) is completely non-sensical.
Logically one might think that chr(128) would collate before chr(255) except
this is a case-insensitive comparison and internally we toupper() both args.
toupper(chr(128)) is 128.  There is no upper-case equivalent of this char.
toupper(chr(255)) is 120 so chr(255) collates before chr(128) in this
case-insensitive comparison.  And these are rather bogus characters to feed
to a natsort test anyway.
2009-08-08 14:48:47 +00:00
Rasmus Lerdorf
cb734537f4 Restore intra-string whitespace collapsing broken in the previous change. 2009-08-08 14:39:34 +00:00
Pierre Joye
08dfcbc864 - [DOC] Fixed #49183 patch for VC6, NAPTR is only available in VC9+ build 2009-08-08 13:01:13 +00:00
Rasmus Lerdorf
238a8a2ebd Oops, true/false are not defined on Linux. They are on OSX. 2009-08-07 17:32:31 +00:00
Rasmus Lerdorf
88849ce511 Only skip leading 0's - fixes a test I broke a while ago 2009-08-07 17:14:19 +00:00
Jani Taskinen
dd7b767d7f - Fixed bug #48660 (parse_ini_*(): dollar sign as last character of value fails) 2009-08-07 14:21:38 +00:00
Pierre Joye
6625a196ff - Fixed #49183, dns_get_record does not return NAPTR records 2009-08-07 13:31:09 +00:00
Jani Taskinen
bf4bead40c - Fix test 2009-08-06 13:54:21 +00:00
Rasmus Lerdorf
8ed29f8d09 Fix more tests messed up by svn 2009-08-06 13:26:43 +00:00
Rasmus Lerdorf
5d1dc61dfb Fix test 2009-08-06 13:08:13 +00:00
Ilia Alshanetsky
08dda5a9f3 Make test more generic 2009-08-06 12:23:35 +00:00
Jani Taskinen
fa33079a14 - Fix CS and remove extra strlen() call 2009-08-06 11:11:15 +00:00
Rasmus Lerdorf
c9f5c32491 The user argument cannot be NULL here - fixes 2 tests 2009-08-06 10:56:00 +00:00
Scott MacVicar
da8bbc0ad0 Deal with moving to res_nsearch(). dns_search() on OSX lacks an error handler, might revert to using straight bind9. 2009-08-06 04:37:07 +00:00
Scott MacVicar
afcc47ef85 Fix bug #48575 - Use dlopen() just like all the other *nixes instead of OSX specific code. 2009-08-06 01:33:54 +00:00
Scott MacVicar
118b42f142 Remove usage of res_nmkquery and res_nsend. We essentially were just doing a res_search() anyway, though now we use res_nsearch() with our own state.
This also adds support for using the high level <dns.h> API on OSX which in turns allows use of bind9 (finally).
2009-08-06 00:10:46 +00:00
Scott MacVicar
80d7dee7d6 Change dns.h to php_dns.h, part of my dns cleanup 2009-08-05 23:20:17 +00:00
andy wharmby
f2c4140cfe Basic test for is_resource() and isset() functions. tested on Windows, Linux and Linux 64 2009-08-05 16:10:46 +00:00
Greg Beaver
36eb82e6ae use x.y.z version number, use a #define for version number 2009-08-05 15:58:50 +00:00
andy wharmby
1b4a8d1c62 Add new use-case to parse_str() test. Tested on Windows, Linux and Linux 64 2009-08-05 08:54:27 +00:00
Kalle Sommer Nielsen
70e338e285 Fix compiler warnings in ext/date 2009-08-04 21:11:35 +00:00
Jani Taskinen
90f148ab99 Merge from PHP_5_3 2009-08-04 14:51:29 +00:00
Ilia Alshanetsky
116abdde65 Added missing handling for ICO support 2009-08-04 14:34:44 +00:00
Jani Taskinen
8ecec408f8 - Add test (yes, it fails still :) 2009-08-04 12:16:40 +00:00
Jani Taskinen
106f29f805 - Fixed bug #48608 (Invalid libreadline version not detected during configure) 2009-08-04 11:20:49 +00:00
Kalle Sommer Nielsen
68bdcd2b59 Revert and correct previous fix, this does not loose precision and convert back to int 2009-08-04 11:19:07 +00:00
Antony Dovgal
6b8f06b921 cosmetic fix 2009-08-04 09:27:15 +00:00
Antony Dovgal
9618b85b65 fix memleak and possible segfault in HTTP fopen wrapper 2009-08-04 09:24:48 +00:00
Jani Taskinen
f487836c1a - Fixed bug #48768 (parse_ini_*() crash with INI_SCANNER_RAW) 2009-08-04 02:56:26 +00:00
Jani Taskinen
c3cd6d45c9 - Fix title 2009-08-04 02:55:24 +00:00
Jani Taskinen
633e5d4a05 -fix test 2009-08-04 02:54:10 +00:00
Jani Taskinen
cdf04b13a9 - Fixed bug #49056 (parse_ini_file() regression in 5.3.0 when using non-ASCII strings as option keys) 2009-08-04 02:34:04 +00:00
Jani Taskinen
3ce6066df8 - fix test 2009-08-04 02:24:47 +00:00
Jani Taskinen
ef19ca2e51 - Fix test 2009-08-04 02:17:33 +00:00
andy wharmby
f868c5d10b New basic tests for get_defined_constants(), get_loaded_extensions() and get_resource_type() functions. Tested on Windows, Linux and Linux 64 bit 2009-08-03 23:12:43 +00:00
andy wharmby
cccb4e446e Add missing SKIPIF sections to tests 2009-08-03 22:40:58 +00:00
Felipe Pena
f44f3a31cd - Fixed bug #49095 (proc_get_status['exitcode'] fails on win32) 2009-08-03 19:05:56 +00:00
Jani Taskinen
3df44e26b1 - Cleanup 2009-08-03 18:09:19 +00:00
Jani Taskinen
bad4f893f7 - Fix output compression 2009-08-03 18:08:46 +00:00
Felipe Pena
69dc1f80fd - CS 2009-08-03 15:58:18 +00:00
Felipe Pena
f59b07f3ad - Improved. No ugly copy. (Tony) 2009-08-03 13:26:15 +00:00
Felipe Pena
354e1e0ff4 - Re-fix stream_is_local() memory leaks 2009-08-03 13:16:24 +00:00
Jani Taskinen
856b6eef78 - Fixed bug #48400 (imap crashes when closing stream opened with OP_PROTOTYPE flag) 2009-08-03 13:02:53 +00:00
Jani Taskinen
cc77639000 - Fixed bBug #48873 (Using both --with-libedit and --with-readline cause unknown option warning)
# This isn't worth of NEWS entry, it's just cosmetic
2009-08-03 11:21:44 +00:00
Jani Taskinen
246e9f105d - These tests fail if mbstring is enabled, not because of bad libc.. 2009-08-03 10:23:23 +00:00
Antony Dovgal
eb219d11cb revert bogus memleak fix causing Valgrind to scream 2009-08-03 08:45:28 +00:00
Rasmus Lerdorf
e949665bc9 Fix broken json tests in all branches 2009-08-03 04:01:57 +00:00
Rasmus Lerdorf
7f607e0017 Missed a merge 2009-08-02 23:12:04 +00:00
Etienne Kneuss
f52cd698a2 Addref on clone as well 2009-08-02 21:21:46 +00:00
Antony Dovgal
86af167ce1 fix test 2009-08-02 20:49:20 +00:00
Jani Taskinen
d8852cfabe - More and more missing svn:ignore entries. 2009-08-02 01:48:27 +00:00
Jani Taskinen
65db89ffbe - Fixed bug #49122 (undefined reference to mysqlnd_stmt_next_result on compile with --with-mysqli and MySQL 6.0) 2009-08-02 01:07:38 +00:00
Felipe Pena
f08443b5f5 - Fixed paths 2009-08-01 23:26:02 +00:00
Felipe Pena
1838e818cb - Fixed bug #49125 (Error in dba_exists C code)
patch by: jdornan at stanford dot edu
2009-08-01 23:10:11 +00:00
Felipe Pena
d47dc13042 - Fixed ReflectionClass::getStaticProperties() to do not return the private properties from parent class;
behavior already adopted in ReflectionClass::getDefaultProperties() and ReflectionClass::getProperties().
2009-08-01 20:44:00 +00:00
Felipe Pena
c5e6fb4712 - Fixed bug #49132 (posix_times returns false without error)
patch by: phpbugs at gunnu dot us
2009-08-01 18:22:31 +00:00
Felipe Pena
53debf4a9f - Fixed tests 2009-08-01 15:46:50 +00:00
Kalle Sommer Nielsen
fef66b3c2d Kill compiler warnings 2009-08-01 14:45:42 +00:00
Jani Taskinen
dbeb08f357 - Fixed bug #43510 (stream_get_meta_data() does not return same mode as used in fopen) 2009-08-01 03:17:31 +00:00
Jani Taskinen
dd2876c396 - Fixed bug #49092 (ReflectionFunction fails to work with functions in fully qualified namespaces) 2009-08-01 01:45:22 +00:00
Jani Taskinen
a8470d2500 - Added test for bug #49074 2009-08-01 01:01:43 +00:00
Jani Taskinen
3088494349 - Fixed bug #49074 (private class static fields can be modified by using reflection) 2009-08-01 00:48:04 +00:00
Felipe Pena
148f4dc105 - Fixed bug #49108 (2nd scan_dir produces seg fault) 2009-07-30 12:06:40 +00:00
Jani Taskinen
c5584b5f68 - Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012 2009-07-30 11:32:08 +00:00
Jani Taskinen
0e6ed79e7e - Fix test 2009-07-30 10:53:04 +00:00
Kalle Sommer Nielsen
4bd13ad92a Test case for bug #42434 2009-07-30 03:54:27 +00:00
Felipe Pena
bdf5fbc0d5 - Fixed memleak in stream_is_local() 2009-07-29 19:09:17 +00:00
Felipe Pena
f15d7f8b38 - Fixed memleak on SplFileInfo::getLinkTarget() 2009-07-29 17:31:25 +00:00
Greg Beaver
9275caf719 oops, released as beta instead of stable, Gwynne: svn rm tags/RELEASE_2_0_0 fails, perhaps this can be allowed? 2009-07-29 16:29:30 +00:00
Felipe Pena
9dd9f9f9d2 - Fixed memleak on Phar::mungServer() 2009-07-29 16:17:57 +00:00
Derick Rethans
2628e5e4db - Fixed headers...
#- It makes sense to change the .re files instead of just the generated .c
#  files...
2009-07-29 15:41:21 +00:00
Derick Rethans
923a5de072 - Fixed bug #45554 (Inconsistent behavior of the u format char). 2009-07-29 15:34:59 +00:00
Ilia Alshanetsky
4d0e637af8 Fixed bug #45141 (setcookie will output expires years of >4 digits). 2009-07-29 13:44:16 +00:00
Greg Beaver
c880f7e5c4 make phar tests pass in php 5.2, prepare for release of pecl/phar 2.0.0, merge Gwynne's TSRM fix to phar_object.c to other branches 2009-07-29 10:14:04 +00:00
Moriyoshi Koizumi
44e4219d26 * Fix bug #48645 (mb_convert_encoding() doesn't understand hexadecimal html-entities) 2009-07-29 04:44:08 +00:00
Hannes Magnusson
3d136f42e2 MFH: Fixed bug #44144 & add test 2009-07-28 22:25:31 +00:00
Kalle Sommer Nielsen
eb3a724441 Fixed bug #42434 (ImageLine w/ antialias = 1px shorter)
- patch by wojjie at gmail dot com
2009-07-28 20:35:06 +00:00
Sriram Natarajan
eccab28d64 - 48182 ssl handshake fails during asynchronous socket connection 2009-07-28 19:28:08 +00:00
Jani Taskinen
527d06032d - Skip some tests in 32bit systems, add cleanups where missing 2009-07-28 19:16:02 +00:00
Derick Rethans
349283b445 - Updated to version 2009.11 (2009k) 2009-07-28 15:25:16 +00:00
Rasmus Lerdorf
e07464d7f7 Get rid of this platform-specific test 2009-07-28 14:56:08 +00:00
Ilia Alshanetsky
af90ded818 Fixed compiler warning 2009-07-28 12:26:16 +00:00
Antony Dovgal
ae340374b2 configure dependency has to be optional as well 2009-07-28 08:59:08 +00:00
Antony Dovgal
69dba3c996 fix segfault in session/tests/031.phpt by adding optional extension
dependency (php_hash_hashtable has to be initialized when setting
session.hash_function)
2009-07-28 08:54:23 +00:00
Ilia Alshanetsky
bf0ef43d30 Fixed compiler warning 2009-07-27 19:36:55 +00:00
Takeshi Abe
2d2f18dedc fixed #48732 (TTF Bounding box wrong for letters below baseline) and #48801 (Problem with imagettfbbox) 2009-07-27 15:02:15 +00:00
Felipe Pena
2d7a87dec5 - Fix compiler warnings 2009-07-27 13:21:42 +00:00
Felipe Pena
2b5b1efb97 - Fix ZTS build 2009-07-26 23:44:59 +00:00
Jani Taskinen
74fa8a7bd3 - Regenerated 2009-07-26 23:22:27 +00:00
Jani Taskinen
1b1b02ae54 - Fixed bug #49064 (--enable-session=shared does not work: undefined symbol:
php_url_scanner_reset_vars). (Jani)

# Note: This does not exist in PHP_5_2. Merged there as well to keep these files synced.
2009-07-26 23:20:34 +00:00
Jani Taskinen
c6b7baaa49 - Removed unused code (replaced long time ago by url_scanner_ex.* 2009-07-26 22:59:46 +00:00
Antony Dovgal
1bf1e084a6 fix test 2009-07-26 19:59:20 +00:00
Antony Dovgal
b282ac20ef fix test 2009-07-26 19:53:14 +00:00
Antony Dovgal
b9c32de510 fix test 2009-07-26 19:51:09 +00:00
Antony Dovgal
6bb52c7b4d fix test 2009-07-26 19:46:38 +00:00
Rasmus Lerdorf
6bc8d0d971 Fix broken test 2009-07-26 18:45:18 +00:00
Rasmus Lerdorf
5dc804f383 Fix test 2009-07-26 18:16:39 +00:00
Rasmus Lerdorf
5f64810ebd Still lots more Unicode work to be done here, but this is a start 2009-07-26 16:50:41 +00:00
Gwynne Raskind
e5c6e53f8c fix ZTS build 2009-07-26 15:52:50 +00:00
Rasmus Lerdorf
a3ae25ee66 Internally-created array indices are unicode - fix tests to match 2009-07-26 08:38:01 +00:00
Rasmus Lerdorf
4551e0fda3 Fix a bunch of binary/unicode issues in the mcrypt tests 2009-07-26 08:13:40 +00:00
Rasmus Lerdorf
4743436576 Fix 2 broken json tests.
json_decode() returns a binary string, not unicode for
efficiency, and if you are going to test invalid utf8
in a test, you have to stuff it into a binary string
or it will be valid unicode by definition.
2009-07-26 07:21:02 +00:00
Rasmus Lerdorf
0daf9214f8 I don't see why a unicode string would appear here, and in fact it doesn't. 2009-07-26 04:40:36 +00:00
Rasmus Lerdorf
578c47faa4 Down to a single curl test failure now 2009-07-26 03:46:22 +00:00
Greg Beaver
e7e232cd2b make cache_list tests pass in php 6 2009-07-26 03:07:23 +00:00
Greg Beaver
d46a947d23 fix buildFromIterator with filesystem iterator in php 6 2009-07-26 02:43:14 +00:00
Rasmus Lerdorf
866e3bddcd Fix 2 more curl tests in PHP 6 2009-07-26 02:25:17 +00:00
Greg Beaver
38fbf6a798 re-enable phar now that compile and building phar.phar works 2009-07-26 02:19:58 +00:00
Greg Beaver
23f7807148 fix generation of phar.phar in php 6, fix remaining tests broken by PHP 6 (and not by spl/other stuff in php6) 2009-07-26 02:18:50 +00:00
Rasmus Lerdorf
66e97ac0bd The test for bug #46739 doesn't actually need the remote
responder, so get rid of the skipif in PHP 5, and it was
broken in PHP 6 because the keys in the curl_info array 
were not unicode.  All internally-generated arrays should
have unicode keys.
2009-07-26 02:12:38 +00:00
Greg Beaver
de9bcbb1d0 fix basic phar test issues, failing tests phar_oo_009.phpt and phar_buildfromiterator10.phpt are due to bugs in Spl 2009-07-26 01:24:12 +00:00
Greg Beaver
9a677532db re-organize slightly, fix more php6-only compile warnings in php_stream_copy_to_mem 2009-07-26 01:03:47 +00:00
Greg Beaver
0984d25723 fix zip front controller tests for php6 2009-07-26 00:39:40 +00:00
Greg Beaver
b777e5fd8a fix tar front controller tests for php6 2009-07-26 00:35:17 +00:00
Greg Beaver
e1dccfd492 fix more tests for php6 2009-07-26 00:28:50 +00:00
Greg Beaver
fba6dd1cbf more php6 fixes for phar, fix more tests 2009-07-25 23:45:45 +00:00
Kalle Sommer Nielsen
ae087c341f MFB: Fixed bug #48189 (ibase_execute error in return param) 2009-07-25 23:39:21 +00:00
Jani Taskinen
0f6d8f05dc - Fix tests to be more comptatible AND to test what they are supposed to test 2009-07-25 22:20:18 +00:00
Felipe Pena
4e1feb125b - Opss, fix the fix... 2009-07-25 21:56:31 +00:00
Felipe Pena
c69383b659 - Fix test 2009-07-25 21:52:33 +00:00
Rasmus Lerdorf
0bb28d4784 Fix dumb typo in the skipif 2009-07-25 21:37:04 +00:00
Jani Taskinen
ed849dd90f - Add missing EXPERIMENTAL note (this thing REALLY is experimental at best..) 2009-07-25 20:58:51 +00:00
Jani Taskinen
a4d2566366 - Fixed bug #48637 ("file" wrapper is overwritten when using --with-curlwrappers)
# Also fixes bug #48603, basically same issue.
2009-07-25 20:44:19 +00:00
Felipe Pena
7ed7ff728e - Making Valgrind happy 2009-07-25 20:39:01 +00:00
Derick Rethans
e104879eeb - Updated to version 2009.11 (2009k) 2009-07-25 15:14:23 +00:00
Jani Taskinen
cd19d2ef05 - Fix bad environment usage 2009-07-25 14:52:52 +00:00
Jani Taskinen
d23acc13b4 - Fix test when responder is something like lighttpd 2009-07-25 14:49:17 +00:00
Jani Taskinen
b3568760bd - Fix test 2009-07-25 14:20:38 +00:00
Jani Taskinen
eae3e69f33 - Fixed bug #49052 (context option headers freed too early when using --with-curlwrappers) 2009-07-25 13:00:25 +00:00
Jani Taskinen
027ded73f7 - Fix build 2009-07-25 00:10:47 +00:00
Greg Beaver
d39fda5ff7 begin work on making phar php6-ready 2009-07-24 23:53:24 +00:00
Moriyoshi Koizumi
ac3657d6d4 - Probably harmless, but it should have been done this way. 2009-07-24 23:44:43 +00:00
Greg Beaver
93e31b4d2f update test to work in php 6 2009-07-24 22:09:36 +00:00
Greg Beaver
03692bf83b merge unmerged changes from php 5.3 2009-07-24 21:32:22 +00:00
Greg Beaver
54b20e7d01 fix PHAR_ARG_INFO #define to work with PHP major versions > 5 2009-07-24 21:27:51 +00:00
Greg Beaver
2a7b14e571 fix --CLEAN-- of all.phpt, remove unnecessary check in phar_convert_again.phpt, and fix signature generation and checking for zip to also include central directory up to the signature, implement better check for end-of-zip at signature verification 2009-07-24 19:40:41 +00:00
Greg Beaver
c92396a82c merge unmerged changes between branches, remove unnecessary test for zip signature failure in badparameters.phpt 2009-07-24 17:07:05 +00:00
Greg Beaver
0af9a6a03b fix minor memory leak 2009-07-24 16:21:40 +00:00
Greg Beaver
2a0668d57b fix signature generation/validation for zip archives by phar extension, fix a few edge cases where memory was leaked on error conditions by missing efree() 2009-07-24 15:42:17 +00:00
Rafael Machado Dohms
74e4637e38 Adding tests for imagesetthickness, basic and errors for both params, and complementing imagetruecolortopalette with out of bound params 2009-07-24 03:06:05 +00:00