Commit Graph

26041 Commits

Author SHA1 Message Date
Andrey Hristov
bc7bbaa65a Use mnd_ wrappers wherever possible. Needed for
statistics.
2009-09-30 23:13:43 +00:00
Andrey Hristov
4af8d99eb6 Fix trace output. DBG_RETURN should be used in traced
functions.
2009-09-30 22:26:19 +00:00
Ulf Wendel
d79cba2afd Fixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd. 2009-09-30 14:39:33 +00:00
Felipe Pena
59dc338ac2 - Fixed test 2009-09-30 13:30:32 +00:00
Dmitry Stogov
e7b1e07647 pcntl_exec() should inherit environment in case it's not provided as an argument 2009-09-30 13:04:28 +00:00
Ilia Alshanetsky
dd8842c28f Fixed bug #49517 (cURL's CURLOPT_FILE prevents file from being deleted after fclose). 2009-09-30 02:34:17 +00:00
Ulf Wendel
1e0743df12 Fixing test 2009-09-29 16:37:50 +00:00
Rafael Machado Dohms
7f293b32a1 Fixing tests for head and wrong SKIPIF blocks 2009-09-29 14:34:06 +00:00
Rasmus Lerdorf
49b34e9ac6 Add missing open_basedir check in posix_mkfifo 2009-09-29 14:03:49 +00:00
Rasmus Lerdorf
22fdde3f5d Fix date_sunrise/date_sunset tests 2009-09-29 13:56:51 +00:00
Rafael Machado Dohms
c047bd6648 Adding tests for bug #49692 2009-09-28 22:57:41 +00:00
Rasmus Lerdorf
f4c8961b14 Fix for bug #49698 2009-09-28 13:29:53 +00:00
Pierre Joye
f5e52c9a79 - fix TS build, this macro contains code and declaration, always put it right after your declaration 2009-09-28 12:54:23 +00:00
Ulf Wendel
1e0d7fc509 Fixing test 2009-09-28 10:42:36 +00:00
Ulf Wendel
fff7ef9412 Allow setting of default connection flags through the environment variable MYSQL_TEST_CONNECT_FLAGS 2009-09-28 10:39:42 +00:00
Felipe Pena
5f6882aa4d - Fixed tests 2009-09-26 17:59:33 +00:00
Felipe Pena
c5449ae3c1 - Fixed tests 2009-09-26 16:54:08 +00:00
Rasmus Lerdorf
5f9009963f Refix bug #49558 as per bug #49676 2009-09-26 00:53:59 +00:00
Ulf Wendel
260596bfaa Trying to respect time limit to please Andrey who must be using slooow hardware... 2009-09-25 13:21:44 +00:00
Andrey Hristov
089e8b56a1 Fix mysqli_stmt_attr_set in libmysql mode.
mysql_stmt_attr_set returns my_bool instead of int.
If it was int, then 0 is success and !0 is failure, but
for my_bool 0 (FALSE) is failure and !0 is success.
2009-09-25 12:25:54 +00:00
Andrey Hristov
07757b4f2f Fix a crash in the rare case when a persistent connection
is found dead, after CHNG_USER. mysql->mysql will be NULL
and segfault will follow.
2009-09-25 11:38:19 +00:00
Ulf Wendel
6ae4ba4173 Large package to check how compression handles package queues. 2009-09-25 10:56:17 +00:00
Andrey Hristov
1d25ad7f5c Remove unused variable 2009-09-25 10:55:06 +00:00
Ulf Wendel
8ad273c88e Replacing MYSQL_TEST_COMPRESS env var with more generic MYSQL_TEST_CONNECT_FLAGS to be able to test all connection flags. Fixing some test. 2009-09-25 10:54:16 +00:00
Andrey Hristov
5d8d0fcfb1 Fix error code checking for mysql_stmt_attr_set. There
is a test that checks this.
2009-09-25 10:52:29 +00:00
Andrey Hristov
cec76fd650 Fix possible crash when conn is NULL 2009-09-25 10:37:44 +00:00
Felipe Pena
dc73022a1d - Fix test 2009-09-25 02:07:41 +00:00
Felipe Pena
275cd0d7d9 - Fixed mem leak 2009-09-25 01:46:58 +00:00
Ilia Alshanetsky
e3f239c6ce Make tempnam() return FALSE on error as documented 2009-09-24 18:59:28 +00:00
Sriram Natarajan
282732a62b - Fixed bug #49571 (CURLOPT_POSTREDIR not implemented). 2009-09-24 18:20:49 +00:00
Jani Taskinen
b41f9661f8 - Fix the build issue with php_mysqlnd_config.h ending up in wrong build directory 2009-09-24 18:01:17 +00:00
Rob Richards
1603c45086 Fixed bug #49647 (DOMUserData does not exist) 2009-09-24 13:18:22 +00:00
Ulf Wendel
e123cae8ac Proxying as many connect calls as possible to make testing of the compression protocol @ mysqlnd easier. By setting the environment variable MYSQL_TEST_COMPRESS you can tell the tests to set the MYSQLI_CLIENT_COMPRESS flag upon connect. 2009-09-24 12:51:03 +00:00
Rob Richards
fe1709ec49 fix memleak 2009-09-24 12:40:59 +00:00
Ulf Wendel
9326836676 Fixing test 2009-09-24 09:40:24 +00:00
Ulf Wendel
d3b2b3c155 Coverage for the OO variants of some functions 2009-09-24 08:19:56 +00:00
Dmitry Stogov
fe796df92d Fixed tests ("\r" and "\n" mismatch) 2009-09-23 16:34:05 +00:00
Moriyoshi Koizumi
ce3c028803 - Fixed bug #49354 (mb_strcut() cuts wrong length when offset is within a
multibyte character).

(This bug was introduced by the commit by r202895. Please double-check the
 specification of the function you are going to *fix*.)
2009-09-23 15:22:47 +00:00
Dmitry Stogov
f4f23add37 Removed irrelevant test 2009-09-23 14:15:52 +00:00
Dmitry Stogov
3c0dba4510 Fixed a bug in parameter passing/conversion API which caused tons of memleak and was the reason of ~1500 test failurs 2009-09-23 13:51:50 +00:00
Dmitry Stogov
69df782740 Fixed compilation error 2009-09-23 08:33:23 +00:00
Felipe Pena
8bbad1ad60 - Fixed bug #49531 (CURLOPT_INFILESIZE sometimes causes warning "CURLPROTO_FILE cannot be set ...") 2009-09-23 02:08:19 +00:00
Ilia Alshanetsky
65d3b858a9 Fixed compiler warning 2009-09-23 00:18:32 +00:00
Felipe Pena
1766f09b8d - Fixed bug #49630 (imap_listscan function missing)
# Missing PHP_FE(), though nowdays it is used through of two aliases. (imap_scan() and imap_scanmailbox())
2009-09-22 18:18:57 +00:00
Ulf Wendel
fd33df54ba mysqlnd supports INIT_COMMAND and so we can add it to PDO_MYSQL @ mysqlnd 2009-09-22 15:31:35 +00:00
Andrey Hristov
5a1ae5b876 Fix handling of BIT fields for non-PS. We need
macros from mysqlnd to be able to convert a bit
stream to a number. BIT is binary data thus
the result is a string, and not unicode
2009-09-22 15:07:39 +00:00
Dmitry Stogov
d906bd09f0 Fixed tests which fail from time to time because of race conditions ("echo" command didn't wait for all the data php tried to send and as result php got a SIGPIPE) 2009-09-22 14:52:47 +00:00
Andrey Hristov
67a0d7ad46 sync with branch, after Ulf's commits 2009-09-22 14:52:12 +00:00
Andrey Hristov
26f5344ed0 Check for the different types and create the
corresponding configuration file, so it can be used
by mysqli, even if mysqlnd is not enabled at all.
2009-09-22 14:43:37 +00:00
Andrey Hristov
e4be0b369c Fix handling of BIT fields in mysqli, when libmysql is used
We need to use macros from mysqlnd to be able to read the
bit fields, as they are specially encoded. mysqlnd is always
there, 5.3+, so its macros can be used, even if mysqlnd is
not compiled as library of choice.
2009-09-22 13:58:52 +00:00
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