Compare commits

..
Author SHA1 Message Date
Johannes Schlüter bbdb07f3ab PHP 5.3.3RC2 2010-07-01 15:46:49 +00:00
Johannes Schlüter 2b48156eab 5.3.3 RC2 2010-07-01 15:44:18 +00:00
Felipe Pena 92ba590555 - BFN 2010-07-01 01:12:21 +00:00
Pierre Joye 1fe5265c3e - WS 2010-06-30 22:06:49 +00:00
Ilia Alshanetsky 112ac7e978 Fixed bug #33210 (getimagesize() fails to detect width/height on certain JPEGs). 2010-06-30 12:21:35 +00:00
Stanislav Malyshev af2d266a09 sync version with PECL 2010-06-30 04:23:32 +00:00
Felipe Pena 4e606e3ceb - Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3) 2010-06-30 02:45:10 +00:00
Felipe Pena 96bb25e8e7 - Reverted fix for bug #48930 (due binary compatibility breakage) 2010-06-29 11:37:13 +00:00
Stanislav Malyshev 865f85718f fix SplObjectStorage unserialization (CVE-2010-2225) 2010-06-29 00:58:31 +00:00
Pierre Joye 9c60bd8df7 - typo for iconv DLL .lib 2010-06-28 23:26:48 +00:00
Felipe Pena a8e80ec235 - Reverted fix for bug #51421 2010-06-28 16:37:57 +00:00
Felipe Pena 0488a86634 - Fix arginfo name 2010-06-28 01:19:08 +00:00
Felipe Pena ced29dd706 - Improved initialization 2010-06-27 22:13:41 +00:00
Felipe Pena 9b07568c43 - Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3) 2010-06-27 21:46:16 +00:00
Felipe Pena 0cc45e7bdb - BFN 2010-06-26 22:07:04 +00:00
Felipe Pena 10a9634bc9 - Fixed bug #51421 (Abstract __construct constructor argument list not enforced) 2010-06-26 22:05:13 +00:00
Felipe Pena eb5e97adf5 - Fixed bug #52160 (Invalid E_STRICT redefined constructor error) 2010-06-26 19:19:16 +00:00
Felipe Pena 419f589580 - Fixed tests 2010-06-26 17:17:47 +00:00
Felipe Pena 9ea7a70e24 - Fixed bug #52193 (converting closure to array yields empty array) 2010-06-26 17:14:33 +00:00
Felipe Pena e64734f986 - Fixed bug #52183 (Reflectionfunction reports invalid number of arguments for function aliases) 2010-06-26 16:03:39 +00:00
Christopher Jones 22458ed4d5 Remove hard coded lib extension. Prepare for OCI8 1.4.2 release 2010-06-25 21:18:09 +00:00
Christopher Jones 86544f5971 Fix bug #52186 (phpinfo shows 10.1 or 11.1 when installed with ORACLE_HOME 10.2 or 11.2) 2010-06-25 21:09:13 +00:00
Felipe Pena 5a3a34e3e6 - Fixed bug #52138 (Constants are parsed into the ini file for section names) 2010-06-24 22:32:42 +00:00
Andrey Hristov 89bd3af6b9 Two functions, which should be methods so one can catch
their output, for example
2010-06-24 19:52:13 +00:00
Pierre Joye d27d572a7d - typo 2010-06-24 00:15:12 +00:00
Sriram Natarajan 2bb9bbb803 - Fixed bug #52162 (custom request header variables with numbers are removed) 2010-06-23 19:06:33 +00:00
Johannes Schlüter 08e1471c16 Install SQLite3 header 2010-06-23 15:11:02 +00:00
Andrey Hristov 53324e8830 Fix sprintf modifiers all around the place. In most cases
%u should be used. Where size_t is used then MYSQLND_SZ_T_SPEC should be
the modifier
2010-06-21 15:32:26 +00:00
Andrey Hristov 698539fa79 fix valgrind warnings on 64bit, thread_is is strictly 32bit 2010-06-21 14:49:45 +00:00
Ilia Alshanetsky 6b990988f1 MFB: Implemented FR #51295 (SQLite3::busyTimeout not existing). (Mark) 2010-06-21 11:06:31 +00:00
Pierre Joye 6ee4060bfa - #45808, stream_socket_enable_crypto() blocks and eats CPU 2010-06-20 16:33:16 +00:00
Felipe Pena c6e852d7db - Completed the fix for bug #52010
# Fixing pdo drivers
2010-06-20 14:12:06 +00:00
Jérôme Loyet ffdd175918 - Fixed bug #52086 (No new line at the end of a included file crahes the PHP FPM daemon) 2010-06-19 16:31:19 +00:00
Andrey Hristov 5a4a66cdd5 Fix for bug #52115 mysqli_result::fetch_all returns null, not an empty array 2010-06-18 17:25:41 +00:00
Andrey Hristov 6b730a04ae missed this one in the last commit, the real type 2010-06-18 12:00:57 +00:00
Andrey Hristov 7f79e86886 fix type mismatch, this is fresh misunderstanding 2010-06-18 11:56:25 +00:00
Johannes Schlüter 7d0eedf08c - Ignore empty filename for mail.log, treat it like none given 2010-06-18 10:16:35 +00:00
Ulf Wendel f3448471df Don't bail if there is another extension that exports constants starting with mysql<something> 2010-06-18 09:56:18 +00:00
Johannes Schlüter d52e132203 back to -dev 2010-06-18 08:22:14 +00:00
Johannes Schlüter 8661e8d298 PHP 5.3.3RC1 2010-06-17 17:16:57 +00:00
Johannes Schlüter 8a142cb861 5.3.3RC1 2010-06-17 17:10:16 +00:00
Pierre Joye a46cb6b513 - fix build 2010-06-17 16:56:48 +00:00
Johannes Schlüter 06c987663a - 80 lines are nice, sentences stop with a period
- Merge in 5.3.2 NEWS ...
2010-06-17 12:31:57 +00:00
Andrey Hristov ae4ae5a313 split mysqlnd_connect() in two parts, one doing the authorization 2010-06-17 11:37:49 +00:00
Pierre Joye c4c6b69b64 - #51424 2010-06-17 10:22:51 +00:00
Pierre Joye 84f3b13264 - #51424, solaris part 2010-06-17 10:22:03 +00:00
Pierre Joye 49418ce7da - Fix bug #52101, dns_get_record()garbage in 'ipv6' field 2010-06-17 09:26:29 +00:00
Felipe Pena d4746a659e - BFN 2010-06-16 23:40:23 +00:00
Felipe Pena 42c4bafbbd - New tests related to #52098 2010-06-16 23:33:01 +00:00
Felipe Pena d596ea742a - Fix crash when calling a method of a class that inherits PDOStatement if instantiated directly 2010-06-16 23:13:29 +00:00
Andrey Hristov d47e50a9ff no more needed because of the charset fix in the previous changeset 2010-06-16 19:01:13 +00:00
Pierre Joye cfd930d218 - #50563, removing E_WARNING from parse_url() 2010-06-16 18:56:24 +00:00
Pierre Joye 4029454a0d - Fix bug #50578, incorrect shebang in phar.phar 2010-06-16 18:30:35 +00:00
Timm Friebe ec54570362 - MFT: Fixed segmentation fault when reading rows
# Problem surfaces when using FreeTDS, ASE 12.5 and reading text fields
# with NULL values. This is essentially a workaround for a bug in Free-
# TDS which is not setting the NULL indicators correctly, but provides
# a protection against possible segfaults if any other driver ever does
# this again:-)
2010-06-16 09:49:25 +00:00
Antony Dovgal 3896e7403d improve ptrace() test
change error to warning - there can be no trace method available at all
2010-06-16 08:58:42 +00:00
Ben Longden ddc9246071 Merged SplFileObject::fgetcsv tests from trunk 2010-06-15 21:42:04 +00:00
Felipe Pena f310305fc2 - New entries 2010-06-15 19:37:20 +00:00
Pierre Joye 2cfb5e4254 - Fix #51002, fix possible memory corruption with very long names 2010-06-15 18:48:33 +00:00
Pierre Joye 33ac0d0e33 - cleanup, no vc6 support in trunk 2010-06-15 13:50:14 +00:00
Pierre Joye d686b7579a - #51424, silent warnings on win 2010-06-15 13:43:15 +00:00
Ben Longden d1c912628d Merged SplTempFileObject tests from trunk 2010-06-15 11:20:21 +00:00
Ilia Alshanetsky 24b8bc3489 Removed the in_transaction handler for 5.3 to avoid BC break due to structure change 2010-06-15 11:13:20 +00:00
Pierre Joye 8fcd33ed18 - Fix #51424, crypt() function hangs after 3rd call 2010-06-15 09:26:06 +00:00
Dmitry Stogov 3d5f729181 Fixed bug #52041 (Memory leak when writing on uninitialized variable returned from function) 2010-06-15 08:22:51 +00:00
Andrey Hristov 0da5464a81 Fix the test for libmysql, which expects the certificates
to be in the directory where the interpreter is started. When
using mysqlnd they should not include path and will be found
in the directory of the script.
2010-06-14 18:23:17 +00:00
Andrey Hristov 83051b1a86 And a fix for MySQL Server which is pre 5.1.23, which doesn't support
preserving of the charset when performing change_user. This is libmysql
only code.
2010-06-14 18:19:13 +00:00
Andrey Hristov 1d9c49bb3c Fixed bug #52082 (character_set_client & character_set_connection reset after
mysqli_change_user())

libmysql >= 5.1.23 will PASS, older library versions will fail
2010-06-14 17:16:20 +00:00
Pierre Joye 0296501274 - MFH 2010-06-14 09:56:50 +00:00
Pierre Joye 22df3125d5 - drop comment 2010-06-14 09:15:20 +00:00
Pierre Joye d652e02235 - #52043,GD doesn't recognize latest libJPEG version 2010-06-14 08:12:10 +00:00
Jérôme Loyet 205775507a Fix #52067, chroot and chdir path were not checked at startup. If configured with unexistant directories, FPM entered in an error loop. 2010-06-13 10:30:35 +00:00
Felipe Pena 764a95f6f3 - Fixed bug #49320 (PDO returns null when SQLite connection fails) 2010-06-12 22:04:48 +00:00
Felipe Pena f1e02c5cc7 - Fixed bug #52051 (handling of case sensitivity of old-style constructors changed in 5.3+) 2010-06-12 15:30:21 +00:00
Felipe Pena 4d3944f941 - Fixed bug #52057 (ReflectionClass fails on Closure class) 2010-06-11 23:37:55 +00:00
Felipe Pena 5eb64a4957 - Fixed bug #52060 (Memory leak when passing a closure to method_exists()) 2010-06-11 23:20:13 +00:00
Patrick Allaert 899bc2f582 - Fixed bug #52019 (make lcov doesn't support TESTS variable anymore) 2010-06-11 14:04:57 +00:00
Dmitry Stogov d24c14cb59 Fixed bug #51552 (debug_backtrace() causes segmentation fault and/or memory issues) 2010-06-11 08:53:31 +00:00
Ulf Wendel afcb62ba1e Fixing tests 2010-06-10 13:40:13 +00:00
Andrey Hristov 7aaef918a6 export mysqlnd_globals_id, per Johannes 2010-06-10 12:24:03 +00:00
Ilia Alshanetsky 90906a91e9 Added inTransaction() method to PDO, with specialized support for Postgres 2010-06-10 12:11:19 +00:00
Dmitry Stogov 748dd20476 Fixed bug #51822i (Segfault with strange __destruct() for static class variables) 2010-06-10 11:45:51 +00:00
Ilia Alshanetsky 9daa864c4f Added support for copy to/from array/file for pdo_pgsql extension.
# original patch by Denis Gasparin
2010-06-10 11:11:29 +00:00
Andrey Hristov e692080fc5 void functions return nothing 2010-06-10 09:37:58 +00:00
Dmitry Stogov cac310d87e Fixed bug #52001 (Memory allocation problems after using variable variables) 2010-06-10 09:13:22 +00:00
Christopher Jones 442fa8dc1b Explicitly use db-5.0 and don't default to db sym link 2010-06-09 17:33:44 +00:00
Ilia Alshanetsky f7d82d0e0d Fixed bug #52010 (open_basedir restrictions mismatch on vacuum command). 2010-06-09 16:04:54 +00:00
Ilia Alshanetsky 0d4720a61b Fixed bug #51273 (Faultstring property does not exist when the faultstring is empty)
# Patch by dennis at transip dot nl
2010-06-09 15:48:22 +00:00
Pierre Joye 9e5313fdca - [DOC] MFH: add session.entropy* support to windows 2010-06-08 22:30:16 +00:00
Pierre Joye 32447e4902 - restore previous setting 2010-06-08 22:27:14 +00:00
Sriram Natarajan dbddbb6e34 - Fixed Bug #51168 (fails to compile with Sun Studio)
# C99 standard supports inline keyword and supported by
 # by major compilers like GCC, HP C, IBM C and Sun C
2010-06-08 21:23:48 +00:00
Felipe Pena 178ee9325d - Fix order 2010-06-08 19:47:04 +00:00
Antony Dovgal 3c9e1e6d70 support both 'warn' and 'warning' as error levels 2010-06-08 18:59:11 +00:00
Pierre Joye 73a413bdea - use new function to get random bytes 2010-06-08 18:27:23 +00:00
Pierre Joye 481f77890d - WS 2010-06-08 18:26:03 +00:00
Ulf Wendel 20f6aaeca9 Make the tests pass with sql strict mode enabled 2010-06-08 15:47:51 +00:00
Ulf Wendel aeae0d1bad Portability improvement 2010-06-08 14:57:10 +00:00
Ulf Wendel 3e5ac35bd9 Portability improvements 2010-06-08 14:29:05 +00:00
Pierre Joye 761dbeedbb - duplicate entry 2010-06-08 13:48:02 +00:00
Pierre Joye f8b17007e0 - [DOC] add session.entropy* support to windows 2010-06-08 13:46:19 +00:00
Antony Dovgal 9badd4f0fb fix bug #50101 (name clash between global and local variable) 2010-06-08 13:27:30 +00:00
Ulf Wendel 6b1d256af5 More SQL strict mode updates 2010-06-08 13:05:49 +00:00
Pierre Joye 68cd943189 - add striped down version of RNG layer to have a reliable random src on windows 2010-06-08 13:00:54 +00:00
Pierre Joye 5afc8e2c83 - add striped down version of RNG layer to have a reliable random src on windows 2010-06-08 13:00:11 +00:00
Antony Dovgal ae01c146d1 fix bug #51276 (php_load_extension() is missing when HAVE_LIBDL is undefined) 2010-06-08 12:54:11 +00:00
Antony Dovgal a8be1c1d4b fix micro-memleaks (happened once per process) 2010-06-08 12:02:55 +00:00
Ulf Wendel 0fb528edee Making tests pass strict sql mode. 2010-06-08 10:55:12 +00:00
Felipe Pena b65a473efb - Let's generate this #ifdef only on zend_vm_execute.h 2010-06-07 23:04:30 +00:00
Felipe Pena d78fb2b14a - Fix script 2010-06-07 14:37:35 +00:00
Pierre Joye 6d1d27bc3a - show the free_op1 warning only once, until a fix is applied 2010-06-07 01:37:59 +00:00
Pierre Joye 707980c2be - show the free_op1 warning only once, until a fix is applied 2010-06-06 20:32:51 +00:00
Pierre Joye badf05a8ea - silent warning (unary minus operator applied to unsigned type) 2010-06-06 15:28:30 +00:00
Pierre Joye b690b940ca - label only used when mmap is available 2010-06-06 12:32:25 +00:00
Christopher Jones 5441c86936 New test for file_exists (bug #39863). It currently xfail's 2010-06-05 19:44:48 +00:00
Felipe Pena a14dd7502b - Fixed bug #51991 (spl_autoload and *nix support with namespace) 2010-06-04 00:10:15 +00:00
Felipe Pena c42d8b3776 - Fix proto and argname 2010-06-03 18:39:21 +00:00
Felipe Pena 7deae5022d - Added ZipArchive arginfo 2010-06-03 18:23:14 +00:00
Christopher Jones 9ef6a73dee Add Berkeley DB 5 support. (An outstanding issue with BDB 4.8 related to 51086 that also affects BDB 5 is not yet resolved) 2010-06-03 07:03:05 +00:00
Felipe Pena 8454cca44c - Fix memleak when passing a non string/object parameter 2010-06-03 00:43:37 +00:00
Rasmus Lerdorf a259f797bf vim fail 2010-06-02 19:26:10 +00:00
Rasmus Lerdorf 6ba6263817 Tweak the fix for bug #51847 to still call libintl_setlocale
when libintl has done that redefine.
2010-06-02 19:24:36 +00:00
Pierre Joye 24ef65019f - silent warning 2010-06-02 19:20:04 +00:00
Pierre Joye c453a8fcda - fix leak on error in mcrypt_create_iv on windows 2010-06-02 15:27:38 +00:00
Pierre Joye 7c1d43dd95 - allow shared build 2010-06-02 10:00:58 +00:00
Rasmus Lerdorf d4cca6da93 Fix for bug #51847
Someone in libintl world decided it was a good idea to do:

#undef setlocale
#define setlocale libintl_setlocale

That means, of course, that any use of "setlocale" by the
preprocessor now becomes libintl_setlocale which means we
no longer have a _zif_setlocale symbol in string.o, but we
magically have a _zif_libintl_setlocale symbol.  The linker
is obviously not very happy about this when basic_functions.o
tries to find _zif_setlocale.

So, let's not do that again.
2010-06-02 05:53:13 +00:00
Johannes Schlüter d7b1fa9d35 Berkeley DB 5's SQL frontend gives a slightly different error than libsqlite 2010-06-01 16:39:36 +00:00
Andrey Hristov 4a0b4494d4 defensive programming, check before using a resource 2010-06-01 14:16:27 +00:00
Andrey Hristov 41406516b6 Perform later initialization 2010-06-01 09:47:46 +00:00
Andrey Hristov 2a043ed2d3 More check for valid MYSQLND_STMT before using it 2010-05-31 18:26:19 +00:00
Andrey Hristov 38f6c131e5 Don't reference row_packet before checking if dereferencing is possible 2010-05-31 18:18:37 +00:00
Andrey Hristov b472636375 Check if data is correct and initialize in a safe manner 2010-05-31 18:10:25 +00:00
Andrey Hristov 047d6f2855 Handle problems in the row_decoder, return type used to be void,
now it can return on problems.
2010-05-31 17:57:03 +00:00
Andrey Hristov b61d7501c9 Bail if allocation fails 2010-05-31 17:09:13 +00:00
Andrey Hristov 4cd5db922b Fix test 2010-05-31 16:53:33 +00:00
Andrey Hristov cf140b3bf7 try to workaround problems with non-c99 on HPUX 2010-05-31 16:51:03 +00:00
Ulf Wendel c0a8ce2f61 Updating test to reflect the latest and more verbose mysqlnd error messages, updating mysqlnd error message as well. 2010-05-31 13:56:42 +00:00
Ulf Wendel 0ab82cecc2 Fixing test - see also gcov results 2010-05-31 13:28:15 +00:00
Ulf Wendel 9b334da667 Fixing test - make sure it checks the same conditions for libmysql and mysqlnd 2010-05-31 12:55:59 +00:00
Ulf Wendel fb80ebe102 Fixing test 2010-05-31 12:22:48 +00:00
Ulf Wendel 4b5666a539 Fixing mysqli_stmt_attr_set @ libmysql 2010-05-31 12:10:04 +00:00
Ulf Wendel 2613069cd4 Improve EXPECTF to work with other than default schemata 2010-05-31 10:52:14 +00:00
Pierre Joye 46c0f21386 - Added recent Windows versions to php_uname and fix undefined windows version 2010-05-30 07:46:45 +00:00
Pierre Joye e2d9e0ae70 - ws 2010-05-30 07:36:19 +00:00
Jérôme Loyet dbe35d87d6 fix commit 299383 2010-05-29 22:00:43 +00:00
Jérôme Loyet e750930899 typo (thx to Brian P. Mercer) 2010-05-29 10:39:35 +00:00
Dmitry Stogov 54caf22325 Fixed bug #50976 (Soap headers Authorization not allowed) 2010-05-28 12:18:03 +00:00
Dmitry Stogov 42d25dc2b2 Fixed bug #50762 (in WSDL mode Soap Header handler function only being called if defined in WSDL). (mephius at gmail dot com) 2010-05-28 10:52:16 +00:00
Johannes Schlüter 901fc6f3a4 These files talk about PHP 3, flex, CVS, ... interesting to archeologists only 2010-05-27 23:12:44 +00:00
Johannes Schlüter 9cfcc89a0b Update EXTENSIONS file 2010-05-27 23:08:39 +00:00
Johannes Schlüter 435405f5da Update credits 2010-05-27 22:51:28 +00:00
Johannes Schlüter bb3faf2d25 Make the credits script more verbose 2010-05-27 22:50:31 +00:00
Johannes Schlüter a622dd6bfb From user's perspective this was added 2010-05-27 22:41:36 +00:00
Jérôme Loyet 66ef4d185c bug: include paths were not evaluated to to full path 2010-05-27 22:31:28 +00:00
Jérôme Loyet ce03ced4d7 typo 2010-05-27 22:18:58 +00:00
Ulf Wendel ba6ee3fc06 Open server bug: mysqlnd works around it, libmysql fails. Let's skip because MySQL Server version tests are tricky and error prone. 2010-05-27 13:01:17 +00:00
Andrey Hristov 3aa95c59cc Check before use, because mysqlnd can return NULL
and this will crash. However, this can happen only in case of OOM.
2010-05-27 12:44:10 +00:00
Andrey Hristov 6ebe80be5d Don't use NULL pointer, always check before use 2010-05-27 12:39:12 +00:00
Ulf Wendel 6356bcbbb9 Test fixes and updates to work with a wider range of MySQL server configs 2010-05-27 12:09:39 +00:00
Andrey Hristov ce2fbe1931 Fix possible crashes, in case of OOM, due to half-baken
objects.
2010-05-27 12:05:02 +00:00
Andrey Hristov 5efee3d587 Fix crashes in the allocator in case of OOM. 2010-05-27 12:00:48 +00:00
Andrey Hristov b7385f02fd Fix deallocation which can crash if the object is half-baken.
Happens during OOM.
2010-05-27 08:51:46 +00:00
Antony Dovgal 4d005a8e65 merge FPM SAPI from trunk (as agreed with Johannes) 2010-05-26 15:14:43 +00:00
Andrey Hristov ce136a825c Don't use conn->net without checking if it is NULL, because
it can be NULL in OOM conditions. This would cause a crash.
2010-05-26 13:47:43 +00:00
Andrey Hristov 0d468290be Fix test 2010-05-26 13:36:49 +00:00
Andrey Hristov d6458c3b1e Add checks to check the underlying pointer in the resource.
It can happen that the underlying pointer is freed (like in
the case of connection reconnect), and then it cannot be allocated
anymore, which means that NULL will be used consequently by the
functions that fetch the resource and the crash is immediate.
2010-05-26 07:28:43 +00:00
Felipe Pena 00191c3c34 - Fixed bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline) 2010-05-26 02:18:17 +00:00
Felipe Pena c4be9c3890 - Fixed bug #51905 (ReflectionParameter fails if default value is an array with an access to self::) 2010-05-26 00:00:58 +00:00
Andrey Hristov 58f13c3c9f Handle the situation when MYSQLND_PROTOCOL's methods return NULL.
mysqlnd should not crash but gracefully return with an error.
2010-05-25 23:18:13 +00:00
Andrey Hristov bccf2cea5d Handle the situation when mysql_init()/mysqlnd_init()
return NULL. It is a rare case of OOM but PHP shouldn't crash, if possible.
2010-05-25 22:55:10 +00:00
Felipe Pena f3009cb596 - Fixed bug #51911 (ReflectionParameter::getDefaultValue() memory leaks with constant array) 2010-05-25 22:46:17 +00:00
Andrey Hristov c5ff0eb5b8 Gracefully handle OOM in mysqlnd_stmt_init. Release the handle
and return NULL.
2010-05-25 22:42:25 +00:00
Andrey Hristov bcdc3b30f7 Init should return status value because initialization can fail.
In this case mysqlnd_init() should return NULL to the end-user.
2010-05-25 22:40:47 +00:00
Andrey Hristov 621cdd9019 Use the specialized macro for this case 2010-05-25 22:38:11 +00:00
Andrey Hristov c389adb96a Use only memory that has been allocated 2010-05-25 22:36:33 +00:00
Andrey Hristov 4abc7a1e69 Access memory which was really allocated 2010-05-25 22:34:47 +00:00
Andrey Hristov 348880ce66 Fix shared build 2010-05-25 21:54:21 +00:00
Andrey Hristov 337513ffa0 Handle OOM in the code that generates PS Execute requests
to the server. Fixes crashes in case of OOM.
2010-05-25 19:19:29 +00:00
Andrey Hristov ed4ce335d8 Fix metadata duplicatin which wasn't crash-safe in case of OOM. 2010-05-25 18:14:37 +00:00
Rasmus Lerdorf 5583cd237f Check for -1 as well here 2010-05-24 23:52:11 +00:00
Rasmus Lerdorf 159369c68c Let's have a sane error message here instead of some cryptic zlib error 2010-05-24 23:27:39 +00:00
Andrey Hristov 29c99daa0f Check set->data for validity before using it.
Prevents crashes after OOM.
2010-05-21 13:37:18 +00:00
Andrey Hristov ef1eeff882 When OOM hits the wire, don't crash. 2010-05-21 13:06:52 +00:00
Andrey Hristov 9c90bf42c1 Fix for Bug #51870
PDO::fetchAll after a PDO::execute with bindings lead to a segv.

It is only in unreleased code and thus doesn't deserve a NEWS entry
2010-05-21 11:09:28 +00:00
Ilia Alshanetsky ea3a6539dc Added support for JSON_NUMERIC_CHECK option in json_encode() that converts
numeric strings to integers.
2010-05-20 19:37:52 +00:00
Christopher Jones 3bdc7518a2 New current()/next() test 2010-05-20 17:55:58 +00:00
Felipe Pena b4500e9b85 - Added arginfo 2010-05-20 17:28:16 +00:00
Antony Dovgal 797bb31e24 fix ZTS build 2010-05-20 11:20:44 +00:00
Sara Golemon 2655e63e10 MFH: Add IV to openssl_(en|de)crypt()
Add openssl_cipher_iv_length()
2010-05-19 21:18:16 +00:00
Michael Wallner 60c236be92 * fixed bug #47842 sscanf() does not support 64-bit values 2010-05-19 11:28:08 +00:00
Pierre Joye 0d47dff287 - #51854, fix logic (patch by Tjerk) 2010-05-18 19:39:39 +00:00
Andrey Hristov c91c86b743 Remove duplicated code.
Use one centralized functions for data extraction.
2010-05-18 11:50:31 +00:00
Michael Wallner 8a402bf368 fix typo 2010-05-18 08:02:10 +00:00
Michael Wallner f4994234e2 add missing news about backlog socket context option for stream_socket_server() 2010-05-18 07:49:15 +00:00
Michael Wallner a1de9f382a * fixed bug #49819: STDOUT losing data with posix_isatty() 2010-05-18 07:25:29 +00:00
Pierre Joye 50a1b1d06c - #43233 2010-05-17 20:22:20 +00:00
Pierre Joye 57cfa703bf - #43233, sasl support for ldap on windows 2010-05-17 20:09:42 +00:00
Pierre Joye df59ed1c11 - 51844 2010-05-17 18:56:43 +00:00
Pierre Joye a22cd02f2f - #51844, checkdnsrr does not support types other than MX 2010-05-17 18:55:35 +00:00
Dmitry Stogov 059e2be153 Fixed a possible crash because of recursive GC invocation 2010-05-17 07:50:33 +00:00
Rasmus Lerdorf 9db78b574b typo 2010-05-15 15:37:18 +00:00
Felipe Pena c9fc939be0 - Fixed bug #51827 (Bad warning when register_shutdown_function called with wrong num of parameters) 2010-05-14 23:48:03 +00:00
Andrey Hristov e3be1e0bea result_meta local storage 2010-05-14 16:42:17 +00:00
Andrey Hristov c881ee30ea Allow overloading of mysqlnd_result_meta_init().
Add free space for future hooks.
2010-05-14 15:11:56 +00:00
Andrey Hristov 34ffc8a6c4 Export MYSQLND_PROTOCOL methods 2010-05-14 13:32:27 +00:00
Andrey Hristov b86ebe46cb - Give possibility to overload mysqlnd_result_init().
- Always use conn->m->stmt_init instead of mysqlnd_stmt_init()
2010-05-14 13:18:39 +00:00
Andrey Hristov ce0ea97850 OOM fixes 2010-05-14 13:04:33 +00:00
Andrey Hristov a78fa3fcaf - initialize some variables
- initialize the methods in a shorter way, use the compiler.
 = on structures copies them. Allows also exportability of
 the methods.
2010-05-13 15:29:08 +00:00
Andrey Hristov 90f16527af Export the methods of MYSQLND_NET 2010-05-13 14:15:23 +00:00
Andrey Hristov aad53cbdec Export the result_metadata methods to external modules. 2010-05-13 11:16:11 +00:00
Andrey Hristov 87bac04bf1 Better fix for #51605 2010-05-13 11:05:09 +00:00
Dmitry Stogov 32a09f39be Fixed a possible resource destruction issues in shm_put_var() 2010-05-13 08:34:06 +00:00
Dmitry Stogov 24704df3a8 Fixed a possible memory corruption in ArrayObject::uasort() Reported by Stefan Esser 2010-05-13 08:09:54 +00:00
Felipe Pena a8cad398fc - Fixed bug #51791 (constant() aborts execution when fail to check undefined constant) 2010-05-13 02:13:30 +00:00
Christopher Jones c5a068e025 Errors using reserved words as methods 2010-05-12 21:34:32 +00:00
Dmitry Stogov 24a1dbabc8 Fixed a possible memory corruption in parse_str(). Reported by Stefan Esser 2010-05-12 11:32:25 +00:00
Dmitry Stogov f94a437d9d Fixed a possible information leak because of interruption of XOR operator 2010-05-12 11:10:06 +00:00
Dmitry Stogov 27ef344f2b Fixed a possible memory corruption in pack(). Reported by Stefan Esser 2010-05-12 11:04:57 +00:00
Michael Wallner ad15797925 Fixed bug #51725 (xmlrpc_get_type() returns true on invalid dates). (Mike) 2010-05-12 09:37:25 +00:00
Christopher Jones 87b4f2a79d Restructure into PHP/PECL/PEAR component areas (at the expense of duplication) 2010-05-11 18:25:44 +00:00
Dmitry Stogov c2b911a0ec Fixed bug #49893 (Crash while creating an instance of Zend_Mail_Storage_Pop3) 2010-05-11 16:09:43 +00:00
Andrey Hristov d3b7aaa3fc One more time fixing the tests, lets use $IS_MYSQLND which comes from connect.inc 2010-05-11 15:55:07 +00:00
Andrey Hristov d4828ccd23 here comes the news, too 2010-05-11 15:50:21 +00:00
Andrey Hristov ab232ebb09 Fix for mysqli_stmt_execute.phpt, should be ran only against
4.1+ servers. MySQL's SLEEP function is available since 5.0.12, thus
the tests that use this function should be ran only if the server
is at least 5.0.12.
2010-05-11 15:49:03 +00:00
Andrey Hristov fd6f3961f8 These tests should be run only if mysqli uses mysqlnd. Part of fix for
Bug #51712 Test mysql_mysqlnd_read_timeout_long must fail on MySQL4
2010-05-11 15:27:03 +00:00
Raphael Geissert 7d4dde57d9 Document CGI options in the manpage (bug #51718)
Patch by Daniel Egeberg
2010-05-11 15:07:31 +00:00
Ilia Alshanetsky c7a553a7fb Removed double allocation of buffer inside openssl_random_pseudo_bytes() and cleanup code 2010-05-11 14:31:00 +00:00
Dmitry Stogov 57f8649eac Fixed a possible memory corruption in substr_replace() 2010-05-11 11:59:13 +00:00
Dmitry Stogov 5b18acdcc9 Fixed a possible memory corruption because of unexpected call-time pass by refernce and following memory clobbering through callbacks. 2010-05-11 10:41:19 +00:00
Andrey Hristov 962aa93ec7 Fix for bug #51605 (Mysqli zombie links) 2010-05-11 10:03:16 +00:00
Felipe Pena d787d545d2 - Fixed bug #51740 (acinclude.m4 macro PHP_CHECK_SIZEOF is not properly quoted)
Patch by: dave dot mulford at gmail dot com
2010-05-05 21:55:44 +00:00
Rob Richards 1e96fbe4a8 fix bug #48601 (xpath() returns FALSE for legitimate query)
add test
2010-05-05 11:40:11 +00:00
Dmitry Stogov 6597e85562 Fixed bug #50698 (SoapClient should handle wsdls with some incompatiable endpoints). (Justin Dearing) 2010-05-05 07:43:45 +00:00
Rob Richards 617e8a4f8c fix bug #49490 (XPath namespace prefix conflict)
add test
2010-05-04 15:41:49 +00:00
Derick Rethans 7cf3911cb8 - Fixed bug #49081 (DateTime::diff() mistake if start in January and interval >
28 days). (Derick)
2010-05-04 15:11:41 +00:00
Andrey Hristov ebae62d7c4 OOM stability fixes 2010-05-04 14:02:42 +00:00
Andrey Hristov 04d24bde20 Add possibility to control the allocator in when PHP is compiled
with debug
2010-05-04 13:49:43 +00:00
Rob Richards 3860164101 fix bug #51721 (mark DOMNodeList and DOMNamedNodeMap as Traversable) 2010-05-04 12:55:26 +00:00
Adam Harvey e32090a163 Fix misordered news item. 2010-05-04 11:59:54 +00:00
Adam Harvey 73ddb79613 Fix for bug #48289 (iconv_mime_encode() quoted-printable scheme is broken).
Thanks to Hiroaki Kawai for the original patch.
2010-05-04 11:56:59 +00:00
Adam Harvey 9d67273740 Well, as long as we're dealing with typos... :) 2010-05-04 11:01:46 +00:00
Felipe Pena f8b1db2d0d - Fix typo 2010-05-04 10:59:26 +00:00
Pierre Joye af567e7d54 - fix build 2010-05-04 09:51:03 +00:00
Adam Harvey e0e0147003 Alter the getmxrr() test to use lists.php.net (which we presumably control)
instead of ez.no (which we presumably don't) for the single MX record test.
2010-05-04 09:41:47 +00:00
Pierre Joye fdf0395e49 - Fixed bug #51732, Fileinfo __construct or open does not work with NULL 2010-05-04 08:48:58 +00:00
Dmitry Stogov 3a15e98155 Fixed a possible memory corruption in addcslashes(). 2010-05-04 08:02:51 +00:00
Pierre Joye 11040eae16 - revert fix for #51723 in 5.2, vc6 does not support strtoi64, use builtin functioon in 5.3 (trunk is vc9+ only) 2010-05-03 19:51:59 +00:00
Andrey Hristov 6202b46f2a Handle OOM in mysqlnd_res::store_result_fetch_data 2010-05-03 19:32:07 +00:00
Pierre Joye 55320ca1b8 - fix build (declaration must be first) 2010-05-03 19:29:05 +00:00
Andrey Hristov cac3520882 Handle OOM in mysqlnd_fetch_row_buffered_c() 2010-05-03 19:09:45 +00:00
Andrey Hristov 4a8d751cff Handle OOM in mysqlnd_fetch_row_unbuffered_c() 2010-05-03 19:02:48 +00:00
Andrey Hristov d0cef550a3 Handle OOM stemming from mysqlnd_result_init in the same
function and up the stack.
2010-05-03 18:50:47 +00:00
Pierre Joye 43f4d46cb3 - #51273, Content-length header is limited to 32bit integer with apache2/windows 2010-05-03 17:47:58 +00:00
Andrey Hristov 6dff9e55be Handle gracefully OOM in mysqlnd_mempool_create and up the stack 2010-05-03 17:07:18 +00:00
Felipe Pena 44bcdeeb77 - Replaced 'zend_hash_find' to 'zend_hash_quick_find' on zend_hash_compare() function 2010-05-03 16:36:04 +00:00
Andrey Hristov f9fe805abe Handle OOM in block_alloc_get_chunk, and also in the caller
in mysqlnd_wireprotocol.c
2010-05-03 16:20:46 +00:00
Andrey Hristov 864f2da733 Remove unused parameter 2010-05-03 16:09:05 +00:00
Ilia Alshanetsky 813e3cf14d Fixed bug #51690 (Phar::setStub looks for case-sensitive __HALT_COMPILER()) 2010-05-03 14:41:40 +00:00
Pierre Joye cbe5199c42 - WS 2010-05-03 14:29:07 +00:00
Andrey Hristov 88bf630798 One more case to handle in case of OOM, in block_alloc_resize_chunk 2010-05-03 14:26:08 +00:00
Andrey Hristov de4a5156e6 Handle OOM when resizing blocks during data fetch 2010-05-03 14:16:04 +00:00
Andrey Hristov 8fd0407b3a Fix compiler warnings - unused functions 2010-05-03 13:51:30 +00:00
Andrey Hristov d0abd9510e Better handing of OOM in mysqlnd::set_client_option 2010-05-03 13:45:58 +00:00
Pierre Joye 0871df60a3 - update bison version (mike) 2010-05-03 09:05:30 +00:00
Felipe Pena 151fc3b7c0 - Revert accidental changes 2010-05-02 20:11:22 +00:00
Ilia Alshanetsky 90c336026e - Fixed a possible stack exaustion inside fnmatch(). Reporeted by Stefan Esser 2010-05-02 19:34:21 +00:00
Raphael Geissert eca9e10bc0 Fix bug in unaligned memory access fix 2010-05-02 05:01:51 +00:00
Raphael Geissert 803869d6ff Fix unaligned memory accesses in enchant (bug #51289) 2010-05-01 23:32:40 +00:00
Felipe Pena 2b0464c3a9 - Fixed bug #51719 (typo in function prototype) 2010-05-01 18:54:49 +00:00
Raphael Geissert b373d8e184 Fix another typo s/exlcusive/exclusive 2010-05-01 18:30:38 +00:00
Raphael Geissert 174d2528b1 Fix typos s/connnection/connection 2010-05-01 18:27:42 +00:00
Pierre Joye 91bcba0343 - Fix #51688, ini per dir crashes when invalid document root are given 2010-04-30 08:15:09 +00:00
Andrey Hristov a3168a398c Handle OOM cases, in case of persistent connections this is real
and the Zend MM won't help.
2010-04-29 15:49:51 +00:00
Andrey Hristov 2c38266536 Fix valgrind warning, usage of nirvana memory 2010-04-29 15:17:44 +00:00
Andrey Hristov b72437494b Add a test case for the recently fixed memleak 2010-04-29 13:19:57 +00:00
Andrey Hristov fa40847263 Fix possible crashes in case of OOM, as well as a leak. 2010-04-29 13:13:41 +00:00
Andrey Hristov 16e4bd5d58 Try blob columns instead of int, and insert a lot of data at once 2010-04-29 12:07:02 +00:00
Andrey Hristov 9b468d9577 Fix crash if OOM and USE_ZEND_ALLOC=0 2010-04-29 11:49:08 +00:00
Christopher Jones c033a81b50 Bug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strings). Updated tests check some other edge cases 2010-04-29 05:07:16 +00:00
Derick Rethans 9d24798b38 - Updated to version 2010.9 (2010i) 2010-04-28 23:03:36 +00:00
Pierre Joye f4735e72e4 - we don't need that anymore 2010-04-28 22:25:31 +00:00
Christopher Jones 9b3e080098 Mask schemaname in error messages 2010-04-28 17:26:59 +00:00
Andrey Hristov ad4b429633 Fixed few buffer overflows reported by Stefan Esser. 2010-04-28 15:35:52 +00:00
Pierre Joye 0688e6ef01 - - Fixed #51128, imagefill() doesn't work with large images 2010-04-28 14:35:42 +00:00
Pierre Joye 17f5a9d2a2 - fix possible Dechunking Filter Buffer Overflow 2010-04-28 14:10:01 +00:00
Andrey Hristov 1838fcc7b0 const-ify fields 2010-04-28 12:29:13 +00:00
Ilia Alshanetsky 5031bfc395 Fixed a possible arbitrary memory access inside sqlite extension. Reported by Mateusz Kocielski. 2010-04-28 12:10:10 +00:00
Pierre Joye 07446082c8 - Fix #51671, imagefill does not work correctly for small images 2010-04-28 08:23:44 +00:00
Pierre Joye eaab2fbc4b - WS 2010-04-28 08:04:52 +00:00
Ilia Alshanetsky 7174b6ec78 Fixed string format validation inside phar extension. Reported by Stefan Esser 2010-04-27 17:13:24 +00:00
Andrey Hristov 3d900d4cad Fixed very rare memory leak in mysqlnd, when binding thousands of columns 2010-04-27 12:32:34 +00:00
Andrey Hristov eba793fa1f Of course, 64*4 is 256, not 1024 2010-04-27 11:02:51 +00:00
Andrey Hristov be5920b3e9 Move the macro to mysqlnd_enum_n_def.h, because it can be reused
in other places. Also, premultiply the values by 4 and add some
reserve for future releases of the server.
2010-04-27 10:53:27 +00:00
Etienne Kneuss a5d361e3ea Fixed #48361 (SplFileInfo::getPathName() should return the parent 2010-04-27 08:56:01 +00:00
Andrey Hristov 8525f7bb02 Test case for the buffer overflow in mysqlnd_change_user 2010-04-27 08:45:23 +00:00
Andrey Hristov 5bb74e6562 Fixed buffer overflow in mysqlnd_change_user 2010-04-27 08:26:24 +00:00
Hannes Magnusson 3283b811eb - Unifiy that message
- Mention php.ini
2010-04-27 08:23:25 +00:00
Hannes Magnusson 257a192095 Fix test 2010-04-27 08:17:17 +00:00
Andrey Hristov c92c788c85 Fixed possible buffer overflow in mysqlnd_conn__list_fields. 2010-04-27 08:02:08 +00:00
Etienne Kneuss c200eeeb61 Fix #51374 (Wrongly initialized object properties) 2010-04-27 05:58:39 +00:00
Pierrick Charron 8f128b2b13 Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset 2010-04-27 05:56:56 +00:00
Etienne Kneuss 9f16874a53 Fix #49723 (Skip seek when unnecessary) 2010-04-27 04:57:48 +00:00
Kalle Sommer Nielsen cb30330800 Merge safe_mode changes into extensions that are in sync in both branches 2010-04-26 23:55:03 +00:00
Ilia Alshanetsky 64f372fae2 Fixed handling of session variable serialization on certain prefix characters. Reported by Stefan Esser 2010-04-26 18:35:54 +00:00
Pierre Joye 0f88851e92 - Fix #51582, Don't assume UINT64_C it's ever available 2010-04-26 10:34:53 +00:00
Felipe Pena 72ede78ebb - BFN #51624 2010-04-25 23:25:15 +00:00
Hannes Magnusson 267b5cea14 mention which setting! 2010-04-25 18:55:06 +00:00
Etienne Kneuss eb88d58e6c Fix #51532 (Invalid prototype for SplFileInfo::fscanf) 2010-04-25 05:18:42 +00:00
Felipe Pena 1c0ed3433e - Fixed memory leak 2010-04-24 16:59:09 +00:00
Christopher Jones eb0a3ff1af Initialize vars to prevent valgrind warnings in some cases 2010-04-24 00:44:56 +00:00
Andrey Hristov af6dd192b3 Fix for bug #51647 Certificate file without private key (pk in another file) doesn't work 2010-04-23 13:54:40 +00:00
Felipe Pena a5142d18cb - Fixed compiler warnings 2010-04-23 13:32:03 +00:00
Felipe Pena e86710ce11 - Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile errors) 2010-04-22 20:54:35 +00:00
Andrey Hristov 4842f96e2d Change the way the allocator is called - through an abstraction
to give the possibility of pluggability. Thanks to the macros
already used the changes are not pervasive.
2010-04-22 16:28:50 +00:00
Andrey Hristov 5431f235db Fix problem spotted by Felipe. 2010-04-22 16:22:56 +00:00
Antony Dovgal c996aea40d revert most of the Andrey's patch that causes segfaults
(as agreed with Pierre)
2010-04-22 15:59:44 +00:00
Andrey Hristov f71444c756 adding what last commit was missing 2010-04-22 15:14:45 +00:00
Andrey Hristov 34e56fea0b Remove dead code and add possibility to fine tune the size of
a mempool (used for result sets).
2010-04-22 15:07:40 +00:00
Andrey Hristov 2556733787 Add the posibility to switch off the compilation of statistics
collection, for those who want to optimize the last percent of their
binaries.
2010-04-22 13:03:44 +00:00
Antony Dovgal a1f753c8e3 initialize variable. this code still segfaults in OpenSSL, no idea why 2010-04-22 11:56:08 +00:00
Pierre Joye edc961cc66 - Bug #51629, CURLOPT_FOLLOWLOCATION error message is misleading 2010-04-22 11:49:10 +00:00
Pierre Joye 0fecc8c6a0 - Bug #51629, CURLOPT_FOLLOWLOCATION error message is misleading 2010-04-22 08:58:07 +00:00
Adam Harvey 592daf8453 Fix for bug #51604 (newline in end of header is shown in start of message).
Patch by Daniel Egeberg.
2010-04-22 02:22:49 +00:00
Felipe Pena ab81ddd1de - Changed order to FR 2010-04-21 22:30:06 +00:00
Felipe Pena ee185c604a - Fixed bug #51627 (script path not correctly evaluated)
Patch by: russell dot tempero at rightnow dot com
2010-04-21 22:22:31 +00:00
Felipe Pena 5a7786c63f - Fixed bug #51562 (query timeout in mssql can not be changed per query)
Patch by: ejsmont dot artur at gmail dot com
2010-04-21 14:19:27 +00:00
Felipe Pena 45b68febe9 - Fix mem. leak 2010-04-21 12:52:24 +00:00
Andrey Hristov 691522780f Hardening the reads of mysqlnd.
All packets but the row data packet are read into preallocated buffer,
either on the stack or on the heap (cmd_buffer). The size of the buffer
is always checked to skip buffer overruns. Only up to the size of the
buffer is stored into the buffer but packet->header.size has the size of
all data sent. In this case network layer bails.

This patch hardenes the reads, so if packets are malformed and shorter
than they should be there will be no further reads in the buffer.
In short, detection of malformed packets.
2010-04-20 20:02:32 +00:00
Andrey Hristov efa0077e08 put the trigger in the right place 2010-04-20 19:09:56 +00:00
Andrey Hristov 804b950562 It is possible that change user tries an user who has old password.
Instead of error message that doesn't say much there is more information now.
2010-04-20 18:04:24 +00:00
Felipe Pena 0cbfc91628 - Improve test 2010-04-20 16:45:46 +00:00
Felipe Pena df43d76e62 - Fixed bug #51615 (PHP crash with wrong HTML in SimpleXML) 2010-04-20 16:24:21 +00:00
Felipe Pena 1efc049863 - Fixed bug #51607 (pg_copy_from does not allow schema in the tablename argument)
Patch by: cbandy at jbandy dot com
2010-04-20 15:59:01 +00:00
Dmitry Stogov 336e957951 Fixed bug #49700 (memory leaks in php_date.c if garbage collector is enabled) 2010-04-20 15:41:35 +00:00
Felipe Pena 5aedea7179 - Fixed bug #51609 (pg_copy_to: Invalid results when using fourth parameter) 2010-04-20 14:11:53 +00:00
Felipe Pena a175419f84 - Fix copyrights 2010-04-20 13:50:34 +00:00
Antony Dovgal 5d2f7ab843 fix build 2010-04-20 12:50:02 +00:00
Dmitry Stogov 4c252d805d Fixed bug #48781 (Cyclical garbage collector memory leak) 2010-04-20 12:30:35 +00:00
Felipe Pena 0b401e1289 - Fixed bug #51608 (pg_copy_to: WARNING: nonstandard use of \\ in a string literal)
Patch by: cbandy at jbandy dot com
2010-04-20 11:49:23 +00:00
Antony Dovgal 9c97c26832 fix infinite loop in the test 2010-04-20 10:04:26 +00:00
Adam Harvey b47136d332 Added explanatory comments to filter_input and filter_input_array to document
why some code that looks intuitively wrong is actually correct. Related to
bug #51344 (FILTER_NULL_ON_FAILURE flag automatically set in filter_input()
functions).
2010-04-20 04:31:11 +00:00
Stanislav Malyshev 8088be390f fix 64-bit integer overflow in mhash_keygen_s2k 2010-04-20 00:45:07 +00:00
Felipe Pena 45c090f3e7 - Fixed bug #51590 (JSON_ERROR_UTF8 is undefined) 2010-04-18 18:07:27 +00:00
Christopher Jones de174766f8 Add fix made previously 2010-04-16 22:34:25 +00:00
Christopher Jones 7a4b40efc5 Add attribution (thanks Felipe) 2010-04-16 22:06:52 +00:00
Christopher Jones a812818670 Fixed Bug #51577 (Uninitialized memory reference with oci_bind_array_by_name) 2010-04-16 20:36:40 +00:00
Christopher Jones e79a8d440e Merge Kalle's tidy-up from trunk to keep files in sync 2010-04-16 19:47:23 +00:00
Christopher Jones ff515d0ee4 Fix php.ini comment typo 2010-04-15 19:22:01 +00:00
Andrey Hristov 664b2389ca Last batch of int/uint comparison fixes 2010-04-15 15:58:26 +00:00
Andrey Hristov 76d64590b0 More int/uint comparison warning fixes 2010-04-15 15:53:58 +00:00
Andrey Hristov cdac2b4ecf Fix some int/uint comparison warnings 2010-04-15 15:28:00 +00:00
Andrey Hristov 6cc57e0d0d Remove unused file 2010-04-15 15:22:56 +00:00
Andrey Hristov 48e413eb28 more WS 2010-04-15 15:16:29 +00:00
Andrey Hristov 6aa682f564 CS + WS changes 2010-04-15 12:55:04 +00:00
Antony Dovgal 187a0d9b28 final fix for long opts in getopt() 2010-04-15 11:50:43 +00:00
Andrey Hristov dd9fc198ce Fix for bug#49234 method not found ssl_set
Patch was tested and compiles on Windows. (Thanks Kalle)
2010-04-15 11:01:30 +00:00
Antony Dovgal 2404c4c84f discard first TWO symbols of a long argument 2010-04-14 15:49:38 +00:00
Pierre Joye 632c03de71 - #35638, add udate to imap_fetch_overview 2010-04-14 09:45:37 +00:00
Antony Dovgal 913970cebf simplify configure check for nanosleep() 2010-04-13 12:41:46 +00:00
Pierre Joye 036c5f9f31 - begintransaction entry 2010-04-12 19:57:07 +00:00
Ilia Alshanetsky 213e155713 Fixed bug #51512 (mb_send_mail* fail when mail.add_x_header is on by default) 2010-04-12 14:04:45 +00:00
Pierre Joye b298ed5b70 - [doc] merge stream_set_read_buffer, equivalent of stream_set_write_buffer for read operations. Fixing possible bad effects while reading devices 2010-04-12 13:10:05 +00:00
Rob Richards f53f94d24d fix bug #50828 (DOMNotation is not subclass of DOMNode) 2010-04-09 11:34:34 +00:00
Antony Dovgal dda73e99f2 make sure the actual length of the argument passed matches the
length of the argument declared
this fixes things like `php --zend-exten=1` or `php-fpm --fpm-con=conf`
2010-04-08 15:27:21 +00:00
Andrey Hristov 3bd2faff8c Fixint INT_AND_FLOAT_AS native. It was working ok on 64bit but
because on 32bit SIZEOF_LONG is 4 and INT64 from MySQL is 8 everything
was converted to string, even if it was able to put it in a long.
This closes Request #50651 Native type cast returns wrong result
2010-04-08 13:20:37 +00:00
Andrey Hristov be73f948d2 Fixing the second test 2010-04-08 13:18:52 +00:00
Andrey Hristov 48c3d20dd4 one more fix and both work with libmysql and mysqlnd 2010-04-08 10:53:38 +00:00
Antony Dovgal d2699793e0 fix build 2010-04-08 09:56:18 +00:00
Andrey Hristov 8338d48828 Fix for bug #51026 ssl not working 2010-04-08 09:01:21 +00:00
Pierre Joye 517d9bb1f2 - WS 2010-04-08 07:55:35 +00:00
Pierre Joye c4eafddbda - WS 2010-04-08 07:50:05 +00:00
Andrey Hristov 48392f04fa Another fix for the 16 chars user limitation of MySQL 2010-04-07 18:28:46 +00:00
Andrey Hristov 7670d2948d Fix test. The usernames in the server are 16 chars long 2010-04-07 18:05:42 +00:00
Andrey Hristov 798103d4e0 Fix the Windows build (void* arithmetic) as well as --disable-zlib
build.
2010-04-06 18:14:23 +00:00
Andrey Hristov dda0320c5c Stricly C 2010-04-06 14:33:55 +00:00
Antony Dovgal d7e716b8f0 fix typo 2010-04-06 13:42:21 +00:00
Andrey Hristov aa8f43fad9 Recommit with an Windows build fix:
Fix inconsistencies
- memory allocated with spprintf, or likes, outside of mysqlnd's
allocator functions should not be freed by the mysqlnd's allocator
(a wrapper around emalloc/malloc).
- memory allocated by the mysqlnd's allocator should only be freed
  by it.
- add a mode to track memory usage (malloc/free)
2010-04-06 13:28:23 +00:00
Stanislav Malyshev 5f11cd5693 change namespaced ctors - only __construct would work 2010-04-04 23:28:20 +00:00
Felipe Pena 462580cd7d - Fix tests 2010-04-04 17:21:27 +00:00
Felipe Pena 49a81742ef - Fix test 2010-04-04 16:57:44 +00:00
Felipe Pena 4d571dee74 - Fixed tests 2010-04-03 15:42:42 +00:00
Felipe Pena a140e70661 - Fixed bug #51445 (var_dump() invalid/slow *RECURSION* detection) 2010-04-02 21:44:09 +00:00
Rob Richards 0758c8794d fix bug #48983 (DomDocument : saveHTMLFile wrong charset) 2010-04-02 20:08:15 +00:00
Rasmus Lerdorf 9744284109 Fix tests 2010-04-02 18:27:48 +00:00
Rasmus Lerdorf 6d77506cfd Update the FILTER_VALIDATE_EMAIL filter to fix bug #49576 2010-04-02 17:56:37 +00:00
Rob Richards f1af56fb4e fix WS 2010-04-02 16:19:23 +00:00
Rob Richards 12b71200be re-apply bug fix #35673 (formatOutput does not work with saveHTML) from old trunk
add test
BFN
2010-04-02 16:15:06 +00:00
Stanislav Malyshev 44a5b8e459 fix #49192 - crash in GC when get_properties handler returns null 2010-04-01 22:54:03 +00:00
Pierre Joye 96e2651fa2 - revert revision 297277, break the builds (declaration must go 1st, size of void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for 5.3 2010-04-01 20:21:50 +00:00
Stanislav Malyshev a3857fd963 fix #51394 - try harder to find script lineno when exception happens 2010-04-01 19:36:56 +00:00
Rasmus Lerdorf 8b1d84a6ce Add new full_special_chars filter to tests 2010-04-01 18:04:57 +00:00
Andrey Hristov f534df710e Fix inconsistencies
- memory allocated with spprintf, or likes, outside of mysqlnd's
allocator functions should not be freed by the mysqlnd's allocator
(a wrapper around emalloc/malloc).
- memory allocated by the mysqlnd's allocator should only be freed
  by it.
- add a mode to track memory usage (malloc/free)
2010-04-01 13:26:41 +00:00
Andrey Hristov a712d9cefb Better fix for bug #51347 mysqli_close / connection memory leak 2010-04-01 12:46:21 +00:00
Ilia Alshanetsky c2e16d3c5b On beginTransaction() reset error state 2010-04-01 12:08:55 +00:00
Andrey Hristov 311ab2c822 Fixed bug #51347 mysqli_close / connection memory leak
Streams API registers every stream as resource, which lands then
in EG(regular_list), however doesn't clean that when the stream is
closed. At the end this is a para-leak. At the end of the script
all memory is cleaned, however this is a problem for long runnig
scripts that open connections. For every opened and closed connection
about 150 Bytes on 32bit and 250 Bytes on 64bit will be "lost",
according to memory_get_usage().
2010-04-01 11:50:24 +00:00
Pierre Joye 60176163f1 - fix build 2010-04-01 10:34:05 +00:00
Rasmus Lerdorf b529350d4a Fix FILTER_VALIDATE_URL - Host names can't start with '.' or '-' 2010-03-31 23:56:30 +00:00
Rasmus Lerdorf a5b5743d71 full_special_chars filter from trunk - approved by johannes 2010-03-31 22:59:09 +00:00
Johannes Schlüter 53d35553c6 It's 2010 already 2010-03-30 21:09:07 +00:00
Johannes Schlüter 4dc1cef4fe Use php_error_docref instead of zend_error 2010-03-30 21:02:32 +00:00
Ilia Alshanetsky 658fe1d0c3 Upgraded bundled sqlite to version 3.6.23.1 2010-03-30 11:52:25 +00:00
Derick Rethans 462399b78b - Updated to version 2010.7 (2010g) 2010-03-29 17:22:53 +00:00
Andrey Hristov 94cd357f5b Make it coupled - what is allocated with mnd_ should be freed
with mnd_ and vice versa.
Added mnd_pestrndup and mnd_pestrdup, which wrap the normal
calls to be able to track this calls.
Fixed some failing tests.
2010-03-29 17:04:16 +00:00
Ilia Alshanetsky e99039d692 Upgraded bundled PCRE to version 8.02. 2010-03-29 11:58:06 +00:00
Christopher Jones 3e58dee19a Fix #51220 by adding . Also improve reliability for tests using undefined behavior. 2010-03-26 19:38:26 +00:00
Andrey Hristov ec36ac1610 Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock
as it is in when compiled from source and the default for mysqlnd.
SuSE for example uses /var/run/mysql/mysql.sock . Also, sql.safe_mode
(ext/mysql and ingres) needs the socket.
Fix possible crashes in mysqlnd. When packets are shorter, functions should
return error.
2010-03-26 16:58:25 +00:00
Adam Harvey 53cfb3d53d Fixed bug #51393 (DateTime::createFromFormat() fails if format string contains timezone). 2010-03-26 04:31:26 +00:00
Stanislav Malyshev 252082192a fix the protos 2010-03-25 19:17:17 +00:00
Christopher Jones 1a6f4efbad Fixed bug #51291 (oci_error doesn't report last error when called two times) 2010-03-24 22:08:55 +00:00
Hannes Magnusson abd893a2ae Fix tests 2010-03-24 22:06:21 +00:00
Hannes Magnusson a1cce74e96 Fix test (the key can be negative) 2010-03-24 21:57:30 +00:00
Andrey Hristov 78887ff757 Fix a segfault when using a mysqli object after unsuccesssful connect, the
handle should have been allocated with mysqli_init().
2010-03-24 15:17:57 +00:00
Andrey Hristov 9f20131311 fix build failure after recent commit by Kalle 2010-03-24 10:06:42 +00:00
Takeshi Abe a46e108b83 Fixed bug #51263 (imagettftext and rotated text uses wrong baseline) 2010-03-24 04:12:19 +00:00
Kalle Sommer Nielsen c8b33a6a01 Fix declaring 2010-03-23 13:21:22 +00:00
Ilia Alshanetsky 8a9364080b Added test for bug #51338 2010-03-23 11:51:38 +00:00
Christopher Jones ec3a46e194 name changes for consistency with planned additions 2010-03-22 22:37:20 +00:00
Ilia Alshanetsky 995d15ebcc Fixed bug #51338 (URL-Rewriter is still enabled if use_only_cookies is on). 2010-03-22 12:16:45 +00:00
Felipe Pena 3488cd43be - Fixed bug #49429, #51331 (odbc_autocommit doesn't work) 2010-03-20 18:19:16 +00:00
Christopher Jones ad0e1ae3f1 New tests for existing functionality 2010-03-19 22:15:40 +00:00
Andrei Zmievski f92fae2f66 I am sorry I tried fixing PHP without extensive discussion on the mailing list.
I am sorry I tried fixing PHP without extensive discussion on the mailing list.
I am sorry I tried fixing PHP without extensive discussion on the mailing list.

Hope all the relevant parties are satisfied.
2010-03-18 22:37:25 +00:00
Andrei Zmievski 3220f15ca2 Fix a few problems with large (2G-4G) file uploads. Added
--enable-large-uploads-fix switch because one change was in SAPI.h structure.
2010-03-18 21:07:38 +00:00
Andrey Hristov 981ba00606 Fix for complaint from the Zend MM, efree of a NULL pointer. 2010-03-17 18:08:25 +00:00
Andrey Hristov 4941b23bcd Fix a bug that a statement that is reset doesn't clean
the wire properly (as it is done when the statement is closed).
If there is more that one result sets returned from the PS
(like a call to SP that returns at least one RSet next to the
status rset) then the line was blocked. PS Multi-Res is not supported
in any libmysql from a GA-ed MySQL.
2010-03-17 18:00:47 +00:00
Andrey Hristov 3ff193c05e fix valgrind warning introduced with the latest patch. The memory
should be calloc-ed, not malloced, because the code that uses the
stmt storage needs that.
2010-03-17 11:40:37 +00:00
Christopher Jones 825d1abdfe Update oci_commit tests 2010-03-16 23:13:50 +00:00
Andrey Hristov 7496cc761e decouple the methods in MYSQLND_STMT from the data,
needed to move to a new structure MYSQLND_STMT. Makes
the code cleaner and less error-prone.
Also fix PDO/MySQL which directly touch mysqlnd internals
instead of using API calls.
2010-03-16 12:36:57 +00:00
Rob Richards da538251c1 - Fix win32 build. 2010-03-15 16:20:19 +00:00
Moriyoshi Koizumi 82fd4858b8 - Fix win32 build. (notified by Rob. Thanks) 2010-03-15 14:19:51 +00:00
Felipe Pena 54fc4537c6 - Fix mem. leak 2010-03-13 20:26:51 +00:00
Raphael Geissert d8da372fd0 Fix CVE-2010-0397: null pointer dereference when processing invalid XML-RPC
requests (bug #51288)
2010-03-13 18:40:29 +00:00
Christopher Jones 1c6ea06c73 New OCI8 test 2010-03-13 00:25:11 +00:00
Moriyoshi Koizumi 73ba495674 - Forgot to commit this patch. Sorry. 2010-03-12 16:19:25 +00:00
Andrey Hristov ccfd9cd744 allow persistency of PS 2010-03-12 13:03:46 +00:00
Jani Taskinen af49e58f51 - Reverted r296062 and r296065 2010-03-12 10:28:59 +00:00
Moriyoshi Koizumi ea539c8b88 - Update the bundled libmbfl to the latest on upstream. 2010-03-12 04:55:37 +00:00
Christopher Jones 321ca32642 New and improved DBA tests 2010-03-12 00:27:57 +00:00
Hannes Magnusson 3f15f8f4e3 Fix build (see r296062) 2010-03-11 19:50:04 +00:00
Michael Wallner 5b277c4da0 add backlock socket context option for stream_socket_server(),
which had a hardcoded backlog of 5 at two occurrances
2010-03-11 16:37:24 +00:00
Jani Taskinen b4e1296756 - Fix conflict 2010-03-11 11:23:38 +00:00
Jani Taskinen 06f072cb5e MFH: Improved / fixed output buffering (Michael Wallner) 2010-03-11 10:24:29 +00:00
Adam Harvey f60946eb54 Fixed bug #51269 (zlib.output_compression Overwrites Vary Header). 2010-03-11 06:20:22 +00:00
Raphael Geissert 2c3b1fd920 Properly skip tests that require the bundled gd lib when the external is used 2010-03-11 05:49:50 +00:00
Felipe Pena 78cf85ab44 - Fixed bug #51257 (CURL_VERSION_LARGEFILE incorrectly used after libcurl version 7.10.1)
patch by: aron dot ujvari at microsec dot hu
2010-03-10 22:58:46 +00:00
Christopher Jones 09df605181 Mask name of older DB4 versions 2010-03-09 18:06:20 +00:00
Adam Harvey bdbb2e77ca Fixed bug #51242 (Empty mysql.default_port does not default to 3306 anymore, but 0). 2010-03-09 05:08:31 +00:00
Felipe Pena 68f805a6d0 - Fixed bug #51237 (milter SAPI crash on startup)
patch by: igmar at palsenberg dot com
2010-03-08 23:29:46 +00:00
Felipe Pena 9186e478fa - Fix php-milter sample usage (-r option doesn't exists here) 2010-03-08 22:58:31 +00:00
Derick Rethans 6a759c0692 - Updated to version 2010.5 (2010e) 2010-03-08 20:08:51 +00:00
Kalle Sommer Nielsen 62f087df75 Rename the HAVE_LIBICONV_IN_LIBICONV macro to ICONV_ALIASED_LIBICONV, making it less cryptic 2010-03-08 15:51:08 +00:00
William Martin d42fd45f97 Add some bcmath tests 2010-03-08 15:16:51 +00:00
Kalle Sommer Nielsen b961634c5a Fix linking of iconv on Windows 2010-03-08 14:04:35 +00:00
Ilia Alshanetsky 48adfafab8 Fixed bug #51213 (pdo_mssql is trimming value of the money column). 2010-03-08 12:39:44 +00:00
Derick Rethans 3025ca8e17 - Fixed bug #46111 (Some timezone identifiers can not be parsed). 2010-03-07 19:18:06 +00:00
Derick Rethans b42dc0d061 - Re-generate mapping files, but now with BC zones as well.
#- Fixes the test case for bug #17988 that used a few of those.
2010-03-07 19:13:19 +00:00
Derick Rethans 4447b87d91 - Fixed bug #48902 (Timezone database fallback map is outdated). 2010-03-07 18:21:23 +00:00
Derick Rethans 02e4644786 - Fixed bug #49059 (DateTime::diff() repeats previous sub() operation). 2010-03-07 17:25:16 +00:00
Derick Rethans dbec5439b5 - Update test cases after the fix for bug #49778. 2010-03-07 17:23:40 +00:00
Derick Rethans 156d780cbd - Fixed bug #40778 (DateInterval::format("%a") is always zero when an interval
is created from an ISO string).
2010-03-07 15:26:39 +00:00
Felipe Pena 04753cae60 - Fix order 2010-03-07 13:58:02 +00:00
Derick Rethans f1286280d1 - Fixed bug #50555 (DateTime::sub() allows 'relative' time modifications). 2010-03-07 13:54:46 +00:00
Derick Rethans a2ad4ea8b5 - Change this test case because non-6 digits are supported now, and clarify
that the "1" doesn't show because the precision isn't high enough. (Same
  happens if you change it to 9).
2010-03-07 13:47:06 +00:00
Derick Rethans abd232c671 - Fixed copyright year. 2010-03-07 13:11:44 +00:00
Derick Rethans 2d2e02740a - Fixed bug #50392 (date_create_from_format enforces 6 digits for 'u' format
character).
2010-03-07 13:08:47 +00:00
Felipe Pena f867fadd22 - Fixed bug #50383 (Exceptions thrown in __call / __callStatic do not include file and line in trace) 2010-03-07 02:17:11 +00:00
Felipe Pena 4149bb3dfd - New test 2010-03-07 00:57:19 +00:00
Felipe Pena ea1447c3ce - Fixed bug #50810 (property_exists does not work for private) 2010-03-07 00:49:34 +00:00
Felipe Pena 03bec4299f - Fixed tests 2010-03-06 23:58:35 +00:00
Raphael Geissert 1f24be304f Add NEWS entries for filter overflow fix 2010-03-06 20:02:25 +00:00
Raphael Geissert db01920ad7 Detect overflows before they occur in the filter extension (bug #51023)
Thanks to Sean Finney for the patch
2010-03-06 18:54:55 +00:00
Derick Rethans 13e0d47cf3 - Fixed bug #51096 ('last day' and 'first day' are handled incorrectly when
parsing date strings).
- For 5.2 I just added the test case minus new 5.3 additions.
2010-03-06 16:04:47 +00:00
Felipe Pena 6c153e8634 - Fixed bug #50358 (Compile failure compiling ext/phar/util.lo) 2010-03-06 14:45:49 +00:00
Christopher Jones aa60f8e807 Test misc argument error conditions 2010-03-06 00:23:16 +00:00
Moriyoshi Koizumi 8481fd7c3b - Fixed bug #49267 (linking fails for iconv) 2010-03-05 09:12:13 +00:00
Christopher Jones f3ad58a8a0 Fixed bug #51086 (DBA DB4 doesn't work with Berkeley DB 4.8) 2010-03-05 06:45:28 +00:00
Christopher Jones db7843bbac Auto detect recent versions of Berkeley DB4 2010-03-05 05:23:01 +00:00
Felipe Pena 667f00f6dc - BFN #50999 2010-03-05 02:33:03 +00:00
Christopher Jones 7b329d5afc DBA tests: cleanup and sycn. Add new Berkeley DB 4 tests 2010-03-05 00:23:26 +00:00
Ilia Alshanetsky 4db5175f54 Fixed bug #51190 (ftp_put() returns false when transfer was successful). 2010-03-04 12:52:58 +00:00
Felipe Pena ecae1f4923 - Entry in wrong place... 2010-03-03 22:21:57 +00:00
Christopher Jones 777d61c203 Mask resource numbers 2010-03-03 19:12:04 +00:00
Rasmus Lerdorf c0b00711fa Fix test 2010-03-03 18:19:35 +00:00
Rasmus Lerdorf e24fff2dac Turn on gc before we test it 2010-03-03 17:53:15 +00:00
Adam Harvey 0efe78a577 Fix for bug #51192 (FILTER_VALIDATE_URL will invalidate a hostname that includes '-'). Original patch by solar@azrael.ws. 2010-03-03 09:25:50 +00:00
Felipe Pena f0587e8086 - Possible fix for bug #50999 2010-03-03 00:29:38 +00:00
Felipe Pena c302509726 - Fixed bug #50731 (Inconsistent namespaces sent to functions registered with spl_autoload_register) 2010-03-03 00:15:34 +00:00
Hannes Magnusson 004a72ce1a - The ctor requires both arguments
- Sync/fix ctor and export arguments to 5_2
2010-03-02 22:16:24 +00:00
Christopher Jones 40348f1a5b make portable 2010-03-02 17:00:18 +00:00
William Martin acc80f0fc3 Added SKIP sections in case extension isn't enabled 2010-03-02 13:21:25 +00:00
Ilia Alshanetsky 772a84d5b9 Fixed bug #51171 (curl_setopt() doesn't output any errors or warnings when an invalid option is provided) 2010-03-02 12:54:23 +00:00
Felipe Pena 79f618833f - Fixed bug #51176 (Static calling in non-static method behaves like $this->) 2010-03-02 00:16:40 +00:00
Rasmus Lerdorf fcf1058d6b Fix bug #43314
Assume worst case all-encoded case here
2010-03-01 23:49:01 +00:00
Christopher Jones a3ec3b003d Improve basic code coverage 2010-03-01 20:33:18 +00:00
Derick Rethans 438f1d7c7a - Updated to version 2010.3 (2010c) 2010-03-01 14:59:24 +00:00
Raphael Geissert 3be50a26a7 Add some sysvmsg coverage tests 2010-03-01 01:59:14 +00:00
Moriyoshi Koizumi 24829e8d4e - Merge from upstream (note: this is no behavioral change, so need not to be
merged to 5.3.2 branch)
2010-02-28 09:33:05 +00:00
Moriyoshi Koizumi 817ab0c34d - Whitespaces. 2010-02-28 07:49:36 +00:00
Adam Harvey 1f19a7dc6c Fix for bug #23229 (syslog function truncates messages): remove the hard-coded
500 character error message limit imposed when using error_log=syslog.
2010-02-26 18:01:03 +00:00
Kalle Sommer Nielsen 294e69dd8f Fix assignment when SimpleXML is disabled on Windows 2010-02-25 17:08:17 +00:00
Kalle Sommer Nielsen 8c634336f3 Added parameter parsing check to SimpleXMLElement::count() 2010-02-25 17:06:32 +00:00
Andrey Hristov 7db6387a7f Fix the text. Correct english and a bit shorter. 2010-02-24 21:16:04 +00:00
Pierre Joye 707d02b7f5 - merge/update/fix 2010-02-24 19:57:56 +00:00
Andrey Hristov f8eb9abf44 add better description to the problem 2010-02-24 18:00:01 +00:00
Joey Smith f829a21659 MFH'd crypt() tests - renamed to fit phpt schema, tests for DES-fallback,
use b'' on strings.
2010-02-23 21:14:51 +00:00
Christopher Jones ab96016673 Add info on PHP doc contributions and add internals references 2010-02-23 20:40:03 +00:00
Pierre Joye aff51406ef - update test 2010-02-23 17:46:10 +00:00
Pierre Joye fb9ce4aaa2 - return *0/*1 on failure instead of FALSE, to avoid possible issues with bad user code 2010-02-23 17:26:49 +00:00
Pierre Joye 5cbece0a8e - fix build when __GMP_BITS_PER_MP_LIMB is not defined but GMP_LIMB_BITS (no trace of this change in gmp's changelog...) 2010-02-23 11:07:39 +00:00
Peter Cowburn fbbe3e3686 Corrected typo in LimitIterator offset exception. Fixes #51119 2010-02-22 23:55:30 +00:00
Pierre Joye e8be606367 - restore the credit, always been this name, will always be 2010-02-22 09:15:32 +00:00
Jani Taskinen 6a5c911b3f - Fixed NEWS entry order + removed aliases (only real names here!) 2010-02-22 09:06:06 +00:00
Pierre Joye 2075801b32 - crypt entry 2010-02-22 00:39:55 +00:00
Pierre Joye 4c23ec2b66 - With "extended" hashes, detect and reject invalid "setting" strings.
With "traditional" hashes, support many "reasonable" invalid salts in
  UFC-crypt compatible way, reject the rest of invalid salts. (Solar Designer)
2010-02-22 00:05:02 +00:00
Pierre Joye c402adc3b2 - Corrected the sanity check of the "setting" string in _crypt_blowfish_rn() to
reject iteration counts encoded as 36 through 39.  Previously, these would be
  misinterpreted as being the same as 04 through 07. (Solar Designer)
2010-02-21 23:47:14 +00:00
Joey Smith dd8ab3ad57 Not sure how I screwed up that MFH so badly. Proper
fix to config.m4 applied for when checking different
crypt() types.
2010-02-21 18:50:14 +00:00
Raphael Geissert 009a48ab3f Fix the name of the locale in some tests 2010-02-21 18:22:46 +00:00
Pierre Joye 23fdc85e3a - Fix #51059, crypt can fail and return NULL, on almost all implementations 2010-02-21 18:11:11 +00:00
Pierre Joye acc6609a27 - get the right error on windows 2010-02-21 17:44:25 +00:00
Joey Smith dd6ecfc01e MFH fix to config.m4 to make MD5 check label accurate 2010-02-20 19:28:39 +00:00
Joey Smith 7a0b1e55d8 MFH crypt() tests 2010-02-20 19:13:09 +00:00
Jani Taskinen 116e217799 - Update shtool to 2.0.8 2010-02-18 08:33:48 +00:00
Raphael Geissert dcfb8ee366 Fix race condition in shtool's mkdir -p implementation (bug #51076) 2010-02-18 00:30:12 +00:00
Kalle Sommer Nielsen bf7de28e46 Fixed bug #50795 (man pages have bad whatis entries)
- Patch by Debian
2010-02-17 05:32:52 +00:00
Ilia Alshanetsky 3ea4abe92c update copyright 2010-02-16 13:01:50 +00:00
Scott MacVicar ac09f82940 mbstring filter files were referenced but never actually compiled 2010-02-16 09:46:06 +00:00
Scott MacVicar da727ba343 Building libmbfl seperately fails since the shared library version is an API reference rather than a version number 2010-02-16 09:35:31 +00:00
Raphael Geissert 9077a39555 Correct description of getservbyname_basic.phpt (bug #51022) 2010-02-16 05:38:50 +00:00
Felipe Pena 67329a897a - Fix test (Bug #51036) 2010-02-15 21:46:45 +00:00
Felipe Pena 19d4b739cf - Fix the fix :P 2010-02-15 21:37:46 +00:00
Felipe Pena 72d9e654e0 - Added missing SKIPIF 2010-02-15 21:32:25 +00:00
Felipe Pena 0a7fe05ab7 - Fix test (Bug #51035) 2010-02-15 21:24:17 +00:00
Felipe Pena b68880641e - Fix test (bug #51040) 2010-02-15 21:16:34 +00:00
Andrey Hristov c7f2f1a5b1 add typedefs for all structure methods, and then reuse these typedefs 2010-02-15 16:58:33 +00:00
Raphael Geissert cf0e2b7026 Fix strtolower.phpt (bug #51031) 2010-02-13 16:43:04 +00:00
Jani Taskinen e6fcefe50a - Fix test 2010-02-13 15:43:45 +00:00
Jani Taskinen f9843495d1 - Fixed tests 2010-02-13 01:08:04 +00:00
Jani Taskinen c9b509f90b - Removed duplicate tests (bug #51007) 2010-02-12 17:09:09 +00:00
Jani Taskinen f38bfa620e - Added missing SKIPIF section to tests (bug #51014) 2010-02-12 16:53:44 +00:00
Pierre Joye 299352bf54 - merge 5.3.2RC2 changes, unsorted # for now 2010-02-12 01:22:10 +00:00
Christopher Jones 373dd4d0d8 Release PECL OCI8 1.4.1 2010-02-11 22:43:54 +00:00
Pierre Joye da94f0736e - fix php_date_llabs declaration 2010-02-11 22:37:50 +00:00
Johannes Schlüter ed03634a8c Revert 290786: Fixed bug #49521 (PDO fetchObject sets values before calling
constructor)
2010-02-11 22:14:06 +00:00
Johannes Schlüter eb0de2af90 revert 293939 Fixed bug #50636 (MySQLi_Result sets values before calling
constructor)
2010-02-11 21:42:48 +00:00
Pierre Joye 15a3c450b7 - those are in 5.3.2 now, merge to 5.3.2 section is coming 2010-02-11 21:17:13 +00:00
Ilia Alshanetsky ad9bbf26ab Fixed safe_mode validation inside tempnam() when the directory path does not end with a /). 2010-02-11 12:32:21 +00:00
Christopher Jones e2b9a01e70 Spelling typo in new check message 2010-02-10 23:56:27 +00:00
Derick Rethans 5a43f269cc - Fixed bug #49585 (date_format buffer not long enough for >4 digit years).
#- Was already partly fixed with my previous commit.
2010-02-10 16:55:40 +00:00
Derick Rethans 8ac4d1190a - Added a test case for bug #45866
- Fixed tests: oo_002, bug46268
- Fixed bug #50930 (Wrong date by php_date.c patch with ancient gcc/glibc
  versions).
- Make sure faulty strings passed to DateTime::modify() notify the user.
- Revert fix for bug #50392 as it was fixed wrongly without a proper test case.
- Fixed a bug with the 'r' formatting function as the default buffer size that
  was allocated only fit 4 digit years.
2010-02-10 16:23:30 +00:00
Derick Rethans fe72945ac5 - Update to 2010.2.
#- Wondering why it wasn't committed yet...
2010-02-10 14:03:29 +00:00
Johannes Schlüter 466c122aaa Fix config test 2010-02-10 13:37:17 +00:00
Ilia Alshanetsky 95ecd5680f Typo fix 2010-02-09 22:47:03 +00:00
Johannes Schlüter f732d74f6b Detect if we can rely on compiler-specific alignment features else use custom
workarounds. Fixes #50753
2010-02-09 21:58:13 +00:00
Andrey Hristov 480c327ff5 make send_close a hook, too 2010-02-09 19:05:40 +00:00
Rasmus Lerdorf f370d79067 It's a size_t here, not an unsigned int. 2010-02-09 17:38:36 +00:00
Pierre Joye d010d0732c - improve netsnmp detection (and restor snmp on win) 2010-02-09 16:38:24 +00:00
Andrey Hristov 52371a2d15 Fix bug#50416
PROCEDURE db.myproc can't return a result set in the given context
2010-02-08 13:09:34 +00:00
Pierre Joye 658e86b847 - prevent unexpectable behaviors (for the user) with invalid path 2010-02-07 20:15:58 +00:00
Pierre Joye c58f63a38a - Fixed #44098, imap_utf8() returns only capital letters 2010-02-07 13:06:54 +00:00
Jani Taskinen e37ba52900 touch 2010-02-07 11:42:52 +00:00
Jani Taskinen b96f3d1e02 bfn 2010-02-07 11:41:44 +00:00
Jani Taskinen 7a303b3328 - Fixed bug #50952 (allow underscore _ in constants parsed in php.ini files) 2010-02-07 11:40:29 +00:00
Rasmus Lerdorf 1947334023 Fix bug #50940 2010-02-05 18:59:05 +00:00
Pierre Joye 3a239b15e9 - silent warning 2010-02-04 15:34:19 +00:00
Pierre Joye e929582421 - if they are outdated/wrong, no need to confuse the users 2010-02-04 08:24:29 +00:00
Johannes Schlüter 4ef9a91298 Allow newer oracle versions 2010-02-04 01:12:14 +00:00
Andrey Hristov e50de7d982 Pass tsrmls to all functions, which might need it in the future.
We are anyway breaking the internal ABI in 5.3.2 so this won't hurt
and make us prepared for the future.
2010-02-03 17:31:29 +00:00
Pierre Joye 3247c2595d - vc6 does not expose it 2010-02-03 16:11:56 +00:00
Christopher Jones dd38619aa5 Explicitly set mail.add_x_header in php.ini so test output matches expected results 2010-02-02 22:54:36 +00:00
Ulf Wendel 7c7d7ac1fa No idea which recent change has cause this little API change, however it is not a big change and maybe it is even an improvement. 2010-02-02 13:10:50 +00:00
Etienne Kneuss 18f8fa7ba3 Fix tests 2010-02-02 13:08:11 +00:00
Ilia Alshanetsky d5fd93e997 Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX). 2010-02-02 12:50:21 +00:00
Dmitry Stogov 694a72c5af Fixed bug #50723 (Bug in garbage collector causes crash) 2010-02-02 12:32:29 +00:00
Etienne Kneuss 191b52d272 Remove trailing dots 2010-02-02 04:49:02 +00:00
Pierre Joye a6c3ac1016 - missing patch (update to 0.9.3) 2010-02-01 21:20:07 +00:00
Pierre Joye 3ef47217d7 - update to 0.9.3 2010-02-01 20:56:03 +00:00
Pierre Joye fa197ab9cc - fix test 2010-02-01 19:30:32 +00:00
Pierre Joye a28a91cc0c - fix leak 2010-02-01 18:58:42 +00:00
Andrey Hristov 7b68aab24c Fix second bug in that code, + instead of += thus not increasing
a pointer and mangling data. Again, ext/mysql and ext/mysqli doesn't
have access to this codepath.
2010-02-01 17:12:40 +00:00
Pierre Joye 860e06a8ba - system/version dependent msg 2010-02-01 16:19:27 +00:00
Andrey Hristov befab3e8c3 Fix a bug in mysqlnd where a pointer was not incremented
and thus wrong data was saved MYSQLND_FIELD::db. However, this
wasn't caught because there is no code in mysql/mysqli/pdo_mysql
which reads that field of the structure. The problem was found
during code review.
2010-02-01 16:12:03 +00:00
Pierre Joye 6d913a0272 - oops, wrong one applied, fix build. 2010-02-01 15:31:58 +00:00
Pierre Joye f25710db92 - set errno on failure so that the caller can still rely on strerror (reporting wrong error w/o this change) 2010-02-01 15:22:31 +00:00
Pierre Joye e1cdfbeb1d - fix system/version dependent msg, add skip cases, sync 2010-02-01 15:18:55 +00:00
Pierre Joye d839e3b9a4 - try again to get a crypto context when the key container did not exist (which is likely to be the case, on a 1st call) 2010-02-01 14:56:51 +00:00
Etienne Kneuss cca05f1403 Fix #48667 (Implementing Iterator and IteratorAggregate is now restricted in both orders) 2010-02-01 13:45:57 +00:00
Ilia Alshanetsky b0f76c2534 Fixed bug #50847 (strip_tags() removes all tags greater then 1023 bytes long) 2010-02-01 12:59:08 +00:00
Ulf Wendel 8aa8b6135b Tests related to #50727 2010-02-01 12:18:50 +00:00
Mikko Koppanen 0a445f4f08 Update the libmagic.patch to reflect the current situation. Contains a diff against upstream 5.03 2010-01-31 22:54:00 +00:00
Jani Taskinen d062a02a1c pff 2010-01-31 22:48:09 +00:00
Gwynne Raskind 775659b921 ZEND_EXTERN_MODULE_GLOBALS() is necessary with ZTS, at least on OS X. How confusing. 2010-01-31 20:00:36 +00:00
Ilia Alshanetsky 6616ceaefa Fixed crash in ZTS mode due to ini values not being initialized 2010-01-31 19:18:56 +00:00
Ilia Alshanetsky dff4e7fda1 Fixed a possible open_basedir/safe_mode bypass in session extension identified by Grzegorz Stachowiak. 2010-01-31 18:06:29 +00:00
Rasmus Lerdorf 693eff5dc2 Blah, PDO_DBG_ENABLED is a 0/1 toggle 2010-01-31 17:07:31 +00:00
Rasmus Lerdorf cc4e15ce53 RINIT/RSHUTDOWN do nothing unless PDO_DBG_ENABLED is defined,
so don't waste time calling them on every request.
2010-01-31 16:56:52 +00:00
Pierre Joye 565af741e4 - fix leak 2010-01-31 15:22:17 +00:00
Pierre Joye 5f935b4da5 - fix skip clauses 2010-01-30 21:24:04 +00:00
Pierre Joye 43b31ea3ea - fix test init 2010-01-30 21:12:20 +00:00
Pierre Joye 1bbc4f1721 - fix write access check when write mode only is requested (not RW) 2010-01-30 20:55:01 +00:00
Pierre Joye 891d7ebe1b - cleanup & correct msg 2010-01-30 20:21:16 +00:00
Pierre Joye 88a6d735b1 - this value is platform dependent (unix too) 2010-01-30 20:14:36 +00:00
Pierre Joye ef48a746fd - cs 2010-01-30 17:56:00 +00:00
Pierre Joye 8d9b6f04b4 - fix test, rewrite it (same cases are tested), CS, simplify, be verbose on error not otherwise (avoid infinite loop in pcre_match inside run-test) 2010-01-30 17:06:06 +00:00
Pierre Joye 957a996f16 - fix test 2010-01-28 21:29:00 +00:00
Pierre Joye 61274a0570 - more EOL fixes, don't use expectf 2010-01-28 00:37:20 +00:00
Pierre Joye 81ac81c494 - fix possible EOL conversion on svn co on windows 2010-01-28 00:05:37 +00:00
Pierre Joye 6c2f62c7a2 - skip if not enough permission and add to trunk 2010-01-27 23:54:52 +00:00
Pierre Joye 5d360fa1ce - fix leak 2010-01-27 16:52:36 +00:00
Pierre Joye e130a31441 - don't go through the reparse code when we have a share or DFS path (should fix #50542) 2010-01-27 16:46:43 +00:00
Pierre Joye 84b59b8582 - little comment to avoid undesired changes in this section 2010-01-27 16:44:48 +00:00
Pierre Joye b37f2257a4 - fix leak, win only 2010-01-27 16:43:16 +00:00
Jani Taskinen 0b03122dc0 - Short is enough, people will not understand it anyway. And this is not a TODO, this is what was already done.. 2010-01-27 16:14:53 +00:00
Pierre Joye 79aa615b55 - fix leak when the SID is already used and duplicated 2010-01-27 14:41:06 +00:00
Ilia Alshanetsky eb1dc0babf Fixed bug #50859 (build fails with openssl 1.0 due to md2 deprecation) 2010-01-27 12:55:01 +00:00
Pierre Joye ab91fa848a - update/fix/skip/add for rename tests 2010-01-27 11:23:43 +00:00
Pierre Joye dcd53bdfff - attempt to be more clear 2010-01-27 10:39:23 +00:00
Pierre Joye d58d42a824 - fix and update test according to recent fixes 2010-01-27 10:08:43 +00:00
Pierre Joye f52166739d - fix and update test according to recent fixes 2010-01-27 09:47:17 +00:00
Pierre Joye 4118379bda - update 2010-01-27 08:14:50 +00:00
Pierre Joye bbf9b6dcd3 - #50854, fix build on non windows 2010-01-27 07:48:31 +00:00
Pierre Joye b7aee13069 - removed debug breakpoint and improve inline comment 2010-01-27 02:03:41 +00:00
Pierre Joye 6925763347 - prevent bad things to happen when invalid path are passed to MoveFileEx 2010-01-27 01:18:43 +00:00
Pierre Joye 573c33b3b7 - [DOC] #45986, bad file descriptor warning when rename is used with invalid path, add php_win32_docref2_from_error to display system error for non posix api 2010-01-26 20:04:03 +00:00
Ilia Alshanetsky daa380c0cb Fixed bug #50829 (php.ini directive pdo_mysql.default_socket is ignored) 2010-01-26 13:15:52 +00:00
Nuno Lopes eedb2b6687 Daniel Convissor wants to test ext/date/lib, so enable code coverage data for him 2010-01-25 22:44:07 +00:00
Jani Taskinen 5952473b7a - Fixed bug #50832 (HTTP fopen wrapper does not support passwordless HTTP authentication) 2010-01-25 16:28:13 +00:00
Pierre Joye 5eb4db5e8f - Ensure that stderr output are not buffered, portability for tests 2010-01-25 14:47:19 +00:00
Pierre Joye d0ab70458d - make it work on win, simplify expect using expectf 2010-01-25 13:49:47 +00:00
Andrey Hristov 6407250e70 Fix for bug#50772
mysqli constructor without parameters does not return a working mysqli object
2010-01-25 13:23:32 +00:00
Ilia Alshanetsky db8a6974fb Added test case for bug #44827 2010-01-25 13:08:43 +00:00
Pierre Joye 8b5a46b3cd - disable the non win32 version on win 2010-01-25 09:10:45 +00:00
Pierre Joye 86d5f7fb38 - pls don't add .swp/bak/etc. :) 2010-01-25 09:09:02 +00:00
Pierre Joye 3111aa2638 - ws 2010-01-25 09:01:22 +00:00
Jani Taskinen 00a8cab860 fix entries..can you count to 80? 2010-01-24 18:39:14 +00:00
Pierre Joye f2dafc35ee - today entries 2010-01-24 18:05:36 +00:00
Pierre Joye f5aa7da785 - fix test, dir separator agnostic 2010-01-24 17:57:40 +00:00
Pierre Joye ce14d8cd5b - add win32 version of the test, damned error msg with eol in them 2010-01-24 17:53:10 +00:00
Derick Rethans 1edc6f8666 - Updated to version 2010.1 (./tzdata2010a) 2010-01-24 15:23:14 +00:00
Pierre Joye 1538f246f4 - nl fix 2010-01-24 14:41:47 +00:00
Pierre Joye 06674ee2c0 - \n or \r\n (phpt are text in svn) 2010-01-24 14:38:34 +00:00
Pierre Joye 7617d75d92 - fix tests 2010-01-24 14:18:09 +00:00
Pierre Joye e4065db32b - #50690, putenv does assign value when their length is one char 2010-01-24 13:49:47 +00:00
Pierre Joye f386e268cd - make getservbyname on windows behaves like *nux when proto is an empty string 2010-01-24 13:36:08 +00:00
Pierre Joye 6a7d96eef9 - prevent possible crash when error/warnings are raised during startup (like deprecated features), 5.3+ only 2010-01-24 12:39:31 +00:00
Pierre Joye aafd4f5008 - \n or \r\n as phpt are txt file in svn 2010-01-24 12:27:29 +00:00
Pierre Joye 25fb7ecc2b - skip if proc_nice is not available 2010-01-24 12:05:58 +00:00
Sriram Natarajan 0ea435c6e0 - Fixed bug #50756 (CURLOPT_FTP_SKIP_PASV_IP does not exist.) 2010-01-23 01:37:32 +00:00
Pierre Joye add029adef - fix win build, use bundled stdint 2010-01-21 23:23:17 +00:00
Andrey Hristov d9449d44a2 decrement correctly! 2010-01-21 18:17:19 +00:00
Andrey Hristov 2d7ca03976 Add possibility to restrain the number of levels 2010-01-21 18:12:18 +00:00
Stanislav Malyshev df15e2cde6 fix TS build 2010-01-21 18:07:28 +00:00
Ilia Alshanetsky 50016d9dec Upgraded bundled PCRE to version 8.01 2010-01-21 17:49:38 +00:00
Johannes Schlüter 6dda7add54 Overlong hostnames breakthistest on NIS enabled FreeBSD 2010-01-21 13:30:46 +00:00
Ilia Alshanetsky c0e90d0b8e Added missing INI settings 2010-01-20 13:06:27 +00:00
Takeshi Abe bea0320749 fix libgd FS100 (spurious horizontal line drawn by gdImageFilledPolygon) 2010-01-20 09:39:06 +00:00
Andrey Hristov 6136b785b9 Fix possible lock-ups when a trigger triggers a trigger.
Hanging was possible on the subsequent try to acquire a mutex.
Now it is correctly implemented and if a trigger is being executed
then no other trigger will be fired, on recursive calls.
2010-01-19 15:31:39 +00:00
Jani Taskinen 3d733ce6fa - Fixed bug #50791 (Compile failure: Bad logic in defining fopencookie emulation) 2010-01-19 13:44:08 +00:00
Johannes Schlüter 85fcabf3ce - A few more extern declarations 2010-01-19 13:24:02 +00:00
Ilia Alshanetsky 463506b269 Fixed test 2010-01-19 12:42:50 +00:00
Ilia Alshanetsky 7e79b2684a Upgraded bundled sqlite to version 3.6.22. 2010-01-19 12:38:55 +00:00
Jani Taskinen d9eed26a3d - Add missing skipif 2010-01-19 12:31:29 +00:00
Andrey Hristov ac1a5cd0f7 Make it GCC only feature (tracing). VC7 and up do the work
too and it might be tweaked later.
2010-01-19 12:13:06 +00:00
Jani Taskinen 95a4f5fabe - WS + CS fixes 2010-01-19 12:03:07 +00:00
Andrey Hristov f056cdaa3e fix windows 2010-01-19 11:44:43 +00:00
Johannes Schlüter 00afa7278b - Add extern declarations for fixing the build with some compilers 2010-01-19 10:44:36 +00:00
Ilia Alshanetsky 7e1f29e930 Fixed bug #50787 (stream_set_write_buffer() has no effect on socket streams). 2010-01-18 12:50:08 +00:00
Ilia Alshanetsky ebe5ff73f8 Fixed bug #50761 (system.multiCall crashes in xmlrpc extension). 2010-01-17 17:19:38 +00:00
Hannes Magnusson 6cd6c32d0f Kill very old export of the docs.
Fixes bug#50784
2010-01-17 16:25:20 +00:00
Hannes Magnusson 5ad1508fde These instructions are apparently outdated
# See http://news.php.net/php.windows/29806
2010-01-17 14:22:16 +00:00
Jani Taskinen e421bee7af - Fixed bug #48811 (Directives in PATH section do not get applied to subdirectories) 2010-01-16 21:01:12 +00:00
Rob Richards 915c8778e2 fix bug #49463 (setAttributeNS fails setting default namespace)
add test
2010-01-15 21:29:56 +00:00
Stanislav Malyshev 932e276c0b add filters to mcrypt
# trunk will follow soon
2010-01-15 21:02:20 +00:00
Rasmus Lerdorf 15e31de034 Fix gcc version check - bug #50771 2010-01-15 18:26:53 +00:00
Takeshi Abe e3e76d7baf fix wrong type and useless assignments 2010-01-15 17:09:14 +00:00
Pierre Joye 9583994828 - fix build 2010-01-14 19:44:54 +00:00
Ilia Alshanetsky fae24f9298 Added test for bug #50680 2010-01-14 15:45:49 +00:00
Andrey Hristov beaa4d0430 Fix compiler warning, copy&paste error 2010-01-14 12:31:29 +00:00
Andrey Hristov f551c57cf0 Fix compiler warning 2010-01-14 11:39:18 +00:00
Takeshi Abe f7a3b3f5aa imagepolygon() and imagefilledpolygon() does not allow negative number of points causing invalid allocation 2010-01-14 11:11:56 +00:00
Andrey Hristov fef4bf8a9d remove redefinition of bit_uint8korr 2010-01-14 10:35:28 +00:00
Andrey Hristov 36a037d236 Fix build of mysqli when libmysql is used, mysqlnd_portability.h
might not be available for some weird reasons. Added the macros
that we need, in that case

Code by Jess Portnoy
2010-01-14 09:47:57 +00:00
Andrey Hristov 6a8d4c3287 more PHPAPI for phpize-d builds 2010-01-13 18:07:02 +00:00
Andrey Hristov 4bbdce5ca7 export more functionality for phpize builds 2010-01-13 18:00:41 +00:00
Andrey Hristov 176e6dd2f2 make mysqlnd's tracing API more reusable 2010-01-13 14:06:02 +00:00
Ilia Alshanetsky 6254378830 Fixed bug #50732 (exec() adds single byte twice to $output array). 2010-01-13 13:44:58 +00:00
Takeshi Abe dd17af94c5 removed an unused variable 2010-01-13 06:55:03 +00:00
Frank M. Kromann 1709009f1d Don't free soap_headers just before comparing the length. This causes SoapClient to fail when requesting a URL 2010-01-13 05:32:02 +00:00
Christopher Jones 218eba34ee Bump version in early preparation for release 2010-01-12 19:12:49 +00:00
Ilia Alshanetsky d2e14e3f20 Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0) 2010-01-12 12:46:54 +00:00
David Soria Parra e3f76cc8c3 Revert commit 292222. It's not needed anymore to specify c99. 2010-01-12 09:28:02 +00:00
Stanislav Malyshev 28e9a01a3e name resource build script resourcebundle.build 2010-01-11 23:46:43 +00:00
Andrey Hristov dc09fa81f5 more typedef cosmetics 2010-01-11 20:18:56 +00:00
Andrey Hristov c4b380a076 remove stale export 2010-01-11 20:12:46 +00:00
Andrey Hristov 2331e28509 cosmetics. typedef-ed types should be in capital case 2010-01-11 20:10:10 +00:00
Andrey Hristov 1a108f1bae remove extern defintion of a variable that is no more
used outside of the file where it is declared.
Also really export with PHPAPI the protocol init/deinit functions
2010-01-11 19:13:43 +00:00
Andrey Hristov 8b3931b444 this function should be exporten in all cases, not only under PHP6 2010-01-11 18:40:11 +00:00
Andrey Hristov d999552ae7 missed to commit in 5_3, here it comes, reusability of stats 2010-01-11 18:31:02 +00:00
David Soria Parra 33fc7d77d7 Fixes #50496. Drop stdbool.h dependency as it requires _STDC_C99 set on some systems. 2010-01-11 16:22:12 +00:00
Andrey Hristov 9b8d026d86 Rework the statistics macros to be reusable by external entities.
Rename handlers to triggers. Dynamically allocate space for the
statistics thus allow reusability.
2010-01-11 14:27:35 +00:00
Andrey Hristov 4a549fbb3d missed to commit to the branch 2010-01-11 12:37:42 +00:00
Dmitry Stogov d2f681cecd Fixed bug #50519 (segfault in garbage collection when using set_error_handler and DomDocument) 2010-01-11 10:07:10 +00:00
Ilia Alshanetsky bf0f58825e Year++ 2010-01-11 03:01:19 +00:00
Pierre Joye 7aacc1ccbc - use png_sig_cmp to support libpng 1.4, old is deprecated already in older version 2010-01-10 02:13:45 +00:00
Andrey Hristov 81695689b9 export some calls to init/deinit code outside of the module 2010-01-08 18:52:08 +00:00
Andrey Hristov d20fdd603b improve the stats subsystem. Reduce the number of macro definitions
in half by smartly introducing 2 new macros. Make MYSQLND::stats a pointer
from being aggregated and add triggers.
2010-01-08 17:35:20 +00:00
Andrey Hristov 3264e51983 add restart_psession and end_psession hooks 2010-01-08 13:47:03 +00:00
Takeshi Abe c18d4364ed Bug #49600 (imageTTFText text shifted right)
- fix difference of horizontal position between imagettftext() and imagettfbbox()
2010-01-08 12:18:52 +00:00
Jani Taskinen b690cb881d fix news 2010-01-08 09:56:38 +00:00
Rasmus Lerdorf 58867bacc1 Worked with Samy Kamkar to improve LCG entropy. 2010-01-08 09:43:14 +00:00
Christopher Jones 679b228391 Bug #47281 ( is limited in size of characters). Also remove redundant code line. 2010-01-07 23:59:20 +00:00
Andrey Hristov 73b23fca37 Change of way the packet objects are created/initialised
If the protocol gets changed, ever, we can decide at runtime
easily which protocol to use by instantiating the right protocol
object. But this is restricted to the structure of the packets, not
the flow.
2010-01-07 19:44:59 +00:00
Ilia Alshanetsky 1ee6c8277f Fixed bug #50680 (strtotime() does not support eighth ordinal number). 2010-01-07 12:54:44 +00:00
Sebastian Bergmann de93d96de4 sed -i "s#1997-2008#1997-2010#g" **/*.c **/*.h 2010-01-07 11:02:39 +00:00
Christopher Jones 5e8e34bac8 Fixed bug #49560 (oci8: using LOBs causes slow PHP shutdown)
- Improved descriptor refcounting to remove unneeded items sooner
 - Replaced n^2 list traversal during descriptor list destruction
2010-01-06 18:58:16 +00:00
Rob Richards bc1feb9034 fix bug #50661 (DOMDocument::loadXML does not allow UTF-16)
add test
2010-01-06 13:13:17 +00:00
Ilia Alshanetsky d5b2007bed Fixed bug #50657 (copy() with an empty (zero-byte) HTTP source succeeds but returns false). 2010-01-06 12:54:53 +00:00
Sebastian Bergmann d2281d1dff sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.php 2010-01-05 20:46:53 +00:00
Sebastian Bergmann 3defe76254 sed -i "s#1998-2009#1998-2010#g" **/*.re **/*.y **/*.l 2010-01-05 20:40:23 +00:00
Sriram Natarajan 5d0419e05a - Addressing minor leak noticed while addressing bug #48590 2010-01-05 19:25:23 +00:00
Pierrick Charron c9a85e3a7e Fixed bug #50576 (XML_OPTION_SKIP_TAGSTART option has no effect). 2010-01-05 13:03:40 +00:00
Ilia Alshanetsky 1af7f5bda7 Added test case for bug #50632 2010-01-05 12:25:00 +00:00
Sriram Natarajan 2c8bdf40d0 - Fixed bug #48590 (SoapClient does not honor max_redirects) 2010-01-05 03:07:43 +00:00
Pierre Joye c5c6bc8250 - [doc] add support for DISABLE_AUTHENTICATOR in imap_open (fix #33500) 2010-01-05 01:12:18 +00:00
Stanislav Malyshev 8f4337f255 add ICU resource bundle support, contributed by Hans-Peter Oeri 2010-01-04 21:44:45 +00:00
Ulf Wendel 795f716832 Updating test to new libmysql feature set (first introduced in MySQL 6.0 but now backported to MySQL 5.5). 2010-01-04 15:29:18 +00:00
Ulf Wendel 0004679f8a The internal zval cache has been removed and not been reintroduced... remove corresponding test code 2010-01-04 15:05:34 +00:00
Ulf Wendel bd4c681a42 Fixing test 2010-01-04 14:59:04 +00:00
Ulf Wendel bf9d5991ea Tweaking test. Andrey, you once requested such a test, please have a look if it does exactly what you want it to do. 2010-01-04 14:34:44 +00:00
Ulf Wendel 39e27c9030 The internal zval cache has been removed and not been reintroduced... remove corresponding test code 2010-01-04 13:44:10 +00:00
Ilia Alshanetsky 8543914732 Update copyright year in the man file 2010-01-04 12:38:07 +00:00
Ilia Alshanetsky 299c4c43ed Fixed bug #50632 (filter_input() does not return default value if the variable does not exist) 2010-01-03 22:58:37 +00:00
Pierrick Charron 614fd65795 Fixed bug #50636 (MySQLi_Result sets values before calling constructor) 2010-01-03 16:59:33 +00:00
Sebastian Bergmann 9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Sebastian Bergmann ebb467ff02 sed -i "s#1997-2009#1997-2010#g" **/*.re **/*.y **/*.l 2010-01-03 08:22:14 +00:00
Ilia Alshanetsky b63f178e97 Fixed bug #44827 (define() allows :: in constant names). 2009-12-30 19:15:11 +00:00
Jani Taskinen 72a9c6d37a - Sync with HEAD 2009-12-29 19:25:09 +00:00
Jani Taskinen 1a64bb9c05 - WS + CS + folding tags 2009-12-29 18:59:58 +00:00
Pierrick Charron eac3e3e4a4 Add a test for tidyNode::__construct() 2009-12-29 16:06:27 +00:00
Ilia Alshanetsky c3230ad217 Fixed bug #48190 (Content-type parameter "boundary" is not case-insensitive in HTTP uploads). 2009-12-29 15:57:54 +00:00
Pierrick Charron 3554a27429 Set the tidyNode constructor private 2009-12-28 17:01:24 +00:00
Derick Rethans ec74871ad4 - Updated to version 2009.21 (2009u) 2009-12-28 14:30:50 +00:00
Andrey Hristov d76fa2b46c move network creation to the init hook 2009-12-28 11:17:10 +00:00
Felipe Pena 0d5a318090 - Fixed ZTS build 2009-12-27 18:13:37 +00:00
Mikko Koppanen 29b7cd5dcf Share the php_sockets.h header
Share php_sockets_le_socket_name
2009-12-27 01:00:50 +00:00
Mikko Koppanen 1e6695feb7 spprintf the dbname
use VCWD_ACCESS instead of access
2009-12-27 00:43:33 +00:00
Rasmus Lerdorf e9b1ab57a4 Along with the valid char set, also add a length check to the
session id here to avoid a lower-level error on the open() 
later on in case we exceed MAX_PATH.  The lower level open()
error includes the session dir path in it, so this is a very
low-priority security fix.  People should not be running
production systems with display_errors turned on.
2009-12-26 23:38:25 +00:00
Mikko Koppanen 1496161f01 Upgrade bundled libmagic to 5.03 (fixes CDF parsing related issues)
Clean up / remove whitespace differences to make next merge easier
Removed unnecessary files from trunk
2009-12-26 15:00:21 +00:00
Pierrick Charron 832eb472c5 Changed tidyNode class to disallow manual node creation. 2009-12-25 21:24:36 +00:00
Matteo Beccati 166b3ef63d Removed spurious high-ascii char from previous commmit 2009-12-25 21:01:06 +00:00
Matteo Beccati 09587d3cbf - Updated ext/pgsql tests to work w/ PostgreSQL 8.5
# tested w/ 8.5alpha3
2009-12-25 20:56:00 +00:00
Antony Dovgal 42d05a5c02 remove automatic file unlocking on shutdown and/or stream close
(make it win32-specific for 5_2, as discussed with Ilia)
2009-12-25 20:34:59 +00:00
Matteo Beccati 9326c7e3a2 - Updated pdo_pgsql tests to be 8.5+ friendly 2009-12-25 20:11:07 +00:00
Dmitry Stogov db8e4a089c Fixed bug #50519 (segfault in garbage collection when using set_error_handler and DomDocument) 2009-12-25 13:11:18 +00:00
Pierrick Charron 3cc801b9b0 Fixed bug #50558 (Broken object model when extending tidy) 2009-12-25 01:35:57 +00:00
Ilia Alshanetsky c2296af6a6 Added missing host validation for HTTP urls inside FILTER_VALIDATE_URL. 2009-12-24 18:47:15 +00:00
Mikko Koppanen 207d9133ca Changed stream_resolve_include_path to use zend_resolve_path
backported stream_resolve_include_path to PHP 5.3
backported stream_resolve_include_path test to PHP 5.3
2009-12-24 13:12:03 +00:00
Antony Dovgal 0b8839cd4a fix the fix for #47409
use correct comparison and add missing scope checks to trunk
2009-12-24 13:07:33 +00:00
Sriram Natarajan d55669c6ab - Update tests to reflect current behavior after fix for bug #50185 2009-12-24 02:08:23 +00:00
Stanislav Malyshev b9acd57000 fix flags handling in zend_parse_method_parameters_ex 2009-12-24 00:15:13 +00:00
Stanislav Malyshev 882a89fb22 cleanup some code, improve error handling 2009-12-23 21:41:05 +00:00
Jani Taskinen f0c1cd512f - ws 2009-12-23 21:06:26 +00:00
Jani Taskinen 34dd94b483 I really like the extra space. 2009-12-23 21:02:12 +00:00
Ilia Alshanetsky 12f82ee144 Fixed bug #47409 (extract() problem with array containing word "this"). 2009-12-23 16:33:58 +00:00
Andrey Hristov 01adfaee5f Unify. The typedef-ed structs in mysqlnd are always capitalized. 2009-12-23 11:58:45 +00:00
Antony Dovgal 6a9d78f102 fix minor leak in CGI sapi (happened once per child) 2009-12-23 09:40:28 +00:00
Johannes Schlüter 31deb65a9d Where using svn now, use svn paths
# This file doesn't exist in 5.2!?
2009-12-22 22:36:41 +00:00
Johannes Schlüter d046bf5d8e PHP 5.3.2RC1 2009-12-22 22:02:50 +00:00
Johannes Schlüter 5927cec714 Wrap at 80 chars 2009-12-22 21:17:58 +00:00
Johannes Schlüter c764995c8e install mysqlnd headers to allow shared build of extensions 2009-12-22 19:30:09 +00:00
Andrey Hristov c95fa280ed Fix double calls to free_contents if the connection cannot be
opened. mysqlnd have no probs, external code should not have too.
In any case, double call is not needed.
2009-12-22 17:44:42 +00:00
Andrey Hristov e1251edc16 move state setting to the right place, in mysqlnd_init, no more
in mysqlnd::connect
2009-12-22 17:31:31 +00:00
Pierre Joye 9309f2bf64 - fix build and warning (introduced by my last commit) 2009-12-22 14:57:57 +00:00
Jani Taskinen 294401cfa0 - Fixed bug #50517 (EXTRA_LDFLAGS polluted by wrong entries)
# Until someone shows me use case for LDFLAGS, this is gone.
# This was wrong place to import it anyway.
2009-12-22 09:57:19 +00:00
Moriyoshi Koizumi 7d9a7dbad6 - Fix bug #46478 (htmlentities() uses obsolete mapping table for character
entity references)
2009-12-22 05:50:34 +00:00
Ilia Alshanetsky 800519fcbb Fixed bug #45599 (strip_tags() truncates rest of string with invalid attribute). 2009-12-22 02:04:12 +00:00
Derick Rethans bfa1c91d9b - Updated to version 2009.20 (2009t) 2009-12-21 20:46:12 +00:00
Sriram Natarajan 20cd29d0a2 Fixed bug #50540 (Crash within ldap_first_reference function) 2009-12-21 20:39:48 +00:00
Stanislav Malyshev baaec77e78 clean up normalizer code 2009-12-21 20:12:46 +00:00
Andrey Hristov 41ac91aecf Move this function to MYSQLND_NET as it works on the
php stream
2009-12-21 16:52:10 +00:00
Andrey Hristov ce349e3540 magic numbers to macros 2009-12-21 16:17:31 +00:00
Andrey Hristov b4477669b4 Move compression and decompression code to separate functions
which can be overloaded on purpose.
2009-12-21 16:09:13 +00:00
Jani Taskinen 4bba459d8f - Sync (and KEEP it synced!) 2009-12-21 15:44:58 +00:00
Jani Taskinen d0a956c2b7 - Tune the fix for bug #50508 and make it work with MacOSX, bug #50541. 2009-12-21 15:22:40 +00:00
Felipe Pena e83e52eba1 - New tests 2009-12-20 22:04:55 +00:00
Stanislav Malyshev ae70213177 Fixed bug #50196 stream_copy_to_stream() produces warning when source is not file 2009-12-19 01:15:30 +00:00
Stanislav Malyshev 0401c6ca2d fix bug #50196 2009-12-19 01:13:33 +00:00
Stanislav Malyshev e665b0955a Fixed bug #50394 (Reference argument converted to value in __call) 2009-12-18 19:20:33 +00:00
Stanislav Malyshev fc1e17ee76 fix regression bug #50394: Reference argument converted to value in __call 2009-12-18 19:12:11 +00:00
Jani Taskinen b7608c91e4 touch 2009-12-18 12:48:59 +00:00
Jani Taskinen 52f83608d8 - Fixed bug #50508 (compile fails: Conflicting HEADER type declarations)
# NEVER ever include nameser_compat.h, it's included in various ways in different OSes by nameser.h if needed
2009-12-18 11:02:07 +00:00
Pierre Joye dea1d412e1 - [DOC] add INTERNALDATE to imap_append (will merge to trunk later) 2009-12-17 17:28:26 +00:00
Jani Taskinen 215dd9d02c - These are 2 separate sections.. 2009-12-17 16:10:53 +00:00
Ulf Wendel e2a2205a58 Test for what Andrey has found with 16M packets 2009-12-17 14:15:28 +00:00
Andrey Hristov 028bd4ba02 refactoring : move more network related functions to
mysqlnd_net.c . Now communication is split on two levels:
- logical (functions send and receive)
- physical (functions network_read and network_write)
2009-12-17 13:29:46 +00:00
Andrey Hristov 22528b14a4 During refactoring of the function mysqlnd_stream_write_w_header() it was
found that there is a bug in the way the data is sent, although a very rare
one which will only affect very large queries which have length 16777214. The
communication will hang. A way to test it is to execute the following:
./php -r '$c=mysqli_connect("127.0.0.1","root","root","test");
$q="insert into test.tblob values(\"".str_repeat("a",256*256*256-1-34)."\")";
$c->query($q);'
2009-12-17 12:30:58 +00:00
Sriram Natarajan 4e06ca007f - Fix NEWS for bug #50496
# Update NEWS to keep resolved bugs in decreasing order (Christopher Jones)
2009-12-16 21:33:20 +00:00
Sriram Natarajan cbc6619fe3 - Fixed bug #50496 (Use of <stdbool.h> is valid only in a c99 compilation environment.) 2009-12-16 20:49:08 +00:00
Andrey Hristov d233b0b2af call free_contents in every case, in case something is not freed
by the calling code
2009-12-16 14:38:30 +00:00
Andrey Hristov a1ef2d9fb3 Remove unneeded dereferences
(oops, committed the trunk changes from a wrong directory, which splitted
this commit).
2009-12-16 14:06:09 +00:00
Andrey Hristov b3546d1b5e move MYSQLND_NET code to a separate file.
mysqlnd_wireprotocol is about the protocol not the transport
layer
2009-12-16 12:59:38 +00:00
Pierre Joye 6ec6a9d62e - add a test case and update the skip clause 2009-12-16 10:09:34 +00:00
Andrey Hristov 5e1c95fda4 remove duplicated code 2009-12-15 17:39:30 +00:00
Andrey Hristov c101f7f542 Move code out of mysqlnd_conn::connect to mysqlnd_net::connect.
Thus mysqlnd_conn::connect() does less of what it should not do - think
about the transport level.
2009-12-15 17:33:06 +00:00
Andrey Hristov 70690e1163 remove C++ comments 2009-12-15 14:48:24 +00:00
Andrey Hristov 523471f7e8 export this function 2009-12-15 14:26:24 +00:00
Andrey Hristov 0371ef1070 refactor: move code that belongs to MYSQLND_NET out of MYSQLND 2009-12-15 13:13:51 +00:00
Ilia Alshanetsky d0f6848e66 Fixed bu #50392 (date_create_from_format() enforces 6 digits for 'u' format character) 2009-12-15 12:34:12 +00:00
Jani Taskinen 4e10081f8f - Make $sbindir be usable in C code as well (like $bindir and co.) 2009-12-15 11:17:47 +00:00
Jani Taskinen def4e7c0e6 - Allow using $sbindir as well 2009-12-15 10:55:27 +00:00
Felipe Pena c00a91a024 - Added SKIPIF 2009-12-15 00:37:43 +00:00
Felipe Pena 286f36e702 - Fixed memory leak when E_STRICT message is getted 2009-12-14 21:44:56 +00:00
Jani Taskinen 9f210d53cc - Fix test 2009-12-14 09:42:55 +00:00
Jani Taskinen 16dbf3060b - Fix test 2009-12-14 09:26:49 +00:00
Pierrick Charron c2fccc1606 - Fixed bug #50469 (Fixed typo in imagepsencodefont error string). 2009-12-14 04:09:18 +00:00
Pierrick Charron 7d4643193d - Fixed bug #50458 (PDO::FETCH_FUNC fails with Closures) 2009-12-14 03:44:33 +00:00
Felipe Pena 35ad330849 - Improved the bug#49174 entry summary 2009-12-13 20:51:15 +00:00
Felipe Pena 85f96a8132 - Completing the phrase 2009-12-13 20:04:44 +00:00
Felipe Pena 93a406ac9c - Fixed bug #49174 (crash on queryString set) 2009-12-13 19:53:44 +00:00
Felipe Pena 4411621217 - Fixed bug #50209 (Compiling with libedit cannot find readline.h)
(patch by tcallawa at redhat dot com)
2009-12-13 17:06:47 +00:00
Felipe Pena eb3eea2669 - Fixed tests for when running using libedit 2009-12-13 16:53:24 +00:00
Ilia Alshanetsky d56c1fdf14 Fixed bug #50451 (http wrapper breaks on 2048 char long headers)
# Improvement on the fix for bug #49851
2009-12-13 15:44:22 +00:00
Felipe Pena 81ad353ec2 - Fixed bug #50464 (declare encoding doesn't work with)
# The bug (BC) only happens in this branch.
2009-12-13 15:18:58 +00:00
Felipe Pena 5eae703705 - Fixed bug #50445 (PDO-ODBC stored procedure call from Solaris 64-bit causes seg fault).
(Original patch by davbrown4 at yahoo dot com)
2009-12-11 22:30:46 +00:00
Pierre Joye af206a90ae - fix build, come on, it is not that hard to test before commit, is it? 2009-12-11 16:35:42 +00:00
Pierre Joye a2cf15fcc6 - #50334, add sha support for VC6 too, not merged in trunk as we don't support vc6 there 2009-12-11 16:07:57 +00:00
Pierre Joye 560ed89bfb - #50334, use our own implementations of stpncpy and mempcy, avoiding weird behaviors on certain platforms like solaris 2009-12-11 15:57:01 +00:00
Jani Taskinen b9ac76c51c - Fix test 2009-12-11 15:38:15 +00:00
Jani Taskinen 70a2b56337 fix test 2009-12-11 15:06:50 +00:00
Andrey Hristov 13c8bba00a Make MYSQLND_NET dynamically allocated structure with allocator
and deallocator. More member functions will come.
2009-12-11 11:58:57 +00:00
Jani Taskinen 35a4d5831b Fix test 2009-12-11 10:55:56 +00:00
Andrey Hristov a9295f0343 remove stale comment 2009-12-11 10:21:34 +00:00
Andrey Hristov 0c7a9b8010 Move two functions which are used in the extension as methods of
the connection. Two functions less in the global namespace.
2009-12-11 10:18:00 +00:00
Jani Taskinen 03a47e9b03 - Fix problem with SKIPIF failing to skip in some cases (deprecated warnings f.e.) 2009-12-11 07:34:06 +00:00
Christopher Jones 1aebd220f8 Add new 'fetch' test and make several small test fixes 2009-12-10 19:07:08 +00:00
Christopher Jones e435285b39 Remove text recently merged to online doc 2009-12-10 17:28:19 +00:00
Pierre Joye f59f7a3f49 - #50334, add define on win as well 2009-12-10 14:08:19 +00:00
Andrey Hristov a633de0020 bump version number 2009-12-10 11:59:14 +00:00
Andrey Hristov 00d76a8445 Add plugin storage for MYSQLND_STMT too 2009-12-10 11:18:05 +00:00
Andrey Hristov c8c250df80 Fix pdo build, forgot to remove the zval caching from pdo-mysql 2009-12-10 09:35:10 +00:00
Jani Taskinen 01eae78ec3 - not needed anymore 2009-12-10 09:23:06 +00:00
Jani Taskinen 5e7fddab93 - Fix test mess (testing the deprecated ini option is pointless when using the func does same thing) 2009-12-10 09:22:54 +00:00
Ilia Alshanetsky 47b3371122 Fixed bug #49851 (http wrapper breaks on 1024 char long headers). 2009-12-10 03:23:05 +00:00
Pierre Joye 7179910573 - [DOC] expose MPIR version when mpir is used instead of gmp 2009-12-10 02:25:47 +00:00
Andrey Hristov 06a417b6a9 Remove stub code which never actually was used for anything.
Things like this can be built on top of the core.
2009-12-09 20:38:11 +00:00
Andrey Hristov 6f598e62ff Remove the zval caching from mysqlnd. It was disabled versions ago
due to problems on windows, which were not debugged. Better have 
code that is disabled not in the core.
2009-12-09 20:21:05 +00:00
Andrey Hristov d8a8d823ce Fix compilation warnings 2009-12-09 18:11:03 +00:00
Pierre Joye 8d58b31495 - #50334, fix build for platform without endian.h (like solaris) 2009-12-09 17:40:19 +00:00
Andrey Hristov 4d2735007d Remove disabled code - threaded fetching. This can be implemented
on a upper level and by offloading it we reduce the complexity of
the core.
2009-12-09 16:57:03 +00:00
Jani Taskinen 64fb1fca1f - Add one test from HEAD 2009-12-09 13:25:10 +00:00
Ulf Wendel 671ebe958a Adapting tests to accept actual behaviour found in 5.2, 5.3 and 6.0. The behaviour is wrong according to the documentation: mysqli_connect_error() should return an empty string (not NULL), if there is no error. However, changing this would break BC and most users will not notice the difference between NULL and empty string anyway. 2009-12-09 12:06:10 +00:00
Pierre Joye bf377f6aab - #50334, add missing file 2009-12-09 10:39:03 +00:00
Jani Taskinen 6dff9d7632 FIFO 2009-12-09 10:15:34 +00:00
Pierre Joye 77afccc28c - #50334, add CRYPT_SHA* constants and tests [DOC] 2009-12-09 01:43:23 +00:00
Pierre Joye 6a9f96f267 - update 2009-12-09 00:35:30 +00:00
Pierre Joye 2e6c08b289 - drop non used code and fix warning 2009-12-09 00:32:14 +00:00
Pierre Joye 9001b4036a - #50334, crypt ignores sha512 and add support for sha256/512 to php's crypt [DOC] 2009-12-09 00:20:14 +00:00
William Martin d06e06007a Backported 5.3 tests to 5.2 and added more RecursiveIteratorIterator tests 2009-12-08 19:51:56 +00:00
Jani Taskinen c4819e9ff3 MFH: static before const 2009-12-08 17:30:22 +00:00
Ilia Alshanetsky 752b9fde5a Upgraded to Sqlite 3.6.21 2009-12-08 13:24:27 +00:00
Dmitry Stogov 76c445dd73 - Forgotten patch for trunk
- Fixed stdin filename in error messages
2009-12-08 10:16:38 +00:00
Jani Taskinen 0e218d3512 FIFO 2009-12-08 06:19:56 +00:00
Felipe Pena a94558c855 - Added MAKE_COPY_ZVAL(ppzv, pzv) macro 2009-12-08 01:57:37 +00:00
Stanislav Malyshev a9044795da ouch, that ZTS 2009-12-08 01:57:16 +00:00
Stanislav Malyshev 327cf380e8 win32 should have different test 2009-12-08 01:52:57 +00:00
Felipe Pena da22aa9aad - Fixed ZTS build 2009-12-08 01:51:34 +00:00
Stanislav Malyshev 90df6f2ca2 add "no params" check 2009-12-08 01:44:15 +00:00
Stanislav Malyshev 7beb1af8de add realpath cache inspect functions 2009-12-08 01:35:08 +00:00
Moriyoshi Koizumi 413196c574 - Take account of surrogate pairs. 2009-12-07 15:41:43 +00:00
Ilia Alshanetsky 2be6de0a50 Added FILTER_FLAG_STRIP_BACKTICK option to the filter extension. 2009-12-07 13:43:44 +00:00
Dmitry Stogov 6ab5f53d52 Fixed bug #49866 (Making reference on string offsets crashes PHP) 2009-12-07 08:47:18 +00:00
Dmitry Stogov 7a96fdff4c Fixed bug #50351 (performance regression handling objects, ten times slower in 5.3 than in 5.2. foreach statement should not initiate GC) 2009-12-07 08:14:48 +00:00
Jani Taskinen 4963d99213 - Fix NEWS 2009-12-07 07:30:41 +00:00
Pierrick Charron 99ba48dc60 Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN even in the middle of a string). 2009-12-06 21:32:58 +00:00
Ilia Alshanetsky bf550fe8da Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN). 2009-12-06 19:34:12 +00:00
Felipe Pena 30188d3c58 - Fixed bug #50162 (Memory leak when fetching timestamp column from Oracle database)
- Fixed bug #34852 (Failure in odbc_exec() using oracle-supplied odbc driver) (patch by tim dot tassonis at trivadis dot com)
2009-12-06 18:53:16 +00:00
Sriram Natarajan 77895623dc BFN 2009-12-06 16:43:46 +00:00
Felipe Pena 8afad00a16 - Fixed tests 2009-12-04 11:32:39 +00:00
Dmitry Stogov 5ab649e65f Fixed compilation 2009-12-04 07:11:37 +00:00
Stanislav Malyshev 3e6ac4fb6b protect http_session_vars from interrupt corruption
improve save_path check
2009-12-04 01:21:32 +00:00
Jani Taskinen 1f8638b1f1 bfn 2009-12-03 22:24:04 +00:00
Rob Richards 3fa1ea9731 fix bug #47848 (importNode doesn't preserve attribute namespaces)
add tests
2009-12-03 20:19:38 +00:00
Pierrick Charron e2efe4bc7b Fixed bug #45120 (PDOStatement->execute() returns true then false for same statement). 2009-12-03 15:24:43 +00:00
Felipe Pena 7914d298b4 - Fixed bug #49472 (Constants defined in Interfaces can be overridden) 2009-12-03 12:34:50 +00:00
Kalle Sommer Nielsen 1063c8346b MFT: VC10 build support 2009-12-03 11:50:32 +00:00
Andrey Hristov 0f0f5f229b I svn-commit.2.tmp (Modified) Row 2 Col 28 11:45 Ctrl-K H for help
fix compilation on windows and with other compilers who
don't like void* arithmetic
2009-12-03 10:50:02 +00:00
Pierre Joye 2386938aea - disable this debug code until it is actually fixed 2009-12-03 10:41:20 +00:00
Andrey Hristov bfc0ec1891 fix segfault introduced by Pierre in a recent commit
old code was doing something like
conn + sizeof(MYSQLND) * MYSQLND + plugin * sizeof(void) * sizeof(MYSQLND)
because `conn` is not casted to void*. `conn` has to be casted to void * and
then the whole experession will be void * and the calculations will work.
2009-12-03 09:43:26 +00:00
Jani Taskinen 28d53f8752 the order 2009-12-03 08:21:28 +00:00
Ilia Alshanetsky 6f3532a266 BFN 2009-12-03 00:11:58 +00:00
Gwynne Raskind ea03ad31b7 One change in trying to update Autoconf was missed. This makes phpize work again. 2009-12-02 17:42:58 +00:00
Jani Taskinen 572d0e32ef - Fix order 2009-12-02 12:09:06 +00:00
Andrey Hristov aead25f5f7 and the news 2009-12-02 11:59:24 +00:00
Andrey Hristov 2bc887e1d3 fix macro so that 5-byte BIT values are decoded correctly 2009-12-02 11:58:04 +00:00
Jani Taskinen 14c70e0959 - Fixed bug #50345 (nanosleep not detected properly on some solaris versions) 2009-12-02 08:54:50 +00:00
Jani Taskinen 4944354eec - Sync files 2009-12-02 08:22:05 +00:00
Rasmus Lerdorf 2bdd3538de Fix broken build.
This constant is not in older versions of MySQL.
2009-12-01 21:39:19 +00:00
Felipe Pena 9b8f2525aa - Fixed bug #49660 (libxml 2.7.3+ limits text nodes to 10MB). (Felipe)
- Added LIBXML_PARSEHUGE constant to overrides the maximum text size of a
  single text node when using libxml2.7.3+. (Kalle)
[DOC]
2009-12-01 02:05:28 +00:00
Jani Taskinen af3adf8504 - Touché filés 2009-11-30 22:39:59 +00:00
Jani Taskinen 19d320ea05 - Fixed bug #50340 (php.ini parser does not allow spaces in ini keys) 2009-11-30 22:38:32 +00:00
Gwynne Raskind b2cc8c69dc The old Darwin hack is BROKEN and INCORRECT. It works only for Darwin 9, not 10, and uses an ugly CFLAGS hack that messes with the entire build. This version sets one cached value to the correct result for Darwin 9 and 10. It's cleaner, has no side effects, has nothing to do with Autoconf versions, and works for everyone. 2009-11-30 21:38:44 +00:00
Jani Taskinen 50a24392e9 - Fix tests assuming wrong ini options and extensions that might not be there 2009-11-30 20:31:52 +00:00
Arnaud Le Blanc c9016a4383 news 2009-11-30 15:43:36 +00:00
Jani Taskinen 39f3ede145 bfn 2009-11-30 15:16:50 +00:00
Jani Taskinen c1aa547b18 - Fixed bug #50231 (Socket path passed using --with-mysql-sock is ignored when mysqlnd is enabled) 2009-11-30 15:11:29 +00:00
Dmitry Stogov b26c9d400d Fixed bug #50168 (FastCGI fails with wrong error on HEAD request to non-existant file) 2009-11-30 14:43:22 +00:00
Dmitry Stogov 2ad406e518 Fixed bug #50159 (wrong working directory in symlinked files) 2009-11-30 14:21:23 +00:00
Jani Taskinen d261e6f4a2 - Restore configure.in before the madness started 2009-11-30 14:08:33 +00:00
Arnaud Le Blanc 7c0803a8ca merge from trunk: openssl sni support (rev 289831) 2009-11-30 13:31:53 +00:00
Dmitry Stogov 832e181304 Reverted accidental change 2009-11-30 12:27:18 +00:00
Dmitry Stogov 5c56abb6e3 Fixed bug #50261 (Crash When Calling Parent Constructor with call_user_func()) 2009-11-30 11:39:53 +00:00
Pierre Joye 2a3ec70d10 - void is NaN, you can't do math ops on void. Declarations go first. Fix TS build 2009-11-30 10:56:01 +00:00
Pierre Joye 8109abba8b - MFH: vs2010 detection support, restore /W3 2009-11-30 09:52:33 +00:00
Jani Taskinen 16450418b1 - Revert bad patch 2009-11-30 08:31:32 +00:00
Gwynne Raskind 477649cd3f re-committing: unsetting LIBS and LDFLAGS just makes it impossible to specify LDFLAGS from the environment. keeping them doesn't seem to cause any trouble 2009-11-30 08:18:44 +00:00
Gwynne Raskind f275cd0815 once and for all remove the old broken Darwin hack, replace it with the new and much cleaner and simpler one 2009-11-30 08:17:13 +00:00
Jani Taskinen f1ffc9b2e8 - Revert bad patch 2009-11-29 18:08:38 +00:00
Stanislav Malyshev 8b64f74baa proper fix for bug #50006
add modify protection to all user array sorts
2009-11-29 08:35:01 +00:00
Rasmus Lerdorf 937358ebc7 Revert attempt at supporting both autoconf 2.13 and
modern versions in the same build chain.  There are
simply too many broken things in 2.13 to make it work.
Cache handling is broken as well which is why I need
to revert the pdo_inc_path cache fix as well.

trunk is now 2.60+ only and I'll work on cleaning out
all the legacy cruft from there.
2009-11-29 06:13:22 +00:00
Stanislav Malyshev 20ee379007 fix interrupt problem in serialize() 2009-11-29 04:38:46 +00:00
Rasmus Lerdorf deec59ab2c Last attempt to get this stuff right before punting it
and being stuck on 1996 autoconf for eternity
2009-11-29 03:32:54 +00:00
Rasmus Lerdorf 7cdd773081 More work on the autoconf 2.13->2.60+ transition code.
2.13 should be working again with one weird libtool issue
left to solve.  It doesn't seem directly related to this
stuff.
2009-11-28 23:06:54 +00:00
Gwynne Raskind 8d169e42de socket location needs to be checked before mysqlnd in order for --with-mysql-sock to work with mysqlnd 2009-11-28 21:11:39 +00:00
Gwynne Raskind 21a6e1f962 unsetting LIBS and LDFLAGS just makes it impossible to specify LDFLAGS from the environment. keeping them doesn't seem to cause any trouble 2009-11-28 19:48:38 +00:00
Gwynne Raskind d271615ba4 Remove the now-unnecessary (and wrong anyway) Darwin hack 2009-11-28 19:19:11 +00:00
Rasmus Lerdorf c9ab4df521 This macro needs to come after AC_INIT 2009-11-28 18:56:20 +00:00
Rasmus Lerdorf 6961cd023a Ok, new attempt. Require autoconf-2.60 in this branch.
This simplifies things quite a bit by entirely getting
rid of the m4 diversions which were messing things up.
Now we are using the built-in autoconf diversions the
way they were intended and the HELP output order is
preserved through the AC_PRESERVE_HELP_ORDER macro 
which was introduced in autoconf-2.59c

The next thing to clean up are the template warnings
and I want to get to the bottom of the cache warning
we generate as well.  Now that I fixed the _cv_ stuff, 
I am not sure that is still a valid warning.
2009-11-28 17:56:03 +00:00
Jani Taskinen c4d350632b - Use correct revision 2009-11-28 00:47:42 +00:00
Jani Taskinen 2e5546d71e - Fixed bug #50266 (conflicting types for llabs) 2009-11-28 00:38:05 +00:00
Jani Taskinen e8e213ca01 - No dots here 2009-11-28 00:35:56 +00:00
Jani Taskinen b55675e517 - Fix bad merge (Sorry Ilia..) 2009-11-28 00:06:54 +00:00
Rasmus Lerdorf befa23748a Fix bug #50315 2009-11-27 23:41:13 +00:00
Jani Taskinen 47a9c71dcc - Fixed bug #49935 (Deprecated warnings make "make test" to fail) 2009-11-27 23:34:36 +00:00
David Soria Parra 7957efe4d4 Use extended base if we build again gmp 4.2.0 which is usually available. 2009-11-27 22:24:44 +00:00
Jani Taskinen 9cfacabe55 - Re-fixed bug #47104 (Linking shared extensions fails with icc) 2009-11-27 12:50:29 +00:00
Jani Taskinen 2457e0bbc8 - Restore sanity in the NEWS. (duplicate, wrong order, etc..) 2009-11-27 09:20:43 +00:00
Ilia Alshanetsky eae259b7ea Fixe build 2009-11-27 03:02:01 +00:00
Andrey Hristov 1cf1cb3015 fix debug windows build as well as remove a compilation warning
(a header not included)
2009-11-26 11:10:47 +00:00
David Soria Parra 99c43e1b93 Also allow base 62 for gmp_init as requested in (#50283) 2009-11-25 23:38:34 +00:00
David Soria Parra 579a6e39de Really use 62 as the upper boundary as requested and not 32. 2009-11-25 18:15:25 +00:00
Ilia Alshanetsky 23f4da9113 Fixed bug #50195 (pg_copy_to() fails when table name contains schema). 2009-11-25 14:28:00 +00:00
Jani Taskinen bf7ed5eff5 - Fixed bug #49677 (ini parser crashes with apache2 and using ${something} ini variables) 2009-11-25 12:35:42 +00:00
Jani Taskinen afc44b981e ws 2009-11-25 12:26:10 +00:00
Jani Taskinen 2dddaac042 *sigh* 2009-11-25 07:48:43 +00:00
Pierre Joye 3d650105dd - merge NEWS from 5.3.1 2009-11-25 07:40:13 +00:00
Jani Taskinen 711e06d47e - Do not forget NEWS for 5.2.. 2009-11-25 07:21:38 +00:00
Rasmus Lerdorf b442bc3b79 The constructor generates that next line of output, so the expected
output had these 2 lines in the wrong order.  Test your tests!
2009-11-25 05:44:27 +00:00
Rasmus Lerdorf 4507292dfc And there is no 23,24,25 in this test at all. Perhaps these lines were
added to the wrong file by mistake?  Those were the same ones missing from
pdo_mysql___construct_options.phpt
2009-11-25 05:38:33 +00:00
Rasmus Lerdorf 04927191c7 Unless I am completely misreading this test case, these 3 lines at the
end should be in the expected output.
2009-11-25 05:29:57 +00:00
Rasmus Lerdorf 064a419827 Another test that doesn't work as root 2009-11-25 04:00:55 +00:00
Rasmus Lerdorf 978452be20 These tests don't work when run as root 2009-11-25 03:53:50 +00:00
Rasmus Lerdorf c072199d1e . 2009-11-25 02:42:03 +00:00
Felipe Pena 74d4059fb1 - Fixed bug #50285 (xmlrpc does not preserve keys in encoded indexed arrays) 2009-11-25 02:03:02 +00:00
Rasmus Lerdorf 58ae9eeb11 Missed a few - now it really works with autoconf-2.64+ 2009-11-25 01:36:41 +00:00
Rasmus Lerdorf 5a2b41a627 Someone strap down Jani and give him a sedative please.
This makes our toolchain work with the latest versions
of autoconf and avoids a lot of end-user grief.
2009-11-25 01:30:06 +00:00
Felipe Pena bb179ad150 - Fixed bug #50255 (isset() and empty() silently casts array to object) 2009-11-24 21:54:12 +00:00
Jani Taskinen 5c77b94e60 - Fix news 2009-11-24 14:14:13 +00:00
Andrey Hristov 4ebc0fdfbc Update charset table 2009-11-24 13:59:56 +00:00
Rasmus Lerdorf 99f469f707 Fix null deref found by Michael Maclean 2009-11-24 13:57:39 +00:00
David Soria Parra 18f32db810 Implement feature request #50283 (allow base in gmp_strval to use full range: 2 to 62, and -2 to -36) 2009-11-24 13:33:35 +00:00
Felipe Pena 2e35533fc6 - Fixed bug #50282 (xmlrpc_encode_request() changes object into array in calling function) 2009-11-24 11:32:31 +00:00
Jani Taskinen ebc1b9f13d Fixed bug #50267 (get_browser(null) does not use HTTP_USER_AGENT) 2009-11-24 00:18:16 +00:00
Felipe Pena a83156d5c1 - Added test for bug #50261 2009-11-23 23:07:07 +00:00
Jani Taskinen 5f8df17097 - Upgraded bundled libtool to 1.5.26 2009-11-23 21:53:30 +00:00
Olivier DOUCET db8c6d5dcf Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
Rasmus Lerdorf eab96b63ca Need the PCNTL extension loaded since that is where the SIGKILL constant comes from 2009-11-23 21:24:20 +00:00
Rasmus Lerdorf daf47a8519 This will only get a permission defined error if not running as root. 2009-11-23 21:13:26 +00:00
Rasmus Lerdorf 8af473e496 Don't try to remove an empty output_obj here.
This gets rid of the annoying:
rm: invalid argument: `'
I was seeing.
(I really shouldn't be hacking libtool)
2009-11-23 16:51:45 +00:00
Ilia Alshanetsky 755318926e Fixed bug #50240 (pdo_mysql.default_socket in php.ini shouldn't used if it is empty). 2009-11-23 15:45:04 +00:00
Rasmus Lerdorf f76c5282ae When Ilia fixed bug #49470 and removed the '/' as a valid
email char, he forgot to make the corresponding change in
filter test 033.
2009-11-23 14:54:57 +00:00
Rasmus Lerdorf c79d16d40b Pierre added certinfo to the curl info array, but that is
only available in newer versions of curl and this test
doesn't test for it.
2009-11-23 14:43:52 +00:00
Ilia Alshanetsky 0ebe3a7690 Extend the previously added large string concatenation validation 2009-11-23 04:12:36 +00:00
Jani Taskinen f395a2e34f - Fixed error_log() to be binary safe when using message_type 3 (message appended to file). 2009-11-22 18:31:01 +00:00
Pierre Joye 09cd363e35 - add tests dir 2009-11-22 12:33:14 +00:00
Felipe Pena f1d5433959 - Fixed bug #50258 (typos in error strings) 2009-11-21 19:43:00 +00:00
Brian Shire 0639396ac1 MFH: Fix phar regex test when '.php' is part of the path, instead be more specific with '.php$' regex. 2009-11-21 05:40:16 +00:00
Pierrick Charron 84ab9cd30e Fixed bug #50219 (soap call Segmentation fault on a redirected url). 2009-11-21 01:22:32 +00:00
Christopher Jones e53f363548 Mention account access so we can refer account-requestors to this README 2009-11-20 21:52:02 +00:00
Ilia Alshanetsky 51c17c413c Don't ignore the 2nd parameter to PDO's quote() method that identifies the data type 2009-11-20 18:54:08 +00:00
Andrey Hristov 5143fe41e2 Compressed protocol support + extensibility for mysqlnd 2009-11-20 08:12:14 +00:00
Christopher Jones 4e010297f1 New test 2009-11-19 17:44:46 +00:00
Christopher Jones ebb7a0d077 Refactor test 2009-11-19 16:49:58 +00:00
Ilia Alshanetsky 63e4efe784 Fixed bug #50207 (segmentation fault when concatenating very large strings
on 64bit linux).
2009-11-19 14:04:34 +00:00
Jani Taskinen a1269238fe - Fix news 2009-11-18 17:59:18 +00:00
Jani Taskinen 9a12e9a1f9 - Fixed "make test" in phpize builds when ini file(s) contain extension directives 2009-11-18 17:52:22 +00:00
Jani Taskinen b741b026a1 - Fixed bug #50185 (ldap_get_entries() return false instead of an empty array when there is no error).
# This is also revert of bad patch to bug #48469 and fixes it properly.
2009-11-18 17:44:58 +00:00
Ilia Alshanetsky b7bb8aa545 Fixed bug #50212 (crash by ldap_get_option() with LDAP_OPT_NETWORK_TIMEOUT). 2009-11-18 13:37:45 +00:00
Uwe Schindler bdef3ee350 Fix bug #50140: With default compilation option, php symbols are unresolved for nsapi 2009-11-17 21:17:49 +00:00
Rasmus Lerdorf 0ab68199d4 News entry for post_max_size fix 2009-11-17 20:41:47 +00:00
Rasmus Lerdorf 2e9c3ed919 Make it possible to disable post_max_size 2009-11-17 20:33:51 +00:00
Felipe Pena 5dd6b9ffa9 - Fixed bug #50145 (crash while running bug35634.phpt) 2009-11-17 11:18:40 +00:00
Felipe Pena c8faf7e13b - Added CG(encoding_declared) initialization 2009-11-16 22:52:00 +00:00
Derick Rethans 171f72061d - Updated to version 2009.19 (2009s) 2009-11-16 15:57:13 +00:00
Ilia Alshanetsky 2e13e89bd1 Simpify the max_file_uploads handling code 2009-11-16 13:34:57 +00:00
Felipe Pena f61a06350a - Switching to TSRMLS_FETCH version 2009-11-16 10:36:27 +00:00
Felipe Pena 5411bb32a8 - Fixed bug #49936 (crash with ftp stream in php_stream_context_get_option())
(patch by Pierrick)
2009-11-15 20:30:57 +00:00
Felipe Pena 64f530d182 - Improve test 2009-11-15 17:05:48 +00:00
Felipe Pena 8b456901f5 - Fixed bug #50158 (FILTER_VALIDATE_EMAIL fails with valid addresses containing = or ?).
(Patch by Pierrick)
2009-11-15 16:53:40 +00:00
Felipe Pena 4bafbf58f8 - Fixed bug #49521 (PDO fetchObject sets values before calling constructor)
(patch by Pierrick)
2009-11-15 16:20:37 +00:00
Jani Taskinen 3a9f74967d - Nuke ws 2009-11-15 00:31:42 +00:00
Rasmus Lerdorf 4e6b9899a5 Fix bug #49868
As far as I can tell this was a copy-paste induced bug when I added
the reset_signals flag to zend_set_timeout.
2009-11-15 00:21:31 +00:00
Jani Taskinen f1cf3fb185 - Temporary hack to fix bug #49816 (works fine in HEAD which has working output buffering..) 2009-11-15 00:13:19 +00:00
Christopher Jones 5fc8120bd6 New test 2009-11-14 23:28:53 +00:00
Felipe Pena fa2bb07a47 - Fixed bug #50174 (Incorrectly matched docComment) 2009-11-14 19:17:22 +00:00
Greg Beaver d7f50ac2c4 fix PHP Bug #49938: Phar::isBuffering() returns inverted value 2009-11-13 00:58:11 +00:00
Greg Beaver 2c248d1b50 fix completely random ordering of bugs in NEWS (what happened here?) 2009-11-13 00:41:37 +00:00
David Coallier 10ca1684cf - MFH: Added test for bug 49910 for phar 2009-11-12 17:47:17 +00:00
Christopher Jones c95b8ab1df Add auroraeos's article URL. Add IRC channels 2009-11-12 17:36:37 +00:00
Uwe Schindler d80507b7d9 As I am working on it, further improvement for bug #50087 2009-11-12 17:13:05 +00:00
Uwe Schindler 47189cac7b Fix bug #50087: NSAPI performance improvements 2009-11-12 15:19:35 +00:00
Johannes Schlüter 473d75475a Fix #50063 (safe_mode_include_dir fails) 2009-11-12 15:05:03 +00:00
Jani Taskinen a12240f5c7 bfn 2009-11-12 09:07:51 +00:00
Rasmus Lerdorf 4ce641d759 NEWS entries for mysqli crash fix bug 2009-11-12 08:26:43 +00:00
Rasmus Lerdorf c6502213b4 Fix bug #49098 2009-11-12 01:09:16 +00:00
Felipe Pena 48b6597dd3 - Fix typo 2009-11-12 00:44:43 +00:00
Felipe Pena 8f0a451747 - Fixed bug #50005 (Throwing through Reflection modified Exception object makes segmentation fault) 2009-11-12 00:10:00 +00:00
Greg Beaver 01d9f2c9ce fix PHP Bug #49910: no support for ././@LongLink for long filenames in phar tar support 2009-11-11 21:02:59 +00:00
Christopher Jones 9933df614a Sigh. Fix grammar of title 2009-11-11 19:44:53 +00:00
Felipe Pena dcf91e6266 - Fixed bug #50146 (property_exists: Closure object cannot have properties) 2009-11-11 18:59:37 +00:00
Felipe Pena eea23b2794 - Fixed bug #50152 (ReflectionClass::hasProperty hehaves like isset() not property_exists)
[5_2 is OK]
2009-11-11 18:52:12 +00:00
Ilia Alshanetsky 34bd384898 typo fix 2009-11-11 13:49:21 +00:00
Christopher Jones d91f464e00 Add test for long fixed bug 2009-11-10 22:48:37 +00:00
Rasmus Lerdorf 315b9956b6 Fix bug #50129 2009-11-09 17:21:15 +00:00
Jani Taskinen 91cc127ce4 - Fix bad section names (extra - in the end..) 2009-11-09 17:08:48 +00:00
Derick Rethans 983e02ffb2 - Updated to version 2009.18 (2009r) 2009-11-09 15:39:15 +00:00
Rasmus Lerdorf 95a522a72c Fix bug #50124 2009-11-09 15:13:07 +00:00
Ilia Alshanetsky 6585a5af32 Upgraded bundled sqlite to version 3.6.20 2009-11-09 01:54:23 +00:00
Rasmus Lerdorf 188f1abfd4 Fix bug #50115 2009-11-08 15:18:10 +00:00
Felipe Pena 99497dea70 - Added SKIPIF 2009-11-08 15:02:54 +00:00
Felipe Pena 8f11dc62d5 - Fixed bug #50090 (Typo in IteratorIterator constructor) 2009-11-07 21:27:15 +00:00
Scott MacVicar 065167bdae Fix a typo 2009-11-06 09:02:52 +00:00
Christopher Jones 8883a631b9 Add pecl mail list 2009-11-06 02:09:47 +00:00
Christopher Jones f634f06f8d Update and fix grammar 2009-11-05 23:03:28 +00:00
andy wharmby 203da56982 Fix tests 2009-11-05 22:44:02 +00:00
Ilia Alshanetsky 9d095a6011 Make sure that max_file_uploads is set to 20 by-default in all places 2009-11-05 13:29:34 +00:00
Ulf Wendel d7f1cfe6a4 Fixing test: of course, libmysql won't care about open_basedir, but mysqlnd should 2009-11-05 12:14:08 +00:00
Ulf Wendel ea3ef35f19 Fixing test: it didn't do a select_db and gave a false-positive with libmysql 2009-11-05 11:51:21 +00:00
Jani Taskinen c4b9737695 - Missing entry 2009-11-05 11:33:32 +00:00
Dmitry Stogov cf4dc24743 Avoid invoking setitimer when timeouts have been disabled (Arvind Srinivasan) 2009-11-05 10:38:56 +00:00
Dmitry Stogov 10b30b51bc Fixed unnecessary invokation of setitimer when timeouts have been disabled (Arvind Srinivasan) 2009-11-05 09:33:19 +00:00
Matteo Beccati fa67c860e0 - Properly fixed bug #49985 (pdo_pgsql prepare() re-use previous aborted transaction).
# Removed usage of the memory address when generating prepared statemend names
# as uniqueness can't be enforced. Used a statment counter instead.
2009-11-04 19:32:27 +00:00
Matteo Beccati e6f4503f29 - Reverting previous fix for bug #49985
# Unmerged changes from revision 289924
2009-11-04 19:16:39 +00:00
Ulf Wendel 5ed0015f62 mysqli won't accept empty string for socket, skip test of mysqli.default_socket if test run does not use socket 2009-11-04 16:56:32 +00:00
Ulf Wendel 5ce96c2b3b Skipping if MySQL old password algorithm is in use as it seems to be the case on gcov.php.net 2009-11-04 16:09:07 +00:00
Ilia Alshanetsky 41611fd003 Fixed bug #50073 (parse_url() incorrect when ? in fragment). 2009-11-04 13:44:10 +00:00
Ulf Wendel 973d7badd5 Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
Guenter Knauf 04448f215b added timezone define for NetWare. 2009-11-03 21:26:39 +00:00
Guenter Knauf 824692fab8 removed now obsolete NetWare hack since I fixed this
with Novell some longer time ago in their SDK header.
2009-11-03 21:21:34 +00:00
Ulf Wendel 4a95aa3989 Fix for bug #49965 . Let mysqli_options() try to cast option values to the appropriate type. 2009-11-03 14:56:04 +00:00
Scott MacVicar e048c24d27 BFN 2009-11-03 12:23:54 +00:00
Scott MacVicar f03b175f7c Update PCRE to 8.00 2009-11-03 12:15:03 +00:00
Pierre Joye 26e3082abc - fix lenght for alloc and cpy (Kanwal) 2009-11-03 10:48:12 +00:00
Pierre Joye 826ca288e7 - Fixed #50052, Different Hashes on Windows and Linux on wrong Salt size 2009-11-02 20:46:52 +00:00
Felipe Pena 574b0882a1 - Fixed bug #49244 (Floating point NaN cause garbage characters). (patch by Sjoerd) 2009-11-02 17:37:32 +00:00
Derick Rethans ca8f7d9467 - Updated to version 2009.17 (2009q) 2009-11-02 16:12:20 +00:00
Ilia Alshanetsky 03ddb4f2b5 Fixed compiler warnings 2009-11-02 13:33:24 +00:00
Felipe Pena 779ce8fd00 - Fixed bug #49908 (throwing exception in __autoload crashes when interface is not defined) 2009-11-01 21:26:03 +00:00
Felipe Pena be32cb2268 - Fixed bug #50006 (Segfault caused by uksort()) [5_2 only] 2009-11-01 17:30:55 +00:00
Felipe Pena 8e91d46481 - Fixed bug #49719 (ReflectionClass::hasProperty returns true for a private property in base class) 2009-11-01 15:12:34 +00:00
Takeshi Abe 94cb01177a Fixed a possible memory leak in case that FT_Glyph_To_Bitmap() fails 2009-11-01 05:04:35 +00:00
Stanislav Malyshev f7420d58da report collator_get_sort_key 2009-10-30 17:27:55 +00:00
Kalle Sommer Nielsen df0252a399 Set WINVER to Windows 2000 like in config.w32.h.in 2009-10-30 14:20:15 +00:00
Ilia Alshanetsky 1e50b1892a Fixed bug #50023 (pdo_mysql doesn't use PHP_MYSQL_UNIX_SOCK_ADDR)
# Original patch by six at aegis-corp dot org
2009-10-29 13:33:51 +00:00
Ilia Alshanetsky 8dae9275fc Lower the max upload default to 20 2009-10-28 13:04:42 +00:00
Stanislav Malyshev af0bfc8859 fix version 2009-10-27 23:21:00 +00:00
Jani Taskinen 1376b76e8c - You add, remove, fix or implement. Introduce yourself to someone else. 2009-10-27 22:15:19 +00:00
Felipe Pena 8ce58b2490 - Fixed bug #50018 (Typo in spl_limit_it_seek()) 2009-10-27 21:57:26 +00:00
Felipe Pena 361d6789f1 - Fixed memory leak in openssl_pkcs12_export_to_file() 2009-10-27 21:37:03 +00:00
Pierre Joye 1431ba235b - Fixed crash in com_print_typeinfo when an invalid typelib is given 2009-10-27 19:16:55 +00:00
Ilia Alshanetsky e2211cee86 Introduced a max_file_uploads INI setting, which is set to limit the
number of file uploads per-request to 100 by default, to prevent possible
DOS via temporary file exhaustion.
2009-10-27 16:13:48 +00:00
David Soria Parra e8359d3f90 - Fixed bug #49142 (crash when exception thrown from __tostring()) 2009-10-27 13:02:36 +00:00
Pierre Joye 89fec084f1 - #48752, crash during date parsing with invalid date 2009-10-27 10:41:45 +00:00
Stanislav Malyshev f22ef52836 add test 2009-10-26 22:37:26 +00:00
Stanislav Malyshev 65c1421f3f add collator_get_sort_key() 2009-10-26 22:35:48 +00:00
Derick Rethans 8b2735632e - Updated to version 2009.16 (2009p) 2009-10-26 14:09:23 +00:00
Ilia Alshanetsky ff5a2ce931 Fixed bug #49921 (Curl post upload functions changed). 2009-10-26 12:57:01 +00:00
Ulf Wendel 58f7c5f578 Updating test - no error message any more. Maybe the PDO core has changed... whatever, one issue less 2009-10-26 11:48:47 +00:00
Ulf Wendel ee36281037 Updating test, mysqlnd support init commands 2009-10-26 11:41:30 +00:00
Ilia Alshanetsky 42626ae6fa - Fixed bug #49985 (pdo_pgsql prepare() re-use previous aborted transaction). 2009-10-26 02:02:28 +00:00
Jani Taskinen 70e8b40fc7 - Fixed bug #49990 (SNMP3 warning message about security level printed twice). 2009-10-25 20:17:04 +00:00
Pierre Joye bcf7db5f92 - #49986, fix ICU DLLs path 2009-10-24 19:52:23 +00:00
Johannes Schlüter 0a8fc25b7d Fix #49972 (AppendIterator undefined function crash) 2009-10-23 16:47:35 +00:00
Ulf Wendel 08db32e073 Fix: log slow queries in stats regardless of mysqlnd.log_mask setting. 2009-10-23 12:44:05 +00:00
Ilia Alshanetsky 855e8802bb Fixed test 2009-10-22 19:39:08 +00:00
Andrey Hristov 7b5ce9ab49 Don't forget to update the length too 2009-10-22 17:36:12 +00:00
Andrey Hristov f2814dd0df Have the lengths also to skip many calls to strlen 2009-10-22 17:07:55 +00:00
Ulf Wendel 629d8fe47e Updating mysqlnd version number. 2009-10-22 16:10:02 +00:00
Ulf Wendel 00654b8a06 Fixing stats, updating test to accept new stats 2009-10-22 16:05:33 +00:00
Andrey Hristov 1aad525c6e Move definition 2009-10-22 15:17:03 +00:00
Andrey Hristov a692479d21 Count number of affected_rows for normal and PS queries 2009-10-22 14:30:51 +00:00
Ulf Wendel d356459971 There subtle differences between Linux and Win. mysqlnd is a bit more verbose on Win... silencing to make the test pass 2009-10-21 18:57:45 +00:00
Pierre Joye 26270b4fd7 - fix leak in DL on error (windows) 2009-10-21 06:42:08 +00:00
Ulf Wendel 8df115c25e Making test a bit more portable 2009-10-20 17:54:57 +00:00
Ulf Wendel 03c3c1edb3 Fixing test 2009-10-20 17:03:32 +00:00
Ulf Wendel 3258a6572d libmysql is still 'buggy' - skip test with libmysql 2009-10-20 14:11:43 +00:00
Ulf Wendel 3fb67347ea Well, hacking around to cope with mysql version specific behaviour if using libmysql... 2009-10-20 13:58:57 +00:00
Antony Dovgal f298e6ce6e fix crash on empty doc_root 2009-10-20 12:57:44 +00:00
Ulf Wendel 87a4f09cbf Skipping tests if InnoDB is available but disabled. I wonder what InnoDB status comes next... 2009-10-20 12:41:58 +00:00
Ulf Wendel 57c1b63c2d Fixing typo in SKIPIF and partly skipping tests if using remote MySQL because LOAD LOCAL INFILE will fail 2009-10-20 12:31:04 +00:00
Ulf Wendel 0efa2445ad Making test pass when MySQL runs on Win* 2009-10-20 08:41:11 +00:00
Ulf Wendel 9bb4db8781 Bail if connect.inc gets included twice. Including twice is most likely a 'bug'. See also http://news.php.net/php.cvs/60720 2009-10-20 08:23:06 +00:00
Pierre Joye 5e0f3731ac - MFH: fix realloc usage 2009-10-19 23:41:14 +00:00
Pierre Joye 0304ec7900 - Fix ACL support and add support for ACL for TS SAPI. Be sure to get the impersonated token when the impersonation has been done. Add the SID as part of the key for the cache (so each SID gets its cache and not previous requests run under other SID) 2009-10-19 23:32:07 +00:00
Johannes Schlüter f5a5d321ed Fix test to remove temporary files 2009-10-19 21:50:08 +00:00
Johannes Schlüter 4a8de304e2 Merge #289581 (Fixed PDORow and PDOStatement crashes when instantiating throught
Reflection (Felipe)
2009-10-19 21:43:34 +00:00
Johannes Schlüter 8dcb351345 Merge NEWS for merged stuff from PHP_5_3 to PHP_5_3_1 2009-10-19 21:16:07 +00:00
Ulf Wendel eb0e09f5dc Using require[_once] instead of include. Adding logic to connect.inc to detect multiple inclusions of connect.inc which leads to a Fatal error because of my_mysqli_connect() function redefinition. Some tests did include connect.inc twice -> run-tests - even the one from trunk - did not detect Fatal error in SKIPIF -> false-positive test result... 2009-10-19 20:07:25 +00:00
Pierre Joye 3766730f3c - we don't distribute the crt9 dll, don't try to add it 2009-10-19 19:58:45 +00:00
Pierre Joye 97595a14a5 - add custom DLL to the package and fix the path to the deps bin (needs absolute path in some cases) 2009-10-19 19:02:12 +00:00
Derick Rethans afaa4ed8ad - Updated to version 2009.15 (2009o) 2009-10-19 16:29:13 +00:00
Ulf Wendel 344d6803ec mysqlnd is a bit more verbose than libmysql - silence mysqlnd here for easier comparison of test results. 2009-10-19 16:07:10 +00:00
Jani Taskinen fc4352e2d8 - It is not const in PHP_5_2 but it is in HEAD and PHP_5_3 2009-10-19 15:34:50 +00:00
Ulf Wendel f610cdd9a2 MySQL server and metadata - a sad story... trying to make the test pass with a few more server versions 2009-10-19 12:55:11 +00:00
Jani Taskinen 21d12bc17e fn 2009-10-19 12:37:17 +00:00
Ulf Wendel d01d398bad Fixing host info for TCP/IP and aligning mysqlnd and libmysql 2009-10-19 12:09:48 +00:00
Stanislav Malyshev a226082475 improve fix for #49767 and #47627 - make PHP report
"no script" on 404 again
2009-10-16 23:34:31 +00:00
Ulf Wendel 3eeaf566e0 Extending mysqlnd statistics/monitoring. Now counting COM_* commands. 2009-10-16 13:02:01 +00:00
Nuno Lopes 4750dc35de ignore php_mysqlnd_config.h file 2009-10-16 10:51:29 +00:00
Scott MacVicar cd5e3b1632 Add metadata support to the bundled version of libsqlite on Windows, part of bug #49206.
Will commit the new feature part separately.
2009-10-16 02:22:48 +00:00
Scott MacVicar 76d875278c Part fix for bug #49224 2009-10-16 02:10:52 +00:00
Scott MacVicar 5af006d640 Update libsqlite to 3.6.19 2009-10-16 01:56:36 +00:00
Ulf Wendel d8dc47d58f Making mysqlnd emit no warnings when fetching pooled persistent connections that have timed out or are unusable for any other reason - bug #49761 2009-10-15 20:46:08 +00:00
Ulf Wendel ab4670ee53 Fixing problems when calling connect (again and again) on a valid connection handle. Most of the patch comes from Andrey. 2009-10-15 15:49:40 +00:00
Pierre Joye e4adfe4f61 - #48779, fix another use case where / usage may differ 2009-10-15 13:09:25 +00:00
Ilia Alshanetsky ef1731590a Fixed bug #49855 (import_request_variables() always returns NULL). 2009-10-15 12:26:54 +00:00
Ilia Alshanetsky 31729738c7 Fixed bug #49847 (exec() fails to return data inside 2nd parameter, given output lines >4095 bytes). 2009-10-14 01:32:07 +00:00
Stanislav Malyshev 0e38a3d303 oops, that doesn't belong to this patch 2009-10-13 20:54:28 +00:00
Stanislav Malyshev dd15b8810c add safeguard for UpdateIniFromRegistry on NULL arg 2009-10-13 20:10:07 +00:00
Stanislav Malyshev 207e75b2cd fix crash for bug #47627 2009-10-13 19:58:59 +00:00
Derick Rethans 5c9ac94eab - Updated to version 2009.14 (2009n) 2009-10-13 08:16:35 +00:00
Moriyoshi Koizumi 20737bac6a - Bug #49785: take 5. What the hell happened to me... 2009-10-13 05:18:37 +00:00
Felipe Pena 5d34329dab - BFN 2009-10-12 19:23:07 +00:00
Felipe Pena 16be0343d7 - Fixed possible crash when calling SQLiteDatabase::{ArrayQuery, SingleQuery} methods using Reflection 2009-10-12 19:04:00 +00:00
Felipe Pena b394a75ad5 - Fixed PDORow and PDOStatement crashes when instantiating throught Reflection 2009-10-12 17:09:11 +00:00
Pierre Joye e5d4b019b9 - #48779, improve fix, drop usage of _tolower and use zend_strtolower 2009-10-12 14:40:27 +00:00
Moriyoshi Koizumi 884cf3f1c0 - Bug #49785: take 4 - typo. this flaw is unharmful since the return value of get_next_char() is only used when UTF-8 is specified to the third argument. 2009-10-12 14:29:45 +00:00
Pierre Joye ed3e96197d - check max colors while loading gd2 palette image (patch by Tomas Hoger) 2009-10-12 10:01:37 +00:00
Moriyoshi Koizumi 1835a63dfd - A couple more fix for my previous fix.
(one of the fix by Arnaud Le Blanc. Thanks!)
2009-10-11 23:52:33 +00:00
Pierre Joye 112379ba24 - fix possible issue in TS environment (we don't have to do that anymore anyway in 5.3+) 2009-10-11 21:04:35 +00:00
Pierre Joye 4d63bd1132 - #48779, don't loop twice over the path chars 2009-10-11 20:50:53 +00:00
Felipe Pena 8952155898 - Fix compiler warning 2009-10-11 15:23:09 +00:00
Felipe Pena 994307d429 - Fixed build and comment-style 2009-10-09 20:01:16 +00:00
Garrett Serack 8e5a00e546 - changed ini file directives [PATH=](on Win32) and [HOST=](on all) to be case insensitive (garretts) 2009-10-09 19:43:00 +00:00
Moriyoshi Koizumi 8a22597b65 - More tests to go. 2009-10-09 17:13:05 +00:00
Moriyoshi Koizumi 9d19866476 - Fixed bug #49785 (insufficient input string validation of htmlspecialchars()). 2009-10-09 10:02:38 +00:00
Pierre Joye f88c96a7f3 - missing define 2009-10-08 20:59:50 +00:00
Pierre Joye 878ba27e60 - typo 2009-10-08 20:40:48 +00:00
Pierre Joye 02a046b1d9 - [DOC] add enchant_broket_set_dict_path and enchant_broker_get_dict_path
- add constants ENCHANT_MYSPELL and ENCHANT_ISPELL
2009-10-08 20:28:21 +00:00
Ulf Wendel a1d3a3224e Avoid buffer resizing and let the initial buffer allocation happen a couple of lines later with conn->m->set_client_option(conn, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, ...). Andrey, I leave it to you to change the default size to 128k. 2009-10-08 16:33:17 +00:00
Jani Taskinen b2ff362a5c - Fixed bug #49809 (time_sleep_until is not available on solaris) 2009-10-08 14:21:53 +00:00
Ulf Wendel 4e6a1c2754 Fixing pconnect statistics. 2009-10-08 11:40:16 +00:00
Matteo Beccati 9ee8dd90a3 - Fixed bug #48764 (PDO_pgsql::query always uses implicit prepared statements if v3 proto available)
# original patch by Mark Kirkwood
2009-10-07 17:40:16 +00:00
Andrey Hristov 309fced64d Increase the minimal size of the command buffer, which is used
for sending queries and in the future commpressed patch for reading
almost all packets from the wire instead of using stack buffers.
2009-10-07 17:33:51 +00:00
Ilia Alshanetsky b6b56ba87a Fixed bug #49800 (SimpleXML allow (un)serialize() calls without warning).
# original patch by wmeler at wp-sa dot pl
2009-10-07 12:46:29 +00:00
Christopher Jones 264d6db5a6 bump ver 2009-10-06 23:21:11 +00:00
Christopher Jones 2769ae0444 1. Introduce connection attribute functions:
oci_set_module_name
         oci_set_action
         oci_set_client_info
         oci_set_client_identifier
      
       These functions set values that are visible and used by the
       database.  They aid tracing, authentication and auditing.

    2. Introduce connection attribute function:

         oci_set_edition

       Oracle 11g R2 "editions" allow multiple versions of DB objects
       to exist at one time.  By setting different editions, two
       different versions of an application can run concurrently,
       making upgrades or A/B testing easier.

    3. Introduce OCI_NO_AUTO_COMMIT as an alias for the OCI_DEFAULT
       constant (which is not the default value) used by oci_execute().

    4. Allow the oci_set_prefetch value to be 0.  This is important in
       some cases using REF CURSORS in Oracle 11gR2.

    5. Set the DRIVER_NAME attribute of Oracle Database 11gR2
       connections to aid application tracing.  The value used is to
       "PHP OCI8" followed by the OCI8 version number.  Note the
       version number may get truncated in DB views such as
       v$session_connect_info.

    6. Generate an error if an invalid resource type is used in
       oci_bind_by_name

[DOC] Documentation will be added for the changes
2009-10-06 22:36:32 +00:00
Etienne Kneuss ef2b799a28 Fix bug #49263 (Offset error when unserializing self-references in SplObjectStorage) 2009-10-06 13:34:56 +00:00
Andrey Hristov 06523621dd revert the last change 2009-10-06 12:53:01 +00:00
Andrey Hristov d9382399fc count the queries 2009-10-06 10:33:23 +00:00
Jani Taskinen d7b5703eab pff 2009-10-06 10:00:53 +00:00
Christopher Jones 76b321c350 Fix odd little diff in some environments. No need for trunk merge 2009-10-05 22:57:48 +00:00
Christopher Jones 7c7cc5d785 Fix diff when full connection string used. Clean up helper files 2009-10-05 22:51:21 +00:00
Ilia Alshanetsky a3430a6b24 Fixed bug #49757 (long2ip() can return wrong value in a multi-threaded applications).
# original patch by Florian Anderiasch
2009-10-05 14:45:54 +00:00
Dmitry Stogov ffb07732f7 Fixed bug #49627 (error_log to specified file does not log time according to date.timezone) 2009-10-05 13:56:49 +00:00
Felipe Pena 8172c388b0 - Fix some arginfos (thanks Philip)
- Added arginfo info. for void params
2009-10-03 20:45:29 +00:00
Pierre Joye f86cde26fb - drop unused var and fix example 2009-10-03 10:19:06 +00:00
Christopher Jones 2d64d1ff72 Oracle 11.2 (and beyond) compat changes 2009-10-02 22:39:28 +00:00
Christopher Jones de0592a3a3 refactor tests 2009-10-02 20:16:59 +00:00
Christopher Jones 460a4ceaff Fix skipifs to accept Oracle 11.2 2009-10-02 04:19:48 +00:00
Sriram Natarajan 0f57b15e23 - Fixed bug #49738 (calling mcrypt after mcrypt_generic_deinit crashes). 2009-10-02 00:13:53 +00:00
Jani Taskinen a71da78442 pff, no idea what is merged where by who and when and wtf.. 2009-10-01 15:55:05 +00:00
Christopher Jones 9d48ec4f51 Add PECL bug #16842 2009-10-01 14:56:53 +00:00
Pierre Joye e0b392f028 - fix #49732, fix crash when timestamp conversion fails 2009-10-01 13:55:16 +00:00
Ulf Wendel 5cb8e9b22a Updating test because of http://news.php.net/php.cvs/60561 2009-10-01 08:56:28 +00:00
Christopher Jones 8f65525ce6 Add xmltype_02.phpt. Add XFAIL to xmltype_01 for PHP 6 2009-10-01 06:22:32 +00:00
Christopher Jones 8fca6e46eb Eliminate type warnings. This change is not needed in other branches 2009-10-01 06:06:41 +00:00
Christopher Jones 609804cd44 PECL Bug #16842 (oci_error return false when NO_DATA_FOUND is raised) 2009-10-01 05:51:11 +00:00
Andrey Hristov 2f81bcd44b Fix ZTS build 2009-09-30 23:34:56 +00:00
Andrey Hristov ba5c40b2ad Use mnd_ wrappers wherever possible. Needed for
statistics.
2009-09-30 23:13:43 +00:00
Andrey Hristov b9dcc28c24 Fix trace output. DBG_RETURN should be used in traced
functions.
2009-09-30 22:26:19 +00:00
Ilia Alshanetsky d35c2b14dd Fixed bug #48805 (IPv6 socket transport is not working). 2009-09-30 20:48:41 +00:00
Ulf Wendel 9408303390 Fixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd. 2009-09-30 14:39:33 +00:00
Dmitry Stogov 7a535b807c pcntl_exec() should inherit environment in case it's not provided as an argument 2009-09-30 13:04:28 +00:00
Pierre Joye a4cbecd20c - restore W3 flag to get usefull errors (unused vars, etc.) 2009-09-30 11:53:29 +00:00
Ilia Alshanetsky 809dbcda08 Fixed bug #49517 (cURL's CURLOPT_FILE prevents file from being deleted after fclose). 2009-09-30 02:34:17 +00:00
Ulf Wendel e56e60c3a0 Fixing test 2009-09-29 16:37:50 +00:00
Rafael Machado Dohms e91fffb24a Fixing tests for head and wrong SKIPIF blocks 2009-09-29 14:34:06 +00:00
Rasmus Lerdorf 80bdbc8f66 Fixed a safe_mode bypass in tempnam() identified by Grzegorz Stachowiak. 2009-09-29 14:14:02 +00:00
Rasmus Lerdorf 8c15aa2314 Add missing open_basedir check in posix_mkfifo 2009-09-29 14:02:50 +00:00
Rasmus Lerdorf 99f30c1b6a Fix date_sunrise/date_sunset tests 2009-09-29 13:56:51 +00:00
Rafael Machado Dohms 9ba46557e9 Adding tests for bug #49692 2009-09-28 22:57:41 +00:00
Kalle Sommer Nielsen 94b320b268 NEWS for Rasmus' bug fix 2009-09-28 15:07:37 +00:00
Rasmus Lerdorf b3de24c9b8 Fix for bug #49698 2009-09-28 13:29:53 +00:00
Ulf Wendel 91315a9307 Fixing test 2009-09-28 10:42:36 +00:00
Ulf Wendel fbfd13310b Allow setting of default connection flags through the environment variable MYSQL_TEST_CONNECT_FLAGS 2009-09-28 10:39:42 +00:00
Ilia Alshanetsky 5edef9d2dd Fixed test 2009-09-28 03:14:46 +00:00
Felipe Pena b6a1b37889 - Fixed tests 2009-09-26 17:59:33 +00:00
Felipe Pena 5132913dd3 - Fixed tests 2009-09-26 16:54:08 +00:00
Rasmus Lerdorf 5afa8a23bb Refix bug #49558 as per bug #49676 2009-09-26 00:53:59 +00:00
Ulf Wendel 8621a06eed Trying to respect time limit to please Andrey who must be using slooow hardware... 2009-09-25 13:21:44 +00:00
Andrey Hristov 3828ca158e 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 5d3152b181 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 bd69506171 Large package to check how compression handles package queues. 2009-09-25 10:56:17 +00:00
Andrey Hristov 9b44cbb490 Remove unused variable 2009-09-25 10:55:06 +00:00
Ulf Wendel a5e4c6f795 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 eea0660def 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 80f629ed9f Fix possible crash when conn is NULL 2009-09-25 10:37:44 +00:00
Felipe Pena 22876972a5 - Fix test 2009-09-25 02:07:41 +00:00
Felipe Pena 20c5df8cce - Fixed mem leak 2009-09-25 01:46:58 +00:00
Jani Taskinen 4a95cb8938 fn 2009-09-24 22:40:15 +00:00
Ilia Alshanetsky eb2d54822b Make tempnam() return FALSE on error as documented 2009-09-24 18:59:28 +00:00
Sriram Natarajan 92c08b1224 - Fixed bug #49571 (CURLOPT_POSTREDIR not implemented). 2009-09-24 18:20:49 +00:00
Jani Taskinen 2c90fb8ea2 - 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 c3d66dbfed Fixed bug #49647 (DOMUserData does not exist) 2009-09-24 13:18:22 +00:00
Ulf Wendel c01b505a44 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 9b923dd6ce fix memleak 2009-09-24 12:40:59 +00:00
Antony Dovgal 5e810ee5e4 save LDFLAGS in EXTRA_LDFLAGS before unsetting
this patch makes sure that LDFLAGS are taken into account when
configuring the build
2009-09-24 10:43:13 +00:00
Ulf Wendel 7b50b0794d Fixing test 2009-09-24 09:40:24 +00:00
Ulf Wendel 057a62fc52 Coverage for the OO variants of some functions 2009-09-24 08:19:56 +00:00
Ilia Alshanetsky 7eeff10cc0 Fixed unused var 2009-09-23 23:14:17 +00:00
Moriyoshi Koizumi 0c974164e2 - 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 4b1c7c5615 Fixed ext/standard/tests/streams/stream_get_contents_002.phpt 2009-09-23 10:25:54 +00:00
Dmitry Stogov 6f32199f75 Fixed compilation error 2009-09-23 08:33:23 +00:00
Felipe Pena 788031f093 - Fixed bug #49531 (CURLOPT_INFILESIZE sometimes causes warning "CURLPROTO_FILE cannot be set ...") 2009-09-23 02:08:19 +00:00
Ilia Alshanetsky 420a3abc6a Fixed compiler warning 2009-09-23 00:18:32 +00:00
Felipe Pena 5596b05449 - 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 381ebe751b mysqlnd supports INIT_COMMAND and so we can add it to PDO_MYSQL @ mysqlnd 2009-09-22 15:31:35 +00:00
Andrey Hristov ac93b60f68 MFH:Fix handling of BIT fields for non-PS. We need
macros from mysqlnd to be able to convert a bit
stream to a number.
2009-09-22 15:08:11 +00:00
Dmitry Stogov 38cdb16dd2 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 452aca97e3 MFH: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:44:11 +00:00
Andrey Hristov dcb5c5b0a4 MFH: 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:59:29 +00:00
Nuno Lopes 24090104ef allow tests to pass when a random username is used.
patch by Olivier Doucet
2009-09-22 12:30:21 +00:00
Nuno Lopes fb86d5b462 spread some svn:ignore love 2009-09-22 12:12:43 +00:00
Ulf Wendel 26b4248799 Fixing test 2009-09-22 11:58:46 +00:00
Dmitry Stogov bb81ef5d71 Fixed test (it failed from time to time because of very small timeouts) 2009-09-22 10:15:10 +00:00
Jani Taskinen 4cce432eeb - Move tests in the right location 2009-09-22 09:41:39 +00:00
Ulf Wendel 75d415efbe Fixing test 2009-09-22 08:42:44 +00:00
Dmitry Stogov 17aff0eb25 Fixed test (removed "bad" locale) 2009-09-22 08:22:29 +00:00
Dmitry Stogov 42b62e7ca6 Fixed ext/spl/tests/arrayObject_magicMethods2.phpt 2009-09-22 07:54:06 +00:00
Ulf Wendel 77f44b7926 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 5c67cdf62b 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 d223d65aad Fixed build with older version of libcurl 2009-09-22 01:17:16 +00:00
Ulf Wendel 6ef632d129 Fixing test 2009-09-21 15:59:22 +00:00
Ulf Wendel e94d475ad0 Fixing test 2009-09-21 15:24:47 +00:00
Dmitry Stogov 883b992ea7 Fixed tests (removed irrelevant check which makes test to fail from time to time) 2009-09-21 15:23:25 +00:00
Dmitry Stogov d12c66770f 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 e4f41b1f9f 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
Dmitry Stogov c36b27db63 Fixed memleak in tests/lang/engine_assignExecutionOrder_001.phpt 2009-09-21 13:01:17 +00:00
Ulf Wendel 9afd024715 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 47b209a3cd Fixing test 2009-09-21 11:54:15 +00:00
Dmitry Stogov d49abc2736 Fixed tests 2009-09-21 11:38:14 +00:00
Dmitry Stogov 623fe9aaf9 Fixed tests 2009-09-21 11:30:38 +00:00
Dmitry Stogov b4ba7fb96e Fixed memory leak 2009-09-21 11:22:13 +00:00
Ulf Wendel dc1e7d6d6d 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 1a3b7774e6 Fixing mysqli_result_references_mysqlnd.php 2009-09-21 10:06:13 +00:00
Dmitry Stogov 7bfe056174 Fixed tests 2009-09-21 09:52:19 +00:00
Ulf Wendel a0a8c5832f Fixing mysqli_get_client_stats.phpt. More testing for MYSQLI_INIT_COMMAND 2009-09-21 09:35:23 +00:00
Ulf Wendel 025e670f54 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 a77ee71cf0 Fixing test - the standard test table will not accept NULL values for column id 2009-09-21 08:36:14 +00:00
Dmitry Stogov acc71e71bc Fixed tests 2009-09-21 08:28:53 +00:00
Kalle Sommer Nielsen 1dfc3ac4a4 Fix NEWS 2009-09-21 03:20:31 +00:00
Pierre Joye 6711276b3c - fix ACL cache for read check 2009-09-19 20:54:34 +00:00
Hannes Magnusson f7096da972 And now use proper colspanning 2009-09-18 23:06:21 +00:00
Hannes Magnusson 07618b1edd Fix typo in comment (danbrown) 2009-09-18 22:26:44 +00:00
Hannes Magnusson e3134c3139 Throw some credit around 2009-09-18 22:01:58 +00:00
Andrey Hristov 967239727e MFH:Fix for bug#48909 Segmentation fault in mysqli_stmt_execute 2009-09-18 14:33:08 +00:00
Andrey Hristov 8aae3baa45 MFH:Fix for bug#48754 mysql_close() crash php when no handle specified 2009-09-18 10:49:31 +00:00
Andrey Hristov c2e66884e1 MFH, a fix 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:14 +00:00
Ulf Wendel 1388912ded better coverage for mysqli_info 2009-09-17 07:11:25 +00:00
Sriram Natarajan fbc335e5d1 - Fixed bug #49572 (use of C++ style comments causes build failure) 2009-09-17 02:45:25 +00:00
Felipe Pena fff0a24656 - Fixed ZTS build 2009-09-16 18:01:10 +00:00
Sebastian Bergmann ceaf590530 Merge ReflectionMethod::setAccessible() to PHP 5.3.2, approved by Johannes. 2009-09-16 17:24:46 +00:00
Ulf Wendel e6cf6693e6 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 20005db2a0 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
Jani Taskinen fb9c4bd709 - What a mess.. 2009-09-16 06:56:37 +00:00
andy wharmby e509cc4283 Fix SKIPIF sections 2009-09-15 21:44:08 +00:00
Rasmus Lerdorf d032060ea8 Fix bug #49558
And as Colin mentioned in the bug report, this means date_sunrise()
and date_sunset() have been off by 26 seconds in most cases until now.
2009-09-15 20:28:42 +00:00
Ilia Alshanetsky f611b66025 Upgraded bundled sqlite to version 3.6.18. 2009-09-15 16:54:11 +00:00
Pierre Joye 15398c4ed5 - #49253, add support for libcurl's CERTINFO option 2009-09-15 15:47:06 +00:00
Moriyoshi Koizumi b91e3db105 - WS fix (spaces to tabs) 2009-09-15 00:09:13 +00:00
Pierre Joye ada5eb95ad - Fix #48746, improve fix to support all possible cases (see latest comment in the report) 2009-09-14 18:46:56 +00:00
Ilia Alshanetsky 62d78d7ccc Fixed certificate validation inside php_openssl_apply_verification_policy 2009-09-14 12:50:30 +00:00
Moriyoshi Koizumi 6a0402413d - Looks like bug #48697 has already been fixed in RC1. 2009-09-14 04:11:29 +00:00
Felipe Pena 2c388a4eaa - Fixed warnings (Kalle) 2009-09-13 14:42:36 +00:00
Ilia Alshanetsky 9e76501f1e Fixed test 2009-09-13 13:14:11 +00:00
andy wharmby e4c38fc1f0 Add missing SKIPIF 2009-09-11 21:57:04 +00:00
Moriyoshi Koizumi 8f9acfedb3 - 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 617b4e9bd1 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 5dfd12ddb7 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 c4c11fd38a 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 b39126de9a - Fix bug #49528 (UTF-16 strings prefixed by BOM wrongly converted). 2009-09-11 08:22:19 +00:00
Jani Taskinen ccd6e501d1 - Simplified a bit and fixed possible memory corruption and definate leak. 2009-09-10 16:19:42 +00:00
Jani Taskinen 0f1b93a1ca - Fix skips 2009-09-10 15:05:34 +00:00
Ilia Alshanetsky f0c6eaa024 Fixed test 2009-09-10 02:15:08 +00:00
Felipe Pena 8c74835795 - 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 416ff5872d Andrey fixed the bug but the test was somewhat borked. Fixing test. 2009-09-09 18:31:00 +00:00
Ulf Wendel 31573498d8 Some extra test coverage for http://bugs.php.net/bug.php?id=48754 . 2009-09-09 17:16:24 +00:00
Ulf Wendel f51e935e96 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 5f260e14b2 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 95b3863579 - Updated to version 2009.13 (2009m) 2009-09-08 14:03:53 +00:00
Ilia Alshanetsky 62557f1d81 Fixed tests 2009-09-07 14:18:46 +00:00
Ilia Alshanetsky 6d0b9484d9 Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters). 2009-09-07 02:35:25 +00:00
Pierre Joye 3e359ee5b4 - fix #40013, php_uname() doesnt return nodename (MFH) 2009-09-06 22:01:18 +00:00
Felipe Pena b4ee727353 - Fixed bug #49483 (preg_replace 'subject' parameter listed as optional) 2009-09-06 17:41:34 +00:00
Pierre Joye d198853416 - revert last commit, breaks the build and needs test case(s) 2009-09-06 15:56:58 +00:00
Moriyoshi Koizumi e3c94d503a - Fix leaks. 2009-09-06 14:43:09 +00:00
Pierre Joye b24e1609a1 - don't hide previous declaration 2009-09-05 21:16:05 +00:00
Pierre Joye 7f36b2ead4 - don't hide early declaration 2009-09-05 19:00:05 +00:00
Felipe Pena 5c9579c27f - Drop unused var 2009-09-05 18:22:16 +00:00
Pierre Joye eb3801f5b0 - add test for #48746 2009-09-05 18:10:31 +00:00
Pierre Joye 3dd3cbb662 - fix #49274, filter_var does not accept object without a toString implementation 2009-09-05 17:35:26 +00:00
Jani Taskinen f723d368b3 - Fixed bug #49182 (PHP CGI always outputs the shebang line) 2009-09-05 17:07:14 +00:00
Pierre Joye a2cffa2590 - #49464, fix build 2009-09-04 19:53:39 +00:00
Jani Taskinen 4361f2370a I have no idea. This might or might not fix a bug in some branch. At least it works. 2009-09-04 11:02:40 +00:00
Sriram Natarajan ac2d3990f2 - 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
Pierre Joye 542c087a86 - be sure that we use the user token by default (Christian Wenz) 2009-09-04 06:59:08 +00:00
Johannes Schlüter bcde6a023c This will become 5.3.2, the NEWS file will be merged once 5.3.1 is out 2009-09-03 21:35:17 +00:00
Pierre Joye 511c923785 - #27051, improve fix on xp/2k3 2009-09-03 19:16:50 +00:00
Dmitry Stogov 4016bfcd71 Fixed bug #46074 (Bus error during running PHP CLI under IRIX 6.5.30) 2009-09-03 14:33:11 +00:00
Sebastian Bergmann 853c6de65b Make invokeArgs() error messages consistent with invoke(). 2009-09-03 14:02:51 +00:00
Pierre Joye 8f8220917e - Fix sanity check for the color index in imagecolortransparent 2009-09-03 09:45:56 +00:00
Pierre Joye a8c40d5b3a - #48746, len includes null already 2009-09-02 22:59:58 +00:00
Pierre Joye 4417646d72 - be sure to get all crt dbg errors in stderr 2009-09-02 20:02:17 +00:00
Ilia Alshanetsky 556dde6a34 Fixed return value to comply with tests 2009-09-02 13:07:44 +00:00
Pierre Joye da9aee9703 - #27051, we need the thread token here, not the process 2009-09-02 01:59:17 +00:00
Ilia Alshanetsky bfd9f29773 Fixed typo 2009-09-02 00:14:46 +00:00
Pierre Joye ddab8be51e - #27051, create process as impersonated user 2009-09-01 22:51:31 +00:00
Pierre Joye ad2bb4bcb1 - fix TS build 2009-09-01 19:41:51 +00:00
Pierre Joye 39178112fc - readdir/scandir entry 2009-09-01 17:53:00 +00:00
Pierre Joye b6882eddf6 - #48746, revert previous about volume. Fix volume support to allow all mounted points (with or without drives) 2009-09-01 17:50:59 +00:00
Pierre Joye 12a7305e21 - #48746, fix regression in readdir/scandir and mounted points or junctions on windows 2009-09-01 17:46:17 +00:00
Antony Dovgal 580c51215f add -g along with -O0 2009-09-01 15:13:02 +00:00
Patrick Allaert 74560ac75e Merging last tests made in HEAD 2009-09-01 13:41:18 +00:00
Jani Taskinen b3a23c7d88 fix typo 2009-08-31 21:19:29 +00:00
Jani Taskinen 6bb0603c4f - Fixed zlib.deflate compress filter to actually accpet level parameter. 2009-08-31 21:18:55 +00:00
Zoe Slattery b964306fd7 add missing skipifs 2009-08-31 19:22:29 +00:00
Antony Dovgal 66990d357c nuke duplicated tests 2009-08-31 15:32:39 +00:00
Ilia Alshanetsky 6a73387877 Fixed bug #49361 (wordwrap() wraps incorrectly on end of line boundaries). 2009-08-31 12:28:46 +00:00
Antony Dovgal fe7e08432e export le_socket from ext/sockets 2009-08-31 08:41:03 +00:00
Zoe Slattery 4cc35aeaaf The last of the 2009 testfest tests 2009-08-30 18:18:50 +00:00
Pierre Joye ceb607af13 - Fixed leak on error in popen/exec (and related functions) 2009-08-30 17:13:45 +00:00
Ilia Alshanetsky 30b7102746 Bug #49391 ldap.c utilizing deprecated ldap_modify_s 2009-08-30 15:33:59 +00:00
Zoe Slattery b08e82a736 More tests from 2009 testfest 2009-08-30 12:19:50 +00:00
Zoe Slattery d84163c639 bc math tests from testfest 2009 2009-08-30 11:10:20 +00:00
Zoe Slattery c0c141d0cf server for ftp tests 2009-08-30 09:31:54 +00:00
Zoe Slattery 6a22ec3eda More tests from 2009 testfest 2009-08-30 09:30:13 +00:00
Zoe Slattery 94039c35b9 Fixed to allow for http etc 2009-08-30 08:18:53 +00:00
Antony Dovgal f97132fe1a fix tests 2009-08-29 19:18:27 +00:00
Pierre Joye 45c58fc449 - Fix #48746, mounted volume support & resolution 2009-08-29 12:21:47 +00:00
Jani Taskinen 99d3fe5a0c - Fix news 2009-08-29 01:16:30 +00:00
andy wharmby 037f617a60 New basic network function tests. Tested on Windows, Linux and Linux 64 bit 2009-08-28 22:46:43 +00:00
Zoe Slattery 0e4ce3bcca More tests from 2009 testfest 2009-08-28 14:31:19 +00:00
Andrey Hristov 9bf747605d 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 5b39f5ca24 - fix VC6 build 2009-08-27 14:45:41 +00:00
Andrey Hristov 955a611211 Forgot to save the file. Here comes the entry 2009-08-27 13:26:46 +00:00
Andrey Hristov 67c7a37d9b Fixed bug #49027 (mysqli_options() doesn't work when using mysqlnd) 2009-08-27 13:16:39 +00:00
Andrey Hristov 43d33e8a99 Fix for bug#46614 Extended MySQLi class gives incorrect empty() result 2009-08-27 12:41:14 +00:00
andy wharmby 39fd3a2b3c Fix tests. Add missing SKIPIF sections so test do not run when POSIX extension not available. 2009-08-27 12:21:19 +00:00
Pierre Joye 17a4191575 - Fix for #48746, fix mounted volume and junctions when used from vista or later, they are actually prepended with \??\ 2009-08-27 09:39:01 +00:00
Rasmus Lerdorf b73fe4a9b6 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 137b9210f2 - fix #49372, segfault in php_curl_option_url 2009-08-26 22:24:10 +00:00
Pierre Joye 5d017c3e2d - silent warning (fix for #28038) 2009-08-26 21:59:54 +00:00
Pierre Joye 43b4d73dc2 - update 2009-08-26 20:58:06 +00:00
Pierre Joye 0c366503a6 - fix #48746, regression with file operaiton on path with junctions 2009-08-26 20:44:05 +00:00
Pierre Joye 46ba563fe1 - update 2009-08-26 20:03:49 +00:00
Pierre Joye bae3df7505 - fix #44683, popen crashes when an invalid mode is passed (works on 2k8/vista/win7) 2009-08-26 19:57:01 +00:00
Pierre Joye 48d031aa6e - fix build 2009-08-26 19:17:32 +00:00
Zoe Slattery 1c98e49afd Test from 2009 testfest 2009-08-26 17:17:58 +00:00
Pierre Joye c7167ced0b - fix test and use __DIR__ as usual 2009-08-26 16:07:05 +00:00
Ilia Alshanetsky 19f11e401d Fixed variable clobbering 2009-08-26 15:29:06 +00:00
Pierre Joye b4b9615c0b - add win32 version 2009-08-26 14:09:45 +00:00
Dmitry Stogov 60ef4a1ef6 Fixed bug #47273 (Encoding bug in SoapServer->fault) 2009-08-26 14:05:48 +00:00
Pierre Joye 9fe6294cdf - fix test 2009-08-26 09:59:20 +00:00
Pierre Joye bea1685a21 Improved readlink, supress \??\ and use the drive syntax only 2009-08-25 23:51:04 +00:00
Pierre Joye ef582b5397 - update news for my last TSRM fixes 2009-08-25 23:22:52 +00:00
Andrey Hristov 2dcfcf7387 MFH: fix of the fix 2009-08-25 14:32:10 +00:00
Andrey Hristov 27cbcc6078 MFH:
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:25:01 +00:00
Ilia Alshanetsky cc8cacd80e Fixed a compiler warning (variable clobbering) 2009-08-25 12:47:28 +00:00
Pierre Joye eeb9429de5 - be sure that the directory flag is set when we save a path in the cache 2009-08-25 09:32:31 +00:00
Pierre Joye 056f0aea30 - fix #49047, touch may fail on directory 2009-08-25 09:16:53 +00:00
Pierre Joye 4c85f48c89 - fix test when part of the path is a symlink 2009-08-25 00:22:11 +00:00
Pierre Joye 3db4fe36a4 - fix test 2009-08-25 00:14:23 +00:00
Pierre Joye ebd24fc10f - sigh. that too (separate fix). 2009-08-24 20:33:36 +00:00
Pierre Joye 063196c8aa - that part was for a separate fix 2009-08-24 20:32:11 +00:00
Pierre Joye 55d26cab56 - split atime and mtime 2009-08-24 20:27:52 +00:00
Pierre Joye 39ba13c3ad - fix test 2009-08-24 19:19:43 +00:00
Pierre Joye 64918d5168 - fix test 2009-08-24 18:44:59 +00:00
Pierre Joye 30c4b8ff29 - fix test 2009-08-24 18:43:21 +00:00
Ilia Alshanetsky 64b3f7d45b Don't clober variables 2009-08-24 18:40:13 +00:00
Pierre Joye e877e1280c - fix object dir usage (ie: relative path called from a symlinked dir), also fix nmake test for similar cases 2009-08-24 14:18:19 +00:00
Rafael Machado Dohms 609a573b23 Adding tests for imagecolorallocatealpha 2009-08-24 02:50:19 +00:00
Mikko Koppanen e4c11010f1 Fixes a memory leak in ssl streams. The context was not properly freed 2009-08-22 02:31:23 +00:00
Antony Dovgal 193bbbbd59 fix build broken by the fix for bug #49306 2009-08-21 07:46:43 +00:00
Jani Taskinen 767abb9b66 - Fixed bug #49286 (php://input (php_stream_input_read) is broken) 2009-08-20 12:40:15 +00:00
Jani Taskinen 5e733571b3 - WS + CS + sync 2009-08-20 12:17:32 +00:00
Ilia Alshanetsky 019f4f2c22 Fixed bug #49306 (inside pdo_mysql default socket settings are ignored). 2009-08-20 12:13:38 +00:00
Jani Taskinen e1f42c3bbb - Fixed bug #49289 (bcmath module does not compile with phpize configure). 2009-08-20 11:19:20 +00:00
Pierre Joye 05f86b6edb - revert fix for #43327, it breaks system&co functions 2009-08-20 09:03:19 +00:00
Pierre Joye 897083659e - fix NEWS 2009-08-19 18:45:13 +00:00
Pierre Joye b64e5e6bd0 - fixed #43327, wrong return value from mail(), if sendmail_path is wrong 2009-08-19 18:43:46 +00:00
andy wharmby e90f0eda2d New basic test for md5(). Tested on Windows, Linux and Linux 64 bit 2009-08-19 08:39:33 +00:00
Stanislav Malyshev d6ba6c69fb fix crash when unexpectedly passed by-ref parameter is modified 2009-08-18 20:51:49 +00:00
Garrett Serack 827469c94e - Fixed bug #28038 (Sent incorrect RCPT TO commands to SMTP server) 2009-08-18 18:58:33 +00:00
Pierre Joye 26f27ad7a8 - fix NEWS 2009-08-18 15:18:50 +00:00
Garrett Serack ad3f197c55 added missing NEWS entry for bug #49223 2009-08-18 14:38:41 +00:00
Ilia Alshanetsky e6fd4c1fc0 NULL the value after free 2009-08-18 12:44:32 +00:00
Dmitry Stogov f1ab855cfe Fixed ability to call user functions from user opcodes without recursion 2009-08-18 10:12:32 +00:00
Stanislav Malyshev a515259047 cleanup parameter parsing 2009-08-18 00:41:43 +00:00
andy wharmby e9a960bba6 New str_replace() tests. All tested on Windows, Linux and Linux 64 2009-08-17 22:41:30 +00:00
Stanislav Malyshev fa2310b177 fix parameter parsing for SNMP 2009-08-17 22:15:18 +00:00
Garrett Serack 6cec8d8ed3 - Fix for bug #49223 Inconsistency using get_defined_constants(true) 2009-08-17 21:28:22 +00:00
Jani Taskinen 918dea038b - Fix news 2009-08-17 20:14:25 +00:00
Dmitry Stogov b06436f171 Fixed bug #49144 (import of schema from different host transmits original authentication details) 2009-08-17 18:23:48 +00:00
Jani Taskinen 5ae549c8fd - Fixed bug #49236 (Missing PHP_SUBST(PDO_MYSQL_SHARED_LIBADD)). 2009-08-17 17:57:40 +00:00
Jani Taskinen db53d49623 - Fixed bug #49248 by fixing bug #48994 properly 2009-08-17 17:30:32 +00:00
Jani Taskinen 46bd9ed597 - Try disabling zlib.output_compression always for images. (zlib extension might be compiled as shared and not same time as the main PHP binary) 2009-08-17 16:54:39 +00:00
Ilia Alshanetsky 229212c5ca Fixed typo 2009-08-17 14:50:34 +00:00
Derick Rethans 718b7d160d - Updated to version 2009.12 (2009l) 2009-08-17 14:46:58 +00:00
andy wharmby 6c56fd6898 New basic tests for uniqid(). Tested on Windows, Linux and Linux 64 bit 2009-08-17 14:22:02 +00:00
andy wharmby 1cfc27bb8c 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
Dmitry Stogov f694c09a35 Fixed bug #49269 (Ternary operator fails on Iterator object when used inside foreach declaration). (Etienne, Dmitry) 2009-08-17 07:40:43 +00:00
Ilia Alshanetsky 4687f6e0ba MFB: Added missing sanity checks around exif processing. 2009-08-16 14:32:32 +00:00
Felipe Pena 88056c6bac - Improved param. parsing for ldap_read(), ldap_search() and ldap_list() 2009-08-15 00:52:31 +00:00
Gwynne Raskind c336c2e5d0 fix broken test (spurious tab characters caused run-tests to spaz) 2009-08-14 09:44:45 +00:00
Dmitry Stogov 85560842c2 Fixed crash in usort() and uasort() in case user comparison function modifyes th
e array.
2009-08-14 06:20:21 +00:00
Rasmus Lerdorf 5ca166b1d2 FIx test after Stas' explode() fix 2009-08-14 01:42:11 +00:00
Etienne Kneuss 6e164aa35a Fix several recursion problems when var_dump'ing self-referencing objects 2009-08-13 22:07:05 +00:00
Felipe Pena a8604e2c20 - Fix ZTS build 2009-08-13 20:10:18 +00:00
Stanislav Malyshev e52517d610 standardise and clean up string functions parameter parsing 2009-08-13 06:44:50 +00:00
Christopher Jones de65a02f1c refactor & WS for local test config change 2009-08-12 14:54:16 +00:00
Scott MacVicar ce24f04694 Fix build on platforms where crypt isn't always available 2009-08-12 09:18:41 +00:00
Scott MacVicar fbcfcfd8e6 Use the correct tense for the NEWS entries 2009-08-12 08:40:05 +00:00
Sriram Natarajan c35177b6a4 - Simplify default flags for Sun C compiler. 2009-08-11 23:45:35 +00:00
Scott MacVicar a090cd733a Fix BC break in mime_content_type() 2009-08-11 23:05:13 +00:00
Stanislav Malyshev b73ac1a57a 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 777fb4f911 Update NEWS entry with some stuff I missed. 2009-08-11 22:45:21 +00:00
Scott MacVicar f8d8723ff1 Update libsqlite to 3.6.17. 2009-08-11 22:22:21 +00:00
Scott MacVicar 050653466f Merge chanes from head to improve DNS on OSX and allow usage of bind9 stuff with the bind8 compatibility layer. 2009-08-11 22:07:35 +00:00
Scott MacVicar 6ffe4b2eff We should check /usr/local/include last 2009-08-11 21:40:15 +00:00
Pierre Joye 73fbaa9ee0 - remove double include 2009-08-11 17:08:23 +00:00
Pierre Joye f578a07128 - fix news 2009-08-11 15:12:38 +00:00
Pierre Joye 33a93474df - fixed bug #49072, feof never returns true for damaged file in zip 2009-08-11 15:12:00 +00:00
Scott MacVicar 94976f4694 Search /usr/include too for those wanting to use a system PCRE. 2009-08-11 12:03:29 +00:00
David Soria Parra 495a5ab005 Add actions for the gitclean target. 2009-08-11 02:21:09 +00:00
Rasmus Lerdorf 5f962f0e38 Oops, didn't mean to remove the -0 here 2009-08-10 23:18:07 +00:00
Kalle Sommer Nielsen 4f3d67ea89 Don't build sqlite as threadsafe if we are doing an NTS build 2009-08-10 16:58:53 +00:00
Etienne Kneuss 4881a9cff4 Fix endless recursion of var_dump() over self-referencing closures 2009-08-10 15:18:13 +00:00
Pierre Joye 80696a6f77 - fix and improve dns' AAAA support on windows 2009-08-10 08:05:11 +00:00
Rasmus Lerdorf 4a607c147d Tweak a few tests that failed on OSX 2009-08-10 06:53:49 +00:00
Ilia Alshanetsky ecfe3ae047 BFN 2009-08-09 15:36:17 +00:00
Rasmus Lerdorf a2c564b9e6 Make these socket tests less Linux-specific 2009-08-09 14:50:51 +00:00
Rasmus Lerdorf ecb9a94472 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 3189707681 Fixed bug #49193 (gdJpegGetVersionString() inside gd_compact identifies wrong type in declaration) 2009-08-09 13:15:45 +00:00
Rasmus Lerdorf d02332b43f 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
Andi Gutmans 4f34f5b0e3 - MFH 2009-08-09 04:46:30 +00:00
Rasmus Lerdorf 53349c7769 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 124a0a5a69 Restore intra-string whitespace collapsing broken in the previous change. 2009-08-08 14:39:34 +00:00
Pierre Joye 4668ca80b5 - [DOC] Fixed #49183 patch for VC6, NAPTR is only available in VC9+ build 2009-08-08 13:01:13 +00:00
Rasmus Lerdorf 2ee8b65e4e Oops, true/false are not defined on Linux. They are on OSX. 2009-08-07 17:32:31 +00:00
Rasmus Lerdorf 934a9037c8 Only skip leading 0's - fixes a test I broke a while ago 2009-08-07 17:14:19 +00:00
Jani Taskinen d5fd4ecc48 - Generated files 2009-08-07 15:45:56 +00:00
Jani Taskinen 6e18b9718d - Fixed bug #48719 parse_ini_*(): scanner mode is not checked for sanity) 2009-08-07 15:44:37 +00:00
Jani Taskinen 7af570b685 - Generated files.. 2009-08-07 14:22:49 +00:00
Jani Taskinen 46505193b2 - Fixed bug #48660 (parse_ini_*(): dollar sign as last character of value fails) 2009-08-07 14:21:38 +00:00
Pierre Joye 35ad8e6c46 - Fixed #49183, dns_get_record does not return NAPTR records 2009-08-07 13:31:09 +00:00
Jani Taskinen 46a94ebaa6 - Fix test 2009-08-06 13:54:21 +00:00
Rasmus Lerdorf 6704038c73 More eol crap 2009-08-06 13:31:03 +00:00
Rasmus Lerdorf 97b1247f2f Fix more tests messed up by svn 2009-08-06 13:26:43 +00:00
Rasmus Lerdorf 50957fe3a5 Fix test 2009-08-06 13:08:13 +00:00
Jani Taskinen d35dc78dd3 - Remove duplicate section 2009-08-06 12:40:36 +00:00
Ilia Alshanetsky 92cb2b634f Make test more generic 2009-08-06 12:23:35 +00:00
Jani Taskinen a93fef41c2 - Fix CS and remove extra strlen() call 2009-08-06 11:11:15 +00:00
Jani Taskinen b124f39010 - Missing svn:ignore 2009-08-06 11:05:07 +00:00
Jani Taskinen dc74c5136e - Restore PHP-5.2 behaviour when passing null inside object scope to get_class() 2009-08-06 11:02:25 +00:00
Rasmus Lerdorf 889e8990a2 The user argument cannot be NULL here - fixes 2 tests 2009-08-06 10:56:00 +00:00
Scott MacVicar c54f6df978 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 af5df4c813 Change dns.h to php_dns.h, part of my dns cleanup 2009-08-05 23:20:17 +00:00
Kalle Sommer Nielsen d46ca6d3b5 MFH: Fixed compiler warnings in ext/date 2009-08-05 21:25:39 +00:00
Scott MacVicar f1521e18c0 res_search is already checked within ext/standard/config.m4
also check for arpa/nameser_compat.h, OSX puts some old defines in there (not used yet)
2009-08-05 20:01:33 +00:00
Ilia Alshanetsky 5a40aa7217 Minor tweak 2009-08-05 19:45:13 +00:00
andy wharmby 8275f0d254 Basic test for is_resource() and isset() functions. tested on Windows, Linux and Linux 64 2009-08-05 16:10:46 +00:00
andy wharmby e0b0c49ae3 Add new use-case to parse_str() test. Tested on Windows, Linux and Linux 64 2009-08-05 08:54:27 +00:00
andy wharmby 3eaa521ed9 Fix tests 2009-08-04 23:16:25 +00:00
Jani Taskinen b312b3af2e - Revert bad fix for bug #49122 and only enable this when mysqlnd is used 2009-08-04 14:49:33 +00:00
Jani Taskinen b053fb5af6 - Add test (yes, it fails still :) 2009-08-04 12:16:40 +00:00
Jani Taskinen 5d757fddf5 - Fixed bug #48608 (Invalid libreadline version not detected during configure) 2009-08-04 11:20:49 +00:00
Jani Taskinen ca8a41215f - Retouch without my path in the #line directives 2009-08-04 11:15:37 +00:00
Antony Dovgal bb8d9fa656 cosmetic fix 2009-08-04 09:27:15 +00:00
Antony Dovgal 307a2259e9 fix memleak and possible segfault in HTTP fopen wrapper 2009-08-04 09:24:48 +00:00
Jani Taskinen 35f0411352 - Generated files 2009-08-04 02:58:29 +00:00
Jani Taskinen d03720480f - Fixed bug #48768 (parse_ini_*() crash with INI_SCANNER_RAW) 2009-08-04 02:56:26 +00:00
Jani Taskinen a845f681bb - Fix title 2009-08-04 02:55:24 +00:00
Jani Taskinen 206cc46aab - Generated files 2009-08-04 02:35:38 +00:00
Jani Taskinen 1c2b8b6abb - cosmetics 2009-08-04 02:34:32 +00:00
Jani Taskinen ea98d7a72e - 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
andy wharmby 4d8d8d73db 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 cfc417af37 Add missing SKIPIF sections to tests 2009-08-03 22:40:58 +00:00
Felipe Pena 6bebbf1086 - Fixed bug #49095 (proc_get_status['exitcode'] fails on win32) 2009-08-03 19:05:56 +00:00
Jani Taskinen 08f8621a9f - Fixed bug #48994 (zlib.output_compression does not ouput HTTP headers when set to a string value)
# also fixes bug #35936 (ini.zlib.output-compression Documentation :)
2009-08-03 18:15:30 +00:00
Felipe Pena d744463d33 - CS 2009-08-03 15:58:18 +00:00
Andrey Hristov cac5325aac test 2 2009-08-03 14:50:10 +00:00
Andrey Hristov af22257ba4 test 2009-08-03 14:46:11 +00:00
Felipe Pena 80ec45861a - Improved. No ugly copy. (Tony) 2009-08-03 13:26:15 +00:00
Felipe Pena 1648ab5750 - Re-fix stream_is_local() memory leaks 2009-08-03 13:16:24 +00:00
Jani Taskinen 952a193f94 - Fixed bug #48400 (imap crashes when closing stream opened with OP_PROTOTYPE flag) 2009-08-03 13:02:53 +00:00
Jani Taskinen e3d23b959f - 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 96498c468c - These tests fail if mbstring is enabled, not because of bad libc.. 2009-08-03 10:23:23 +00:00
Uwe Schindler 847f637497 MFH: Fix bug #46020: With Sun Java System Web Server 7.0 on HPUX, #define HPUX 2009-08-03 10:13:49 +00:00
Antony Dovgal 24086c42b6 revert bogus memleak fix causing Valgrind to scream 2009-08-03 08:45:28 +00:00
Rasmus Lerdorf 12bad6796f Fix a few more tests 2009-08-03 05:17:53 +00:00
Rasmus Lerdorf f42081c6a2 Given that we have a DB connection by the time we get here,
mysql_affected_rows() cannot return false.
2009-08-03 04:57:31 +00:00
Rasmus Lerdorf 8af64e6f34 Fix broken json tests in all branches 2009-08-03 04:01:57 +00:00
Rasmus Lerdorf 7e32cc59f7 Give this test more headroom since it needs to allocate a 90M block 2009-08-02 23:08:21 +00:00
Rasmus Lerdorf 1a6cda905a Fix test on 32-bit 2009-08-02 22:37:07 +00:00
Etienne Kneuss 8fd8c65df6 Addref on clone as well 2009-08-02 21:21:46 +00:00
Antony Dovgal 9a7bf0436a fix test 2009-08-02 20:49:20 +00:00
Greg Beaver d6a608f7e1 fix Bug #43857 2009-08-02 19:11:15 +00:00
Jani Taskinen 4397aa9881 - More and more missing svn:ignore entries. 2009-08-02 01:48:27 +00:00
Jani Taskinen 8c88903798 - More missing svn:ignore entries 2009-08-02 01:16:41 +00:00
Jani Taskinen fb61eaf34a - Missing svn:ignore 2009-08-02 01:10:26 +00:00
Jani Taskinen 7b411d7cdf - 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
Jani Taskinen 938c1230df - Add missing svn:ignore 2009-08-02 00:27:51 +00:00
Felipe Pena 96d24a59e5 - Fixed paths 2009-08-01 23:26:02 +00:00
Felipe Pena 085067a9aa - 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 c75f162165 - 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 ade24c7e35 - 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 8ad9bd1930 - Fixed tests 2009-08-01 15:46:50 +00:00
Derick Rethans e4e7e2b8ee - Added a function to print all CVs from the local scope. 2009-08-01 12:55:36 +00:00
Jani Taskinen be6338014a - 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 adf8f72f14 - Fixed bug #49092 (ReflectionFunction fails to work with functions in fully qualified namespaces) 2009-08-01 01:45:22 +00:00
Jani Taskinen 0b03346bf8 - Added test for bug #49074 2009-08-01 01:01:43 +00:00
Jani Taskinen edbf332cea - Fixed bug #49074 (private class static fields can be modified by using reflection) 2009-08-01 00:48:04 +00:00
Rasmus Lerdorf 8608857c1a Fix bug #48880
The ini entry was being corrupted because it wasn't being set
on the ACTIVATE and DEACTIVATE stages.
2009-07-31 21:09:45 +00:00
Garrett Serack f56d6b67b5 - Updated fix for bug #48911 (embed sapi misses SAPI_API)
#- Windows didn't need SAPI_API
2009-07-30 20:20:56 +00:00
Felipe Pena f8ee7db001 - Fixed bug #49108 (2nd scan_dir produces seg fault) 2009-07-30 12:06:40 +00:00
Jani Taskinen 96a053288f - Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012 2009-07-30 11:32:08 +00:00
Jani Taskinen 10a7066591 - Fix test 2009-07-30 10:53:04 +00:00
Stanislav Malyshev 9fd8469e94 fix for bug #49000 2009-07-30 05:01:53 +00:00
Kalle Sommer Nielsen fa09704cea Test case for bug #42434 2009-07-30 03:54:27 +00:00
Felipe Pena b16441622e - Added missing entries from me 2009-07-30 00:18:48 +00:00
Felipe Pena 99013d8321 - Fixed memleak in stream_is_local() 2009-07-29 19:09:17 +00:00
Greg Beaver 93054e9b38 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 9e253ac6e7 - Fixed memleak on Phar::mungServer() 2009-07-29 16:17:57 +00:00
Derick Rethans 24b973cafc - Fixed bug #45554 (Inconsistent behavior of the u format char). 2009-07-29 15:34:59 +00:00
Johannes Schlüter 3e0d13859a Remove .project files (doesn't exist in trunk) 2009-07-29 13:51:52 +00:00
Ilia Alshanetsky 06a2acc527 Fixed bug #45141 (setcookie will output expires years of >4 digits). 2009-07-29 13:44:16 +00:00
Greg Beaver e29bccaae2 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
Greg Beaver 5c4609021f sync run-tests.php with revision 286499 changes making php 6 tests with EXPECTF that can have arbitrary binary data in output work 2009-07-29 10:06:55 +00:00
Jani Taskinen 4fbc6a54ec - Fix news 2009-07-29 09:10:52 +00:00
Moriyoshi Koizumi 7ce2bff511 * Fix bug #48645 (mb_convert_encoding() doesn't understand hexadecimal html-entities) 2009-07-29 04:44:08 +00:00
Stanislav Malyshev 9e445b043b report fix for bug #49065 2009-07-29 00:18:19 +00:00
Stanislav Malyshev d1a16fc86d fix extension functions disabling (bug #49065) 2009-07-29 00:17:10 +00:00
Hannes Magnusson cc23b8d600 MFH: Fixed bug #44144 & add test 2009-07-28 22:25:31 +00:00
Jani Taskinen f48cab06ff - Fixed bug #48971 (Missing ZEND_NS_NAMED_FE macro) 2009-07-28 21:12:42 +00:00
Jani Taskinen 907763a20a - Fixed bug #48911 (embed sapi misses SAPI_API) 2009-07-28 21:07:43 +00:00
Kalle Sommer Nielsen b5b8303194 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 34d8ee27cc - 48182 ssl handshake fails during asynchronous socket connection 2009-07-28 19:28:08 +00:00
Jani Taskinen 48a514673a - Skip some tests in 32bit systems, add cleanups where missing 2009-07-28 19:16:02 +00:00
Derick Rethans d936dd1802 - Updated to version 2009.11 (2009k) 2009-07-28 15:25:16 +00:00
Rasmus Lerdorf ee01362c98 Get rid of this platform-specific test 2009-07-28 14:56:08 +00:00
Dmitry Stogov ff766c1de2 Fixed bug #48912 (Namespace causes unexpected strict behaviour with extract()) 2009-07-28 12:35:27 +00:00
Antony Dovgal 421b6e0f2c configure dependency has to be optional as well 2009-07-28 08:59:08 +00:00
Antony Dovgal 75fc702162 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
Takeshi Abe 59ff212783 added test for #43073 2009-07-27 22:11:43 +00:00
Takeshi Abe 366c261cce MFH: fixed #48732 (TTF Bounding box wrong for letters below baseline) and #48801 (Problem with imagettfbbox) 2009-07-27 15:06:28 +00:00
Felipe Pena 28add3cbf3 - MFH: Cosmetic changes 2009-07-27 14:11:53 +00:00
Jani Taskinen 2539da79ba - HEAD and PHP_5_2 have it like this, PHP_5_3 should not be different! 2009-07-27 09:23:06 +00:00
Kalle Sommer Nielsen 82cfb15677 Fixed bug #48872 (string.c: errors: duplicate case values) (Only in PHP_5_3) 2009-07-27 07:14:40 +00:00
Scott MacVicar 87dbefa03b MFH: Add error constant when json_encode detects an invalid UTF-8 sequence. 2009-07-27 03:43:38 +00:00
Felipe Pena 837732acc5 - Fix ZTS build 2009-07-26 23:44:59 +00:00
Jani Taskinen e2d044db40 - Regenerated 2009-07-26 23:22:27 +00:00
Jani Taskinen 8877a37f3e - 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 ae492897c6 - Removed unused code (replaced long time ago by url_scanner_ex.* 2009-07-26 22:59:46 +00:00
Antony Dovgal d132b9985d fix test 2009-07-26 19:59:04 +00:00
Antony Dovgal 6d04f1a141 fix test 2009-07-26 19:53:23 +00:00
Antony Dovgal 3af4a22a3c fix test 2009-07-26 19:51:24 +00:00
Antony Dovgal 2fffc2b06c fix test 2009-07-26 19:45:38 +00:00
Rasmus Lerdorf 0e2af69d55 Not binary 2009-07-26 19:29:11 +00:00
Ilia Alshanetsky 899cb30275 Fixed bug #49026 (proc_open() can bypass safe_mode_protected_env_vars
restrictions).
2009-07-26 15:14:18 +00:00
Greg Beaver 1d50248937 make cache_list tests pass in php 6 2009-07-26 03:07:23 +00:00
Greg Beaver e8d80c8bfd fix buildFromIterator with filesystem iterator in php 6 2009-07-26 02:43:14 +00:00
Greg Beaver 96dd763df4 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 a37d7529ba 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 66908185b7 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 732f4af082 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 571dfc1e49 fix zip front controller tests for php6 2009-07-26 00:39:40 +00:00
Greg Beaver 39125fdd47 fix tar front controller tests for php6 2009-07-26 00:35:17 +00:00
Greg Beaver 7761a39314 fix more tests for php6 2009-07-26 00:28:50 +00:00
Greg Beaver cfbd6d852f more php6 fixes for phar, fix more tests 2009-07-25 23:45:45 +00:00
Kalle Sommer Nielsen 42afb1f209 BFN #48189 2009-07-25 23:40:22 +00:00
Kalle Sommer Nielsen 310bfadf3c Fixed bug #48189 (ibase_execute error in return param) 2009-07-25 23:37:47 +00:00
Jani Taskinen bc8155d737 - 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 badd102c83 - Opss, fix the fix... 2009-07-25 21:56:31 +00:00
Felipe Pena 7c30b3c2dc - Fix test 2009-07-25 21:52:33 +00:00
Rasmus Lerdorf 5471bd7f6a Fix dumb typo in the skipif 2009-07-25 21:37:04 +00:00
Jani Taskinen 555b177c83 - Fix this again :) 2009-07-25 21:07:02 +00:00
Jani Taskinen 1f0c710ef2 - Add missing EXPERIMENTAL note (this thing REALLY is experimental at best..) 2009-07-25 20:58:51 +00:00
Jani Taskinen 776cb8a669 - 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 57140f7db0 - Making Valgrind happy 2009-07-25 20:39:01 +00:00
Derick Rethans ee084018e7 - Updated to version 2009.11 (2009k) 2009-07-25 15:14:28 +00:00
Jani Taskinen 5e22b47d05 - Fix bad environment usage 2009-07-25 14:52:52 +00:00
Jani Taskinen 1ca46f5ddd - Fix test when responder is something like lighttpd 2009-07-25 14:49:17 +00:00
Jani Taskinen 57d04afff0 - Fix test 2009-07-25 14:20:38 +00:00
Jani Taskinen 4f760d11f8 - Fixed bug #49052 (context option headers freed too early when using --with-curlwrappers) 2009-07-25 13:00:25 +00:00
Jani Taskinen ee992d9ff7 - Fix tests .oO(why are there so many things broken in this branch..?) 2009-07-25 00:43:42 +00:00
Jani Taskinen dad7c68b27 - Fix test 2009-07-25 00:35:25 +00:00
Greg Beaver 7d114c2e7f merge from HEAD changes to test 2009-07-24 23:55:49 +00:00
Greg Beaver e8756a3c3c begin work on making phar php6-ready 2009-07-24 23:53:24 +00:00
Moriyoshi Koizumi 4390903e75 - MFH (using svn merge; it seems I won't need to repeat the commit message anymore) 2009-07-24 23:48:58 +00:00
Greg Beaver aa65955c8c update test to work in php 6 2009-07-24 22:09:36 +00:00
Greg Beaver 96740db9ab fix PHAR_ARG_INFO #define to work with PHP major versions > 5 2009-07-24 21:27:51 +00:00
Jani Taskinen 2d549b7bdf - Fixed bug #48835 (Deprecated php.ini options in old php.inis makes "make test" to fail) 2009-07-24 20:24:12 +00:00
Jani Taskinen d6091b2521 - Fix test 2009-07-24 19:51:55 +00:00
Jani Taskinen 4892c04168 - Missing svn:ignore 2009-07-24 19:44:07 +00:00
Greg Beaver cd23986a7a 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 d68cc96ebd merge unmerged changes between branches, remove unnecessary test for zip signature failure in badparameters.phpt 2009-07-24 17:07:05 +00:00
Derick Rethans fb5d7e4748 - Added - to the list of "unsafe" characters so that the pecl dir can have the
- character in the name.
2009-07-24 16:30:48 +00:00
Greg Beaver e1962da708 fix minor memory leak 2009-07-24 16:21:40 +00:00
Greg Beaver 42e0e5dfb7 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 f7873d0aee 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
Jani Taskinen b991dfdb1f - Fixed tests to be more portable 2009-07-23 19:06:56 +00:00
Jani Taskinen cce5a75b26 - Add missing svn:ignore property 2009-07-23 17:38:03 +00:00
Greg Beaver 115e370d6e fix PHP Bug #48377: error message unclear on converting phar with existing file 2009-07-23 17:04:24 +00:00
Greg Beaver 09b8bbc97f new phar test for zip with data descriptor in local file header 2009-07-23 16:40:47 +00:00
Greg Beaver 1723b16898 fix PHP bug #48791: open office files always reported as corrupted 2009-07-23 16:30:27 +00:00
Jani Taskinen af0c2c4760 - Fix test 2009-07-23 16:25:07 +00:00
Greg Beaver 01659b8b7c fix php bug #48783: make install will fail saying phar file exists 2009-07-23 15:48:04 +00:00
Greg Beaver 3bf5d05047 fix PHP bug #48740: PHAR install fails when INSTALL_ROOT is not the final install location 2009-07-23 15:40:10 +00:00
Jani Taskinen 6dc86facd0 - Fixed bug #48802 (printf() returns incorrect outputted length) 2009-07-23 14:54:04 +00:00
Jani Taskinen 855034b955 - Fixed bug #49032 (SplFileObject::fscanf() variables passed by reference) 2009-07-23 14:42:46 +00:00
Ilia Alshanetsky b89985ac55 Fixed bug #49014 (dechunked filter broken when serving more than 8192 bytes in
a chunk)         

# Original patch by andreas dot streichardt at globalpark dot com
2009-07-23 12:18:40 +00:00
Greg Beaver 4744223055 fix Bug #49021: phar tar signature algorithm reports as Unknown (0) in getSignature() call 2009-07-22 20:21:39 +00:00
Greg Beaver 667c59abd6 Fix Bug #49020: phar misinterprets ustar long filename standard 2009-07-22 19:51:37 +00:00
Greg Beaver fb3adb16fc don't package up subversion directory in phar.phar 2009-07-22 18:37:32 +00:00
Greg Beaver d967e29541 fix php bug #49018 (phar tar stores long filenames with prefix/name reversed) 2009-07-22 18:13:38 +00:00
Patrick Allaert 9b9363af5b MFH: The exact error message might differ (it's "Not owner" on Solaris) (r265951) 2009-07-22 12:20:56 +00:00
Rasmus Lerdorf 7bba051009 Fix bug #49003 by tweaking the fix to bug #44929 slightly.
A 0 followed by any punctuation is now significant instead
of just 0's in front of a period.
2009-07-21 21:15:48 +00:00
Sriram Natarajan 27dccf7ac0 - Fixed bug #48774 (SIGSEGVs when using curl_copy_handle()). 2009-07-21 20:32:32 +00:00
Ilia Alshanetsky 160c88cfa1 Fixed bug #48962 (cURL does not upload files with specified filename). 2009-07-21 15:56:08 +00:00
Zoe Slattery 9ff94c82df Remove empty sections. Fix bad use of --SKIP-- 2009-07-21 14:02:24 +00:00
Jani Taskinen d671793295 - There is only one Makefile that needs removing 2009-07-21 13:57:33 +00:00
Jani Taskinen 36b94bea86 - Fixed problem with vcsclean which caused it not to really clean whole tree 2009-07-21 12:01:26 +00:00
Johannes Schlüter 569869855e CVS->SVN 2009-07-20 14:34:09 +00:00
Gwynne Raskind 3832578522 revert Nuno's commit of my patch 2009-07-20 11:48:04 +00:00
Jani Taskinen c0aab038ba Fixed bug #48929 (Double \r\n after HTTP headers when "header" context option is an array) 2009-07-20 10:54:37 +00:00
Jani Taskinen a56e81fe13 - Removed unused parts 2009-07-20 10:51:40 +00:00
Kalle Sommer Nielsen 5c1d0c3eab Fix Windows build 2009-07-20 04:31:07 +00:00
Rafael Machado Dohms 12ef53b204 Removing deprecated test replaced by individual tests for imageistruecolor and imagetruecolortopalette 2009-07-20 03:48:55 +00:00
Rafael Machado Dohms 23a423aea0 Separating and complementing imageistruecolor and imagetruecolortopalette tests 2009-07-20 03:47:29 +00:00
Felipe Pena 00054412e4 - Fixed bug #48057 (Only the date fields of the first row are fetched, others are empty)
patch by: info at programmiernutte dot net
2009-07-20 00:17:24 +00:00
Felipe Pena 2507033c79 - Fixed bug #48980 (Crash when compiling with pdo_firebird) 2009-07-19 23:33:50 +00:00
Felipe Pena 9f8ff2f968 - Revert my mistake 2009-07-19 22:46:03 +00:00
Felipe Pena a0e5576f23 - Fixed module check (Related to bug #48785) 2009-07-19 20:53:26 +00:00
Felipe Pena cdf9cf3033 - Fixed bug #48773 (Incorrect error when setting PDO::ATTR_STATEMENT_CLASS with ctor_args)
[HEAD only]
2009-07-19 18:55:31 +00:00
Pierre Joye 4028b77c34 - #49763 entry (and test commit in multiple branches :) 2009-07-19 17:02:03 +00:00
Felipe Pena 0c9a16ffb7 - New tests 2009-07-19 16:31:43 +00:00
Christopher Jones defb5d1f7d MFH: Bug #48722 (Update OCI8 --enable-sigchild warning) 2009-07-19 16:27:59 +00:00
Christopher Jones 085daea052 make it easier for maintainers to set un/pw in environments that don't pass shell variables 2009-07-19 16:08:24 +00:00
Christopher Jones ce919053f3 Fix expected output to match final PHP 5.3 deprecated behavior 2009-07-19 16:06:19 +00:00
Christopher Jones 4c12299c08 Reduce Oracle version-dependent diffs. Make PHP 5/6 compatible 2009-07-19 16:05:08 +00:00
Pierre Joye 38bb4c1099 - MFB: Fix #48763, create corrupt archive 2009-07-19 15:32:09 +00:00
Pierre Joye f031901b1b - WS 2009-07-19 15:20:48 +00:00
Nuno Lopes 7655762e40 ignore a few generated files 2009-07-19 14:57:28 +00:00
Nuno Lopes 4526eee6db Add support for proc_open()'s bypass_shell feature for Unix systems (slightly modified patch from Gwynne) 2009-07-19 14:52:27 +00:00
Felipe Pena ea2abdc378 - Removed unnecessary strlen() call and if statement. 2009-07-19 14:36:16 +00:00
Felipe Pena 91841e0987 - New test 2009-07-19 03:36:46 +00:00
Felipe Pena d49b4fa597 - Tests related to bug #48770 2009-07-19 03:25:49 +00:00
Rafael Machado Dohms d7276e46e1 Commiting imagecreatetruecolor tests for PHP_5_3 branch 2009-07-19 01:42:08 +00:00
Pierre Joye a134024ea3 - let try to be smart, read the bug report.... 2009-07-18 17:06:21 +00:00
Zoe Slattery 98c8c6738a Added comment to XFAIL 2009-07-18 17:00:53 +00:00
Zoe Slattery 3c3c9d544e Adding explanation 2009-07-18 16:53:54 +00:00
Zoe Slattery d93cf1f610 removing empty XFAIL sections 2009-07-18 16:41:16 +00:00
Zoe Slattery d09ab2ab42 Removing unnecessary SKIPIF sections 2009-07-18 13:46:08 +00:00
Zoe Slattery 546a927dc8 fixing paths in INI section 2009-07-18 13:14:21 +00:00
Rasmus Lerdorf 15b0218437 Fix TTF Files 2009-07-18 03:18:36 +00:00
andy wharmby fbea458808 New cURL tests. Tested on Windows, Linux and Linux 64 bit 2009-07-17 20:46:30 +00:00
andy wharmby f3d407964e Fix cURL tests 2009-07-17 20:44:50 +00:00
Alexey Zakhlestin d3e8085c28 removing test. this one tests system-specific behavior, not something implemented in php 2009-07-17 17:17:57 +00:00
Alexey Zakhlestin edb55a4166 fixed tests. money_format() is implemented in underlying system, not in php. So, we shouldn't test for actual values returned. They are different between systems 2009-07-17 15:56:36 +00:00
Gwynne Raskind 2673b9be38 MFH: fix crash when session hash function generated long hashes with hash_bits_per_character larger than 4 2009-07-17 14:21:59 +00:00
Felipe Pena c803fbe66c - Fix test 2009-07-17 14:04:06 +00:00
Gwynne Raskind c08473090c MFH: document the hash name functionality available since 5.3 2009-07-17 13:22:56 +00:00
Jani Taskinen eb4446a812 - Add missing file exts 2009-07-17 12:31:58 +00:00
Jani Taskinen 5e76a611df - Fixed bug #48947 (vcsclean does not remove all created files) 2009-07-17 12:14:21 +00:00
Jani Taskinen 8503b66cb6 CS 2009-07-17 11:49:50 +00:00
Jani Taskinen 785f1bd170 - Fixed bug #47481 (natcasesort() does not sort extended ASCII characters correctly) 2009-07-17 11:13:51 +00:00
Zoe Slattery 4e0b75042a fix tests 2009-07-17 09:28:19 +00:00
Zoe Slattery 6917639217 fix tests 2009-07-17 09:04:52 +00:00
Zoe Slattery 29b557ae61 fix tests 2009-07-17 08:18:27 +00:00
Rasmus Lerdorf 4fdd6bacb7 Multi-branch test commit to see if email notifications are working 2009-07-17 04:26:33 +00:00
Stanislav Malyshev 326cb1bb0f fix memleak 2009-07-17 00:48:59 +00:00
Felipe Pena f4f825a7a5 - MFH: Fixed bug #48893 (Problems compiling with Curl) 2009-07-17 00:25:54 +00:00
Felipe Pena 520591607e - MFH: Fixed bug #48762 (IPv6 address filter still rejects valid address) 2009-07-16 23:29:36 +00:00
Jani Taskinen ecdd8ebbb9 MFH 2009-07-16 12:25:17 +00:00
Gwynne Raskind 24f9b1bd1e one more attempt at ridding us of some of those annoying mime types 2009-07-16 08:10:50 +00:00
Gwynne Raskind ad3dd7a718 MFH: dropped some more mime types, svnclean -> clean for multiple VCS 2009-07-16 04:50:06 +00:00
Felipe Pena 2adf42f890 - Removed trailing zeros on double to string conversion (noticed on #48924) 2009-07-16 00:59:34 +00:00
Rasmus Lerdorf 0f004989e9 Buffer handling fixes 2009-07-16 00:04:59 +00:00
Stanislav Malyshev 67f846c4c3 fix ini_restore problem 2009-07-16 00:02:19 +00:00
Stanislav Malyshev 1db1d4ccc8 fix freed mem reference 2009-07-15 23:55:50 +00:00
Rasmus Lerdorf 33c42127f6 MFH 2009-07-15 19:09:15 +00:00
Pierre Joye 6f9c84f844 - cvs > svn 2009-07-15 17:08:50 +00:00
Pierre Joye 9c18f65572 - cvs > svn 2009-07-15 16:52:21 +00:00
Alexey Zakhlestin 3e326b91e7 fix tests corrupted by svn's eol-style=native 2009-07-15 13:44:14 +00:00
Alexey Zakhlestin 07ae04de31 MFH: fix broken test 2009-07-15 10:06:38 +00:00
Felipe Pena aabf4dc30f - MFH: Fixed bug #48913 (Too long error code strings in pdo_odbc driver) 2009-07-15 02:36:08 +00:00
Felipe Pena 0225d5ef80 - MFH: Fixed bug #48913 (Too long error code strings in pdo_odbc driver) 2009-07-15 02:32:43 +00:00
Felipe Pena bffd08072c - MFH: Fixed bug #48899 (is_callable returns true even if method does not exist in parent class) 2009-07-15 01:11:24 +00:00
Gwynne Raskind 912131b304 kill bad mime types 2009-07-14 21:51:40 +00:00
Gwynne Raskind 1020d90072 MFH: CVS->SVN 2009-07-14 21:49:44 +00:00
Stanislav Malyshev 41d1c12978 fix build 2009-07-14 18:57:55 +00:00
David Soria Parra 758eca1145 MFH: - cvs->svn 2009-07-14 09:55:55 +00:00
Stanislav Malyshev c7eb83def9 add intl option 2009-07-13 23:57:20 +00:00
David Soria Parra 0391dea5be MFH: Fix date warning by setting the default timezone to UTC 2009-07-13 23:56:38 +00:00
Pierre Joye 81461c78ef - remove app/js mime 2009-07-13 22:02:28 +00:00
Rasmus Lerdorf 5e118fdc1a cvs->svn 2009-07-13 19:16:13 +00:00
Rasmus Lerdorf fe8bed8394 svn propdel svn:mime-type build/buildcheck.sh
cvs->svn
2009-07-13 17:36:49 +00:00
Pierre Joye 06033b5845 - rename to svn 2009-07-13 16:10:59 +00:00
Pierre Joye 95601a1f16 - rename to svn 2009-07-13 16:10:29 +00:00
Pierre Joye dffe3d8d21 - cvs to svn changes 2009-07-13 16:02:34 +00:00
Gwynne Raskind 2b62ffdba7 fix a huge number of wrong MIME types. UGH. 2009-07-13 12:15:13 +00:00
Pierre Joye 8faa7980f3 - remove ZendEngine* detection, we always have Zend now (svn) 2009-07-13 00:26:52 +00:00
Gwynne Raskind 627061c6a3 cvsclean -> svnclean 2009-07-12 19:43:27 +00:00
Ilia Alshanetsky c71358379d Fixed a possible crash inside OnUpdateErrorLog() when restoring an empty value
Avoid pointless safe_mode/open_basedir checks on OnUpdateMailLog() if value is empty
2009-07-12 16:38:14 +00:00
Rasmus Lerdorf 28356530cd Test commit 2009-07-12 14:16:30 +00:00
Rasmus Lerdorf 1f53affe7a MFB cvs->svn 2009-07-11 04:24:45 +00:00
David Soria Parra 098d0fcf55 MFH: Get rid of PHP 4 related buildconf and moving around directories. As we switched to svn ZE2 is in Zend by default. 2009-07-11 01:55:41 +00:00
Ilia Alshanetsky ba0e26f2c1 Fixed typo 2009-07-09 16:50:45 +00:00
Stanislav Malyshev 14f163fd80 report fix 2009-07-09 00:27:28 +00:00
Stanislav Malyshev 4bb8672039 fix mail.log openbasedir interaction with .htaccess 2009-07-09 00:21:17 +00:00
Felipe Pena fb235dc07f - MFH: Fixed bug #48854 (array_merge_recursive modifies arrays after first one) 2009-07-08 18:23:08 +00:00
Pierre Joye ddb869d674 - skip on windows 2009-07-08 10:42:06 +00:00
Pierre Joye e98be67b11 - windows version 2009-07-08 10:41:50 +00:00
Pierre Joye 528ede93df - windows version 2009-07-08 10:14:49 +00:00
Pierre Joye d8b465caae - skip on win, different error msg 2009-07-08 10:13:27 +00:00
Pierre Joye 8f7ce3ae3d - fix test (mtime only is changed) 2009-07-08 09:59:33 +00:00
Ilia Alshanetsky c16b7585f6 Fixed bug #48788 (RecursiveDirectoryIterator doesn't descend into symlinked
directories).

[DOC]

To avoid breaking how existing code works a new constant is introduced for
the RecursiveDirectoryIterator() that directs the code to follow symlinks.
This constant RecursiveDirectoryIterator::FOLLOW_SYMLINKS can be passed a
flag to the constructor to trigger symlink following.
2009-07-08 03:06:59 +00:00
David Soria Parra 2331863a5c MFH: Reset TZ environment variable. Some tests assume that it's not set. 2009-07-07 23:05:17 +00:00
Pierre Joye ba035b47fd - #46682 2009-07-07 22:17:54 +00:00
Pierre Joye 7a41848cc6 - #46882, touch() atime field returns different value 2009-07-07 22:13:32 +00:00
Pierre Joye f6016c64e5 - fixed, remove xfail 2009-07-07 22:04:42 +00:00
Pierre Joye 18174e18c9 - fix tests, 5.3 supports these things now on windows. Also shorter tests would be REALLY nice (or use iteration numbering) 2009-07-07 21:50:38 +00:00
Stanislav Malyshev e865c0b4ee merge errors support 2009-07-07 21:25:46 +00:00
Jani Taskinen 87f9d62861 - Fixed bug #48247 (Infinite loop and possible crash during startup with errors) 2009-07-07 16:42:11 +00:00
Pierre Joye c408f289be - #45905 2009-07-07 15:17:36 +00:00
Jani Taskinen 8ac02f5926 Check your editors, this is ascii only file! 2009-07-07 12:19:05 +00:00
David Soria Parra 8af2635eab MFH: Adjust tests. The order in which notices appear is platform dependend as the function call ordering in parameter lists is not defined in C. 2009-07-07 12:11:53 +00:00
Ulf Wendel 759cc732cf MFH. Fixing tests to run with SQL_MODE=ANSI_QUOTES as well. 2009-07-07 11:32:17 +00:00
Pierre Joye c79f7e3f6b - WS 2009-07-07 10:54:44 +00:00
Pierre Joye b38fde4694 - #45905, imagefilledrectangle() clipping error 2009-07-07 10:49:38 +00:00
Felipe Pena 4f0c8ef124 - MFH: New tests (WurzbrugUG testfest) 2009-07-07 01:17:46 +00:00
Ilia Alshanetsky 0e05af63ed MFB: Fixed bug #48808 (FILTER_VALIDATE_EMAIL allows some invalid e-mail
syntaxes)
2009-07-07 00:44:20 +00:00
Felipe Pena 44bf860516 - MFH: Fixed compiler warning 2009-07-07 00:02:34 +00:00
Stanislav Malyshev 387fbb2d4e fix protos 2009-07-06 23:48:27 +00:00
Pierre Joye 43be94f2be - forgot to add the author of the initial patch 2009-07-06 23:47:16 +00:00
Pierre Joye 4645ef2a49 - #48116 2009-07-06 23:38:03 +00:00
Stanislav Malyshev bfdeea808a add test 2009-07-06 23:28:16 +00:00
Pierre Joye f37fabb803 - #48116, restore 0.x compability, thx config.cache. 2009-07-06 23:26:23 +00:00
Pierre Joye c82245dea7 - #48116, fix build against openssl 1.0 2009-07-06 23:02:18 +00:00
andy wharmby 6e96ae79a3 Fix test 2009-07-06 19:35:01 +00:00
Pierre Joye 4186a6e57c - #48771 2009-07-06 17:48:02 +00:00
Ulf Wendel be7dd36297 MFH. Enabling test as requested by the skipif comment... it does pass when slightly modified. 2009-07-06 15:53:14 +00:00
Ulf Wendel 4786cfa4bf MFH. Fixing mysqlnd version test to run some four previously skipped tests. There is no proper way to check the mysqlnd version. The best one can do is adapt the tests to what PHP 5.3 and PHP 6.0 return today. 2009-07-06 15:45:19 +00:00
Ulf Wendel 556feffbd4 MFH. Adapting (old) tests to current PHP 6 semantics - s/unicode.semantics test/version_compare 2009-07-06 15:08:13 +00:00
Ulf Wendel f611876b2e MFH. Adding --CLEAN-- sections to all ext/mysqli tests 2009-07-06 14:39:10 +00:00
Pierre Joye fa38267833 - MFH: #48771, rename() between drives error: No error 2009-07-06 08:56:23 +00:00
Ilia Alshanetsky dac8acd1c1 MFB: Fixed bug #48718 (FILTER_VALIDATE_EMAIL does not allow numbers in domain
components).
2009-07-05 16:08:05 +00:00
Zoe Slattery b37019f963 fix test 2009-07-05 14:46:08 +00:00
Felipe Pena fc4e43ec3c MFH:
- Added missing methods' arginfo (for void params)
- Fixed arginfos:
  - MultipleIterator::__construct
  - MultipleIterator::setFlags      (Thanks Philip!)
  - SplFixedArray::__construct
2009-07-04 20:31:27 +00:00
Antony Dovgal 5725982614 stop polluting my /tmp dir 2009-07-03 14:02:28 +00:00
Ulf Wendel b90a412302 MFH. ... to play with large data sets. Currently its only 10MB in size to keep the test runtime short. However, its easy to increase, if you want to test large data sets 2009-07-03 12:14:39 +00:00
Jani Taskinen 0f60a5d540 Nuke "hotfix", fix the real issue.. 2009-07-03 11:42:11 +00:00
Patrick Allaert 17aa260703 MFH: Tests for ext/ldap from PHPBelgium TestFest 2009-07-03 09:21:31 +00:00
Ulf Wendel f31fc6df21 MFH. Global s/ini_get('unicode.semantics')/version check/ . Early PHP 6 times are gone. I hope unicode logic will not change any more 2009-07-03 08:42:46 +00:00
Ulf Wendel 26e9c79d4c MFH. Fixing borked test, again new run-tests.php has found it... Fails with HEAD, passes with 5.3 2009-07-03 08:25:25 +00:00
Jani Taskinen a6cbd01d99 - Fixed bug #48782 (CFLAGS killed during configure) 2009-07-03 07:59:53 +00:00
Ulf Wendel 5ac0398f73 MFH. Fixing borked test - thanks again new run-tests.php tool (and team). 2009-07-03 07:50:10 +00:00
Felipe Pena 8715a7f12e - New tests (DutchUG testfest) 2009-07-03 00:09:08 +00:00
Stanislav Malyshev 9937006ac5 bugfix 2009-07-02 22:36:16 +00:00
Ilia Alshanetsky 305f4984d2 MFB: Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns
on files that have been opened with r+).
2009-07-02 13:42:16 +00:00
Lukas Smith 84dcca9f48 MFH: removed references to track_vars, since this option doesnt exist since ages 2009-07-02 13:34:38 +00:00
Ulf Wendel 5147f6cf8d MFH. Adding CLEAN sections, fixing some SKIPIF sections. Cool new run-tests.php, Zoe (and other) - its a great help to detect stinky SKIPIF and CLEAN 2009-07-02 10:05:37 +00:00
Gwynne Raskind 9adf2ed4aa call-time pass-by-reference is deprecated in 5.3 2009-07-02 10:05:15 +00:00
Gwynne Raskind bfad6f6cee Don't use short tags in tests 2009-07-02 10:03:14 +00:00
Gwynne Raskind b26cd6839a Fixed a stray 'in the test 2009-07-02 10:02:38 +00:00
Ulf Wendel ed05c54d2e MFH - Test for bug #48754 2009-07-02 07:42:48 +00:00
Stanislav Malyshev b755935771 cleanup Locale::lookup 2009-07-02 00:43:26 +00:00
Felipe Pena 634f233cc0 - MFH: New tests (NorwayUG testfest) 2009-07-02 00:04:52 +00:00
Stanislav Malyshev 838d359641 typo 2009-07-01 20:31:26 +00:00
Kalle Sommer Nielsen dc69d9228a MFH: Fix test on Windows 2009-07-01 20:27:11 +00:00
Stanislav Malyshev 96f2a45df3 update API files 2009-07-01 20:25:38 +00:00
Stanislav Malyshev 09c10856f6 fix proto 2009-07-01 20:17:31 +00:00
Kalle Sommer Nielsen 485f28aae9 MFH: Fixed #45280 (Reflection of instantiated COM classes causes PHP to crash) (Paul Richards, Kalle) 2009-07-01 18:44:56 +00:00
Kalle Sommer Nielsen e536b2700a MFH: Fixed memory leak if zero parameters are passed, Thanks Felipe 2009-07-01 17:43:16 +00:00
Kalle Sommer Nielsen 937809f447 BFN #48757 2009-07-01 17:38:52 +00:00
Kalle Sommer Nielsen 21d61978dc MFH: Fixed bug #48757 (ReflectionFunction::invoke() parameter issues) 2009-07-01 17:38:03 +00:00
Ulf Wendel b6bd0f6806 MFH - Changing tests to run with both PHP 6 and PHP 5.3 to make future MFH easier. Basically three changes over all files: a) s/unicode(/%unicode|string% b) s/[u/[%u|b% c) s/unicode.semantics/version_compare 2009-07-01 15:33:31 +00:00
Ulf Wendel b5455f7a7d MFH - Adding XFAIL for some tests which expect the zval cache of mysqlnd to be on. It has been disabled for the PHP 5.3.0 release. Adding INI sections to ensure that statistics are collected. Adding tests that check if statistics collection can be disabled 2009-07-01 12:52:58 +00:00
Felipe Pena d9061f95fa - Fix test 2009-07-01 12:15:00 +00:00
Felipe Pena 3d7b3c8bb2 - Fixed tests 2009-07-01 02:32:55 +00:00
Felipe Pena db6f5e67a8 - MFH: New tests (SaoPaulo UG testfest) 2009-07-01 00:56:01 +00:00
Stanislav Malyshev 2361b4ea2a fix json shared build on Windows 2009-06-30 17:52:21 +00:00
Christian Seiler b4a43d0d94 MFH: spl_autoload_unregister/spl_autoload_functions and closures 2009-06-30 17:14:37 +00:00
Derick Rethans 9dfb40ea8c - MFH: Fixed bug #47351 (Memory leak in DateTime). 2009-06-30 16:17:30 +00:00
Greg Beaver 5dd3306551 fixed bug #48681 (openssl signature verification for tar archives broken) 2009-06-30 14:49:12 +00:00
Lukas Smith 74b8bc2e99 MFH: expanded the section about how to create the changelog 2009-06-30 14:24:25 +00:00
Scott MacVicar 27a1ce801c MFH Fix bug #48284 - adler32 is in the wrong order. Changed to match what zlib produces. 2009-06-30 13:21:53 +00:00
Ilia Alshanetsky ae2c5ee7d4 MFB: Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent when using
TMPDIR).
2009-06-30 12:20:35 +00:00
Felipe Pena 0e294f2121 - MFH: Fixed bug #48709 (metaphone and 'wh') 2009-06-30 11:46:20 +00:00
Kalle Sommer Nielsen 51f8b64752 MFH: Fixed bug #38091 (Mail() does not use FQDN when sending SMTP helo)
# Note, this does not go in 5.2 because the inet ports for VC6 are not in that branch
2009-06-30 11:39:15 +00:00
Felipe Pena aafaa9c019 - New test 2009-06-30 11:37:42 +00:00
Lukas Smith f0a55e20d5 MFH: formatting fix for the re-releasing section 2009-06-30 11:37:24 +00:00
Felipe Pena 5a8169902a - MFH: Fixed bug #48709 (metaphone and 'wh') 2009-06-30 11:34:31 +00:00
Scott MacVicar ded5d566ad MFH Upgrade libsqlite to 3.6.16, fixes a possible error with triggers 2009-06-30 11:17:14 +00:00
Johannes Schlüter 52c9cad8e4 Back to -dev 2009-06-29 16:33:25 +00:00
Johannes Schlüter ba04122ae2 Fix grammar (thanks Christian Hoffmann) 2009-06-29 13:04:29 +00:00
Johannes Schlüter e6646ab7cf The php.ini files we ship were renamed 2009-06-29 10:03:24 +00:00
Johannes Schlüter d4671b904d Improve wording and drop outdated link 2009-06-29 09:37:06 +00:00
Johannes Schlüter dec83ec4d2 MFH: Fixed bug #48539 (pdo_dblib fails to connect, throws empty PDOException
"SQLSTATE[] (null)")  (Felipe)
2009-06-29 09:36:03 +00:00
andy wharmby d73094aed4 Basic test for max() on 64 bit platforms. Tested on Linux 64 bit 2009-06-29 07:52:23 +00:00
andy wharmby 54ba44da0a Fix tests 2009-06-29 07:45:11 +00:00
andy wharmby 93a16cf13a Basic tests for sleep() and usleep(). Tested on Windows, Linux and Linux 64 bit 2009-06-29 07:31:10 +00:00
Johannes Schlüter 81761e636d Fix path 2009-06-28 21:52:51 +00:00
Johannes Schlüter ccb33c060f MFH Add missing ini entries (Mikko) 2009-06-28 17:56:18 +00:00
Johannes Schlüter 6d68dbc331 MFH: Add ibase settings 2009-06-28 16:41:17 +00:00
Johannes Schlüter db256c502e Drop debug switches from UPGRADING, they need --enable-debug and aren't ment for users 2009-06-28 16:14:30 +00:00
Johannes Schlüter 3840317d40 MFH: Add two ini settings and remove ini setting which is commented out in code 2009-06-28 15:56:19 +00:00
Johannes Schlüter 79e1cf2fe0 MFH: fix typo 2009-06-28 15:29:24 +00:00
Johannes Schlüter c9fa89534c MFH: Add missing MySQL entries 2009-06-28 15:21:19 +00:00
Christopher Jones b44e08d1e5 Record "new" ini param 2009-06-28 14:31:12 +00:00
Pierre Joye a68f6c9c28 - fix build 2009-06-28 12:04:44 +00:00
Pierre Joye f403bd2128 - MFH: fix regression introduced by the fix for #48518 (Ilia, Rasmus) 2009-06-28 09:50:14 +00:00
Pierre Joye 25c47a2522 - MF52: calloc must actually clear the requested size (Andrei) 2009-06-28 09:48:48 +00:00
Hannes Magnusson c3003002f7 Group the open_basedir entries 2009-06-27 13:33:20 +00:00
Hannes Magnusson 3ca8e5ab0f - Remove outdated version information
- Remove no-longer-existing windows dll (there could be more..)
- List missing INI directives (need to add descriptions to them and sort
  them correctly..)
2009-06-27 13:29:53 +00:00
Hannes Magnusson f88d938dfb - Added missing deprecated things
- Added missing INI settings
2009-06-27 13:23:03 +00:00
Jani Taskinen 2498962223 - clean 2009-06-26 22:18:30 +00:00
Kalle Sommer Nielsen 6f429dfccb Seems like this wasn't merged, re-add credit for Pierre here 2009-06-26 20:39:36 +00:00
Johannes Schlüter 4b4283bdc0 Bump version to 5.3.0 and API Nos. up 2009-06-26 15:44:19 +00:00
Johannes Schlüter e1ae933031 Fix trouble with memory alignment on Sparch, see #48668 (David) 2009-06-26 15:42:11 +00:00
Christopher Jones 30fce08b23 Clarifications for oci8 changes 2009-06-26 15:15:02 +00:00
Matt Wilmas c860c9896e Typo, capitalization, wording 2009-06-26 12:24:20 +00:00
Gwynne Raskind bdc3d68061 more grammar and spelling, consistent usage, suggestions for replacements 2009-06-26 11:56:51 +00:00
Hannes Magnusson f36cb429f4 Add deprecated functions 2009-06-26 10:46:50 +00:00
Pierre Joye aaae921225 - update the windows section 2009-06-26 10:20:22 +00:00
Johannes Schlüter b13ed4ea93 Fix the version number there 2009-06-26 09:32:54 +00:00
Pierre Joye db129f6e54 - some updates, typos, missing entries 2009-06-26 08:48:36 +00:00
Johannes Schlüter e782d1820b Merge 5.3.0 NEWS 2009-06-26 08:12:13 +00:00
Pierre Joye 5f2df5d064 - WS 2009-06-26 07:39:42 +00:00
Pierre Joye 68a3c3f952 - add license 2009-06-26 07:24:41 +00:00
Johannes Schlüter 9485cad688 Revert mysqlnd to RC3 state after issues with pconnects 2009-06-25 19:03:52 +00:00
Kalle Sommer Nielsen ca1bda67f2 Persistent connections with mysqli missing 2009-06-25 18:17:52 +00:00
Hannes Magnusson 43f939fae0 reduntant 2009-06-25 18:04:35 +00:00
Hannes Magnusson ceac7e4370 More missing stuff 2009-06-25 18:01:08 +00:00
Gwynne Raskind 307a90caa3 missing .cvsignore file added 2009-06-25 16:18:24 +00:00
Felipe Pena c8cb2b4e10 - BFN #48696 2009-06-25 16:16:08 +00:00
Johannes Schlüter 144ff4d6b3 MFH: Fixed bug #48696 (ldap_read() segfaults with invalid parameters) (Felipe) 2009-06-25 15:19:29 +00:00
Johannes Schlüter 6354376924 MFH: Fixed bug #48678 (DateInterval segfaults when unserialising (Ilia) 2009-06-25 15:07:36 +00:00
Felipe Pena f03c5db12e - Added note about deprecation of "#" comment-style in .INI files 2009-06-25 14:56:14 +00:00
Zoe Slattery b2bc4dd331 fix skipif 2009-06-25 14:44:01 +00:00
Matt Wilmas 57b543ee6f Fix example - it means what it says 2009-06-25 13:00:08 +00:00
Zoe Slattery 8e972386f0 fix skipif 2009-06-25 12:36:46 +00:00
Gwynne Raskind ac564608bd fix a little typo I made, bug #48685 2009-06-25 10:41:07 +00:00
Johannes Schlüter 84940122a9 MFH Fix bug #48679 - Crash in SQLite with count on an unbuffered query set (Scott) 2009-06-25 09:38:04 +00:00
Gwynne Raskind e01ff47c43 Whitespace fixes, reformatting to bring all lines to 80 cols, grammatical fixes, removed redundant information 2009-06-25 07:57:05 +00:00
Johannes Schlüter 9f9895b34d Make clearer that thesse are internal functions 2009-06-24 22:26:56 +00:00
Greg Beaver 2c924e2848 fix slightly unclear error message in generation of phar.phar 2009-06-24 22:12:47 +00:00
Hannes Magnusson 60835e3051 Missing enhancements 2009-06-24 21:16:53 +00:00
Ilia Alshanetsky 00d0ecda10 Revert patch 2009-06-24 20:08:54 +00:00
Felipe Pena e67b4072e0 BFN 2009-06-24 17:43:09 +00:00
Felipe Pena caf8d811ef - MFH: Fixed memleak when depth arg is less than zero 2009-06-24 17:39:52 +00:00
Ilia Alshanetsky c0aa23fd86 MFB: Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent when using
TMPDIR).
2009-06-24 12:21:45 +00:00
Pierre Joye b8f295a6d3 - add readme.redist.bins as .txt 2009-06-24 11:51:05 +00:00
Pierre Joye 4092360764 -add licenses info for bundled libs, codes merged from other projects, etc., information for binary distributions (windows, linux, etc.) 2009-06-24 11:46:29 +00:00
Pierre Joye 1f10584566 - add license info 2009-06-24 11:44:46 +00:00
Dmitry Stogov e583ce82ec Fixed bug #48643 (String functions memory issue) 2009-06-24 08:53:18 +00:00
Jani Taskinen a8e42c91b0 MFH:- Fixed bug #48661 (phpize broken with non-bash shells) 2009-06-24 07:42:33 +00:00
andy wharmby 0fbf8cebd7 Fix test 2009-06-23 23:00:55 +00:00
andy wharmby 3aaaf77a0e New and fixed html tests. Tested in Windows, Linux and Linux 64. 2009-06-23 22:45:31 +00:00
andy wharmby e6f4ec2f07 New basic parse_str() tests. Tested on Windows,Linux and Lnux 64 bit. Some tests fail on PHP 6 (tagged with XFAIL) due to bug 48658 2009-06-23 22:39:44 +00:00
Hannes Magnusson 0fa4242464 Missing items 2009-06-23 19:40:31 +00:00
Johannes Schlüter aded4474fc MFH: Fix build problem (Kalle) 2009-06-23 18:14:27 +00:00
David Soria Parra 4d7e6edd63 MFH: Fix bug #48644 mysqlnd does not compile with '--enable-mysqlnd-threading' 2009-06-23 14:15:28 +00:00
Hannes Magnusson f3d8a9ad0d MFH: Fix arginfo for libxml_disable_entity_loader() and libxml_use_internal_errors() 2009-06-23 13:44:24 +00:00
Hannes Magnusson 83855c0ce7 better place for it 2009-06-23 13:37:35 +00:00
Hannes Magnusson 85cb296a09 TZ is no longer used to guess the timezone 2009-06-23 13:33:26 +00:00
Johannes Schlüter 86eaa90955 MFH The experimental warning sohuld be in the configure output... 2009-06-23 13:19:28 +00:00
Johannes Schlüter 96d5c5e931 The json header should be installed so other exts can use it 2009-06-23 13:09:34 +00:00
Hannes Magnusson 6b3f0cfc54 New function 2009-06-23 11:13:05 +00:00
Rob Richards f7b30e6578 MFH: add libxml_disable_entity_loader function 2009-06-23 10:50:09 +00:00
Kalle Sommer Nielsen 220c68d54a MFH: Move these defines to config.w32.h
Also credit Pierre for the inet_ntop()/inet_pton() implementations
2009-06-23 06:56:45 +00:00
Kalle Sommer Nielsen 3410350caa MFH:
Use %* instead of a range + WS
2009-06-23 02:14:27 +00:00
Kalle Sommer Nielsen 1f5e20c33e MFH:
* Fix deprecation warning when building deplister
* Fix some mkdir warnings if "nmake build-dist" is executed twice
2009-06-23 01:37:23 +00:00
Pierre Joye a1c1dd6ba1 - gd compat mode news 2009-06-22 22:14:37 +00:00
Pierre Joye 8a2e38ebdf - #48624 2009-06-22 21:39:36 +00:00
Takeshi Abe aa85d1dbc1 moved to PHP_5_2 2009-06-22 15:51:49 +00:00
Ilia Alshanetsky 1c4dafd84d Revert unrelated bits to the previous commit 2009-06-22 14:24:27 +00:00
Pierre Joye a7db554314 - #48624 .user.ini never gets parsed 2009-06-22 14:10:40 +00:00
Pierre Joye d1fb4d2da4 - #48619, imap_search ALL segfaults 2009-06-22 14:09:55 +00:00
Ilia Alshanetsky bc8e357482 MFB: Fixed bug #48636 (Error compiling of ext/date on netware). 2009-06-22 13:43:14 +00:00
Felipe Pena 58c717ff8f - BFN #48641 (I missed to add in the previous commit: patch by crrodriguez at opensuse dot org) :P 2009-06-22 11:44:49 +00:00
Felipe Pena 56d7a43f00 - Fixed bug #48641 (tmpfile() uses old parameter parsing) 2009-06-22 11:37:30 +00:00
Hannes Magnusson b3e9695a65 Sync with docs 2009-06-22 10:30:23 +00:00
Scott MacVicar 96be32d8ca BFN - Partially fixed in RC4, fixed properly in the next release. 2009-06-21 22:38:49 +00:00
Scott MacVicar c63b6f5d8a MFH Specific test for bug #48276 2009-06-21 22:31:41 +00:00
Scott MacVicar 25715c7660 MFH Fix bug #48276 - year is a long long so we need %lld so big endian systems print the correct value. 2009-06-21 22:19:11 +00:00
Hannes Magnusson b293b35eaa Fix proto and arginfo 2009-06-21 20:40:53 +00:00
Hannes Magnusson 6b107d99be Fixed bug#48485 (Error in documentation and upgrade guide) 2009-06-21 18:34:50 +00:00
andy wharmby ee726e4497 New lang tests. 2009-06-21 17:42:15 +00:00
Johannes Schlüter 47be72139d MFH: It's 2009 2009-06-21 16:44:50 +00:00
Ilia Alshanetsky 0ce6b61e04 BFN 2009-06-21 15:30:57 +00:00
Ilia Alshanetsky 81e5787949 Fixed bug #48620 (X-PHP-Originating-Script assumes no trailing CRLF in
existing headers)
2009-06-21 15:29:16 +00:00
Johannes Schlüter ef9c23468c Merge in NEWS from 5.2 2009-06-21 11:50:37 +00:00
Takeshi Abe f1c919496b entry for bug #48555 2009-06-21 06:29:41 +00:00
Takeshi Abe c84e4181b4 MFH: fixed bug #48555 (ImageFTBBox() differs from previous versions for texts with new lines) 2009-06-21 06:09:46 +00:00
Kalle Sommer Nielsen c2131f8efb Fixed typo, its fdf, not fPdf 2009-06-21 05:41:08 +00:00
Kalle Sommer Nielsen c25893731b Missing Windows constants 2009-06-21 05:29:01 +00:00
Kalle Sommer Nielsen 97d35803d7 get_extension_funcs have been in PHP since php4 2009-06-21 01:49:52 +00:00
Kalle Sommer Nielsen 9fef343050 MFH: Fixed arginfo for array_map, patch by Matthew Fonda <matthewfonda@gmail.com> 2009-06-20 06:07:35 +00:00
Kalle Sommer Nielsen 17459bac7d MFH: Fix memleak 2009-06-19 22:15:28 +00:00
Scott MacVicar d976be4bda Make the check case sensitive, and since we can only have a constructor that matches the class name or is __construct
its probably safe to just check for __. This means we can skip lowering the function_name, which is hard to be binary
safe sine we don't store the length.

If we just did a zend_hash_exists lookup we'd be fine since its stored lowercased already :)
2009-06-19 03:29:47 +00:00
andy wharmby e64f0795e1 Fix test; remove spurious code 2009-06-18 21:53:17 +00:00
andy wharmby 7c7dd8b712 Basic tests for strftime(). Tested on Windows (all tests skip), Linux and Liinux 64 bit 2009-06-18 21:14:15 +00:00
Johannes Schlüter 9851acba7b Back to dev 2009-06-18 21:07:08 +00:00
andy wharmby 1e119743a5 Backport ob test to php 5.2 and 53. 2009-06-18 21:03:00 +00:00
Johannes Schlüter ff1bf7f766 5.3.0 RC 4 2009-06-18 21:01:03 +00:00
Greg Beaver 645226d19b fix EXPECT section of test 2009-06-18 18:12:04 +00:00
Johannes Schlüter 067276a043 Temporarily disable this optimization causing too much trouble, kept in HEAD 2009-06-18 15:07:23 +00:00
Scott MacVicar 8e3aebd550 Fix bug #48215 - Calling a method with the same name as the parent class calls the constructor instead. 2009-06-18 13:46:16 +00:00
Derick Rethans b2d3c2bf18 - Updated to version 2009.10 (2009j) 2009-06-18 09:02:51 +00:00
Zoe Slattery b928d971b5 Tests from Berlin test fest 2009-06-18 07:29:09 +00:00
Rasmus Lerdorf 269df474bf Ah, broken vimrc.. 2009-06-18 06:38:30 +00:00
Rasmus Lerdorf e70abda281 Fix bug #48592 2009-06-18 06:32:38 +00:00
Jani Taskinen dabcff916d Pierre, this can not be so hard 2009-06-17 22:51:05 +00:00
Jani Taskinen 8c7c7de858 unfuck the file, fucked up by Pierre as usual 2009-06-17 22:50:18 +00:00
Felipe Pena 7ef7c93849 - Reorder 2009-06-17 19:55:32 +00:00
Pierre Joye 99b0b22582 - fix NEWS (thx Felipe!) 2009-06-17 19:42:56 +00:00
Pierre Joye 27ea6ef77f - update with latest bits 2009-06-17 19:40:33 +00:00
Pierre Joye 6086c0866c - kill unused var 2009-06-17 19:28:52 +00:00
Pierre Joye f2457fbd56 - #47318, UMR when trying to activate user config 2009-06-17 19:22:24 +00:00
andy wharmby e5b5f13b79 New test for standard object compare handler. Tested on Windows, Linux and Linux 64 2009-06-17 19:15:19 +00:00
andy wharmby fb3132f502 New foreach tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-17 19:07:17 +00:00
Hannes Magnusson b685def15a MFB5.2: "Make this happy on gcc2" 2009-06-17 17:56:17 +00:00
Felipe Pena 31f64d6943 BFN #48578 2009-06-17 16:22:14 +00:00
Andrey Hristov 0aada07656 MFH:
Fix two problems:
- The value of mysqli_get_client_info() has been changed recently and did
not include "mysqlnd" anymore thus the test suite was thinking the build
is always libmysql. This did not kept the suite from running pconn tests
- Going back to the libc allocator because the memory arena could be on a
  persistent connections. If the build is not debug there will be no error
  but the memory will be freed and in the second use of this pconn freed
  memory will be used - not good! For now the arena doesn't take an argument
  whether it should allocate persistently or not, thus persistent is safe
  for now.

Johannes gave his +1 to commit this.
2009-06-17 16:22:13 +00:00
Felipe Pena 219c2603bb - MFH: Fixed bug #48578 (Can't build 5.3 on FBSD 4.11) (Rasmus) 2009-06-17 16:20:04 +00:00
Scott MacVicar 3e58e86d01 MFH Add SplDoublyLinkedList::prev() and fix a memory leak when the iterator pointer isn't at the end 2009-06-17 13:27:09 +00:00
Robin Fernandes 73cd7e83ee Additional class related tests. 2009-06-17 10:38:25 +00:00
Hannes Magnusson d535dec2e0 fix skipif 2009-06-17 10:18:17 +00:00
Hannes Magnusson 9900d2097c fix skipif 2009-06-17 10:14:25 +00:00
Pierre Joye 02fe289540 - fix test 2009-06-17 10:10:19 +00:00
Pierre Joye f399abb610 - missing --SKIPIF-- header 2009-06-17 10:08:01 +00:00
Rasmus Lerdorf a7cc9e7274 Need the gcc version check here too 2009-06-17 08:55:23 +00:00
Pierre Joye 2e08b57ee6 - fix build when IO_REPARSE_TAG_SYMLINK is not defined (works with 2k+) 2009-06-16 21:54:12 +00:00
Felipe Pena ef55a8a663 - Fixed tests 2009-06-16 19:49:55 +00:00
andy wharmby d7072fa367 New strcoll error test. Tested on Windows, Linux and Linux 64. 2009-06-16 19:39:39 +00:00
Andrey Hristov 30800a79b9 MFH: C-comments 2009-06-16 18:00:00 +00:00
Pierre Joye 5a3efd5b78 - fix readlink in TS SAPI 2009-06-16 16:50:13 +00:00
Rasmus Lerdorf f90425316a Tweak to make this compile with gcc2 2009-06-16 16:10:15 +00:00
Felipe Pena f9bb99055e - MFH: Fixed build (removed trailing comma) patch by Seiji Masugata <s.masugata at digicom.dnp.co.jp> 2009-06-16 14:33:33 +00:00
Andrey Hristov 10ee06ca48 MFH:
Memory usage optimisation. mysqlnd is not libmysql. mysqlnd does use the
Zend allocator, which means that is easier to hit memory_limit if you
have big stored (buffered) result sets. Before with libmysql you won't
hit memory_limit because libmysql uses libc's allocator and nothing is
checked. Now, with mysqlnd the situation is stricter and it is easier to
hit memory_limit. We try to optimize for big result sets. If a result set
is larger than 10 rows we will start freeing some data to keep memory usage
after 10 rows constant. This will help in the cases where a buffered result
set is scrolled forward only and just only once, or mysqlnd will need to
decode data from the network buffers again - yes, it is a trade-off between
CPU time and memory size. The best for big result sets is of course using
unbuffered queries - for comparison : 3 Million rows with buffered take
at least 180MB, with buffered you will stay at 3MB, and unbuffered will be
just 7-8% slower.
2009-06-16 13:07:14 +00:00
Ilia Alshanetsky 34842709d6 Fixed test 2009-06-16 12:40:59 +00:00
andy wharmby c731b2287f Fix typo in test 2009-06-16 11:37:13 +00:00
Pierre Joye b4cf9d80d4 - fix title 2009-06-16 10:37:59 +00:00
Pierre Joye 1a69c562bd - fix title 2009-06-16 10:37:30 +00:00
Andrey Hristov 27270621cb MFH:
Hardwire function call instead of using callbacks. We don't actually need
callbacks, it was done for making 2 functions static, not to pollute the
global functions space but that had its price of 8 bytes overheat per
allocation, which is just too much. Also making the app member 32b instead
of 64b, which should save additional 4 byte, to the total of 12 byte per
allocation of a row buffer.
2009-06-16 09:15:38 +00:00
andy wharmby f0f302fe7f New class related tests. Tested on Windows, Linux and Linux 64. Tests written by Iain Lewis 2009-06-16 08:59:39 +00:00
Andrey Hristov a2acaa7fcd MFH:
Use Zend's allocator instead of libc's and also don't try to work on
zvals that are NULLs.
2009-06-16 07:53:35 +00:00
Felipe Pena c353601a3f - MFH: Fixed bug #48562 (Reference recursion causes segfault when used in wddx_serialize_vars()) 2009-06-16 02:54:26 +00:00
Pierre Joye 8e76db4aa7 - revert last commit, should not have been applied 2009-06-16 00:17:56 +00:00
Pierre Joye a5302d870d - #47767, include_once does not resolve windows symlinks or junctions 2009-06-16 00:13:56 +00:00
Pierre Joye 18d5751a9e - Windows ACL cache support, update existing tests and add a new one 2009-06-16 00:07:05 +00:00
Felipe Pena da9b80e309 - Drop unused code 2009-06-15 17:56:08 +00:00
andy wharmby fcbfe08d60 New test for bitwise operators. Tested on Linux 64 bit 2009-06-15 17:38:44 +00:00
andy wharmby d8ce08a24b Move tests to correct directory 2009-06-15 17:34:40 +00:00
Felipe Pena aa8811982e - MFH: Fixed bug #48557 (Numeric string keys in Apache Hashmaps are not cast to integers) patch by David Zülke <david.zuelke at bitextender.com> 2009-06-15 17:31:02 +00:00
Patrick Allaert f78a0b585c MFH: Fixing #48441 (ldap_search() with sizelimit/timelimit/deref options makes those options persistent) 2009-06-15 15:18:31 +00:00
Pierre Joye c06884c960 - add TODO about int definition cleanup 2009-06-15 15:08:12 +00:00
Patrick Allaert 91a8fd7f7e MFH: Refactoring that will help fixing #48441 2009-06-15 15:04:11 +00:00
Pierre Joye 60223d6a6d - #48535, file_exists returns false when impersonate is used 2009-06-15 15:01:01 +00:00
Pierre Joye 2db291e728 - MFH: simplify, use correct type and silent warnings 2009-06-15 14:47:15 +00:00
Scott MacVicar fdfc7d05e7 BFN 2009-06-15 13:41:42 +00:00
Scott MacVicar 532674945c MFH sync SQLite 3.6.15 2009-06-15 13:23:59 +00:00
Ilia Alshanetsky bb55de47cd Simplify original fix for bug #33475 2009-06-15 12:37:37 +00:00
andy wharmby 4a110443df New POSIX extension tests from Berlin UG TestFest 2009. 2009-06-15 12:14:55 +00:00
Pierre Joye e52e1fab4c - silent warning 2009-06-15 08:32:38 +00:00
Philip Olson 380dededf4 Synced with the wiki 2009-06-14 19:15:57 +00:00
Philip Olson 7593f572ea Remove unused file (see file UPGRADING for the 5.2->5.3 guide) 2009-06-14 17:56:07 +00:00
andy wharmby 3fd133bcf3 Backport ob test to php 5.2 and 53. 2009-06-14 16:47:11 +00:00
andy wharmby 1888c718cb New foreach tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-14 14:17:43 +00:00
andy wharmby ceca4f3615 Basic tests for function_exists() and get_defined_functions(). Tested on Windows, Linux and Linux 64 bit. 2009-06-14 13:49:16 +00:00
Ilia Alshanetsky 1c8d05069e MFB: Fixed bug #48512 (DOMDocument::validate() fails with both a E_NOTICE
and E_WARN if no DTD)
2009-06-14 13:13:35 +00:00
andy wharmby a6735b8b24 New json extension tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-14 12:08:27 +00:00
Greg Beaver 8fc5746d0e remove missing erealloc entry that will go in php 5.2 NEWS 2009-06-13 17:34:21 +00:00
Greg Beaver 79d05eac0d fix Bug #48541: spl_autoload_register only registers first closure, then leaks the others. Fix missing erealloc in fix for bug #40091 (PHP_5_3 only) 2009-06-13 17:30:50 +00:00
Greg Beaver df07072f7c fix criminally unclear NEWS entry by me 2009-06-13 16:43:04 +00:00
andy wharmby 642b84cd83 New iconv extension tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-13 12:17:42 +00:00
Felipe Pena 2cb9fe1f89 - Constified method_name arg. in zend_get_user_call_function() and zend_get_user_callstatic_function() 2009-06-12 21:36:53 +00:00
Felipe Pena f9b9765ed0 - MFH: Fixed bug #48514 (cURL extension uses same resource name for simple and multi APIs) 2009-06-12 20:48:28 +00:00
andy wharmby 092562b263 New iconv extension tests. Tested on Windows, Linux and Linux 64 bit. 2009-06-12 18:57:09 +00:00
andy wharmby c48a3ddea8 New iconv extension tests. Tested on Windows, Linux and Linux 64 bit 2009-06-12 17:16:01 +00:00
Kalle Sommer Nielsen 5c2a979522 MFH: Fixed static build of mbstring on Windows (makes static build of exif possible too) 2009-06-12 16:15:51 +00:00
Felipe Pena 61d723a359 - Dropped unnecessary var 2009-06-12 14:03:35 +00:00
Andrey Hristov 22c8786493 MFH:
Fix crash when tracing is enabled. Position after buffer was used also
direct usage of MYSQLND_STRING pointer instead of the "s" property of the
structure.
2009-06-12 13:24:57 +00:00
Felipe Pena 5f8ca6da95 MFH: Fixed bug #48533 (__callStatic is not invoked for private/protected methods) 2009-06-12 01:05:25 +00:00
andy wharmby c8ead0cd61 Delete duplicate test 2009-06-11 23:04:35 +00:00
andy wharmby 791b526c67 New intval() tests. Tested on Windows, Linux and linux 64 2009-06-11 22:26:51 +00:00
andy wharmby 1386f796d2 New 64 bit math tests. Tested on Windows, Linux and Linux 64 bit. Tests authored by Dave Kelsey 2009-06-11 21:17:00 +00:00
andy wharmby 13dce00cdf Add/Fix SKIPIF sections of cURL tests 2009-06-11 21:11:20 +00:00
Andrey Hristov 9a2cc0ce67 Put these in an ifdef because they are not used at all if the zval cache
is off.
2009-06-11 17:54:04 +00:00
Greg Beaver 4016894486 update NEWS about phar.phar on windows 2009-06-11 14:40:43 +00:00
Greg Beaver f7246e2086 add phar.phar creation on windows 2009-06-11 14:39:37 +00:00
Pierre Joye f2fcd8fb29 - silent warning and make it less ambiguous 2009-06-11 14:36:48 +00:00
andy wharmby ec0cff39c7 New POISX tests. Tested on Windows (all test SKIP), Linux and Linux 64 2009-06-11 12:31:00 +00:00
Johannes Schlüter 11340cf299 MFH: Use a better extension version 2009-06-11 10:18:08 +00:00
Antony Dovgal efa7b5c4c8 MFH: fix bug #48518 (curl crashes when writing into invalid file handle) 2009-06-11 09:46:43 +00:00
Antony Dovgal 0c8e557621 reapply the fix 2009-06-11 09:43:59 +00:00
Hannes Magnusson 4ed202e185 MFH: Mark spl as required and fix extension loading order
# Not needed in 5.2 as the simplexmliterator is part of spl there
2009-06-11 09:41:15 +00:00
Andrey Hristov 28c8d25dca MFH:
Protect the code when variable is NULL, which should never happen, but
anyway, you know about "never happens" :)
2009-06-11 08:52:06 +00:00
Andrey Hristov cff09ba5df MFH:
Check the pointer before calling a function on it, or we will crash.
  This is a very rare situation where the server is totally broken.
2009-06-11 08:35:47 +00:00
Andrey Hristov a3b85c28c6 Sync with PHP6 - TSRMLS_FETCH
Extract reference decrement in own function
Remove PHPAPI of a function and make it static as it is not called
externally
2009-06-11 08:30:08 +00:00
Felipe Pena 8da7275f1b - MFH: Fix the fix (Bug #46973 - IPv6 address filter rejects valid address) 2009-06-10 19:01:17 +00:00
Johannes Schlüter a8f3eeefe8 back to -dev 2009-06-10 18:39:15 +00:00
Johannes Schlüter 10d976d225 5.3.0RC3 2009-06-10 18:18:43 +00:00
Johannes Schlüter 32f91ba388 MFH Hannes said this shall not be run for RCs 2009-06-10 18:15:22 +00:00
Pierre Joye 1cc5bc31b9 - check for static lib as well 2009-06-10 15:44:51 +00:00
Antony Dovgal ea8d871a01 revert the fix for a while 2009-06-10 11:53:58 +00:00
Antony Dovgal 029f42dc63 MFH: fix arginfo for curl_multi_info_read() 2009-06-10 11:10:01 +00:00
Pierre Joye dfb8717c1e - put mpir headers in their own directory 2009-06-10 09:59:21 +00:00
andy wharmby c0977c826e Fix test - remove bogus variation 2009-06-09 20:18:31 +00:00
Pierre Joye efb976cd2c - missing ACL entry 2009-06-09 16:38:17 +00:00
Pierre Joye 2276bc5188 - #41874 2009-06-09 14:10:08 +00:00
David Soria Parra 368569c05b MFH: Fix bug #47042 (cgi sapi is incorrectly removing the SCRIPT_FILENAME for non apache).
The fix was provided by Sriram Natarajan.
2009-06-09 13:31:39 +00:00
Pierre Joye ba79cd5a23 - fix build (void alarm) 2009-06-09 09:26:02 +00:00
Pierre Joye 64934cf360 - missing include 2009-06-09 09:25:18 +00:00
Scott MacVicar 2d96aa5b22 BFN 2009-06-09 02:00:46 +00:00
Scott MacVicar fc8426ad31 MFH Fix bug #48493 - spl_autoload_register can leave the HT in an inconsistent way.
Need to point the second elements previous item to head so we can traverse upwards.
2009-06-09 01:58:07 +00:00
Scott MacVicar cf1a08e317 Move entry to 5.2 2009-06-09 00:42:51 +00:00
Pierre Joye 49666eece6 #41874, separate STDOUT and STDERR in exec functions 2009-06-09 00:25:37 +00:00
Pierre Joye c59a4a0173 - typo 2009-06-08 21:27:05 +00:00
Derick Rethans 6421bb34f8 - Updated to version 2009.9 (2009i) 2009-06-08 13:53:34 +00:00
Ilia Alshanetsky ae5a233a62 Fixed test 2009-06-08 12:31:08 +00:00
Robert Nicholson e592b4fd15 New tests for operators. These tests were auto generated to verify correctness for a number of significant values. The work was done by Dave Kelsey. 2009-06-08 11:59:32 +00:00
Andrey Hristov ec777b89f4 Merge with HEAD. Someone committed changes to HEAD and did not merge back to
the branch.
Also switch off the zval cache, for now.
2009-06-08 10:20:27 +00:00
Pierre Joye 4cb1d57fd5 - sync with 1.0.2, improve perf x86-64 (patch by Solar Designer) 2009-06-08 08:44:15 +00:00
Scott MacVicar 40521699ce MFH make SQLite3::enableExceptions() return the previous value. 2009-06-08 02:15:54 +00:00
Ilia Alshanetsky 5289261baa Fixed bug #44827 (define() is missing error checks for class constants) 2009-06-08 01:26:03 +00:00
Patrick Allaert 4aca43008f MFH: Removed credit 2009-06-07 21:27:19 +00:00
Robert Nicholson 176012df22 New tests for foreach loops. These were written by another member of the Projectzero team. 2009-06-07 21:03:48 +00:00
Matt Wilmas dca18b68d1 MFH: Fixed bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value)
Also simplified related array_push() test
2009-06-07 19:28:15 +00:00
Matt Wilmas 2462fce244 MFH: Changed error messages to use "cannot" instead of "can not" (meaning "also can") 2009-06-07 15:46:54 +00:00
Patrick Allaert 10b559c28c MFH: Fixed bug #48469 (ldap_get_entries() memory leaks on empty search results) 2009-06-07 13:07:58 +00:00
Matt Wilmas 1fa3b21c15 MFH: Fixed error message grammar:
- "cannot" instead of "can not" (meaning "also can")
 - "than" instead of "then" (Hint: "then" should hardly be needed;
     you're not telling the order in which to do something)

... plus removed a couple ending. dots
2009-06-06 02:40:49 +00:00
Brian Shire cb7a21a42b MFH: Make pass_two visible to extensions with ZEND_API (required for optimizer). 2009-06-05 23:20:59 +00:00
Rasmus Lerdorf 04f5d7c909 There is no always_inline attribute in gcc2 2009-06-05 22:14:21 +00:00
Matt Wilmas d55300298e MFH: Added zend_eval_stringl and made create_function(), etc. binary-safe 2009-06-05 18:50:32 +00:00
Matt Wilmas a80be6827d MFH: Fixed tests again after double->long conversion change (to match 5.2) 2009-06-05 17:15:33 +00:00
Arnaud Le Blanc 85b9327836 MFH: better fix for #48409 , #48428 , #48228 2009-06-05 11:21:31 +00:00
Greg Beaver fb86c3f7a2 MFH: fixed isset() on sub-directories (isset("blah") if file "blah/foo.php" exists) 2009-06-05 04:46:49 +00:00
Greg Beaver a8e7103bbe MFPECL: fix security vulnerability in phar's handling of long tar filenames 2009-06-04 19:59:09 +00:00
Matt Wilmas 26cde1ee2f MFH: Updated tests after double->long conversion change (basically to match 5.2)
# Let me know about other failing tests I missed
2009-06-04 18:25:06 +00:00
Matt Wilmas b907aa4331 MFH:
Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior:
 * Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit)
 * See bug #42868 (presumably-rare platform with different results in 5.2)
 * On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added,
    otherwise it's the same as 5.2
 * Use this conversion method everywhere instead of some plain (long) casts

Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit:
 * Essentially what 5.3's new conversion was doing in most cases
 * Functions with "limit" or "length" type params could be updated to use this,
    and prevent confusing overflow behavior with huge numbers (*also* in 5.2)
  - See bug #47854, for example; or even #42868 again

# Test updates coming
2009-06-04 18:20:45 +00:00
Andrei Zmievski 1787a2272a MFB 2009-06-04 18:17:43 +00:00
Etienne Kneuss b8d64e4085 MFH: Include other flags as well 2009-06-04 14:46:26 +00:00
Hannes Magnusson 2a257adda9 MFH: Fixed creating directory structure when extracting phars 2009-06-04 12:22:32 +00:00
Jani Taskinen a332541aaa MFH:- Fixed bug #48419 (non-portable STDIN fileno in cgi_main.c) 2009-06-04 11:51:43 +00:00
Jani Taskinen 29c0b397ec MFH: CS + WS changes 2009-06-04 11:47:27 +00:00
Pierre Joye e7560b8316 - typo 2009-06-04 07:41:01 +00:00
Pierre Joye 6220c88f14 - new constnats 2009-06-04 07:01:47 +00:00
Pierre Joye 0168025f4c - [DOC] add PHP_WINDOWS_NT_* and PHP_WINDOWS_VERSION_* constants (usefull for testing and features detections)
see http://msdn.microsoft.com/en-us/library/ms724451(VS.85).aspx for the explanation
2009-06-04 06:59:46 +00:00
Felipe Pena 1504c700be - Fixed tests 2009-06-04 01:15:12 +00:00
Brian Shire b39f215173 MFH: Add test for Bug #47859 parse_ini_file() does not like asterisk (*) in key in the beginning 2009-06-03 19:37:26 +00:00
Ilia Alshanetsky 2c31cd513b Fixed bug #46386 (Digest authentication with SOAP module fails against MSSQL
SOAP services)

#original patch by lordelph at gmail dot com
2009-06-03 12:39:50 +00:00
Zoe Slattery 2e8ad7f7d1 Commiting testfest tests from tek 2009-06-03 12:30:40 +00:00
Pierre Joye 472d000289 - fix title 2009-06-03 08:31:24 +00:00
Pierre Joye 2f6f336205 - fix parameter order and return value check in windows (Venkat Raman Don, Pierre)' link 2009-06-03 07:56:53 +00:00
Kalle Sommer Nielsen f763fbb1ee MFH: config.h is in this directory, not in ext/bcmath root, fixes re-compilation for me 2009-06-03 01:19:33 +00:00
Kalle Sommer Nielsen 3dcd2b6ace MFH:
* We dont need to wrap to two lines here, its small enough to show with a standard sized cmd window
* Bump copyright year in the .rc
2009-06-03 01:14:58 +00:00
Jani Taskinen d0ef930190 MFH:- Fixed bug #48456 (CPPFLAGS not restored properly in phpize.m4) 2009-06-02 19:54:03 +00:00
Ilia Alshanetsky c1c9645128 Fixed test 2009-06-02 12:19:34 +00:00
Jani Taskinen c7172ee172 fix test 2009-06-02 08:03:07 +00:00
Nuno Lopes 95ef46c034 fix compiler warnings by moving all std includes after include of zend_config.h.
this also fixes the build with stricter compilers than gcc (like clang)
2009-06-01 17:51:53 +00:00
Arnaud Le Blanc a197c0b751 MFH: New tests
# These tests were failing on different configurations, so adding them
# all to get more chances of seeing one failing in case of problem.
2009-06-01 16:10:35 +00:00
Arnaud Le Blanc 2403a58011 MFH: better fix for #48409 , #48428 , #48228 2009-06-01 15:07:42 +00:00
Ilia Alshanetsky 083ed5b3e5 Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values) 2009-06-01 13:10:18 +00:00
Zoe Slattery 102f76b323 Engine execution order tests 2009-06-01 13:01:04 +00:00
Zoe Slattery 9dc6f2a873 Fixes to work on Windows as well as Linux 2009-06-01 09:01:06 +00:00
Etienne Kneuss 61bbd8af75 MFH: Add test for the timeout inside shutdown function 2009-05-31 21:32:42 +00:00
Stanislav Malyshev 2d6377e322 fix for #48247 2009-05-31 21:28:38 +00:00
Andrei Zmievski 77beb62c5f Fix the build. 2009-05-31 18:55:10 +00:00
Ilia Alshanetsky 7c3e7f88c4 Fixed bug #48359 (Script hangs on snmprealwalk if OID is not increasing)
# Original patch by simonov at gmail dot com
2009-05-31 14:11:04 +00:00
Jani Taskinen 7012d0967c MFH: no dots in errors 2009-05-31 13:51:08 +00:00
Jani Taskinen 686ede9c50 fix news 2009-05-31 13:20:22 +00:00
Kalle Sommer Nielsen 80bc751be1 This shouldn't have been in there 2009-05-31 11:16:46 +00:00
Andrei Zmievski efc0927f4f Expose encode/decode API. 2009-05-31 01:44:07 +00:00
Arnaud Le Blanc b4d9c79162 MFH: Take small blocks cache into account in memory_get_usage() 2009-05-30 16:42:13 +00:00
Arnaud Le Blanc bed00e15d1 MFH: Fix aliasing issue (fixes #48409 , #48428 , #48228) 2009-05-30 16:31:12 +00:00
Scott MacVicar 16398c1990 MFH: Make sure the timeout is checked in the shutdown function, patch from Etienne 2009-05-30 09:48:16 +00:00
Ulf Wendel 1ad1a2a0af MFH - Fixing tests - messages/warnings can vary by version 2009-05-29 13:37:08 +00:00
Ulf Wendel 775cc0ca20 MFH - Updating test to reflect API changes. 2009-05-29 13:23:01 +00:00
Ulf Wendel 13d92e6957 MFH - Skip test for libmysql. The MySQL C-API does not support it, mysqlnd does... 2009-05-29 13:12:39 +00:00
Andrey Hristov 0f5e7e2bf9 NEWS 2009-05-29 13:11:10 +00:00
Andrey Hristov c1d46eb502 MFH:Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.x 2009-05-29 13:09:47 +00:00
Ulf Wendel f3f1256332 MFH - 1) The wording of a message can differ by version and by libmysql vs. mysqlnd. 2) %i is better than %s 2009-05-29 13:02:43 +00:00
Ulf Wendel 6252b5ca20 MFH - Behaviour is undefined with libmysql, accept whatever libmysql may return. With mysqlnd you get the defined value of -1 to indicate 'no value'. 2009-05-29 12:55:55 +00:00
Andrey Hristov ccf0665170 MFH:Fix for the failing mysql_stmt_execute() test. Data was cleaned after
stmt_reset() but it should stay and be freed as later as next stmt_execute()
2009-05-29 12:19:40 +00:00
Ulf Wendel 3f17909a60 MFH - 'Fixing' test to reflect a libmysql vs. mysqlnd difference. With libmysql it is not defined what mysql_stmt_store_result() shall return when one tries to store the (non-existing) result set of a failed SQL statement, http://dev.mysql.com/doc/refman/6.0/en/mysql-stmt-store-result.html . mysqlnd will detect the SQL failure and return false. libmysql will return true. If you want libmysql to change, file a bug report at MySQL... I don't think there is a good way to work around this in the extension itself. 2009-05-29 11:59:26 +00:00
Zoe Slattery 4085d06822 better fix 2009-05-29 11:46:42 +00:00
Ulf Wendel 2445a242ec MFH - Another detail where mysqlnd is superior than libmysql. The mysql_info() from libmysql does not support SELECT: http://dev.mysql.com/doc/refman/6.0/en/mysql-info.html . mysqlnd does support it. Libmysql feature request filed http://bugs.mysql.com/bug.php?id=45189 2009-05-29 11:01:06 +00:00
Ulf Wendel a027a64d73 MFH: Weaker test - libmysql/server error messages can differ by version 2009-05-29 10:34:23 +00:00
Ulf Wendel 396f5803e8 MFH - Weaker test: functions are only available if HAVE_EMBEDDED_MYSQLI is set. There is probably no proper way to check this condition in the user land. 2009-05-29 10:25:49 +00:00
Ulf Wendel 19bdbc49c3 MFH - Skip when using libmysql. Likely a regression bug - http://bugs.mysql.com/bug.php?id=45184 2009-05-29 10:15:50 +00:00
Zoe Slattery c3bcd7d365 fixing to work with older levels of libcurl 2009-05-29 09:46:11 +00:00
Andrey Hristov a3aaa2398d MFH:The option has changed the name, hence we change the test 2009-05-29 08:58:32 +00:00
Pierre Joye 469d4938fc - MF52: #42143, the constant NAN is reported as 0 on Windows 2009-05-29 08:11:36 +00:00
Andrey Hristov 133296f962 MFH:Fix a very well hidden error because of not being careful with CPP.
I usually don't make this mistake :)
2009-05-29 08:05:38 +00:00
Zoe Slattery e660f91c26 Engine execution order tests 2009-05-29 07:52:04 +00:00
Kalle Sommer Nielsen 953cf4c217 MFH: If we don't have a comment (for the 3rd argument in ARG_[ENABLE|WITH], then don't print a comment say "undefined" 2009-05-29 07:43:07 +00:00
Scott MacVicar 4044f880e8 MFH: Fix bug #48416 - Force a cache size for ereg to stop it getting out of control. Lazy LRU here. 2009-05-28 21:57:24 +00:00
Ulf Wendel 19194ff51b MFH - Asynchronous queries are mysqlnd only. If you want them with libmysql, ping JimW who works on Connector/C. 2009-05-28 18:57:34 +00:00
Ulf Wendel 2eccc6f2bf MFH - Andrey needs to have a look at this one. The bug report itself is bogus. However, the bug report shows a result set and that is wrong. 2009-05-28 18:28:08 +00:00
Andrey Hristov fe55da71bb MFH:
Forgot to commit this one, of the ANSI_QUOTES fame
2009-05-28 18:10:40 +00:00
Andrey Hristov cabce152f9 MFH:Fix again the tests for ANSI_QUOTES 2009-05-28 18:00:28 +00:00
Andrey Hristov 804f6138a6 MFH:Fix a valgrind warning as well as more trace log information 2009-05-28 17:49:29 +00:00
Andrey Hristov 76d091d5f5 MFH:Fix a problem with cursors, which did not happen with unbuffered PS for
some reason. Double free of the data, which led to valgrind warnigns.
The fix actually optimizes the code in this cases because the old code
used copy_ctor while the new one skips it because it is not needed.
Transferring data ownership and nulling works best, for PS where we
always copy the string from the result set, unlike the text protocol.
2009-05-28 16:35:41 +00:00
Ulf Wendel 4645f51360 MFH - I had accidently removed Andrey's path to work with ANSI QUOTES... fixing what I broke (part 1) 2009-05-28 15:49:14 +00:00
Ulf Wendel 7926037318 MFH - what a wonderful word. After the change in HEAD its easy to do a merge. The merge removes all UEXPECTF sections from the old days. Yes, there have been UEXPECTFs in 5_3. I hope PHP 6 won't change again over time... :-) 2009-05-28 14:33:43 +00:00
Antony Dovgal 31c2c5ffb7 fix test 2009-05-28 13:56:44 +00:00
Pierre Joye f002287eb3 - MFH: #48378, exif_read_data() segfaults on certain corrupted .jpeg files 2009-05-28 13:48:32 +00:00
Arnaud Le Blanc 23a25db653 MFH: New test 2009-05-28 13:22:28 +00:00
Arnaud Le Blanc 245f051bbe Moved to 5.2 2009-05-28 13:21:08 +00:00
Andrey Hristov 6c4e8fa4f9 MFH:
Fix a bug with mysqlnd_fetch_field(_direct()). With mysqlnd the optimised
function was called, which however, doesn't respect that during store the
raw data is not unpacked, to be lazy. The data is unpacked to zvals later,
during every row fetch. However, this way max_length won't be calculated
correctly. So, if a mysqlnd_fetch_field(_direct) call comes we need to
unpack everything and then calculate max_length...and that is expensive,
defies our lazy unpacking optimisation.
2009-05-28 11:47:48 +00:00
Andrey Hristov 90a8a7f857 MFH:Fix a test, UNSIGNED is expected 2009-05-28 10:16:41 +00:00
Arnaud Le Blanc 6a9aa30d85 MFB52: Fix "request_startup() for zlib module failed" when client does not
accepts compression and zlib.output_compression is On
# (not in HEAD)
2009-05-28 10:15:14 +00:00
Andrey Hristov 04d8609e9f MFH: Fix failures when the server is running with ANSI_QUOTES 2009-05-28 09:58:36 +00:00
Scott MacVicar 2cbe718985 BFN, though this library gets a lot of updates 2009-05-28 03:22:44 +00:00
Scott MacVicar 0062120464 MFH sync SQLite 3.6.14.2 2009-05-28 03:20:33 +00:00
Pierre Joye 2a93efcea3 - fix build, stderr cannot be used as var or struct member 2009-05-27 22:35:26 +00:00
Robert Nicholson 1d4da4fd0c Language Tests: returnByReference 2009-05-27 22:34:25 +00:00
Andrey Hristov bf1a698e51 MFH:
Less warnings by usage of proper modifier
2009-05-27 20:05:37 +00:00
Andrey Hristov 91a4502914 MFH:because we use int64_t we need corresponding printf modifiers. the type
can be different on 32 and 64 bit, thus we can't use ld and lld but
C helps us with inttypes.h and PRId64 and PRIu64 modifiers (without the %)
2009-05-27 19:57:11 +00:00
Andrey Hristov 07fc51d559 MFH: Fix tests when the server is running with ANSI_QUOTES 2009-05-27 18:18:58 +00:00
Ulf Wendel 6cf02c738b Crappy anonymous MySQL user account... trying to make the test more portable. 2009-05-27 17:54:30 +00:00
Ulf Wendel 774f562375 The test is bogus as long as there is no (proper) way to detect from the PHP userland if persistent connections do a change user or not. If they do is controlled by define at the moment. 2009-05-27 17:52:32 +00:00
Ulf Wendel b3645db1ce Testing a little further into the direction of a possible mysqlnd vs. libmysql compatibility break or a libmysql bug. It is not clearly stated in the MySQL C-API documentation what excactly happens on stmt_reset(). 2009-05-27 17:50:09 +00:00
Ulf Wendel a39d92c144 Trying to get test failures down by fixing tests. 2009-05-27 17:46:14 +00:00
Pierre Joye 45832feb40 - fix build 2009-05-27 15:16:18 +00:00
Andrey Hristov 10bc558aca MFH: Revert in regard of my_ulonglong which should be used instead of long
which can be anything.
2009-05-27 15:05:28 +00:00
Pierre Joye 7f6fa6ce1c - fix build on unix with bundled gd 2009-05-27 13:48:13 +00:00
Antony Dovgal 988b89aaa3 MFH: fix compile warnings 2009-05-27 13:42:17 +00:00
Pierre Joye f726afbfeb - [DOC] always enable imagecolormatch 2009-05-27 08:18:24 +00:00
Pierre Joye 59ec80c572 - MFH: [DOC] always enable imagerotate (bundled or system gd) 2009-05-27 07:18:05 +00:00
Kalle Sommer Nielsen e9d289289b MFH: Lets pass the built php binary to run-tests.php's -p parameter 2009-05-27 01:46:48 +00:00
Kalle Sommer Nielsen a9ddcbf162 MFH: Added configure.bat to cvsignore 2009-05-27 01:45:13 +00:00
Kalle Sommer Nielsen 4ab4b6817d MFH: Silent dl() if it fails 2009-05-27 01:38:13 +00:00
Pierre Joye a008f130cd - MFH: [DOC] - add image(filled)ellipse to the compat layer (work around a bug in debian too, function is declared but not present in the lib...) 2009-05-26 20:14:31 +00:00
Jani Taskinen 1296356489 - Test for bug #48203 2009-05-26 17:19:23 +00:00
Jani Taskinen 83748ac00d MFH: Fixed bug #48203 (crash when CURLOPT_STDERR is set to regular file) 2009-05-26 15:49:15 +00:00
Derick Rethans f10d399459 - Updated to version 2009.8 (2009h) 2009-05-26 14:26:57 +00:00
Arnaud Le Blanc f2b8b7f4e0 MFH: Fix return value of pcntl_wexitstatus() (fixes #47566,
patch by james at jamesreno dot com)
2009-05-26 14:01:39 +00:00
Pierre Joye 4988470303 - ws 2009-05-26 13:57:07 +00:00
Andrey Hristov 7ae2505cab Fix a typo, utf8 is 3 byte max, for us, for now
Add a another cset
2009-05-26 13:41:18 +00:00
Pierre Joye 704d7587b0 - enable filter constants 2009-05-26 13:35:59 +00:00
Pierre Joye 6b3e2b1910 - expose gdImageGetTrueColorPixel in bundled lib
- fix bundled lib build
2009-05-26 13:08:59 +00:00
Pierre Joye b682f42915 - [DOC] always enable imagefilter and imageconvolution, even when built against system's gd 2009-05-26 12:50:40 +00:00
Felipe Pena 8b63e5b092 - Fixed param type (%l -> %ld) 2009-05-26 12:35:46 +00:00
Felipe Pena d91344722d - MFH: Nuke unused variables 2009-05-26 12:32:00 +00:00
Jani Taskinen 9672e18acd Nuke duplicate tests 2009-05-26 10:27:08 +00:00
Jani Taskinen 694566d6c4 fix test 2009-05-26 10:12:16 +00:00
Pierre Joye c559d4fb30 - always add libgd/ 2009-05-26 08:53:13 +00:00
Pierre Joye d8b76a8411 - add a note about the actual problen so we don't forget it 2009-05-26 08:10:49 +00:00
Jani Taskinen 7811bcb155 - Added note about omitted break 2009-05-26 08:03:07 +00:00
Eric Stewart 86fed7fac7 Add tests:
DOMComment::__construct() with constructor called twice.
DOMDocumentFragment::appendXML() with unbound fragment.
DOMDocumentFragment::appendXML() with unbalanced chunks.
DOMDocumentFragment::__construct() called twice.
DOMDocumentType: basic access to all properties.
DOMDocumentType::name with invalid state.
DOMDocumentType::entities with invalid state.
DOMDocumentType::notations with invalid state.
DOMDocumentType::publicId with invalid state.
DOMDocumentType::publicId with empty value.
DOMDocumentType::systemId with invalid state.
DOMDocumentType::systemId with empty value.
DOMDocumentType::internalSubset with invalid state.
2009-05-26 06:09:18 +00:00
Jani Taskinen c3795a63e0 - Fixed bug #45202 (zlib.output_compression can not be set with ini_set()) 2009-05-26 05:54:50 +00:00
Jani Taskinen e179d7c26e ws + cs 2009-05-26 04:44:54 +00:00
Kalle Sommer Nielsen 4b95edd125 MFH: Typo 2009-05-25 19:41:13 +00:00
Pierre Joye c32cdc4fd0 - better fix for file:/// and file://localhost (thx Ilia), init file_dest when the path is an uri 2009-05-25 16:09:27 +00:00
Pierre Joye c11979a8bf - #48202, Out of memory error when passing non-existing filename, enable related tests (marked as XFAIL now) 2009-05-25 15:35:03 +00:00
Rasmus Lerdorf e00d6f1876 Removing test 2009-05-25 11:58:27 +00:00
Pierre Joye da27f4237a - MFH: enable MPIR support and the good old 4.1.x gmp for VC6. solving the lgplv3 mess 2009-05-25 10:15:19 +00:00
Eric Stewart d9c9d4cf4b Add the following new tests:
DOMCharacterData::appendData() with no arguments.
DOMCharacterData::deleteData() with count exceeding string size.
DOMCharacterData::deleteData() with no arguments.
DOMCharacterData::deleteData() with offset exceeding string size.
DOMCharacterData::insertData() with no arguments.
DOMCharacterData::replaceData() with no arguments.
DOMComment::__construct() with more arguments than acceptable.
DOMDocumentFragment::__construct().
DOMDocumentFragment::__construct() with too many errors.
DOMDocumentFragment::appendXML() with no arguments.
DOMDocumentFragment::appendXML() with children with properties.
2009-05-25 06:03:41 +00:00
Sara Golemon 00a554b4a3 MFH(r-1.103) Expand zend_symtable_update_current_key to allow specifying HashPosition 2009-05-25 01:18:00 +00:00
Greg Beaver 1c30b43e50 MFH: fix potential segfault when converting phars with metadata to other formats, add test 2009-05-24 18:50:58 +00:00
Ilia Alshanetsky 529bcf35c2 MFB: Improve fix for bug #48313 2009-05-24 16:01:48 +00:00
Felipe Pena 0873648ef0 - New tests (testfest NorthWestUG) 2009-05-23 15:38:18 +00:00
Felipe Pena 941ac63eef - MFH: Added missing param checks 2009-05-23 15:14:15 +00:00
Felipe Pena be7d45b0dc - New xsl files 2009-05-23 14:49:55 +00:00
Felipe Pena 5dfcef7ab4 - New tests (testfest BerlinUG) 2009-05-23 14:45:07 +00:00
Felipe Pena 424c018991 - Fix error message 2009-05-23 14:26:47 +00:00
Nuno Lopes 79a9229772 fix compilation of pdo_firebird and intl extension with ld --as-needed 2009-05-23 13:52:00 +00:00
Kalle Sommer Nielsen e26710bfc4 Fixed compiler warning again, uint8_t is only available with mysqlnd. This is not affecting HEAD 2009-05-23 02:58:15 +00:00
Eric Stewart 30cdf25f22 New test: DOMAttr read $name property.
New test: DOMAttr read $ownerElement with null parent.
New test: DOMAttr write non-string $value property
New test: DOMCDATASection __construct() with no arguments.
New test: DOMCharacterData - Invalid State Error when getting data out of content.
2009-05-23 01:42:37 +00:00
Eric Stewart 21cb2046ae New test: DOMAttr __construct() with no arguments. 2009-05-23 01:33:39 +00:00
Kalle Sommer Nielsen e45cdba580 MFH: Previous commit was an old version of the patch, PHP_ZTS is not a boolean but the behaviour is still correct 2009-05-22 19:47:15 +00:00
Kalle Sommer Nielsen 3de5c79f73 MFH: Don't build SQLite threadsafe on NTS builds 2009-05-22 19:41:15 +00:00
Kalle Sommer Nielsen 4d855122a5 MFH: Fix test on Windows 2009-05-22 18:27:38 +00:00
Kalle Sommer Nielsen 7852108cce MFH: Added missing SKIPIF 2009-05-22 18:22:30 +00:00
Felipe Pena ff4fd58f08 - MFH: Fixed invalid date checking 2009-05-22 12:49:40 +00:00
Felipe Pena 50038a78f5 - New test 2009-05-22 12:38:57 +00:00
Arnaud Le Blanc b33c51693b MFH: Use zend_get_property_info() in get_class_vars() (fixes #46812) 2009-05-22 11:19:30 +00:00
Kalle Sommer Nielsen ccd915ff3f getClosureThis() and $this handling in closures was removed 2009-05-22 03:32:20 +00:00
Arnaud Le Blanc 5c5dcf5e7a MFH: Fixed bug #48336 (ReflectionProperty::getDeclaringClass() does not
work with redeclared property)
(patch by Markus dot Lidel at shadowconnect dot com)
2009-05-21 16:01:37 +00:00
Arnaud Le Blanc 9aca3c04a0 MFH: set second argument of gettimeofday() to NULL (fixes #48346,
patch by adriano at guiadohardware dot net)
2009-05-21 14:21:40 +00:00
Arnaud Le Blanc 52cc098a90 MFH: Better fix for #45622 (patch by robinf at php do net) 2009-05-21 13:26:14 +00:00
Ilia Alshanetsky 44fe1bf83f Fixed bug #48207 (CURLOPT_(FILE|WRITEHEADER options do not error out when
working with a non-writable stream)
2009-05-21 12:52:05 +00:00
Jani Taskinen 2e61607c8a MFH: ws 2009-05-21 02:15:03 +00:00
Ilia Alshanetsky b683c61e60 MFB: Re-introduce the Matteo's patch and combine default & text handling
since they appear to be the same irregardless on notes inside sqlite3.h
2009-05-20 15:05:36 +00:00
Ilia Alshanetsky 52f599687a Fixed build 2009-05-20 13:10:49 +00:00
Jani Taskinen d5455551a5 - Sync with HEAD (thanks Hannes :) 2009-05-20 12:44:19 +00:00
Jani Taskinen 9a4069529c MFH: Fix non-windows builds 2009-05-20 12:15:39 +00:00
Kalle Sommer Nielsen 061f229abc MFH: Fixed shared build 2009-05-20 10:18:51 +00:00
Arnaud Le Blanc 6540730732 MFH: Fix skipif 2009-05-20 10:08:32 +00:00
Antony Dovgal 0813510d1b sync with HEAD 2009-05-20 09:26:12 +00:00
Arnaud Le Blanc 90d1875421 MFH: set default value of "precision" ini setting,
many tests depend on this
2009-05-20 09:22:50 +00:00
Arnaud Le Blanc 808acd6b64 MFH: Fix skipif 2009-05-20 09:13:29 +00:00
Arnaud Le Blanc 73553e8c77 MFH: Fixed bug #48326 (constant MSG_DONTWAIT not defined) 2009-05-20 09:05:46 +00:00
Kalle Sommer Nielsen f02ebe4a08 MFH: Fix compiler warnings in ext/mysql, ext/mysqli and ext/pdo_mysql 2009-05-20 08:30:12 +00:00
Kalle Sommer Nielsen 31a1dbe2df MFH: Fix Windows build, dns_get_record is defined in dns_win32.c, not here 2009-05-20 08:18:48 +00:00
Jani Taskinen 764fd8a423 MFH:- Fix bug #48317 (compile failure in dns.h) (thanks to Pierre for introducing this) 2009-05-19 19:39:53 +00:00
Hannes Magnusson 39ac962ffd MFH: Partial fix for bug#48333 2009-05-19 19:23:33 +00:00
Ilia Alshanetsky 5ec5e3b5f2 The \0 removal is only needed prior to 3.4.0 2009-05-19 19:15:18 +00:00
Ilia Alshanetsky 37609844de Warning fix 2009-05-19 18:42:08 +00:00
Ilia Alshanetsky 8f7b7495f2 Upgraded to 3.6.14.1 2009-05-19 18:32:46 +00:00
Kalle Sommer Nielsen 21f836ee64 MFH: Fixed compiler warnings
# (see previous commit message)
2009-05-19 18:08:57 +00:00
Kalle Sommer Nielsen 6068ce7469 MFH: Fixed compiler warning 2009-05-19 17:47:06 +00:00
Kalle Sommer Nielsen ff88b45ffc MFH: Fix compiler warnings 2009-05-19 17:38:29 +00:00
Ilia Alshanetsky 70fb8c85f1 Revert faulty warning fix 2009-05-19 16:14:13 +00:00
Kalle Sommer Nielsen 9e230424b5 Cast to unsigned char to prevent compiler warning 2009-05-19 16:06:00 +00:00
Kalle Sommer Nielsen 01fc4ed1d6 MFH: Fix compiler warnings 2009-05-19 16:03:36 +00:00
Brian Shire c80f0bf769 MFH: Fix bug #47859 parse_ini_file() does not like asterisk (*) in key in the beginning, and allow [*_-] chars at start of ini labels 2009-05-19 15:59:36 +00:00
Jani Taskinen 59bc60ffbe - Revert bad compile warning fix which causes compile failures with older glibc 2009-05-19 15:38:07 +00:00
Jani Taskinen ff18679418 MFH:- Fix test: since cURL 7.19.4 CURLINFO_CONTENT_LENGTH_* return -1 if the size is unknown 2009-05-19 14:05:39 +00:00
Jani Taskinen e36c8c49c3 MFH: Unify macros 2009-05-19 11:12:20 +00:00
Kalle Sommer Nielsen 5d3972f73a MFH: Cast to SQLUSMALLINT 2009-05-19 10:25:53 +00:00
Kalle Sommer Nielsen a58bd002d6 MFH: Fix --with-pdo-mssql build and add some warnings if header/libs are not found 2009-05-19 10:22:25 +00:00
Hannes Magnusson 45b2586666 Fix build 2009-05-19 10:00:12 +00:00
Jani Taskinen ec9b82f0f4 fix news 2009-05-19 09:41:34 +00:00
Derick Rethans d29d24427f - MFH: Get rid of the four different versions of zend_extension* and only use
zend_extension. Because of the API identifier change in PHP 5.3 you also get
  a proper warning message now.
#- [DOC]
2009-05-18 21:33:38 +00:00
Pierre Joye aedaf1aea9 - close manually the impersonation token 2009-05-18 20:56:46 +00:00
Zoe Slattery e5348b9152 Removing redundant UEXPECT 2009-05-18 19:16:30 +00:00
Ilia Alshanetsky e99d4e9adc Fixed bug #48313 (fgetcsv() does not return null for empty rows) 2009-05-18 18:45:30 +00:00
Jani Taskinen 9ece649f7c MFH: ws + sync 2009-05-18 16:10:09 +00:00
Hannes Magnusson 82c49a50f4 MFH: Print out the WARNed section 2009-05-18 14:08:23 +00:00
Hannes Magnusson ebf4c8ddb8 Fix test 2009-05-18 13:52:16 +00:00
Jani Taskinen befe469770 MFH 2009-05-18 12:51:05 +00:00
Pierre Joye 4398fbcb07 - MFH: use ZEND_ARG_ARRAY_INFO for arginfo_curl_setopt_array 2009-05-18 12:01:44 +00:00
Pierre Joye f77d46ea36 - sync with HEAD 2009-05-18 11:58:04 +00:00
Pierre Joye 52d8816cf7 - more WS 2009-05-18 11:48:31 +00:00
Pierre Joye b5b4b19b8b - MFH: add CURLPROXY_SOCKS4 2009-05-18 11:18:59 +00:00
Pierre Joye 4b0a0e5568 - WS 2009-05-18 11:17:51 +00:00
Pierre Joye 0f8d0d9f62 - should not have been commited 2009-05-18 10:32:04 +00:00
Pierre Joye 330e416563 - MFB: - disable file:// when safe_mode or open_basedir are enabled 2009-05-18 10:31:08 +00:00
Pierre Joye 10ace3fe97 - #44859, fixed support for windows ACL, drop win9x code 2009-05-17 19:44:27 +00:00
Felipe Pena 47f87a58aa - New tests (testfest BerlinUG) 2009-05-17 18:08:09 +00:00
Felipe Pena b5cec43162 - New tests (testfest BelgiumUG) 2009-05-17 16:51:59 +00:00
Felipe Pena 6f75314b84 - New tests (testfet LondonUG) 2009-05-17 15:24:08 +00:00
Arnaud Le Blanc c79528a26d MFH: Fixed bug #48309 (stream_copy_to_stream() and fpasstru() do not
update stream position of plain files)
2009-05-17 14:58:10 +00:00
Felipe Pena 7c30401aec - New tests (testfest Quebec) 2009-05-17 01:16:35 +00:00
Felipe Pena 1bcc3aac33 - New tests (testfest DutchUG) 2009-05-16 21:13:43 +00:00
Arnaud Le Blanc 8a8e036175 MFH: Test for #38802 2009-05-16 20:45:28 +00:00
Arnaud Le Blanc ac57b7078b MFH: Minimal HTTP server to test HTTP stream wrapper 2009-05-16 20:44:05 +00:00
Arnaud Le Blanc a5db3627e5 Fixed bug #38802 (max_redirects and ignore_errors)
(patch by datibbaw@php.net)
2009-05-16 20:34:48 +00:00
Arnaud Le Blanc fab1f0e754 Fix warning when inner stream of a temp:// stream is closed before
the stream ifself
2009-05-16 20:27:36 +00:00
Arnaud Le Blanc a2600facdd MFH: Fixed bug #48307 (stream_copy_to_stream() copies 0 bytes when $source
is a socket)
2009-05-16 20:23:06 +00:00
Felipe Pena 06a10f3789 - New tests (testfest Quebec) 2009-05-16 18:26:59 +00:00
Felipe Pena 2fa28208a6 - Added changes from testfest ParisUG && Changed line endings 2009-05-16 17:02:24 +00:00
Felipe Pena 84b1765852 - New tests (testfest ParisUG) 2009-05-16 16:37:31 +00:00
Felipe Pena 11c78461d6 - New tests (testfest DutchUG) 2009-05-16 15:13:57 +00:00
Felipe Pena 837cf07807 - New tests (testfest CataloniaUG) 2009-05-16 14:41:27 +00:00
Pierre Joye 59a6d8d5a2 - WS 2009-05-15 17:48:34 +00:00
Kalle Sommer Nielsen db137b4d69 MFH: Fix compiler warnings 2009-05-15 17:28:08 +00:00
Moriyoshi Koizumi fcede921b6 * MFH: Roll it back. 2009-05-15 17:03:03 +00:00
Christopher Jones ad07803d23 MFH: New array_multisort() test and code comment fix (Simon Westcott) 2009-05-15 16:46:22 +00:00
Kalle Sommer Nielsen 178cb9c572 Added some more comments about deprecated ini settings 2009-05-15 09:44:08 +00:00
Kalle Sommer Nielsen 105272bdec MFH: Fix arginfo 2009-05-15 09:10:55 +00:00
Scott MacVicar a6acb07d2a BFN 2009-05-14 22:03:35 +00:00
Scott MacVicar d2a7785878 MFH Allow a custom recursion depth to be specified for json_decode() 2009-05-14 22:02:08 +00:00
Jani Taskinen c0ce0e7932 - Fix the harmless patch that caused harm :) 2009-05-14 21:23:35 +00:00
Jani Taskinen 5910fcaf13 MFH 2009-05-14 21:00:15 +00:00
Moriyoshi Koizumi 6e265a738e - Add a new test for the additional delimiter of the encoding conversion filter 2009-05-14 19:06:20 +00:00
Arnaud Le Blanc 12d41f7a1f moved to 5.2 2009-05-14 19:03:59 +00:00
Moriyoshi Koizumi cc547c86df - Update the test as newer libc gets the bogus input through rather than
rejecting it.
2009-05-14 19:02:38 +00:00
Hannes Magnusson 24b0e5dfe5 Add missing file 2009-05-14 18:53:39 +00:00
Felipe Pena 63c12a8f99 - MFH: Improved fix for #42414 2009-05-14 17:24:42 +00:00
Arnaud Le Blanc eeed7e12f5 moved to 5.2 2009-05-14 16:23:58 +00:00
Jani Taskinen f0dd266bdd MFH:- Fixed bug #48256 (Crash due to double-linking of history.o) 2009-05-14 13:40:51 +00:00
Greg Beaver 7aabee2ec6 MFH: fix potential free of NULL 2009-05-14 13:36:56 +00:00
Ilia Alshanetsky c205eb5143 Fixed compiler warnings 2009-05-14 12:29:47 +00:00
Dmitry Stogov 2f8ca07d18 Fixed wrong return value 2009-05-14 08:21:54 +00:00
Matt Wilmas 464cfab1b1 Now in 5.2 (or should the entry be here as well...?) 2009-05-14 01:31:02 +00:00
Felipe Pena 3201292cd3 - New tests 2009-05-14 01:28:58 +00:00
Felipe Pena 652b77243c MFH:
- Fixed bug #42414 (some odbc_*() functions incompatible with Oracle ODBC driver)
  patch by: jhml at gmx dot net
2009-05-14 01:26:39 +00:00
Greg Beaver 475cf4d288 fix Bug #48257: PharData throws exception with non-phar tar 2009-05-13 20:25:43 +00:00
Jani Taskinen 1033af1cb3 MFH: Fixed module loading order and made request shutdown functions also to
be loaded in reverse like all other shutdowns are.
2009-05-13 18:48:20 +00:00
Kalle Sommer Nielsen f67e7f4947 MFH: Fix compiler warnings, safe_emalloc expects size_t, not double as ceil returns 2009-05-13 16:29:26 +00:00
Kalle Sommer Nielsen 18e7a82dd4 MFH: Nuke compiler warning 2009-05-13 15:55:12 +00:00
Ilia Alshanetsky 46e28fb021 Fixed bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime)
# Original patch by kawai at apache dot org
2009-05-13 14:23:14 +00:00
Felipe Pena 539b7a2154 - MFH: Fixed bug #48240 (DBA Segmentation fault dba_nextkey) 2009-05-13 02:14:53 +00:00
Matteo Beccati c25b0a2817 MFH
- Moved test for bug #44861 to PDO commons and added support for pdo_oci
# This allows scrollable cursors to be tested with all the drivers
# that currently support them (pgsql and oci), ensuring a consistent
# behaviour. The test is skipped when using other drivers.
2009-05-12 23:40:32 +00:00
Felipe Pena db1eafa8d0 - MFH: Fixed bug #48248 (SIGSEGV when access to private property via &__get) 2009-05-12 22:55:05 +00:00
Matteo Beccati 3fb4089ba7 MFH
- Fixed bug #48188
2009-05-12 22:18:15 +00:00
Matteo Beccati 7be13beddb MFH
- Fixed bug #48070
2009-05-12 21:53:18 +00:00
Felipe Pena e753493c97 - Fixed tests on Windows 2009-05-12 19:46:58 +00:00
Ilia Alshanetsky c3e3d607b4 Fixed bug #47564 (unpacking unsigned long 32bit bit endian returns wrong
result)
2009-05-12 12:34:55 +00:00
Felipe Pena 4f068cc23b - MFH: Fix code && new test 2009-05-11 15:03:47 +00:00
Felipe Pena 85bcfa89ad - Added missing param checks 2009-05-11 14:14:52 +00:00
Ilia Alshanetsky d73b2316a1 moved to 5.2 as well 2009-05-11 12:35:19 +00:00
Ilia Alshanetsky 60d4c0308a Fixed bug #48204 (xmlwriter_open_uri() does not emit warnings on invalid
paths)
2009-05-11 12:21:26 +00:00
Pierre Joye dff4655e31 - MFH: define HAVE_PQPROTOCOLVERSION and HAVE_PG_LO_CREATE (Tim Starling) 2009-05-11 10:44:12 +00:00
Jani Taskinen 2a31dbbadf MFH:- Removed unnecessary TSRMLS_FETCH() calls 2009-05-11 08:31:15 +00:00
Jani Taskinen daae8fb6fc MFH: cs + ws 2009-05-11 07:52:49 +00:00
Kalle Sommer Nielsen 776a648f17 MFH: Fix conditional 2009-05-11 06:43:05 +00:00
Jani Taskinen 899e56337f - Fix paths 2009-05-11 05:01:37 +00:00
Felipe Pena 13a3092fce - Starting tests for this extension 2009-05-11 03:09:59 +00:00
Felipe Pena 937b429ad8 - Fixed tests 2009-05-11 01:51:07 +00:00
Jani Taskinen f3bd837434 MFH: sync 2009-05-10 23:08:52 +00:00
Jani Taskinen 1338aa26be sync with HEAD 2009-05-10 22:39:33 +00:00
Jani Taskinen 235712f3de BFN 2009-05-10 21:06:35 +00:00
Jani Taskinen 068d240da5 - Fixed bug #48200 (compile failure with mbstring.c when --enable-zend-multibyte is used) 2009-05-10 21:04:46 +00:00
Stanislav Malyshev 06000724e7 revent wrong part 2009-05-10 20:58:26 +00:00
Felipe Pena f306943799 - Fixed bug #48227 (NumberFormatter::format leaks memory) 2009-05-10 20:17:22 +00:00
Etienne Kneuss bad0b796a8 MFB: Add test for #48224 2009-05-10 20:12:56 +00:00
David Coallier 0204349438 - Removed the RETURN_TRUE to keep consistency with documentation. This function
is supposed to be "void registerPHPFunctions"
2009-05-10 19:59:47 +00:00
Stanislav Malyshev 0cb1c2797f little errors cleanup 2009-05-10 19:10:36 +00:00
Etienne Kneuss 7c41c86a02 MFB: Fix #48224 (Remove incorrect shuffle) 2009-05-10 16:45:21 +00:00
Felipe Pena a8209c5157 - Simplify test (cweiske) 2009-05-10 15:48:39 +00:00
Felipe Pena 680bc45ba5 - MFH: Fixed bug #48221 (memory leak when passing invalid xslt parameter) 2009-05-10 15:13:05 +00:00
Hannes Magnusson 64e4c69090 fix proto
# Why doesn't this exist in HEAD?
2009-05-10 13:26:38 +00:00
Felipe Pena 91bdeda644 - MFH: Fixed memory leak (patch by Christian Weiske) 2009-05-10 01:03:45 +00:00
Johannes Schlüter 021623dbf1 really delete it 2009-05-09 22:36:14 +00:00
Johannes Schlüter 037211ec08 MFH Remove bad CREDITS file 2009-05-09 22:34:45 +00:00
Etienne Kneuss bc75208538 MFH: Fix bug #47534 (RecursiveDirectoryIterator::getChildren ignoring CURRENT_AS_PATHNAME) 2009-05-09 21:06:59 +00:00
Scott MacVicar c81345bbd0 BFN 2009-05-09 20:42:44 +00:00
Jani Taskinen 8308ce2d0a - Moved to PHP_5_2 2009-05-09 20:37:47 +00:00
Scott MacVicar 2d183dcc1d MFH Update bundled libmagic to 5.03 2009-05-09 20:34:37 +00:00
Jani Taskinen 558f3861ec MFH:- Fixed bug #47468 (enable cli|cgi-only extensions for embed sapi) 2009-05-09 20:26:51 +00:00
Scott MacVicar cc33f375a6 MFH Broken test when you have a snapshot as it relies on CVS 2009-05-09 20:18:43 +00:00
Scott MacVicar 01a6919ff0 Fix bug #48206 again 2009-05-09 19:45:26 +00:00
Scott MacVicar e89c1cf7d9 MFH Fix bug #48206 - Iterating over an invalid data structure leads to a segfault 2009-05-09 19:35:09 +00:00
Hannes Magnusson ebf7a8e9a3 Fix comments 2009-05-08 11:35:12 +00:00
Arnaud Le Blanc 7d61fa216d test for #44034 2009-05-08 09:50:34 +00:00
Arnaud Le Blanc 1d13e22f41 Fix invalid read 2009-05-08 09:44:17 +00:00
Antony Dovgal c4cf7a858d MFH: fix ZTS build 2009-05-08 07:58:19 +00:00
Brian Shire 4c81aa0b50 MFH: Add missing #ifdef for curl version that does not have FTP_FILEMETHOD or IPRESOLVE options. related to fix for bug #39637 2009-05-08 03:33:06 +00:00
Matteo Beccati d33fecdde8 MFH
- Fixed bug #48185 removing no-op code
2009-05-07 23:29:54 +00:00
Felipe Pena bb31072d3e - Fix build 2009-05-07 22:42:46 +00:00
Scott MacVicar f8207707c9 BFN 2009-05-07 16:56:18 +00:00
Scott MacVicar 81e3b74188 Print warning when using loadExtension on non cli, cgi and embeded 2009-05-07 16:49:26 +00:00
Jani Taskinen 782644535f MFH 2009-05-07 13:47:43 +00:00
Jani Taskinen da7302f792 MFH 2009-05-07 13:44:23 +00:00
Zoe Slattery f2cc5467da fixing missing semi-colon 2009-05-07 13:26:00 +00:00
Ilia Alshanetsky 9861f86c9f Fixed compiler warning 2009-05-07 12:39:26 +00:00
Felipe Pena a2516cd273 - Missing title 2009-05-07 12:15:40 +00:00
Felipe Pena dcfe5d7140 - MFH: Parameter parsing changes for get_defined_constants() (Kalle) 2009-05-07 12:08:09 +00:00
Scott MacVicar 4b34028479 BFN 2009-05-07 11:29:32 +00:00
Scott MacVicar e718846c5b MFH Update bundled libsqlite to 3.6.14 2009-05-07 11:27:45 +00:00
Zoe Slattery cba448a9d3 Replacing generate script with a new version 2009-05-07 09:21:43 +00:00
Hannes Magnusson 903f306a60 Fix tests 2009-05-07 08:08:00 +00:00
Kalle Sommer Nielsen 686c3975e7 use have been a keyword in a forever, thanks Greg 2009-05-07 06:58:57 +00:00
Kalle Sommer Nielsen e4e260dc21 Windows ME is not supported either as of 5.3 2009-05-07 03:16:28 +00:00
Kalle Sommer Nielsen 036314329a * use is a reserved keyword
* notes to Windows section
2009-05-07 03:14:07 +00:00
Jani Taskinen 996eab8983 - Fixed ini deprecation message issues in tests.
# CGI headers are stripped and the error ends up there with CGI..
2009-05-06 20:32:00 +00:00
Jani Taskinen f719e30684 MFH 2009-05-06 19:03:06 +00:00
Johannes Schlüter 508a2d0c3d Back to -dev 2009-05-06 18:57:45 +00:00
Johannes Schlüter 6eb27922d7 5.3.0RC2-dev 2009-05-06 18:51:29 +00:00
Ilia Alshanetsky e6c96dec60 Fixed bug #48156 (Added support for lcov v1.7) 2009-05-06 14:04:46 +00:00
Felipe Pena d64db73483 - Fixed tests 2009-05-05 18:19:16 +00:00
Zoe Slattery 56e61fb2a5 Fixed tests - thanks mgdm 2009-05-05 13:53:11 +00:00
Ilia Alshanetsky e828880281 Fixed compiler warning due to llabs() function 2009-05-05 12:33:39 +00:00
Derick Rethans f2ef1dec3c - Fixed bug #48149 (Cannot make interval parts larger than 9999) by
regenerating the parser.
2009-05-05 07:45:18 +00:00
Jani Taskinen 06c487133a MFH 2009-05-05 01:51:13 +00:00
Matt Wilmas e7c5f3cfa4 Regenerate 2009-05-05 01:44:52 +00:00
Jani Taskinen e34d4e933a MFH: ws fix 2009-05-05 01:44:22 +00:00
Greg Beaver 6f101e7c06 remove precautionary #ifdef - the problem was fixed by moving the efree inside the zend_try block 2009-05-05 01:41:51 +00:00
Matt Wilmas 09034cf3f4 MFH: Implemented manual scanning for strings/comments, plus misc. fixes 2009-05-05 01:35:44 +00:00
Jani Taskinen af442c0bde MFH: fix build 2009-05-05 01:22:44 +00:00
Jani Taskinen a02d4a690a - sync with HEAD 2009-05-05 01:21:10 +00:00
Matt Wilmas 4d7fe7444b Changed wording 2009-05-05 00:55:27 +00:00
Jani Taskinen ee5c30a781 duh.. 2009-05-05 00:39:33 +00:00
Jani Taskinen 0b4875313a MFH: - Fixed Bug #45092header HTTP context option not being used (--with-curlwrappers) 2009-05-05 00:31:56 +00:00
Jani Taskinen 6611eb0b98 - Sync with HEAD 2009-05-05 00:16:21 +00:00
Kalle Sommer Nielsen 5a6d3cc42b Added E_DEPRECATED startup notice (5.3 only) 2009-05-04 21:18:22 +00:00
Scott MacVicar 048f03a46b BFN 2009-05-04 21:11:40 +00:00
Pierre Joye ffca50ca0d - revert last commit and fix inline 2009-05-04 21:03:20 +00:00
Scott MacVicar c48241a569 MFH Update libmagic data file to 5.02 2009-05-04 20:56:13 +00:00
Scott MacVicar c3b88aec15 MFH Update libmagic to 5.02 2009-05-04 20:54:53 +00:00
Pierre Joye e274a01620 - a macro will just do it too 2009-05-04 20:31:02 +00:00
Derick Rethans 53bb83ab8c - MFH: Fixed warnings 2009-05-04 19:55:47 +00:00
Jani Taskinen ce86c511c4 - Fix news 2009-05-04 19:02:26 +00:00
Pierre Joye b4a46c8693 - cleaner fix 2009-05-04 17:11:22 +00:00
Pierre Joye 65a9530849 - add llabs 2009-05-04 17:09:33 +00:00
Scott MacVicar cbc9e850b9 Add missing prototypes for mhash, no code changes. 2009-05-04 16:37:31 +00:00
Pierre Joye 7cfcf294a0 - fix build 2009-05-04 16:28:50 +00:00
Pierre Joye 8991998d7a - win extension_dir 2009-05-04 15:20:38 +00:00
Antony Dovgal 79d1691d11 MFH: use correct function 2009-05-04 14:44:46 +00:00
Antony Dovgal 7809cd64e8 MFH: don't segfault on bindto == NULL 2009-05-04 14:25:17 +00:00
Pierre Joye c412b949b9 - #39637 2009-05-04 14:15:58 +00:00
Pierre Joye d6d644b0bb - [DOC] a note about the symbol -> version page/doc 2009-05-04 14:11:45 +00:00
Pierre Joye 93941d1735 - [DOC] MFH: #39637, add CURLOPT_FTP_FILEMETHOD which accepts CURLFTPMETHOD_MULTICWD, CURLFTPMETHOD_NOCWD and CURLFTPMETHOD_SINGLECWD 2009-05-04 14:09:28 +00:00
Ilia Alshanetsky 8c9195e48d Fixed bug #48131 (Don't try to bind ipv4 addresses to ipv6 ips via bindto) 2009-05-04 13:09:15 +00:00
Pierre Joye c3bd64a5be - #47739 2009-05-04 12:23:56 +00:00
Pierre Joye 5b3fa5afdd - MFH: [DOC] #47739. add option CURLOPT_IPRESOLVE which accepts CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6 2009-05-04 12:12:57 +00:00
Greg Beaver 6eb6df3a20 disable cause of mysterious segfault in PHP 5.3 only (5.2 is fine) 2009-05-04 04:29:25 +00:00
Derick Rethans cba1765799 - MFH: Added timezone_version_get() to retrieve the version of the used
timezone database.
2009-05-03 19:58:49 +00:00
Derick Rethans 65fc904143 - MFH: Fixed bug #45191 (error_log ignores date.timezone php.ini val when
setting logging timestamps).
2009-05-03 19:08:49 +00:00
Derick Rethans 20a359a3fb - MFH: Fixed bug #45682 (Unable to var_dump(DateInterval)). 2009-05-03 18:46:28 +00:00
Derick Rethans febc2763dd - MFH: Fixed bug #48058 (Year formatter goes wrong with out-of-int range).
- MFH: Fixed bug #45822 (Near infinite-loops while parsing huge relative offsets).
2009-05-03 18:22:40 +00:00
Jani Taskinen 7e0387dbde fix news 2009-05-03 16:16:15 +00:00
Pierre Joye 0a1ebcb3eb - #41712 2009-05-03 15:17:40 +00:00
Pierre Joye 1cd9a33826 - ws/cs 2009-05-03 15:16:10 +00:00
Pierre Joye ea57845b6e - c/p error 2009-05-03 15:03:35 +00:00
Pierre Joye 8e7031087a - [DOC] MFH: #41712, implement progress callback
- add constants  CURLOPT_PROGRESSFUNCTION
2009-05-03 14:59:46 +00:00
Derick Rethans 1e6e1ca304 - MFH: Added test for (bogus) bug #48097. 2009-05-03 14:28:26 +00:00
Jani Taskinen 16c3b8f149 MFH:- Revert bad patch (which caused bug #48133) 2009-05-02 21:13:54 +00:00
Jani Taskinen 2f22d5a164 MFH:- Fixed bug #48132 (configure fails to test curl ssl support if --disable-rpath is set) 2009-05-02 19:53:48 +00:00
Jani Taskinen ddebbea218 - Extra newlines never hurt anyone.. 2009-05-02 18:32:45 +00:00
Pierre Joye 1cdb964081 - imap entries (2 more to come) 2009-05-02 18:06:04 +00:00
Pierre Joye 9faccc3da1 - [DOC] MFH: add imap_mutf7_to_utf8 and imap_utf8_to_mutf7 2009-05-02 17:59:46 +00:00
Pierre Joye 72d2473d5b - NL cleanup (mixed or windows) 2009-05-02 11:40:33 +00:00
Jani Taskinen bc247e0eec MFH:- Fix parameter variable type to match "l" 2009-05-02 02:08:46 +00:00
Kalle Sommer Nielsen 895327b202 MFH: Update copyright year + line feeds 2009-05-02 01:53:45 +00:00
Kalle Sommer Nielsen d8f43d476e MFH: Fix proto 2009-05-02 01:37:33 +00:00
Antony Dovgal 8594654160 fix test 2009-05-01 22:23:59 +00:00
Jani Taskinen adb22f71c1 MFH:- Fix compile warning in debug mode 2009-05-01 21:46:53 +00:00
Antony Dovgal d3438bf9f5 initialize ext_len 2009-05-01 09:22:16 +00:00
Felipe Pena 2b049552d0 - MFH: Fixed bug #48038 (odbc_execute changes variables used to form params array) 2009-05-01 03:02:46 +00:00
Felipe Pena f55c56b74b - MFH: Fixed bug #48120 (Implementing abstract class FilterIterator in regexiterator.inc) 2009-05-01 01:55:41 +00:00
Pierre Joye 8f9c7574c6 - MFB: #47940, memory leaks in imap_body 2009-04-30 18:56:25 +00:00
Pierre Joye ea81bfcf7a - MFB: #45997, safe_mode bypass with exec/sytem/passthru (windows only) 2009-04-30 15:25:37 +00:00
Jani Taskinen 73b9d33ab7 MFH: fix test 2009-04-30 13:22:13 +00:00
Jani Taskinen a4a08dd43d MFH:fix test 2009-04-30 13:19:31 +00:00
Matteo Beccati b8910c99ea MFH:
- Removed HAVE_PQEXECPARAMS which was left out during the previous commit
2009-04-30 12:56:00 +00:00
Matteo Beccati 6e22ab5e3e MFH:
- Changed PDO_PGSQL configure script to require libpq 7.4
- Cleaned up usage of HAVE_PQ* defines
- Fixed compiler warnings
- Removed custom implementation of PQunescapeByte
# Rationale:
# - PDO_PGSQL couldn't even compile when using libpq 7.3
# - PostgreSQL 7.3 is unsupported since a long time
# - Got consensus from pgsql devs on freenode
2009-04-30 12:38:43 +00:00
Jani Taskinen 5c97c813a9 MFH 2009-04-30 10:41:54 +00:00
Pierre Joye 3cce609d77 - fix build (Marcus, fix re2c please) 2009-04-30 09:11:00 +00:00
Greg Beaver 6289c323d3 MFPECL fix PECL Bug #14646: phar error message unclear with php stream wrappers (note: is there a standard way to list PECL bugs in NEWS?) 2009-04-30 04:43:10 +00:00
Derick Rethans 1bca3a1dc1 - Updated to version 2009.7 (2009g) 2009-04-29 11:12:03 +00:00
Zoe Slattery 3bd566f7c4 Refixing to follow documented behaviour 2009-04-29 07:53:10 +00:00
Greg Beaver f21744809e MFPECL: fix PECL bug #16338, php_stream_copy_to_stream{,_ex}() 2009-04-29 03:24:27 +00:00
Felipe Pena 13b1607886 - Fix test 2009-04-28 23:46:27 +00:00
Ilia Alshanetsky 7b064cf252 Fixed bug #47365 (ip2long() may allow some invalid values on certain 64bit
systems)
2009-04-28 22:27:00 +00:00
Stanislav Malyshev 94b7a00760 fix for #47930 2009-04-28 21:30:23 +00:00
Greg Beaver e9d2d08b3c new test - test passes here, but the pear2coverage.phar.php segfaults in apache 2.2 sapi 2009-04-28 19:28:52 +00:00
Antony Dovgal 53990b2bf3 fix test 2009-04-28 10:30:56 +00:00
Antony Dovgal 319491b658 fix test 2009-04-28 09:04:28 +00:00
Pierre Joye efb0b8bf54 - space to tabs
- CS
2009-04-28 08:29:55 +00:00
Pierre Joye d4e6d96396 - [DOC] add imap_gc (purge cache(s) and constants IMAP_GC_ELT, IMAP_GC_ENV and IMAP_GC_TEXTS to control imap_gc behavior 2009-04-28 08:22:57 +00:00
Dmitry Stogov 9e36fae5ff Fixed bug #48034 (PHP crashes when script is 8192 (8KB) bytes long) 2009-04-28 07:13:30 +00:00
Ilia Alshanetsky 814e4588f4 Removed unused variable 2009-04-27 23:22:16 +00:00
Felipe Pena 9fa1e2d8a8 - MFH: Fixed bug #47254 (Wrong Reflection for extends class) 2009-04-27 19:48:45 +00:00
Jani Taskinen 3d71223080 update 2009-04-27 18:45:12 +00:00
Scott MacVicar 71644fce17 BFN 2009-04-27 18:20:19 +00:00
Kirti Velankar d21456d602 Fix in grapheme_extract 2009-04-27 18:18:04 +00:00
Scott MacVicar d13c028689 MFH Add the ability to enable exceptions rather than warnings for sqlite3, needed for pyrus. 2009-04-27 18:16:46 +00:00
Scott MacVicar 4ce599678f MFH Fix bug #47695 - xmlrpc --with-iconv-dir mangles --with-iconv if they use different iconv versions. Could also just add a dependency on iconv to fix this. 2009-04-27 17:49:32 +00:00
Kalle Sommer Nielsen c848df3fbe MFH: Fixed bug #48088 (Wrong ARG_INFO for OO-API of DateTime) 2009-04-27 14:22:15 +00:00
Felipe Pena 476ea1ad69 - MFH: Fixed bug #48087 (call_user_method() invalid free of arguments) 2009-04-27 12:52:31 +00:00
Pierre Joye 73aa2a66d4 - remove duplicate definition 2009-04-27 00:00:42 +00:00
Sebastian Schürmann 7e5a07ab93 - fix tests
- output of spl_classes differs from 5_2 to 5_3, changed to is_array
2009-04-26 23:58:44 +00:00
Pierre Joye 3d5c1e0f12 - correct clause 2009-04-26 09:42:46 +00:00
Jani Taskinen eb190a2ef9 MFH: Fix cleanup 2009-04-25 21:44:33 +00:00
Jani Taskinen 7be492a208 MFB: Added missing SKIPIF 2009-04-25 21:38:04 +00:00
Arnaud Le Blanc 1bef730840 MFH 2009-04-25 21:13:07 +00:00
Jani Taskinen 3d87ef8b21 MFH 2009-04-25 17:57:36 +00:00
Jani Taskinen c56690dbc3 MFB52: sync 2009-04-25 17:12:40 +00:00
Pierre Joye bf58dedbdf - ws 2009-04-25 16:33:51 +00:00
Nuno Lopes f30aaa1d6d fix strict aliasing problems.
this should fix the crash that Sebastian was having with gcc 4.4. Please confirm this is the case
2009-04-25 16:33:41 +00:00
Pierre Joye bb17721a02 - #elif 2009-04-25 15:12:45 +00:00
Pierre Joye 9292f30367 - ws 2009-04-25 15:08:10 +00:00
Pierre Joye 8c9a66e85b - add 2007d and e 2009-04-25 15:06:34 +00:00
Pierre Joye 7b73190bce - MFH: SEARCHPGM struct has to be freed 2009-04-25 15:02:36 +00:00
Pierre Joye 2e88653242 - silent warning, NULL is not 0 2009-04-25 14:59:21 +00:00
Sebastian Schürmann 7942cd2c3c - Initial commit 2009-04-25 11:33:26 +00:00
Sebastian Schürmann a3a20e29c2 - Initial Commit 2009-04-25 11:29:52 +00:00
Sebastian Schürmann f972956b9d - Initial commit 2009-04-25 11:23:01 +00:00
Pierre Joye ccc615c38e - bad idea to free body 2009-04-25 11:21:14 +00:00
Sebastian Schürmann d2672abf45 Initial commit 2009-04-25 11:19:40 +00:00
Sebastian Schürmann e2a4ef0696 - initial ci
- basic test for ini_alter
2009-04-25 11:18:15 +00:00
Kalle Sommer Nielsen 437e9e6c7c This shouldn't have been in for now 2009-04-25 06:25:55 +00:00
Kalle Sommer Nielsen 9a718dd97c MFH: Use correct data types here, and gdImageSaveAlpha for the alpha flag 2009-04-25 06:22:14 +00:00
Arnaud Le Blanc a772d7c3ef MFH 2009-04-24 19:48:41 +00:00
Arnaud Le Blanc 54958dbc7c MFH 2009-04-24 17:14:32 +00:00
Pierre Joye 30b30dda11 - make MP survive --disable-all (=disable to disable it) 2009-04-24 15:18:37 +00:00
Pierre Joye f4c90952b0 - fix logic 2009-04-24 11:34:38 +00:00
Pierre Joye 3110003f3e - simplify and use PHP_CURL 2009-04-24 09:25:25 +00:00
Pierre Joye c20e1537cf - MFH: #47940, leaks in imap_body() 2009-04-23 22:25:13 +00:00
Pierre Joye b6672146b0 - define HAVE_NEW_MIME2TEXT and detect utf8aux 2009-04-23 22:22:51 +00:00
Pierre Joye 375bbd497d - allow to set or disable the multithreaded build (n, auto or disable) 2009-04-23 20:19:06 +00:00
Pierre Joye dbddb21668 - wrong var name 2009-04-23 18:03:05 +00:00
Takeshi Abe 47b6dc50a4 MFHcheck non-null before any use. 2009-04-23 16:26:17 +00:00
Matteo Beccati 0b576f6f11 MFH:
- Reverted previous fix for bug #46274 and properly fixed it
- Fixed bug #48060
# Also added tests for pdo_oci as it's the only other driver currently
# using streams: no regression found
2009-04-23 13:26:10 +00:00
Pierre Joye b7747cf30c - c/p error 2009-04-23 08:46:37 +00:00
Brian Shire 9e8a9e8bf1 MFH: fix DVAL_TO_LVAL conversion for static array indexes, related to bug #46701 2009-04-22 21:27:19 +00:00
Pierre Joye 30505d1339 - make it loud when libxml is missing or the dep is not present 2009-04-22 19:06:47 +00:00
Ilia Alshanetsky c5c9f30d36 Removed unused vars 2009-04-22 12:35:22 +00:00
Hannes Magnusson ac231aab45 MFH: adjust reflection info 2009-04-21 18:08:34 +00:00
Ilia Alshanetsky 4e856c44d0 Adjusted prototype 2009-04-21 12:26:19 +00:00
Dmitry Stogov 197a950b49 Fixed bug #48004 (Error handler prevents creation of default object) 2009-04-21 09:40:13 +00:00
andy wharmby 04250059a8 Fix test 2009-04-21 08:53:25 +00:00
Dmitry Stogov fb3c73daef Fixed bug #48004 (Error handler prevents creation of default object) 2009-04-21 08:12:07 +00:00
Kalle Sommer Nielsen 788766bfa5 Added missing note about gethostname() (Re: #47839) 2009-04-21 04:35:01 +00:00
Jani Taskinen 33bec1ecb2 - Sync with HEAD (just reorder to match HEAD order) 2009-04-20 16:07:59 +00:00
Jani Taskinen 353b8844bf ws 2009-04-20 15:39:48 +00:00
Jani Taskinen 8393525511 MFH:- Added path sanity check (autotools + libtool do not cope with whitespace..) 2009-04-20 15:03:21 +00:00
Etienne Kneuss 3b90499884 MFH: Fix #48023 (spl_autoload_register didn't store closures) 2009-04-20 14:20:20 +00:00
Ilia Alshanetsky aea9dfb353 Fixed typo 2009-04-20 14:08:43 +00:00
Mikko Koppanen 8e0a3c21a3 MFH: Closes #47991 SSL streams fail if error stack contains items 2009-04-20 09:44:29 +00:00
Johannes Schlüter 501ecb10f4 Fix #47535 Compilation failure in ps_fetch_from_1_to_8_bytes() 2009-04-20 09:16:51 +00:00
Pierre Joye c7e0d95deb - silent compiler warning 2009-04-20 08:41:39 +00:00
Pierre Joye 70c96f788d - nuke unused variable 2009-04-20 08:40:39 +00:00
Pierre Joye be093af4fa - silent compiler warning 2009-04-20 08:28:44 +00:00
Arnaud Le Blanc 555208c581 MFH: Fix test 2009-04-19 22:01:46 +00:00
Arnaud Le Blanc 8ea9eb8560 MFH: Better fix for #47997 2009-04-19 17:10:35 +00:00
Ilia Alshanetsky bd7f4375a3 Fixed bug #47937 (system() calls sapi_flush() regardless of output
buffering)
2009-04-19 14:59:52 +00:00
Arnaud Le Blanc ed791d55ad BFN moved to 5.2 2009-04-19 14:44:43 +00:00
Arnaud Le Blanc 790d160b6f new test 2009-04-19 13:56:08 +00:00
Arnaud Le Blanc 14c717f449 Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams) 2009-04-19 13:46:47 +00:00
Felipe Pena 0c6cf02985 - MFH: Fix build 2009-04-18 18:56:11 +00:00
Ilia Alshanetsky 7fef2270b0 Fixed compiler warning 2009-04-16 22:14:28 +00:00
Hannes Magnusson 0829cb89ee MFH: Fixed bug#47981 (error handler not called regardless) 2009-04-16 13:48:01 +00:00
Hannes Magnusson 65640d2c1a MFH: Make it possible to run on 5.2 2009-04-16 13:41:25 +00:00
Zoe Slattery 11d43ac5d2 fixing incorrect --CLEAN-- sections 2009-04-16 12:28:03 +00:00
Zoe Slattery 25ff381418 fixing incorrect --CLEAN-- sections 2009-04-16 12:14:38 +00:00
Zoe Slattery c80613cce2 fixing incorrect --CLEAN-- sections 2009-04-16 10:54:45 +00:00
Dmitry Stogov 679c6298e3 - Added "dechunk" filter which can decode HTTP responces with chunked transfer-encoding. HTTP streams use this filter automatically in case "Transfer-Encoding: chunked" header presents in responce. It's possible to disable this behaviour using "http"=>array("auto_decode"=>0) in stream context
- Fixed bug #47021 (SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked")
2009-04-16 10:16:27 +00:00
Sebastian Bergmann 472e8ca337 Fugbix typo. 2009-04-16 06:47:36 +00:00
Pierre Joye ebc2912872 - #47978, typo in ext/sockets/sockets.c 2009-04-16 05:33:13 +00:00
Moriyoshi Koizumi ff16122cce - MFH: just a paranoiac test. This works perfectly. 2009-04-16 02:07:20 +00:00
Antony Dovgal a31e30fafb fix parse error 2009-04-15 20:56:58 +00:00
Antony Dovgal af4b7aca6e fix test 2009-04-15 20:54:52 +00:00
Ilia Alshanetsky 28db7c0207 Fixed bug #47969 (ezmlm_hash() returns different values depend on OS) 2009-04-15 14:24:38 +00:00
Ilia Alshanetsky dd5189e9bd Sqlite news 2009-04-14 15:48:37 +00:00
Antony Dovgal 2627e08886 MFH: revert wrong fix for bug #47930 2009-04-14 14:18:35 +00:00
Stanislav Malyshev d62333c7d6 fix #47930 2009-04-13 19:21:28 +00:00
Ilia Alshanetsky 175a85dd6c Upgrade to SQLite 3.6.13 2009-04-13 15:14:55 +00:00
Derick Rethans 12ecab1c3b - Updated to version 2009.6 (2009f) 2009-04-13 13:41:15 +00:00
Ilia Alshanetsky c593790b62 Fixed bug #47946 (ImageConvolution overwrites background)
# original patch by  jcolby at acsol dot net
2009-04-12 14:43:21 +00:00
Nuno Lopes 90a2d19794 upgrade PCRE to version 7.9 2009-04-11 18:57:27 +00:00
Mikko Koppanen ff62b87cd6 Added news entry about the 'n' flag 2009-04-11 12:46:31 +00:00
Mikko Koppanen 3fd12260aa MFH: Added support for passing O_NONBLOCK to the underlying open() system call 2009-04-11 11:44:15 +00:00
Philip Olson e97786558b MFH: Removed an unnecessary item, that calls for doc builds 2009-04-11 03:42:02 +00:00
Stanislav Malyshev 5b8a5d7df4 merge grapheme substr fix 2009-04-10 16:53:35 +00:00
Nuno Lopes 70449f2e13 BFN 47552 2009-04-10 15:50:15 +00:00
Nuno Lopes ae57857eba fix bug #47662: support more than 127 named subpatterns 2009-04-10 15:47:15 +00:00
Philip Olson c1ccccc658 Implemented new shorter URLs for ini settings (ex: php.net/short-open-tag) 2009-04-10 01:18:49 +00:00
Philip Olson 9d2c39ac41 Fixed typo 2009-04-10 00:10:31 +00:00
Rasmus Lerdorf 11a8e2e82e Fix the test case 2009-04-09 16:04:45 +00:00
Rasmus Lerdorf cefbe2a8eb Don't strip a leading 0 in a floating point number 2009-04-09 15:55:46 +00:00
Ilia Alshanetsky 0e59140380 MFB: Added test for php_sapi_name() 2009-04-09 13:29:01 +00:00
Hannes Magnusson e2576c3504 MFH: Inglés gramática 2009-04-09 10:20:02 +00:00
Hannes Magnusson 6cda8a274a MFH: Fixed bug#47427 (-s outputs, not displays) 2009-04-09 10:07:56 +00:00
Stanislav Malyshev e27be1e76c add utility macro 2009-04-08 23:06:16 +00:00
Rasmus Lerdorf 70c7e179de Fixed bug #44929 - Better handling of leading zeros 2009-04-08 18:10:46 +00:00
Sebastian Bergmann 03b1d4f876 MFH: Rename reflection*.phpt to Reflection*.phpt for consistency. 2009-04-08 16:09:16 +00:00
Ilia Alshanetsky f8fc61244b Maintainer file update 2009-04-08 13:31:54 +00:00
Matt Wilmas 12805abff7 MFH: Changed spelling from "build" to "built" 2009-04-08 13:26:35 +00:00
Dmitry Stogov ae2226133a Improved specialization (IS_CONST can't be IS_OBJECT) 2009-04-08 13:19:34 +00:00
Dmitry Stogov c8e5bc5988 Calculate hash value once 2009-04-08 13:17:58 +00:00
Dmitry Stogov 0b6065e89a Removed deprecated code and fixed function name in error message 2009-04-08 13:17:09 +00:00
Dmitry Stogov 7a1cca3f08 Added ability to check build_id by extension 2009-04-08 12:19:01 +00:00
Hannes Magnusson 42b3bf903c MFH: Add guidelines for re-releasing 2009-04-08 08:39:10 +00:00
Felipe Pena 9472026f12 - Added test 2009-04-08 00:28:39 +00:00
Felipe Pena 844ae2f336 - MFH: Fix ZTS build 2009-04-08 00:15:48 +00:00
Felipe Pena b33f88607a - MFH: Fixed bug #46108 (DateTime - Memory leak when unserializing) 2009-04-07 20:05:50 +00:00
Arnaud Le Blanc 95b308949c MFH: Fixed bug #47893 (CLI aborts on non blocking stdout) 2009-04-07 16:11:19 +00:00
Rob Richards f0b4c7be5c MFH: fix bug #47849 (Non-deep import loses the namespace)
add test
2009-04-07 15:32:12 +00:00
Pierre Joye 24225b88bd - silent warning or possible linker error on win 2009-04-07 13:01:27 +00:00
Pierre Joye 8cd0428d09 - ws 2009-04-07 12:45:26 +00:00
Kalle Sommer Nielsen d2c489e350 Revert previous commit as it was causing alot more trouble than expected 2009-04-07 11:45:13 +00:00
Pierre Joye 039a154633 - #47812, undefined symbol: gdJpegGetVersionInt
- #46015, Build fails with system gd
- enable gd_compat when built using system's gd
2009-04-07 09:26:22 +00:00
Pierre Joye 2350110e55 - initial import, support for external gd library while keeping bug fixes or features (more will be activated later) 2009-04-07 09:24:34 +00:00
Ilia Alshanetsky 309533842f MFB: ext/pgsql/tests/80_bug14383.phpt 2009-04-06 14:23:07 +00:00
Derick Rethans 53cead8268 - Updated to version 2009.5 (2009e) 2009-04-06 13:27:41 +00:00
Hannes Magnusson d800809da4 This is apparently fixed 2009-04-06 13:16:05 +00:00
Hannes Magnusson e9c1d924b8 MFH: Add test for bug#42596 2009-04-06 12:12:37 +00:00
Hannes Magnusson b8bc0f24b3 MFH: Fix segfault on invalid session.save_path 2009-04-06 11:48:49 +00:00
Hannes Magnusson 33aa4ac568 MFH: fix folding 2009-04-06 11:45:25 +00:00
Dmitry Stogov 82b86c1c38 Bug #47880 (crashes in call_user_func_array()) 2009-04-06 11:10:32 +00:00
Pierre Joye 63169ea0b2 - naming & cleanup 2009-04-06 09:39:02 +00:00
Hannes Magnusson 33e01788ef MFH: Use obscure name 2009-04-06 09:31:52 +00:00
Kalle Sommer Nielsen 49e4959a6d MFH: Fix redef warnings
Kill warning about php_localtime_r not being defined
2009-04-06 09:14:54 +00:00
Hannes Magnusson d038c5f0db MFH: Mention which directives are hardcoded using the CLI SAPI 2009-04-06 08:37:33 +00:00
Sebastian Bergmann 03e48b1535 MFH: Fix issue reported by Roman Borschel. 2009-04-04 14:36:23 +00:00
Pierre Joye 99152e8f58 - nuke unused var 2009-04-04 11:37:48 +00:00
Felipe Pena 405e507c16 - Added new Reflection methods 2009-04-03 23:56:26 +00:00
Dmitry Stogov 0f5c395ba1 Improved GC speed and reduced stack usage 2009-04-03 18:52:21 +00:00
Felipe Pena 3c95982c89 - MFH: Changed namespace separator 2009-04-03 14:37:02 +00:00
Ilia Alshanetsky c1effd8c7a Block unused function 2009-04-02 21:30:09 +00:00
Matteo Beccati 90fb825ad4 MFH:
- Fixed bug #44173 (PDO->query() parameter parsing/checking needs an
  update)
# The changeset is longer than really needed because pdo_stmt.c was
# refactored to remove the "goto"
2009-04-02 16:41:23 +00:00
Felipe Pena c23f8f1134 - MFH: Fixed bug #47818 (Segfault due to bound callback param) 2009-04-02 15:52:57 +00:00
Dmitry Stogov 875a27b7ed Fixed bug #47851 (is_callable throws fatal error) 2009-04-02 09:56:33 +00:00
Matt Wilmas f18b366ec8 MFH: Fixed tests, reverted changes from bug #47546 2009-04-02 09:42:26 +00:00
Scott MacVicar f6dceb637b Rebuild credits, was missed in previous RC 2009-04-02 09:18:00 +00:00
Kalle Sommer Nielsen 76fc7f3845 MFH:
We dont need to escape % here, it just generates a compiler warning
2009-04-02 05:17:36 +00:00
Matt Wilmas c27bf17f63 MFH: explode() stuff:
- Fixed bug #47560 (explode()'s limit parameter odd behaviour) by reverting change for bug #47546
- Changed int to long where needed (should fix memory errors from overflow seen in bug #47854)
- Simplified logic a bit with limit and its default value
- php_explode_negative_limit(): removed safe_emalloc (not needed; plain erealloc is used later)
 - Moved declarations/allocation to optimize if the delimiter isn't found
 - Changed ALLOC_STEP size for less realloc's (and maybe better memory block alignment?)
2009-04-01 17:05:36 +00:00
Felipe Pena dc683c85f4 - MFH: Fixed bug #47852 (Compilation failure in zend_alloc.c) (Matteo) 2009-04-01 16:55:47 +00:00
Pierre Joye 2c243e2bb5 - MFH: 8.3.x supports pqprepare 2009-04-01 16:16:49 +00:00
Pierre Joye ebfdd61503 - fix build when pqprepare does not exist 2009-04-01 16:13:33 +00:00
Takeshi Abe 335ba19297 MFH:
replaced static gdPngJmpbufStruct, which is afraid of being shared with
several threads, by a couple of auto variables.
2009-04-01 16:06:56 +00:00
Alexey Zakhlestin 114e354048 MFH: reverted previous patch, using explicit cast instead 2009-04-01 14:35:24 +00:00
Ilia Alshanetsky e1cb53f5ec Fixed bug #47856 (stristr() converts needle to lower-case). 2009-04-01 14:00:38 +00:00
Alexey Zakhlestin 4bccb4565d MFH: const pointer was used in non-const context 2009-04-01 11:32:14 +00:00
Kalle Sommer Nielsen e45c0bb900 MFH:
Fixed a few warnings from copy():
* If $item is empty then skip to next entry, this fixes the "The first argument cannot be a directory" warnings
* If file does not exist then dont try to copy it
2009-04-01 09:21:31 +00:00
Pierre Joye 03243d7e17 - silent warning 2009-03-31 18:05:36 +00:00
Pierre Joye a35ba55065 - remove last test for MAX_INT, did not work on x64 and this case is
covered by bug47745.phpt
2009-03-31 17:59:19 +00:00
Scott MacVicar 4a40de7e79 BFN 2009-03-31 14:26:19 +00:00
Scott MacVicar aeddac4a1a MFH Update libsqlite to 3.6.12 2009-03-31 14:20:08 +00:00
Matt Wilmas f75fff5ea7 - MFH: Removed unused LONG_SIGN_MASK definition, and a stray \
- Changed sign flag to int (it's no longer being used in a calculation)
2009-03-31 11:22:08 +00:00
Dmitry Stogov 5e274297f8 Fixed bug #47745 (FILTER_VALIDATE_INT doesn't allow minimum integer) 2009-03-31 10:02:40 +00:00
Ilia Alshanetsky 83ec1b1668 Changed order by Wez's request 2009-03-30 19:49:04 +00:00
Pierre Joye 012cd06023 - MFB: better test case, it crashes on more architecture 2009-03-30 18:06:50 +00:00
Felipe Pena dcd86aebd2 - MFH: Removed UG(unicode) checks 2009-03-30 16:52:33 +00:00
Kalle Sommer Nielsen 02fe66d1e0 MFH:
* Bypass the date/timezone warning by forcing UTC when running mkdist.php
* Don't run the copy list for PECL if theres no PECL extensions to copy (fixes a few copy() warnings)
2009-03-30 14:32:52 +00:00
Kalle Sommer Nielsen f4d5a55a90 Nuke unused variable (only in this branch) 2009-03-30 14:25:54 +00:00
Kalle Sommer Nielsen ec3649530f MFH: Fixed compiler warning 2009-03-30 14:24:16 +00:00
Johannes Schlüter 714e407667 Reorder NEWS entries 2009-03-30 13:57:01 +00:00
Johannes Schlüter bcb40030a5 MFH Fix #47819 (Getting pdo_mysql.so: undefined symbol: mysqlnd_debug_init at
startup)
2009-03-30 13:55:47 +00:00
andy wharmby 76b30f6434 Fix date tests which started failing after change to BST 2009-03-30 12:35:31 +00:00
Scott MacVicar 0570455374 MFH Add test for bug #47828 2009-03-30 09:17:57 +00:00
Scott MacVicar 5df74915f7 MFH Fix test, -2147483648 is a valid unsigned int where -2147483649 isn't. 2009-03-30 00:41:09 +00:00
Scott MacVicar 04566e106a MFH Fix bug #47828 - Converting to UTF-8 can sometimes fail, check error codes and avoid segfault. 2009-03-29 23:32:34 +00:00
Scott MacVicar b64b74fe9f MFH Fix bug #47826 - Building with system sqlite3 can miss a symbol. 2009-03-29 21:34:13 +00:00
Matteo Beccati 638af1ec91 MFH:
- Fixed pcntl test for platforms not accepting a very large timeout in sigtimedwait()
# It isn't really necessary for the child to wait for PHP_INT_MAX seconds
2009-03-29 16:43:47 +00:00
Pierre Joye 1fcabf75fe - check in the libpng dir as well 2009-03-29 14:01:56 +00:00
Matteo Beccati da141679cb MFH:
- Fixed bug #47816 (pcntl tests failing on NetBSD)
# Tests will still fail until a few kernel bugs are fixed
2009-03-28 03:21:04 +00:00
Matteo Beccati 8974174532 MFH:
- Reverting: pcntl_signal() returning NULL when passing wrong parameters
2009-03-28 03:12:52 +00:00
Matteo Beccati 6c6c8febf1 - Fixed bug #44861 (scrollable cursor don't work with pgsql) 2009-03-28 02:58:04 +00:00
Matteo Beccati fb2a077d5b MFH:
- Added missing #undefs, fixing compile warnings
2009-03-28 01:58:49 +00:00
Matteo Beccati 724ae4b95e MFH:
- Fixed pcntl_signal() returning NULL when passing wrong parameters
2009-03-28 01:32:51 +00:00
Arnaud Le Blanc 155564d727 Fix UPGRADING and NEWS for ticks undeprecation 2009-03-28 01:29:14 +00:00
Hannes Magnusson 12bd41c60a MFH: Fix protos 2009-03-27 19:22:29 +00:00
Felipe Pena ca4970fd8a - Merged into 5_2 2009-03-27 16:51:35 +00:00
Arnaud Le Blanc 513837539b MFH: fix skip-if 2009-03-27 02:35:37 +00:00
Arnaud Le Blanc 843202cd5c MFH: Fixed initialization of tick functions list in ZTS 2009-03-27 02:34:06 +00:00
Arnaud Le Blanc 13061cf0a0 Removed deprecation warning for ticks 2009-03-27 02:32:57 +00:00
Pierre Joye 3526fe5dad - update extension= 2009-03-26 18:45:37 +00:00
Dmitry Stogov f2b7adffb5 Fixed bug #47596 (Bus error on parsing file) 2009-03-26 17:28:49 +00:00
Felipe Pena d2ca66893e - Fix typo 2009-03-26 13:55:06 +00:00
Felipe Pena d7c4a27376 MFH: - Fixed bug #47769 (Strange extends PDO) 2009-03-26 12:53:39 +00:00
Dmitry Stogov 7ef3db0e4e Fixed bug #47516 (nowdoc can not be embed in heredoc but can be embed in double quote) 2009-03-26 12:37:54 +00:00
Dmitry Stogov da9405de72 Fixed bug #47714 (autoloading classes inside exception_handler leads to crashes) 2009-03-26 10:56:45 +00:00
Dmitry Stogov ab7f6d88e0 Fixed bug #47771 (Exception during object construction from arg call calls object's destructor) 2009-03-26 10:17:30 +00:00
Eric Stewart 0b41f612ac Corrected missing comment. 2009-03-26 01:38:53 +00:00
Felipe Pena 6f7cc9a390 - Missing changes related to #47757 for this branch 2009-03-26 00:43:45 +00:00
Christian Seiler 3470a30125 - Fixed memory leak in ob_get_clean/ob_get_flush.
# Not necessary in HEAD because output buffering was completely rewritten
# there.
2009-03-25 23:59:45 +00:00
Arnaud Le Blanc 19b88b6163 MFH: Fix build on FreeBSD <7 (fixes #47777) 2009-03-25 23:34:08 +00:00
Felipe Pena fe9ce624f6 MFH:
- Fixed bug #47779 (Wrong value for SIG_UNBLOCK and SIG_SETMASK constants).
  Patch by: mbeccati at php.net
2009-03-25 22:52:30 +00:00
Hannes Magnusson 2881a60e31 Add missing proto 2009-03-25 19:55:59 +00:00
Ilia Alshanetsky d348b2723c Fixed bug #47772 (FILTER_VALIDATE_EMAIL allows foo@bar. addresses) 2009-03-25 18:51:44 +00:00
Takeshi Abe 3b5d1e7396 MFH: fix test to follow #47757 2009-03-25 15:25:59 +00:00
Dmitry Stogov bcd9099b28 Fixed bug #47038 (Memory leak in include) 2009-03-25 15:23:58 +00:00
Dmitry Stogov 4a4d739e49 Fixed bug #47699 (autoload and late static binding) 2009-03-25 10:39:26 +00:00
Johannes Schlüter b42f9a7f7d MFH: mysql_db_query() is always deprecated 2009-03-25 10:27:38 +00:00
Christopher Jones 870addb951 Obsolete package2.xml: resume using package.xml 2009-03-25 02:00:53 +00:00
Christopher Jones 1b11bacae4 MFH: use random text 2009-03-25 01:57:40 +00:00
Ilia Alshanetsky f87260b8c2 Updated PDO maintainers 2009-03-24 23:57:30 +00:00
Pierre Joye 1d177508c8 - new php.ini names 2009-03-24 22:15:46 +00:00
Dmitry Stogov 343bcc26ab Fixed double efree() 2009-03-24 16:35:53 +00:00
Dmitry Stogov 4658d9408b Fixed "-0" parsing and optimized overflow check (Matt) 2009-03-24 16:02:50 +00:00
Felipe Pena a3e90c2a63 - Fix test 2009-03-24 15:51:13 +00:00
Pierre Joye bc272fdc68 - GEPJ.. (thx to Derick for the head!) 2009-03-24 12:48:52 +00:00
Pierre Joye d9febb46be - #47757 rename JPG to JPEG in phpinfo 2009-03-24 09:45:39 +00:00
Pierre Joye 043ae0e0ee - fix logic after my build fix, thx to Hannes for the head up! 2009-03-24 09:44:16 +00:00
Pierre Joye 868d7d8144 - #47757 rename JPG to JPEG in phpinfo 2009-03-24 09:41:42 +00:00
Pierre Joye c68e24ce1a - fix build 2009-03-24 09:24:35 +00:00
Scott MacVicar d2dca3a3ec BFN 2009-03-24 02:00:34 +00:00
Scott MacVicar da0eb9b8e8 Fix bug #42362 - certain status codes never have output, so sending the gzip compression headers cause problems 2009-03-24 01:57:53 +00:00
Felipe Pena 861d51223f MFH:
- Fixed bug #44409 (PDO::FETCH_SERIALIZE calls __construct())
  Patch by: matteo at beccati dot com
2009-03-23 23:15:03 +00:00
Uwe Schindler 0935ae193c MFH: Fix a sigsegv on server shutdown, add missing sapi_shutdown(). 2009-03-23 23:13:14 +00:00
Ilia Alshanetsky 79c44de0ca Improved parameter handling 2009-03-23 22:30:56 +00:00
Derick Rethans 7560b2ec2f - Updated to version 2009.4 (2009d) 2009-03-23 21:39:45 +00:00
Johannes Schlüter 5afff17958 Back to dev 2009-03-23 20:40:37 +00:00
Johannes Schlüter 3c038201eb 5.3.0 RC 1 2009-03-23 20:33:21 +00:00
Eric Stewart e0669bf1ab 1. Involves an mbstring setting correction regarding:
http://marc.info/?l=php-cvs&m=123596904426621&w=2

2. Added mbstring.http_output_conv_mimetype directive.

3. Adds an additional comment including XOR in the list of usable bitwise operators.

4. Note regarding the merge of E_STRICT into E_ALL in PHP 6.0.0.

5. Notes regarding [PATH] and [HOST] use in CGI/FastCGI.
2009-03-23 02:36:34 +00:00
Ilia Alshanetsky 03a27e3373 Improved parameter parsing 2009-03-22 15:05:20 +00:00
Derick Rethans caf9054e3d - Updated to version 2009.3 (2009c) 2009-03-22 11:49:55 +00:00
Pierre Joye afc5630357 - disable it when ZTS is disabled 2009-03-20 18:49:37 +00:00
Pierre Joye 689c2f9ab2 - fix build, add new cp850 file 2009-03-20 18:42:02 +00:00
Zoe Slattery 77aa29358b clarification of wwwhether 'make test' needs the PHP xecutable to be set 2009-03-20 15:43:40 +00:00
Dmitry Stogov 8f14aed31b Fixed warning 2009-03-20 11:23:00 +00:00
Zoe Slattery c71cc4eda8 added skip if for root 2009-03-20 08:58:09 +00:00
Ilia Alshanetsky c5649092e2 MFB: Fixed bug #47721 (Aligment issues in mbstring and sysvshm extension) 2009-03-19 23:11:32 +00:00
Steph Fox 01a58c323d - Add self to maintainer list so's I can get bug notifications :) 2009-03-19 22:44:55 +00:00
Steph Fox f5a65cabfd MFH
- Fix bug #38805 ( PDO Truncates Text from SQL Server Text Data Type Field)
- Bring behaviour into line with ext/mssql
- Several memleaks plugged
2009-03-19 22:16:29 +00:00
Matt Wilmas 91d325dd72 MFH: Avoid 2 conversions when decoding numbers 2009-03-19 19:26:00 +00:00
Matt Wilmas 021e5d168f MFH: Removed extra space from eval string 2009-03-19 18:34:16 +00:00
Arnaud Le Blanc 2b57d6d6ea MFH: Better fix for #44607. Fixes #47487 (php_stream_fill_read_buffer()
performance degraded after fix of bug 44607).
2009-03-19 17:55:10 +00:00
Dmitry Stogov 9f32cb2d39 Fixed check for long integer overflow 2009-03-19 15:16:10 +00:00
Etienne Kneuss 8623e9db8b MFH: Fix #47231 (offsetGet error using incorrect offset) 2009-03-19 03:01:37 +00:00
Etienne Kneuss c44d7b3576 MFH: Add test covering for #47671 2009-03-19 02:47:00 +00:00
Etienne Kneuss 225d86dcfa MFH: Fix #47671 (cloning SplObjectStorage instances) 2009-03-19 02:45:17 +00:00
Ilia Alshanetsky 61bdfaa082 Improved parameter parsing 2009-03-19 00:18:48 +00:00
andy wharmby a2e4773405 New tests for various date extension functions. Tested on Windows, Linux and linux 64 2009-03-18 23:35:25 +00:00
Dmitry Stogov 3a30cfe1e0 Removed unnecassary checks 2009-03-18 18:49:27 +00:00
Pierre Joye 8235286324 - some cleanup, more to come 2009-03-18 18:40:44 +00:00
Pierre Joye 989b9d7c43 - php.ini-dev/prod 2009-03-18 17:58:09 +00:00
Moriyoshi Koizumi df57de4879 - Use UTF-8 characters as 5.2's NEWS does. 2009-03-18 17:48:18 +00:00
Moriyoshi Koizumi 8ae17615d7 - Add support for CP850 encoding (patch by Denis Giffeler) 2009-03-18 17:44:25 +00:00
Moriyoshi Koizumi 115b041861 - MFH: Synching .dsp file (I am not sure whether I really should do this) 2009-03-18 17:34:27 +00:00
Moriyoshi Koizumi 5f863af8be - Typo. 2009-03-18 17:06:40 +00:00
Moriyoshi Koizumi a9a9e75b0b - Add entries for the encodings that are already supported by mbstring but
not listed here.
2009-03-18 17:03:38 +00:00
Moriyoshi Koizumi f1d24dfcb7 - staticise private symbols. 2009-03-18 16:51:15 +00:00
Matt Wilmas 56ee50ac62 MFH: Fixed test on 64-bit 2009-03-18 16:30:21 +00:00
Takeshi Abe 3e3721be58 MFH: Fixed libgd #186 (Tiling true colour with palette image does not work) 2009-03-18 15:30:37 +00:00
Dmitry Stogov daac1a6273 Improved speed of conditional jump instructions by checking for most useful case (conditional expression) 2009-03-18 14:17:15 +00:00
Dmitry Stogov e66bd02bc6 Inline only the most useful code 2009-03-18 14:15:28 +00:00
Dmitry Stogov ff5620524c Fixed bug #47704 (crashes on some "bad" operations with string offsets)
Removed unnecessary checks
2009-03-18 12:53:17 +00:00
Dmitry Stogov 15de25b228 Forgotten file (sorry) 2009-03-18 11:53:10 +00:00
andy wharmby 0c1fe359a1 New tests for date extension DateTime methods Tested on Windows, Linux and linux 64 2009-03-18 11:32:59 +00:00
Dmitry Stogov 69ce7ea442 optimization 2009-03-18 11:25:37 +00:00
andy wharmby 13db8cb25a New tests for date extension DateTimeZone methods Tested on Windows, Linux and linux 64 2009-03-18 11:13:04 +00:00
Dmitry Stogov c6e55db534 Forgotten include 2009-03-18 10:41:39 +00:00
Dmitry Stogov 31c0af245e Fixed floating point mathematic speed degradation (Christian) 2009-03-18 10:18:10 +00:00
Dmitry Stogov d3b42700a0 Better fix for bug #45877 (smaller and faster) 2009-03-18 09:48:55 +00:00
Pierre Joye 408abe99a7 - to 5.2 2009-03-18 08:16:13 +00:00
Matt Wilmas 6bb0ac9712 MFH: Fixed bug #45877 (Array key '2147483647' left as string) 2009-03-18 01:08:12 +00:00
Pierre Joye 30d058488e - #43073 2009-03-18 00:31:40 +00:00
Pierre Joye d5f2191170 - #43073, TrueType bounding box is wrong for angle<>0 2009-03-18 00:29:42 +00:00
Scott MacVicar a23b4073e8 MFH Missing skip in tests 2009-03-17 23:31:14 +00:00
Scott MacVicar c2b15e947d MFH Replace magic values with a define for json encoding, makes reading it a bit easier 2009-03-17 23:26:02 +00:00
Ilia Alshanetsky 76939503c8 Fixed compiler warning 2009-03-17 23:21:37 +00:00
Scott MacVicar cd9908c69c BFN 2009-03-17 23:17:40 +00:00
Scott MacVicar 8d2a5cabec MFH Add PHP_JSON_FORCE_OBJECT for forcing an object output of an array 2009-03-17 23:15:40 +00:00
Felipe Pena b117752f8b - MFH: Year++ 2009-03-17 23:07:40 +00:00
Matt Wilmas 927880b5cc MFH: Fixed bug #46882 (Serialize / Unserialize misbehaviour under OS with different bit numbers) 2009-03-17 22:04:10 +00:00
Johannes Schlüter c3fcaf1d7d MFH: Replace old php.ini files with the new ones according to
http://wiki.php.net/rfc/newinis (by Eric Lee Stewart)
2009-03-17 19:19:17 +00:00
Pierre Joye bd1e5696d1 - make it less(er) sensible to bison version 2009-03-17 16:02:00 +00:00
Pierre Joye ef5c2c83dc - make it less sensible to bison version 2009-03-17 15:59:24 +00:00
Pierre Joye 79361c4c74 - s,win32,windows, and add myself to the list 2009-03-17 15:37:34 +00:00
Scott MacVicar 3a0c86327f MFH Deal with overflow when decoding large numbers 2009-03-17 14:57:39 +00:00
Pierre Joye dec9e1910c - MFH: disable HAVE__CONTROLFP_S with VC9, 3x times slowdown 2009-03-17 13:34:26 +00:00
Johannes Schlüter 5942f27d86 MFH: mark mysqlnd's threading (which can be used for background pre-fetching)
experimental
2009-03-17 10:05:19 +00:00
Andrey Hristov df7ebb5d41 MFH: Fix the build because the macro name has changed 2009-03-17 09:51:31 +00:00
Moriyoshi Koizumi d8a22d0b05 - MFH: Make iconv filter accept '.' as the delimiter between encoding names as
well as '/'. It's impossible to specify the filter in php://filter without
  this fix.

# I hope this to be merged to 5.2 as well. This doesn't break BC as there is
# no such encoding name that contains '.'. (Andif there were to be such one,
# the filter is failed in the first place since it also uses '.' for the
# delimiter between the filter name and the "from" encoding name.
2009-03-17 05:31:04 +00:00
Scott MacVicar 6f3f68311b BFN 2009-03-17 03:29:27 +00:00
Scott MacVicar bb2283bf4e MFH Fix bug #47359 - Use the official unofficial mimetype for bmp files, this stops IE from getting confused. 2009-03-17 03:25:57 +00:00
Scott MacVicar df199c2e75 BFN 2009-03-17 02:47:29 +00:00
Scott MacVicar bc486b4c7e MFH Fix bug #47678 - Allow loadExtension to be disabled in SQLite3 2009-03-17 02:45:12 +00:00
Scott MacVicar 07e675cc52 MFH Fix bug #47644 - Valid integers are truncated with json_decode() 2009-03-17 02:00:13 +00:00
Christopher Jones 1d5dbea704 Fix INI blocks 2009-03-17 01:52:52 +00:00
Matt Wilmas 7f373057ef Removed unneeded HashPosition variable (php_implode() doesn't change the internal pointer)
- It was added in '06 with the "200-300%" implode() optimization (hasn't been merged to HEAD)
2009-03-17 00:02:39 +00:00
Zoe Slattery 467dbf859a test for /ext/tidy from stefan priebsch 2009-03-16 20:38:19 +00:00
Felipe Pena c7bfd897e6 - MFH: Fixed bug #47616 (curl keeps crashing) 2009-03-16 15:08:56 +00:00
Pierre Joye 8e202b40a0 - fix the build for win (vc6 or vc9)
- fix logic in time convertion
- force shared on windows, will fix the dirent issue later (no, it is not enough to simply remove the dep or header include)
- add myself before I forget again
2009-03-16 15:03:06 +00:00
Dmitry Stogov 122232aa54 Fixed test 2009-03-16 15:00:00 +00:00
Ilia Alshanetsky ea27fd2ba3 Fixed compiler warnings 2009-03-16 12:52:39 +00:00
Mikko Koppanen 5645de756d Closes bug #47667 2009-03-16 10:19:43 +00:00
Pierre Joye 39988315e0 - fix build 2009-03-16 10:13:18 +00:00
Pierre Joye 3612ddde16 - revert last commit (tree was not updated) 2009-03-16 10:08:51 +00:00
Pierre Joye 3091ece096 - fix vc6 build 2009-03-16 09:59:16 +00:00
Dmitry Stogov cc91da1bd7 Fixed bug #47664 (get_class returns NULL instead of FALSE) 2009-03-16 09:51:32 +00:00
Christopher Jones 6e2521f070 MFH Prepare for PECL OCI8 1.3.5 2009-03-16 05:44:49 +00:00
Christopher Jones d14b84719d MFH: Mac OSX customization for initialization error message 2009-03-16 05:34:02 +00:00
Brian Shire dd031eee68 MFH: Fix scanner handling of NULL values in heredoc, nowdoc, strings, comments, and non-parsed content. 2009-03-16 01:40:14 +00:00
Kalle Sommer Nielsen cb1d8ac991 Lets follow the same style, shall we? 2009-03-15 23:41:01 +00:00
Pierre Joye e7c2f0ec50 - refer to fileinfo so the entry can easily be filtered out on 5.3.0 final 2009-03-15 23:18:22 +00:00
Scott MacVicar e10b18693c MFH fileinfo tests are missing skipif 2009-03-15 23:17:28 +00:00
Scott MacVicar 4891732b28 BFN 2009-03-15 23:10:24 +00:00
Scott MacVicar 7a29c8f386 MFH Update fileinfo to libmagic 5.00 and remove dependency on dirent.h on Windows 2009-03-15 23:04:19 +00:00
Moriyoshi Koizumi 716d2c9123 - MFH: Fix a bug that mbstring.internal_encoding doesn't take effect within
the request encoding converter.
2009-03-15 20:42:56 +00:00
Jani Taskinen 49e408c55d - Nuketh old remains 2009-03-15 12:39:17 +00:00
Takeshi Abe 92ce8cfb42 revert the NEWS line for bug #45799 2009-03-14 17:48:33 +00:00
Rob Richards 1220cd5495 NEWS 2009-03-14 17:36:19 +00:00
Rob Richards 1313c86484 MFH: add LIBXML_LOADED_VERSION constant that contains currently loaded libxml2 version
add libxml2 version being used to info output
2009-03-14 17:30:28 +00:00
Takeshi Abe d2709b764c MFH: Fixed bug #45799 (imagepng() crashes on empty image) 2009-03-14 16:08:00 +00:00
Stanislav Malyshev c452af9e6a add new CURL options 2009-03-13 19:39:49 +00:00
Rob Richards 63ccee5b41 MFB: fix bug #47430 (Errors after writing to nodeValue parameter of an absent previousSibling)
add test
2009-03-13 13:43:29 +00:00
Christopher Jones 0934fc996d Add PECL Bug #14268 2009-03-12 23:59:11 +00:00
Christopher Jones 881435625f MFH: Fixed PECL Bug 14268 (Allow 'pecl install oci8' command to 'autodetect' an Instant Client RPM install) & refactor 2009-03-12 23:52:37 +00:00
Ilia Alshanetsky 8610935eac Fixed bug #47639 (pg_copy_from() WARNING: nonstandard use of \\ in a string
literal)
2009-03-12 22:53:16 +00:00
Zoe Slattery 1df58d629a refixing %r in run-tests.php (thanks iain lewis for the fix) 2009-03-12 20:42:46 +00:00
Andrei Zmievski cc34210c32 MFH 2009-03-12 16:13:17 +00:00
Christopher Jones 65029f11e9 MFH: Fix tests to use ENV and re-enable 2009-03-12 14:50:29 +00:00
Brian Shire 9c16bfa194 MFH: Add proper EOF handling for language scanner. Fixes bug #46817. 2009-03-11 22:11:53 +00:00
Christopher Jones c5884d6cb6 Revert local setting changes 2009-03-11 17:11:32 +00:00
Christopher Jones 88f61b00fc Add recent OCI8 fixes 2009-03-11 16:59:23 +00:00
Christopher Jones 1781af46ec MFH: Bug #46994 (CLOB size does not update when using CLOB IN OUT param in stored procedure) 2009-03-11 16:47:14 +00:00
Dmitry Stogov 742d0b6b68 Fixed speed degradation on gcc-4.3 because of less agressive inlining 2009-03-11 12:14:34 +00:00
Marcus Boerger a29dae31c9 - MFH It's 2009 2009-03-11 00:02:52 +00:00
Marcus Boerger 3baf61b513 - MFH Safer flag handling as requested by Greg 2009-03-10 23:28:17 +00:00
Dmitry Stogov e2c3c7aa44 Clenaup deprecated namespace code 2009-03-10 10:01:44 +00:00
Christopher Jones 5dc46cc345 MFH: New test for oci_fetch_all 2009-03-09 21:20:02 +00:00
Christopher Jones 10ff16d21b MFH: Make non-public prototype match the type passed at call 2009-03-09 20:58:51 +00:00
Christopher Jones f346405330 MFH: Use PHP 5 function name in error message 2009-03-09 20:20:07 +00:00
Christopher Jones bce3f3afe8 MFH: Bug #47243 (Crash at shutdown on Windows) 2009-03-09 20:09:07 +00:00
Christopher Jones af4a8e7879 Make tests portable with older PHP for PECL builds 2009-03-09 19:55:30 +00:00
Christopher Jones 47ee83d12a MFH: PECL Bug #16035 (oci_connect without ORACLE_HOME defined causes segfault) 2009-03-09 19:01:16 +00:00
Christopher Jones 8b8dd708d0 MFH: PECL Bug #15988 (sqlnet.ora isn't read with older Oracle libraries) 2009-03-09 18:04:26 +00:00
Pierre Joye cb95e1e709 - add path for libpq (other are kept) 2009-03-09 17:52:51 +00:00
Christopher Jones 143e127d8b MFH: Prepare for future PECL OCI8 1.3.5 2009-03-09 17:51:04 +00:00
Christopher Jones f500b15658 MFH: Silence initialization warning 2009-03-09 17:48:54 +00:00
Christopher Jones 8ae20045c7 MFH: Bug #46623 (phpinfo doesn't show compile time ORACLE_HOME with phpize) 2009-03-09 17:42:22 +00:00
Ilia Alshanetsky 3896684ca0 Fixed bug #47598 (FILTER_VALIDATE_EMAIL is locale aware) 2009-03-08 18:21:15 +00:00
Felipe Pena 1c3b44b320 - MFH: Fixed bug #47593 (interface_exists() returns false when using absolute namespace path)
patch by Kalle
- BFN #47572
2009-03-08 17:28:39 +00:00
Kalle Sommer Nielsen 9d4718e098 MFH: Fix tests 2009-03-08 06:20:00 +00:00
Kalle Sommer Nielsen e061b79fe0 MFH: Fixed bug #47543 (irrelevant warning message) 2009-03-08 06:12:08 +00:00
Ilia Alshanetsky 5e09a71769 Adjust previous fix to avoid compiler warnings 2009-03-07 22:36:35 +00:00
Ilia Alshanetsky 9d3030d5f3 Improved parameter handling 2009-03-07 21:56:43 +00:00
Ilia Alshanetsky 483d9636e9 Improve parameter parsing code 2009-03-06 15:48:30 +00:00
Felipe Pena 2bc612bc0c - Fixed typo 2009-03-05 16:49:47 +00:00
Felipe Pena c43b935b65 - MFH: Fixed bug #47572 (zval_update_constant_ex: Segmentation fault) 2009-03-05 16:25:43 +00:00
Zoe Slattery 456d5e9381 fixed test 2009-03-04 10:23:01 +00:00
Ilia Alshanetsky 0f1d4eb376 BFN 2009-03-03 23:43:29 +00:00
Ilia Alshanetsky e66b91c063 Fixed bug #47549 (get_defined_constants() return array with broken
array categories)
2009-03-03 23:42:51 +00:00
Kalle Sommer Nielsen 627caefc4d MFH: Fixed bug #47546 (Default value for limit parameter in explode is 0, not -1) 2009-03-03 11:47:31 +00:00
Zoe Slattery 2c7d95c5a6 Added %r section 2009-03-03 10:53:44 +00:00
Zoe Slattery 7834afebde removing UEXPECT 2009-03-03 09:59:36 +00:00
Ilia Alshanetsky 059772e7fb Fixed typo 2009-03-03 01:42:21 +00:00
Moriyoshi Koizumi b7890a81c6 MFH: Fix typo 2009-03-02 04:44:15 +00:00
Brian Shire 2a6006c4e6 MFH: fix tokenizer makefile dependencies on parser/scanner files when built dynamically. (See bug #38762) 2009-03-02 03:54:04 +00:00
Antony Dovgal 62e2021305 fix tests 2009-03-01 21:26:54 +00:00
Greg Beaver 4d92c7bffc revert removal of openssl check, was confusion on my part 2009-03-01 07:20:26 +00:00
Greg Beaver 26ce51d6f1 add safeguard check for timestamp modification to phar_stub.phpt and phar_gzip.phpt 2009-03-01 07:16:46 +00:00
Greg Beaver 1ff3b85d74 fix hash support on windows in ext/phar (Kalle) 2009-03-01 07:07:05 +00:00
Greg Beaver a51f628bd1 fix blog.phar for front.phar.phpt test 2009-03-01 07:00:13 +00:00
Greg Beaver a6298331b5 update NEWS with phar enabling, fix swapping of time/date in timestamp saving for zip, which can cause crash on windows 2009-03-01 06:58:01 +00:00
Greg Beaver 79f5f7538c fix SKIPIF, EXPECT in 2 tests 2009-03-01 06:50:26 +00:00
George Wang 22badf88b0 make STDOUT function as STDERR, in case any module call print() 2009-02-27 23:33:01 +00:00
Ilia Alshanetsky 4b8064c927 Adjust previous fix 2009-02-24 23:55:14 +00:00
Moriyoshi Koizumi 823679162d - MFH: strictly check UTF-8 and UTF-32 validity 2009-02-24 13:19:09 +00:00
Kalle Sommer Nielsen 1783db8209 Fixed #37209 (mssql_execute with non fatal errors) 2009-02-23 21:21:02 +00:00
Ilia Alshanetsky 0f3831a2f1 Fixed bug #47435 (FILTER_FLAG_NO_PRIV_RANGE does not work with ipv6
addresses in the filter extension)
2009-02-23 16:52:29 +00:00
Ilia Alshanetsky e85ec7c864 Fixed bug #47477 (php_curl_stream_read() unnecessarily sleeps 15 secs under
heavy load)

# Patch by giuseppe bonacci
2009-02-23 15:58:19 +00:00
Ilia Alshanetsky 551a2d52e2 Fixed 2 memory corruptions in zip extension idenfied by oo_properties.phpt
test
2009-02-22 17:54:50 +00:00
Greg Beaver af84168de6 fix faulty logic in tests, needed to use ksort instead of asort and to sort output. These tests failed on some systems with non-case sensitive filesystem sorting 2009-02-21 03:15:47 +00:00
Greg Beaver bd74089a4e cosmetics: remove two unreachable return statements, removes warning in sun cc 2009-02-21 02:37:18 +00:00
Greg Beaver 7707318d61 cosmetics: fix warning (only affects suncc) 2009-02-21 02:32:16 +00:00
Felipe Pena a518082fb0 - Fix test 2009-02-20 13:39:14 +00:00
Andrey Hristov 8f102c1697 MFH: Add charsets from MySQL 6.0 as a structure to be used later 2009-02-20 13:25:12 +00:00
Greg Beaver 2344d80015 fix zip access to work in all compilers, present and future, and on all arches without potential for bus errors. This removes PHAR_ZIP_PACK in favor of a safer approach 2009-02-20 05:06:37 +00:00
Antony Dovgal a59180232e fix test 2009-02-19 12:13:50 +00:00
Felipe Pena 92775cd150 - New test 2009-02-18 22:53:56 +00:00
Felipe Pena b378620e95 BFN 2009-02-18 22:35:32 +00:00
Felipe Pena cadaace16c - MFH: Fixed bug #47443 (metaphone('scratch') returns wrong result) 2009-02-18 22:34:06 +00:00
Ilia Alshanetsky bdb3d4320e Removed unused var 2009-02-18 20:07:40 +00:00
Johannes Schlüter b489d3a69f MFH: Fix #47438 mysql_fetch_field ignores zero offse 2009-02-18 16:34:47 +00:00
Dmitry Stogov 42bb8ed2b5 Fixed bug #47049 (SoapClient::__soapCall causes a segmentation fault) 2009-02-18 13:25:48 +00:00
Scott MacVicar fedc5a3065 BFN 2009-02-18 12:55:34 +00:00
Scott MacVicar 61f2e99ea7 MFH: Update bundled SQLite to 3.6.11 2009-02-18 12:39:43 +00:00
Dmitry Stogov db63e29ab3 Fixed bug #47343 (gc_collect_cycles causes a segfault when called within a destructor in one case) 2009-02-18 12:02:53 +00:00
Dmitry Stogov d3d02fbc83 Fixed zend_print_zval_r_ex() to use the write callback function 2009-02-18 10:55:08 +00:00
Zoe Slattery d980c018d4 fix test 2009-02-17 20:23:45 +00:00
Moriyoshi Koizumi c7cebbf75f - MFH: Add an entry for http_output_conv_mimetypes to the output of
mb_get_info(). (patch by T. Komura, thanks!)
2009-02-17 16:29:59 +00:00
Zoe Slattery 1f4f3e269a Increased the sleep() from 1 to 5 to prevent intermittent failures 2009-02-17 15:16:45 +00:00
Matt Wilmas 645e15c2ea MFH: Overflow comment 2009-02-17 15:15:18 +00:00
Johannes Schlüter 1d30518d99 Wrap wrong lines 2009-02-17 14:55:58 +00:00
Johannes Schlüter 162aed0aed MFH: Fix #46542 Extending PDO class with a __call() function doesn't work
as expected
2009-02-17 14:42:26 +00:00
Matt Wilmas a7eb83fef5 MFH: Fixed bug #47422 (modulus operator returns incorrect results on 64 bit linux) 2009-02-17 14:15:52 +00:00
Felipe Pena 2513cde86e - MFH: Fix proto
[DOC] proto: $result_array is a reference
2009-02-17 12:38:21 +00:00
Felipe Pena 4402b82cba - MFH: Fixed bug #47390 (odbc_fetch_into - BC in php 5.3.0) 2009-02-17 12:03:55 +00:00
Johannes Schlüter 946549c8bb Fixed in 5.2 2009-02-17 10:41:09 +00:00
Zoe Slattery 6d87ab650f bug 46680 2009-02-17 10:36:12 +00:00
Antony Dovgal 8ac1ea9b5e remove XFAIL 2009-02-17 10:08:25 +00:00
Zoe Slattery f2fc027427 fix tests 2009-02-16 20:03:47 +00:00
Felipe Pena b66f9c0a87 - Missing "DROP TABLE" 2009-02-16 19:48:56 +00:00
Greg Beaver c351b71f2b fix memleaks on zip corruption 2009-02-16 18:55:06 +00:00
Johannes Schlüter ebef020ecc - MFH: Improve mysqlnd's internal method registration 2009-02-16 17:26:43 +00:00
Greg Beaver 874d14b36f re-enable ext/phar on big-endian systems, fixes verified as workign 2009-02-16 16:41:40 +00:00
Ilia Alshanetsky a15140c3bb Moved from 5.2 news 2009-02-16 16:07:47 +00:00
Zoe Slattery 237d0378e7 exit -1 and exit -2 don't work for all sh. changed to exit 1 2009-02-16 13:16:50 +00:00
Moriyoshi Koizumi 06d949ac11 - Test. 2009-02-16 02:10:45 +00:00
Moriyoshi Koizumi d8c6fecca3 - MFH: Fix bug #47399 (mb_check_encoding() return true for some illegal SJIS
charcters)
2009-02-16 01:57:37 +00:00
Felipe Pena 20e94a4b5c - Fixed bug #47398 (PDO_Firebird doesn't implements quoter correctly) 2009-02-15 21:51:00 +00:00
Antony Dovgal 7a4b9d26d7 fix tests 2009-02-15 21:46:01 +00:00
Greg Beaver 5c6a25e750 fix the last remaining failing test (explicitly pass in SKIP_DOTS to directory iterator) 2009-02-15 21:43:39 +00:00
Greg Beaver 625eb9e0ec fix remaining big-endian issues with phar 2009-02-15 20:29:13 +00:00
Greg Beaver 9221abd00e fix getting/setting of all 16/32 values in zip 2009-02-15 19:22:42 +00:00
Greg Beaver e8b7091c2c revert accidental commit of config.m4, big-endian isn't ready quite yet 2009-02-15 18:53:22 +00:00
Greg Beaver d3cea8b054 fix setting of 32-bit value on big-endian systems 2009-02-15 18:51:46 +00:00
Felipe Pena 0502920928 - Supressing error message for SKIPIF check works as expected 2009-02-15 16:03:39 +00:00
Moriyoshi Koizumi 9140aca7a8 - These should have been in the previous commit. 2009-02-15 07:18:30 +00:00
Moriyoshi Koizumi 446a165f34 - Forgot to include these files. 2009-02-15 07:11:04 +00:00
Moriyoshi Koizumi b2b61661ed - MFH: Refix bug #43840.
- MFH: Fix bug #43841.
- MFH: Remove redundant trailing dots from the error messages.
- MFH: Fix tests.
2009-02-15 07:10:29 +00:00
Rasmus Lerdorf 8eea998406 Unmangle 2009-02-14 21:20:16 +00:00
Rasmus Lerdorf 70ecb3074a 2.4.1 is safe 2009-02-14 21:08:02 +00:00
Zoe Slattery ca63494a39 splitting array_chunk into smaller tests 2009-02-14 10:32:26 +00:00
Moriyoshi Koizumi 88eac1503a - MFH: prevent unwanted overflow 2009-02-14 08:16:05 +00:00
Moriyoshi Koizumi 9d7250d455 - MFH: fix Bug #45923 (mb_st[r]ripos() offset not handled correctly) 2009-02-14 07:34:15 +00:00
Moriyoshi Koizumi 3a9a83e7bc - MFH: These should be E_WARNING for consistency with strpos() 2009-02-14 06:59:55 +00:00
Andrei Zmievski c2445f4122 Revert bogus fix for #47370. 2009-02-13 22:34:15 +00:00
Zoe Slattery db2f7c5559 remove UEXPECT 2009-02-13 22:01:28 +00:00
Zoe Slattery 8acebc06d8 fixed bad section name 2009-02-13 18:01:27 +00:00
Zoe Slattery 7729acd99d fixed test 2009-02-13 17:56:20 +00:00
Kalle Sommer Nielsen 1c48fa06e5 MFH: Revert previous change 2009-02-13 16:54:56 +00:00
Takeshi Abe a2bc965760 MFH: fixed typos 2009-02-13 16:03:02 +00:00
Felipe Pena d01257ffd9 - Added missing void param check and arginfo 2009-02-13 12:55:38 +00:00
David Coallier 15115ba188 - Good bug # order. 2009-02-13 12:21:06 +00:00
David Coallier bc6a024852 - Fixed bug #46897: (ob_flush() should fail to flush unerasable buffers) 2009-02-13 11:54:05 +00:00
David Coallier 2e5f11b841 - Fixed bug #46897: ob_flush() should fail to flush unerasable buffers
- Added test for bug46897
- A memleak has been identified while fixing this bug but the changes
  made by this commit do not affect ob_get_clean where the memleak (which
  is fixed in HEAD with the new handler) resides.
- [DOC] New noticed is outputted in ob_flush when the buffer is unerasable
2009-02-13 11:48:17 +00:00
Felipe Pena e28e05b155 BFN 2009-02-13 11:21:59 +00:00
Felipe Pena 7c34d6f76b - New test 2009-02-13 02:20:52 +00:00
Felipe Pena f0a96595d0 MFH:
- Fixed bug #43831 ($this gets mangled when extending PDO with persistent connection)
- Fixed bug #45432 (PDO: persistent connection leak)
2009-02-13 02:18:57 +00:00
Moriyoshi Koizumi 018ba64ada * MFH: Fix bug #47370 (BC breakage of array_unique()) 2009-02-12 18:57:55 +00:00
Kalle Sommer Nielsen d923ea471f MFH: Fixed wrong usage of error_reporting directive 2009-02-12 14:36:58 +00:00
Takeshi Abe 3ac3b44048 MFH:
- fixed memory leaks in gdImageCreateFromXpm()
- dropped unused codes
2009-02-11 17:56:44 +00:00
Takeshi Abe b48f46b092 MFH: optimization via the row-major order. 2009-02-11 16:31:27 +00:00
Ilia Alshanetsky fbb1927626 Improved param parsing 2009-02-11 14:26:24 +00:00
Felipe Pena bc9d57ab09 MFH: Fixed test bug #47311 (PDO::PARAM_LOB columns need to be bound before execute() on PgSQL) 2009-02-11 10:44:38 +00:00
Antony Dovgal 76398ae804 add test 2009-02-11 10:02:11 +00:00
Antony Dovgal 4e2c0bc905 MFH: fix bug #47353 (crash when creating a lot of objects in object destructor) 2009-02-11 09:58:23 +00:00
Antony Dovgal 3419a468eb MFH: fix check for zend_extension type 2009-02-11 09:11:17 +00:00
Scott MacVicar 40fa70a790 MFH Fix debug builds for OSX, PHP_DEBUG is set to 1 at the top 2009-02-11 00:08:31 +00:00
Lukas Smith bf87bfb040 MFH primary tester ml needs to be in the TO not CC 2009-02-10 20:45:42 +00:00
Ilia Alshanetsky aaa5361c90 Adjust condition 2009-02-10 16:14:18 +00:00
Ilia Alshanetsky 2b531b5149 MFB: typo fix 2009-02-10 14:21:27 +00:00
Ilia Alshanetsky 986a933c82 MFB: Added path truncation E_NOTICE to let people now when path resolving
caused the file path to be truncated.
2009-02-10 14:18:46 +00:00
Scott MacVicar 037400bbeb The constructor should also throw exceptions, make this semi useful now. 2009-02-10 00:24:33 +00:00
Felipe Pena 5448e9e790 - MFH: Fix tests 2009-02-09 16:44:23 +00:00
Ilia Alshanetsky 2d38e255a6 Initialize optional var 2009-02-09 15:34:01 +00:00
Greg Beaver f7738d7886 remove entry for bug #46026, this is fixed in 5.2 now, and needs no 5.3 entry 2009-02-09 15:03:32 +00:00
Felipe Pena 1648372015 - MFH: Fix test 2009-02-09 12:56:00 +00:00
Felipe Pena efdaaa3f59 - MFH: Fix mem. leak 2009-02-09 12:07:23 +00:00
Felipe Pena fcfcacefc9 - MFH: Fixed test 2009-02-09 11:57:44 +00:00
Dmitry Stogov 4d8f18ce97 Fixed bug #47329 (Crash in garbage collector) 2009-02-09 10:47:09 +00:00
Dmitry Stogov c277ebc6c8 Fixed bug #47320 ($php_errormsg out of scope in functions) 2009-02-09 09:20:35 +00:00
Dmitry Stogov c13177f182 Better fix for #47341 2009-02-09 08:55:23 +00:00
Ilia Alshanetsky 311a87c8d7 MFB: Fixed bug #44874 (dead pfsockopen'ed sockets aren't reaped when
the remote end restarts)
2009-02-09 02:55:45 +00:00
Lukas Smith ca01eab385 primary testers list is now mailed for every release 2009-02-08 20:24:13 +00:00
Derick Rethans 2a1ff72729 - MFH: Fixed bug #47341: Calling gc_collect_cycles() with zend.enable_gc=0
causes segfault.
2009-02-08 19:36:33 +00:00
Felipe Pena d4be93e87d - Improve test 2009-02-06 10:40:28 +00:00
Felipe Pena 68cfe99fa5 - MFH: Fixed bug #47322 (sscanf %d does't work) 2009-02-06 10:20:09 +00:00
Moriyoshi Koizumi 44dece2d95 * MFH: Fix bug #45239 (encoding detector hangs with mbstring.strict_detection
enabled).
2009-02-06 07:33:25 +00:00
Jani Taskinen bddaa8fc4a - Fix crap 2009-02-05 23:59:17 +00:00
Christopher Jones 4772af7b4c Make message punctuation consistent across PHP 2009-02-05 21:45:43 +00:00
Christopher Jones 8cf010352c Tweak fix for #45458 to allow this branch (from PECL) to continue building with PHP 4 et al. No other branches need changing 2009-02-05 21:43:31 +00:00
Felipe Pena 4df0de83e8 - Update 2009-02-05 13:46:11 +00:00
Felipe Pena d33be91e72 - MFH: Fixed bug #47297 (pdo_033.phpt fails on PgSQL)
Patch by matteo at beccati dot com
2009-02-04 16:40:56 +00:00
David Coallier 16bb7d16ef - Added news item for Bugfix #46048 2009-02-03 21:45:19 +00:00
David Coallier 0328eaea77 - Fixed Bug #46048 (SimpleXML top-level @attributes not part of iterator)
- Added test for bug #46048
2009-02-03 21:42:35 +00:00
Ilia Alshanetsky 59e6e127d2 MFB: Return empty string when recv() does not fetch any data 2009-02-03 19:22:55 +00:00
Greg Beaver e26a3a8ed3 Re-Fixed bug #46026 (bz2.decompress/zlib.inflate filter tries to decompress after end of stream) 2009-02-03 18:56:26 +00:00
Greg Beaver fd5be66d13 fix bug #47085:rename() returns true even if the file in PHAR does not exist 2009-02-03 18:29:25 +00:00
Greg Beaver b634bf4ce8 fix bug #47265 (generating phar.phar fails because of safe_mode) 2009-02-03 18:17:24 +00:00
Etienne Kneuss ff334d32f6 MFH: Fix #47031 (Fix constants in example) 2009-02-03 12:54:44 +00:00
Ilia Alshanetsky 384f89f85e Fixed bug #47282 (FILTER_VALIDATE_EMAIL is marking valid email addresses as
invalid)
2009-02-02 23:50:31 +00:00
Nuno Lopes afb19fe0a5 regenerate 2009-02-02 19:23:38 +00:00
Nuno Lopes 7f6ff02f5c fix bug #46347: allow * in ini keys 2009-02-02 19:23:13 +00:00
Felipe Pena 6caf16d52b - MFH: Fixed bug #47269 (Typo: SoapSlient instead of SoapClient) 2009-02-02 10:00:11 +00:00
Pierre Joye acdb832581 - silent compiler warning about socklen_t benign redefinition 2009-02-02 09:41:46 +00:00
Pierre Joye 10bf149a60 - define HAVE_SOCKLEN_T as it exists (vc6+) 2009-02-02 09:40:55 +00:00
Pierre Joye 1eaca26ad8 - MFH: fix build (use the same arginfo than the aliased func) 2009-02-02 08:47:23 +00:00
Moriyoshi Koizumi aba813266a - MFH: Fix bug #46843 (CP936 euro symbol is not converted properly) 2009-02-02 04:53:10 +00:00
David Soria Parra ab0eff9a14 MFH: Fix a typo 2009-02-01 21:52:07 +00:00
andy wharmby 28073afe56 New set_magic_quotes() tests. Tested on Windows, Linux and linux 64 2009-02-01 19:29:31 +00:00
andy wharmby dbb272789d New php_uname() tests. Tested on Windows, Linux and linux 64 2009-02-01 19:17:48 +00:00
andy wharmby 7c07a980ed New get_defined_vars(), get_included_files(), get_magic_quotes() and getmypid() tests. Tested on Winows, Linux and Linux 64 2009-02-01 18:55:26 +00:00
andy wharmby 1cdf8160ce New escapeshellarg() tests. Tested on Windows, Linux and Linux 64 2009-02-01 18:39:50 +00:00
andy wharmby 9484e82e01 New floatval() tests. Tested on Windows, Linux and Linux 64 2009-02-01 18:32:40 +00:00
Christian Seiler 63ee3c98a8 Fixed regression of bug #46205, thanks to felipe for pointing this out. 2009-02-01 15:06:19 +00:00
Felipe Pena 4d754de109 - MFH: Fixed bug #47255 (Typo in php.ini files) 2009-01-31 19:24:55 +00:00
Kalle Sommer Nielsen 8dab524e82 MFH: Fix arginfo for imagefilter() 2009-01-31 15:27:52 +00:00
Stanislav Malyshev 54216edfe3 fix bug #14562 2009-01-30 20:56:12 +00:00
Felipe Pena d295d9113e - MFH: Fix test 2009-01-30 14:50:05 +00:00
Felipe Pena e5f709d290 MFH:
- WS, CS
- Added missing param. checking
- Fixed type for 'l'
2009-01-30 14:38:12 +00:00
Felipe Pena 16f38a39ca - MFH: Year++ 2009-01-30 00:16:32 +00:00
Ilia Alshanetsky a820c7c568 Improved validation checks inside str_pad() 2009-01-30 00:16:27 +00:00
Scott MacVicar 0937041375 MFB Fix bug #47245 - Double free in mb_detect_encoding() 2009-01-29 22:59:57 +00:00
Stanislav Malyshev a3c422974b fix // comments 2009-01-29 21:49:49 +00:00
Felipe Pena 4eae211d62 - MFH: Added arginfo 2009-01-29 00:37:16 +00:00
Felipe Pena 0c62a7bb22 - Re-added safe mode check 2009-01-29 00:15:48 +00:00
Scott MacVicar 3a25c34a01 Fix build on Windows 2009-01-28 23:58:09 +00:00
Nuno Lopes 86df0f095d the offset parameter of mmap() must be aligned to a page boundary (although linux doesnt strictly require it).
use 0 as offset as it will be small and increment the ptrs afterwards
2009-01-28 23:18:49 +00:00
Scott MacVicar 68c140b288 Broken test, skipif sections had a parse error 2009-01-28 22:49:14 +00:00
Nuno Lopes f67f636973 BFN 2009-01-28 22:43:51 +00:00
SVN Migration ac13bffa09 This commit was manufactured by cvs2svn to create branch 'PHP_5_3'. 2009-01-28 22:43:26 +00:00
Nuno Lopes 4ff9ad5bf1 fix bug #47229: preg_quote should escape '-' 2009-01-28 22:39:33 +00:00
Johannes Schlüter 458c0567b2 - Add .cvsignore 2009-01-28 22:35:23 +00:00
Johannes Schlüter fd3942f4ce Back to -dev 2009-01-28 22:09:55 +00:00
Johannes Schlüter 42023008b9 PHP 5.3.0beta1 2009-01-28 21:38:45 +00:00
Johannes Schlüter 80f6263bbc Properly disable phar for the moment 2009-01-28 20:39:15 +00:00
Pierre Joye 409d36eb77 - enchant entry and fix news 2009-01-28 18:32:29 +00:00
Steph Fox 2c2eaa087b - Skeleton version taken directly from the scratchpad and tidied.
@Lukas, Johannes: This is nowhere near complete, and may contain entries that would be happier in NEWS, but it's OK for the beta IMHO.
2009-01-28 17:23:28 +00:00
Scott MacVicar fd91a50b71 Disable Phar on big endian systems for beta 1. 2009-01-28 15:53:29 +00:00
Antony Dovgal 64003cd352 fix test 2009-01-28 12:58:59 +00:00
Ilia Alshanetsky 58a6bddf68 Improved parameter parsing 2009-01-27 21:59:30 +00:00
Pierre Joye 1c87df548b - fix build 2009-01-27 21:53:49 +00:00
Pierre Joye a5af8a7ec2 - prevent redefinition 2009-01-27 21:53:31 +00:00
Johannes Schlüter 611c453598 MFH: Fix mysqli pconnects to properly reset connection status by default 2009-01-27 15:35:34 +00:00
Antony Dovgal 029f5e651a fix compile warning 2009-01-27 14:50:27 +00:00
Derick Rethans 4ca3fa7120 - Fixed tests?
#- Wondering why those are not in HEAD though...
2009-01-27 14:22:17 +00:00
Scott MacVicar 8e11f40093 Fix tests 2009-01-27 14:16:15 +00:00
Derick Rethans fb183b1777 - MFH: Elevate no-tz set warning from E_STRICT to E_WARNING.
#- [DOC]
2009-01-27 13:48:10 +00:00
Christian Seiler c6d89bd4a8 [DOC] Remove $this support in closures for PHP 5.3 beta 1
- Implementation notes here:
  http://wiki.php.net/rfc/closures/removal-of-this
2009-01-26 22:54:34 +00:00
Pierre Joye 7cb513c19a - idn build for win 2009-01-26 22:34:49 +00:00
Pierre Joye 4670e62f13 - IDN entry 2009-01-26 22:34:16 +00:00
Pierre Joye 503779eb17 - [DOC] add IDN support, idn_to_ascii and idn_to_utf8
tests and MFB will follow Wednesday
2009-01-26 22:30:57 +00:00
andy wharmby 4f3a4e597b Split-ip var_export.phpt and add new error tests. Tested on Windows, Linux and Linux 64 bit 2009-01-26 22:27:03 +00:00
Rob Richards cbdb8f6167 MFH: fix bug #47220 (segfault in dom_document_parser in recovery mode) 2009-01-26 19:10:53 +00:00
Ilia Alshanetsky 51f4e5efcd Fixed bug #47217 (content-type is not set properly for file uploads) 2009-01-26 15:19:55 +00:00
Etienne Kneuss e094d1aa44 MFH: Improve spl_object_hash() 2009-01-26 11:38:03 +00:00
Dmitry Stogov f946918fc6 Fixed bug #46419 (Elements of associative arrays with NULL value are lost) 2009-01-26 11:09:36 +00:00
Antony Dovgal 09ac5971f5 MFH use example.com 2009-01-25 23:26:45 +00:00
Antony Dovgal 34f1855168 do not define CURLE_SSH twice 2009-01-25 22:33:10 +00:00
andy wharmby ba1b99e4aa Split is_callable test. Test on Windows, Linux and Linux 64 bit 2009-01-25 22:16:33 +00:00
Ilia Alshanetsky 4eb69eadc6 Improved fix for bug #47174 & added a test 2009-01-25 18:27:12 +00:00
Pierre Joye f19f0cefa5 - nicer features list 2009-01-25 17:12:36 +00:00
Felipe Pena c3631156fc - Fixed tests 2009-01-25 16:53:07 +00:00
Pierre Joye 79ac8ab9f9 - curl ssh entry 2009-01-25 16:35:05 +00:00
Pierre Joye 7dc3ef31d2 - MFH
- [DOC] Add support for SSH via libssh2
  - new constants: CURLE_SSH, CURLSSH_AUTH_NONE, CURLSSH_AUTH_PUBLICKEY, CURLSSH_AUTH_PASSWORD, CURLSSH_AUTH_HOST, CURLSSH_AUTH_KEYBOARD, CURLSSH_AUTH_DEFAULT, CURLOPT_SSH_AUTH_TYPES, CURLOPT_KEYPASSWD, CURLOPT_SSH_PUBLIC_KEYFILE, CURLOPT_SSH_PRIVATE_KEYFILE, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5
   See http://curl.haxx.se/libcurl/c/curl_easy_setopt.html fortheir roles or usages
2009-01-25 16:28:18 +00:00
Pierre Joye 9628d8da15 - check for zlib too 2009-01-25 16:21:03 +00:00
David Soria Parra 72b20010d3 MFH: Fix compiler warning. munmap expects a void pointer. 2009-01-25 14:03:09 +00:00
David Soria Parra 8defc0474a Fix WS 2009-01-25 13:41:50 +00:00
David Soria Parra a44511f33c MFH: Fix WS 2009-01-25 13:39:56 +00:00
Sebastian Bergmann e115709774 MFH: Patch by David Soria Parra <dsp@php.net>. 2009-01-25 11:07:40 +00:00
Zoe Slattery 450c5afedf added INI and fixed assert02 to run on PHP6 and PHP53 2009-01-25 11:06:36 +00:00
Antony Dovgal ff3ee30872 fix test 2009-01-24 22:02:36 +00:00
Antony Dovgal 8e2c587a51 fix build 2009-01-24 13:08:04 +00:00
andy wharmby 4e71f2a5fc New get_extension_funcs() and getrusage() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-24 12:47:25 +00:00
Hannes Magnusson cbd8949ab5 Fix build 2009-01-24 12:42:19 +00:00
Scott MacVicar 40a41b0953 BFN 2009-01-24 12:19:21 +00:00
Scott MacVicar 4159f91181 MFH Add blobOpen method for reading binary blobs via streams. 2009-01-24 12:17:47 +00:00
andy wharmby ada3990c1a Make test more robust; avoid hangs if fsockopen() fails. Tested on Windows, Linux and Linux 64 bit 2009-01-23 23:49:38 +00:00
andy wharmby 9bfdbb3e2c New gzuncompress() test.Tested on WIndows, Linux and Linux 64 bit 2009-01-23 23:31:50 +00:00
andy wharmby b2f1d92674 Fix tests. Add missing SKIPIF. Tested on Windows, Linux and Linux 64 2009-01-23 20:23:29 +00:00
Dave Kelsey 0610bbd12a deleted invalid test. 2009-01-23 18:56:51 +00:00
Dave Kelsey f94acf2a27 added some mail tests. Tested on windows, linux and linux 64bit 2009-01-23 17:12:08 +00:00
Kalle Sommer Nielsen 73b17408fb MFH: Windows support for stream_socket_pair(), by moving the socketpair() implementation from ext/sockets to win32/ 2009-01-23 15:49:49 +00:00
Dave Kelsey 2a4fc75c54 various network tests. tested on windows, linux, linux 64 bit 2009-01-23 15:34:21 +00:00
Zoe Slattery 3bda2b9689 IMPA fetchheader tests 2009-01-23 15:31:35 +00:00
andy wharmby 294364dfee Fix names of new image files. 2009-01-23 11:18:36 +00:00
Zoe Slattery 1efa1bae64 fix tests 2009-01-23 09:43:35 +00:00
Zoe Slattery e7c8c5d526 fix tests 2009-01-23 09:23:22 +00:00
andy wharmby d8ab16b683 New image tests. Tested on WIndows, Linux and Linux 64 bit 2009-01-22 22:59:57 +00:00
Zoe Slattery 62c51d8d2d fixed test 2009-01-22 22:04:34 +00:00
Johannes Schlüter 074b084852 MFH: export mysql_refresh
[DOC] This makes mysql_refresh() as described in
      http://dev.mysql.com/doc/refman/6.0/en/mysql-refresh.html
      available as mysqli_Refresh() and mysqli->refresh()
      MYSQLI_REFRESH_BACKUP_LOG is only available when linking libmysql 6.0
      or mysqlnd
2009-01-22 21:01:58 +00:00
Zoe Slattery 20b20bbdb3 fixed test 2009-01-22 20:52:33 +00:00
Dave Kelsey 4ce8a47875 fstat tests. tested on windows, linux and linux 64 bit 2009-01-22 20:49:42 +00:00
andy wharmby 023db07910 New date tests for getdate() and gmstrftime(). Tested on WIndows, Linux and Linux 64 bit 2009-01-22 18:47:46 +00:00
Ilia Alshanetsky ea61c335e4 Fixed execution condition 2009-01-22 14:40:20 +00:00
Dave Kelsey 163fedcd61 final collection of zlib tests. tested on linux, windows and linux 64 bit 2009-01-22 14:14:50 +00:00
andy wharmby 0d4228940c New basic time()and microtime() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-22 14:11:08 +00:00
andy wharmby c70c7ca7f9 Fix test after #46732 fix. Tested on WIndows, Linux and Linux 64 bit 2009-01-22 13:50:45 +00:00
andy wharmby be84cfa327 New image tests. Tested on Windows, LInux and Linux 64 bit 2009-01-22 13:27:32 +00:00
Dave Kelsey aa3e1f6158 fixed subtle bugs regarding attempting to chdir, plus cleanup issues. improved tempnam test, removed hardcoded line number. tested on windows, linux and linux 64bit. 2009-01-22 07:56:56 +00:00
andy wharmby ba5407d065 Fix test 2009-01-22 00:23:01 +00:00
Jani Taskinen d331023b5f MFH: fix typo 2009-01-21 19:22:39 +00:00
Dmitry Stogov a928b88da9 Fixed realpath() behavior to support "c:dir" as "c:\dir", and "\dir" on UNC CWD 2009-01-21 19:07:40 +00:00
Ilia Alshanetsky bd9ad75f41 Fixed bug #47174 (base64_decode() interprets pad char in mid string as
terminator)
2009-01-21 15:38:37 +00:00
Derick Rethans 9942dde8bd - Updated to version 2009.1 (2009a) 2009-01-21 15:25:08 +00:00
Dave Kelsey 7d8c189a6d new tests for zlib extension, tested on windows, linux and linux64 2009-01-21 15:24:13 +00:00
Antony Dovgal 30a0135d18 fix tests 2009-01-21 12:50:10 +00:00
andy wharmby f1c66c9229 New gzuncompress() test. php6 tets fails currentlly due to #47179. Tested on Windows, Linux and Linux 64 bit 2009-01-21 12:28:32 +00:00
andy wharmby 435d194059 New gzencode() test. php6 tets fails currentlly due to #47178. Tested on Windows, Linux and Linux 64 bit 2009-01-21 11:39:11 +00:00
Sanjay Mantoor 5b75dd317f New testcases for strftime function 2009-01-21 10:51:04 +00:00
andy wharmby 65b60a54fe New gzinflate() error test. Tested on WIndows, Linux and Linux 64 bit 2009-01-20 23:37:47 +00:00
andy wharmby de5f62bba9 Fix SKIPIF logic 2009-01-20 23:19:44 +00:00
andy wharmby 6a5b8a57e5 New stripcslashes() tests. Tested on Window, Linux and Linux 64 bit 2009-01-20 22:54:36 +00:00
Felipe Pena 5db1f786fb BFN #47087 2009-01-20 20:28:04 +00:00
Felipe Pena f1aadc30ea - MFH: Fixed bug #47087 (Second parameter of mssql_fetch_array() is ignored) 2009-01-20 20:03:04 +00:00
Ilia Alshanetsky 49295515d7 Added an E_NOTICE when precision value is truncated 2009-01-20 18:02:35 +00:00
Felipe Pena 0b3afcf67b - MFH: Fixed bug #47152 (gzseek/fseek using SEEK_END produces strange results) 2009-01-20 15:41:23 +00:00
andy wharmby d4e765f4a6 New vfprintf() tests. Tested on Window, Linux and Linux 64 bit 2009-01-20 14:19:31 +00:00
Dmitry Stogov 666bf10d1a Removed wrong warning message 2009-01-20 13:21:52 +00:00
Dmitry Stogov d1958eeea8 Fixed bug #47165 (Possible memory corruption when passing return value by reference) 2009-01-20 11:22:45 +00:00
Scott MacVicar e596baa520 BFN 2009-01-20 09:59:25 +00:00
Scott MacVicar 5b79c37500 MFH Fix bug #47159 - Any SQLite3 statement prepared should be added to the freelist 2009-01-20 09:57:34 +00:00
Pierre Joye b0c1d09cda - fnmatch entry 2009-01-20 01:45:12 +00:00
Pierre Joye d0c201d3f4 - [DOC] add support for fnmatch() on Windows
- enable tests (pass)
2009-01-20 01:40:06 +00:00
Pierre Joye f8aff4ad07 - add fnmatch() support on windows (C API), using the BSD implementation 2009-01-20 01:37:48 +00:00
Felipe Pena d29e47652f - MFH: Added missing "return;" 2009-01-20 00:43:25 +00:00
Scott MacVicar cc9e86a588 BFN 2009-01-20 00:25:27 +00:00
Scott MacVicar 4b02b12f54 MFH Fix bug #47145 - As soon as sqlite3_step is called on a statement it always must be finalised. 2009-01-20 00:24:13 +00:00
Scott MacVicar 6d406ccedf Fixed bug #47141 - Unable to fetch error messages after the database can't be opened. 2009-01-19 22:43:58 +00:00
Ilia Alshanetsky 2b456001da MFB: Fixed bug #47131 (SOAP Extension ignores "user_agent" ini setting). 2009-01-19 21:58:02 +00:00
Scott MacVicar 390ccd899d MFH Fix apache2handler under Apache 2.3.0-alpha 2009-01-19 19:32:40 +00:00
David Soria Parra 65e3d00366 MFH: Fix #47149. Remove check for script_filename = path_translated, as this the actual value that we get from apache. 2009-01-19 18:17:32 +00:00
andy wharmby 71d0cd594c New substr_replace() and unpack() error tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-19 17:13:18 +00:00
Takeshi Abe 78ca92f77b MFH: bump up and use IMAGE_FILTER_MAX_ARGS instead of a magic number. 2009-01-19 16:35:58 +00:00
Zoe Slattery f9de6e62a9 fixing the test to expect PHP6 and PHP53 behaviour 2009-01-19 16:16:48 +00:00
andy wharmby a7e129f217 New vprintf() tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-19 16:03:44 +00:00
andy wharmby 0a34f4ad2c New strval() tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-19 15:54:47 +00:00
andy wharmby 68b5346285 New tests for str_pad(), str_shuffle(), stristr() and strlen(). Tested on WIndows, Linux and Linux 64 bit 2009-01-19 15:46:41 +00:00
Takeshi Abe c422d15d0e MFH: fixed the bug of libgd #191 (A circle becomes square) 2009-01-19 15:43:48 +00:00
Dave Kelsey 8f9ec4238f new tests for zlib extension, tested on windows, linux and linux64 2009-01-19 14:03:08 +00:00
Antony Dovgal 357ed77aea MFH: fix memleaks in sscanf() 2009-01-19 09:52:24 +00:00
Hannes Magnusson f42dfac501 Make sense of these NEWS entries 2009-01-19 08:50:50 +00:00
Pierre Joye d60692dabc - ime_ nanosleep and time_ sleep_ until entry 2009-01-19 02:36:57 +00:00
Pierre Joye 274dad3b83 - MFH:
- add nanosleep
 - expose nanosleep and usleep
 - [DOC] time_ nanosleep and time_ sleep_ until available on windows
 - change nanosleep signature to match posix one
2009-01-19 02:35:22 +00:00
Felipe Pena e77326faba - MFH: Fixed bug #47048 (Segfault with new pg_meta_data) 2009-01-18 23:49:31 +00:00
andy wharmby b83859120d New nl_langinfo(), number_format() and ord() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 22:51:02 +00:00
andy wharmby 571650e64d New hebrev() and hebrevc() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 21:59:39 +00:00
andy wharmby 2075498207 New sha1f() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 19:37:45 +00:00
Ilia Alshanetsky a0a31f3998 Upgraded bundled sqlite3 to 3.6.10 2009-01-18 18:01:53 +00:00
andy wharmby b819f60eed New sscanf() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 14:40:29 +00:00
andy wharmby cdef2ee23b New explode() tests. Tested on Windows. Linux and Linux 64 bit 2009-01-18 14:35:00 +00:00
andy wharmby 18a6f9e55d New money_format() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-17 22:52:26 +00:00
Felipe Pena 5b1026966b - Fixed test 2009-01-17 17:59:51 +00:00
Felipe Pena 27c77c3985 MFH:
- Added header
- Fixed compiler warning ("no newline at end of file")
2009-01-17 17:18:00 +00:00
andy wharmby 98076f58db New trim() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-17 16:41:15 +00:00
Johannes Schlüter cf84f2c5f5 MFH Fix Zend extensions 2009-01-17 16:14:59 +00:00
andy wharmby d70ea4bc8a New ltrim() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-17 15:47:59 +00:00
Stanislav Malyshev dc6a2f4705 build IDs 2009-01-17 02:09:53 +00:00
Stanislav Malyshev 5d8c9f8c56 Build IDs 2009-01-17 02:05:13 +00:00
Etienne Kneuss fc1b5427d8 MFH: Add tests for addAll/RemoveAll 2009-01-17 01:30:52 +00:00
Stanislav Malyshev 0c5d83b053 fix nts build 2009-01-17 01:12:36 +00:00
andy wharmby 80ef307033 New string tests. Tested on Windows, Linux and Linu 64 bit 2009-01-16 22:46:08 +00:00
Etienne Kneuss 5755d152ca MFH: Implement SplObjectStorage::addAll/removeAll 2009-01-16 22:20:53 +00:00
Pierre Joye 8ccc7777b1 - fix vc6 build 2009-01-16 14:10:16 +00:00
Pierre Joye bce6bc73fc -add some doc about versions 2009-01-16 13:52:13 +00:00
andy wharmby 7cf16584df New string function tests. Tested on Windows, Linux and Linux 64 bit. 2009-01-16 12:53:27 +00:00
Pierre Joye c5da0ffb4d - typo (thx rza) 2009-01-16 11:31:02 +00:00
Pierre Joye 205b558fb1 - entry for symlink, readlink, linkinfo and link 2009-01-16 11:25:14 +00:00
Pierre Joye dcb5027b93 - MFH:
- return SUCCESS on success
 - check return value
2009-01-16 10:26:32 +00:00
Pierre Joye 192df76b26 - simplify code by using OPENBASEDIR_CHECKPATH 2009-01-16 10:07:03 +00:00
Pierre Joye 8dfe43815e - MFH: add OPENBASEDIR_CHECKPATH macro to ease merge between 5.3 and 6, it includes safemode (5.3) and openbasedir check 2009-01-16 10:06:10 +00:00
Pierre Joye 59b6e456cb - symlink, hardlink & co support (2.1/2 :) 2009-01-16 01:01:04 +00:00
Pierre Joye dcd2b78d14 - symlink, hardlink & co support (2/2) 2009-01-16 01:00:22 +00:00
Pierre Joye f704a50732 - add EG(windows_version_info), set at init time once per instance
contains a OSVERSIONINFOEX struct. It lets us determine easily on which windows version is used (for example)
2009-01-16 00:57:43 +00:00
Pierre Joye 2f61ad9b98 - add EG(windows_version_info), set at init time once per instance
contains a OSVERSIONINFOEX struct. It lets us determine easily on which windows version is used (for example)
- add the ability to disable a function when the windows function does not support a feature (for example symlink)
- symlink, hardlink & co support (1/2)
2009-01-16 00:57:05 +00:00
Ilia Alshanetsky fc6c8f5440 Improved parameter handling 2009-01-16 00:07:03 +00:00
Jani Taskinen b32d357e7a MFH:- Fixed bug #47104 (Linking shared extensions fails with icc) 2009-01-15 14:37:25 +00:00
andy wharmby 1de33abc50 New test for strripos() string function. All tests checked on Windows, Linux and Linux 64 bit. 2009-01-15 13:40:05 +00:00
Dmitry Stogov 8075f2e4b7 Fixed bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object) 2009-01-15 08:48:58 +00:00
Kalle Sommer Nielsen be7d6a6299 MFH: Change optional parameter for IMG_FILTER_PIXELATE to be a boolean
Added missing NEWS log entry for the new pixelation filter
2009-01-15 07:57:11 +00:00
Ilia Alshanetsky a6263465cf Removed unused variable 2009-01-14 19:16:24 +00:00
Takeshi Abe 40d3b2f7f3 MFH: added pixelate filter. 2009-01-14 19:06:12 +00:00
Antony Dovgal ad0935cd47 fix typo 2009-01-14 16:32:41 +00:00
andy wharmby c1bf1627dd Fix date_suninfo_tests; add missing date_default_timezone_set() to ensure they PASS when run in any timezone. Tested on WIndows, Linux and Linux 64bit. 2009-01-14 16:28:18 +00:00
Etienne Kneuss cd63e52c0b MFH: Fix #47045 (Correctly compare splobjectstorages with ==) 2009-01-14 15:53:03 +00:00
andy wharmby 582b32c426 Fixed base64_decode variation tests and new base64_encode test. Tested on Windows, Linux and Linux64 bit 2009-01-14 14:38:58 +00:00
Dmitry Stogov f7abb84b43 Fixed bug #46755 (warning: use statement with non-compound name)
Fixed bug #46979 (use with non-compound name *has* effect)
2009-01-14 13:57:42 +00:00
Dmitry Stogov 5d060ebe05 Fixed __call() to be invoked on private/protected method access through callbacks 2009-01-14 11:56:08 +00:00
Jani Taskinen ab61459f61 fix news 2009-01-14 10:50:39 +00:00
Dmitry Stogov 312176f083 Reverted "Rebind closure when binding to property" 2009-01-14 10:28:22 +00:00
Pierre Joye 6a969c7a3b - entry for support for PNG gray levels+ alpha image, loaded as truecolor 2009-01-14 10:18:13 +00:00
Pierre Joye 9880d8dbe7 - [DOC] support for PNG gray levels+ alpha image, loaded as truecolor 2009-01-14 10:16:15 +00:00
Pierre Joye 84f13ab73a - NEWS entry for the recent DNS improvement
- [DOC] already submitted but it is a good summary
2009-01-14 09:46:34 +00:00
andy wharmby f52ad63dfb Fix new date tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 23:08:03 +00:00
Ilia Alshanetsky 4093573e5c Fixed a bug inside mail() logging code that prevents log file from existing
outside of open_basedir
2009-01-13 21:29:12 +00:00
Felipe Pena 5c654e617f - Fixed test 2009-01-13 20:15:59 +00:00
Ilia Alshanetsky dfa86ccf73 Improved parameter handling 2009-01-13 19:08:08 +00:00
andy wharmby 5ca19085bb Fix test. Tested on Windows, Linux and Linux 64 bit 2009-01-13 18:51:41 +00:00
Felipe Pena 9d9c461ef4 - Typo 2009-01-13 18:27:59 +00:00
Rob Richards 39570bc38b news 2009-01-13 18:13:01 +00:00
Andrei Zmievski 440c8c9cb1 Add test 2009-01-13 18:08:25 +00:00
Rob Richards 5336054811 MFH: Add method DomNode::getLineNo to return line number for a parsed node 2009-01-13 18:06:48 +00:00
Felipe Pena 6757c0c9fc - Fixed test 2009-01-13 17:08:26 +00:00
andy wharmby cb9476027c New date extension tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 13:38:19 +00:00
Antony Dovgal 61e3fbabb8 fix test 2009-01-13 12:00:53 +00:00
andy wharmby 791dabcc3b New zlib extension tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 10:08:37 +00:00
Scott MacVicar 148ae0cfe0 BFN 2009-01-13 02:54:37 +00:00
Scott MacVicar efaba65cf5 MFH Add table key to getColumnMeta() with SQLite 2009-01-13 02:50:54 +00:00
Stanislav Malyshev fc044adb9f ns bugfix out 2009-01-12 22:24:31 +00:00
Stanislav Malyshev c1147bcb07 report fix 46304 2009-01-12 21:56:36 +00:00
Stanislav Malyshev e2ad4e0178 fix #46304: Defining namespaced constant using define() uses case sensitive match for namespace 2009-01-12 21:54:37 +00:00
Felipe Pena 47a8643e71 - Reverted my previous commit to avoid unnecessary BC.
[DOC] Added new entry to the array returned by dns_get_record(), 'entries', which contains the separated value from TXT value. (so 'txt' kept the concatenated version) (Pierre)
2009-01-12 20:07:28 +00:00
Andrei Zmievski d7b6f0103b memset() requires a pointer. 2009-01-12 19:09:34 +00:00
Scott MacVicar c430f3377a BFN 2009-01-12 19:08:25 +00:00
Scott MacVicar dba82da304 MFH Fix building of pdo_sqlite without sqlite3 2009-01-12 19:03:07 +00:00
Scott MacVicar 4bdf8de929 MFH Update sqlite to 3.6.8 2009-01-12 18:55:37 +00:00
andy wharmby 84ca63c1b3 New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 17:56:28 +00:00
Ilia Alshanetsky 4afe6ccc54 Upgraded libsqlite3 to 3.6.8 2009-01-12 17:13:38 +00:00
andy wharmby 07cc6d4d10 Fix Windows tests after #47037 2009-01-12 15:59:04 +00:00
andy wharmby f4af0b3f39 New math tests. Tested on Windows, Linux and Linux 64 bit 2009-01-12 14:30:52 +00:00
Scott MacVicar b4fa66e858 Fix build, missing comma 2009-01-12 14:28:05 +00:00
Scott MacVicar 534c200925 The previous error was masked by a missing entry, sync them back up. 2009-01-12 14:26:47 +00:00
Johannes Schlüter e4a348d782 MFH: Fix #47050 mysqli_poll() modifies improper variables 2009-01-12 14:04:32 +00:00
Scott MacVicar b6f32086f9 This entry doesn't exist upstream any more, it also caused all error messages to be one off. 2009-01-12 13:34:33 +00:00
Johannes Schlüter 74cfc5f3d7 MFH Fix #45940 MySQLI OO does not populate connect_error property on failed
connect
2009-01-12 12:56:01 +00:00
Antony Dovgal 68ecbd73d3 fix typo 2009-01-12 10:47:47 +00:00
Ilia Alshanetsky 2bcdd36879 Improved parameter handling 2009-01-11 23:52:29 +00:00
Scott MacVicar 3fb23c0173 BFN 2009-01-11 23:43:45 +00:00
Scott MacVicar 8911ba1c62 Add support for the older style bind 8 functions, this adds support for OS X to use all of the dns_* functions. 2009-01-11 23:37:16 +00:00
Felipe Pena cc50663b56 MFH:
- Improved fix for #47035 (win32 part by Henrique M. Decaria)
[DOC] The TXT part needs be returned as an array of strings. (dns_get_record())
2009-01-11 18:47:17 +00:00
Rob Richards c87d6031e5 MFH: export php_pcre_free to make mbstring happy 2009-01-11 13:59:00 +00:00
Uwe Schindler b70260d392 revert last commit, sizeof does not work in preprocessor :( 2009-01-11 13:47:01 +00:00
Uwe Schindler 4db4009c71 MFH: add sanity check for time_t size of win32 2009-01-11 13:39:39 +00:00
Rob Richards d14021cb4e MFH: fix bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse()) 2009-01-11 12:01:16 +00:00
Dmitry Stogov 828566dafb Disable dl() in CGI and FastCGI modes 2009-01-11 08:35:36 +00:00
Felipe Pena 23f7fa57fe - MFH: Fixed bug #47054 (BC break in static functions called as dynamic) 2009-01-10 19:15:42 +00:00
Felipe Pena ac9508b286 - Fixed tests 2009-01-10 17:18:08 +00:00
Felipe Pena 2deadbe666 - Fixed test 2009-01-10 17:15:09 +00:00
Felipe Pena 06aa1da0cd - MFH: Fixed test (patch by Timm Friebe [thekid@php]) 2009-01-10 17:07:09 +00:00
Felipe Pena 51b05cd54d - Fixed tests 2009-01-10 17:01:00 +00:00
Scott MacVicar cb4d76b505 Fix bug #47055 - When intl is shared dont enable icu support in SQLite3 2009-01-10 01:46:55 +00:00
Scott MacVicar b4707a5e02 Some more tests that needed fixed. 2009-01-10 00:51:04 +00:00
Scott MacVicar a9e5e22275 If a TZ environmental is set then it ends up getting used instead of the INI setting, use date_default_timezone_set() instead. 2009-01-10 00:50:45 +00:00
Antony Dovgal cc6b14ef6d cleanup garbage 2009-01-09 23:16:49 +00:00
Antony Dovgal e3e34fa7ed MF52: fix test: don't create tmp files in "." and clean up when done 2009-01-09 23:12:12 +00:00
Antony Dovgal 4c7b6dd78a okay, no news for new internal functions then 2009-01-09 22:26:23 +00:00
David Soria Parra 544150aef8 MFH: Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache). 2009-01-09 22:13:55 +00:00
Antony Dovgal a4d6ab1376 news 2009-01-09 19:17:08 +00:00
Antony Dovgal 514e633327 MFH: add zend_ts_hash_copy_to_hash() 2009-01-09 19:16:55 +00:00
Ilia Alshanetsky 71ea95354b MFH: Corrected fix for bug #46844 to only trigger on the 1st line of CLI
opened files.
2009-01-09 17:21:12 +00:00
Antony Dovgal 2538bd21e7 fix ZTS build 2009-01-09 15:08:10 +00:00
Ilia Alshanetsky 905a5c0590 [DOC]
Added mail logging functionality that allows logging of mail sent via
mail() function

THe logging functionality is disabled by default but can be enabled on a
per-directory or globaly via 2 INI settings.

The mail.log directive allows you to specify the file where each call to
mail() will be logged. The log file will contain the path and line # of the
calling script in addition to all of the headers indicated by the user.

The mail.add_x_header directive will introduce a X-PHP-Originating-Script
header that will contain the file name (no path) of the calling script and
the uid of the script. This combination should be sufficient for the admin
to locate the sending script.
2009-01-09 14:59:30 +00:00
Johannes Schlüter 7d3d47fa27 MFH: Fixed bug #46653 2009-01-09 14:30:00 +00:00
Sanjay Mantoor 49a6cc243e New testcases for localtime function 2009-01-09 05:09:40 +00:00
Felipe Pena 857959838f - Fixed tests 2009-01-09 02:11:54 +00:00
Antony Dovgal 7670ad31e6 MFH: use correct check for constants and stop segfaulting
(5_2 doesn't need this)
2009-01-08 22:36:03 +00:00
Antony Dovgal 7478ceada3 fix tests 2009-01-08 22:03:32 +00:00
Antony Dovgal c4fb924c7e fix test 2009-01-08 21:53:50 +00:00
andy wharmby a7bdc76551 New PHPT tests for math functions. Tested on Windows, Linux and Linux 64 bit. 2009-01-08 21:20:11 +00:00
Felipe Pena 4f07ef1f78 - Fixed test [only in this branch] 2009-01-08 19:00:02 +00:00
Arnaud Le Blanc 665b8f5510 MFH: XFAIL test 2009-01-08 18:58:34 +00:00
Felipe Pena f21cabe5e3 - MFH: Fixed tests 2009-01-08 18:47:26 +00:00
Felipe Pena 31169e2c1a MFH:
- Fixed bug #47037 (No error when using fopen with emty string)
Patch by Cristian Rodriguez R.
2009-01-08 18:46:00 +00:00
Arnaud Le Blanc 9c6c5c6f98 MFH:
Fix memleak when a user filter appends a bucket and returns != PSFS_PASS_ON
Improved tests
2009-01-08 18:40:27 +00:00
Felipe Pena b5182d7aff - MFH: Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record) 2009-01-08 17:19:50 +00:00
Arnaud Le Blanc 61ae60f805 MFH: Fixed error conditions handling in stream_filter_append() 2009-01-08 17:01:58 +00:00
Ilia Alshanetsky ae9d5f737e Improved parameter fixing & address a compiler warning 2009-01-08 16:13:51 +00:00
Scott MacVicar 6fe58b3542 Fix test again... 2009-01-08 14:09:49 +00:00
Scott MacVicar b08ceb79b3 Fix broken test 2009-01-08 13:35:58 +00:00
andy wharmby 9ccdaa362d Fix bogus file tests - addresses 2 failures in PHP GCOV reports. Tested on Windows, Linux and Linux 64 bit 2009-01-08 10:40:36 +00:00
Ilia Alshanetsky 9ce52853c7 Simplify parameter parsing 2009-01-08 00:37:39 +00:00
Felipe Pena 93638ba661 - MFH: Removed WRONG_PARAM_COUNT usage 2009-01-08 00:12:19 +00:00
Felipe Pena 241c414422 - MFH: Fixed test 2009-01-07 23:04:52 +00:00
Felipe Pena 51fc4e878d - MFH: More suitable parameter checking 2009-01-07 22:55:38 +00:00
Felipe Pena 15851cd771 MFH:
- New parameter parsing
- Removed METHOD_NOTSTATIC_NUMPARAMS
2009-01-07 22:40:17 +00:00
Andrei Zmievski 93adc26ed7 Add test for last commit. 2009-01-07 22:35:51 +00:00
Andrei Zmievski 26bb96e218 Changed __call() to be invoked on private/protected method access,
similar to properties and __get().
2009-01-07 22:12:39 +00:00
Antony Dovgal 76548a8d1e MFH: fix test 2009-01-07 21:23:10 +00:00
Felipe Pena 5ae3b86724 - Fixed test 2009-01-07 20:32:52 +00:00
Felipe Pena 7c989115c2 MFH:
- Added check for EWOULDBLOCK
- Using EWOULDBLOCK instead of EAGAIN by portability issues
(Related to #46917)
2009-01-07 20:21:46 +00:00
Felipe Pena c7ef31aefb - Checking 0 param in the new way [only in this branch] 2009-01-07 18:34:18 +00:00
Felipe Pena c0de7f3113 - MFH: Fixed duplicate errmsg 2009-01-07 18:26:27 +00:00
Felipe Pena 90c059872d - Fixed bug #47029 (quoted_printable_decode() produces duplicate warning)
Patch by Andy wharmby
2009-01-07 17:20:18 +00:00
Johannes Schlüter 1e3e6cdf29 MFH: Proper ctor usage (Fix #46044) 2009-01-07 16:32:08 +00:00
andy wharmby 1f56f22fa3 New pcre extension tests. Tested on Windows, Linux and Linux 64-bit 2009-01-07 14:52:26 +00:00
Derick Rethans 8ef259994f - MFH: Fixed bug #47027 (var_export doesn't show numeric indices on ArrayObject). 2009-01-07 14:36:07 +00:00
andy wharmby c41cc6aaed New hash extension tests. Tested on Windows, Linux and Linux 64-bit 2009-01-07 14:32:46 +00:00
Pierre Joye 4f70499923 - fix regression introduced by the move to the new parsing api (thx Bjori) 2009-01-07 13:49:53 +00:00
Pierre Joye 4b91d9b57a - fix parameter parsing options 2009-01-07 13:46:13 +00:00
Pierre Joye 7dff2f8550 - declaration and impl match 2009-01-07 13:02:43 +00:00
Pierre Joye 27b89ad09b - remove PHP_FE(dl) (actually removing the commented PHP_FE, was commited with my dns patch for win) 2009-01-07 08:53:47 +00:00
Pierre Joye b7063014da - sanity check if we got an A as well (valid too but not desired) 2009-01-07 01:35:36 +00:00
Ilia Alshanetsky 194fff3551 Param parsing cleanup 2009-01-06 23:45:16 +00:00
Pierre Joye 6f1a0edb11 - these ifdefs are a mess, fix build on win 2009-01-06 23:37:28 +00:00
Pierre Joye 789367bd7e - [DOC] VC6 does not have NAPTR 2009-01-06 23:23:28 +00:00
Pierre Joye 8afdcba444 - fix build 2009-01-06 21:47:13 +00:00
Pierre Joye c83e0d50d0 - add multi threaded build support (automatic detection of the number of cpus, add a custom number if you prefer to use only a few of your available cores) 2009-01-06 20:50:57 +00:00
Pierre Joye 3c967db4a1 - [MFH]
- [DOC] add support for all DNS function on Windows
  - dns_check_record  (and its alias  checkdnsrr)
  - dns_get_record
   - IPV6 specific info not available yet:
     . AAAA info is available only on vista/2k8 for now
     . A6 info is not available
  - dns_get_mx (and its alias getmxrr)
2009-01-06 20:48:21 +00:00
Pierre Joye 86ae6a2676 - add DNSApi for the DNS functions 2009-01-06 20:46:36 +00:00
Uwe Schindler 3d4c47e2e5 MFH: the #ifdef was never working. If Sun extends its NSAPI to support subrequests, much of this code must be rewritten. Because of that it is better to have a clean start. This commit does not change behaviour. 2009-01-06 13:46:20 +00:00
Felipe Pena 9e831698f6 - Fix for #46701 merged into 5_2 2009-01-06 01:31:33 +00:00
Felipe Pena aea77fd164 - New test 2009-01-05 22:17:28 +00:00
Felipe Pena 7454cbd7f3 - BFN 2009-01-05 20:46:52 +00:00
Felipe Pena f8689552a4 MFH:
- Fixed bug #46701 (Creating associative array with long values in the key fails on 32bit linux)
Patch by Shire
2009-01-05 20:31:54 +00:00
Ilia Alshanetsky f0240a0382 MFB: Improved parameter handling 2009-01-05 16:24:26 +00:00
Antony Dovgal 9b9cd5421d create temporary db in the current dir and cleanup on completion 2009-01-05 16:02:04 +00:00
Antony Dovgal 24163ce0b2 fix ws 2009-01-05 11:14:43 +00:00
Antony Dovgal fde1c3d332 MFH: only add "# original source" if a redirect is active 2009-01-05 09:19:09 +00:00
Antony Dovgal dc7aa2a949 fix memleaks correctly and make valgrind happy 2009-01-05 09:14:58 +00:00
Pierre Joye c6f6997504 - fix build 2009-01-04 20:18:57 +00:00
Ilia Alshanetsky 96b1c50ea9 Added missing initialization 2009-01-04 16:31:12 +00:00
Antony Dovgal fab5be7f21 MFH: fix PDO and other 'redirected' tests - add that "# original source" line only if the test fails 2009-01-04 15:56:45 +00:00
Antony Dovgal 543a554da9 fix test 2009-01-04 15:21:56 +00:00
Marcus Boerger edc7e3054e - MFH Add compiler globals as 2009-01-04 15:20:19 +00:00
Antony Dovgal 64b5048d80 MFH 2009-01-04 15:19:57 +00:00
Marcus Boerger 8e741674af - MFH - Set scope when copying a closure with a new this pointer. 2009-01-04 14:23:29 +00:00
Felipe Pena 08a25290e7 MFH:
- Removed unnecessary repeated arginfos
- Changed sqlite3stmt and sqlite3result to ZEND_ACC_PRIVATE to avoid reflection instantiation
2009-01-03 22:08:38 +00:00
Marcus Boerger 7c8c0414e1 - MFH Minor corrections and a new test 2009-01-03 20:41:01 +00:00
Marcus Boerger 4ffc3235e3 - MFH Show closure's bound as static parameter 2009-01-03 20:04:22 +00:00
Marcus Boerger b5d15b2975 - MFH Prevent instantiation from Reflection 2009-01-03 19:29:55 +00:00
Marcus Boerger 12df96e0de MFH
- Add ReflectionFunctionAbstract::getClosureThis()
[DOC]
# Returns the this pointer bound to the closure is the relection object
# points to closure. Since not all closures have a bound this, the method
# cannot be used to differentiate between normal functions/methods and
# closures. Instead ReflectionFunctionAbstract::isClosure() has to be used.
2009-01-03 19:08:47 +00:00
Marcus Boerger 4651b7f635 - MFH Overlooked one instance number 2009-01-03 18:50:56 +00:00
Marcus Boerger b7bb8034b5 - MFH Fix refcounting 2009-01-03 18:22:20 +00:00
Marcus Boerger 0e131653c1 - MFH Rebind closure when binding to property 2009-01-03 17:48:40 +00:00
Marcus Boerger 7ca830742e - MFH Improved closure support 2009-01-03 14:20:22 +00:00
Marcus Boerger 4490ca3104 - MFH Add minimalistic closure support 2009-01-03 12:39:27 +00:00
Marcus Boerger d9a78a887f - MFH Add reflection support helpers 2009-01-03 12:25:59 +00:00
Felipe Pena acd8f0020e - MFH: Windows part 2009-01-03 00:06:33 +00:00
Felipe Pena 5b2bb471f7 - MFH: Errr, rule nº 1: be portable :) 2009-01-02 21:42:52 +00:00
Felipe Pena 9c2043d41a - MFH: Working with unintialized errno (#46917, noticed by Jost Boekemeier) 2009-01-02 21:28:28 +00:00
Felipe Pena bfcea7ffa8 - MFH: Year++ 2009-01-02 20:45:43 +00:00
Ilia Alshanetsky 6ca15bfe0f Fixed a possible crash when phar_create_signature() fails 2009-01-02 20:43:41 +00:00
Marcus Boerger 2aba368462 - MFH Catch exceptions in cli -a 2009-01-02 13:14:49 +00:00
Kalle Sommer Nielsen 46dc120cdc MFH: Check if configure script was copied, and output an error if it wasn't 2009-01-02 12:18:21 +00:00
Kalle Sommer Nielsen 7c12271a56 MFH: Redirect the "1 file(s) copied" message to nul 2009-01-02 05:51:20 +00:00
Andi Gutmans 8accd1addc - Remove NO_RECURSE as it causes a huge performance impact. Up to 50%
with Wordpress. Stack size is not really anymore of an issue than on
  Linux with FastCGI (php-cgi.exe). For ISAPI it may be an issue but we
  have other places where we may eat up stack.
2009-01-02 04:59:41 +00:00
Scott MacVicar 81c5f379e7 Add some missing NEWS items 2009-01-02 03:04:50 +00:00
Scott MacVicar 0bdbc4e356 MFH Fix bug #46944 - UTF-8 characters outside the BMP aren't encoded correctly. 2009-01-02 03:02:22 +00:00
Pierre Joye 8d62f3dd02 - fix build (declaration first please) 2009-01-02 01:50:13 +00:00
Pierre Joye 206a7cef30 - year++ 2009-01-02 00:39:14 +00:00
Pierre Joye ee86a20296 - fix filename property read 2009-01-02 00:10:20 +00:00
Pierre Joye d00fb8b360 - MFB: restore overwrite feature (regression introduced in 5.2.8) 2009-01-02 00:07:57 +00:00
Pierre Joye 14f2f4148c - MFB: restore fix for binary mode on win (regression introduced in 5.2.8) 2009-01-02 00:04:33 +00:00
Ilia Alshanetsky 7b5baaac9b BFN 2009-01-01 20:16:33 +00:00
Ilia Alshanetsky fec58a89ee Fixed bug #46844 (php scripts or included files with first line starting
with # have the 1st line missed from the output).
2009-01-01 20:16:24 +00:00
Marcus Boerger 480fccce37 - MFH Add var_dump support for closures 2009-01-01 16:22:44 +00:00
Marcus Boerger 41cc091141 - MFH Fix SEGV if get_method() returns a non bound function 2009-01-01 15:28:15 +00:00
Pierre Joye 438c4cfacc - MFH: expose glob and globfree on wi ndows, can be used by shared ext (core or extern) 2009-01-01 12:32:49 +00:00
Kalle Sommer Nielsen 2f2d910797 MFH:
[DOC] Renable socket_create_pair() on Windows

# ext/sockets have its own implementation of socketpair(), perhaps we should move it
# to the core. This will make stream_socket_pair() available on Windows aswell
2009-01-01 05:24:29 +00:00
Zoe Slattery 455b551314 removing xfail sections as test passes 2008-12-31 20:45:04 +00:00
Zoe Slattery ded4196c10 removing xfail sections as test passes 2008-12-31 20:30:09 +00:00
Zoe Slattery 380214bedb removing xfail sections as test passes 2008-12-31 20:21:00 +00:00
Zoe Slattery 6d246c060b new test from Nat Mcugh 2008-12-31 20:06:26 +00:00
Pierre Joye e266d17a44 - enable gehostname on windows [DOC] 2008-12-31 19:47:13 +00:00
Marcus Boerger d02bb82d72 - Fix windows build (missing MFH snippet) 2008-12-31 18:55:22 +00:00
Zoe Slattery 89743669d2 Fixed bug #46845 Test expected to fail, but pass, don't cause error 2008-12-31 17:35:50 +00:00
Marcus Boerger 88f19296c9 - Add needed include as reported by Pierre 2008-12-31 17:33:05 +00:00
Antony Dovgal 85af2a05db MFH: don't use WRONG_PARAM_COUNT with new param parsing API 2008-12-31 15:48:18 +00:00
Felipe Pena eca64a8f60 - BFN 2008-12-31 15:45:59 +00:00
Felipe Pena 3d2edc7c1c - MFH: Fixed bug #46973 (IPv6 address filter rejects valid address) 2008-12-31 15:03:18 +00:00
Hannes Magnusson 1ceaa1de72 Nuke unused variables 2008-12-31 14:45:14 +00:00
Marcus Boerger 88ca8e7279 - Use Revision instead of Id tag for version 2008-12-31 14:36:27 +00:00
Ilia Alshanetsky 540242dc2d [DOC]
Added gethostname() to return the current system host name.
2008-12-31 14:30:38 +00:00
Marcus Boerger f77719d800 MFH
- Changed dl() to be disabled by default. Enabled only when explicitly
  registered by the SAPI layer. Enabled only with CLI, CGI and EMBED. (Dmitry)
[DOC]
2008-12-31 14:27:09 +00:00
Marcus Boerger 2faea53de2 - Sync with HEAD, no ability to not start builtin functions 2008-12-31 14:05:22 +00:00
Marcus Boerger 0bbbe42156 - MFH Fix info output 2008-12-31 13:49:14 +00:00
Marcus Boerger 8797aa99b7 MFH
- Register engine classes when and where they should be
- Show core module version as PHP version
2008-12-31 13:25:21 +00:00
Marcus Boerger 7d9e04000c - MFH Do not show core ini entries twice 2008-12-31 12:52:39 +00:00
Marcus Boerger 8bdeb10a08 - MFH Fix test 2008-12-31 12:33:12 +00:00
Marcus Boerger 63d00f7006 - MFH Move stdClass registering where it should be 2008-12-31 12:26:33 +00:00
Sebastian Bergmann 08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Sebastian Bergmann 3c1ed020c7 MFH: Bump copyright year, 2 of 3. 2008-12-31 11:13:54 +00:00
Sebastian Bergmann 06de2c4de2 MFH: Bump copyright year, 1 of 3. 2008-12-31 11:13:47 +00:00
Ant Phillips 666759bc73 Revert to the previous version for these tests as they were overwritten by mistake (checked on Windows but not on Linux... so the six skipped tests may not work correctly... but they should be ok and I'll watch the test results). 2008-12-31 10:36:12 +00:00
Etienne Kneuss b296c25ba2 MFH: Fix #45820 (Empty ArrayObject keys not allowed) 2008-12-30 23:34:29 +00:00
Marcus Boerger 826cc0dc3d - MFH Provide a core module that contains all Zend and php/main (in 5.3 incl. stdClass) 2008-12-30 20:15:28 +00:00
Andrei Zmievski cae97c3b8e MFH 2008-12-30 19:37:35 +00:00
Ilia Alshanetsky bead44c487 MFB: Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL). 2008-12-30 19:11:13 +00:00
Marcus Boerger aab40960c6 - MFH Show version and ini entries as default module info. 2008-12-30 19:10:37 +00:00
Marcus Boerger d6d4121546 - MFH Do not show empty ini directive tables for modules without ini entries. 2008-12-30 19:08:54 +00:00
Hannes Magnusson 7cfc6b9116 Fix arginfo and proto 2008-12-30 18:55:16 +00:00
Marcus Boerger ff037203c7 MFH Use a module struct for the built-in functions 2008-12-30 18:17:44 +00:00
Ant Phillips f17c2db736 Revert to the previous version for these tests as they were overwritten by mistake (checked on Windows but not on Linux... so the six skipped tests may not work correctly... but they should be ok and I'll watch the test results). 2008-12-30 16:49:43 +00:00
Zoe Slattery 553d34e811 refixing missing skipif 2008-12-30 15:57:23 +00:00
Felipe Pena e33a951c58 - MFH Added missing check for void param. (patch by Kalle) 2008-12-30 12:50:16 +00:00
Felipe Pena 9212a9584e - MFH: Bug #46763 (mb_stristr() wrong output when needle does not exist) (patch by Henrique M. Decaria) 2008-12-30 02:17:30 +00:00
Jani Taskinen c168107cbf This is not TODO file.. 2008-12-29 09:58:18 +00:00
Felipe Pena 19eae50153 - Errr, I lost the practice ;D 2008-12-28 00:02:13 +00:00
Felipe Pena 82be2f6f34 - BFN #46957 2008-12-27 23:59:43 +00:00
Felipe Pena cfe152206c - Bug #46957 (The tokenizer returns deprecated values) 2008-12-27 23:16:56 +00:00
Hannes Magnusson b21891361f MFH: Nuke more removed extensions 2008-12-27 21:03:53 +00:00
Hannes Magnusson 51ab4da07a MFH: - Add missing INI entries (pdo_odbc, odbc/birdstep, sybase_ct)
MFH: - Remove entries from removed extension (ifx
2008-12-27 20:55:06 +00:00
Hannes Magnusson e88e432b44 MFH: Add sysvshm.init_mem.
[DOC] Looks like this setting has always been available
2008-12-27 20:28:38 +00:00
Antony Dovgal 16fef2c6b0 MFH 2008-12-27 20:23:12 +00:00
Antony Dovgal 16df93413f MFH: fix compile warning 2008-12-27 20:22:10 +00:00
Antony Dovgal 4f447b39a5 add missing .cvsignore 2008-12-27 20:03:49 +00:00
Felipe Pena 90e87528b4 - Fixed tests 2008-12-27 19:16:49 +00:00
Felipe Pena e13d011551 - MFH: Fixed code (comparison with string literal) 2008-12-27 19:06:48 +00:00
Felipe Pena 2f2fb609df - MFH: Fixed memory leaks 2008-12-27 13:32:24 +00:00
Rob Richards b3f4191d35 MFH: proper exports/imports for win32 2008-12-27 12:22:38 +00:00
Rob Richards 8fc5e99478 MFH: add missing exports 2008-12-27 12:16:12 +00:00
Brian Shire b4141cc424 MFH: fix explode behavior to respect negative limit when string is empty. 2008-12-27 05:15:51 +00:00
Arnaud Le Blanc 2dd8d6ff94 MFH: Fixed bug #46873 (extract($foo) crashes if $foo['foo'] exists) 2008-12-27 03:06:57 +00:00
Felipe Pena 765618b97f - Fix test 2008-12-27 01:19:49 +00:00
Rob Richards 90b040b7d0 MFH: force export on win32 to workaround win32 conig issues 2008-12-27 01:07:49 +00:00
Felipe Pena 4cf4b5bf44 - MFH: Fix test 2008-12-27 01:05:07 +00:00
Rob Richards 5690e188da MFH: properly export functions 2008-12-26 20:28:43 +00:00
Pierre Joye 50d26a85a6 - remove the temp hack for libxml path (fixed now)
- do not raise a warning if the extension was not enabled anyway
2008-12-26 14:13:38 +00:00
Pierre Joye b593dfa388 - MFB:
- usual suspects must be in the default include/lib path (thx Rob for the notice!)
  - fix the --wtih-php-build doc, remove dead url, update the name of the deps dir
2008-12-26 14:11:44 +00:00
Pierre Joye bfa5044bb3 - be sure we define the deps so the right exts are built before (dom symbol error) 2008-12-26 14:05:05 +00:00
Felipe Pena 84c12b2df4 - MFH: Fixed memory leak 2008-12-25 19:30:47 +00:00
Scott MacVicar 6267a33aba MFH Enable salsa hashing algorithm 2008-12-25 13:35:05 +00:00
Pierre Joye be4a8abd0c - add libxml cflag for shared and static 2008-12-25 01:00:26 +00:00
Pierre Joye b73aec3e08 - work around missing libxml include path (will be replaced by a PHP_SETUP_LIBXML macro) 2008-12-25 00:47:32 +00:00
Pierre Joye 63fe8179d0 - MFH: be sure that at least one SAPI has been selected 2008-12-25 00:09:49 +00:00
Pierre Joye 15fa3c1d93 - MFH: the config summary is a must, do not allow to disable it 2008-12-25 00:08:51 +00:00
Pierre Joye 68bf21ecad - MFH: disable simplexml when libxml is not enabled 2008-12-25 00:01:10 +00:00
Scott MacVicar 3fb7f05991 MFH Stop using sqlite3_aggregate_count() as this is now deprecated. 2008-12-24 19:22:16 +00:00
Scott MacVicar 4b3197a9cd BFN 2008-12-24 18:11:41 +00:00
Scott MacVicar 7fe245af85 MFH Make sure we clear out the error when the scalar version decoding works. 2008-12-24 18:09:09 +00:00
Scott MacVicar db73c5ec74 MFH Fix bug #45991 - UTF-8 BOM breaks ini parser 2008-12-24 13:49:31 +00:00
Felipe Pena b4caf5314f - MFH: Fixed memory leak in imap_rfc822_parse_adrlist 2008-12-24 13:31:16 +00:00
Felipe Pena da9a15d586 - New test 2008-12-24 11:51:04 +00:00
Pierre Joye 0696223079 - version and WS 2008-12-24 11:08:14 +00:00
Felipe Pena fa28710039 - Merged into 5.3 2008-12-24 00:46:09 +00:00
Felipe Pena 6651864c25 - Sync code with HEAD
- [DOC] Backported: shm_has_var()
2008-12-24 00:23:18 +00:00
Scott MacVicar 372256b002 MFH Remove all of the stuff we have in here for pre PHP 5.2 support and memset the fileinfo struct. 2008-12-22 16:45:07 +00:00
Scott MacVicar 178e0c726e MFH Enable ICU support within bundled SQLite if intl is enabled but not shared. 2008-12-22 16:43:21 +00:00
Etienne Kneuss dbd703131d MFH: Fix #46646 (Implement zend functions to restrict serialization or internal classes) 2008-12-22 14:19:47 +00:00
Etienne Kneuss f48d22afa1 MFH: Fix #46646 (Implement zend functions to restrict serialization or internal classes) 2008-12-22 14:11:49 +00:00
Scott MacVicar 3c1e53deb4 MFH Patch has the wrong filename 2008-12-22 13:26:25 +00:00
Scott MacVicar 1465ea28ef BFN 2008-12-22 13:24:47 +00:00
Scott MacVicar 366fe43d79 MFH SQLite 3.6.7 plus a vc6 backport for LL 2008-12-22 13:22:25 +00:00
Scott MacVicar ec8c4723b0 BFN 2008-12-19 02:05:32 +00:00
Scott MacVicar fdf2d1e46f MFH Add json_last_error() for getting a bit of information about what failed during a decode, also fixes a segfault when we have [1}
[DOC]
2008-12-19 02:00:57 +00:00
Pierre Joye c310143ac7 - MFH: no need to look for bindlib_w32, not used anymore 2008-12-18 23:21:22 +00:00
Derick Rethans e5491af3c5 - MFH: Fixed bug #46268 (DateTime::modify() does not reset relative time
values).
2008-12-18 20:32:23 +00:00
Ilia Alshanetsky c9f030f576 Fixed bug #46887 (Invalid calls to php_error_docref())
# Patch by oeriksson at mandriva dot com and crrodriguez at opensuse dot org
2008-12-18 20:02:20 +00:00
Arnaud Le Blanc 0cd7fdd99f MFH: Fixed test 2008-12-18 16:04:59 +00:00
Robin Fernandes bd7f18ab4f Additional output buffering tests. 2008-12-18 15:20:07 +00:00
Derick Rethans aea378c91c - MFH: Fixed bug #46889: Memory leak in strtotime(). 2008-12-18 14:55:36 +00:00
Stanislav Malyshev 47769245ad bug #46005 -> 5.2 2008-12-18 14:30:13 +00:00
Ilia Alshanetsky 9c97213e0b Fix a small portion of memory leak in bug #46889 2008-12-17 21:32:29 +00:00
Scott MacVicar 6393540c75 MFH Fix Windows build 2008-12-17 15:46:21 +00:00
Zoe Slattery fee9ce41f3 README for ext/imap tests 2008-12-17 15:36:06 +00:00
Zoe Slattery b8a79234df Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
Scott MacVicar e5587ee4cc MFH Test for bug #45791 2008-12-17 14:46:47 +00:00
Scott MacVicar 8ef7fe1d99 Update the JSON parser with that on json.org, biggest change here is code readability. Less magic numbers in the state table.
Add missing reflection information to json_encode()
Fixes bug #45791 with 0e0 not being supported as a value
Error values are stored when encountered during parsing
2008-12-17 14:40:06 +00:00
Jani Taskinen 77a63540a5 MFH:- Fixed bug #45161 (Reusing a curl handle leaks memory) 2008-12-17 14:13:40 +00:00
Jani Taskinen 3ce9e6d6d9 MFH 2008-12-17 14:00:20 +00:00
Zoe Slattery 7156227045 New FTP test from Nathaniel McHugh 2008-12-17 12:35:26 +00:00
Stanislav Malyshev c0346a304f report fix 2008-12-17 11:36:34 +00:00
Stanislav Malyshev 40cd1d49b3 MFH fix #46005 2008-12-17 11:34:50 +00:00
Ilia Alshanetsky 5856a68c8d Removed unused variable 2008-12-17 00:30:27 +00:00
Zoe Slattery 78d7ff706e bug #46837 fix 2008-12-16 21:35:01 +00:00
Zoe Slattery 92d3eb31b7 bug #46884 fix 2008-12-16 21:10:16 +00:00
Rob Richards 5fa06bbe64 BFN 2008-12-16 12:54:05 +00:00
Rob Richards c373356f45 MFH: fix bug #46849 (Cloning DOMDocument doesn't clone the properties)
fix some warnings
add test
2008-12-16 12:53:29 +00:00
Steve Seear da35833236 call_user_func_array() tests 2008-12-15 14:11:57 +00:00
Zoe Slattery 32d03cc340 fixed test 2008-12-15 13:17:53 +00:00
Stanislav Malyshev feb50cd762 initialize op1 2008-12-15 11:29:36 +00:00
Lars Strojny 29f49d2ded If a wrapper could not be found it is either a typo or a configuration issue. But in both cases it is critical enough to warn the user. 2008-12-14 16:25:37 +00:00
Pierre Joye ea7c47c97d - fix build 2008-12-14 16:25:15 +00:00
Ilia Alshanetsky 830be669cc Simplify code 2008-12-14 15:34:49 +00:00
Johannes Schlüter e23b2b3fa5 MFH (Use the same test fiel as in HEAD) 2008-12-13 22:23:29 +00:00
Lars Strojny e34f9a87ac Cleanup: remove trailing whitespaces 2008-12-13 15:06:53 +00:00
Lars Strojny dda00318d9 One len variable is enough here, we can reuse it 2008-12-13 15:06:20 +00:00
Marcus Boerger fcf784502e MFH Use ' -f' as requested 2008-12-13 14:49:39 +00:00
Pierre Joye d4b63c8d7e - fix builds for VC8+, strnlen is available in vc8 and later (used in spprintf.c) 2008-12-13 11:47:06 +00:00
Pierre Joye 33d110f8f8 - do not add .cvsignore to the tests package 2008-12-13 11:46:23 +00:00
Kalle Sommer Nielsen 68ff190aaa Already in 5.2 NEWS 2008-12-13 05:31:15 +00:00
Andrei Zmievski 568b146480 Fix tests, add NEWS entry. 2008-12-12 23:59:48 +00:00
Nuno Lopes f2f7ed4987 we do not need the strndup() now that php_stream_printf() handles non-null terminated strings correctly 2008-12-12 23:46:05 +00:00
Nuno Lopes 7c910b94cf make *printf() functions do not read strings past their specified length (if any) 2008-12-12 23:43:18 +00:00
Scott MacVicar 1b72ac1301 BFN 2008-12-12 23:21:22 +00:00
Scott MacVicar ed5f04710b MFH Fix bug #45989 - json_decode() doesn't return NULL on certain invalid strings 2008-12-12 23:19:47 +00:00
Andrei Zmievski dddbfccb9f MFH 2008-12-12 19:20:49 +00:00
Hannes Magnusson f6cf54d2b1 Fixed bug#46847 (phpinfo() is missing some settings.) 2008-12-12 13:07:28 +00:00
Hannes Magnusson 259715e69b BFN 2008-12-12 12:46:24 +00:00
Hannes Magnusson e5c13558e8 MFH: Fixed bug#46681 (mkdir() fails silently on PHP 5.3) 2008-12-12 12:44:48 +00:00
Antony Dovgal f090e83eaf fix test 2008-12-12 12:14:00 +00:00
Rob Richards ca954ad613 MFH: fix bug #46699: (xml_parse crash when parser is namespace aware)
fix a couple warnings
add test
2008-12-12 04:16:21 +00:00
Ilia Alshanetsky 0594dd91d3 Fixed a possible corruption inside PDOStatement::debugDumpParams() 2008-12-11 15:32:24 +00:00
Pierre Joye 162b0b612a - MFB: fix build 2008-12-11 15:31:31 +00:00
Pierre Joye 9d6e793b4b - MFH: fix build (was never used like that before recent commit to session) > local include use quotes not <> 2008-12-11 13:12:22 +00:00
Stefan Esser 1940a3aa91 Added test for magic_quotes_gpc 2008-12-11 13:05:53 +00:00
Antony Dovgal 0c0bb70ba9 add missing .cvsignore 2008-12-11 10:59:31 +00:00
Antony Dovgal 4df574285a MFH 2008-12-11 10:58:56 +00:00
Pierre Joye cd57fe323d - WS 2008-12-11 10:22:12 +00:00
Ant Phillips 4faa1f1624 MCrypt tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows and Linux but not Linux 64 bit or 5.3). 2008-12-11 10:21:38 +00:00
Scott MacVicar 4d391cdebd BFN 2008-12-11 02:58:22 +00:00
Scott MacVicar 7877cbdcfc MFH Fix bug #46738 - Segfault when mb_detect_encoding() fails. 2008-12-11 02:56:45 +00:00
Lars Strojny 1f4fd81a27 Fixing strict warning when null is passed 2008-12-11 02:37:36 +00:00
Scott MacVicar 2ea6780873 MFH Fix bug #35975 - Session cookie expires date format isn't the most compatible. Sync to that of setcookie(). 2008-12-11 01:21:35 +00:00
Pierre Joye 38b1e4c702 - ws 2008-12-11 00:13:48 +00:00
Ilia Alshanetsky 0f51787f74 Fixed bug #46798 (Crash in mssql extension when retrieving a NULL value
inside a binary or image column type)
2008-12-10 20:53:44 +00:00
Scott MacVicar fdb9b62cef MFH Fix segfault and potential security issue in imagerotate(). 2008-12-10 13:32:02 +00:00
Ant Phillips bd266a5bbf Test for bug #43841 2008-12-10 10:34:15 +00:00
Nuno Lopes c61d5627ba export the pcre API when compiling with gcc 4. this fixes e.g. the linkage of APC (reported by shire) 2008-12-10 10:16:14 +00:00
Pierre Joye d6f27e909c - c/p error. 2008-12-10 09:49:59 +00:00
Arnaud Le Blanc f5b2818225 MFH: fixed test 2008-12-09 22:53:42 +00:00
Johannes Schlüter d828b8acc0 MFH: Fix #46813 (class_exists doesn`t work with fully qualified namespace) 2008-12-09 19:17:11 +00:00
Pierre Joye a8578a5ab1 - double declaration and comments cleanup 2008-12-09 17:57:59 +00:00
Pierre Joye 9e59295224 - fix VC6 build 2008-12-09 17:54:01 +00:00
Ilia Alshanetsky 780ff63c37 MFH: Fixed bug #46746 (xmlrpc_decode_request outputs non-suppressable error
when given bad data).
2008-12-09 17:22:12 +00:00
Ilia Alshanetsky 9049b6948e Fixed missing initialization of uses when copying a curl handle 2008-12-09 17:17:27 +00:00
Jani Taskinen e967b0fec9 MFH:- Better descriptions for these tests 2008-12-09 16:05:49 +00:00
Jani Taskinen f2c711b132 MFH: fix tests 2008-12-09 15:44:39 +00:00
Jani Taskinen b2a2aaff93 MFH 2008-12-09 15:21:15 +00:00
Antony Dovgal bc41d716a7 fix test 2008-12-09 14:48:41 +00:00
Pierre Joye ef3ec02f6f - MFH: silent conversion warnings as it is not going to be "fixed" any time soon, removing false positive alerts. noise--; 2008-12-09 14:28:54 +00:00
Hannes Magnusson 76a17847c1 Deprecate session_register(), session_unregister() and
session_is_registered() (removed in HEAD)
2008-12-09 14:03:58 +00:00
Zoe Slattery d5f6620091 fix resource id 2008-12-09 13:41:49 +00:00
Hannes Magnusson 4bfd481076 MFH: fix test 2008-12-09 13:02:40 +00:00
Hannes Magnusson 902e9af1c2 Fix test.
You cannot set include_path as empty, and never could
2008-12-09 12:54:01 +00:00
Jani Taskinen ed4d53ff56 MFH 2008-12-09 10:53:47 +00:00
Jani Taskinen 57804f29d3 style 2008-12-09 10:50:08 +00:00
Hannes Magnusson f9bc85a19b Whoops. Missing bit from the open_basedir tightening MFH 2008-12-09 10:23:44 +00:00
Hannes Magnusson 76669fce23 MFH: - Changed open_basedir to allow tightening in runtime contexts. (Sara)
- Add test
2008-12-09 10:20:11 +00:00
Hannes Magnusson ac30b3a8de BFN 2008-12-09 10:12:21 +00:00
Hannes Magnusson a2f63f583b Fixed bug#46811 ini_set() doesn't return false on failure 2008-12-09 10:11:21 +00:00
Hannes Magnusson 336cb15d69 MFH: - Changed opendir/dir/scandir to use default context when no context argument is passed. (Sara) 2008-12-09 09:03:38 +00:00
Scott MacVicar d8edbd2729 Add test for the recent magic_quotes_gpc regression. 2008-12-09 01:47:57 +00:00
Pierre Joye a6841bf66b - MFH:
- buildconf accepts arguments (pecl dir for ex.)
 - copy configure.bat
2008-12-08 22:42:28 +00:00
Pierre Joye 10f2b1519b - MFH: add configure script 2008-12-08 22:39:55 +00:00
Zoe Slattery 6cf2385268 tests for imap_fetch_overview 2008-12-08 19:12:39 +00:00
Jani Taskinen 733abc019a - Sync with HEAD 2008-12-08 12:36:10 +00:00
Scott MacVicar 15a212b259 MFH Fix bug #46748, segfault when SSL has more than one error message. 2008-12-08 11:54:22 +00:00
Sanjay Mantoor fb6ae89566 New testcases for idate function 2008-12-08 10:48:22 +00:00
Stanislav Malyshev 1235a544af improve Windows version detection 2008-12-08 07:32:14 +00:00
Marcus Boerger c727b68ca1 - MFH Only show switch -y if available 2008-12-08 00:16:05 +00:00
Marcus Boerger 43c7b7f679 - MFH When installing phar, make phar a link to phar.phar 2008-12-07 23:57:40 +00:00
Matt Wilmas a31c7ebdff MFH: Fixed bug #46782 (fastcgi.c parse error) 2008-12-07 10:55:16 +00:00
Scott MacVicar e5e17578bf MFB: Back out bugfix for #42718 as this broke magic_quotes_gpc 2008-12-06 17:25:35 +00:00
Marcus Boerger e244527833 - MFH Remove more dead code 2008-12-06 15:24:47 +00:00
Marcus Boerger dbee447265 - MFH Drop dead code 2008-12-06 15:16:00 +00:00
Zoe Slattery dcdd18e01e More changes to allow the same tests to be used with PHP5 and PHP6 2008-12-06 12:00:37 +00:00
Robin Fernandes 2057a9a3f9 Add some class related tests, fix hard-coded object ID in serialize_001.phpt. 2008-12-05 22:12:07 +00:00
Rob Richards 64a1f04f17 MFH: fix arginfo - these also accept SimpleXMLElement 2008-12-05 18:35:43 +00:00
Zoe Slattery 9271f52838 FTP test from Nathaniel McHugh 2008-12-05 16:28:16 +00:00
Ant Phillips fc8a260a92 Remove duff comment produced by the test generator tool 2008-12-05 14:18:02 +00:00
Ant Phillips 1a9de83ddf MBString tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-12-05 14:01:49 +00:00
Ant Phillips 4a78652f34 MBString tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-12-05 13:10:48 +00:00
Ant Phillips 3ccae5954e Array tests: checked on PHP 5.2.6, 5.3 and 6.0 (Windows, Linux and Linux 64 bit). 2008-12-05 12:42:15 +00:00
Mikko Koppanen aab5212b32 Added test for bug #46739 2008-12-05 11:21:44 +00:00
Zoe Slattery 7b4f84770f Update to use norsh flag 2008-12-05 11:02:04 +00:00
Derick Rethans 9d1eca8ee1 *** empty log message *** 2008-12-04 14:55:19 +00:00
Mikko Koppanen 57caba14ea Fixes bug #46739 2008-12-04 13:13:22 +00:00
Johannes Schlüter a2266a7782 Back to -dev 2008-12-03 21:01:52 +00:00
Johannes Schlüter abe7bc1433 fix vi user error 2008-12-03 20:44:51 +00:00
Felipe Pena 5341de4a9d - Fixed strange typos 2008-12-03 20:44:15 +00:00
Johannes Schlüter 2cfbe8c9ff 5.3.0. Alpha 3 2008-12-03 20:40:59 +00:00
Johannes Schlüter cf4a811b57 MFH One more cleanup after running tests 2008-12-03 20:30:44 +00:00
David Soria Parra fe8d326d57 Fix test for auto_cflags and explictly set GCC="no" if we detect suncc 2008-12-03 19:53:45 +00:00
David Soria Parra 2b830291bb Fix cc detection in phpize according to changes in configure.in 2008-12-03 19:52:59 +00:00
6286 changed files with 483201 additions and 223978 deletions

No files matched your search

+22
View File
@@ -2,16 +2,38 @@ define ____executor_globals
if basic_functions_module.zts
set $tsrm_ls = ts_resource_ex(0, 0)
set $eg = ((zend_executor_globals) (*((void ***) $tsrm_ls))[executor_globals_id-1])
set $cg = ((zend_compiler_globals) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
else
set $eg = executor_globals
set $cg = compiler_globals
end
end
document ____executor_globals
portable way of accessing executor_globals, set $eg
this also sets compiler_globals to $cg
ZTS detection is automatically based on ext/standard module struct
end
define print_cvs
____executor_globals
set $p = $eg.current_execute_data.CVs
set $c = $eg.current_execute_data.op_array.last_var
set $v = $eg.current_execute_data.op_array.vars
set $i = 0
printf "Compiled variables count: %d\n", $c
while $i < $c
printf "%d = %s\n", $i, $v[$i].name
if $p[$i] != 0
printzv *$p[$i]
else
printf "*uninitialized*\n"
end
set $i = $i + 1
end
end
define dump_bt
set $t = $arg0
while $t
+3 -3
View File
@@ -59,8 +59,8 @@ Exceptions:
you're calling.
7. When commenting out code using a #if statement, do NOT use 0 only. Instead
use "<cvs username here>_0". For example, #if FOO_0, where FOO is your
cvs user foo. This allows easier tracking of why code was commented out,
use "<svn username here>_0". For example, #if FOO_0, where FOO is your
svn user foo. This allows easier tracking of why code was commented out,
especially in bundled libraries.
8. Do not define functions that are not available. For instance, if a
@@ -259,7 +259,7 @@ The file labelled 'EXPERIMENTAL' should include the following
information::
Any authoring information (known bugs, future directions of the module).
Ongoing status notes which may not be appropriate for CVS comments.
Ongoing status notes which may not be appropriate for SVN comments.
Aliases & Legacy Documentation
-----------------------------------
+10 -17
View File
@@ -73,6 +73,12 @@ PRIMARY MAINTAINER: Edin Kadribasic <edink@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: fpm
PRIMARY MAINTAINER: Antony Dovgal <tony2001@php.net>, Jerome Loyet <fat@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 5.3.3
-------------------------------------------------------------------------------
EXTENSION: isapi
MAINTENANCE: Unknown
STATUS: Working
@@ -129,24 +135,11 @@ MAINTENANCE: Maintained
STATUS: Working
COMMENT: DBM abstraction for db2, db3, db4, dbm, ndbm, gdbm, ini
-------------------------------------------------------------------------------
EXTENSION: dbase
MAINTENANCE: Orphaned
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: fbsql
PRIMARY MAINTAINER: Frank M. Kromann <fmk@swwwing.com>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: interbase
PRIMARY MAINTAINER: Ard Biesheuvel <ard@ard.nu>, Jouni Ahto <jouni.ahto@exdec.fi>
MAINTENANCE: Odd fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: msql
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mssql
PRIMARY MAINTAINER: Frank M. Kromann <fmk@swwwing.com>
MAINTENANCE: Maintained
@@ -182,7 +175,7 @@ STATUS: Working
COMMENT: Working
-------------------------------------------------------------------------------
EXTENSION: pdo
PRIMARY MAINTAINER: Unknown
PRIMARY MAINTAINER: Ilia Alshanetsky <iliaa@php.net>, Wez Furlong <wez@php.net>
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
@@ -224,7 +217,7 @@ STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_sqlite
PRIMARY MAINTAINER: Unknown
PRIMARY MAINTAINER: Ilia Alshanetsky <iliaa@php.net>
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
@@ -236,7 +229,7 @@ STATUS: Working
COMMENT: Use PostgreSQL 7.0.x or later. PostgreSQL 6.5.3 or less have fatal bug.
-------------------------------------------------------------------------------
EXTENSION: sqlite
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>, Wez Furlong <wez@php.net>
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>, Wez Furlong <wez@php.net>, Ilia Alshanetsky <iliaa@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 5.0 (Since 4.3.2 in PECL)
@@ -462,7 +455,7 @@ MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: phar
PRIMARY MAINTAINER: Greg Beaver <cellog@php.net>, Marcus Börger <helly@php.net>
PRIMARY MAINTAINER: Greg Beaver <cellog@php.net>, Marcus Börger <helly@php.net>, Steph Fox <sfox@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 5.3
+19 -17
View File
@@ -198,13 +198,18 @@ Apache 1.3.x on Unix systems
13. Setup your php.ini file:
cp php.ini-dist /usr/local/lib/php.ini
PHP will use the built-in default values if no php.ini file was
placed in the configuration directory. The default location is
/usr/local/lib, if you prefer your php.ini in another location, use
--with-config-file-path=/some/path in step 10.
You may edit your .ini file to set PHP options. If you prefer your
php.ini in another location, use --with-config-file-path=/some/path in
step 10.
The PHP distribution provides two sample php.ini files, you can use them
by
cp php.ini-development /usr/local/lib/php.ini
or
cp php.ini-production /usr/local/lib/php.ini
If you instead choose php.ini-recommended, be certain to read the list
If you choose one of these php.ini files be certain to read the list
of changes within, as they affect how PHP behaves.
14. Edit your httpd.conf to load the PHP module. The path on the right hand
@@ -386,7 +391,7 @@ Apache 2.0 on Unix systems
http://snaps.php.net/php5-latest.tar.gz or download binaries for
Windows http://snaps.php.net/win32/php5-win32-latest.zip.
* a prerelease version downloadable from http://qa.php.net/.
* you have always the option to obtain PHP through anonymous CVS.
* you have always the option to obtain PHP through SVN.
These versions of PHP are compatible to Apache 2.0.40 and later.
@@ -1303,8 +1308,8 @@ Introduction to PECL Installations
When building PHP modules, it's important to have known-good versions
of the required tools (autoconf, automake, libtool, etc.) See the
Anonymous CVS Instructions for details on the required tools, and
required versions.
SVN Instructions for details on the required tools, and required
versions.
__________________________________________________________________
Downloading PECL extensions
@@ -1320,14 +1325,11 @@ Downloading PECL extensions
PECL extensions that have releases listed on the PECL web site are
available for download and installation using the pecl command.
Specific revisions may also be specified.
* CVS
Most PECL extensions also reside in CVS. A web-based view may be
seen at http://cvs.php.net/pecl/. To download straight from CVS,
the following sequence of commands may be used. Note that phpfi is
the password for user cvsread:
* SVN
All PECL files reside in SVN. A web-based view may be seen at
http://svn.php.net/pecl/. To download straight from SVN, use:
$ cvs -d:pserver:cvsread@cvs.php.net:/repository login
$ cvs -d:pserver:cvsread@cvs.php.net:/repository co pecl/extname
$ svn co http://svn.php.net/repository/pecl/<extname>/trunk <extname>
* Windows downloads
Windows users may find compiled PECL binaries by downloading the
@@ -1375,7 +1377,7 @@ Compiling shared PECL extensions with phpize
Sometimes, using the pecl installer is not an option. This could be
because you're behind a firewall, or it could be because the extension
you want to install is not available as a PECL compatible package, such
as unreleased extensions from CVS. If you need to build such an
as unreleased extensions from SVN. If you need to build such an
extension, you can use the lower-level build tools to perform the build
manually.
@@ -1522,7 +1524,7 @@ The configuration file
directives are documented in the manual though. For a complete list of
directives available in your PHP version, please read your well
commented php.ini file. Alternatively, you may find the the latest
php.ini from CVS helpful too.
php.ini from SVN helpful too.
Example 6-1. php.ini example
; any text on a line after an unquoted semicolon (;) is ignored
+1 -1
View File
@@ -1,6 +1,6 @@
--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2006 The PHP Group. All rights reserved.
Copyright (c) 1999 - 2009 The PHP Group. All rights reserved.
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
+4 -19
View File
@@ -5,24 +5,7 @@
lcov: lcov-html
lcov-test: all
@echo "Running test suite"
@find . -name \*.gcda -o -name \*.da -o -name \*.bbg? | xargs rm -f
-@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
NO_INTERACTION=1 \
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php -d 'extension_dir=modules/' -d `( . $(PHP_MODULES) ; echo extension=$$dlname)` tests/; \
elif test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
NO_INTERACTION=1 \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
lcov-test: lcov-clean-data test
php_lcov.info: lcov-test
@echo "Generating data for $@"
@@ -61,7 +44,7 @@ php_lcov.info: lcov-test
test -f "$$x.bb" && cp $$x.bb lcov_data/$$y.bb ; \
test -f "$$x.bbg" && cp $$x.bbg lcov_data/$$y.bbg ; \
done
for dir in ext/bcmath/libbcmath ext/date/lib ext/fileinfo/libmagic ext/gd/libgd ext/mbstring/libmbfl ext/mbstring/oniguruma ext/pcre/pcrelib ext/pdo_sqlite/libsqlite ext/sqlite/libsqlite ext/sqlite3/libsqlite ext/xmlrpc/libxmlrpc ext/zip/lib; do \
for dir in ext/bcmath/libbcmath ext/fileinfo/libmagic ext/gd/libgd ext/mbstring/libmbfl ext/mbstring/oniguruma ext/pcre/pcrelib ext/pdo_sqlite/libsqlite ext/sqlite/libsqlite ext/sqlite3/libsqlite ext/xmlrpc/libxmlrpc ext/zip/lib; do \
test -d lcov_data/$$dir && rm -rf lcov_data/$$dir ; \
done
@echo
@@ -77,3 +60,5 @@ lcov-clean:
rm -rf lcov_data/
rm -rf lcov_html/
lcov-clean-data:
@find . -name \*.gcda -o -name \*.da -o -name \*.bbg? | xargs rm -f
+8 -13
View File
@@ -79,29 +79,25 @@ PHP_TEST_SHARED_EXTENSIONS = ` \
. $$i; $(top_srcdir)/build/shtool echo -n -- " -d $(ZEND_EXT_TYPE)=$(top_builddir)/modules/$$dlname"; \
done; \
fi`
PHP_DEPRECATED_DIRECTIVES_REGEX = '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\ ]*='
test: all
-@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -d extension_dir=modules/ $(PHP_TEST_SHARED_EXTENSIONS) tests/; \
elif test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
if test "$$INI_FILE"; then \
$(EGREP) -v '^(zend_)?extension(_debug)?(_ts)?[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
else \
echo > $(top_builddir)/tmp-php.ini; \
fi; \
INI_SCANNED_PATH=`$(top_builddir)/$(SAPI_CLI_PATH) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
if test "$$INI_SCANNED_PATH"; then \
INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
$(EGREP) -h -v '^(zend_)?extension(_debug)?(_ts)?[\t\ ]*=' "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
$(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
fi; \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
$(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
@@ -115,9 +111,8 @@ clean:
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
distclean: clean
rm -f config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h php5.spec sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
find . -name Makefile | xargs rm -f
.PHONY: all clean install distclean test
.NOEXPORT:
+1974 -202
View File
File diff suppressed because it is too large. Load diff
+3
View File
@@ -39,13 +39,16 @@ Type specifiers
instance of that class.
a - array (zval*)
A - array or object (zval *)
b - boolean (zend_bool)
C - class (zend_class_entry*)
d - double (double)
f - function or array containing php method call info (returned as
zend_fcall_info and zend_fcall_info_cache)
h - array (returned as HashTable*)
H - array or HASH_OF(object) (returned as HashTable*)
l - long (long)
L - long, limits out-of-range numbers to LONG_MAX/LONG_MIN (long)
o - object of any type (zval*)
O - object of specific type given by class entry (zval*, zend_class_entry)
r - resource (zval*)
-57
View File
@@ -1,57 +0,0 @@
QNX4 Installation Notes
-----------------------
NOTE: General installation instructions are in the INSTALL file
1. To compile and test PHP3 you have to grab, compile and install:
- GNU dbm library or another db library;
- GNU bison (1.25 or later; 1.25 tested);
- GNU flex (any version supporting -o and -P options; 2.5.4 tested);
- GNU diffutils (any version supporting -w option; 2.7 tested);
2. To use CVS version you may need also:
- GNU CVS (1.9 tested);
- GNU autoconf (2.12 tested);
- GNU m4 (1.3 or later preferable; 1.4 tested);
3. To run configure define -lunix in command line:
LDFLAGS=-lunix ./configure
4. To use Sybase SQL Anywhere define ODBC_QNX and CUSTOM_ODBC_LIBS in
command line and run configure with --with-custom-odbc:
CFLAGS=-DODBC_QNX LDFLAGS=-lunix CUSTOM_ODBC_LIBS="-ldblib -lodbc" ./configure --with-custom-odbc=/usr/lib/sqlany50
If you have SQL Anywhere version 5.5.00, then you have to add
CFLAGS=-DSQLANY_BUG
to workaround its SQLFreeEnv() bug. Other versions has not been tested,
so try without this flag first.
5. To build the Apache module, you may have to hardcode an include path for
alloc.h in your Apache base directory:
- APACHE_DIRECTORY/src/httpd.h:
change #include "alloc.h"
to #include "APACHE_DIRECTORY/src/alloc.h"
Unless you want to use system regex library, you have to hardcode also
a path to regex.h:
- APACHE_DIRECTORY/src/conf.h:
change #include <regex.h>
to #include "APACHE_DIRECTORY/src/regex/regex.h"
I don't know so far why this required for QNX, may be it is Watcom
compiler problem.
If you building Apache module with SQL Anywhere support, you'll get
symbol conflict with BOOL. It is defined in Apache (httpd.h) and in
SQL Anywhere (odbc.h). This has nothing to do with PHP, so you have to
fix it yourself someway.
6. With above precautions, it should compile as is and pass regression
tests completely:
make
make check
make install
Don't bother me unless you really sure you made that all but it
still doesn't work.
June 28, 1998
Igor Kovalenko -- owl@infomarket.ru
+429
View File
@@ -0,0 +1,429 @@
1. libmagic (ext/fileinfo) see ext/fileinfo/libmagic/LICENSE
2. Oniguruma (ext/mbstring) see ext/mbstring/oniguruma/COPYING
3. libmbfl (ext/mbstring) see ext/mbstring/libmbfl/LICENSE
4. pcrelib (ext/pcre) see ext/pcre/pcrelib/LICENCE
5. ext/standard crypt
6. ext/standard crypt's blowfish implementation
7. Sqlite/Sqlite3 ext/sqlite3 ext/sqlite
8. ext/json/json_parser
9. ext/standard/rand
10. ext/standard/scanf
11. ext/standard/strnatcmp.c
12. ext/standard/uuencode
13. libxmlrpc ext/xmlrpc
14. libzip ext/zip
15. main/snprintf.c
16. main/strlcat
17. main/strlcpy
18. libgd see ext/gd/libgd/COPYING
5. ext/standard crypt
FreeSec: libcrypt for NetBSD
Copyright (c) 1994 David Burren
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the author nor the names of other contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
6. ext/standard crypt's blowfish implementation
This code comes from John the Ripper password cracker, with reentrant
and crypt(3) interfaces added, but optimizations specific to password
cracking removed.
Written by Solar Designer <solar at openwall.com> in 1998-2002 and
placed in the public domain.
There's absolutely no warranty.
It is my intent that you should be able to use this on your system,
as a part of a software package, or anywhere else to improve security,
ensure compatibility, or for any other purpose. I would appreciate
it if you give credit where it is due and keep your modifications in
the public domain as well, but I don't require that in order to let
you place this code and any modifications you make under a license
of your choice.
This implementation is compatible with OpenBSD bcrypt.c (version 2a)
by Niels Provos <provos at citi.umich.edu>, and uses some of his
ideas. The password hashing algorithm was designed by David Mazieres
<dm at lcs.mit.edu>.
There's a paper on the algorithm that explains its design decisions:
http://www.usenix.org/events/usenix99/provos.html
Some of the tricks in BF_ROUND might be inspired by Eric Young's
Blowfish library (I can't be sure if I would think of something if I
hadn't seen his code).
7. Sqlite/Sqlite3 ext/sqlite3 ext/sqlite
The author disclaims copyright to this source code. In place of
a legal notice, here is a blessing:
May you do good and not evil.
May you find forgiveness for yourself and forgive others.
May you share freely, never taking more than you give.
8. ext/json/json_parser
Copyright (c) 2005 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The Software shall be used for Good, not Evil.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9. ext/standard/rand
The following php_mt_...() functions are based on a C++ class MTRand by
Richard J. Wagner. For more information see the web page at
http://www-personal.engin.umich.edu/~wagnerr/MersenneTwister.html
Mersenne Twister random number generator -- a C++ class MTRand
Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus
Richard J. Wagner v1.0 15 May 2003 rjwagner@writeme.com
The Mersenne Twister is an algorithm for generating random numbers. It
was designed with consideration of the flaws in various other generators.
The period, 2^19937-1, and the order of equidistribution, 623 dimensions,
are far greater. The generator is also fast; it avoids multiplication and
division, and it benefits from caches and pipelines. For more information
see the inventors' web page at http://www.math.keio.ac.jp/~matumoto/emt.html
Reference
M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-Dimensionally
Equidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on
Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30.
Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
Copyright (C) 2000 - 2003, Richard J. Wagner
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The names of its contributors may not be used to endorse or promote
products derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10. ext/standard/scanf
scanf.c --
This file contains the base code which implements sscanf and by extension
fscanf. Original code is from TCL8.3.0 and bears the following copyright:
This software is copyrighted by the Regents of the University of
California, Sun Microsystems, Inc., Scriptics Corporation,
and other parties. The following terms apply to all files associated
with the software unless explicitly disclaimed in individual files.
The authors hereby grant permission to use, copy, modify, distribute,
and license this software and its documentation for any purpose, provided
that existing copyright notices are retained in all copies and that this
notice is included verbatim in any distributions. No written agreement,
license, or royalty fee is required for any of the authorized uses.
Modifications to this software may be copyrighted by their authors
and need not follow the licensing terms described here, provided that
the new terms are clearly indicated on the first page of each file where
they apply.
IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
MODIFICATIONS.
GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
Government shall have only "Restricted Rights" as defined in Clause
252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the
terms specified in this license.
11. ext/standard/strnatcmp.c
strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
12. ext/standard/uuencode
Portions of this code are based on Berkeley's uuencode/uudecode
implementation.
Copyright (c) 1983, 1993
The Regents of the University of California. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by the University of
California, Berkeley and its contributors.
4. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
13. libxmlrpc ext/xmlrpc
Copyright 2000 Epinions, Inc.
Subject to the following 3 conditions, Epinions, Inc. permits you, free
of charge, to (a) use, copy, distribute, modify, perform and display this
software and associated documentation files (the "Software"), and (b)
permit others to whom the Software is furnished to do so as well.
1) The above copyright notice and this permission notice shall be included
without modification in all copies or substantial portions of the
Software.
2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF
ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE OR NONINFRINGEMENT.
3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING
NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH
DAMAGES.
14. libzip ext/zip
zip.h -- exported declarations.
Copyright (C) 1999-2009 Dieter Baron and Thomas Klausner
This file is part of libzip, a library to manipulate ZIP archives.
The authors can be contacted at <libzip@nih.at>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
3. The names of the authors may not be used to endorse or promote
products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15. main/snprintf.c
Copyright (c) 2002, 2006 Todd C. Miller <Todd.Miller@courtesan.com>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Sponsored in part by the Defense Advanced Research Projects
Agency (DARPA) and Air Force Research Laboratory, Air Force
Materiel Command, USAF, under agreement number F39502-99-1-0512.
main/spprintf
Copyright (c) 1995-1998 The Apache Group. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
3. All advertising materials mentioning features or use of this
software must display the following acknowledgment:
"This product includes software developed by the Apache Group
for use in the Apache HTTP server project (http://www.apache.org/)."
4. The names "Apache Server" and "Apache Group" must not be used to
endorse or promote products derived from this software without
prior written permission.
5. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes software developed by the Apache Group
for use in the Apache HTTP server project (http://www.apache.org/)."
THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
====================================================================
This software consists of voluntary contributions made by many
individuals on behalf of the Apache Group and was originally based
on public domain software written at the National Center for
Supercomputing Applications, University of Illinois, Urbana-Champaign.
For more information on the Apache Group and the Apache HTTP server
project, please see <http://www.apache.org/>.
This code is based on, and used with the permission of, the
SIO stdio-replacement strx_* functions by Panos Tsirigotis
<panos@alumni.cs.colorado.edu> for xinetd.
16. main/strlcat
17. main/strlcpy
Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+75 -35
View File
@@ -48,48 +48,51 @@ Do not use abbreviations for alpha and beta.
3. Commit those changes
4. tag the repository with the version f.e. "``cvs tag php_4_4_1RC1``"
4. run the "scripts/dev/credits" script in php-src and commit the changes in the
credits files in ext/standard.
5. tag the repository with the version f.e. "``cvs tag php_4_4_1RC1``"
(of course, you need to change that to the version you're rolling an RC for).
5. Bump up the version numbers in ``main/php_version.h``, ``configure.in``
6. Bump up the version numbers in ``main/php_version.h``, ``configure.in``
and possibly ``NEWS`` again, to the **next** version. F.e. if the release
candidate was "4.4.1RC1" then the new one should be "4.4.1RC2-dev" - regardless
if we get a new RC or not. This is to make sure ``version_compare()`` can
correctly work.
6. Commit those changes
7. Commit those changes
7. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
8. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
branch if you're rolling 4.4.x releases).
8. You do not have to update the tree, but of course you can with "``cvs up -dP``".
9. You do not have to update the tree, but of course you can with "``cvs up -dP``".
9. run: ``./makedist php 4.4.1RC1``, this will export the tree, create configure
10. run: ``./makedist php 4.4.1RC1``, this will export the tree, create configure
and build two tarballs (one gz and one bz2).
10. Copy those two tarballs to www.php.net, in your homedir their should be a
11. Copy those two tarballs to www.php.net, in your homedir there should be a
directory "downloads/". Copy them into there, so that the system can generate
MD5 sums. If you do not have this directory, talk to Derick.
11. Now the RC can be found on http://downloads.php.net/yourname,
12. Now the RC can be found on http://downloads.php.net/yourname,
f.e. http://downloads.php.net/derick/
12. Once the release has been tagged, contact the PHP Windows development team
13. Once the release has been tagged, contact the PHP Windows development team
(internals-win@lists.php.net) so that Windows binaries can be created. Once
those are made, they should be placed into the same directory as the source snapshots.
Getting the non stable release announced
----------------------------------------
Getting the non stable release (alpha/beta/RC) announced
--------------------------------------------------------
1. Send an email (see example here: http://news.php.net/php.internals/19486)
**To** ``internals@lists.php.net`` and ``php-general@lists.php.net`` lists
pointing out "the location of the release" and "the possible release date of
either the next RC, or the final release".
2. Send an email (see example here http://news.php.net/php.qa/26069) **To**
``php-qa@lists.php.net`` and **CC** ``primary-qa-tests@lists.php.net``.
This email is to notify the selected projects about a new RC so that they can
make sure their projects keep working. Make sure that you have been setup
2. Send an email (see example here http://news.php.net/php.pear.qa/5201) **To**
``php-qa@lists.php.net`` and ``primary-qa-tests@lists.php.net``.
This email is to notify the selected projects about a new release so that they
can make sure their projects keep working. Make sure that you have been setup
as a moderator for ``primary-qa-tests@lists.php.net`` by having someone (Wez,
Derick) run the following commands for you:
@@ -97,9 +100,9 @@ Derick) run the following commands for you:
``sudo -u ezmlm ezmlm-sub ~ezmlm/primary-qa-tester/mod moderator-email-address``
3. Update the MD5 sums in ``qaweb/include/rc-md5sums.txt``.
3. Update the MD5 sums in ``web/qa/trunk/include/rc-md5sums.txt`` (no empty lines).
4. Update in ``qaweb/include/release-qa.php`` constants with the new RC and
4. Update in ``web/qa/trunk/include/release-qa.php`` constants with the new RC and
commit this.
a. ``$BUILD_TEST_RELEASES`` = array("4.4.7RC1", "5.2.2RC1")
@@ -108,23 +111,22 @@ commit this.
c. ``$RELEASE_PROCESS`` = array(4 => true, 5 => true)
1. Update in ``php-bugs-web/include/functions.inc`` the ``show_version_option``
1. Update in ``php-bugs/trunk/include/functions.inc`` the ``show_version_option``
function to include the new RC and commit.
2. Run the bumpRelease script for phpweb in your local checkout
a. ``php bin/bumpRelease 5`` (or ``php bin/bumpRelease 4`` for PHP4)
3. Update ``phpweb/include/version.inc`` (x=major version number)
2. Update ``phpweb/include/version.inc`` (x=major version number)
a. ``$PHP_x_RC`` = "5.3.0RC1"
b. ``$PHP_x_RC_DATE`` = "06 September 2007"
4. Commit those changes:
3. Commit those changes:
a. ``cvs commit include/version.inc include/releases.inc``
4. For the first RC, write the doc team (phpdoc@lists.php.net) about updating the
INSTALL and win32/install.txt files which are generated from the PHP manual sources.
Rolling a stable release
------------------------
@@ -136,34 +138,37 @@ Rolling a stable release
4. Commit those changes
5. tag the repository with the version f.e. "``cvs tag php_4_4_1``"
5. run the "scripts/dev/credits" script in php-src and commit the changes in the
credits files in ext/standard.
6. tag the repository with the version f.e. "``cvs tag php_4_4_1``"
(of course, you need to change that to the version you're rolling an RC for).
When making 5.X release, you need to tag the Zend directory separately!!
6. Bump up the version numbers in ``main/php_version.h``, ``configure.in`` and
7. Bump up the version numbers in ``main/php_version.h``, ``configure.in`` and
possibly ``NEWS`` again, to the **next** version. F.e. if the release candidate
was "4.4.1RC1" then the new one should be "4.4.1RC2-dev" - regardless if we get
a new RC or not. This is to make sure ``version_compare()`` can correctly work.
7. Commit those changes
8. Commit those changes
8. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
9. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
branch if you're rolling 4.4.x releases).
9. You do not have to update the tree, but of course you can with "``cvs up -dP``".
10. You do not have to update the tree, but of course you can with "``cvs up -dP``".
10. run: ``./makedist php 4.4.1``, this will export the tree, create configure
11. run: ``./makedist php 4.4.1``, this will export the tree, create configure
and build two tarballs (one gz and one bz2).
11. Commit those two tarballs to CVS (phpweb/distributions)
12. Commit those two tarballs to CVS (phpweb/distributions)
12. Once the release has been tagged, contact the PHP Windows development team
13. Once the release has been tagged, contact the PHP Windows development team
(internals-win@lists.php.net) so that Windows binaries can be created. Once
those are made, they should be committed to CVS too.
13. Check if the pear files are updated (phar for 5.1+ or run pear/make-pear-bundle.php with 4.4)
14. Check if the pear files are updated (phar for 5.1+ or run pear/make-pear-bundle.php with 4.4)
14. When making a final release, also remind the PHP Windows development team
15. When making a final release, also remind the PHP Windows development team
(internals-win@lists.php.net) to prepare the installer packages for Win32.
Getting the stable release announced
@@ -205,6 +210,10 @@ f.e. ``ChangeLog-4.php`` from the NEWS file
III. ``s/Fixed bug #\([0-9]\+\)/<?php bugfix(\1); ?>/``
IV. ``s/Fixed PECL bug #\([0-9]\+\)/<?php peclbugfix(\1); ?>/``
V. ``s/FR #\([0-9]\+\)/FR <?php bugl(\1); ?>/``
4. ``cp releases/4_4_0.php releases/4_4_1.php``
5. ``cvs add releases/4_4_1.php``
@@ -243,4 +252,35 @@ number, and remove the RC from there.
II. For PHP5: Set $CURRENT_QA_RELEASE_5 to false
12. Rebuild the English and Japanese docs (ask Derick)
Re-releasing the same version (or -pl)
--------------------------------------
1. Commit the new binaries to ``phpweb/distributions/``
2. Edit ``phpweb/include/version.inc`` and change (X=major release number):
a. If only releasing for one OS, make sure you edit only those variables
b. ``$PHP_X_VERSION`` to the correct version
c. ``$PHP_X_DATE`` to the release date
d. ``$PHP_X_MD5`` array and update all the md5 sums
e. Make sure there are no outdated "notes" or edited "date" keys in the
``$RELEASES[X][$PHP_X_VERSION]["source"]`` array
3. Add a short notice to phpweb stating that there is a new release, and
highlight the major important things (security fixes) and when it is important
to upgrade.
a. Call php bin/createNewsEntry in your local phpweb checkout
b. Add the content for the news entry
4. Commit all the changes (``include/version.inc``, ``archive/archive.xml``,
``archive/entries/YYYY-MM-DD-N.xml``)
5. Wait an hour or two, then send a mail to php-announce@lists.php.net,
php-general@lists.php.net and internals@lists.php.net with a text similar to
the news entry.
+157 -101
View File
@@ -1,126 +1,182 @@
Submitting Patch for PHP
========================
Submitting Enhancements and Patches to PHP
==========================================
This document describes how to submit a patch for PHP. Since you are
reading this document, you are willing to submit a patch for PHP.
Please keep reading! Submitting a patch for PHP is easy. The hard
part is making it acceptable for inclusion into our repository. :-)
This document describes how to submit an enhancement or patch for PHP.
It's easy!
How to create patch?
--------------------
We are working with CVS. You need to get CVS source to create a patch
that we accept. Visit http://www.php.net/anoncvs.php to get CVS
source. You can check out older versions, but make sure you get
the default branch (i.e. Do not use -r option when you check out the
CVS source)
You don't need any login accounts or special access to download,
build, debug and begin submitting PHP, PECL or PEAR code, tests or
documentation. Once you've followed this README and had several
patches accepted, commit privileges are often quickly granted.
Read CODING_STANDARDS file before you start working.
Now you are ready to create a patch. Modify source to fix a bug in PHP or
add a new feature to PHP. After you finished editing, please test your
patch. Read README.TESTING for testing.
After you finish testing your patch, take diff file using
"cvs diff > your.patch" command.
Read README.TESTING for submitting a test script for your patch. This is
not strictly required, but it is preferred to submit a test script along
with your patch. Making new test script is very easy. It also helps us
to understand what you have been fixed or added to PHP.
An excellent article to read first is:
http://phpadvent.org/2008/less-whining-more-coding-by-elizabeth-smith
Tips for creating patch
-----------------------
If you would like to fix multiple bugs. It is easier for us if you
could create 1 patch for 1 bug, but this is not strictly required.
Note though that you might get little response, if your patch is
too hard to review.
If you would like change/add many lines, it is better to ask module
maintainer and/or internals@lists.php.net, or pear-dev@lists.php.net if
you are patching PEAR. Official module maintainers can be found in
EXTENSIONS file in PHP source.
If you are new to CVS (Concurrent Versions System), visit
http://cvshome.org/ for details.
Online Forums
-------------
There are several IRC channels where PHP developers are often
available to discuss questions. They include #php.pecl, #php.doc and
#pear on the EFNet network and #php-dev-win on FreeNode.
Recommended CVS client settings for creating patch file
------------------------------------------------------
Recommended ~/.cvsrc file setting is:
------
cvs -z3
update -d -P
checkout -P
diff -u
PHP Patches
-----------
If you are fixing broken functionality in PHP C source code first
create a bug or identify an existing bug at http://bugs.php.net/. A
bug can be used to track the patch progress and prevent your changes
getting lost in the PHP mail archives.
------
diff -u means:
-u Use the unified output format.
If your change is large then create a Request For Comment (RFC) page
on http://wiki.php.net/rfc, discuss it with the extension maintainer,
and discuss it on the development mail list internals@lists.php.net.
RFC Wiki accounts can be requested on
http://wiki.php.net/start?do=register. PHP extension maintainers can
be found in the EXTENSIONS file in the PHP source. Mail list
subscription is explained on http://www.php.net/mailing-lists.php.
With this CVS setting, you don't have to worry about adding/deleting
newlines and spaces.
Information on PHP internal C functions is at
http://www.php.net/internals, though this is considered incomplete.
Various external resources can be found on the web. A standard
printed reference is the book "Extending and Embedding PHP" by Sara
Golemon.
Attach the patch to the PHP bug and consider sending a notification
email about the change to internals@lists.php.net. Also CC the
extension maintainer. Explain what has been changed by your patch.
Test scripts should be included.
Please make the mail subject prefix "[PATCH]". If attaching a patch,
ensure it has a file extension of ".txt". This is because only MIME
attachments of type 'text/*' are accepted.
Check list for submitting patch
-------------------------------
- Did you run "make test" to check if your patch didn't break
other features?
- Did you compile PHP with --enable-debug and check the PHP and
web server error logs when you test your patch?
- Did you build PHP for multi-threaded web servers. (Optional)
- Did you create test script for "make test"? (Recommended)
- Did you check your patch is unified format and it does not
contain white space changes? (If you are not using recommended
cvs setting)
- Did you update CVS source before you take final patch?
- Did you read the patch again?
Where to send your patch?
PHP Documentation Patches
-------------------------
If you are patching C source, send the patch to internals@lists.php.net.
If you are patching a module, you should also send the patch to the
maintainer. Official module maintainers are listed in EXTENSION file
in source.
If you are fixing incorrect PHP documentation first create a bug or
identify an existing bug at http://bugs.php.net/. A bug can be used
to track the patch progress and prevent your changes getting lost in
the PHP mail archives.
If you are patching PEAR, send the patch to pear-dev@lists.php.net.
If your change is large, then first discuss it with the mail list
phpdoc@lists.php.net. Subscription is explained on
http://www.php.net/mailing-lists.php.
Please add the prefix "[PATCH]" to your email subject and make sure
to include the patch as a MIME attachment even if it is short.
Information on contributing to PHP documentation is at
http://php.net/dochowto and http://wiki.php.net/doc/howto
NOTE: only MIME attachments of type 'text/*' are accepted. The
easiest way to accomplish this, is to make the extension
'.txt'.
Attach the patch to the PHP bug and consider sending a notification
email about the change to phpdoc@lists.php.net. Explain what has been
fixed/added/changed by your patch.
Test scripts should be included in the same email.
Explain what has been fixed/added/changed by your patch.
Finally, add the bug Id(s) which can be closed by your patch, if any.
Please make the mail subject prefix "[PATCH]". Include the bug id(s)
which can be closed by your patch. If attaching a patch, ensure it
has a file extension of ".txt". This is because only MIME attachments
of type 'text/*' are accepted.
What happens after you submit your patch
----------------------------------------
If your patch is easy to review and has obviously no side-effects,
it might take up to a few hours until someone commits it.
PECL Extension Patches: http://pecl.php.net/
--------------------------------------------
If you are fixing broken functionality in a PECL extension then create
a bug or identify an existing bug at http://pecl.php.net/bugs/. A bug
can be used to track the patch progress and prevent your changes
getting lost in the PHP mail archives.
Because this is a volunteer-driven effort, more complex patches will
require more patience on your side.
If your change is large then create a Request For Comment (RFC) page
on http://wiki.php.net/rfc, discuss it with the extension maintainer,
and discuss it on the development mail list pecl-dev@lists.php.net.
PECL mail list subscription is explained on
http://pecl.php.net/support.php. RFC Wiki accounts can be requested
on http://wiki.php.net/start?do=register
If you did not receive any feedback in a few days, please consider
resubmitting the description of your patch, along-side with
these questions:
Information on PHP internal C functions is at
http://www.php.net/internals, though this is considered incomplete.
Various external resources can be found on the web. A standard
printed reference is the book "Extending and Embedding PHP" by Sara
Golemon.
- Is my patch too hard to review? Because of which factors?
- Should I split it up in multiple parts?
- Are there any unwanted whitespace changes?
Update any open bugs and add a link to the source of your patch. Send
the patch or pointer to the bug to pecl-dev@lists.php.net. Also CC
the extension maintainer. Explain what has been changed by your
patch. Test scripts should be included.
Please make the mail subject prefix "[PATCH] ...". Include the patch
as an attachment with a file extension of ".txt". This is because
only MIME attachments of type 'text/*' are accepted.
What happens when your patch is applied?
----------------------------------------
Your name will be included together with your email address in the CVS
commit log. If your patch affects end-users, a brief description
and your name might be added to the NEWS file.
PEAR Package Patches: http://pear.php.net/
------------------------------------------
Information on contributing to PEAR is available at
http://pear.php.net/manual/en/developers-newmaint.php and
http://pear.php.net/manual/en/guide-developers.php
Thank you for submitting patch for PHP!
How to create your PHP, PHP Documentation or PECL patch
-------------------------------------------------------
PHP and PECL use Subversion (SVN) for revision control. Read
http://www.php.net/svn.php for help on using SVN to get and build PHP
source code. We recommend using a Sparse Directory checkout described
in http://wiki.php.net/vcs/svnfaq. If you are new to SVN, read
http://svnbook.red-bean.com.
Generally we ask that bug fix patches work on the current stable PHP
development branches and on "trunk". New PHP features only need to
work on "trunk".
Read CODING_STANDARDS before you start working.
After modifying the source see README.TESTING and
http://qa.php.net/write-test.php for how to test. Submitting test
scripts helps us to understand what functionality has changed. It is
important for the stability and maintainability of PHP that tests are
comprehensive.
After testing is finished, create a patch file using the command:
svn diff > your_patch.txt
For ease of review and later troubleshooting, submit individual
patches for each bug or feature.
Checklist for submitting your PHP or PECL code patch
----------------------------------------------------
- Update SVN source just before running your final 'diff' and
before testing.
- Add in-line comments and/or have external documentation ready.
Use only "/* */" style comments, not "//".
- Create test scripts for use with "make test".
- Run "make test" to check your patch doesn't break other features.
- Rebuild PHP with --enable-debug (which will show some kinds of
memory errors) and check the PHP and web server error logs after
running your PHP tests.
- Rebuild PHP with --enable-maintainer-zts to check your patch
compiles on multi-threaded web servers.
- Review the patch once more just before submitting it.
What happens after submitting your PHP, PHP Documentation or PECL patch
-----------------------------------------------------------------------
If your patch is easy to review and obviously has no side-effects,
it might be committed relatively quickly.
Because PHP is a volunteer-driven effort more complex patches will
require patience on your side. If you do not receive feedback in a
few days, consider resubmitting the patch. Before doing this think
about these questions:
- Did I send the patch to the right mail list?
- Did I review the mail list archives to see if these kind of
changes had been discussed before?
- Did I explain my patch clearly?
- Is my patch too hard to review? Because of what factors?
What happens when your PHP or PECL patch is applied
---------------------------------------------------
Your name will likely be included in the SVN commit log. If your
patch affects end users, a brief description and your name might be
added to the NEWS file.
Thank you for patching PHP!
+30 -25
View File
@@ -1,18 +1,18 @@
====================
CVS Commit Rules
SVN Commit Rules
====================
This is the first file you should be reading after you get your CVS account.
We'll assume you're basically familiar with CVS, but feel free to post
This is the first file you should be reading after you get your SVN account.
We'll assume you're basically familiar with SVN, but feel free to post
your questions on the mailing list. Please have a look at
http://cvsbook.red-bean.com/ for more detailed information on CVS.
http://svnbook.red-bean.com/ for more detailed information on SVN.
PHP is developed through the efforts of a large number of people.
Collaboration is a Good Thing(tm), and CVS lets us do this. Thus, following
some basic rules with regards to CVS usage will::
Collaboration is a Good Thing(tm), and SVN lets us do this. Thus, following
some basic rules with regards to SVN usage will::
a. Make everybody happier, especially those responsible for maintaining
the CVS itself.
the SVN itself.
b. Keep the changes consistently well documented and easily trackable.
@@ -43,46 +43,48 @@ Having said that, here are the organizational rules::
Currently we have the following branches in use::
HEAD Will become PHP 6.0. This CVS branch is for active development.
trunk Will become PHP 6.0. This CVS branch is for active development.
PHP_5_3 Is used to release the PHP 5.3.x series. It still allows for
larger enhancements.
branches/PHP_5_3 Is used to release the PHP 5.3.x series. It still allows for
larger enhancements.
PHP_5_2 Is used to release the PHP 5.2.x series. Only bugfixes are permitted
on this branch (Consult the releasemaster prior to commit).
branches/PHP_5_2 Is used to release the PHP 5.2.x series. Only bugfixes are permitted
on this branch (Consult the releasemaster prior to commit).
PHP_5_1 This branch is closed.
branches/PHP_5_1 This branch is closed.
PHP_4_4 Is used to release the PHP 4.4.x series. Only bugfixes are permitted
on this branch (Consult the releasemaster prior to commit).
PHP_4_3 This branch is closed.
branches/PHP_4_4 This branch is closed.
The next few rules are more of a technical nature::
1. DO NOT TOUCH ChangeLog! It is automagically updated from the commit
1. All changes should first go to trunk and then get merged from trunk
(aka MFH'ed) to all other relevant branches.
2. DO NOT TOUCH ChangeLog! It is automagically updated from the commit
messages every day. Woe be to those who attempt to mess with it.
2. All news updates intended for public viewing, such as new features,
bug fixes, improvements, etc., should go into the NEWS file.
3. All news updates intended for public viewing, such as new features,
bug fixes, improvements, etc., should go into the NEWS file of the
*first* to be released version with the given change. In other words
any NEWS file change only needs to done in one branch.
NB! Lines, starting with @ will go automagically into NEWS file, but
this is NOT recommended, though. Please, add news entries directly to
NEWS file and don't forget to keep them adjusted and sorted.
3. Do not commit multiple file and dump all messages in one commit. If you
4. Do not commit multiple file and dump all messages in one commit. If you
modified several unrelated files, commit each group separately and
provide a nice commit message for each one. See example below.
4. Do write your commit message in such a way that it makes sense even
5. Do write your commit message in such a way that it makes sense even
without the corresponding diff. One should be able to look at it, and
immediately know what was modified. Definitely include the function name
in the message as shown below.
5. In your commit messages, keep each line shorter than 80 characters. And
6. In your commit messages, keep each line shorter than 80 characters. And
try to align your lines vertically, if they wrap. It looks bad otherwise.
6. If you modified a function that is callable from PHP, prepend PHP to
7. If you modified a function that is callable from PHP, prepend PHP to
the function name as shown below.
@@ -130,8 +132,11 @@ If you don't see your messages in ChangeLog right away, don't worry!
These files are updated once a day, so your stuff will not show up until
somewhat later.
When you change the NEWS file for a bug fix, then please keep the bugs
sorted in decreasing order under the fixed version.
You can use LXR (http://lxr.php.net/) and Bonsai (http://bonsai.php.net/)
to look at PHP CVS repository in various ways.
to look at PHP SVN repository in various ways.
To receive daily updates to ChangeLog and NEWS, send an empty message to
php-cvs-daily-subscribe@lists.php.net.
+5 -4
View File
@@ -32,11 +32,12 @@ sapi/cli/php [-c /path/to/php.ini] run-tests.php [ext/foo/tests/GLOB]
[Which "php" executable "make test" look for]
---------------------------------------------
You must use TEST_PHP_EXECUTABLE environment variable to explicitly
select the php executable to be used to run the tests. That can either
be the CLI or CGI executable.
If you are running the run-tests.php script from the command line (as above)
you must set the TEST_PHP_EXECUTABLE environment variable to explicitly
select the PHP executable that is to be tested, that is, used to run the test scripts.
"make test" executes "run-tests.php" script with "php" binary. Some
If you run the tests using make test, the PHP CLI and CGI executables are
automatically set for you. "make test" executes "run-tests.php" script with the CLI binary. Some
test scripts such as session must be executed by CGI SAPI. Therefore,
you must build PHP with CGI SAPI to perform all tests.
+14 -14
View File
@@ -1,11 +1,11 @@
[IMPORTANT NOTICE]
------------------
This is an addendum to README.TESTING with additional information
specific to run-tests2.php.
specific to server-tests.php.
run-tests2.php is backward compatible with tests developed for
the original run-tests.php script. run-tests2 is *not* used by
'make test'. run-tests2 was developed to provide support for
server-tests.php is backward compatible with tests developed for
the original run-tests.php script. server-tests is *not* used by
'make test'. server-tests was developed to provide support for
testing PHP under it's primary environment, HTTP, and can run the
PHP tests under any of the SAPI modules that are direct executables,
or are accessable via HTTP.
@@ -13,12 +13,12 @@ or are accessable via HTTP.
[New features]
----------------
* Command line interface:
You can run 'php run-tests2.php -h' to get all the possible options.
You can run 'php server-tests.php -h' to get all the possible options.
* Configuration file:
the -c argument will allow you to use a configuration file. This is
handy if you are testing multiple environments and need various options
depending on the environment.
see run-tests-config.php for details.
see server-tests-config.php for details.
* CGI Emulation:
Will emulate a CGI environment when testing with the cgi sapi executable.
* HTTP testing:
@@ -39,23 +39,23 @@ make testing work.
Some (but not all!) examples of usage:
1. run tests from the php source directory
php run-tests2.php -p /path/to/php-cli
php server-tests.php -p /path/to/php-cli
2. run tests using cgi emulation
php run-tests2.php -p /path/to/php-cgi
php server-tests.php -p /path/to/php-cgi
3. run tests over http, copying test files into document root
php run-tests2.php -w -u http://localhost/test -m /path/to/htdocs/test
php server-tests.php -w -u http://localhost/test -m /path/to/htdocs/test
4. run tests over http, php sources have been aliased in web server
php run-tests2.php -w -u http://localhost/test
php server-tests.php -w -u http://localhost/test
5. run tests using configuration file
php run-tests2.php -c /path/to/run-tests-config.php
php server-tests.php -c /path/to/server-tests-config.php
6. run tests using configuration file, but overriding some settings:
(config file must be first)
php run-tests2.php -c /path/to/run-tests-config.php -w -t 3 -d /path/to/testdir
php server-tests.php -c /path/to/server-tests-config.php -w -t 3 -d /path/to/testdir
NOTE: configuration as described in README.TESTING still works.
@@ -63,7 +63,7 @@ NOTE: configuration as described in README.TESTING still works.
----------------
In addition to the traditional test sections
(see http://qa.php.net/write-test.php), several new sections are available
under run-tests2.
under server-tests.
--POST--
This is not a new section, but not multipart posts are supported for testing
@@ -97,7 +97,7 @@ include:
$scriptname this is what will become SCRIPT_NAME unless you override it
$docroot the equivelant of DOCUMENT_ROOT under Apache
$cwd the directory that the test is being initiated from
$this->conf all run-tests2 configuration vars
$this->conf all server-tests configuration vars
$this->env all environment variables that will get passed to the test
-1022
View File
File diff suppressed because it is too large. Load diff
+1 -169
View File
@@ -1,174 +1,6 @@
The Win32 Build System.
$Id$
Wez Furlong <wez@thebrainroom.com>
If you need help with the build system, send mail to
internals@lists.php.net; please don't email me directly.
===========================================================
Contents:
1. How to build PHP under windows
a. Requirements
b. Opening a command prompt
c. Generating configure.js
d. Configuring
e. Building
f. Cleaning up
g. Running the test suite
h. snapshot building
2. How to write config.w32 files
x. to be written.
===========================================================
1. How to build PHP under windows
a. Requirements
You need:
- Windows Scripting Host (cscript.exe)
- Microsoft Build Tools from:
Microsoft Visual Studio (VC6) or later
You also need:
- bindlib_w32 [http://www.php.net/extra/bindlib_w32.zip]
- win32build [http://www.php.net/extra/win32build.zip]
b. Opening the Build Environment Command Prompt:
- Using Visual Studio (VC6)
1. Install it
2. If you have a VC++ Command Prompt icon on your start menu,
click on it to get a Command Prompt with the env vars
set up correctly.
If not, create a new shortcut and set the Target to:
%comspec% /k "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
You might also want to set the prompt to start in
a convenient location (such as the root of your
PHP source checkout).
- Using Visual Studio .Net
1. Install it.
2. Under the Visual Studio .Net Tools sub menu of your start
menu, you should have a Visual Studio .Net Command Prompt
icon. If not, create a new shortcut and set the Target to:
%comspec% /k "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat"
You might also want to set the prompt to start in
a convenient location (such as the root of your
PHP source checkout).
- Using the Platform SDK tools
1. Download the Platform SDK:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
- You need the Core SDK, which is approx 200MB to download
and requires approx 500MB of disk space.
- The other components of the SDK are not required by PHP
- You might be able to reduce the download size by downloading
the installer control component first and then selecting
only the Build Environment (around 30MB), but I haven't
tried this.
** Note: it seems that MS don't include the 32 bit
build tools in the platform SDK any longer, so
you will probably have very limited luck if you
don't also have VC++ or VS.Net already installed.
2. Once installed, you will have an icon on your start menu
that will launch the build environment; the latest SDK's
install a number of different versions of this; you probably
want to choose the Windows 2000 Retail build environment.
Clicking on this will open a command prompt with its Path,
Include and Lib env vars set to point to the build tools
and win32 headers.
c. Generating configure
Change directory to where you have your PHP 5 sources.
Run buildconf.bat.
d. Configuring
cscript /nologo configure.js --help
Will give you a list of configuration options; these will
have the form:
--enable-foo or --disable-foo or --with-foo or --without-foo.
--enable-foo will turn something on, and is equivalent to
specifying --enable-foo=yes
--disable-foo will turn something off, and is equivalent to
specifying --enable-foo=no
--enable-foo=shared will attempt to build that feature as
a shared, dynamically loadable module.
Sometimes a configure option needs additional information
about where to find headers and libraries; quite often
you can specify --enable-foo=option where option could be
the path to where to find those files. If you want to
specify a parameter and build it as shared, you can use
this syntax instead: --enable-foo=shared,option
The same rules all apply to --with-foo and --without-foo;
the only difference is the way the options are named;
the convention is that --enable-foo means that you are
switching on something that comes with PHP, whereas
--with-foo means that you want to build in something
external to PHP.
e. Building
Once you have successfully configured your build (make
sure you read the output from the command to make sure
it worked correctly), you can build the code; simply type
"nmake" at the command prompt, and it will build everthing
you asked for.
Once the build has completed, you will find your binaries
in the build dir determined by configure; this is typically
Release_TS for release builds or Debug_TS for debug builds.
If you build a non-thread-safe build, it will use Release
or Debug to store the files. Also in this build dir you
will find sub directories for each module that went into
your PHP build. The files you'll want to keep are the
.exe and .dll files directly in your build dir.
f. Cleaning Up
You can automatically delete everything that was built
by running "nmake clean". This will delete everything
that was put there when you ran nmake, including the
.exe and .dll files.
g. Running the test suite
You can verify that your build is working well by running
the regression test suite. You do this by typing
"nmake test". You can specify the tests you want to run
by defing the TESTS variable - if you wanted to run the
sqlite test suite only, you would type
"nmake /D TESTS=ext/sqlite/tests test"
h. Snapshot Building
If you want to set up an automated build that will tolerate
breakages in some of the modules, you can use the
--enable-snapshot-build configure option to generate a
makefile optimized for that purpose. A snapshot build will
switch the argument parser so that the default option for
configure switches that your don't specify will be set
to "shared". The effect of this is to turn on all options
unless you explicitly disable them. When you have configured
your snapshot build, you can use "nmake build-snap" to build
everything, ignoring build errors in individual extensions
or SAPI.
See http://wiki.php.net/internals/windows/stepbystepbuild
vim:tw=78:sw=1:ts=1:et
+35 -35
View File
@@ -10,7 +10,7 @@ Namespaces are defined the following way:
Zend/DB/Connection.php:
<?php
namespace Zend::DB;
namespace Zend\DB;
class Connection {
}
@@ -27,55 +27,55 @@ The namespace declaration statement must be the very first statement in
the file. The only exception is "declare" statement that can be used before.
Every class and function in a namespace can be referred to by the full name
- e.g. Zend::DB::Connection or Zend::DB::connect - at any time.
- e.g. Zend\DB\Connection or Zend\DB\connect - at any time.
<?php
require 'Zend/Db/Connection.php';
$x = new Zend::DB::Connection;
Zend::DB::connect();
$x = new Zend\DB\Connection;
Zend\DB\connect();
?>
Namespace or class name can be imported:
<?php
require 'Zend/Db/Connection.php';
use Zend::DB;
use Zend::DB::Connection as DbConnection;
use Zend\DB;
use Zend\DB\Connection as DbConnection;
$x = new Zend::DB::Connection();
$y = new DB::connection();
$x = new Zend\DB\Connection();
$y = new DB\connection();
$z = new DbConnection();
DB::connect();
DB\connect();
?>
The use statement only defines name aliasing. It may create name alias for
namespace or class. The simple form of statement "use A::B::C::D;" is
equivalent to "use A::B::C::D as D;". The use statement can be used at any
namespace or class. The simple form of statement "use A\B\C\D;" is
equivalent to "use A\B\C\D as D;". The use statement can be used at any
time in the global scope (not inside function/class) and takes effect from
the point of definition down to the end of file. It is recommended however to
place the use statements at the beginning of the file. The use statements have
effect only on the file where they appear.
The special "empty" namespace (:: prefix) is useful as explicit global
namespace qualification. All class and function names started from ::
The special "empty" namespace (\ prefix) is useful as explicit global
namespace qualification. All class and function names started from \
interpreted as global.
<?php
namespace A::B::C;
namespace A\B\C;
$con = ::mysql_connect(...);
$con = \mysql_connect(...);
?>
A special constant __NAMESPACE__ contains the name of the current namespace.
It can be used to construct fully-qualified names to pass them as callbacks.
<?php
namespace A::B::C;
namespace A\B\C;
function foo() {
}
set_error_handler(__NAMESPACE__ . "::foo");
set_error_handler(__NAMESPACE__ . "\foo");
?>
In global namespace __NAMESPACE__ constant has the value of empty string.
@@ -83,32 +83,32 @@ In global namespace __NAMESPACE__ constant has the value of empty string.
Names inside namespace are resolved according to the following rules:
1) all qualified names are translated during compilation according to
current import rules. So if we have "use A::B::C" and then "C::D::e()"
it is translated to "A::B::C::D::e()".
current import rules. So if we have "use A\B\C" and then "C\D\e()"
it is translated to "A\B\C\D\e()".
2) unqualified class names translated during compilation according to
current import rules. So if we have "use A::B::C" and then "new C()" it
is translated to "new A::B::C()".
current import rules. So if we have "use A\B\C" and then "new C()" it
is translated to "new A\B\C()".
3) inside namespace, calls to unqualified functions that are defined in
current namespace (and are known at the time the call is parsed) are
interpreted as calls to these namespace functions.
4) inside namespace, calls to unqualified functions that are not defined
in current namespace are resolved at run-time. The call to function foo()
inside namespace (A::B) first tries to find and call function from current
namespace A::B::foo() and if it doesn't exist PHP tries to call internal
inside namespace (A\B) first tries to find and call function from current
namespace A\B\foo() and if it doesn't exist PHP tries to call internal
function foo(). Note that using foo() inside namespace you can call only
internal PHP functions, however using ::foo() you are able to call any
internal PHP functions, however using \foo() you are able to call any
function from the global namespace.
5) unqualified class names are resolved at run-time. E.q. "new Exception()"
first tries to use (and autoload) class from current namespace and in case
of failure uses internal PHP class. Note that using "new A" in namespace
you can only create class from this namespace or internal PHP class, however
using "new ::A" you are able to create any class from the global namespace.
using "new \A" you are able to create any class from the global namespace.
6) Calls to qualified functions are resolved at run-time. Call to
A::B::foo() first tries to call function foo() from namespace A::B, then
it tries to find class A::B (__autoload() it if necessary) and call its
A\B\foo() first tries to call function foo() from namespace A\B, then
it tries to find class A\B (__autoload() it if necessary) and call its
static method foo()
7) qualified class names are interpreted as class from corresponding
namespace. So "new A::B::C()" refers to class C from namespace A::B.
namespace. So "new A\B\C()" refers to class C from namespace A\B.
Examples
--------
@@ -116,38 +116,38 @@ Examples
namespace A;
foo(); // first tries to call "foo" defined in namespace "A"
// then calls internal function "foo"
::foo(); // calls function "foo" defined in global scope
\foo(); // calls function "foo" defined in global scope
?>
<?php
namespace A;
new B(); // first tries to create object of class "B" defined in namespace "A"
// then creates object of internal class "B"
new ::B(); // creates object of class "B" defined in global scope
new \B(); // creates object of class "B" defined in global scope
?>
<?php
namespace A;
new A(); // first tries to create object of class "A" from namespace "A" (A::A)
new A(); // first tries to create object of class "A" from namespace "A" (A\A)
// then creates object of internal class "A"
?>
<?php
namespace A;
B::foo(); // first tries to call function "foo" from namespace "A::B"
B\foo(); // first tries to call function "foo" from namespace "A\B"
// then calls method "foo" of internal class "B"
::B::foo(); // first tries to call function "foo" from namespace "B"
\B\foo(); // first tries to call function "foo" from namespace "B"
// then calls method "foo" of class "B" from global scope
?>
The worst case if class name conflicts with namespace name
<?php
namespace A;
A::foo(); // first tries to call function "foo" from namespace "A::A"
A\foo(); // first tries to call function "foo" from namespace "A\A"
// then tries to call method "foo" of class "A" from namespace "A"
// then tries to call function "foo" from namespace "A"
// then calls method "foo" of internal class "A"
::A::foo(); // first tries to call function "foo" from namespace "A"
\A\foo(); // first tries to call function "foo" from namespace "A"
// then calls method "foo" of class "A" from global scope
?>
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2008, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2010, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2008, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2010, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
-5
View File
@@ -1,10 +1,5 @@
// vim:ft=javascript
// $Id$
if (CHECK_HEADER_ADD_INCLUDE("NewAPIs.h", "CFLAGS_PHP", php_usual_include_suspects)) {
// Need to add the flag directly, since TSRM doesn't include the config
// header
ADD_FLAG("CFLAGS_PHP", "/DHAVE_NEWAPIS_H=1");
}
ADD_SOURCES("TSRM", "TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c tsrm_win32.c");
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+361 -33
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -35,6 +35,9 @@
#ifdef TSRM_WIN32
#include <io.h>
#include "tsrm_win32.h"
# ifndef IO_REPARSE_TAG_SYMLINK
# define IO_REPARSE_TAG_SYMLINK 0xA000000C
# endif
#endif
#ifdef NETWARE
@@ -137,6 +140,42 @@ static int php_check_dots(const char *element, int n)
#ifdef TSRM_WIN32
#ifdef CTL_CODE
#undef CTL_CODE
#endif
#define CTL_CODE(DeviceType,Function,Method,Access) (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))
#define FILE_DEVICE_FILE_SYSTEM 0x00000009
#define METHOD_BUFFERED 0
#define FILE_ANY_ACCESS 0
#define FSCTL_GET_REPARSE_POINT CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define MAXIMUM_REPARSE_DATA_BUFFER_SIZE ( 16 * 1024 )
typedef struct {
unsigned long ReparseTag;
unsigned short ReparseDataLength;
unsigned short Reserved;
union {
struct {
unsigned short SubstituteNameOffset;
unsigned short SubstituteNameLength;
unsigned short PrintNameOffset;
unsigned short PrintNameLength;
unsigned long Flags;
wchar_t ReparseTarget[1];
} SymbolicLinkReparseBuffer;
struct {
unsigned short SubstituteNameOffset;
unsigned short SubstituteNameLength;
unsigned short PrintNameOffset;
unsigned short PrintNameLength;
wchar_t ReparseTarget[1];
} MountPointReparseBuffer;
struct {
unsigned char ReparseTarget[1];
} GenericReparseBuffer;
};
} REPARSE_DATA_BUFFER;
#define SECS_BETWEEN_EPOCHS (__int64)11644473600
#define SECS_TO_100NS (__int64)10000000
static inline time_t FileTimeToUnixTime(const FILETIME FileTime)
@@ -232,9 +271,6 @@ CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
buf->st_atime = FileTimeToUnixTime(data.ftLastAccessTime);
buf->st_ctime = FileTimeToUnixTime(data.ftCreationTime);
buf->st_mtime = FileTimeToUnixTime(data.ftLastWriteTime);
if (buf->st_mtime != buf->st_atime) {
buf->st_atime = buf->st_mtime;
}
return 0;
}
/* }}} */
@@ -262,19 +298,19 @@ static int php_is_file_ok(const cwd_state *state) /* {{{ */
}
/* }}} */
static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC) /* {{{ */
static void cwd_globals_ctor(virtual_cwd_globals *cwd_g TSRMLS_DC) /* {{{ */
{
CWD_STATE_COPY(&cwd_globals->cwd, &main_cwd_state);
cwd_globals->realpath_cache_size = 0;
cwd_globals->realpath_cache_size_limit = REALPATH_CACHE_SIZE;
cwd_globals->realpath_cache_ttl = REALPATH_CACHE_TTL;
memset(cwd_globals->realpath_cache, 0, sizeof(cwd_globals->realpath_cache));
CWD_STATE_COPY(&cwd_g->cwd, &main_cwd_state);
cwd_g->realpath_cache_size = 0;
cwd_g->realpath_cache_size_limit = REALPATH_CACHE_SIZE;
cwd_g->realpath_cache_ttl = REALPATH_CACHE_TTL;
memset(cwd_g->realpath_cache, 0, sizeof(cwd_g->realpath_cache));
}
/* }}} */
static void cwd_globals_dtor(virtual_cwd_globals *cwd_globals TSRMLS_DC) /* {{{ */
static void cwd_globals_dtor(virtual_cwd_globals *cwd_g TSRMLS_DC) /* {{{ */
{
CWD_STATE_FREE(&cwd_globals->cwd);
CWD_STATE_FREE(&cwd_g->cwd);
realpath_cache_clean(TSRMLS_C);
}
/* }}} */
@@ -392,6 +428,27 @@ CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC) /* {{{ */
}
/* }}} */
#ifdef PHP_WIN32
static inline unsigned long realpath_cache_key(const char *path, int path_len TSRMLS_DC) /* {{{ */
{
register unsigned long h;
char *bucket_key_start = tsrm_win32_get_path_sid_key(path TSRMLS_CC);
char *bucket_key = (char *)bucket_key_start;
const char *e = bucket_key + strlen(bucket_key);
if (!bucket_key) {
return 0;
}
for (h = 2166136261U; bucket_key < e;) {
h *= 16777619;
h ^= *bucket_key++;
}
HeapFree(GetProcessHeap(), 0, (LPVOID)bucket_key_start);
return h;
}
/* }}} */
#else
static inline unsigned long realpath_cache_key(const char *path, int path_len) /* {{{ */
{
register unsigned long h;
@@ -405,6 +462,7 @@ static inline unsigned long realpath_cache_key(const char *path, int path_len) /
return h;
}
/* }}} */
#endif /* defined(PHP_WIN32) */
CWD_API void realpath_cache_clean(TSRMLS_D) /* {{{ */
{
@@ -425,7 +483,11 @@ CWD_API void realpath_cache_clean(TSRMLS_D) /* {{{ */
CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{ */
{
#ifdef PHP_WIN32
unsigned long key = realpath_cache_key(path, path_len TSRMLS_CC);
#else
unsigned long key = realpath_cache_key(path, path_len);
#endif
unsigned long n = key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n];
@@ -458,8 +520,12 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
if (CWDG(realpath_cache_size) + size <= CWDG(realpath_cache_size_limit)) {
realpath_cache_bucket *bucket = malloc(size);
unsigned long n;
#ifdef PHP_WIN32
bucket->key = realpath_cache_key(path, path_len TSRMLS_CC);
#else
bucket->key = realpath_cache_key(path, path_len);
#endif
bucket->path = (char*)bucket + sizeof(realpath_cache_bucket);
memcpy(bucket->path, path, path_len+1);
bucket->path_len = path_len;
@@ -471,6 +537,12 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
}
bucket->realpath_len = realpath_len;
bucket->is_dir = is_dir;
#ifdef PHP_WIN32
bucket->is_rvalid = 0;
bucket->is_readable = 0;
bucket->is_wvalid = 0;
bucket->is_writable = 0;
#endif
bucket->expires = t + CWDG(realpath_cache_ttl);
n = bucket->key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
bucket->next = CWDG(realpath_cache)[n];
@@ -482,7 +554,12 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
static inline realpath_cache_bucket* realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC) /* {{{ */
{
#ifdef PHP_WIN32
unsigned long key = realpath_cache_key(path, path_len TSRMLS_CC);
#else
unsigned long key = realpath_cache_key(path, path_len);
#endif
unsigned long n = key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n];
@@ -503,6 +580,29 @@ static inline realpath_cache_bucket* realpath_cache_find(const char *path, int p
}
/* }}} */
CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC) /* {{{ */
{
return realpath_cache_find(path, path_len, t TSRMLS_CC);
}
/* }}} */
CWD_API int realpath_cache_size(TSRMLS_D)
{
return CWDG(realpath_cache_size);
}
CWD_API int realpath_cache_max_buckets(TSRMLS_D)
{
return (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
}
CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D)
{
return CWDG(realpath_cache);
}
#undef LINK_MAX
#define LINK_MAX 32
static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, int use_realpath, int is_dir, int *link_is_dir TSRMLS_DC) /* {{{ */
@@ -512,12 +612,13 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
#ifdef TSRM_WIN32
WIN32_FIND_DATA data;
HANDLE hFind;
TSRM_ALLOCA_FLAG(use_heap_large)
#else
struct stat st;
#endif
realpath_cache_bucket *bucket;
char *tmp;
TSRM_ALLOCA_FLAG(use_heap);
TSRM_ALLOCA_FLAG(use_heap)
while (1) {
if (len <= start) {
@@ -605,16 +706,182 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
/* continue resolution anyway but don't save result in the cache */
save = 0;
}
if (save) {
directory = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0;
if (is_dir && !directory) {
/* not a directory */
FindClose(hFind);
return -1;
}
FindClose(hFind);
}
tmp = tsrm_do_alloca(len+1, use_heap);
memcpy(tmp, path, len+1);
if(save &&
!(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') &&
(data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) {
/* File is a reparse point. Get the target */
HANDLE hLink = NULL;
REPARSE_DATA_BUFFER * pbuffer;
unsigned int retlength = 0;
int bufindex = 0, isabsolute = 0;
wchar_t * reparsetarget;
BOOL isVolume = FALSE;
char printname[MAX_PATH];
char substitutename[MAX_PATH];
int printname_len, substitutename_len;
int substitutename_off = 0;
if(++(*ll) > LINK_MAX) {
return -1;
}
hLink = CreateFile(path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS, NULL);
if(hLink == INVALID_HANDLE_VALUE) {
return -1;
}
pbuffer = (REPARSE_DATA_BUFFER *)tsrm_do_alloca(MAXIMUM_REPARSE_DATA_BUFFER_SIZE, use_heap_large);
if(!DeviceIoControl(hLink, FSCTL_GET_REPARSE_POINT, NULL, 0, pbuffer, MAXIMUM_REPARSE_DATA_BUFFER_SIZE, &retlength, NULL)) {
tsrm_free_alloca(pbuffer, use_heap_large);
CloseHandle(hLink);
return -1;
}
CloseHandle(hLink);
if(pbuffer->ReparseTag == IO_REPARSE_TAG_SYMLINK) {
reparsetarget = pbuffer->SymbolicLinkReparseBuffer.ReparseTarget;
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
isabsolute = (pbuffer->SymbolicLinkReparseBuffer.Flags == 0) ? 1 : 0;
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR),
printname_len + 1,
printname, MAX_PATH, NULL, NULL
)) {
tsrm_free_alloca(pbuffer, use_heap_large);
return -1;
};
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
printname[printname_len] = 0;
substitutename_len = pbuffer->MountPointReparseBuffer.SubstituteNameLength / sizeof(WCHAR);
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
substitutename_len + 1,
substitutename, MAX_PATH, NULL, NULL
)) {
tsrm_free_alloca(pbuffer, use_heap_large);
return -1;
};
substitutename[substitutename_len] = 0;
}
else if(pbuffer->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT) {
isabsolute = 1;
reparsetarget = pbuffer->MountPointReparseBuffer.ReparseTarget;
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR),
printname_len + 1,
printname, MAX_PATH, NULL, NULL
)) {
tsrm_free_alloca(pbuffer, use_heap_large);
return -1;
};
printname[pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR)] = 0;
substitutename_len = pbuffer->MountPointReparseBuffer.SubstituteNameLength / sizeof(WCHAR);
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
substitutename_len + 1,
substitutename, MAX_PATH, NULL, NULL
)) {
tsrm_free_alloca(pbuffer, use_heap_large);
return -1;
};
substitutename[substitutename_len] = 0;
} else {
tsrm_free_alloca(pbuffer, use_heap_large);
return -1;
}
if(isabsolute && substitutename_len > 4) {
/* Do not resolve volumes (for now). A mounted point can
target a volume without a drive, it is not certain that
all IO functions we use in php and its deps support
path with volume GUID instead of the DOS way, like:
d:\test\mnt\foo
\\?\Volume{62d1c3f8-83b9-11de-b108-806e6f6e6963}\foo
*/
if (strncmp(substitutename, "\\??\\Volume{",11) == 0
|| strncmp(substitutename, "\\\\?\\Volume{",11) == 0) {
isVolume = TRUE;
substitutename_off = 0;
} else
/* do not use the \??\ and \\?\ prefix*/
if (strncmp(substitutename, "\\??\\", 4) == 0
|| strncmp(substitutename, "\\\\?\\", 4) == 0) {
substitutename_off = 4;
}
}
if (!isVolume) {
char * tmp = substitutename + substitutename_off;
for(bufindex = 0; bufindex < (substitutename_len - substitutename_off); bufindex++) {
*(path + bufindex) = *(tmp + bufindex);
}
*(path + bufindex) = 0;
j = bufindex;
} else {
j = len;
}
#if VIRTUAL_CWD_DEBUG
fprintf(stderr, "reparse: print: %s ", printname);
fprintf(stderr, "sub: %s ", substitutename);
fprintf(stderr, "resolved: %s ", path);
#endif
tsrm_free_alloca(pbuffer, use_heap_large);
if(isabsolute == 1) {
if (!((j == 3) && (path[1] == ':') && (path[2] == '\\'))) {
/* use_realpath is 0 in the call below coz path is absolute*/
j = tsrm_realpath_r(path, 0, j, ll, t, 0, is_dir, &directory TSRMLS_CC);
if(j < 0) {
tsrm_free_alloca(tmp, use_heap);
return -1;
}
}
}
else {
if(i + j >= MAXPATHLEN - 1) {
tsrm_free_alloca(tmp, use_heap);
return -1;
}
memmove(path+i, path, j+1);
memcpy(path, tmp, i-1);
path[i-1] = DEFAULT_SLASH;
j = tsrm_realpath_r(path, start, i + j, ll, t, use_realpath, is_dir, &directory TSRMLS_CC);
if(j < 0) {
tsrm_free_alloca(tmp, use_heap);
return -1;
}
}
directory = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
if(link_is_dir) {
*link_is_dir = directory;
}
}
else {
if (save) {
directory = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0;
if (is_dir && !directory) {
/* not a directory */
return -1;
}
}
#elif defined(NETWARE)
save = 0;
tmp = tsrm_do_alloca(len+1, use_heap);
@@ -686,19 +953,18 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
#ifdef TSRM_WIN32
if (j < 0 || j + len - i >= MAXPATHLEN-1) {
tsrm_free_alloca(tmp, use_heap);
if (save) FindClose(hFind);
return -1;
}
if (save) {
i = strlen(data.cFileName);
memcpy(path+j, data.cFileName, i+1);
j += i;
FindClose(hFind);
} else {
/* use the original file or directory name as it wasn't found */
memcpy(path+j, tmp+i, len-i+1);
j += (len-i);
}
}
#else
if (j < 0 || j + len - i >= MAXPATHLEN-1) {
tsrm_free_alloca(tmp, use_heap);
@@ -731,9 +997,19 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
time_t t;
int ret;
int add_slash;
void *tmp;
TSRMLS_FETCH();
if (path_length == 0 || path_length >= MAXPATHLEN-1) {
#ifdef TSRM_WIN32
# if _MSC_VER < 1300
errno = EINVAL;
# else
_set_errno(EINVAL);
# endif
#else
errno = EINVAL;
#endif
return 1;
}
@@ -754,7 +1030,27 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#ifdef TSRM_WIN32
if (IS_SLASH(path[0])) {
state_cwd_length = 2;
if (state->cwd[1] == ':') {
/* Copy only the drive name */
state_cwd_length = 2;
} else if (IS_UNC_PATH(state->cwd, state->cwd_length)) {
/* Copy only the share name */
state_cwd_length = 2;
while (IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
while (state->cwd[state_cwd_length] &&
!IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
while (IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
while (state->cwd[state_cwd_length] &&
!IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
}
}
#endif
if (path_length + state_cwd_length + 1 >= MAXPATHLEN-1) {
@@ -766,7 +1062,16 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
path_length += state_cwd_length + 1;
}
} else {
memcpy(resolved_path , path, path_length + 1);
#ifdef TSRM_WIN32
if (path_length > 2 && path[1] == ':' && !IS_SLASH(path[2])) {
resolved_path[0] = path[0];
resolved_path[1] = ':';
resolved_path[2] = DEFAULT_SLASH;
memcpy(resolved_path + 3, path + 2, path_length - 1);
path_length++;
} else
#endif
memcpy(resolved_path, path, path_length + 1);
}
#ifdef TSRM_WIN32
@@ -818,12 +1123,12 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
}
#endif
add_slash = (use_realpath != CWD_REALPATH) && path_length > 0 && IS_SLASH(resolved_path[path_length-1]);
t = CWDG(realpath_cache_ttl) ? 0 : -1;
path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL TSRMLS_CC);
if (path_length < 0) {
errno = ENOENT;
return 1;
}
@@ -846,7 +1151,16 @@ verify:
CWD_STATE_COPY(&old_state, state);
state->cwd_length = path_length;
state->cwd = (char *) realloc(state->cwd, state->cwd_length+1);
tmp = realloc(state->cwd, state->cwd_length+1);
if (tmp == NULL) {
#if VIRTUAL_CWD_DEBUG
fprintf (stderr, "Out of memory\n");
#endif
return 1;
}
state->cwd = (char *) tmp;
memcpy(state->cwd, resolved_path, state->cwd_length+1);
if (verify_path(state)) {
CWD_STATE_FREE(state);
@@ -858,7 +1172,15 @@ verify:
}
} else {
state->cwd_length = path_length;
state->cwd = (char *) realloc(state->cwd, state->cwd_length+1);
tmp = realloc(state->cwd, state->cwd_length+1);
if (tmp == NULL) {
#if VIRTUAL_CWD_DEBUG
fprintf (stderr, "Out of memory\n");
#endif
return 1;
}
state->cwd = (char *) tmp;
memcpy(state->cwd, resolved_path, state->cwd_length+1);
ret = 0;
}
@@ -931,7 +1253,7 @@ CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC) /* {
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
}
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)==0) {
int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length;
@@ -1027,14 +1349,19 @@ static void UnixTimeToFileTime(time_t t, LPFILETIME pft) /* {{{ */
}
/* }}} */
static int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */
TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */
{
FILETIME mtime, atime;
BOOL f;
HANDLE hFile;
hFile = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
hFile = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_WRITE|FILE_SHARE_READ, NULL,
OPEN_ALWAYS, FILE_FLAG_BACKUP_SEMANTICS, NULL);
/* OPEN_ALWAYS mode sets the last error to ERROR_ALREADY_EXISTS but
the CreateFile operation succeeds */
if (GetLastError() == ERROR_ALREADY_EXISTS) {
SetLastError(0);
}
if ( hFile == INVALID_HANDLE_VALUE ) {
return -1;
@@ -1198,7 +1525,8 @@ CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC) /* {{{ */
/* rename on windows will fail if newname already exists.
MoveFileEx has to be used */
#ifdef TSRM_WIN32
retval = (MoveFileEx(oldname, newname, MOVEFILE_REPLACE_EXISTING) == 0) ? -1 : 0;
/* MoveFileEx returns 0 on failure, other way 'round for this function */
retval = (MoveFileEx(oldname, newname, MOVEFILE_REPLACE_EXISTING|MOVEFILE_COPY_ALLOWED) == 0) ? -1 : 0;
#else
retval = rename(oldname, newname);
#endif
+18 -3
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -210,6 +210,12 @@ typedef struct _realpath_cache_bucket {
int realpath_len;
int is_dir;
time_t expires;
#ifdef PHP_WIN32
unsigned char is_rvalid;
unsigned char is_readable;
unsigned char is_wvalid;
unsigned char is_writable;
#endif
struct _realpath_cache_bucket *next;
} realpath_cache_bucket;
@@ -231,6 +237,10 @@ extern virtual_cwd_globals cwd_globals;
CWD_API void realpath_cache_clean(TSRMLS_D);
CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC);
CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC);
CWD_API int realpath_cache_size(TSRMLS_D);
CWD_API int realpath_cache_max_buckets(TSRMLS_D);
CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
/* The actual macros to be used in programs using TSRM
* If the program defines VIRTUAL_DIR it will use the
@@ -281,7 +291,7 @@ CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC);
/* rename on windows will fail if newname already exists.
MoveFileEx has to be used */
#if defined(TSRM_WIN32)
# define VCWD_RENAME(oldname, newname) (MoveFileEx(oldname, newname, MOVEFILE_REPLACE_EXISTING) == 0 ? -1 : 0)
# define VCWD_RENAME(oldname, newname) (MoveFileEx(oldname, newname, MOVEFILE_REPLACE_EXISTING|MOVEFILE_COPY_ALLOWED) == 0 ? -1 : 0)
#else
# define VCWD_RENAME(oldname, newname) rename(oldname, newname)
#endif
@@ -304,8 +314,13 @@ CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC);
#define VCWD_REALPATH(path, real_path) tsrm_realpath(path, real_path TSRMLS_CC)
#if HAVE_UTIME
#define VCWD_UTIME(path, time) utime(path, time)
# ifdef TSRM_WIN32
# define VCWD_UTIME(path, time) win32_utime(path, time)
# else
# define VCWD_UTIME(path, time) utime(path, time)
# endif
#endif
#define VCWD_CHMOD(path, mode) chmod(path, mode)
#if !defined(TSRM_WIN32) && !defined(NETWARE)
#define VCWD_CHOWN(path, owner, group) chown(path, owner, group)
+344 -23
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -23,14 +23,16 @@
#include <io.h>
#include <process.h>
#include <time.h>
#include <errno.h>
#define TSRM_INCLUDE_FULL_WINDOWS_HEADERS
#include "SAPI.h"
#include "TSRM.h"
#ifdef TSRM_WIN32
#include <Sddl.h>
#include "tsrm_win32.h"
#include "tsrm_virtual_cwd.h"
#ifdef ZTS
static ts_rsrc_id win32_globals_id;
@@ -45,6 +47,16 @@ static void tsrm_win32_ctor(tsrm_win32_globals *globals TSRMLS_DC)
globals->process_size = 0;
globals->shm_size = 0;
globals->comspec = _strdup((GetVersion()<0x80000000)?"cmd.exe":"command.com");
/* Set it to INVALID_HANDLE_VALUE
* It will be initialized correctly in tsrm_win32_access or set to
* NULL if no impersonation has been done.
* the impersonated token can't be set here as the impersonation
* will happen later, in fcgi_accept_request (or whatever is the
* SAPI being used).
*/
globals->impersonation_token = INVALID_HANDLE_VALUE;
globals->impersonation_token_sid = NULL;
}
static void tsrm_win32_dtor(tsrm_win32_globals *globals TSRMLS_DC)
@@ -66,6 +78,13 @@ static void tsrm_win32_dtor(tsrm_win32_globals *globals TSRMLS_DC)
}
free(globals->comspec);
if (globals->impersonation_token && globals->impersonation_token != INVALID_HANDLE_VALUE ) {
CloseHandle(globals->impersonation_token);
}
if (globals->impersonation_token_sid) {
free(globals->impersonation_token_sid);
}
}
TSRM_API void tsrm_win32_startup(void)
@@ -84,23 +103,279 @@ TSRM_API void tsrm_win32_shutdown(void)
#endif
}
char * tsrm_win32_get_path_sid_key(const char *pathname TSRMLS_DC)
{
PSID pSid = TWG(impersonation_token_sid);
DWORD sid_len = pSid ? GetLengthSid(pSid) : 0;
TCHAR *ptcSid = NULL;
char *bucket_key = NULL;
if (!pSid) {
bucket_key = (char *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, strlen(pathname) + 1);
if (!bucket_key) {
return NULL;
}
memcpy(bucket_key, pathname, strlen(pathname));
return bucket_key;
}
if (!ConvertSidToStringSid(pSid, &ptcSid)) {
return NULL;
}
bucket_key = (char *)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, strlen(pathname) + strlen(ptcSid) + 1);
if (!bucket_key) {
LocalFree(ptcSid);
return NULL;
}
memcpy(bucket_key, ptcSid, strlen(ptcSid));
memcpy(bucket_key + strlen(ptcSid), pathname, strlen(pathname) + 1);
LocalFree(ptcSid);
return bucket_key;
}
PSID tsrm_win32_get_token_sid(HANDLE hToken)
{
BOOL bSuccess = FALSE;
DWORD dwLength = 0;
PTOKEN_USER pTokenUser = NULL;
PSID sid;
PSID *ppsid = &sid;
DWORD sid_len;
PSID pResultSid = NULL;
/* Get the actual size of the TokenUser structure */
if (!GetTokenInformation(
hToken, TokenUser, (LPVOID) pTokenUser, 0, &dwLength)) {
if (GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
goto Finished;
}
pTokenUser = (PTOKEN_USER)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, dwLength);
if (pTokenUser == NULL) {
goto Finished;
}
}
/* and fetch it now */
if (!GetTokenInformation(
hToken, TokenUser, (LPVOID) pTokenUser, dwLength, &dwLength)) {
goto Finished;
}
sid_len = GetLengthSid(pTokenUser->User.Sid);
/* ConvertSidToStringSid(pTokenUser->User.Sid, &ptcSidOwner); */
pResultSid = malloc(sid_len);
if (!pResultSid) {
goto Finished;
}
if (!CopySid(sid_len, pResultSid, pTokenUser->User.Sid)) {
goto Finished;
}
HeapFree(GetProcessHeap(), 0, (LPVOID)pTokenUser);
return pResultSid;
Finished:
if (pResultSid) {
free(pResultSid);
}
/* Free the buffer for the token groups. */
if (pTokenUser != NULL) {
HeapFree(GetProcessHeap(), 0, (LPVOID)pTokenUser);
}
return NULL;
}
TSRM_API int tsrm_win32_access(const char *pathname, int mode)
{
time_t t;
HANDLE thread_token;
PSID token_sid;
SECURITY_INFORMATION sec_info = OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION;
GENERIC_MAPPING gen_map = { FILE_GENERIC_READ, FILE_GENERIC_WRITE, FILE_GENERIC_EXECUTE, FILE_ALL_ACCESS };
DWORD priv_set_length = sizeof(PRIVILEGE_SET);
PRIVILEGE_SET privilege_set = {0};
DWORD sec_desc_length = 0, desired_access = 0, granted_access = 0;
BYTE * psec_desc = NULL;
BOOL fAccess = FALSE;
BOOL bucket_key_alloc = FALSE;
realpath_cache_bucket * bucket = NULL;
char * real_path = NULL;
TSRMLS_FETCH();
if (mode == 1 /*X_OK*/) {
#if 1
/* This code is not supported by Windows 98,
* but we don't support it anymore */
DWORD type;
return GetBinaryType(pathname, &type)?0:-1;
#else
SHFILEINFO sfi;
return access(pathname, 0) == 0 &&
SHGetFileInfo(pathname, 0, &sfi, sizeof(SHFILEINFO), SHGFI_EXETYPE) != 0 ? 0 : -1;
#endif
return GetBinaryType(pathname, &type) ? 0 : -1;
} else {
return access(pathname, mode);
if(!IS_ABSOLUTE_PATH(pathname, strlen(pathname)+1)) {
real_path = (char *)malloc(MAX_PATH);
if(tsrm_realpath(pathname, real_path TSRMLS_CC) == NULL) {
goto Finished;
}
pathname = real_path;
}
if(access(pathname, mode)) {
free(real_path);
return errno;
}
/* If only existence check is made, return now */
if (mode == 0) {
free(real_path);
return 0;
}
/* Only in NTS when impersonate==1 (aka FastCGI) */
/*
AccessCheck() requires an impersonation token. We first get a primary
token and then create a duplicate impersonation token. The
impersonation token is not actually assigned to the thread, but is
used in the call to AccessCheck. Thus, this function itself never
impersonates, but does use the identity of the thread. If the thread
was impersonating already, this function uses that impersonation context.
*/
if(!OpenThreadToken(GetCurrentThread(), TOKEN_ALL_ACCESS, TRUE, &thread_token)) {
DWORD err = GetLastError();
if (GetLastError() == ERROR_NO_TOKEN) {
if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &thread_token)) {
TWG(impersonation_token) = NULL;
goto Finished;
}
}
}
/* token_sid will be freed in tsrmwin32_dtor */
token_sid = tsrm_win32_get_token_sid(thread_token);
if (!token_sid) {
if (TWG(impersonation_token_sid)) {
free(TWG(impersonation_token_sid));
}
TWG(impersonation_token_sid) = NULL;
goto Finished;
}
/* Different identity, we need a new impersontated token as well */
if (!TWG(impersonation_token_sid) || !EqualSid(token_sid, TWG(impersonation_token_sid))) {
if (TWG(impersonation_token_sid)) {
free(TWG(impersonation_token_sid));
}
TWG(impersonation_token_sid) = token_sid;
/* Duplicate the token as impersonated token */
if (!DuplicateToken(thread_token, SecurityImpersonation, &TWG(impersonation_token))) {
goto Finished;
}
} else {
/* we already have it, free it then */
free(token_sid);
}
if (CWDG(realpath_cache_size_limit)) {
t = time(0);
bucket = realpath_cache_lookup(pathname, strlen(pathname), t TSRMLS_CC);
if(bucket == NULL && real_path == NULL) {
/* We used the pathname directly. Call tsrm_realpath */
/* so that entry is created in realpath cache */
real_path = (char *)malloc(MAX_PATH);
if(tsrm_realpath(pathname, real_path TSRMLS_CC) != NULL) {
pathname = real_path;
bucket = realpath_cache_lookup(pathname, strlen(pathname), t TSRMLS_CC);
}
}
}
/* Do a full access check because access() will only check read-only attribute */
if(mode == 0 || mode > 6) {
if(bucket != NULL && bucket->is_rvalid) {
fAccess = bucket->is_readable;
goto Finished;
}
desired_access = FILE_GENERIC_READ;
} else if(mode <= 2) {
if(bucket != NULL && bucket->is_wvalid) {
fAccess = bucket->is_writable;
goto Finished;
}
desired_access = FILE_GENERIC_WRITE;
} else if(mode <= 4) {
if(bucket != NULL && bucket->is_rvalid) {
fAccess = bucket->is_readable;
goto Finished;
}
desired_access = FILE_GENERIC_READ|FILE_FLAG_BACKUP_SEMANTICS;
} else { // if(mode <= 6)
if(bucket != NULL && bucket->is_rvalid && bucket->is_wvalid) {
fAccess = bucket->is_readable & bucket->is_writable;
goto Finished;
}
desired_access = FILE_GENERIC_READ | FILE_GENERIC_WRITE;
}
if(TWG(impersonation_token) == NULL) {
goto Finished;
}
/* Get size of security buffer. Call is expected to fail */
if(GetFileSecurity(pathname, sec_info, NULL, 0, &sec_desc_length)) {
goto Finished;
}
psec_desc = (BYTE *)malloc(sec_desc_length);
if(psec_desc == NULL ||
!GetFileSecurity(pathname, sec_info, (PSECURITY_DESCRIPTOR)psec_desc, sec_desc_length, &sec_desc_length)) {
goto Finished;
}
MapGenericMask(&desired_access, &gen_map);
if(!AccessCheck((PSECURITY_DESCRIPTOR)psec_desc, TWG(impersonation_token), desired_access, &gen_map, &privilege_set, &priv_set_length, &granted_access, &fAccess)) {
goto Finished_Impersonate;
}
/* Keep the result in realpath_cache */
if(bucket != NULL) {
if(desired_access == (FILE_GENERIC_READ|FILE_FLAG_BACKUP_SEMANTICS)) {
bucket->is_rvalid = 1;
bucket->is_readable = fAccess;
}
else if(desired_access == FILE_GENERIC_WRITE) {
bucket->is_wvalid = 1;
bucket->is_writable = fAccess;
} else if (desired_access == (FILE_GENERIC_READ | FILE_GENERIC_WRITE)) {
bucket->is_rvalid = 1;
bucket->is_readable = fAccess;
bucket->is_wvalid = 1;
bucket->is_writable = fAccess;
}
}
Finished_Impersonate:
if(psec_desc != NULL) {
free(psec_desc);
psec_desc = NULL;
}
Finished:
if(real_path != NULL) {
free(real_path);
real_path = NULL;
}
if(fAccess == FALSE) {
errno = EACCES;
return errno;
} else {
return 0;
}
}
}
@@ -179,20 +454,45 @@ TSRM_API FILE *popen(const char *command, const char *type)
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env)
{
FILE *stream = NULL;
int fno, str_len = strlen(type), read, mode;
int fno, type_len = strlen(type), read, mode;
STARTUPINFO startup;
PROCESS_INFORMATION process;
SECURITY_ATTRIBUTES security;
HANDLE in, out;
char *cmd;
DWORD dwCreateFlags = 0;
BOOL res;
process_pair *proc;
char *cmd;
int i;
char *ptype = (char *)type;
HANDLE thread_token = NULL;
HANDLE token_user = NULL;
BOOL asuser = TRUE;
TSRMLS_FETCH();
if (!type) {
return NULL;
}
/*The following two checks can be removed once we drop XP support */
type_len = strlen(type);
if (type_len <1 || type_len > 2) {
return NULL;
}
for (i=0; i < type_len; i++) {
if (!(*ptype == 'r' || *ptype == 'w' || *ptype == 'b' || *ptype == 't')) {
return NULL;
}
ptype++;
}
security.nLength = sizeof(SECURITY_ATTRIBUTES);
security.bInheritHandle = TRUE;
security.lpSecurityDescriptor = NULL;
if (!str_len || !CreatePipe(&in, &out, &security, 2048L)) {
if (!type_len || !CreatePipe(&in, &out, &security, 2048L)) {
return NULL;
}
@@ -204,8 +504,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
startup.hStdError = GetStdHandle(STD_ERROR_HANDLE);
read = (type[0] == 'r') ? TRUE : FALSE;
mode = ((str_len == 2) && (type[1] == 'b')) ? O_BINARY : O_TEXT;
mode = ((type_len == 2) && (type[1] == 'b')) ? O_BINARY : O_TEXT;
if (read) {
in = dupHandle(in, FALSE);
@@ -217,13 +516,35 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
startup.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
}
dwCreateFlags = NORMAL_PRIORITY_CLASS;
if (strcmp(sapi_module.name, "cli") != 0) {
dwCreateFlags |= CREATE_NO_WINDOW;
}
/* Get a token with the impersonated user. */
if(OpenThreadToken(GetCurrentThread(), TOKEN_ALL_ACCESS, TRUE, &thread_token)) {
DuplicateTokenEx(thread_token, MAXIMUM_ALLOWED, &security, SecurityImpersonation, TokenPrimary, &token_user);
} else {
DWORD err = GetLastError();
if (err == ERROR_NO_TOKEN) {
asuser = FALSE;
}
}
cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2);
sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command);
if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env, cwd, &startup, &process)) {
return NULL;
if (asuser) {
res = CreateProcessAsUser(token_user, NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process);
CloseHandle(token_user);
} else {
res = CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process);
}
free(cmd);
if (!res) {
return NULL;
}
CloseHandle(process.hThread);
proc = process_get(NULL TSRMLS_CC);
@@ -252,7 +573,7 @@ TSRM_API int pclose(FILE *stream)
}
fflush(process->stream);
fclose(process->stream);
fclose(process->stream);
WaitForSingleObject(process->prochnd, INFINITE);
GetExitCodeProcess(process->prochnd, &termstat);
+5 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2008 The PHP Group |
| Copyright (c) 1997-2010 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -63,6 +63,8 @@ typedef struct {
int process_size;
int shm_size;
char *comspec;
HANDLE impersonation_token;
PSID impersonation_token_sid;
} tsrm_win32_globals;
#ifdef ZTS
@@ -88,6 +90,7 @@ typedef struct {
#define SHM_RND FILE_MAP_WRITE
#define SHM_REMAP FILE_MAP_COPY
char * tsrm_win32_get_path_sid_key(const char *pathname TSRMLS_DC);
TSRM_API void tsrm_win32_startup(void);
TSRM_API void tsrm_win32_shutdown(void);
@@ -96,6 +99,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
TSRM_API FILE *popen(const char *command, const char *type);
TSRM_API int pclose(FILE *stream);
TSRM_API int tsrm_win32_access(const char *pathname, int mode);
TSRM_API int win32_utime(const char *filename, struct utimbuf *buf);
TSRM_API int shmget(int key, int size, int flags);
TSRM_API void *shmat(int key, const void *shmaddr, int flags);
+645 -525
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -17,7 +17,7 @@ libZend_la_SOURCES=\
zend_objects_API.c zend_ts_hash.c zend_stream.c \
zend_default_classes.c \
zend_iterators.c zend_interfaces.c zend_exceptions.c \
zend_strtod.c zend_closures.c
zend_strtod.c zend_closures.c zend_float.c
libZend_la_LDFLAGS =
libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
+4
View File
@@ -155,6 +155,10 @@ SOURCE=.\zend_extensions.c
# End Source File
# Begin Source File
SOURCE=.\zend_float.c
# End Source File
# Begin Source File
SOURCE=.\zend_hash.c
# End Source File
# Begin Source File
+34 -12
View File
@@ -62,18 +62,6 @@ unix.h \
stdlib.h \
dlfcn.h)
dnl Don't use mach-o/dyld.h on Darwin 8+, dl* is recommended by Apple from there on
dnl See http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/loading_code.html
case $host_alias in
*darwin[[89]]*)
;;
*)
AC_CHECK_HEADERS([ \
mach-o/dyld.h
],[],[][])
;;
esac
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
@@ -115,6 +103,40 @@ AC_ZEND_BROKEN_SPRINTF
AC_CHECK_FUNCS(finite isfinite isinf isnan)
ZEND_FP_EXCEPT
ZEND_CHECK_FLOAT_PRECISION
dnl test whether double cast to long preserves least significant bits
AC_MSG_CHECKING(whether double cast to long preserves least significant bits)
AC_TRY_RUN([
#include <limits.h>
int main()
{
if (sizeof(long) == 4) {
double d = (double) LONG_MIN * LONG_MIN + 2e9;
if ((long) d == 2e9 && (long) -d == -2e9) {
exit(0);
}
} else if (sizeof(long) == 8) {
double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
exit(0);
}
}
exit(1);
}
], [
AC_DEFINE([ZEND_DVAL_TO_LVAL_CAST_OK], 1, [Define if double cast to long preserves least significant bits])
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
], [
AC_MSG_RESULT(no)
])
])
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2008 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+115 -1
View File
@@ -4,7 +4,7 @@ dnl This file contains local autoconf functions.
AC_DEFUN([LIBZEND_BISON_CHECK],[
# we only support certain bison versions
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3"
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2"
# for standalone build of Zend Engine
test -z "$SED" && SED=sed
@@ -105,3 +105,117 @@ int main(void)
AC_DEFUN([AM_SET_LIBTOOL_VARIABLE],[
LIBTOOL='$(SHELL) $(top_builddir)/libtool $1'
])
dnl x87 floating point internal precision control checks
dnl See: http://wiki.php.net/rfc/rounding
AC_DEFUN([ZEND_CHECK_FLOAT_PRECISION],[
AC_MSG_CHECKING([for usable _FPU_SETCW])
AC_TRY_LINK([
#include <fpu_control.h>
],[
fpu_control_t fpu_oldcw, fpu_cw;
volatile double result;
double a = 2877.0;
volatile double b = 1000000.0;
_FPU_GETCW(fpu_oldcw);
fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE;
_FPU_SETCW(fpu_cw);
result = a / b;
_FPU_SETCW(fpu_oldcw);
], [ac_cfp_have__fpu_setcw=yes], [ac_cfp_have__fpu_setcw=no])
if test "$ac_cfp_have__fpu_setcw" = "yes" ; then
AC_DEFINE(HAVE__FPU_SETCW, 1, [whether _FPU_SETCW is present and usable])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([for usable fpsetprec])
AC_TRY_LINK([
#include <machine/ieeefp.h>
],[
fp_prec_t fpu_oldprec;
volatile double result;
double a = 2877.0;
volatile double b = 1000000.0;
fpu_oldprec = fpgetprec();
fpsetprec(FP_PD);
result = a / b;
fpsetprec(fpu_oldprec);
], [ac_cfp_have_fpsetprec=yes], [ac_cfp_have_fpsetprec=no])
if test "$ac_cfp_have_fpsetprec" = "yes" ; then
AC_DEFINE(HAVE_FPSETPREC, 1, [whether fpsetprec is present and usable])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([for usable _controlfp])
AC_TRY_LINK([
#include <float.h>
],[
unsigned int fpu_oldcw;
volatile double result;
double a = 2877.0;
volatile double b = 1000000.0;
fpu_oldcw = _controlfp(0, 0);
_controlfp(_PC_53, _MCW_PC);
result = a / b;
_controlfp(fpu_oldcw, _MCW_PC);
], [ac_cfp_have__controlfp=yes], [ac_cfp_have__controlfp=no])
if test "$ac_cfp_have__controlfp" = "yes" ; then
AC_DEFINE(HAVE__CONTROLFP, 1, [whether _controlfp is present usable])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([for usable _controlfp_s])
AC_TRY_LINK([
#include <float.h>
],[
unsigned int fpu_oldcw, fpu_cw;
volatile double result;
double a = 2877.0;
volatile double b = 1000000.0;
_controlfp_s(&fpu_cw, 0, 0);
fpu_oldcw = fpu_cw;
_controlfp_s(&fpu_cw, _PC_53, _MCW_PC);
result = a / b;
_controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC);
], [ac_cfp_have__controlfp_s=yes], [ac_cfp_have__controlfp_s=no])
if test "$ac_cfp_have__controlfp_s" = "yes" ; then
AC_DEFINE(HAVE__CONTROLFP_S, 1, [whether _controlfp_s is present and usable])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([whether FPU control word can be manipulated by inline assembler])
AC_TRY_LINK([
/* nothing */
],[
unsigned int oldcw, cw;
volatile double result;
double a = 2877.0;
volatile double b = 1000000.0;
__asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw));
cw = (oldcw & ~0x0 & ~0x300) | 0x200;
__asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
result = a / b;
__asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw));
], [ac_cfp_have_fpu_inline_asm_x86=yes], [ac_cfp_have_fpu_inline_asm_x86=no])
if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then
AC_DEFINE(HAVE_FPU_INLINE_ASM_X86, 1, [whether FPU control word can be manipulated by inline assembler])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
])
+1
View File
@@ -3,6 +3,7 @@ if (function_exists("date_default_timezone_set")) {
date_default_timezone_set("UTC");
}
date_default_timezone_set('UTC');
function simple() {
$a = 0;
for ($i = 0; $i < 1000000; $i++)
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2006 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -42,7 +42,7 @@ Warning: get_class() called without object from outside a class in %s on line %d
bool(false)
Warning: get_class() expects parameter 1 to be object, string given in %s on line %d
NULL
bool(false)
string(3) "foo"
string(4) "foo2"
Done
+1 -1
View File
@@ -60,7 +60,7 @@ int(%d)
Warning: get_loaded_extensions() expects at most 1 parameter, 2 given in %s on line %d
NULL
Warning: Wrong parameter count for get_defined_constants() in %s on line %d
Warning: get_defined_constants() expects at most 1 parameter, 2 given in %s on line %d
NULL
string(5) "array"
string(5) "array"
+12 -11
View File
@@ -359,7 +359,8 @@ var_dump($global_var);
//Note: No error conditions relating to passing arugments can be tested
// because these are not functions but statements, it will result in syntax error.
echo "Done\n";
?>
===DONE===
--EXPECTF--
*** Testing unset(), empty() & isset() with scalar variables ***
-- Iteration 1 --
@@ -1185,11 +1186,11 @@ bool(true)
*** Testing unset(), emtpy() & isset() with resource variables ***
-- Iteration 1 --
resource(5) of type (stream)
resource(%d) of type (stream)
bool(true)
bool(false)
bool(true)
resource(5) of type (stream)
resource(%d) of type (stream)
bool(false)
bool(true)
bool(false)
@@ -1198,11 +1199,11 @@ bool(false)
Notice: Undefined variable: resource in %s on line %d
NULL
-- Iteration 2 --
resource(6) of type (stream)
resource(%d) of type (stream)
bool(true)
bool(false)
bool(true)
resource(6) of type (stream)
resource(%d) of type (stream)
bool(false)
bool(true)
bool(false)
@@ -1217,7 +1218,7 @@ bool(false)
bool(true)
*** Testing unset(), empty() & isset() with objects ***
object(Point)#1 (3) {
object(Point)#%d (3) {
["x"]=>
int(30)
["y"]=>
@@ -1239,7 +1240,7 @@ bool(false)
Notice: Undefined variable: lable in %s on line %d
bool(true)
object(Point)#1 (3) {
object(Point)#%d (3) {
["x"]=>
int(30)
["y"]=>
@@ -1247,7 +1248,7 @@ object(Point)#1 (3) {
["lable"]=>
string(6) "Point1"
}
object(Point)#1 (2) {
object(Point)#%d (2) {
["y"]=>
int(40)
["lable"]=>
@@ -1255,7 +1256,7 @@ object(Point)#1 (2) {
}
bool(false)
bool(true)
object(Point)#1 (0) {
object(Point)#%d (0) {
}
bool(true)
bool(false)
@@ -1276,7 +1277,7 @@ array(3) {
[2]=>
string(9) "testPoint"
}
object(Point)#1 (3) {
object(Point)#%d (3) {
["x"]=>
int(5)
["y"]=>
@@ -1329,4 +1330,4 @@ bool(false)
bool(false)
bool(true)
int(10)
Done
===DONE===
+4 -4
View File
@@ -18,17 +18,17 @@ var_dump($a->$b->$c[1]);
Notice: Undefined variable: a in %s on line %d
NULL
Notice: Undefined variable: c in %s on line %d
Notice: Undefined variable: %s in %s on line %d
Notice: Undefined variable: a in %s on line %d
Notice: Undefined variable: %s in %s on line %d
NULL
Notice: Undefined variable: a in %s on line %d
int(1)
Notice: Undefined variable: b in %s on line %d
Notice: Undefined variable: %s in %s on line %d
Notice: Undefined variable: a in %s on line %d
Notice: Undefined variable: %s in %s on line %d
int(0)
Notice: Undefined variable: a in %s on line %d
-34
View File
@@ -49,37 +49,3 @@ array(1) {
}
}
}
--UEXPECT--
array(1) {
[0]=>
object(stdClass)#1 (1) {
[u"a"]=>
object(stdClass)#2 (0) {
}
}
}
array(1) {
[0]=>
object(stdClass)#1 (2) {
[u"a"]=>
object(stdClass)#2 (0) {
}
[u"b"]=>
object(stdClass)#3 (0) {
}
}
}
array(1) {
[0]=>
object(stdClass)#1 (3) {
[u"a"]=>
object(stdClass)#2 (0) {
}
[u"b"]=>
object(stdClass)#3 (0) {
}
[u"c"]=>
object(stdClass)#2 (0) {
}
}
}
+39
View File
@@ -0,0 +1,39 @@
--TEST--
__call() for private/protected methods
--FILE--
<?php
class A {
private $var1 = 'var1 value';
protected $var2 = 'var2 value';
private function func1()
{
return "in func1";
}
protected function func2()
{
return "in func2";
}
public function __get($var)
{
return $this->$var;
}
public function __call($func, array $args = array())
{
return call_user_func_array(array($this, $func), $args);
}
}
$a = new A();
echo $a->var1,"\n";
echo $a->var2,"\n";
echo $a->func1(),"\n";
echo $a->func2(),"\n";
?>
--EXPECTF--
var1 value
var2 value
in func1
in func2
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Trigger __call() in lieu of non visible methods when called via a callback.
--FILE--
<?php
class C {
protected function prot() { }
private function priv() { }
public function __call($name, $args) {
echo "In __call() for method $name()\n";
}
}
$c = new C;
call_user_func(array($c, 'none'));
call_user_func(array($c, 'prot'));
call_user_func(array($c, 'priv'));
?>
--EXPECTF--
In __call() for method none()
In __call() for method prot()
In __call() for method priv()
+3 -1
View File
@@ -41,12 +41,14 @@ $db = new hariCow;
var_dump($db);
?>
===DONE===
--EXPECTF--
Notice: Undefined variable: db in %sbug30162.php on line 35
NULL
object(hariCow)#1 (2) {
object(hariCow)#%d (2) {
["x"]=>
string(1) "x"
["y"]=>
string(1) "y"
}
===DONE===
+2 -16
View File
@@ -17,22 +17,8 @@ array(1) {
[0]=>
int(2)
[1]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
[2]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
}
}
+4 -33
View File
@@ -20,46 +20,17 @@ array(3) {
[0]=>
int(2)
[1]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
[2]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
}
[2]=>
&array(3) {
[0]=>
int(2)
[1]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
[2]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
}
}
+4 -18
View File
@@ -11,29 +11,15 @@ var_dump($a);
$a->b = null;
$a = null;
?>
--EXPECT--
object(stdClass)#1 (1) {
--EXPECTF--
object(stdClass)#%d (1) {
["b"]=>
&array(3) {
[0]=>
int(2)
[1]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
[2]=>
&array(3) {
[0]=>
int(2)
[1]=>
*RECURSION*
[2]=>
*RECURSION*
}
*RECURSION*
}
}
+5 -19
View File
@@ -12,30 +12,16 @@ var_dump($a);
$a->x0->y1 = "ok\n";
echo $a->x0;
?>
--EXPECT--
object(stdClass)#1 (1) {
--EXPECTF--
object(stdClass)#%d (1) {
["x0"]=>
&object(stdClass)#2 (3) {
&object(stdClass)#%d (3) {
["y0"]=>
string(1) "b"
["y1"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
*RECURSION*
["y2"]=>
*RECURSION*
}
*RECURSION*
["y2"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
*RECURSION*
["y2"]=>
*RECURSION*
}
*RECURSION*
}
}
ok
+4 -2
View File
@@ -30,7 +30,9 @@ if (defined("pass3")) {
set_error_handler('errorHandler');
define("pass2", 1);
include(__FILE__);
print "ok\n";
}
?>
--EXPECTF--
Error: Redefining already defined constructor for class TestClass (%sbug35634.php:12)
--EXPECT--
ok
+26
View File
@@ -8,6 +8,16 @@ var_dump($a);
$b = array(array());
$b[0][0] = $b;
var_dump($b);
function f() {
$a = array();
$a[0] = $a;
var_dump($a);
$b = array(array());
$b[0][0] = $b;
var_dump($b);
}
f();
?>
--EXPECT--
array(1) {
@@ -26,3 +36,19 @@ array(1) {
}
}
}
array(1) {
[0]=>
array(0) {
}
}
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(0) {
}
}
}
}
+1 -1
View File
@@ -65,7 +65,7 @@ print "\nDone\n";
Notice: Uninitialized string offset: 0 in %s on line 12
Notice: Uninitialized string offset: -%d in %s on line 16
Notice: Uninitialized string offset: %i in %s on line 16
Notice: Uninitialized string offset: 4 in %s on line 28
+1 -1
View File
@@ -8,7 +8,7 @@ if (extension_loaded("readline")) die("skip Test doesn't support readline");
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
$cmd = "$php -n -d memory_limit=4M -a ".dirname(__FILE__)."/bug40236.inc";
$cmd = "\"$php\" -n -d memory_limit=4M -a \"".dirname(__FILE__)."\"/bug40236.inc";
echo `$cmd`;
?>
--EXPECTF--
+38
View File
@@ -0,0 +1,38 @@
--TEST--
bug #42143 (The constant NAN is reported as 0 on Windows build)
--CREDITS--
Venkat Raman Don
--FILE--
<?php
echo "Testing NAN:\n";
echo "NAN= ";
var_dump(NAN);
var_dump(tan(-1) == 123);
var_dump(cos(-100) == "PHP String");
var_dump(deg2rad(-5.6) == null);
var_dump(sqrt(-0.1) == false);
var_dump(sqrt(cos(M_PI)) == 0.1);
var_dump(NAN);
var_dump(is_nan(sqrt(-1.005)) == false);
var_dump(is_nan(floor(1)) == true);
var_dump(log10(-1) == log(-1));
var_dump(log10(-1) != log10(-1));
var_dump(is_finite(log10(-1)) == false);
var_dump(NAN == NAN);
?>
--EXPECT--
Testing NAN:
NAN= float(NAN)
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
float(NAN)
bool(false)
bool(false)
bool(false)
bool(true)
bool(true)
bool(false)
+7 -12
View File
@@ -11,35 +11,30 @@ function test1(bar $bar) {
echo "ok\n";
}
function test2(foo::bar $bar) {
function test2(\foo\bar $bar) {
echo "ok\n";
}
function test3(::foo::bar $bar) {
function test3(\foo\bar $bar) {
echo "ok\n";
}
function test4(::Exception $e) {
function test4(\Exception $e) {
echo "ok\n";
}
function test5(Exception $e) {
echo "ok\n";
}
function test6(::bar $bar) {
function test5(\bar $bar) {
echo "bug\n";
}
$x = new bar();
$y = new Exception();
$y = new \Exception();
test1($x);
test2($x);
test3($x);
test4($y);
test5($y);
test6($x);
test5($x);
--EXPECTF--
ok
ok
ok
ok
ok
Catchable fatal error: Argument 1 passed to foo::test6() must be an instance of bar, instance of foo::bar given, called in %sbug42802.php on line 23
Catchable fatal error: Argument 1 passed to foo\test5() must be an instance of bar, instance of foo\bar given, called in %sbug42802.php on line %d and defined in %sbug42802.php on line %d
+85 -67
View File
@@ -4,88 +4,100 @@ Bug #42819 (namespaces in indexes of constant arrays)
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
namespace foo;
namespace foo\foo;
const C = "foo::C\n";
const C = "foo\\foo\\C\n";
const I = 12;
class foo {
const I = 32;
const C = "foo\\foo\\foo::C\n";
}
namespace foo;
use \ArrayObject;
const C = "foo\\C\n";
const I = 11;
class foo {
const C = "foo::foo::C\n";
const C = "foo\\foo::C\n";
const I = 22;
const C1 = C;
const C2 = foo::C;
const C3 = foo::foo::C;
const C4 = ::foo::C;
const C5 = ::foo::foo::C;
const C2 = foo\C;
const C3 = foo\foo::C;
const C4 = \foo\C;
const C5 = \foo\foo::C;
const C6 = ArrayObject::STD_PROP_LIST;
const C7 = E_ERROR;
}
class bar1 {
static $a1 = array(I => 0);
static $a2 = array(foo::I => 0);
static $a3 = array(foo::foo::I => 0);
static $a4 = array(::foo::I => 0);
static $a5 = array(::foo::foo::I => 0);
static $a2 = array(foo\I => 0);
static $a3 = array(foo\foo::I => 0);
static $a4 = array(\foo\I => 0);
static $a5 = array(\foo\foo::I => 0);
static $a6 = array(ArrayObject::STD_PROP_LIST => 0);
static $a7 = array(E_ERROR => 0);
}
class bar2 {
static $a1 = array(I => I);
static $a2 = array(foo::I => I);
static $a3 = array(foo::foo::I => I);
static $a4 = array(::foo::I => I);
static $a5 = array(::foo::foo::I => I);
static $a2 = array(foo\I => I);
static $a3 = array(foo\foo::I => I);
static $a4 = array(\foo\I => I);
static $a5 = array(\foo\foo::I => I);
static $a6 = array(ArrayObject::STD_PROP_LIST => I);
static $a7 = array(E_ERROR => I);
}
class bar3 {
static $a1 = array(I => foo::I);
static $a2 = array(foo::I => foo::I);
static $a3 = array(foo::foo::I => foo::I);
static $a4 = array(::foo::I => foo::I);
static $a5 = array(::foo::foo::I => foo::I);
static $a6 = array(ArrayObject::STD_PROP_LIST => foo::I);
static $a7 = array(E_ERROR => foo::I);
static $a1 = array(I => foo\I);
static $a2 = array(foo\I => foo\I);
static $a3 = array(foo\foo::I => foo\I);
static $a4 = array(\foo\I => foo\I);
static $a5 = array(\foo\foo::I => foo\I);
static $a6 = array(ArrayObject::STD_PROP_LIST => foo\I);
static $a7 = array(E_ERROR => foo\I);
}
class bar4 {
static $a1 = array(I => ArrayObject::STD_PROP_LIST);
static $a2 = array(foo::I => ArrayObject::STD_PROP_LIST);
static $a3 = array(foo::foo::I => ArrayObject::STD_PROP_LIST);
static $a4 = array(::foo::I => ArrayObject::STD_PROP_LIST);
static $a5 = array(::foo::foo::I => ArrayObject::STD_PROP_LIST);
static $a2 = array(foo\I => ArrayObject::STD_PROP_LIST);
static $a3 = array(foo\foo::I => ArrayObject::STD_PROP_LIST);
static $a4 = array(\foo\I => ArrayObject::STD_PROP_LIST);
static $a5 = array(\foo\foo::I => ArrayObject::STD_PROP_LIST);
static $a6 = array(ArrayObject::STD_PROP_LIST => ArrayObject::STD_PROP_LIST);
static $a7 = array(E_ERROR => ArrayObject::STD_PROP_LIST);
}
class bar5 {
static $a1 = array(I => E_ERROR);
static $a2 = array(foo::I => E_ERROR);
static $a3 = array(foo::foo::I => E_ERROR);
static $a4 = array(::foo::I => E_ERROR);
static $a5 = array(::foo::foo::I => E_ERROR);
static $a2 = array(foo\I => E_ERROR);
static $a3 = array(foo\foo::I => E_ERROR);
static $a4 = array(\foo\I => E_ERROR);
static $a5 = array(\foo\foo::I => E_ERROR);
static $a6 = array(ArrayObject::STD_PROP_LIST => E_ERROR);
static $a7 = array(E_ERROR => E_ERROR);
}
echo "first\n";
echo C;
echo foo\C;
echo foo\foo::C;
echo foo::C;
echo foo::foo::C;
echo ::foo::C;
echo ::foo::foo::C;
echo \foo\foo::C;
echo ArrayObject::STD_PROP_LIST . "\n";
echo E_ERROR . "\n";
echo foo::foo::C1;
echo foo::foo::C2;
echo foo::foo::C3;
echo foo::foo::C4;
echo foo::foo::C5;
echo foo::foo::C6 . "\n";
echo foo::foo::C7 . "\n";
echo "second\n";
echo \foo\foo::C1;
echo \foo\foo::C2;
echo \foo\foo::C3;
echo \foo\foo::C4;
echo \foo\foo::C5;
echo \foo\foo::C6 . "\n";
echo \foo\foo::C7 . "\n";
print_r(bar1::$a1);
print_r(bar1::$a2);
@@ -126,20 +138,24 @@ print_r(bar5::$a4);
print_r(bar5::$a5);
print_r(bar5::$a6);
print_r(bar5::$a7);
function oops($a = array(foo\unknown)){}
oops();
?>
--EXPECT--
foo::C
foo::C
foo::foo::C
foo::C
foo::foo::C
--EXPECTF--
first
foo\C
foo\foo\C
foo\foo\foo::C
foo\foo::C
foo\foo::C
1
1
foo::C
foo::C
foo::foo::C
foo::C
foo::foo::C
second
foo\C
foo\foo\C
foo\foo\foo::C
foo\C
foo\foo::C
1
1
Array
@@ -148,11 +164,11 @@ Array
)
Array
(
[11] => 0
[12] => 0
)
Array
(
[22] => 0
[32] => 0
)
Array
(
@@ -176,11 +192,11 @@ Array
)
Array
(
[11] => 11
[12] => 11
)
Array
(
[22] => 11
[32] => 11
)
Array
(
@@ -200,31 +216,31 @@ Array
)
Array
(
[11] => 11
[11] => 12
)
Array
(
[11] => 11
[12] => 12
)
Array
(
[22] => 11
[32] => 12
)
Array
(
[11] => 11
[11] => 12
)
Array
(
[22] => 11
[22] => 12
)
Array
(
[1] => 11
[1] => 12
)
Array
(
[1] => 11
[1] => 12
)
Array
(
@@ -232,11 +248,11 @@ Array
)
Array
(
[11] => 1
[12] => 1
)
Array
(
[22] => 1
[32] => 1
)
Array
(
@@ -260,11 +276,11 @@ Array
)
Array
(
[11] => 1
[12] => 1
)
Array
(
[22] => 1
[32] => 1
)
Array
(
@@ -282,3 +298,5 @@ Array
(
[1] => 1
)
Fatal error: Undefined constant 'foo\foo\unknown' in %sbug42819.php on line %d
+10 -10
View File
@@ -7,16 +7,16 @@ const ok = 0;
class foo {
const ok = 0;
}
var_dump(defined('ns::ok'));
var_dump(defined('ns::bug'));
var_dump(defined('::ns::ok'));
var_dump(defined('::ns::bug'));
var_dump(defined('ns::foo::ok'));
var_dump(defined('ns::foo::bug'));
var_dump(defined('::ns::foo::ok'));
var_dump(defined('::ns::foo::bug'));
var_dump(defined('ns::bar::bug'));
var_dump(defined('::ns::bar::bug'));
var_dump(defined('ns\\ok'));
var_dump(defined('ns\\bug'));
var_dump(defined('\\ns\\ok'));
var_dump(defined('\\ns\\bug'));
var_dump(defined('ns\\foo::ok'));
var_dump(defined('ns\\foo::bug'));
var_dump(defined('\\ns\\foo::ok'));
var_dump(defined('\\ns\\foo::bug'));
var_dump(defined('ns\\bar::bug'));
var_dump(defined('\\ns\\bar::bug'));
--EXPECT--
bool(true)
bool(false)
+3 -3
View File
@@ -5,8 +5,8 @@ Bug #42859 (import always conflicts with internal classes)
namespace Foo;
class Ex {}
use Blah::Exception;
use Blah::Ex;
use Blah\Exception;
use Blah\Ex;
?>
--EXPECTF--
Fatal error: Cannot use Blah::Ex as Ex because the name is already in use in %sbug42859.php on line 6
Fatal error: Cannot use Blah\Ex as Ex because the name is already in use in %sbug42859.php on line 6
-1
View File
@@ -7,5 +7,4 @@ namespace test;
echo "ok\n";
?>
--EXPECTF--
Deprecated: Ticks is deprecated and will be removed in PHP 6 in %s on line %d
ok
+2
View File
@@ -1,5 +1,7 @@
--TEST--
Bug #43128 (Very long class name causes segfault)
--INI--
memory_limit=128000000
--FILE--
<?php
+2 -2
View File
@@ -3,10 +3,10 @@ Bug #43183 ("use" of the same class in difference scripts results in a fatal err
--FILE--
<?php
namespace Test;
use Test::Foo;
use Test\Foo;
class Foo {}
class Bar {}
use Test::Bar;
use Test\Bar;
echo "ok\n";
--EXPECT--
ok
+2 -2
View File
@@ -10,6 +10,6 @@ class foo {
$foo = new foo;
$foo->bar($foo); // Ok!
$foo->bar(new stdclass); // Error, ok!
$foo->bar(new \stdclass); // Error, ok!
--EXPECTF--
Catchable fatal error: Argument 1 passed to foobar::foo::bar() must be an instance of foobar::foo, instance of stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php on line 5
Catchable fatal error: Argument 1 passed to foobar\foo::bar() must be an instance of foobar\foo, instance of stdClass given, called in %sbug43332_1.php on line 10 and defined in %sbug43332_1.php on line 5
+2 -2
View File
@@ -5,11 +5,11 @@ Bug #43332.2 (self and parent as type hint in namespace)
namespace foobar;
class foo {
public function bar(::self $a) { }
public function bar(\self $a) { }
}
$foo = new foo;
$foo->bar($foo); // Ok!
$foo->bar(new stdclass); // Error, ok!
--EXPECTF--
Fatal error: '::self' is a wrong class name in %sbug43332_2.php on line 5
Fatal error: '\self' is an invalid class name in %sbug43332_2.php on line 5
+1 -1
View File
@@ -8,4 +8,4 @@ $foo = 'bar';
var_dump(new namespace::$foo);
?>
--EXPECTF--
Fatal error: Cannot use 'namespace' as a class name in %sbug43343.php on line 5
Parse error: %s error%sexpecting%sT_NS_SEPARATOR%sin %sbug43343.php on line 5
+1 -1
View File
@@ -2,7 +2,7 @@
Bug #43344.10 (Wrong error message for undefined namespace constant)
--FILE--
<?php
echo namespace::bar."\n";
echo namespace\bar."\n";
?>
--EXPECTF--
Fatal error: Undefined constant 'bar' in %sbug43344_10.php on line %d
+1 -1
View File
@@ -2,7 +2,7 @@
Bug #43344.11 (Wrong error message for undefined namespace constant)
--FILE--
<?php
function f($a=namespace::bar) {
function f($a=namespace\bar) {
return $a;
}
echo f()."\n";
+1 -1
View File
@@ -2,7 +2,7 @@
Bug #43344.12 (Wrong error message for undefined namespace constant)
--FILE--
<?php
function f($a=array(namespace::bar)) {
function f($a=array(namespace\bar)) {
return $a[0];
}
echo f()."\n";
+1 -1
View File
@@ -2,7 +2,7 @@
Bug #43344.13 (Wrong error message for undefined namespace constant)
--FILE--
<?php
function f($a=array(namespace::bar=>0)) {
function f($a=array(namespace\bar=>0)) {
reset($a);
return key($a);
}
+1 -1
View File
@@ -6,4 +6,4 @@ namespace Foo;
echo Foo::bar."\n";
?>
--EXPECTF--
Fatal error: Class 'Foo::Foo' not found in %sbug43344_2.php on line %d
Fatal error: Class 'Foo\Foo' not found in %sbug43344_2.php on line %d
+1 -1
View File
@@ -9,4 +9,4 @@ function f($a=Foo::bar) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Class 'Foo::Foo' not found in %sbug43344_3.php on line %d
Fatal error: Class 'Foo\Foo' not found in %sbug43344_3.php on line %d
+1 -1
View File
@@ -9,4 +9,4 @@ function f($a=array(Foo::bar)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Class 'Foo::Foo' not found in %sbug43344_4.php on line %d
Fatal error: Class 'Foo\Foo' not found in %sbug43344_4.php on line %d
+1 -1
View File
@@ -10,4 +10,4 @@ function f($a=array(Foo::bar=>0)) {
echo f()."\n";
?>
--EXPECTF--
Fatal error: Class 'Foo::Foo' not found in %sbug43344_5.php on line %d
Fatal error: Class 'Foo\Foo' not found in %sbug43344_5.php on line %d
+2 -2
View File
@@ -3,7 +3,7 @@ Bug #43344.6 (Wrong error message for undefined namespace constant)
--FILE--
<?php
namespace Foo;
echo namespace::bar."\n";
echo namespace\bar."\n";
?>
--EXPECTF--
Fatal error: Undefined constant 'Foo::bar' in %sbug43344_6.php on line %d
Fatal error: Undefined constant 'Foo\bar' in %sbug43344_6.php on line %d
+2 -2
View File
@@ -3,10 +3,10 @@ Bug #43344.7 (Wrong error message for undefined namespace constant)
--FILE--
<?php
namespace Foo;
function f($a=namespace::bar) {
function f($a=namespace\bar) {
return $a;
}
echo f()."\n";
?>
--EXPECTF--
Fatal error: Undefined constant 'Foo::bar' in %sbug43344_7.php on line %d
Fatal error: Undefined constant 'Foo\bar' in %sbug43344_7.php on line %d
+2 -2
View File
@@ -3,10 +3,10 @@ Bug #43344.8 (Wrong error message for undefined namespace constant)
--FILE--
<?php
namespace Foo;
function f($a=array(namespace::bar)) {
function f($a=array(namespace\bar)) {
return $a[0];
}
echo f()."\n";
?>
--EXPECTF--
Fatal error: Undefined constant 'Foo::bar' in %sbug43344_8.php on line %d
Fatal error: Undefined constant 'Foo\bar' in %sbug43344_8.php on line %d
+2 -2
View File
@@ -3,11 +3,11 @@ Bug #43344.9 (Wrong error message for undefined namespace constant)
--FILE--
<?php
namespace Foo;
function f($a=array(namespace::bar=>0)) {
function f($a=array(namespace\bar=>0)) {
reset($a);
return key($a);
}
echo f()."\n";
?>
--EXPECTF--
Fatal error: Undefined constant 'Foo::bar' in %sbug43344_9.php on line %d
Fatal error: Undefined constant 'Foo\bar' in %sbug43344_9.php on line %d
+13 -13
View File
@@ -6,22 +6,22 @@ class Test {
static function foo() {}
}
var_dump(is_callable("::"));
var_dump(is_callable(":"));
var_dump(is_callable("x:"));
var_dump(is_callable(":x"));
var_dump(is_callable("x:x"));
var_dump(is_callable("x::"));
var_dump(is_callable("::x"));
var_dump(is_callable("x::x"));
var_dump(is_callable("\\\\"));
var_dump(is_callable("\\"));
var_dump(is_callable("x\\"));
var_dump(is_callable("\\x"));
var_dump(is_callable("x\\x"));
var_dump(is_callable("x\\\\"));
var_dump(is_callable("\\x"));
var_dump(is_callable("x\\\\x"));
var_dump(is_callable("cd"));
var_dump(is_callable("Test::"));
var_dump(is_callable("::Test"));
var_dump(is_callable("::Test::"));
var_dump(is_callable("Test\\"));
var_dump(is_callable("\\Test"));
var_dump(is_callable("\\Test\\"));
var_dump(is_callable("Test::foo"));
var_dump(is_callable("::Test::foo"));
var_dump(is_callable("\\Test::foo"));
var_dump(is_callable("is_string"));
var_dump(is_callable("::is_string"));
var_dump(is_callable("\\is_string"));
--EXPECT--
bool(false)
bool(false)
+9 -5
View File
@@ -14,13 +14,17 @@ class B {
static function fooBar() { echo "bag2\n"; }
}
function fooBar() { echo __FUNCTION__ . PHP_EOL; }
var_dump(A::XX);
var_dump(\A\XX);
A::fooBar();
fooBar();
\A\fooBar();
B::fooBar();
fooBar();
\B\fooBar();
?>
--EXPECT--
int(1)
A::fooBar
B::fooBar
B::fooBar
bag1
A\fooBar
bag2
B\fooBar
B\fooBar
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #44827 (define() allows :: in constant names)
--FILE--
<?php
define('foo::bar', 1);
define('::', 1);
?>
--EXPECTF--
Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d
Warning: Class constants cannot be defined or redefined in %sbug44827.php on line %d
-2
View File
@@ -1,7 +1,5 @@
--TEST--
Bug #45147 (unexpected T_ENDFOR)
--XFAIL--
http://bugs.php.net/bug.php?id=45147
--FILE--
<?php for ($i = 0; $i == 0; $i++): ?>
<?php if (true): ?>#<?php else: ?>#<?php endif; ?>
+3 -3
View File
@@ -43,11 +43,11 @@ __call:
string(3) "ABC"
__call:
string(3) "ABC"
__call:
__callstatic:
string(3) "XYZ"
__call:
__callstatic:
string(3) "WWW"
__call:
__callstatic:
string(3) "ABC"
__callstatic:
string(1) "A"
+4 -4
View File
@@ -35,17 +35,17 @@ call_user_func('self::y');
?>
--EXPECTF--
__call:
__callstatic:
string(3) "ABC"
__call:
__callstatic:
string(3) "ABC"
__call:
string(3) "xyz"
__call:
__callstatic:
string(3) "www"
__call:
string(1) "y"
__call:
__callstatic:
string(1) "y"
ok
__callstatic:
+23
View File
@@ -0,0 +1,23 @@
--TEST--
Bug #45877 (Array key '2147483647' left as string)
--INI--
precision=16
--FILE--
<?php
$keys = array(PHP_INT_MAX,
(string) PHP_INT_MAX,
(string) (-PHP_INT_MAX - 1),
-PHP_INT_MAX - 1,
(string) (PHP_INT_MAX + 1));
var_dump(array_fill_keys($keys, 1));
?>
--EXPECTF--
array(3) {
[%d7]=>
int(1)
[-%d8]=>
int(1)
["%s"]=>
int(1)
}
+65
View File
@@ -0,0 +1,65 @@
--TEST--
Bug #46304 (defining namespaced constant using define())
--FILE--
<?php
define('NS1\ns2\const1','value1');
define('ns1\ns2\const2','value2');
define('ns1\NS2\coNSt3','value3');
define('NS1\ns2\const4','value4', true);
define('ns1\ns2\const5','value5', true);
define('ns1\NS2\coNSt6','value6', true);
print NS1\ns2\const1 . "\n";
print ns1\ns2\const1 . "\n";
print ns1\NS2\const1 . "\n";
print NS1\ns2\const2 . "\n";
print ns1\ns2\const2 . "\n";
print ns1\NS2\const2 . "\n";
print NS1\ns2\coNSt3 . "\n";
print ns1\ns2\coNSt3 . "\n";
print ns1\ns2\coNSt3 . "\n";
print NS1\ns2\const4 . "\n";
print ns1\ns2\const4 . "\n";
print ns1\NS2\const4 . "\n";
print ns1\ns2\coNSt4 . "\n";
print NS1\ns2\const5 . "\n";
print ns1\ns2\const5 . "\n";
print ns1\NS2\const5 . "\n";
print ns1\ns2\coNSt5 . "\n";
print NS1\ns2\const6 . "\n";
print ns1\ns2\const6 . "\n";
print ns1\NS2\const6 . "\n";
print ns1\ns2\coNSt6 . "\n";
print NS1\ns2\coNSt1 . "\n";
?>
--EXPECTF--
value1
value1
value1
value2
value2
value2
value3
value3
value3
value4
value4
value4
value4
value5
value5
value5
value5
value6
value6
value6
value6
Fatal error: Undefined constant 'NS1\ns2\coNSt1' in %sbug46304.php on line %d
+2 -2
View File
@@ -7,9 +7,9 @@ $baz = '\\Foo\\Bar\\Baz';
new $baz();
function __autoload($class) {
var_dump($class);
require __DIR__ .'/bug46665_autoload.php';
require __DIR__ .'/bug46665_autoload.inc';
}
?>
--EXPECTF--
%string|unicode%(12) "\Foo\Bar\Baz"
%string|unicode%(11) "Foo\Bar\Baz"
File renamed without changes.
+42
View File
@@ -0,0 +1,42 @@
--TEST--
Bug #46701 (Creating associative array with long values in the key fails on 32bit linux)
--SKIPIF--
<?php if (PHP_INT_SIZE != 4) die('skip this test is for 32bit platforms only'); ?>
--FILE--
<?php
$test_array = array(
0xcc5c4600 => 1,
0xce331a00 => 2
);
$test_array[0xce359000] = 3;
var_dump($test_array);
var_dump($test_array[0xce331a00]);
class foo {
public $x;
public function __construct() {
$this->x[0xce359000] = 3;
var_dump($this->x);
}
}
new foo;
?>
--EXPECT--
array(3) {
[-866368000]=>
int(1)
[-835511808]=>
int(2)
[-835350528]=>
int(3)
}
int(2)
array(1) {
[-835350528]=>
int(3)
}
+13
View File
@@ -0,0 +1,13 @@
--TEST--
ini_set() function
--INI--
arg_separator.output=&
--FILE--
<?php
var_dump(ini_set("arg_separator.output", ""));
var_dump(ini_get("arg_separator.output"));
?>
--EXPECTF--
bool(false)
%unicode|string%(1) "&"
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #46813: class_exists doesn`t work with fully qualified namespace
--FILE--
<?php
namespace test;
{
class inner
{
}
}
$inner = new \test\inner();
echo "autoload == true:\n";
var_dump(class_exists('\test\inner', true));
echo "autoload == false:\n";
var_dump(class_exists('\test\inner', true));
?>
--EXPECT--
autoload == true:
bool(true)
autoload == false:
bool(true)
+39
View File
@@ -0,0 +1,39 @@
--TEST--
Bug #47054 (BC break in static functions called as dynamic)
--FILE--
<?php
class C {
final static function s() {
print "Called class: " . get_called_class() . "\n";
}
}
class D extends C {
public function m() {
$this->s();
}
}
$d = new D();
$d->m();
C::s();
$c = new C();
$c->s();
get_called_class();
D::m();
?>
--EXPECTF--
Called class: D
Called class: C
Called class: C
Warning: get_called_class() called from outside a class in %s on line %d
Strict Standards: Non-static method D::m() should not be called statically in %s on line %d
Fatal error: Using $this when not in object context in %s on line %d
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #47109 (Memory leak on $a->{"a"."b"} when $a is not an object)
--FILE--
<?php
$a->{"a"."b"};
?>
--EXPECTF--
Notice: Undefined variable: a in %sbug47109.php on line 2
Notice: Trying to get property of non-object in %sbug47109.php on line 2
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #47165 (Possible memory corruption when passing return value by reference)
--FILE--
<?php
class Foo {
var $bar = array();
static function bar() {
static $instance = null;
$instance = new Foo();
return $instance->bar;
}
}
extract(Foo::bar());
echo "ok\n";
?>
--EXPECT--
ok
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #47320 ($php_errormsg out of scope in functions)
--INI--
display_errors=0
track_errors=1
--FILE--
<?php
if (!@substr('no 2nd parameter')) {
echo '$php_errormsg in global: ' . $php_errormsg . "\n";
}
function foo() {
if (!@strpos('no 2nd parameter')) {
echo '$php_errormsg in function: ' . $php_errormsg . "\n";
echo '$GLOBALS[php_errormsg] in function: ' .
$GLOBALS['php_errormsg'] . "\n";
}
}
foo();
?>
--EXPECT--
$php_errormsg in global: substr() expects at least 2 parameters, 1 given
$php_errormsg in function: strpos() expects at least 2 parameters, 1 given
$GLOBALS[php_errormsg] in function: substr() expects at least 2 parameters, 1 given
+44
View File
@@ -0,0 +1,44 @@
--TEST--
Bug #47343 (gc_collect_cycles causes a segfault when called within a destructor in one case)
--FILE--
<?php
class A
{
public function __destruct()
{
gc_collect_cycles();
}
public function getB()
{
$this->data['foo'] = new B($this);
$this->data['bar'] = new B($this);
// Return either of the above
return $this->data['foo'];
}
}
class B
{
public function B($A)
{
$this->A = $A;
}
public function __destruct()
{
}
}
for ($i = 0; $i < 2; $i++)
{
$Aobj = new A;
$Bobj = $Aobj->getB();
unset($Bobj);
unset($Aobj);
}
echo "DONE\n";
?>
--EXPECT--
DONE
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #47353 (crash when creating a lot of objects in object destructor)
--FILE--
<?php
class A
{
function __destruct()
{
$myArray = array();
for($i = 1; $i <= 3000; $i++) {
if(!isset($myArray[$i]))
$myArray[$i] = array();
$ref = & $myArray[$i];
$ref[] = new stdClass();
}
}
}
$a = new A();
echo "Done\n";
?>
--EXPECTF--
Done
+36
View File
@@ -0,0 +1,36 @@
--TEST--
Bug #47516 (nowdoc can not be embed in heredoc but can be embed in double quote)
--FILE--
<?php
$s='substr';
$htm=<<<DOC
{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
DOC;
echo "$htm\n";
$htm=<<<DOC
{$s(<<<ppp
abcdefg
ppp
,0,3)}
DOC;
echo "$htm\n";
$htm="{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
";
echo "$htm\n";
?>
--EXPECT--
abc
abc
abc
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #47572 (zval_update_constant_ex: Segmentation fault)
--FILE--
<?php
class Foo {
public static $bar = array(
FOO => "bar"
);
}
$foo = new Foo();
?>
--EXPECTF--
Notice: Use of undefined constant FOO - assumed 'FOO' in %s on line %d
+34
View File
@@ -0,0 +1,34 @@
--TEST--
Bug #47593 (interface_exists() returns false when using absolute namespace path)
--FILE--
<?php
namespace test;
const TEST = 11;
class foo {
public function xyz() {
}
}
interface baz {
}
function bar() {
}
var_dump(interface_exists('\test\baz'));
var_dump(function_exists('\test\bar'));
var_dump(constant('\test\TEST'));
var_dump(defined('\test\TEST'));
var_dump(defined('TEST'));
?>
--EXPECT--
bool(true)
bool(true)
int(11)
bool(true)
bool(false)
+63
View File
@@ -0,0 +1,63 @@
--TEST--
Bug #47596 (Bus error on parsing file, when file size is equal to page size)
--FILE--
<?php
echo "ok\n";
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comment comment comment comment comment comment comment
// comment comment comm
?>
--EXPECT--
ok
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #47699 (autoload and late static binding)
--FILE--
<?php
class A {
static function test($v='') {
print_r(get_called_class());
}
}
class B extends A {
}
B::test();
spl_autoload_register('B::test');
new X();
?>
--EXPECTF--
BB
Fatal error: Class 'X' not found in %sbug47699.php on line %d
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Bug #47704 (crashes on some "bad" operations with string offsets)
--FILE--
<?php
$s = "abd";
$s[0]->a += 1;
?>
--EXPECTF--
Fatal error: Cannot use string offset as an object in %sbug47704.php on line %d
Loaded 100 of 6286 files, more files were not shown because too many files have changed in this diff. Show more