Compare commits

...
3320 Commits
Author SHA1 Message Date
SVN Migration abf24cfa1f This commit was manufactured by cvs2svn to create tag 'php_5_1_0b2'. 2005-06-23 03:56:38 +00:00
Andi Gutmans fe238490f9 - Beta 2 2005-06-23 03:56:37 +00:00
Ilia Alshanetsky 50d32d4d7e temporary fix to let mysqli extension build, so we can make a release. 2005-06-23 02:15:04 +00:00
Marcus Boerger 5cf2c9dc45 - Add +ifdefs to still allow PHP 5.0 builds of PDO
# PDO is a PECL extension and at the moment is still meant to compile on
# both PHP 5.0 and PHP 5.1.
2005-06-23 00:19:16 +00:00
Rob Richards 6553a4c7e2 BFN 2005-06-22 19:59:25 +00:00
Rob Richards 9ad129468a - Fix bug #33299 (php:function no longer handles returned dom objects)
- maybe fix #33431/33432
2005-06-22 19:56:30 +00:00
Ilia Alshanetsky 49c233212b Fixed bug #32160 (copying a file into itself leads to data loss). 2005-06-22 16:13:47 +00:00
Dmitry Stogov 60328db583 Debug backtrace was fixed 2005-06-22 15:30:14 +00:00
Dmitry Stogov da2ab06111 Fixed bug #29896 (Backtrace argument list out of sync) 2005-06-22 15:26:05 +00:00
Ilia Alshanetsky 00f14fbd74 Slightly more reliable current path detection. 2005-06-22 13:41:59 +00:00
Ilia Alshanetsky 46b276ee4b Skip MySQLi tests if connection could not be established and not using
embeded db.
2005-06-22 13:41:43 +00:00
foobar 8566f52297 "64M should be enough for everyone." -- Jani, 2005 :) 2005-06-22 12:54:04 +00:00
Stanislav Malyshev d66e7cb27c export zend_vm_set_opcode_handler 2005-06-22 12:24:25 +00:00
Antony Dovgal 1c68938c60 - allow to use "yes" and "true" with ini_set() and in commandline (through -d flag)
- fix #15854 that was caused by wrong consideration that zend_ini_boolean_displayer_cb()
always recieves converted to "0"/"1" values.
2005-06-22 12:02:47 +00:00
Georg Richter ce972676b5 added testcase for mysqli_warning class 2005-06-22 10:15:37 +00:00
Georg Richter 976be82fb9 added testcase for cursors (nested selects) 2005-06-22 10:14:32 +00:00
Georg Richter 6fba73e8e2 changed/fixed mysqli_warning class
added prefetch support for cursors
2005-06-22 09:12:43 +00:00
Wez Furlong 372c38a53a build related adjustments.
These need to be included in beta 2
2005-06-22 08:45:22 +00:00
Dmitry Stogov c3e2f113f3 Fixed bug in test file 2005-06-22 08:33:43 +00:00
Dmitry Stogov 21e071be06 Fixed bug #33257 (array_splice() inconsistent when passed function instead of variable) 2005-06-22 08:33:00 +00:00
foobar 96d568f1fb BFN 2005-06-22 08:27:02 +00:00
foobar bfa890d81e - Fixed bug #33427 (ext/odbc: check if unixODBC header file exists) 2005-06-22 08:26:00 +00:00
foobar a0ab6b7160 - Never ever add /usr/lib as libpath, even if --with-libdir is used 2005-06-22 06:50:24 +00:00
4472024ea2 ChangeLog update 2005-06-22 05:43:03 +00:00
foobar ea97aa5e8c fix tests 2005-06-22 00:41:28 +00:00
Marcus Boerger f845c37b41 - Fix test 2005-06-21 18:34:21 +00:00
Derick Rethans d995df614c - Fixed Rasmus' problem with Jan.14, 2004. 2005-06-21 17:43:28 +00:00
Dmitry Stogov adc3993122 Fixed test file 2005-06-21 17:28:09 +00:00
Andi Gutmans da201c1be8 - Back to -dev. Guys (n' Girls), give at least 1 hour before you start
- complaining about not going back to -dev. I like checking the tarball
- before I change it back.
2005-06-21 16:31:19 +00:00
Andi Gutmans 9bf68ef6c5 - Take #3 :) 2005-06-21 15:44:50 +00:00
Ilia Alshanetsky e656b82956 Fixed memory leak.
# Found by valgrind w/o zend-mm being used.
2005-06-21 14:05:15 +00:00
foobar 8460074372 - Partial revert: It does not matter if awk works or not but helps if it does :) 2005-06-21 13:47:38 +00:00
Ilia Alshanetsky c594f47f76 Fixed test skip conditions.
# Same needs to be done to odbc, but it seems access is restricted
# for "privileged" folks.
2005-06-21 13:42:23 +00:00
foobar f5fb13103f fix test 2005-06-21 13:06:10 +00:00
Dmitry Stogov 27374bfaf5 Fixed bug #31213 (Sideeffects caused by fix of bug #29493) 2005-06-21 12:10:51 +00:00
Dmitry Stogov 1098ec03c1 Remove unnecessary ZEND_FETCH_CLASS together with ZEND_DECLARE_INHERITED_CLASS in case of early binding 2005-06-21 12:05:15 +00:00
foobar 9f2c906e80 Fix configure problem in braindead systems like Solaris. 2005-06-21 10:20:03 +00:00
Marcus Boerger 0fcdcbbfd9 - Add new test 2005-06-21 06:59:58 +00:00
Dmitry Stogov 68289c4759 ext/soap should use type defined in SoapVar(), if wsdl defines another type 2005-06-21 06:24:55 +00:00
eccfb9c202 ChangeLog update 2005-06-21 05:31:27 +00:00
Ilia Alshanetsky a462e687dc Fixed possible memory corruption. 2005-06-21 00:12:35 +00:00
Antony Dovgal 79d649e173 fix memleak when connection fails (and we still keep trying) 2005-06-20 23:16:27 +00:00
Andi Gutmans cf0c7a9f5a - Back to -dev 2005-06-20 22:34:57 +00:00
Andi Gutmans fd3d8e9537 - Beta 2 2005-06-20 20:49:56 +00:00
Antony Dovgal e05ec94e1e reorder and prevent memleak: bailout after free() 2005-06-20 19:58:51 +00:00
Dmitry Stogov 62bdbc0e57 Fixed possible crash on $x = $obj->$non_string 2005-06-20 18:25:24 +00:00
Ilia Alshanetsky 3b79941168 Fixed bug #31054 (safe_mode & open_basedir checks only check first
include_path value).
2005-06-20 15:59:13 +00:00
foobar 56c1b316da - Added session.hash_bits_per_character support. (3rd param)
(Changes by: waltzer at autumnweave dot com)
2005-06-20 13:37:32 +00:00
Antony Dovgal 8be61d707f fix #29683 (headers_list() returns empty array) 2005-06-20 12:46:34 +00:00
foobar 6f3b02cba4 typo 2005-06-20 11:10:11 +00:00
Derick Rethans d99e8894ff - Update TODO. 2005-06-20 11:08:28 +00:00
Derick Rethans 610fd92ee7 - Make this work on big endian systems too.
- Added an additional malloc() check.
2005-06-20 11:07:53 +00:00
foobar 4dfa3fc731 Some netware related build issues fixed (patch by: Kamesh Jayachandran <kameshj at fastmail dot fm> 2005-06-20 11:06:54 +00:00
foobar eb9a7a76e6 - Added AC_TIMELIB_C_BIGENDIAN
# No need to add it to config.m4, it's run in PHP configure.in already.
# Only added here so that the  standalone configure.in (to be added later)
# can use it.
2005-06-20 11:01:07 +00:00
Derick Rethans 643709eb96 - Update news with implemented FRs and added test for those FRs. 2005-06-20 08:47:56 +00:00
Derick Rethans 1a4535f692 - Implemented FR #29585 (Support week numbers in strtotime()) 2005-06-20 08:46:09 +00:00
Derick Rethans f0d8e67ff5 - Update README, we require 0.9.8 now. 2005-06-20 08:39:45 +00:00
foobar 37319639ec reorder 2005-06-20 07:59:24 +00:00
foobar 9d14b408cf fix typo 2005-06-20 07:26:46 +00:00
foobar a6c7324979 - No extra spaces before #ifndef 2005-06-20 07:04:07 +00:00
5bb7b8ed58 ChangeLog update 2005-06-20 05:36:33 +00:00
Andi Gutmans 04e687245e - Fix typo 2005-06-20 03:54:46 +00:00
Marcus Boerger 466b22c1fe - BFN 2005-06-20 03:05:14 +00:00
Marcus Boerger 74a63cc1b2 - Fixed #33136:
- Allow ArrayObject::offsetSet(NULL, $value) as replacement for [] = $value
- Fix memleaks with overloading ArrayObject
2005-06-20 03:02:52 +00:00
Marcus Boerger 19904f86d3 - BFN 2005-06-20 01:39:28 +00:00
Marcus Boerger f554eba8f3 - Fix bug #33389 by fixing copying 2005-06-20 01:37:48 +00:00
Marcus Boerger 5cc056a6ce - Output shows false lowercased 2005-06-20 01:10:33 +00:00
Marcus Boerger 758503e26f - Show true/flase 2005-06-20 01:08:57 +00:00
foobar 6a58298bf6 - Plain path passed to PHP_INSTALL_HEADERS needs to have trailing / 2005-06-20 00:52:59 +00:00
foobar a892e4874f fix PHP_INSTALL_HEADERS() macro when 2 params are used 2005-06-20 00:20:45 +00:00
Marcus Boerger 6a67d06c26 - Fix handling of ArrayObject/ArrayIterator flags and provide test 2005-06-20 00:19:18 +00:00
foobar 9f704ce6d1 This is not mysqli, where 5th parameter is port. 2005-06-20 00:16:31 +00:00
foobar 174e96246b Install headers too 2005-06-19 23:36:18 +00:00
Marcus Boerger 2f99f9d1c8 - Add new test
# In this version we do not need to make the subscripted array a reference.
# Thus this implementation is in most cases the ideal implementation.
2005-06-19 22:18:07 +00:00
Derick Rethans 3cdc895213 - Added backward compability wrapper "php_parse_date()".
- Changed WDDX extension to use new date parsing code.
- Removed all remnants to the old parser.
#- I hope that I didn't break the .dsp's...
2005-06-19 22:15:27 +00:00
Marcus Boerger 363bfdb404 - Add new test
# This does the same as 009 but achieves its goal completely different. It
# is easier but makes the array a reference which is not always practical.
2005-06-19 22:09:53 +00:00
Derick Rethans a347b91a9e - Fixed layout of test description. 2005-06-19 21:56:21 +00:00
Marcus Boerger 5c86a323e5 - Drop doubled $ 2005-06-19 21:52:38 +00:00
Marcus Boerger 9a831f1e4d - Add new test 2005-06-19 21:34:21 +00:00
Marcus Boerger f01c842ef6 - Update tests to reflect current situation
# I don't feel like discussing this issue anymore - maybe we need to find
# a way of returning proxies to get the requested behavior back - i'll give
# it a try for PHP 5.2. So long we'll have to stay with the original
# decision that we don't support references at all with ArrayAccess.
2005-06-19 20:49:17 +00:00
foobar 21ce9394a7 revert - now it works again?! 2005-06-19 17:06:48 +00:00
Ilia Alshanetsky b9575ead72 make substr_count() 30% when counting instances of 1 byte long strings. 2005-06-19 16:31:51 +00:00
Derick Rethans eab2cbf494 - Fixed test - strtotime() uses GMT if no TZ environment variable is set and if
no explicit timezone abbreviation (CEST) or timezone identifier
  (Europe/Amsterdam) is set.
2005-06-19 16:13:34 +00:00
Derick Rethans ebc587846b - Ignore VIM swapfiles. 2005-06-19 15:02:28 +00:00
Derick Rethans aeb1744011 - Add #20382 to the list, and expand testcase again. 2005-06-19 15:01:43 +00:00
22d433a3db ChangeLog update 2005-06-19 05:32:33 +00:00
Sebastian Bergmann 63a30ff1f0 ZTS fix. 2005-06-19 05:28:39 +00:00
foobar a91a5601e4 fix test 2005-06-18 23:23:45 +00:00
foobar 07d96b9201 reorder + typofix :) 2005-06-18 21:17:10 +00:00
Derick Rethans 3e7446f0e7 - Allow default timezone to be set with the .ini setting "date.timezone". 2005-06-18 20:23:19 +00:00
Derick Rethans 635ea0d5fd - Update NEWS with bugfix happyness.
- Update TODO file for ext/date. No known bugs currently.
2005-06-18 19:40:31 +00:00
Derick Rethans c2b34e208a - Added testcase for bug #28024. 2005-06-18 19:39:19 +00:00
Derick Rethans 9f2283b8a0 - Fixed bug in tm2unixtime where the wanted date was in the transition time
between two zones.
#- In this case the wanted date actually didn't exist, and that wasn't
#  handled correctly.
2005-06-18 19:23:58 +00:00
Derick Rethans 7299ff3b04 - Expand test cases for bug #32086 and #32555. 2005-06-18 19:21:10 +00:00
foobar 95d8125199 BFN 2005-06-18 18:59:12 +00:00
foobar 51f9d5bedc - Updated bundled shtool to version 2.0.2 2005-06-18 18:54:40 +00:00
Ilia Alshanetsky 67ea97dfdf Added offset & length parameters to substr_count() function. 2005-06-18 18:23:12 +00:00
foobar 20cc9e3939 some more things to do 2005-06-18 18:11:33 +00:00
Andi Gutmans 9f9f6d2e5d - E_STRICT shouldn't be on by default on production servers. 2005-06-18 16:52:24 +00:00
Derick Rethans b70466417e - Add another test for bug #20382. 2005-06-18 14:11:15 +00:00
foobar eb4103503c Add note how to build DBA as shared 2005-06-18 13:28:30 +00:00
foobar 4ca58ffa00 no trailing dots 2005-06-18 13:17:52 +00:00
Derick Rethans 3ad7c1ad4a - If the ts is smaller than the first transition time, use the last one
in the list.
#- This seems consistent with how "zdump" works, although I'm not 100% sure if
#  it's correct.
2005-06-18 11:58:18 +00:00
Derick Rethans 30efc9f68e - Fixed a problem where the timestamp we are looking up a TZ info structure for
was in the last record in the tz database.
- Fixed problem in test case.
2005-06-18 11:15:29 +00:00
Derick Rethans db861c3944 - Added missing .cvsignore file. 2005-06-18 11:12:38 +00:00
Derick Rethans cbc98fb3c0 - Fixed test case
#- Still not sure why the first TS is incorrect...
2005-06-18 10:25:40 +00:00
b900a96852 ChangeLog update 2005-06-18 05:35:31 +00:00
foobar a104447d46 Make sure $_ENV is populated 2005-06-18 02:24:37 +00:00
foobar f2ddefcc56 - This is no bug. 2005-06-18 02:06:31 +00:00
foobar 0964cd270e BFN 2005-06-18 01:06:58 +00:00
foobar 185648217f test for bug #33389 2005-06-18 01:01:48 +00:00
Ilia Alshanetsky bcd33d5f18 Added offset parameter to the stream_copy_to_stream() function. 2005-06-17 23:29:20 +00:00
foobar c156a2e1b0 missing entry 2005-06-17 23:00:11 +00:00
Derick Rethans 25168fffd5 - Fix test case.
#- Bug might actually be in date() rendering things wrong, but that code
#  is not yet replaced.
2005-06-17 22:45:31 +00:00
foobar 19639aa9ab Use the new dependency system 2005-06-17 16:42:54 +00:00
foobar a491b82c4c No short-tags! 2005-06-17 16:40:05 +00:00
Georg Richter 15563f8d91 fix for bug #33263 (mysqli_real_escape doesn't work in __construct) 2005-06-17 16:32:43 +00:00
Andrei Zmievski 987f6f8fcf *** empty log message *** 2005-06-17 16:24:01 +00:00
foobar c24bd1584c fix test - short_tags not allowed here! 2005-06-17 16:22:55 +00:00
Dmitry Stogov 2a314dbc47 Removed EX(fbc_constructor) (it is no longer needed) 2005-06-17 15:06:28 +00:00
Derick Rethans c41145799d - The incoming TS is GMT... but the hole filler wants local time so we
have to convert it.
- Change e-mail address
2005-06-17 14:54:00 +00:00
Derick Rethans 2492892fde - Add a couple of test files, which all still fail. 2005-06-17 14:21:53 +00:00
Derick Rethans 65530de209 - Simplify code a little. 2005-06-17 14:11:12 +00:00
foobar a81ac8d04b nuke unused variable 2005-06-17 13:12:31 +00:00
Derick Rethans f4de039522 - Rename tl_config.h to timelib_config.h 2005-06-17 12:03:04 +00:00
foobar 7c6ba77780 Use new dependency system 2005-06-17 11:48:17 +00:00
foobar 371135fa2c Use the new dependency system 2005-06-17 11:44:59 +00:00
foobar 78a5b7693c Use the new dependency system 2005-06-17 11:35:22 +00:00
Antony Dovgal baf8cadeff improve error messages when error raised from an internal class (do not hide class name) 2005-06-17 11:25:31 +00:00
Antony Dovgal 8d2dd7901c add news entry and test for bug #33382 2005-06-17 10:53:15 +00:00
Dmitry Stogov d1ee85c2dd Fixed bug #33277 (private method accessed by child class) 2005-06-17 10:50:45 +00:00
Antony Dovgal a32c1f9eee fix bug #33382 (array_reverse() fails after *sort())
no need to MFH - the bug existed only in HEAD
2005-06-17 10:50:15 +00:00
Dmitry Stogov f47c78487b Improved PHP extension loading mechanism with support for module dependencies and conflicts 2005-06-17 09:39:23 +00:00
Dmitry Stogov c0c7a9f010 Improved PHP extension loading mechanism with support for module dependencies and conflicts. 2005-06-17 09:36:26 +00:00
61b2fcc3ce ChangeLog update 2005-06-17 05:37:15 +00:00
Frank M. Kromann 37d672d2a3 Attempt to fix win32 build by creating the missing hader file 2005-06-17 05:10:12 +00:00
foobar a736f99e2f - Improve portability.
# TODO: The standalone lib needs it's own build stuff, pretty much same as
#       Zend has for standalone builds.
2005-06-16 23:12:10 +00:00
Marcus Boerger 7a7cda7a4c - Internal functions/methods can now return by reference 2005-06-16 23:02:23 +00:00
Ilia Alshanetsky 353e07f57b Fixed memory corruption. 2005-06-16 22:50:32 +00:00
Brian France cd8adc0cf2 ifdef'ed the code but not the includes 2005-06-16 22:35:11 +00:00
foobar a87d9876cf nuke unused entries 2005-06-16 22:03:04 +00:00
Johannes Schlüter f2fab902c4 fix typos 2005-06-16 21:27:51 +00:00
foobar ab285a85fd Fix VPATH build (again) 2005-06-16 21:23:16 +00:00
foobar 1d5397dde0 this is not an extension dir 2005-06-16 21:22:33 +00:00
Marcus Boerger e5df7fa8b2 - No more memory_limit for running tests 2005-06-16 18:58:04 +00:00
Derick Rethans ca16776087 - Fixed headers for FreeBSD
- Moved from ntohl to own macro
- Export timelib_dump_tzinfo
2005-06-16 18:34:42 +00:00
Derick Rethans c53cdf6dd8 - Added include dir. 2005-06-16 18:15:30 +00:00
Derick Rethans fb2b1606ba - Fix up tests, remove windows specific test. 2005-06-16 18:13:40 +00:00
Derick Rethans b7ea5dc5f4 - Move strtotime() related testcases to ext/date/tests. 2005-06-16 17:35:08 +00:00
Marcus Boerger 7f544adbb5 - Fix TSRM build 2005-06-16 17:29:29 +00:00
Derick Rethans 4ad939be1b - Rename "datetime.c" and "datetime.h" to "timelib.c" and "timelib.h" to
prevent duplicate header names.
2005-06-16 17:12:41 +00:00
foobar 34e0ba1f92 silence notices 2005-06-16 17:12:26 +00:00
foobar ba1aac47b7 typofix 2005-06-16 16:46:06 +00:00
Wez Furlong b680c5c5e1 Don't emit the E_STRICT dl-is-deprecated notice on SAPI's where dl() is widely (and safely) used.
This allows our test-suite to run in E_STRICT mode.
2005-06-16 15:36:39 +00:00
Dmitry Stogov f5e71d99d5 typo 2005-06-16 15:11:03 +00:00
Wez Furlong 4de4565710 Fix compile on win32 at least. 2005-06-16 15:03:36 +00:00
Dmitry Stogov aedbdb087d Allowed return by refrence from internal functions 2005-06-16 14:56:13 +00:00
Wez Furlong 43aa6922d3 Don't crash here if there are errors (such as failing to load extensions via
php.ini) during startup.
2005-06-16 14:54:51 +00:00
Stanislav Malyshev 999998ecaa rename to zend_ 2005-06-16 14:27:08 +00:00
Dmitry Stogov a6d84dbb82 Fixed bug #33318 (throw 1; results in Invalid opcode 108/1/8) 2005-06-16 14:20:00 +00:00
Zeev Suraski ff06fb72de Fixlet 2005-06-16 13:31:21 +00:00
Derick Rethans 7c264559b2 - Fixed a regression with "last saturday" 2005-06-16 13:30:26 +00:00
Dmitry Stogov faacd7f865 Compilation warnings 2005-06-16 12:26:44 +00:00
Dmitry Stogov c3e6a90808 ZEND_UNSET_DIM_OBJ is splitted to ZEND_UNSET_DIM and ZEND_UNSET_OBJ. 2005-06-16 12:17:39 +00:00
Stanislav Malyshev 87c9e68c91 export zval getters 2005-06-16 11:50:08 +00:00
Derick Rethans f847c6f948 - Update maintainers and credits. 2005-06-16 10:44:41 +00:00
Dmitry Stogov 3c1a774ddc USER_OPCODE API is improvet.
Implemented ability to dispatch from user handler to internal handler of another opcode.
2005-06-16 06:00:48 +00:00
65e57a8a2c ChangeLog update 2005-06-16 05:38:57 +00:00
Ilia Alshanetsky 73d503471c Fixed memory leak. 2005-06-15 23:42:55 +00:00
Ilia Alshanetsky 694585e1a8 Avoid double-free. 2005-06-15 23:30:20 +00:00
Ilia Alshanetsky c68b34c40f Added test for bug #33056. 2005-06-15 23:24:28 +00:00
Andrei Zmievski be0458269e WS fix 2005-06-15 21:20:26 +00:00
Andrei Zmievski ec09711101 Fix FCI cache for array_walk and user array compare functions. Bug
#33286. (Patch from m.bretz@metropolis-ag.de)
2005-06-15 20:51:33 +00:00
Dmitry Stogov 47676bc067 Fixed OS X compatibility 2005-06-15 19:05:55 +00:00
foobar 8d2afe0e57 - This does not have to be egrep here 2005-06-15 17:13:39 +00:00
Derick Rethans eb8b4fd4a1 - Make it compile cleanly with MS VC++ too, which is completely anal in some
cases.
2005-06-15 11:01:07 +00:00
foobar 55b0a90e91 typofix 2005-06-15 09:23:28 +00:00
foobar 97666ab4ef Show borked tests in the summary 2005-06-15 09:21:15 +00:00
Derick Rethans e56a091bf3 - Commit re-generated parser. 2005-06-15 09:09:04 +00:00
Edin Kadribasic d00b6bc170 Date will never be compiled as shared so this is not needed 2005-06-15 09:05:00 +00:00
Edin Kadribasic cc33e8f536 Nuke PHP_ prefix from timelib 2005-06-15 09:02:28 +00:00
Edin Kadribasic d1974bad1b Made date obligatory and static 2005-06-15 08:44:23 +00:00
Derick Rethans 6d7667267b - Hide the "Unexpected character..." message for now. 2005-06-15 07:58:21 +00:00
Derick Rethans 318c7aead7 - Commit fixed .c file with fixed re2c. 2005-06-15 07:43:05 +00:00
Derick Rethans 952a2c8234 - Whitespace and regenerate the .c file with my re2c. 2005-06-15 07:23:27 +00:00
Derick Rethans f858c193b6 - Rename macro to TIMELIB_TIME_FREE
#- Please do not use PHP_ prefixes as this library will also be packaged
#  outside of PHP.
2005-06-15 07:15:38 +00:00
e1573bf6e9 ChangeLog update 2005-06-15 05:33:04 +00:00
Edin Kadribasic 61d132cddc Export symbols 2005-06-15 00:23:14 +00:00
Edin Kadribasic dd9698a6cb Touch + manual fix for re2c bug where it forgets {} in static int scan() 2005-06-15 00:17:41 +00:00
Dan Scott 4187a6e3c7 Bring PDO_ODBC tests in sync with PDO base tests. 2005-06-15 00:17:18 +00:00
Edin Kadribasic 289997715a Make it compile on windows 2005-06-15 00:11:29 +00:00
Ilia Alshanetsky 2d92309797 more accurate timing function. 2005-06-14 23:59:29 +00:00
Ilia Alshanetsky 9392a1c9de Fixed memory leaks. 2005-06-14 23:40:57 +00:00
foobar 32b3d10174 fix VPATH builds + nuked unnecessary lines 2005-06-14 22:50:55 +00:00
Edin Kadribasic cde34a07b7 Added win32 build file 2005-06-14 22:25:48 +00:00
foobar 8d952c906f This test did not fit to the new interactive shell thing 2005-06-14 22:21:08 +00:00
foobar de504dce25 BFN 2005-06-14 22:19:50 +00:00
Derick Rethans 4fb4cac65c - Add my new timelib and ext/date. For now only strtotime() makes use of this. 2005-06-14 21:32:29 +00:00
Rob Richards f14292df21 Fixed bug #33340 (CLI Crash when calling php:function from XSLT) 2005-06-14 19:39:52 +00:00
foobar bad7aeeffb unify .cvsignore files 2005-06-14 13:26:09 +00:00
foobar 23ffaecc7d If the macro exists, use it, otherwise use the Makefile.frag 2005-06-14 13:09:23 +00:00
Ilia Alshanetsky aa52c68a7a bzero > memset 2005-06-14 13:09:04 +00:00
Dmitry Stogov ae37249fa9 Removed old executor 2005-06-14 12:55:48 +00:00
foobar 1c9a470cbc reordered + added msg to configure output for PHP_ZEND_VM 2005-06-14 12:23:26 +00:00
foobar 021389c4dc typofix 2005-06-14 11:47:57 +00:00
foobar fb95a19824 fix standalone build 2005-06-14 11:41:48 +00:00
1ef7bf6997 ChangeLog update 2005-06-14 05:32:30 +00:00
Sebastian Bergmann 1d9baf3dd5 ZTS fix. 2005-06-14 05:13:01 +00:00
Ilia Alshanetsky b36d4ae02c Added bindto socket context option. 2005-06-14 02:39:42 +00:00
foobar 8d91c1a46d Make this usable for header files too 2005-06-14 02:18:44 +00:00
foobar 1cd9875465 Partial revert: AC_DEFINE / PHP_HAVE_DEF need to be called once only per macro 2005-06-14 02:18:18 +00:00
foobar e5057f7c22 use PHP_CHECK_PDO_INCLUDES 2005-06-14 01:44:16 +00:00
foobar 334f5d87ff Allow different things to be done when found / not-found 2005-06-14 01:43:53 +00:00
foobar 8eeff6d2d4 - Fixed some places which might cause problems
- Changed the "general" flavour to have libname parameter (given without the
  lib prefix of course)
# bug #33316 should be fixed now too
2005-06-14 01:42:31 +00:00
foobar 15cf2a60b0 - Added PHP_CHECK_PDO_INCLUDES macro (caches the result) 2005-06-14 00:00:53 +00:00
foobar ee28f62dc0 ws 2005-06-13 23:37:20 +00:00
Hartmut Holzgraefe 6d6630a250 added news item for GLOB_ERR fix 2005-06-13 22:20:05 +00:00
Edin Kadribasic 60b465fc5b MFB: MSVC++ 6.0 doesn't support long long type 2005-06-13 19:33:39 +00:00
Dmitry Stogov 14b80ad199 Specializer optimization 2005-06-13 17:50:07 +00:00
Dmitry Stogov cec2347c96 Fixed bug #33212 ([GCC 4]: 'zend_error_noreturn' aliased to external symbol 'zend_error').
The fix is not tested on Solaris and DARWIN!
2005-06-13 11:22:59 +00:00
Antony Dovgal 2a128504a2 destroy session after destroying error handle
SQLT_CHR is allowed too
2005-06-13 09:30:49 +00:00
foobar 54d85cbfda - Fixed bug #31256 (PHP_EVAL_LIBLINE configure macro does not handle -pthread) 2005-06-13 08:44:47 +00:00
Dmitry Stogov e6dcba6052 Fixed bug #33312 (ReflectionParameter methods do not work correctly) 2005-06-13 07:55:08 +00:00
beeac8672e ChangeLog update 2005-06-13 05:32:00 +00:00
Ilia Alshanetsky ba93fc60af Removed unused var. 2005-06-12 17:07:20 +00:00
Hartmut Holzgraefe 55b5376d19 Support for GLOB_ERR so that glob() reports permission problems (Bug #28355) 2005-06-12 07:53:24 +00:00
88141e3ed0 ChangeLog update 2005-06-12 05:40:34 +00:00
Hartmut Holzgraefe d5adc7ceff thinko fix (E_COMMIT_AFTER_MIDNIGHT) 2005-06-12 01:13:24 +00:00
Hartmut Holzgraefe 4440d3897e Removed bogus fix for bug #28355 (it was dead code anyway) 2005-06-12 00:59:04 +00:00
foobar 8030941485 revert 2005-06-11 23:53:21 +00:00
foobar 7a794caed0 Another netware fix 2005-06-11 23:32:46 +00:00
foobar dddac3e86e Merge the bug fix entries from PHP_5_0 branch 2005-06-11 20:19:34 +00:00
foobar 467db93099 regenerated with re2c 0.9.7 2005-06-11 18:00:37 +00:00
Andi Gutmans 16bbd70cd5 - Back to -dev 2005-06-11 17:03:42 +00:00
Andi Gutmans e0787f3d24 - b2 (will post it to internals@) 2005-06-11 16:59:24 +00:00
Wez Furlong 986800ce88 hunting for a bug. Looks like it might be yet-another-mysterious-shutdown problem. 2005-06-11 14:48:06 +00:00
Dan Scott b21bf3d357 PDO_ODBC returns strings for all data types. Bring expected output in line. 2005-06-11 14:01:46 +00:00
Wez Furlong ecce72aa83 become a better config.m4 citizen 2005-06-11 13:27:50 +00:00
Wez Furlong 183c8aa287 Fix for PECL #3714: beginTransaction doesn't work if you're in auto-commit mode. 2005-06-11 12:38:12 +00:00
Wez Furlong 13ac7169af and the lesson is, test everything before you commit at 2am 2005-06-11 12:36:12 +00:00
7e4be5c520 ChangeLog update 2005-06-11 05:40:37 +00:00
Wez Furlong f124c2086e couple of conceptual errors here 2005-06-11 02:50:20 +00:00
Andi Gutmans 0638c657e1 - Back to -dev 2005-06-10 18:29:10 +00:00
Andi Gutmans 3b1f8e9ad7 - Go with 5.1.0b1 2005-06-10 18:06:43 +00:00
Andi Gutmans 014a49f608 - Go with Beta 1
- Merged 5.0.x news and nuked anything prior to 5.0.0 release
2005-06-10 16:55:27 +00:00
foobar 058205b67d - Fix phpize: need to eval path variables for them to be usable 2005-06-10 12:33:59 +00:00
Dmitry Stogov c7b62187e5 Add some entries that was forgotten 2005-06-10 12:27:07 +00:00
Dmitry Stogov 46e4c9837d Added test for bug #30162 (it is already fixed but test file was forgotten) 2005-06-10 10:46:04 +00:00
Dmitry Stogov 4796fc943a Added test file for bug #31177 (not fixed yet) 2005-06-10 10:45:14 +00:00
Dmitry Stogov dc95b1bd32 typos 2005-06-10 10:23:37 +00:00
Dmitry Stogov 26c3944d9c Fixed support for ZEND_ACC_SHADOW in ReflectionProperty constructor 2005-06-10 10:22:36 +00:00
Dmitry Stogov 84b96e9b03 Fix so that extensions like xdebug, can overload opcodes in all execution modes including goto/switch 2005-06-10 09:54:38 +00:00
Dmitry Stogov 6efa17c2a1 Merge three opcodes (ZEND_NEW, ZEND_JMP_NO_CTOR, ZEND_INIT_CTOR) into one (ZEND_NEW). There was no real reason for this anymore and API should be changed before 5.1 2005-06-10 07:56:40 +00:00
Wez Furlong a5135f4528 Patch from zhao ming sen. 2005-06-10 06:32:36 +00:00
Wez Furlong fcff6a079a "Fix" PECL #4411
SPL is not initialized before PDO, so inheriting from SPL's runtime exception class gives PDO a broken exception class.
We don't currently have a way to express this kind of "soft" dependency in the build system, so I'm disabling inheriting from the runtime exception for now.
2005-06-10 06:11:29 +00:00
Wez Furlong 711b4e0043 implement the 'request shutdown' hook; this allows us to register UDFs on
persistent handles safely. (it is dangerous to keep them registered between
requests, as there are 0 guarantees that functions with the same name are even
present on the next hit, let alone that the zvals we cache point to the right
place.
2005-06-10 05:49:48 +00:00
Wez Furlong 49e7b3da4c Fix a dumb bug that would effecively ignore persistent connections and create a
new one each time.

Add a hook for persistent connections: it is called when the object goes out of
scope, and offers the driver an opportunity to release per-request scoped data
at the right time.

This hook is used by pdo_sqlite to unregister UDFs, which are dangerous to keep
registered between requests.
2005-06-10 05:47:55 +00:00
3ff7178126 ChangeLog update 2005-06-10 05:32:48 +00:00
Wez Furlong 6cc74b0e39 add sqliteCreateAggregate() 2005-06-10 05:17:47 +00:00
Wez Furlong 41421c7d7a finish implementation of sqliteCreateFunction(). 2005-06-10 04:04:43 +00:00
Wez Furlong 5c16028eb5 initialize type of function 2005-06-10 04:03:43 +00:00
Wez Furlong be76bd5278 work in progress on UDF.
Something is hokey in HEAD, checking it in to try it on another box.
2005-06-10 02:50:37 +00:00
Stanislav Malyshev 648522ab98 #29689 2005-06-09 17:22:06 +00:00
Stanislav Malyshev 2cb52151ac MF50: fix #29689 and more private property problems 2005-06-09 17:20:44 +00:00
Stanislav Malyshev b2f7dd2f66 add test for this TBF bug 2005-06-09 17:16:13 +00:00
Stanislav Malyshev b83a2603b3 disallow abstrace private methods 2005-06-09 17:12:54 +00:00
Dmitry Stogov 59a46c34fa Fixed double call to php_stream_close() on compiler errors 2005-06-09 16:57:43 +00:00
Ilia Alshanetsky 3341b5dedd Fixed compiler warning. 2005-06-09 16:13:14 +00:00
Wez Furlong fc92678b05 add --enable-memory-manager switch for win32 too 2005-06-09 13:09:04 +00:00
Wez Furlong a4874a5533 hmm, backing out this change, as it seems to cause problems with user-space
streams and filters (the ZE needs to close them before it blows away the
user-space code.

Noticed by Dmitry.  Still need to find out how to avoid double-closing streams.
2005-06-09 12:15:14 +00:00
Dmitry Stogov e0b0ae9ce7 Fixed bug #25922 (In error handler, modifying 5th arg (errcontext) may result in seg fault) 2005-06-09 10:32:08 +00:00
Dmitry Stogov f3ebf7dd91 Fixed bug (Crash on Windows and ZTS) that was introduced with fix for bug #26456 2005-06-09 08:52:51 +00:00
Dmitry Stogov 4c0970bec6 Fixed reference counting and probable crash on fclose() or shutdown 2005-06-09 08:19:30 +00:00
Dmitry Stogov 992a187eb1 Fixed array type autodetection (use namespace name, but not the namespace prefix
)
2005-06-09 08:17:37 +00:00
92c5fb8368 ChangeLog update 2005-06-09 05:41:03 +00:00
Ilia Alshanetsky 0c6368d44b Fixed bug #33268 (iconv_strlen() works only with a parameter of < 3 in length) 2005-06-08 23:49:38 +00:00
Frank M. Kromann 1f33f5cb96 USE_ZEND_ALLOC should be defined here too. 2005-06-08 20:50:44 +00:00
Dmitry Stogov 72c6d5cbaf Fixed memory allocation bugs in array_reduce() with initial value (#22463 & #24980) 2005-06-08 19:54:24 +00:00
Dmitry Stogov cf5a6f81e3 Fixed zval_ptr_dtor(&return_value) on uninicialized zval 2005-06-08 19:51:56 +00:00
Dmitry Stogov 87df726f05 Fixed exception handling in getIterator() callback (bugs #26229 & #30725) 2005-06-08 18:54:04 +00:00
Dmitry Stogov d873ecb29c Fixed valgrind errors 2005-06-08 18:11:06 +00:00
Dmitry Stogov 9cf513dfea Fixed ReflectionClass::setStaticPropertyValue() 2005-06-08 17:08:06 +00:00
foobar 03389f8206 Hopefully fixes win32 builds 2005-06-08 15:57:17 +00:00
Dmitry Stogov 415ec46927 Fixed incorrect usage of zend_mangle_property_name() (valgrind errors) 2005-06-08 15:48:12 +00:00
Dmitry Stogov 55cdb7c043 Fixed lookups for previos opcodes 2005-06-08 15:01:35 +00:00
Dmitry Stogov 9affa32237 Fixed bug #30140 (Problem with array in static properties) 2005-06-08 13:21:28 +00:00
Dmitry Stogov a95db2790d Added test for bug #32322 (Return values by reference broken( using self::),example singleton instance) 2005-06-08 08:43:38 +00:00
Dmitry Stogov 0a08f62d21 Fixed test file affected by fix for bug #30820 (static member conflict with $this->member silently ignored) 2005-06-08 08:08:37 +00:00
Dmitry Stogov d02d270f48 Fixed bug #30820 (static member conflict with $this->member silently ignored) 2005-06-08 08:08:18 +00:00
Dmitry Stogov 0a44789bf3 Fixed bug #30961 (Wrong linenumber in ReflectionClass getStartLine()) 2005-06-08 06:49:01 +00:00
79ca149b75 ChangeLog update 2005-06-08 05:39:00 +00:00
266290176b ChangeLog update 2005-06-08 00:40:35 +00:00
foobar d3f1bf4c35 - Fix paths when using --libdir and --includedir configure options 2005-06-07 21:56:09 +00:00
foobar 7101cd821a - It is nice to close the script with ?>.. 2005-06-07 21:39:54 +00:00
Dmitry Stogov 58a0ee09c3 Fixed bug #26456 (Wrong results from Reflection-API getDocComment() when called via STDIN) 2005-06-07 18:11:56 +00:00
foobar eaa3d6c5ec -Moved --disable-zend-memory-manager where it belongs 2005-06-07 17:22:40 +00:00
foobar 8e2efc351b - Show "none" when nothing is found 2005-06-07 16:47:33 +00:00
Dmitry Stogov 84392e5e7f Fixed memory allocation bugs. Probably this patch should fix bug #31725. 2005-06-07 15:39:35 +00:00
Ilia Alshanetsky 7e8bd05c89 Fixed ZTS build. 2005-06-07 14:01:36 +00:00
Derick Rethans 7a3dbcd1c4 - Added the --disable-zend-memory-manager switch to disable the Zend memory
manager.
#- I discussed this with Dmitry today - we found it useful.
2005-06-07 13:36:08 +00:00
Derick Rethans 401902b8a5 - Not sure why this wasn't committed... 2005-06-07 13:19:09 +00:00
Dmitry Stogov fac2718edd Fixed memory leak in debug_print_backtrace() 2005-06-07 13:14:23 +00:00
foobar bf94716838 - Allow doing --with-mysql --with-mysqli (no mysql libs are bundled atm)
- Make sure MYSQL_DIR is empty.
2005-06-07 12:39:02 +00:00
Dmitry Stogov 4658513d70 fixed memory leak in bug #28972 ([] operator overflow treatment is incorrect), not the bug itself. 2005-06-07 10:21:52 +00:00
Derick Rethans f07eed91c4 - MF44: Problems with user defined error handler and references 2005-06-07 10:01:30 +00:00
Dmitry Stogov 055e889bbd Fixed bug #33243 (ze1_compatibility_mode does not work as expected) 2005-06-07 07:03:28 +00:00
Dmitry Stogov 20d7e52a53 Enabled test for <any> 2005-06-07 05:37:38 +00:00
5b9bb8db6b ChangeLog update 2005-06-07 00:35:54 +00:00
Wez Furlong f9de2a3dbd fix build on Solaris 2005-06-06 22:04:14 +00:00
foobar 61e9d432d9 silence warning 2005-06-06 22:01:41 +00:00
Wez Furlong f1569c199e test commit 2005-06-06 17:47:49 +00:00
Brad House fccdf78ee8 libmonetra-5.0 sync.
added m_validateidentifier, which is enabled by default to keep invalid pointer addresses from causing PHP to crash
kept compatability with older versions of libmonetra.
2005-06-06 16:43:26 +00:00
Ilia Alshanetsky e3d8886bcd Better storage size for output length.
# Thanks to Stefan for noticing the problem.
2005-06-06 16:30:46 +00:00
Derick Rethans e2e1bf6b0c - Regenerate VM files and add warning about regeneration 2005-06-06 15:17:20 +00:00
Derick Rethans 941f16914d - MH44: Problems with user defined error handler and wrong usage of references 2005-06-06 13:09:23 +00:00
Derick Rethans c6ae4a98be - Fixed bug #33242 (Mangled error message when stream fails). 2005-06-06 12:39:57 +00:00
Dmitry Stogov 91a344a504 Fixed bug #32428 (The @ warning error supression operator is broken) 2005-06-06 11:20:46 +00:00
Dmitry Stogov ce23692663 Fixed bug #32799 (crash: calling the corresponding global var during the destruct) 2005-06-06 10:38:43 +00:00
Dmitry Stogov e5d3e07862 Added test for bug #32596 (Segfault/Memory Leak by getClass (etc) in __destruct) 2005-06-06 09:50:40 +00:00
Dmitry Stogov 61054dbcd0 Fixed bug #32993 (implemented Iterator function current() don't throw exception) 2005-06-06 08:24:05 +00:00
Dmitry Stogov cd88e646fd Fixed bug #33171 (foreach enumerates private fields declared in base classes) 2005-06-06 07:52:08 +00:00
Marcus Boerger acd747d374 - Expose -a as special mode and show whether it is a shell or not 2005-06-06 07:11:08 +00:00
Wez Furlong 6b29526617 Don't crash when compiled with the zend memory manager disabled. 2005-06-06 01:52:18 +00:00
Wez Furlong 42ada22e0c Avoid double-freeing streams.
This can happen because all streams are registered as resources;
the engine also tracks them in the open_files global.

Avoid the potential for double-freeing by simply making streams exposed to the
engine have no closer for the engine to call; they will already be in the
resource list, and thus will be shut down properly at request end.
2005-06-06 01:51:48 +00:00
fc8aace243 ChangeLog update 2005-06-06 00:35:16 +00:00
Wez Furlong e9d474dc01 fixes for #33251 2005-06-05 19:25:01 +00:00
Wez Furlong 05cec1dbce don't screw up the default fd set size when --disable-all is used 2005-06-05 19:19:09 +00:00
Ilia Alshanetsky a13aaa8aef Fixed bug #33070 (Improved performance of bzdecompress() by several orders
of magnitude).
2005-06-05 18:04:20 +00:00
foobar c28f59a1d5 - Proper fix for phpize when dealing with PECL 2005-06-05 12:58:59 +00:00
Wez Furlong b227a51201 make "nmake install" more verbose. 2005-06-05 02:33:26 +00:00
Wez Furlong 664faf8411 Add option for placing the big binaries outside of the source tree.
I find that having Debug_TS sitting in the source tree makes cvs seem much slower.
2005-06-05 01:57:03 +00:00
Wez Furlong 2a8107ce69 tweaks for a recent addition to cygwin 2005-06-05 01:39:07 +00:00
8f6ed7b085 ChangeLog update 2005-06-05 00:35:24 +00:00
Zeev Suraski 5d880ee78c __halt_compiler() patch interface 2005-06-04 16:16:53 +00:00
Zeev Suraski d33500ee20 Thought I committed it ages ago... Anyway, without further delays, the final
__halt_compiler() patch
2005-06-04 16:16:19 +00:00
09c2da0d07 ChangeLog update 2005-06-04 00:35:41 +00:00
foobar 83dff0b68b nuke crap, end scripts always with ?> 2005-06-03 23:13:23 +00:00
foobar 51eebc6096 cs + ws 2005-06-03 23:11:51 +00:00
Magnus M��tt� 1182dd48e9 Add skipif, test requires iconv. 2005-06-03 22:51:10 +00:00
foobar fd07bc5e6b nuke duplicate code 2005-06-03 22:09:22 +00:00
Dmitry Stogov e3cfb42bbd Added test for 5.0 specific bug #30394 (Assignment operators yield wrong result with __get/__set) 2005-06-03 15:38:32 +00:00
Dmitry Stogov 89e53d5ab2 Fixed bug #30080 (Passing array or non array of objects) 2005-06-03 15:02:49 +00:00
Dmitry Stogov 6b39b374ef Fixed bug #27598 (list() array key assignment causes HUGE memory leak) 2005-06-03 13:57:26 +00:00
Dmitry Stogov 3d7b0bab28 Fixed memory allocation bugs related to magic object handlers (__get(), __set(),
...)
2005-06-03 11:16:19 +00:00
Georg Richter d486da963e added new function mysqli_get_charset 2005-06-03 08:49:01 +00:00
George Schlossnagle d3a665248d [Move from branch]
On architectures that support va_copy (specifically x86_64 linux distros),
if you use va_list args more than once, you can corrupt memory - you
need to use va_copy instead.  man va_copy for details.

Also, derefrencing a void * to a long on 64 bit is totally uncool.
2005-06-03 07:34:49 +00:00
c015c522f3 ChangeLog update 2005-06-03 00:34:04 +00:00
foobar 2fa74dab0e - Revert previous change in build/libtool.m4 and make sure
the PATH_SEPARATOR check is only done under autoconf 2.13.
# fixes also the php-gtk buildconf probs
2005-06-02 21:36:38 +00:00
foobar cb5a9f534a - Fixed bug #28605 (Need to use -[m]ieee option for Alpha CPUs) 2005-06-02 21:29:24 +00:00
Antony Dovgal 56a68b5be1 fix bug #33222 (segfault when CURL handle is closed in a callback).
fix segfaults when CURL callback functions throw exception.
2005-06-02 21:04:12 +00:00
foobar 2018d2df32 We only need LEMON for bundled stuff 2005-06-02 20:06:37 +00:00
Antony Dovgal 7e450f528c fix bug #33214 (odbc_next_result does not signal SQL errors with 2-statement SQL batches).
Path by rich at kastle dot com.
2005-06-02 15:40:45 +00:00
Derick Rethans ad21bb1baa - That should have been removed, not commented out. 2005-06-02 08:51:20 +00:00
Derick Rethans 90f4590d87 - Fixed memory corruption in stristr(). 2005-06-02 08:29:37 +00:00
foobar f887ae2e80 touch 2005-06-02 05:49:56 +00:00
f58c83135d ChangeLog update 2005-06-02 00:35:34 +00:00
Ilia Alshanetsky fd396287d0 Fixed bug #33210 (relax jpeg recursive loop protection). 2005-06-01 22:28:03 +00:00
Antony Dovgal 29319a81b8 fix typo
(see details here: http://news.php.net/php.internals/16350)
2005-06-01 18:27:50 +00:00
Dmitry Stogov 8b134356ef Disabled search of recored separator outside of buffer 2005-06-01 15:11:44 +00:00
Dmitry Stogov b41a7ad18a Fixed bug #32941 (Sending structured SOAP fault kills a php) 2005-06-01 14:43:13 +00:00
Dmitry Stogov 9383e1b858 Fixed bug #30791 (magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded) 2005-06-01 11:03:58 +00:00
Dmitry Stogov 28446a4e45 Fixed "refcount" counting for autoglobals 2005-06-01 09:44:10 +00:00
Ilia Alshanetsky f28249f779 kill unused var. 2005-06-01 03:01:29 +00:00
fc8ae455df ChangeLog update 2005-06-01 00:35:10 +00:00
Dmitry Stogov 84fef05939 Fixed possible memory corruption on request shutdown
`valgrind -q --tool=memcheck sapi/cli/php tests/reflection/001.phpt`
2005-05-31 17:42:15 +00:00
Dmitry Stogov dac8f964f2 Fixed usage of uninicialized variable 2005-05-31 14:35:55 +00:00
Magnus M��tt� 80eb74e4fe Fix test 2005-05-31 13:46:17 +00:00
foobar 156a908997 - Fixed bug #33200 (preg_replace(): magic_quotes_sybase=On makes 'e' modifier misbehave) 2005-05-31 12:54:56 +00:00
Dmitry Stogov 747074f988 Reverted wrong fix for bug #30572.
Seems the bug was already fixed in other way.
But reverted patch produced a lot of valgrind errors, because IS_TMP_VAR operands don't initialize refcount.
2005-05-31 11:16:51 +00:00
foobar 8defc849cc Touch 2005-05-31 09:41:46 +00:00
foobar b185ee0315 - Fixed bug with unserialize() with "exotic" letters in class names
# Patch by: Christian Schneider <cschneid@cschneid.com>
2005-05-31 09:41:36 +00:00
Marcus Boerger 4f9a2bed42 - Only allow changing return ref agnostic when a script method overrides an
internal method (found by dmitry)
2005-05-31 09:06:43 +00:00
125f153dd8 ChangeLog update 2005-05-31 00:34:29 +00:00
Ilia Alshanetsky b28b401c78 Fixed bug #33164 (Soap extension incorrectly detects HTTP/1.1). 2005-05-30 23:46:08 +00:00
Marcus Boerger ae35d25940 - Update 2005-05-30 20:10:38 +00:00
Hartmut Holzgraefe f41bf6123b typo fix 2005-05-30 15:57:54 +00:00
foobar 9b57f5ff36 - Fixed bug #33185 (--enable-session=shared does not build) 2005-05-30 15:14:12 +00:00
Hartmut Holzgraefe 43ba3897c2 gracefully handle changes of the parse.y lemon file,
process it with lemon if available, else just keep the .c file from CVS
not doing so leads to make using its implicit .y->.c rule here and
bison doesn't really understand lemon syntax
2005-05-30 14:15:40 +00:00
foobar abfc90fb60 - Use libtool also for completely static builds 2005-05-30 10:56:13 +00:00
foobar 5fee97ca33 - Changed the PATH_SEPARATOR check to a macro
- Made sure we're generating aclocal.m4 in same way with both buildconf
  and phpize.
# Bug #33177
2005-05-30 06:55:20 +00:00
foobar 4094bf77c5 Removed the empty $bin_src_SCRIPTS (no longer needed), bug #33166 2005-05-30 06:33:45 +00:00
59fb0f2e8b ChangeLog update 2005-05-30 00:33:47 +00:00
foobar a20383ba06 - Unify the "configure --help" texts 2005-05-29 23:17:16 +00:00
foobar d12196e575 Fix VPATH build 2005-05-29 23:15:16 +00:00
Hartmut Holzgraefe 522159468c simplify flex version test 2005-05-29 19:28:34 +00:00
Hartmut Holzgraefe d1f653bd08 forgot to re-add 1.875 as a valid bison version after testing 2005-05-29 18:56:18 +00:00
Hartmut Holzgraefe fce59d9dae bison may be installed under a different executable name, e.g.
YACC="bison-1.75" configure ...

removing the check for "bison -y" allows for this
the check was redundant anyway as the following one filters
for "GNU Bison" in the --version output
2005-05-29 18:50:03 +00:00
Hartmut Holzgraefe af14bbe455 avoid code duplication in bison version test 2005-05-29 18:04:35 +00:00
Hartmut Holzgraefe 10f21b3bca added .cxx extension for C++ for completeness reasons 2005-05-29 16:59:58 +00:00
Ilia Alshanetsky c24900dfa4 Added an optional remove old session parameter to session_regenerate_id(). 2005-05-29 16:51:25 +00:00
Hartmut Holzgraefe afaabbe5f7 m4 comments start with 'dnl', *not* with '#' 2005-05-29 16:34:43 +00:00
23a7bc0203 ChangeLog update 2005-05-29 00:34:21 +00:00
Marcus Boerger 4918b67ac5 - Make zend_do_inheritance ZEND_API 2005-05-28 10:24:56 +00:00
Sebastian Bergmann ce1dfefd26 Sync with config.m4 (missing MATCH_LIMIT broke the Win32 build). 2005-05-28 06:30:46 +00:00
b43240dfcf ChangeLog update 2005-05-28 00:40:27 +00:00
Andrei Zmievski b7644c85e5 No need to include ucp.c and ucptypetable.c here. 2005-05-27 18:02:02 +00:00
Andrei Zmievski 4e72f8a298 Upgrade library to version 5.0. 2005-05-27 17:46:43 +00:00
Dmitry Stogov 743c5bb15b Fixed bug #22836 (returning reference to uninitialized variable) 2005-05-27 16:18:07 +00:00
foobar b74a5eac59 - Make sure EGREP and SED get set early enough. 2005-05-27 13:15:47 +00:00
foobar 9ef2ea19e5 - Use $SED and $EGREP where possible 2005-05-27 13:10:01 +00:00
foobar ab94914a4b - Update bundled libtool to 1.5.18 (latest atm)
# Fixes several issues with more exotic systems (AIX,HPUX,etc)
2005-05-27 13:06:06 +00:00
cbee2d697b ChangeLog update 2005-05-27 00:34:54 +00:00
Andrei Zmievski 3d2944863c Do a cache flush if we detect possible cache corruption (same as for
PCRE).
2005-05-26 21:48:35 +00:00
Marcus Boerger 9b3929a7e9 - Need to make PDO::__construct() final to prevent SEGV it isn't called 1st 2005-05-26 18:36:18 +00:00
Dmitry Stogov d2018ef2c0 Fixed bug #33116 (crash when assigning class name to global variable in __autoload). 2005-05-26 14:28:24 +00:00
Dmitry Stogov 1a72341328 Added array type hinting. (This patch requires full re-make) 2005-05-26 13:46:17 +00:00
Marcus Boerger 3453cf642a - Add new tests 2005-05-26 12:22:18 +00:00
Marcus Boerger 457d556f66 - Make SQLiteDatabase derivable by dropping final tag from class and
making the ctor final to ensure it is being called, which is the problem.
2005-05-26 11:53:16 +00:00
Ilia Alshanetsky fddaa54410 Added scheme validation for parse_url(). 2005-05-26 03:56:21 +00:00
ff525e55df ChangeLog update 2005-05-26 00:39:15 +00:00
Dmitry Stogov 1add2cc70e Fixed bug #29971 (variables_order behaviour) 2005-05-25 17:41:50 +00:00
Stanislav Malyshev 47294288fe fix is_object() on non-php objects 2005-05-25 10:57:40 +00:00
Ilia Alshanetsky 266f2fbf13 Return error on an invalid input to mime_content_type() function. 2005-05-25 03:05:47 +00:00
d2371d58cd ChangeLog update 2005-05-25 00:34:12 +00:00
Andrei Zmievski 79742f81a2 Flush regexp cache if we detect corruption. 2005-05-24 21:07:32 +00:00
Marcus Boerger 309025e8c1 - Small fix (found by joerg) 2005-05-24 17:59:42 +00:00
foobar 396affc81e nuked unused header file 2005-05-24 15:24:33 +00:00
foobar e2999b154f nuked file 2005-05-24 15:16:24 +00:00
foobar 158605a267 - Remove unused file 2005-05-24 15:16:04 +00:00
Marcus Boerger 2ac0540323 - Add test for deriving PDO 2005-05-24 14:26:22 +00:00
Marcus Boerger 88157ad284 - Add new tests for PDO_FETCH_INTO 2005-05-24 12:39:09 +00:00
Antony Dovgal 041b37b2b9 make it compile on Win32 (thanks to Sebastian for noticing) 2005-05-24 10:13:52 +00:00
foobar e4c6d7708e - Moved ingres_ii to PECL 2005-05-24 08:40:59 +00:00
7b442413d7 ChangeLog update 2005-05-24 00:33:57 +00:00
Ilia Alshanetsky d367b7b913 Fixed bug #32810 (temporary files not using plain file wrapper). 2005-05-23 21:48:51 +00:00
Antony Dovgal d4db964aed revert by Wez's request 2005-05-23 15:36:58 +00:00
Grant Croker b841969760 - Allows the Ingres extenstion to be built on Linux/UNIX as well as Windows. 2005-05-23 15:33:00 +00:00
Grant Croker 2f044696a6 - Fixed bug #30593 (--with-ingres option generates broken Makefile). 2005-05-23 12:34:34 +00:00
Antony Dovgal 201fbc48e6 fix bug #32810 (fread after tmpfile() reads only 8192 bytes) 2005-05-23 11:51:53 +00:00
Antony Dovgal ef111b8364 fix test 2005-05-23 11:38:24 +00:00
foobar 22c5e8a6ea - Fixed bug #33017 (make distclean give error outside of php-src) 2005-05-23 09:37:34 +00:00
foobar 26d7b7fbc0 CS fix 2005-05-23 06:46:25 +00:00
Dmitry Stogov 1417cbaf30 Handling responses with Content-Lenght: 0 2005-05-23 06:25:16 +00:00
25108c37ca ChangeLog update 2005-05-23 00:34:48 +00:00
Ilia Alshanetsky 17c7d35208 Adjust highlight test. 2005-05-22 16:40:26 +00:00
Ilia Alshanetsky 76c05604a6 Fixed bug #29338 (unencoded spaces get ignored after certain tags). 2005-05-22 16:40:06 +00:00
Antony Dovgal a186549ec0 fix compile warning 2005-05-22 12:57:26 +00:00
Stanislav Malyshev 6ba1dd9cbc fix leak 2005-05-22 11:10:38 +00:00
a8a305966c ChangeLog update 2005-05-22 00:33:30 +00:00
Rasmus Lerdorf 4688093cdc Avoid syntax errors on some operating systems 2005-05-21 18:42:39 +00:00
Rasmus Lerdorf c1ef105535 Fixed bug 33072 - safemode/open_basedir check for runtime save_path change 2005-05-21 17:37:56 +00:00
Marcus Boerger 0eb7282f98 - fetchSingle() was renamed to fetchColumn() 2005-05-21 14:47:33 +00:00
Georg Richter 230681b0b3 enabled set_charset for MySQL Versions >= 5.0.6
added testcase for bug #33090
2005-05-21 08:46:46 +00:00
Georg Richter 3e416f738c fix for bug #33090 (mysql_prepare doesn't return error) 2005-05-21 08:38:53 +00:00
d459f26b62 ChangeLog update 2005-05-21 00:33:59 +00:00
Rob Richards 022461d976 - correct fix for bug #33059
- fix issue in other methods
2005-05-20 15:01:38 +00:00
Antony Dovgal 4ce95ef1ea fix bug #33076 (str_ireplace() incorrectly counts result string length and may cause segfault)
add test
2005-05-20 14:23:42 +00:00
foobar 66fbe9e73c Update bundled shtool to 2.0.1 (see also bug #33023) 2005-05-20 13:45:13 +00:00
Antony Dovgal 8f5ecf6da8 fix bug #32944 (Disabling session.use_cookies doesn't prevent reading session cookies) 2005-05-20 10:27:49 +00:00
5f6d5e4fb3 ChangeLog update 2005-05-20 00:33:33 +00:00
Rasmus Lerdorf e56660a1ad Correct handling of the UNSAFE_RAW filter 2005-05-19 21:08:04 +00:00
Rasmus Lerdorf 091bff3570 Fix for bug #33057 - Don't send extraneous entity-headers on a 304 as per
RFC 2616 section 10.3.5
2005-05-19 15:57:45 +00:00
Marcus Boerger b45fb630d9 - Add ability to reference the object itself
- Add ability to exchange the refrenced object
- Add ArrayObject::getFlags/setFlags and 2nd param to __construct to
  control operation modes
2005-05-19 15:52:02 +00:00
Marcus Boerger cccdec3577 - Update tests after correcting internal order of actions 2005-05-19 15:49:44 +00:00
Ilia Alshanetsky e117b6bad2 Fixed bug #33059 (crash when moving xml attribute set in dtd). 2005-05-19 13:47:21 +00:00
Dmitry Stogov 6e9e5b099c Strict warnings 2005-05-19 09:58:23 +00:00
99415eacbb ChangeLog update 2005-05-19 00:38:50 +00:00
Ilia Alshanetsky fa0e534f83 Various compiler warning fixes. 2005-05-18 22:40:56 +00:00
Stanislav Malyshev 92c8c09da5 fix for #29890 - part 2 2005-05-18 18:10:24 +00:00
Stanislav Malyshev 3af3379a27 test 2005-05-18 18:08:02 +00:00
Stanislav Malyshev ba7123fc9b fix #29890 - crash when function call fails 2005-05-18 18:02:50 +00:00
Stanislav Malyshev 94666dcfb6 revert - seems to be fixed elsewhere 2005-05-18 15:30:35 +00:00
Stanislav Malyshev e04666ae20 fix #30451 static properties don't work properly 2005-05-18 15:14:36 +00:00
Stanislav Malyshev b03b79c985 tests 2005-05-18 14:56:34 +00:00
389b1abc16 ChangeLog update 2005-05-18 00:33:43 +00:00
Ilia Alshanetsky 53ee348165 Make unix domain sockets work. 2005-05-17 23:23:52 +00:00
Ilia Alshanetsky 57aa3b984b Removed define checks that break the build. 2005-05-17 20:08:53 +00:00
Ilia Alshanetsky 746b89df16 Fixed type mixup. 2005-05-17 19:33:03 +00:00
Magnus M��tt� 2ebda52b24 Fix tests. 2005-05-17 17:34:44 +00:00
Johannes Schlüter bb6f4dfc7d - Fix readline loop-condition
- Fix cli_is_valid_code detection
2005-05-17 14:33:15 +00:00
Antony Dovgal 5cd3bd2ea7 gdImageGifCtx() is always available in bundled lib 2005-05-17 12:22:51 +00:00
Ilia Alshanetsky def27b9959 As per PDO meeting on PHP|Tropics fetchSingle is being renamed to
fetchColumn and now supports specification of the column to retrieve.
2005-05-17 01:41:51 +00:00
35f8741111 ChangeLog update 2005-05-17 00:33:24 +00:00
Sara Golemon c281eb38ae Unterminated paren group in BETHREADS definition of tsrm_tls_set() macro 2005-05-16 22:46:05 +00:00
Edin Kadribasic 9af73f68ef Sync with config.m4 2005-05-16 17:34:44 +00:00
Antony Dovgal d5bb03b11a fix bugs #32742 (segmentation fault when the stream with a wrapper is not closed),
#32171 (Userspace stream wrapper crashes PHP)
2005-05-16 08:37:14 +00:00
89316046c9 ChangeLog update 2005-05-15 00:33:59 +00:00
Wez Furlong e8cd91adee Allow it build with PHP 5.0.x and up again. 2005-05-14 20:06:54 +00:00
Marcus Boerger 51fe495ea1 - Add command completion to CLI's -a mode 2005-05-14 19:33:18 +00:00
Marcus Boerger 626d781afd - Execute both RecursiveIteratorIterator::beginChildren() and endChildren()
on the same level (while the actual child is available).
2005-05-14 16:40:58 +00:00
416ea7638d ChangeLog update 2005-05-14 00:34:01 +00:00
Antony Dovgal 5d8394879b fix bug #29975 (memory leaks when set_error_handler() is used inside error handler) 2005-05-13 23:08:43 +00:00
Magnus M��tt� 1c7d86ad2a Added new function: posix_mknod(). 2005-05-13 21:38:17 +00:00
Wez Furlong 4f778ca31d patch by Christopher Kings-Lynne, slightly modified 2005-05-13 18:09:03 +00:00
Georg Richter d72cd1d130 charsets_dir is no longer needed 2005-05-13 13:56:04 +00:00
Georg Richter d8f91dc44c mysql_set_charset now works version undependent for MySQL 4.1.13 and above 2005-05-13 13:30:22 +00:00
Georg Richter 49e1484da8 - fixed compile error under windows. Functionality for changing the
character set was moved to libmysql (4.1 bk tree - will be merged into
5.0 within the next days).
- renamed mysql_set_character_set to mysqli_set_charset
2005-05-13 13:11:41 +00:00
Andrey Hristov 45d2c2f1fd fix NEWS 2005-05-13 10:11:46 +00:00
Andrey Hristov 0e459321bf move math_standard_deviation and math_variance to the stats PECL extension 2005-05-13 10:11:19 +00:00
66a821a763 ChangeLog update 2005-05-13 00:35:04 +00:00
Marcus Boerger c1e480d46e - Make ReflectionObject::hasProperty() recognize dynamically added props 2005-05-12 21:25:42 +00:00
Marcus Boerger a5c37f37b6 - Add ability to fail silently 2005-05-12 21:23:56 +00:00
Antony Dovgal cee979d5a9 fix #33019 (socket errors cause memory leaks in php_strerror())
patch by jwozniak23 at poczta dot onet dot pl
2005-05-12 16:26:26 +00:00
cfa90afcc7 ChangeLog update 2005-05-12 00:35:46 +00:00
Antony Dovgal 8056035197 fix both win and gcc compile errors 2005-05-11 21:16:29 +00:00
Antony Dovgal 6568dea9ef fix gcc-2.95 problems (reported by Adam Maccabee Trachtenberg) 2005-05-11 20:04:18 +00:00
Joe Orton 5815b03511 Mark pointers in entity tables as const. 2005-05-11 12:54:29 +00:00
Joe Orton bd2e99ee50 - Fixed bug #29119 (html_decode_entities handling of U+0152-U+0192 range)
(merge error from 4.3)
2005-05-11 12:43:07 +00:00
Andrey Hristov 1f604371b0 ... 2005-05-11 11:44:23 +00:00
Andrey Hristov be3a9ccdf3 add function array_product() 2005-05-11 11:43:11 +00:00
Wez Furlong 4cabeaf1c7 fix inverted logic and thus Bug #27508 2005-05-11 02:02:27 +00:00
Wez Furlong 867e619154 add test for bug 27508 2005-05-11 02:01:44 +00:00
9187fc4fc0 ChangeLog update 2005-05-11 00:34:28 +00:00
Antony Dovgal fcf14f1795 use & and check for the right value of result_type 2005-05-10 23:12:31 +00:00
Antony Dovgal 38a7ef5fe6 fix #32904 (pg_get_notify() ignores result_type parameter) 2005-05-10 20:13:24 +00:00
Andrey Hristov 0c268fa0f7 fix the test too 2005-05-10 15:27:49 +00:00
Andrey Hristov 2d4dcd5c35 fix NEWS 2005-05-10 14:36:29 +00:00
Dmitry Stogov e0b3a79e1e Fixed transparent SoapFault passing 2005-05-10 13:58:11 +00:00
foobar 84bdf9b0a0 MFB: - Fixed bugs #32800, #32830 (ext/odbc: Problems with 64bit systems) 2005-05-10 13:22:22 +00:00
Andrey Hristov f12b14078e rename math_std_dev to math_standard_deviation (the API wasn't published
yet)
2005-05-10 12:50:53 +00:00
foobar 924b4c016d ws 2005-05-10 12:19:33 +00:00
foobar 760b955dd1 MFB: - Fixed bug #32613 (ext/snmp: use of snmp_shutdown() causes snmpapp.conf
access errors). (Jani, ric at arizona dot edu)
2005-05-10 12:17:01 +00:00
Dmitry Stogov bd996f23f2 Fixed SIGSEGV 2005-05-10 10:20:58 +00:00
Dmitry Stogov 61ba13bf72 "<?xml ..." header is not required by SOAP specification 2005-05-10 08:16:14 +00:00
05c3801193 ChangeLog update 2005-05-10 00:34:01 +00:00
Andrey Hristov 8e97019a69 after throwing an warning bail out 2005-05-09 22:29:54 +00:00
Andrey Hristov b4464a2d6a mysqli won't compile with Zend2 API before 2001 - in these days there was
no Zend2
2005-05-09 22:29:21 +00:00
Andrey Hristov d5e0b8a628 MFB 2005-05-09 21:48:03 +00:00
foobar 8d00609794 - We skip tests when the extension is not loaded..in the php.ini 2005-05-09 21:16:49 +00:00
foobar db1a5ab243 revert pointless patch 2005-05-09 21:16:06 +00:00
Andrey Hristov 02d0f72596 also test shared builds 2005-05-09 16:23:22 +00:00
foobar 4b87d8360e - getlogin() / getgroups() are not necessarily available everywhere 2005-05-09 12:15:53 +00:00
30c554a0ac ChangeLog update 2005-05-09 00:36:19 +00:00
Rasmus Lerdorf 310dd4a214 Fix request_uri XSS on phpinfo() page 2005-05-08 17:24:38 +00:00
foobar fef305724b this check was not needed 2005-05-08 15:58:50 +00:00
foobar f2dd8f028b - Fixed bug #32932 (Oracle LDAP: ldap_get_entries invalid pointer) 2005-05-08 15:43:22 +00:00
foobar 0060548378 no tabs 2005-05-08 14:02:19 +00:00
Georg Richter b654b20ef6 Added new function mysqli_set_character_set_name 2005-05-08 08:39:56 +00:00
882bd85360 ChangeLog update 2005-05-08 00:34:53 +00:00
foobar e3dd556e37 this one needs to be upper.. 2005-05-07 16:14:27 +00:00
foobar b3f5a2dca4 ws + cs + proto fixes 2005-05-07 16:08:03 +00:00
Ilia Alshanetsky f8fd0898b7 MFB: Fixed memory leak on error in FTP wrapper. 2005-05-07 16:07:59 +00:00
foobar d24f853464 typofix 2005-05-07 15:43:55 +00:00
Wez Furlong 660afcaef4 MFB: Fix for #32974 2005-05-07 14:58:12 +00:00
Marcus Boerger 13ba056aff - Update 2005-05-07 13:54:02 +00:00
Andrey Hristov daae299653 revert this one till we have a better way to inform the user where the
truncation has occured
2005-05-07 12:46:29 +00:00
Andrey Hristov 8cd3409b30 update protos 2005-05-07 12:41:56 +00:00
Marcus Boerger 1fd4adb69e - Update: class File was renamed to FileObject 2005-05-07 12:25:48 +00:00
Marcus Boerger 1623537998 - Improved interactive mode of CLI (php -a) 2005-05-07 12:24:18 +00:00
Andrey Hristov 91b3b49f14 return MYSQLI_DATA_TRUNCATED if data happens to be truncated
#the manual has to be updated
2005-05-07 08:23:39 +00:00
Andrey Hristov 70da059cc0 return directly 2005-05-07 08:03:35 +00:00
Andrey Hristov b7df40a75a bail out when detecting incorrect number of parameters to be bound. 2005-05-07 07:44:41 +00:00
foobar 1ee0293680 - Install GD header files 2005-05-07 03:19:42 +00:00
foobar 626253940e - Added PHP_INSTALL_HEADERS() macro
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
2005-05-07 02:51:53 +00:00
deacfcefc2 ChangeLog update 2005-05-07 00:36:11 +00:00
foobar 9070204b93 Only test stuff if PDO is enabled 2005-05-06 22:58:42 +00:00
foobar 379394b82c cleanup 2005-05-06 22:51:05 +00:00
Ilia Alshanetsky 37f46251fb Check ftp user name for control characters. 2005-05-06 18:42:52 +00:00
Antony Dovgal 0a830b33fc fix off-by-one in _php_image_output()
and prevent such errors in php_do_open_temporary_file()
2005-05-06 16:48:30 +00:00
Andrey Hristov 60c0c8e95c initialize values because the call to zend_parse_parameters may not do it 2005-05-06 10:09:42 +00:00
Ilia Alshanetsky 3ae10919c4 Added max_redirects context option that specifies how many HTTP redirects
to follow.
2005-05-06 02:31:07 +00:00
Ilia Alshanetsky b874c94d81 Missing bit from previous patch. 2005-05-06 02:20:00 +00:00
Ilia Alshanetsky a63f5d1c3f Fixed bug #32936 (http redirects URLs are not checked for control chars). 2005-05-06 02:13:46 +00:00
d34e9a33a5 ChangeLog update 2005-05-06 00:34:56 +00:00
foobar cdb675cbcf <? should die.. 2005-05-06 00:30:36 +00:00
foobar c4de57e07c reorder 2005-05-06 00:29:30 +00:00
foobar f92c470827 - No need to add NEWS entries for bugs that do NOT exist in any released version of PHP 2005-05-06 00:23:57 +00:00
foobar 625d5ba4a3 typofix :) 2005-05-06 00:09:51 +00:00
foobar e76363aef7 verbose,order,etc. 2005-05-06 00:05:42 +00:00
foobar 31a8c58911 fix proto 2005-05-05 23:42:03 +00:00
Dmitry Stogov 79d6f11a4a Fixed bug #31525 (object reference being dropped. $this getting lost) 2005-05-05 17:37:25 +00:00
Georg Richter 929e3851f2 fixed memleak in mysqli_close
fixed bug #32956 (mysqli_bind_result doesn't support MYSQL_TYPE_NULL)
2005-05-05 13:02:32 +00:00
Georg Richter 5c99563615 fix for bug #32947 (Incorrect option for mysqli default password) 2005-05-05 12:22:48 +00:00
1ba54f5fca ChangeLog update 2005-05-05 00:36:44 +00:00
Marcus Boerger 99c72d0b94 - Update docu 2005-05-04 19:14:08 +00:00
Stanislav Malyshev 4dc7c06b2a add test 2005-05-04 16:39:09 +00:00
Stanislav Malyshev 1ef8064753 #32924 2005-05-04 16:20:04 +00:00
Stanislav Malyshev 7b34bb2be7 fix bug #32924: prepend does not add file to included files 2005-05-04 16:17:33 +00:00
Anantha Kesari H Y abf7b57160 NetWare LibC dlsym works perfectly only thing that each of the extension need to export a symbol with FULL capital prefix. 2005-05-04 13:26:28 +00:00
Dmitry Stogov b2d28102a8 Fixed bug #30641 (Compile error: error: symbol "zend_error" is used but not defined) 2005-05-04 12:38:49 +00:00
Dmitry Stogov 5e4d91582a Fixed bug #30707 (Segmentation fault on exception in method) 2005-05-04 11:17:30 +00:00
Dmitry Stogov 37d16df05c Fixed bug #30162 (Catching exception in constructor couses lose of $this) 2005-05-04 08:45:46 +00:00
95629a63df ChangeLog update 2005-05-04 00:34:21 +00:00
Rob Richards 6d2fd215e9 Fix bug #32930 (class extending DOMDocument doesn't clone properly) 2005-05-03 22:55:03 +00:00
Ilia Alshanetsky bdbce01588 Prevent double free. 2005-05-03 22:50:00 +00:00
Marcus Boerger d6d9b15ef7 - Add another note 2005-05-03 22:28:44 +00:00
Marcus Boerger 177ea26dc1 - Make line counting work with FileObject::fgetc()
- Add a test for FileObject::fgetc()
- Update docs
2005-05-03 22:18:19 +00:00
Marcus Boerger 287864a611 - Change FileObject's line counting to be zero based
- Make FileObject implement SeekableIterator
- Add tests
2005-05-03 21:11:26 +00:00
Dmitry Stogov b3a8a50581 Fixed notice message 2005-05-03 14:05:52 +00:00
Dmitry Stogov ed35225721 Fixed error message 2005-05-03 13:46:00 +00:00
Dmitry Stogov 69326a796e Fixed destruction of zval after returning from __call() 2005-05-03 12:47:27 +00:00
Marcus Boerger 51d100a27a - Fix speling
- Add links
2005-05-03 12:09:26 +00:00
foobar e49cebe157 - acconfig.h should not be installed. (it is only a template file..) 2005-05-03 11:34:32 +00:00
Marcus Boerger ec6db3d242 - Fix tests affected by fix 2005-05-03 09:52:01 +00:00
Dmitry Stogov 81b536f4a6 Fixed bug #32296 (get_class_methods output has changed between 5.0.2 and 5.0.3)
Now get_class_methods() shows accessible private and protected methods if it is called from class scope.
2005-05-03 08:52:04 +00:00
2ad6cacf7e ChangeLog update 2005-05-03 00:35:54 +00:00
Rob Richards 1a0579affa - now stable thanks to Pierre
- prep for release
2005-05-02 19:50:58 +00:00
Rob Richards fa65031982 - remove Experimental
- add Pierre to Credits
- update TODO
2005-05-02 19:39:53 +00:00
Marcus Boerger 56d543c161 - Extend API to support real existance test without the need to add any new
functions or change any behavior
2005-05-02 16:18:02 +00:00
Marcus Boerger 138c5457ac - Part 2 of #30126: Enhancement for error message for abstract classes 2005-05-02 15:57:35 +00:00
Marcus Boerger f44dc4c930 - Part 1 of #30126: Enhancement for error message for abstract classes 2005-05-02 15:55:05 +00:00
Andrey Hristov 7a0b3edbe0 fixed div by zero
#div by zero is bad...div by zero is bad...bad
2005-05-02 12:32:21 +00:00
Andrey Hristov 2c0959689b add possibility to calculate the standard deviation and the variance
on a sample - the formulae are slightly different.
2005-05-02 12:29:38 +00:00
Andrey Hristov 7a4eb25870 add also math_variance() which uses the same calculation as math_std_dev() 2005-05-02 12:12:04 +00:00
Andrey Hristov 6141c5690d fix division by zero. throw an warning if the array is empty. 2005-05-02 11:01:14 +00:00
Andrey Hristov f0c0f1ca41 FRN 2005-05-02 09:18:05 +00:00
Andrey Hristov fb0c19da1c add math_std_dev() 2005-05-02 09:17:49 +00:00
fe523b9a9b ChangeLog update 2005-05-02 00:36:00 +00:00
Ilia Alshanetsky 8209835e5a Fixed bug #32608 (html_entity_decode() converts single quotes even if
ENT_NOQUOTES is given).
2005-05-01 19:48:55 +00:00
Pierre Joye 90ee88e090 - MFB: #32891, init old y positions to non possible values. -1 being used
if the center start a (x,0)
2005-05-01 06:01:56 +00:00
b06fb51f89 ChangeLog update 2005-05-01 00:34:56 +00:00
Rob Richards eaf09df585 prep for release 2005-04-30 10:36:02 +00:00
foobar 073188c832 - Fix problems with phpized ext/imap 2005-04-30 09:29:09 +00:00
foobar 40b6c60d9d - Added man pages for "phpize" and "php-config" scripts. (Jakub Vrana) 2005-04-30 04:27:23 +00:00
foobar d7682085c6 Silence the warnings about weird characters in this man page 2005-04-30 04:12:01 +00:00
foobar 2c9bf19823 Moved phpextdist to dev/ 2005-04-30 02:40:19 +00:00
foobar e8f715af59 - No need to iterate through the options twice 2005-04-30 01:52:22 +00:00
ab3f962b8b ChangeLog update 2005-04-30 00:36:09 +00:00
foobar b85f0897a2 re2c 0.96 is the one that works (tm) 2005-04-30 00:15:07 +00:00
foobar bf85fd4f2b We do allow 2.0 now too. 2005-04-30 00:12:42 +00:00
Ilia Alshanetsky edd4860674 Attempt to eliminate seek() prior to every write. 2005-04-29 19:01:33 +00:00
foobar 217e89b124 compile fix 2005-04-29 10:40:01 +00:00
Andrey Hristov e640960186 multi_query is no more global
#thanks Sebastian!
2005-04-29 10:23:55 +00:00
foobar e57408a098 Make sure E_STRICT is set always 2005-04-29 08:54:16 +00:00
Dmitry Stogov 8b7a03c889 Fixed bug #30332 (zend.ze1_compatibility_mode isnt fully compatable with array_push()) 2005-04-29 07:59:04 +00:00
Dmitry Stogov 8db238b075 Fixed bug #32852 (Crash with singleton and __destruct when zend.ze1_compatibility_mode = On)
Fixed bug #31828 (Crash with zend.ze1_compatibility_mode=On)
Fixed bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
2005-04-29 07:03:54 +00:00
Dmitry Stogov 72b5173ac3 Fixed WSDL cache bug 2005-04-29 05:38:54 +00:00
foobar 5ae4d8e701 typofix 2005-04-29 01:55:52 +00:00
foobar 921c39f496 Add auto_globals_jit entry to php.ini-* (bug #29514) 2005-04-29 01:37:19 +00:00
foobar 3dcd8c26ee - Make sure E_STRICT is set when expecting Strict errors.. 2005-04-29 01:18:41 +00:00
foobar 96bc29839b - Unify error_reporting setting + make sure E_STRICT is set when wanted 2005-04-29 01:04:32 +00:00
foobar 8ba7d5dc53 Added test for bug #30578 2005-04-29 00:49:47 +00:00
56fb07e147 ChangeLog update 2005-04-29 00:43:01 +00:00
foobar c1748aa483 BFN 2005-04-29 00:33:40 +00:00
Ilia Alshanetsky 8abc1d3b9c e* allocation cannot fail. 2005-04-28 23:49:04 +00:00
Dmitry Stogov 9966587aaf Fixed bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others) 2005-04-28 17:40:11 +00:00
Antony Dovgal 06a9f28b17 add test for bug #32828 2005-04-28 14:34:02 +00:00
foobar 8c2cda1251 int != long 2005-04-28 14:23:57 +00:00
Antony Dovgal b0d5236605 fix #32828 (Throwing exception in output_callback function with ob_start and
ob_end_clean leads to segfault)
2005-04-28 14:20:28 +00:00
Antony Dovgal 5ca4b8383e handle unsupported datatype (OCIBindByName segfaults somewhere in OCI lib when
unknown type is provided)
2005-04-28 14:10:42 +00:00
foobar 03bdd1a5d4 - Added fastcgi.logging php.ini option to be able to disable
logging through the fastcgi connection
2005-04-28 13:14:26 +00:00
Rob Richards 1ed5c14fe2 - Fix bug #32245 (xml_parser_free() in function assigned to the xml parser
gives a segfault)
2005-04-28 12:16:32 +00:00
foobar 085f2a6980 - Reorder request shutdown calls: Call all __destruct() functions and
register_shutdown_function() callbacks before flushing output buffers
  and sending headers.
- Fixes bug #30578 and possibly others related to output buffering.

# Added some comments too about what happens and where
2005-04-28 07:50:53 +00:00
Wez Furlong 4625889764 consolidate the various tls get/set calls for the different platforms into
a single macro, at Andi's request.
2005-04-28 02:55:14 +00:00
099a7eb6b8 ChangeLog update 2005-04-28 00:35:07 +00:00
Ilia Alshanetsky 3be50385ab Allocation checks around persistent allocs that can fail. 2005-04-28 00:25:25 +00:00
foobar 56b3cac365 Better use zval_ptr_dtor() instead (thanks Andi) 2005-04-27 23:27:37 +00:00
Wez Furlong 6d978a62f1 Add three new TSRM api functions:
TSRM_API void *tsrm_new_interpreter_context(void);
TSRM_API void *tsrm_set_interpreter_context(void *new_ctx);
TSRM_API void tsrm_free_interpreter_context(void *context);

These can be used, with a suitable SAPI, to host multiple interpreters on
the same thread.
2005-04-27 22:19:54 +00:00
Andrey Hristov 396acbf64c rename 2005-04-27 21:24:37 +00:00
Andrey Hristov 3b3ce2b610 fix bug #32013(MySQLi bind_result causes fatal error: memory limit reached)
#this is a partial fix but it cannot be better. the user has to call
#$stmt->store_result() and for a BLOB/MEDIUTEXT (and larger) space will be
#allocated as big as the biggest column value.
2005-04-27 17:53:15 +00:00
Dmitry Stogov c81db6bc56 Fixed bug #29210 (Function: is_callable - no support for private and protected classes) 2005-04-27 15:45:36 +00:00
Dmitry Stogov abb07db4c6 Fixed bug #29104 (Function declaration in method doesn't work) 2005-04-27 13:30:53 +00:00
Anantha Kesari H Y 5d4230a7e7 check should be on host_alias rather than on target_alias, but somehow works on configure generated using autoconf 2.57. 2005-04-27 13:22:18 +00:00
foobar 39bcbfc306 - Made the libxml related stuff to error out if someone does --disable-all
or --disable-libxml. Better than silently just leave the ext out..
2005-04-27 13:12:55 +00:00
Dmitry Stogov aba79c268c Fixed bug #32833 (Invalid opcode) 2005-04-27 12:16:32 +00:00
Andrey Hristov f6b12b351e MFB (fixing bug 31668) 2005-04-27 12:12:58 +00:00
foobar 71adb81e96 nuking that file was not very good idea :) 2005-04-27 08:10:41 +00:00
Dmitry Stogov 28e68301dc Fixed bug #32674 (exception in iterator causes crash) 2005-04-27 06:47:08 +00:00
Ilia Alshanetsky d30a9ee96d removed debug code. 2005-04-27 03:12:18 +00:00
04b5f20be5 ChangeLog update 2005-04-27 00:38:26 +00:00
Dmitry Stogov a9a319b078 Fixed bug #30889 (Conflict between __get/__set and ++ operator) 2005-04-26 13:23:23 +00:00
Dmitry Stogov 1098d9bccb fix 2005-04-26 12:01:31 +00:00
Dmitry Stogov 5f600cdf57 Fixed bug #30702 (cannot initialize class variable from class constant) 2005-04-26 09:27:28 +00:00
Dmitry Stogov 694f7a9e90 Fixed bug #32427 (Interfaces are not allowed 'static' access modifier). 2005-04-26 08:48:23 +00:00
Dmitry Stogov 4f15b20b92 Fixed bug #32429 (method_exists() always return TRUE if __call method exists) 2005-04-26 08:47:31 +00:00
foobar 6e0da82528 Netware stuff 2005-04-26 08:20:44 +00:00
daf6b8303e ChangeLog update 2005-04-26 00:34:22 +00:00
Ilia Alshanetsky 8281f41f3e Fixed bug #32813 (parse_url() does not handle scheme-only urls properly). 2005-04-25 23:47:37 +00:00
foobar 87fc464c6b Fix test 2005-04-25 21:45:14 +00:00
foobar 87a70f10a7 Reorder 2005-04-25 21:23:49 +00:00
foobar 0783e0a358 Revert. (Nokia is not that important :) 2005-04-25 21:18:15 +00:00
John Coggeshall 669fd595fe Update 2005-04-25 20:54:44 +00:00
John Coggeshall 335742c2ef Adding new function tidy_get_opt_doc() to return option documentation at runtime. Thanks to nlopess for the patch 2005-04-25 20:46:16 +00:00
Andrei Zmievski 53e3b0fcb8 Reverting. Let's not introduce major BC breakage like this without a
good reason.
2005-04-25 20:41:26 +00:00
foobar d0f85d3e27 - Added test: For some reason this fails with ZTS mode and "outside-src-tree-build" 2005-04-25 14:04:00 +00:00
foobar 03593f89fb When an entry goes to the PHP_5_0 branch, no entry here 2005-04-25 13:01:41 +00:00
Stanislav Malyshev 92965de4ab oops 2005-04-25 12:45:52 +00:00
Stanislav Malyshev a1c24b238a fix 2005-04-25 12:44:55 +00:00
Stanislav Malyshev b86bab9735 @- Fix #32773 and make right fix for GMP FPEs (Stas)
Fix #32773 and make right fix for GMP FPEs
2005-04-25 12:18:50 +00:00
Pierre Joye f150ee9ab5 - do not use md5, png signature can change between libpng version
some floating points issue can end to different colors (+/- 1/255)
   tests should work again now.
2005-04-25 11:36:24 +00:00
Dmitry Stogov 35b38598cc Fixed bug #29944 (Function defined in switch, crashes). 2005-04-25 09:56:42 +00:00
Edin Kadribasic cbe6261882 Added T1LIB support on Windows (#32809) 2005-04-25 09:08:48 +00:00
foobar 9a020fce63 ws 2005-04-25 08:21:15 +00:00
Dmitry Stogov c78ec1615a Fixed call to estrndup() with invalid length 2005-04-25 06:13:57 +00:00
Sebastian Bergmann 11a91f04b2 Correct grammar. 2005-04-25 05:13:36 +00:00
c3da4c9102 ChangeLog update 2005-04-25 00:42:22 +00:00
Ilia Alshanetsky 320dd75443 MFB: zval** not zval* 2005-04-24 18:11:55 +00:00
Ilia Alshanetsky 409c3fd4a6 Fixed bug #32802 (General cookie overrides more specific cookie). 2005-04-24 17:52:21 +00:00
Marcus Boerger 20e67fd175 - Need to copy doc comments correct for properties 2005-04-24 17:32:05 +00:00
e5a1216c94 ChangeLog update 2005-04-24 00:33:38 +00:00
foobar 0eb271add6 - Fix memleak 2005-04-23 21:15:24 +00:00
foobar 815aff1caf - Fixed bug #32111 (Cookies can also be separated by colon) 2005-04-23 20:33:34 +00:00
foobar e642d180f6 ws, pval -> zval 2005-04-23 19:30:29 +00:00
Marcus Boerger 3080d49ed4 - Add new tests 2005-04-23 15:21:07 +00:00
Marcus Boerger 965b70c0bd - Change bison check to positive logic and allow bison 2.0 2005-04-23 11:30:11 +00:00
6bbd46b186 ChangeLog update 2005-04-23 00:35:03 +00:00
Joe Orton 7c5f5697ce Fixed bug #32797 (invalid C code in xmlrpc extension). 2005-04-22 11:06:53 +00:00
Antony Dovgal 755b027e8c fix C++ comments 2005-04-22 08:59:21 +00:00
Masaki Fujimoto ca7a649300 - Fix mbfl_encoding_detector_feed() and mbfl_mbfl_identify_encoding() behaviour 2005-04-22 05:03:10 +00:00
Wez Furlong 7dd430ff28 fix bug #32795 2005-04-22 02:40:48 +00:00
ace93a1de9 ChangeLog update 2005-04-22 00:45:41 +00:00
foobar f2d086127c - Fix birdstep support (no SQLDataSources() support in it) 2005-04-21 23:01:53 +00:00
Ilia Alshanetsky 8b8940ba84 php_error() -> php_error_docref(). 2005-04-21 21:11:23 +00:00
foobar 287a31e053 - Allow using --enable-versioning with any SAPI module
# It's only used if the php.sym file exists!
# Have fun Sara :)
2005-04-21 15:02:34 +00:00
foobar 9af93dbb41 Expose EXEEXT and use for cli/cgi binaries 2005-04-21 14:57:53 +00:00
foobar 4c3fdcaa4e - Fixed bug #32647 (Using register_shutdown_function() with invalid callback can crash PHP) 2005-04-21 14:44:29 +00:00
foobar 62a1f82e4a Fix test when register_long_arrays is off in your php.ini 2005-04-21 14:22:53 +00:00
foobar e6a70fd0d3 Added test for bug #32647 2005-04-21 14:17:52 +00:00
foobar 714080f10f bug => Bug 2005-04-21 14:04:12 +00:00
foobar e0c4f9b9be - Possible fix for bug #32778 2005-04-21 11:19:29 +00:00
Dmitry Stogov bd06b244a7 Fixed wrong SoapFault codes. The codes MUST be namespace qualified. 2005-04-21 11:16:48 +00:00
Antony Dovgal 1c4ca6a32e add *.php to cvsignore 2005-04-21 10:20:50 +00:00
c1b2990d0e ChangeLog update 2005-04-21 00:35:46 +00:00
Ilia Alshanetsky 4eccd5df70 Fixed ZTS build of fdf extension. 2005-04-20 22:51:45 +00:00
Brian France e836164570 Added support for .cc files in extensions. 2005-04-20 20:48:19 +00:00
Georg Richter 2bcae57b31 another fix for last commit (committed from wrong tree) :( 2005-04-20 13:24:08 +00:00
Georg Richter 9c1960c398 fixed typo in last commit :( 2005-04-20 13:03:01 +00:00
Georg Richter 649a8b18ef added support for data truncation (bind_result) for MySQL 5.0.5 2005-04-20 12:50:13 +00:00
Dmitry Stogov 9d2de24ab5 Fixed bug #32776 (SOAP doesn't support one-way operations) 2005-04-20 10:59:02 +00:00
Dmitry Stogov d8b50c8175 space -> tab 2005-04-20 08:44:05 +00:00
Dmitry Stogov 7288226dba Support for element's form and schema's elementFormDefault attributes (qualified/unqualified) 2005-04-20 08:30:43 +00:00
Dmitry Stogov c4a7ee45ad Some tests were fixed 2005-04-20 06:36:10 +00:00
f2ae989262 ChangeLog update 2005-04-20 00:43:11 +00:00
Marcus Boerger 67a226d910 - Add ReflectionProperty::getDocComment() 2005-04-19 22:04:59 +00:00
foobar b8ac8eeca6 - Never use Z_TYPE* macros on non-zvals. 2005-04-19 22:04:28 +00:00
Ilia Alshanetsky acbeba2a50 Removed unused var. 2005-04-19 20:55:02 +00:00
Ilia Alshanetsky 569138e0c0 removed unused var. 2005-04-19 20:53:54 +00:00
Andrey Hristov 5778fccbbb add INT_MAX and INT_SIZE constants.
#64bit machines are getting wider usage and these are needed
2005-04-19 17:30:07 +00:00
Andrey Hristov 2652762dcd MFB 2005-04-19 15:45:07 +00:00
Andrey Hristov eef94ff4bb add a test case for Bug #32405 (the previous commit incorporated a fix
for it).
2005-04-19 13:29:37 +00:00
Andrey Hristov 2a3c71b833 - nail down another 64bit problem. this will fix about 14 failing tests
on amd64 (probably other 64 bit arch).
- use ulong for this boolean variable, as it was before
- throw an warning if offset passed to mysqli_stmt_data_seek is negative
2005-04-19 13:28:41 +00:00
Andrey Hristov 155b90db20 - fixing all "long" into "int" fetching problems (cause memory corruption
on 64 bit)
- nail down a problem because of the new MYSQL_TYPE_NEWDECIMAL introduced
  in MySQL 5.0+
- Add more info to the autocommit test
2005-04-19 12:59:16 +00:00
foobar 0e57528666 No c++ comments in C code 2005-04-19 11:41:04 +00:00
foobar cb0c9ac022 - This is not C++ code 2005-04-19 11:28:02 +00:00
Wez Furlong 7013788711 merge from branch: fixes for #32758 and #32759 2005-04-19 06:14:56 +00:00
Ilia Alshanetsky e211d4e3ae Fixed bug #32753 (Undefined constant SQLITE_NOTADB). 2005-04-19 02:58:19 +00:00
aee0f87ccd ChangeLog update 2005-04-19 00:35:13 +00:00
Rob Richards 334d756ffa Fix bug #32755 Segfault in replaceChild() when DocumentFragment has no children
update test
2005-04-18 23:07:50 +00:00
Andrey Hristov 4033ad1dd2 don't null it - let the engine do its magic ;) 2005-04-18 21:01:05 +00:00
Wez Furlong 195f69f0c7 merge bug fixes from branch 2005-04-18 16:38:31 +00:00
Anantha Kesari H Y ea6d23b8c0 PHP_OS and PHP_UNAME need to be hardcoded for cross builds 2005-04-18 09:46:53 +00:00
Dmitry Stogov ba22efa25c Missing files were added 2005-04-18 07:54:46 +00:00
Dmitry Stogov 4e04b5b5fb Fixed memory leak in debug_backtrace() 2005-04-18 07:25:20 +00:00
Georg Richter 21cae3966c cursor support for 5.0.4 (STMT_ATTR_CURSOR_TYPE changed to enum) 2005-04-18 06:03:29 +00:00
Ilia Alshanetsky 0810696e50 removed unused vars. 2005-04-18 03:04:15 +00:00
Ilia Alshanetsky c17b18689c Checks not needed, done by ext/libxml already. 2005-04-18 02:43:42 +00:00
d28acc8452 ChangeLog update 2005-04-18 00:35:20 +00:00
Marcus Boerger 43a5cee728 - Add more tests 2005-04-17 20:33:20 +00:00
Marcus Boerger 7aad424332 - Fix special cases of property_exists() 2005-04-17 20:16:14 +00:00
Marcus Boerger 79b9084eef - Fix logic 2005-04-17 20:15:23 +00:00
Ilia Alshanetsky 6de75a77c6 Added missing safe_mode & open_basedir checks. 2005-04-17 18:05:03 +00:00
foobar 87c931695f - Fixed bug #30819 (Better support for LDAP SASL bind) 2005-04-17 16:25:59 +00:00
foobar a1127a736b - Removed unnecessary NEWS entry
# There is no need to have this kind of entries in NEWS file
# when the problem only exists in CVS for day or two..
2005-04-17 16:11:49 +00:00
foobar 36064e120e - Remove relic 2005-04-17 13:37:20 +00:00
Derick Rethans bb8988109d - Fixed bug #32735 (Compile error in GD extension). 2005-04-17 10:17:03 +00:00
foobar d5d9c6b8f3 - Fixed bug #31887 (Custom 5xx error does not return correct HTTP response message) 2005-04-17 03:37:05 +00:00
65c6833d66 ChangeLog update 2005-04-17 00:37:12 +00:00
Sara Golemon f838f8e37d method_exists() regression test 2005-04-16 15:36:22 +00:00
Sara Golemon 083795cbbf Fix method_exists(), pce is fetched, but ce is used 2005-04-16 15:24:56 +00:00
foobar b79838dab8 retype 2005-04-16 12:29:00 +00:00
Pierre Joye 58f441e2f7 - Typo 2005-04-16 12:26:16 +00:00
Pierre Joye 11c59f6d8f - Entry for imageconvolution addition 2005-04-16 12:25:32 +00:00
Pierre Joye 3963ba649d - export imageconvolution to userland, making people happy to do not
use the predefined ones :)
2005-04-16 12:12:24 +00:00
Rasmus Lerdorf 4162bd8b21 I think this is a cleaner emboss filter. Less fringing. 2005-04-16 09:20:59 +00:00
e6614e451d ChangeLog update 2005-04-16 00:34:23 +00:00
Rasmus Lerdorf d0f4028194 The emboss and edge detection matrices are swapped 2005-04-16 00:04:52 +00:00
Rasmus Lerdorf 802c8e83c9 Don't do PDO here if PDO is disabled 2005-04-16 00:04:27 +00:00
foobar b154e82d24 - Fixed bug #32719 (strval() fails to zero terminate strings) 2005-04-15 22:46:37 +00:00
foobar e5697cc0ad Add some more cases 2005-04-15 22:25:03 +00:00
foobar 5efe7cf99a Added test for strval() function 2005-04-15 22:19:53 +00:00
foobar 82819f3061 - Use correct type (bug #32720) 2005-04-15 22:06:03 +00:00
Marcus Boerger 5b21e48557 - Fix even though we already know that the function will be renamed 2005-04-15 18:53:42 +00:00
Andrei Zmievski 4fbddd03d7 Fix certain operations to stop relying on presence of read_property and
write_property handlers. They may be NULL'ed out by certain objects
pretending to be pure arrays, for example. Do checks first.
2005-04-15 17:15:18 +00:00
Uwe Schindler 91b587f884 Remove include_path support from md5_file/sha1_file again 2005-04-15 17:13:54 +00:00
Uwe Schindler 9cde55f8ed use streams api for md5_file and sha1_file. Added parameter use_include_path similar to other PHP file functions. Documentation update outstanding 2005-04-15 14:29:32 +00:00
Uwe Schindler c4e788b03c fix various solaris problems by replacing stdio with posix io where possible 2005-04-15 09:14:38 +00:00
6ead36dcf4 ChangeLog update 2005-04-15 00:39:27 +00:00
foobar 519f381fca - Regenerated with re2c 0.9.6 (fixes severe bugs) 2005-04-14 22:38:29 +00:00
foobar 172f3af8ed - Add support for latest Birdstep 2005-04-14 21:17:20 +00:00
Marcus Boerger 4f3b12b3fd - Rename class File to FileObject
# by popular demand
2005-04-14 21:02:09 +00:00
Andrey Hristov e23f62fc4f - don't use short tag
- detect CLI binary and don't print &lt ;br &lt; in this case
2005-04-14 16:05:05 +00:00
Ilia Alshanetsky 378776dc33 missing header (re2c 0.9.4 built .c file) 2005-04-14 14:01:11 +00:00
Ilia Alshanetsky e546162f2c Added missing header. 2005-04-14 14:00:39 +00:00
Ilia Alshanetsky e87127af69 MFB43: Fixed bug #31583 (php_std_date() uses short day names in
non-y2k_compliance mode).
Fixed bug #31689 (PHPAPI missing for php_std_date() and php_parse_date()).
2005-04-14 13:34:05 +00:00
dac4eb1c70 ChangeLog update 2005-04-14 00:42:29 +00:00
Ilia Alshanetsky fc51ec9e12 Removed unused vars. 2005-04-13 23:05:23 +00:00
Antony Dovgal 2c511712f7 disable pg_cmdtuples() too, if there is no pg_affected_rows() 2005-04-13 22:11:35 +00:00
Derick Rethans cba30657d9 - MFH43: Fixed bug #32699 (pg_affected_rows() was defined when it was not
available).
2005-04-13 21:48:33 +00:00
Antony Dovgal 36d13eb7c9 add testcase for bug #30833 2005-04-13 08:23:39 +00:00
ecf95a1e66 ChangeLog update 2005-04-13 00:34:35 +00:00
Frank M. Kromann 7bf2fe5296 Fix for #32682. Error on module shutdown when called from activescript 2005-04-12 17:45:30 +00:00
Ilia Alshanetsky d5847b9cf7 Fixed compiler warning. 2005-04-12 16:41:42 +00:00
Antony Dovgal a13b29add7 fix #30833 (array_count_values modifying input array) 2005-04-12 14:00:54 +00:00
Stanislav Malyshev 5ddf66e004 fix memory corruption if one on the on_modify handlers errors out 2005-04-12 13:06:39 +00:00
Ilia Alshanetsky ce73b66466 Fixed compiler warning. 2005-04-12 01:00:48 +00:00
68798e50ee ChangeLog update 2005-04-12 00:35:50 +00:00
Frank M. Kromann 81837f718b Don't truncate the .options file when a database is started without the optional options parameter. 2005-04-11 19:22:01 +00:00
Antony Dovgal 2a83dbdf1c revert the patch, the problem seems to be somewhere else 2005-04-11 15:19:27 +00:00
Harrie Hazewinkel e9224d0bd1 Converting the usage of the integer based internal commands into
MACROS to ease future extensions.
2005-04-11 14:59:42 +00:00
Harrie Hazewinkel 452b4cdba1 Adding support for a getbulk oriented walk.
The getbulk can only be used for SNMPv2c and SNMPv3.
2005-04-11 14:56:44 +00:00
Dmitry Stogov 37887f1bd0 Fixed SIGSEGV on serializing data with circular references 2005-04-11 11:58:19 +00:00
Dmitry Stogov 37eee73274 Support for encoding/decoding of private and protected members 2005-04-11 09:27:47 +00:00
0c6cd5f5f7 ChangeLog update 2005-04-11 00:35:20 +00:00
Andrey Hristov 8dcbeae90d news 2005-04-10 21:45:25 +00:00
Andrey Hristov d9f5f1ee08 fix memory corruption on 64bit in imagefttext(),
domdocument::load() and domdocument::loadxml()
2005-04-10 21:37:17 +00:00
Andrey Hristov 628b8cae7d fix proto. return true instead of null 2005-04-10 21:23:27 +00:00
Andrey Hristov ce36c5f3b1 simplify code (no need of local variable - return directly) 2005-04-10 20:57:31 +00:00
foobar 5fe1be8b5e - Say in the help too this is the handler module.. 2005-04-10 19:32:19 +00:00
foobar d7f848d069 Might not be obvious for everyone :) 2005-04-10 19:29:08 +00:00
foobar 8509f06056 - This was supposed to be escaped with \ 2005-04-10 19:23:59 +00:00
foobar 338bdf1587 Add more detailed failure msg. (bug #32649) 2005-04-10 19:18:37 +00:00
foobar 28ffae8ad0 - Make VC6 happy 2005-04-10 19:07:38 +00:00
Ilia Alshanetsky 6f539ae99e Added time_sleep_until() function, which is a high precision mechanism of
making a script sleep until specified timestamp.
2005-04-10 16:25:11 +00:00
de3a7cecc9 ChangeLog update 2005-04-10 00:39:16 +00:00
Sara Golemon dc8823b565 Fold validation into an inlined function per Andi's suggestion 2005-04-09 19:36:49 +00:00
6e58f898d5 ChangeLog update 2005-04-09 00:36:05 +00:00
foobar ac53cdfb2f - Nuked some PECLed extensions 2005-04-08 21:17:07 +00:00
foobar ab5072df2a Removed non-existing sapi/activescript dsp 2005-04-08 21:10:27 +00:00
foobar 7af1dfa8cb - Fixed bug #32587 (Apache2: errors sent to error_log do not include timestamps) 2005-04-08 20:32:14 +00:00
Rob Richards 5313e98b72 - Fixed bug #32615 (Segfault in replaceChild() using fragment when
previousSibling is NULL)
- add test
2005-04-08 15:58:24 +00:00
Ilia Alshanetsky 2fae7f1e71 Missing part of the patch for bug #32589 2005-04-08 15:04:34 +00:00
Marcus Boerger d100328de8 - Fix memory corruption found by rob 2005-04-08 14:33:00 +00:00
Marcus Boerger c4dbeca169 - Ensure we see all errors. No need for () in return 2005-04-08 14:06:05 +00:00
foobar 4f615d3cff remove duplicate entry 2005-04-08 13:36:23 +00:00
Marcus Boerger 53e5eb8032 - Add new test 2005-04-08 13:34:30 +00:00
Marcus Boerger 32182b190a - Add property_exits() 2005-04-08 13:33:15 +00:00
Marcus Boerger adb3d0197e - No E_ERROR when we just check (where did my 0->1 change go on first commit?) 2005-04-08 12:24:09 +00:00
Rob Richards 9c3919c3a3 fix test 2005-04-08 12:18:57 +00:00
Marcus Boerger 40cc0b7724 - No E_ERROR when we just check, here visibility simply means there is none 2005-04-08 12:15:24 +00:00
Marcus Boerger 698d301c1c - Simplify getting property info and make it an api function 2005-04-08 11:35:11 +00:00
5921e6c039 ChangeLog update 2005-04-08 00:37:35 +00:00
Jon Parise 34785cf602 Spell "overridden" correctly. 2005-04-07 23:33:03 +00:00
Ilia Alshanetsky 5355bdc788 Fixed bug #32533 (proc_get_status() returns the incorrect process status). 2005-04-07 23:07:45 +00:00
foobar d57f08147d - Fixed bug #32591 (ext/mysql: Unsatisfied symbol: ntohs with HP-UX) 2005-04-07 22:23:15 +00:00
foobar f3ee713a42 Fix the echo/backquote issues + aclocal 2005-04-07 22:03:02 +00:00
foobar aea6208e9e - Cleanup a bit. And make use of shtool mkdir 2005-04-07 20:39:02 +00:00
foobar ce36ef5787 - Reword the send-report-part a bit. (bug #32624) 2005-04-07 20:22:55 +00:00
foobar 355eefe5f9 - Nuke the code duplication 2005-04-07 20:15:21 +00:00
foobar 9356d7fc64 Fix build when USE_ZEND_ALLOC is 0 2005-04-07 16:22:15 +00:00
Dmitry Stogov d976e3d165 Fixed indentation 2005-04-07 16:17:08 +00:00
Dmitry Stogov b14271dbfa Fixed wrong result of cal_days_in_month() with bad dates 2005-04-07 16:12:27 +00:00
Zeev Suraski 779f5c5c19 Fix strdup() bug when USE_ZEND_ALLOC is disabled 2005-04-07 13:59:45 +00:00
Uwe Schindler cd47b3c542 Bug #32614 - prevent from crahsing with segfault on solaris if fdopen() fails - this fixes NOT the stdio-problem on solaris! 2005-04-07 07:29:14 +00:00
foobar e2e53b6511 - Added the $PHP_AUTOCONF/$PHP_AUTOHEADER usage to phpize 2005-04-07 06:25:28 +00:00
a85e6ea0d4 ChangeLog update 2005-04-07 00:34:35 +00:00
foobar 7adac251e3 - Not every OS has ldd.. 2005-04-06 22:14:27 +00:00
foobar 1b3b55a858 Regenerated with re2c 0.9.4 2005-04-06 19:42:36 +00:00
foobar 4ad9f76523 Keep removed stuff in top.. 2005-04-06 16:07:24 +00:00
Marcus Boerger 733aa2e949 - Make class_parentS() and class_implements() accepts class names as well 2005-04-06 15:16:45 +00:00
Ilia Alshanetsky 1d60050312 Removed php_check_syntax() function, it never worked properly. For now
use shell_exec("php -l script_name") or similar.
2005-04-06 14:19:14 +00:00
Ilia Alshanetsky a7ae41bf89 Fixed bug #31363 (broken non-blocking flock()).
# Patch by ian at snork dot net
2005-04-06 13:57:30 +00:00
Christian Stocker 997690b132 - Added optional first parameter to XsltProcessor::registerPHPFunctions to only
allow certain functions to be called from XSLT.
2005-04-06 12:26:29 +00:00
Antony Dovgal e7a2efe053 do not try to read after EOF 2005-04-06 08:26:06 +00:00
Georg Richter f6ecb58448 fix for bug #32282 (segfault in mysqli_fetch_array on 64-bit) 2005-04-06 06:47:12 +00:00
e89235fa17 ChangeLog update 2005-04-06 00:36:12 +00:00
Antony Dovgal 33677ddb95 remove proto, it's internal func 2005-04-05 20:31:10 +00:00
Ilia Alshanetsky 6f13b138a7 Added another search patch for magic file (fixes bug #3232). 2005-04-05 15:12:52 +00:00
Ilia Alshanetsky cb8d20760c Fixed bug #32589 (Possible crash inside imap_mail_compose, with charsets). 2005-04-05 14:47:47 +00:00
Marcus Boerger 7e7775a328 - Register class File
- Remove superflous ;
- Stop spl_autoloading on pending exception
2005-04-05 09:24:53 +00:00
Marcus Boerger 2f8d672bfc - Use correct var name 2005-04-05 09:23:50 +00:00
Marcus Boerger 58d45bfe2e - Add new test 2005-04-05 09:23:14 +00:00
Marcus Boerger d77945ef78 - Just return FAILURE & allow NULL without emmidiate error 2005-04-05 09:16:27 +00:00
Ilia Alshanetsky d9aea604b3 Fixed bug #30362 (stream_get_line() not reading data correctly). 2005-04-05 03:00:04 +00:00
0b0fc93a55 ChangeLog update 2005-04-05 00:35:37 +00:00
Sara Golemon 51852db0df BugFix #32563
This could have been done in stream_wrapper_register()
without introducing the slight performance hit on
wrapper registration since anyone registering a wrapper
in an extension should know better.

The important thing is that since locate_wrapper makes
the assumption that all schemes will be /^[a-z0-9+.-]+$/i
Anything which registers them should make the same assumption as well.
2005-04-04 19:34:32 +00:00
foobar 760439567a Update credits 2005-04-04 18:50:54 +00:00
foobar 2887f89075 remove empty lines 2005-04-04 18:14:27 +00:00
foobar 28b13f50e6 Added testcase for bug #30362 2005-04-04 18:06:16 +00:00
Stanislav Malyshev 95f860d025 MF50: fix backtraces - non-Zend classes have names too 2005-04-04 17:23:38 +00:00
Rui Hirokawa 8235a70ef9 added a server variable PHP_AUTH_DIGEST to support HTTP Digest Authentication. 2005-04-04 15:06:36 +00:00
Uwe Schindler 4558cdade6 Bug #32491 (File upload error - unable to create a temporary file) - Changing file upload from stdio to posix 2005-04-04 14:59:40 +00:00
Antony Dovgal f2a3b12445 fix #32560 (configure looks for incorrect library - libdb2.so instead of libdb2.a,
which is used actually)
2005-04-04 10:50:32 +00:00
foobar 25dd01d428 - If this is supposed to be the configuration we recommend,
we've been recommending to not use short-open-tag for a long time.
  E_STRICT too for 5.1 since it promotes the right ways (tm) to do things.
#
# This is for 5.1, 5.1, 5.1, 5.1...
#
2005-04-04 07:55:13 +00:00
Jon Parise 3ac5ec3b7e Adding the ability to override the autotools executables used by the
buildconf script via the PHP_AUTOCONF and PHP_AUTOHEADER environmental
variables.
2005-04-04 07:16:01 +00:00
b30fd67736 ChangeLog update 2005-04-04 00:35:42 +00:00
foobar f20c5ce7e1 MBFN2B 2005-04-03 21:57:34 +00:00
Uwe Schindler 3fb36bf08e Add sapi.get_request_time() to NSAPI 2005-04-03 19:16:23 +00:00
Ilia Alshanetsky ca10457a58 Fixed bug #32530 (chunk_split() does not append endstr if chunklen is
longer then the original string).
2005-04-03 18:08:40 +00:00
George Schlossnagle 1d25fc5c7b actually commit the SOAP interop tests this time. 2005-04-03 15:51:22 +00:00
George Schlossnagle 55c25c7275 Fix qualified names for attributes according to attributeFormDefault.
Add SOAP Interop tests from Dmitry.
2005-04-03 15:39:56 +00:00
Antony Dovgal 1c4eb9b684 fix typo 2005-04-03 13:06:08 +00:00
Antony Dovgal b2858fb449 fix output_reset_rewrite_vars() returning false everytime 2005-04-03 12:19:23 +00:00
foobar c67da24e31 Fix another title 2005-04-03 11:17:54 +00:00
foobar 0ee465d2a0 fix description 2005-04-03 11:15:39 +00:00
4ff40069af ChangeLog update 2005-04-03 01:39:51 +00:00
foobar fc883fd477 Partial fix test: It is still possible to use expat libs with ext/xml.. 2005-04-03 00:12:26 +00:00
Greg Beaver 48f4e4bb87 update to support local install, remove -n switch 2005-04-02 23:50:53 +00:00
foobar 9f21d8e72c Fix the name (and thus make sure PEAR will not install atm) 2005-04-02 23:47:54 +00:00
foobar bf3286cd6c Fixed: [PEAR] Archive_Tar: XML error: not well-formed (invalid token) at line 22 2005-04-02 23:16:46 +00:00
foobar c45a0c918f Make sure php_mbstring.dll is first to getting loaded..(bug #32552) 2005-04-02 23:04:02 +00:00
foobar b543778fed fix tests 2005-04-02 22:57:42 +00:00
f1b024668f ChangeLog update 2005-04-02 01:33:42 +00:00
Greg Beaver 62f305e5a7 add missing file 2005-04-01 22:03:59 +00:00
foobar 7f4e28d2bd - Fixed bug #32504 (shtool problem on make test) 2005-04-01 13:40:46 +00:00
Joe Orton d17ccbdeee Use PHP_LIBDIR. 2005-04-01 11:12:45 +00:00
1d5691e2cc ChangeLog update 2005-04-01 01:39:40 +00:00
Marcus Boerger 7adb2b0c0b - Add RecursiveDirectoryIterator::getSubPathname() 2005-03-31 23:02:20 +00:00
Marcus Boerger d383735978 - Add RecursiveDirectoryIterator::getSubPath() 2005-03-31 21:51:46 +00:00
Marcus Boerger 530917b463 - Make iterator_to_array() accept Traversable 2005-03-31 21:49:47 +00:00
foobar a119050ebb These tests require register_long_arrays=1 2005-03-31 19:47:19 +00:00
foobar 1f3419a4db fix some skip conditions.. 2005-03-31 19:43:48 +00:00
Marcus Boerger 3eb4162122 - Bugfix #32521 (apache2handler accidental crashes caused by SPL) 2005-03-31 17:17:38 +00:00
foobar 3a947f256a C++ fix 2005-03-31 07:37:39 +00:00
d5b2c5e286 ChangeLog update 2005-03-31 01:32:08 +00:00
Joe Orton 6974b5ecce Mark more private functions as static. 2005-03-30 13:43:36 +00:00
Edin Kadribasic 2d45bbb9cf Updated install instructions from the documentation project (Philip Olson) 2005-03-30 13:15:05 +00:00
Joe Orton 5aa95520cd Mark private functions as static. 2005-03-30 12:56:58 +00:00
11e0ab6a93 ChangeLog update 2005-03-30 01:32:45 +00:00
Antony Dovgal e499a1c296 fix segfault & buffer overrun when there is no PDO drivers plugged in
(patch by su1d@phpclub.net)
2005-03-29 17:23:36 +00:00
Sara Golemon 29ede46872 BugFix #31137 stream_filter_remove() segfaults when stream already closed 2005-03-29 04:02:03 +00:00
1a356bc40e ChangeLog update 2005-03-29 01:32:11 +00:00
Ilia Alshanetsky 6071843d4c Proper fix for the memory leak. 2005-03-28 18:46:57 +00:00
Ilia Alshanetsky ec841c8e12 Fixed memory leak when variables_order does not contain 'S'. 2005-03-28 18:09:28 +00:00
Dmitry Stogov caeeebebc1 Fixed handling of attributes' namespaces 2005-03-28 18:06:29 +00:00
Greg Beaver d78d3ac210 update to current bundle ideal 2005-03-28 17:04:00 +00:00
Greg Beaver 9752cbde12 merge in PEAR 1.3.5 2005-03-28 16:38:59 +00:00
Dmitry Stogov a3f2a3aab5 Fixed handling of attributes' namespaces 2005-03-28 16:28:04 +00:00
Dmitry Stogov 8dff99116d Fixed wrong SOAP headers encoding/decoding. 2005-03-28 15:21:50 +00:00
Pierre Joye d8824f2d5c - remove "debug" code 2005-03-28 08:17:17 +00:00
Pierre Joye 6d46acfc70 - MFB, imagerectangle draws 2x each corners (alpha channel uglyness) 2005-03-28 08:14:30 +00:00
Joey Smith 4e10995140 Adding comments to .ini files at philip@php.net's request. 2005-03-28 07:26:06 +00:00
039bd86987 ChangeLog update 2005-03-28 01:34:07 +00:00
Edin Kadribasic e923407cc5 Reshufle includes to make it compile on windows 2005-03-28 00:07:24 +00:00
Pierre Joye c8ce18c155 - allow to keep or ignore the transparent color in imagerotate (thx
Ken Coar to report this "bug")
- be sure to restore alphablending in imagefill
- use zend_parse_parameter in imagerotate
2005-03-27 23:43:52 +00:00
Ilia Alshanetsky f95651e338 revert copy patch. 2005-03-27 15:52:49 +00:00
e707137ed3 ChangeLog update 2005-03-27 01:34:12 +00:00
Edin Kadribasic 35f051b502 Use PEAR bundle from the build template 2005-03-26 21:32:20 +00:00
Edin Kadribasic 2e0ddb39bc Script that creates PEAR bundle dir for distribution 2005-03-26 21:14:19 +00:00
foobar a8b29a2e8f - Made it possible to build ext/xmlrpc with libxml2 2005-03-26 03:13:58 +00:00
foobar 24eb2bfabc - Prevent compiling shared extensions when --enable-versioning is used
- Fix -export-symbols in Linux in the bundled libtool.m4:
  o http://lists.gnu.org/archive/html/libtool/2002-07/msg00029.html
# more about this:
# http://marc.theaimsgroup.com/?l=php-dev&m=106629582813118&w=2
2005-03-26 03:09:09 +00:00
foobar da53094765 BFN 2005-03-26 02:44:04 +00:00
foobar fcba5e099c - Fixed bug #28839 (SIGSEGV in interactive mode (php -a))
(kameshj at fastmail dot fm)
2005-03-26 02:43:02 +00:00
foobar d203f88665 - Fix windows build (using config.w32 and keeping sync with config.m4) 2005-03-26 02:19:56 +00:00
2a256d5114 ChangeLog update 2005-03-26 01:37:31 +00:00
foobar 4e3b8c61dd Fix path 2005-03-26 01:29:43 +00:00
foobar 69cad0226d These entries do not belong in NEWS file (internal issues) 2005-03-25 23:16:28 +00:00
Andi Gutmans bba731e66b - Increment year in copyright notice 2005-03-25 16:13:47 +00:00
Christopher Kings-Lynne 030ebaaa45 (PHP pg_unescape_bytea) Use libpq version of PQunescapeBytea if it exists.
# The version in libpq is newer and faster than the one in PHP, but it is
# necessary for me to add a string copy for freeing purposes.  This copy
# is only needed in Windows AFAIK, how can I detect that?
2005-03-25 06:26:31 +00:00
8817f64457 ChangeLog update 2005-03-25 01:34:02 +00:00
Ilia Alshanetsky e8bd3b9b4f Slightly safer code. 2005-03-25 00:30:43 +00:00
Marcus Boerger 3f16ad98c9 - Second part of removing temp solution 2005-03-24 23:56:14 +00:00
Marcus Boerger bfd0e28e5c - Remove potential bad solution for now
# This seemed to be necessary since there were cases where exceptions were
# ignored by exit() with the result of a silent exit without showing the
# pending exception. Since atm we cannot reproduce it anymore we drop it.
2005-03-24 23:52:34 +00:00
foobar f370582500 Remove: Has not existed for ages.. 2005-03-24 17:16:34 +00:00
Marcus Boerger d27be11233 - Fix null handling found by thies 2005-03-24 12:32:06 +00:00
Marcus Boerger 2906d6570c - Add new test 2005-03-24 12:31:37 +00:00
0a65a3d505 ChangeLog update 2005-03-24 01:35:55 +00:00
Andi Gutmans b6554f5ad7 - Fix typos 2005-03-24 01:11:11 +00:00
Antony Dovgal 76e07faf87 fix leak when register_long_arrays is off 2005-03-24 00:17:16 +00:00
Moriyoshi Koizumi 2cba0ab304 - Fix bug #32311 (mb_encode_mimeheader() does not properly escape characters.) 2005-03-23 23:22:16 +00:00
Moriyoshi Koizumi 3b39b2237f - Add test case for iconv_mime_encode(). 2005-03-23 23:07:42 +00:00
Moriyoshi Koizumi 8f14211e13 - Add sanity check in iconv_mime_encode(). Leaving the third parameter
unspecified would yield bus error.
2005-03-23 23:06:38 +00:00
Andrei Zmievski 992c28db75 Consolidate: call _get_zval_ptr_var() for IS_VAR case in
_get_zval_ptr().
2005-03-23 21:05:56 +00:00
Dmitry Stogov 2283e471f8 windows compatibility fix 2005-03-23 15:12:54 +00:00
Christopher Kings-Lynne 3e6fce84bb - Use a replacement for PQunescapeBytea so that linking against a pre-7.3
libpq is possible.  This is exactly what ext/pgsql currently does.

# I hope this is an acceptable improvement.
2005-03-23 08:52:40 +00:00
Dmitry Stogov e31bc5a643 Allow define connection timeout throught "connection_timeout" option in SoapClient constructor. 2005-03-23 08:08:54 +00:00
Marcus Boerger 15ed825d6e - Notices shouldn't be treatedas errors and thus not being conidered to be
converted to exceptions.
2005-03-23 07:54:22 +00:00
Dmitry Stogov 4ecbf1792b Fixed bug #31695 (Cannot redefine endpoint when using WSDL) 2005-03-23 07:11:55 +00:00
Christopher Kings-Lynne 63ed4a1996 - Ensure that ext/pgsql tests work when linked against 7.2 or lower libpq 2005-03-23 03:24:41 +00:00
9b1c9891fc ChangeLog update 2005-03-23 01:35:05 +00:00
foobar 8865ae43c2 Missing line 2005-03-23 00:44:13 +00:00
foobar 35cfbee1ae - Missing file 2005-03-23 00:39:43 +00:00
foobar a3e46ecde5 clean 2005-03-23 00:37:34 +00:00
Moriyoshi Koizumi 542901d705 - Add Armenian encoding / NLS (patch by Hayk Chamyan) 2005-03-22 22:22:11 +00:00
foobar a075b651be Added SKIPIF 2005-03-22 16:03:10 +00:00
foobar 77910ec63f Addded test for locale aware sort 2005-03-22 15:38:25 +00:00
Antony Dovgal 9ba5535993 fix #28803 (enabled debug causes bailout errors with CLI on AIX
because of fflush() called on already closed filedescriptor)
2005-03-22 15:08:52 +00:00
Ilia Alshanetsky 7af2c5e44b Fixed compiler warning. 2005-03-22 14:44:23 +00:00
Marcus Boerger dce82da87d - Add function pdo_drivers() 2005-03-22 10:36:25 +00:00
Marcus Boerger 73a6a31053 - the driver's key name is not zero terminated, hence we need to either
estrNcpy() it or use the driver struct.
- table headers do not support single column mode so change to two cols
- there should be only one table header
2005-03-22 10:26:51 +00:00
Dmitry Stogov fedbd2145a Fixed bug #30106 (SOAP cannot not parse 'ref' element. Causes Uncaught SoapFault exception) 2005-03-22 10:19:08 +00:00
Derick Rethans 5d0281d060 - Changed to reflect "current practise" 2005-03-22 09:01:13 +00:00
Christopher Kings-Lynne e2b87e6230 Tweak some #if's to be more orthogonal.
(PHP pg_set_error_verbosity) New function to set PostgreSQL error verbosity

(PHP pg_copy_from) Use non-deprecated API if it is available

(PHP pg_copy_to) Use non-deprecated API if it is available
2005-03-22 08:51:23 +00:00
Ilia Alshanetsky b30d8beebf Simplify argument checking code for array_combine(). 2005-03-22 01:45:17 +00:00
3b7f8ef5a1 ChangeLog update 2005-03-22 01:34:26 +00:00
Marcus Boerger 041524feee - Fix Bug #32394 offsetUnset() segfaults in a foreach 2005-03-21 20:07:33 +00:00
Dmitry Stogov 756c5784c1 Support for <soap:body> "parts" attribute 2005-03-21 15:52:53 +00:00
Andrei Zmievski 1a3677ea27 Define PHP_ABSTRACT_ME 2005-03-21 06:43:28 +00:00
Andrei Zmievski 9bf6a7f229 internal_function->fn_flags is not initialized at this point 2005-03-21 06:20:17 +00:00
John Coggeshall c590531c07 Added three new properties to the node: line, column and if it is propreitary or not 2005-03-21 03:54:29 +00:00
0ac2c94ffa ChangeLog update 2005-03-21 01:42:27 +00:00
Wez Furlong 6895ef99c0 fix my silly typo 2005-03-21 01:24:36 +00:00
Marcus Boerger 06a96fdfe5 - Fix test (warnings are expected since there is no support for this) 2005-03-21 00:32:48 +00:00
Marcus Boerger a66e14645c - Add new tests 2005-03-21 00:29:25 +00:00
Marcus Boerger c9108bba25 - Simplify code (only implement handlers that are necessary)
- Fix handling of read only property 'queryString'
- Fix overloading
- Move class init code to their defining .c files for simplification
- Mark class PDORow as final until there's a need to inherit this and
  someone implements the handlers correct then.
2005-03-21 00:29:06 +00:00
Marcus Boerger 29b4277e2d - Added missing description (thanks jani) 2005-03-20 22:08:16 +00:00
Marcus Boerger d7a7913476 - Add new test 2005-03-20 20:14:27 +00:00
Ilia Alshanetsky 978f50c046 Detect shtool properly when build-dir != php source dir. 2005-03-20 19:47:13 +00:00
Marcus Boerger 9c3164e487 - Update 2005-03-20 19:45:36 +00:00
Dmitry Stogov 713622d363 Fixed SoapFault::details passing 2005-03-20 09:55:47 +00:00
Zeev Suraski 18f4a3f9ff Merge 2005-03-20 09:03:40 +00:00
foobar 4d46234912 - Fixed a warning (might also be an error with some exotic compiler) 2005-03-20 02:57:10 +00:00
Christopher Kings-Lynne 721d34bebc Two of the diagnostic definitions were added in 8.0. Add appropriate #ifdefs. 2005-03-20 02:46:02 +00:00
1b42ccfbff ChangeLog update 2005-03-20 01:35:48 +00:00
Marcus Boerger 6a6eaf2b72 - More fixes to gracefully act on exception thrown in overload methods 2005-03-19 15:32:18 +00:00
Marcus Boerger 6735e8c2a7 - Update test 2005-03-19 15:15:32 +00:00
Marcus Boerger fec4937052 - Add new test 2005-03-19 15:09:11 +00:00
Marcus Boerger cf020f1334 - Fix #31185 2005-03-19 15:06:39 +00:00
foobar 5f7f88949b less wordy 2005-03-19 14:37:09 +00:00
Marcus Boerger 7b3813ea11 - We don't need to block those here (works as it works with normal error
overloading)
2005-03-19 14:27:17 +00:00
Marcus Boerger 32c2e664a6 - Fix all incarnations of bug #30266
# most probably we should emit a fatal error here but that has to be
# discussed first
2005-03-19 14:25:42 +00:00
Marcus Boerger e38141478a - Check another incarnation of bug #30266 2005-03-19 14:24:17 +00:00
Antony Dovgal f27fb2d715 fix #32373 (segfault in bzopen('/wrong/path')) 2005-03-19 13:56:00 +00:00
Marcus Boerger d23781e08d - Add missing skipif part 2005-03-19 10:58:44 +00:00
Frank M. Kromann 17264461f9 fix build when the pecl module is part of the php source tree 2005-03-19 10:55:47 +00:00
Marcus Boerger 360fbc09b7 - Interface name was changed 2005-03-19 10:55:35 +00:00
Marcus Boerger 7b2bee1d5b - Fix warnings by doing it the Zend way 2005-03-19 10:51:42 +00:00
Marcus Boerger cd3de28357 - ext/pgsql was updated 2005-03-19 10:08:57 +00:00
Christopher Kings-Lynne 3dd44c3018 Another oversight - make sure constants related to pg_result_error_field are #if'd as well as the function itself 2005-03-19 09:21:51 +00:00
Christopher Kings-Lynne e4570cdbd2 Add regression tests for pg_transaction_status and pg_result_error_field 2005-03-19 09:20:52 +00:00
Christopher Kings-Lynne 28ec3abf87 Minor oversight in #if for an internal function 2005-03-19 09:07:20 +00:00
Rui Hirokawa c30f4ab6ec oniguruma updated to 3.7.1 and changed UChar to OnigUChar. 2005-03-19 08:52:23 +00:00
Christopher Kings-Lynne 1168c30635 Added several new functions to support the PostgreSQL v3 protocol
introduced in PostgreSQL 7.4.

(PHP pg_transaction_status) New function to get in-transaction status of
                            a database connection.

(PHP pg_query_params) New function to allow execution of parameterized
                      queries.

(PHP pg_prepare) New function to allow preparing named queries.

(PHP pg_execute) New function to allow execution of named prepared
                 queries.

(PHP pg_send_query_params) New function that is the async equivalent of
                           pg_query_params.

(PHP pg_send_prepare) New function that is the async equivalent of
                      pg_prepare.

(PHP pg_send_execute) New function that is the async equivalent of
                      pg_execute.

(PHP pg_result_error_field) New function that allows highly detailed
                            error information, most importantly the
                            SQLSTATE error code

# Regression tests are included for all but 2 functions, the rest will
# follow shortly.  Docs will also follow shortly.
2005-03-19 08:46:56 +00:00
43fc6b2254 ChangeLog update 2005-03-19 01:35:34 +00:00
Andi Gutmans e9dbeabd38 - Fix typos 2005-03-19 01:11:48 +00:00
foobar fd03f4f056 Added config.w32 (modified version, original by: Grant.Croker at ca dot com) 2005-03-18 23:24:15 +00:00
Marcus Boerger 23b3d1ca24 - Readd revised version of Jani's fix:
'errors with -d having a check for invalid ini entries'
- Add -v for verbose mode
2005-03-18 22:43:40 +00:00
foobar a98460beac Revert bad idea. (no more error for invalid -d options) 2005-03-18 22:11:53 +00:00
foobar bbe98a88f3 revert 2005-03-18 22:09:31 +00:00
foobar 1524d4890f Fix stupid typos 2005-03-18 21:59:59 +00:00
foobar ebb8d72d88 Fix errors with -d having a check for invalid ini entries 2005-03-18 21:59:06 +00:00
George Schlossnagle d2731eb575 doc should not be freed here, as it is used later in the code path. 2005-03-18 15:40:04 +00:00
Greg Beaver 6a74f0a1b0 update to Archive_Tar 1.3.1 2005-03-18 01:55:10 +00:00
8197b6b678 ChangeLog update 2005-03-18 01:37:52 +00:00
Antony Dovgal 646bb71503 fix typo in error message 2005-03-17 18:12:06 +00:00
Ilia Alshanetsky 1f06bb94c6 MFB: Fixed build of exif extension on win32. 2005-03-17 17:20:52 +00:00
Ilia Alshanetsky fed3058fba Fixed compiler warning on win32. 2005-03-17 17:16:43 +00:00
Rasmus Lerdorf 00832b763f Silence a warning here on systems where off_t is a long long. 2005-03-17 16:26:24 +00:00
foobar 9c2c04b580 - Made CLI option -d output error and exit if an non-existing (or unmodifyable) entry is passed 2005-03-17 13:43:32 +00:00
Rob Richards 04d44c8a5c export php_dl to fix windows cli build 2005-03-17 12:37:18 +00:00
foobar e8895d86b3 Removed unused DEFS subst 2005-03-17 08:16:51 +00:00
foobar 37d1a4f9d3 Fixed build properly 2005-03-17 08:15:50 +00:00
foobar 2d521a73c8 Revert bad fix 2005-03-17 08:15:23 +00:00
Derick Rethans 42b9b26e45 - ZTS fixes
#- Andrei, it would be nice if you could test ZTS builds too before you
#  commit...
2005-03-17 07:31:22 +00:00
e5f7f63d36 ChangeLog update 2005-03-17 01:43:26 +00:00
Rasmus Lerdorf eb253ab571 Build fixes 2005-03-17 01:14:10 +00:00
Rasmus Lerdorf effa111c5e Fix Jani breakage 2005-03-16 22:00:07 +00:00
Ilia Alshanetsky d247e074a7 Fixed bug #32326 (Check values of Connection/Transfer-Encoding
case-incentively).
2005-03-16 20:30:17 +00:00
Harrie Hazewinkel e6ae6fc62d Adding SNMPv2 community based (i.e. protocol version) functions. 2005-03-16 14:29:40 +00:00
foobar 5d190e6b5e - Remove these relics from era when TSRM was optional. 2005-03-16 06:36:44 +00:00
Wez Furlong 7de1d279cc don't call rshutdown twice for dl()'d modules.
Spotted by Andrei.
2005-03-16 04:18:42 +00:00
9d5b3e55e3 ChangeLog update 2005-03-16 01:38:05 +00:00
Wez Furlong 35b0b8de99 fix shutdown so that dl()'d modules are unloaded after all the dtors have
been called.
2005-03-15 23:46:29 +00:00
Andrei Zmievski 06667585b5 Make it possible to load shared extensions from command line via
-dextension= mechanism.
2005-03-15 22:41:12 +00:00
Wez Furlong 5ab7264189 remove debuging code 2005-03-15 15:58:04 +00:00
Wez Furlong 6090964157 I'm a PECL citizen; even though I am HEAD of pecl/sqlite, don't assume that I
am being built against HEAD of php-src.
2005-03-15 15:57:49 +00:00
03aa52bae6 ChangeLog update 2005-03-15 01:43:31 +00:00
Ilia Alshanetsky 8c38ac19bf Fixed possible usage of str without being initialized. 2005-03-15 00:27:52 +00:00
Greg Beaver abb724a6b3 this needs updating 2005-03-14 23:57:07 +00:00
foobar a879957d43 - Fixed bug #32200 (prevent using both --with-apxs2 and --with-apxs2filter) 2005-03-14 21:11:33 +00:00
foobar 005b2d77bf - Fixed bug #18613 (Multiple OUs in x509 certificate not handled properly) 2005-03-14 21:00:03 +00:00
Rasmus Lerdorf 3c0411c496 Fix for bug #32263
This adds proto_num to request_info.  It is defaulted to HTTP 1.0 (1000)
such that it has a valid value even if the underlying sapi doesn't set it
correctly.  It is then used to determine if a 302 or a 303 should be sent
on a Location redirect.  Any non GET/HEAD HTTP 1.1 redirect will get a 303
instead of a 302 to be compatible with the HTTP spec.
2005-03-14 19:25:39 +00:00
Zeev Suraski 1dbc47c43f Clarify logic 2005-03-14 12:53:34 +00:00
Zeev Suraski 6e6a1f0e69 Merge registry fix 2005-03-14 12:42:05 +00:00
foobar 5a4c0afe31 - Back to stone-age 2005-03-14 09:47:31 +00:00
Stanislav Malyshev 7b6ec9178f ws 2005-03-14 09:21:04 +00:00
foobar 5718cb15a3 - Fixed bug #30609 (cURL functions bypass open_basedir) 2005-03-14 09:02:23 +00:00
81629076f8 ChangeLog update 2005-03-14 01:42:08 +00:00
foobar 3795a90741 *sigh* 2005-03-14 01:16:43 +00:00
Moriyoshi Koizumi 6437bc056d - Turn off incorrect case folding to let test over. 2005-03-14 01:11:54 +00:00
foobar bde0661ef6 - Move stuff that belongs in Makefile into Makefile.frag 2005-03-14 01:09:49 +00:00
Marcus Boerger 7c4cd04229 - Update tests 2005-03-13 22:35:34 +00:00
Stanislav Malyshev dd64e6dede Do not convert ZEND_HANDLE_FP to ZEND_HANDLE_STREAM but allow using reader/closer
on it
2005-03-13 17:48:45 +00:00
Ilia Alshanetsky 5bd7be94a4 Fixed compiler warning. 2005-03-13 17:03:55 +00:00
Marcus Boerger dd54f36d49 - Fix signature definition 2005-03-13 16:35:01 +00:00
Marcus Boerger c6e39471de - More exact signatures (even though complete correct not possible atm) 2005-03-13 16:34:37 +00:00
Stanislav Malyshev c3957fe1e8 Fix get_extension_funcs() - extension names are now lowercased, so should
be function arguments.
2005-03-13 15:30:10 +00:00
Andrey Hristov 96cd8a9ce6 credits to Ilia 2005-03-13 14:17:17 +00:00
Marcus Boerger d8db1c2cc5 - Actually this is a much better error decription 2005-03-13 13:22:02 +00:00
Marcus Boerger 565e832edf - Bugfix #32290 2005-03-13 13:15:08 +00:00
83c13d22e9 ChangeLog update 2005-03-13 01:36:01 +00:00
Marcus Boerger 5880260c78 - Update docu 2005-03-12 23:21:41 +00:00
Marcus Boerger 6f668d4978 - Fix extension to be .inc 2005-03-12 23:05:03 +00:00
Marcus Boerger f9de3fd02b - Allow to hook into RecursiveIteratorIterator's child handling
- Better=faster function caching for RecursiveIteratorIterator
- Check for exceptions and fix check for illegal return values
- Add UnexpectedValueException
- Add docu
2005-03-12 23:03:33 +00:00
Marcus Boerger 6dc04d98f2 - If an exception is pending we don't bail out but show the unhandled exception 2005-03-12 22:42:37 +00:00
Ilia Alshanetsky f56e5c045c A more performance friendly version of Andrey's patch. 2005-03-12 17:51:19 +00:00
Andrey Hristov 53823a7d7f FRN 2005-03-12 14:46:41 +00:00
Andrey Hristov f15c24d44c added an optional third parameter to str_word_count(), which is used as
a list of characters which are considerd "is_alpha()". Thus V14GR4 can
be extracted as one word if the user supplies "14" as charlist.
FR #31560
# Nuno, are you wishing to document this one too? :)
2005-03-12 14:41:20 +00:00
Wez Furlong 07fd652824 it's 2005 already
# and we're all too lazy to go through and update all the copyright years :)
2005-03-12 14:07:35 +00:00
Andrey Hristov 1236cfa38a - type is either 1 or 2 if second parameter is set. if not set then type
is 0.
- use the lvalue for the second rvalue
2005-03-12 13:08:19 +00:00
Andrey Hristov cc39b51d2d add a test file 2005-03-12 12:59:53 +00:00
Andrey Hristov c449002566 add test
#forgot to add this one
2005-03-12 12:58:06 +00:00
Andrey Hristov 9e939133d2 FR 32275 - fifth parameter to preg_replace() to count number of replaces
made.
#it would be nice if someone of the doc team documents it. thanks!
2005-03-12 12:03:50 +00:00
Andrey Hristov 070147105f Fixed #30871 2005-03-12 10:11:46 +00:00
Marcus Boerger 016a39195e - Fix test 2005-03-12 01:52:48 +00:00
Marcus Boerger f3a5d430fc - Fix another memleak 2005-03-12 01:46:47 +00:00
Marcus Boerger 6c73805c45 - Fix memleak 2005-03-12 01:44:04 +00:00
73aec110ce ChangeLog update 2005-03-12 01:35:45 +00:00
Wez Furlong 5248f59d1a show list of PDO drivers in phpinfo.
Highlight a possible problem area; iterator leaks when used in foreach(),
at least with sqlite2 driver.
2005-03-12 01:16:59 +00:00
Wez Furlong d88b4c734f build pdo statically on win32, so sqlite2 driver will build.
Alternatively, we could build sqlite as a shared ext, but that has more
of an impact to people upgrading.
2005-03-12 01:15:37 +00:00
Wez Furlong cbcd4271d2 build sqlite2 pdo driver on win32 2005-03-12 01:14:21 +00:00
Marcus Boerger 5985098b98 - Add tests 2005-03-12 00:51:39 +00:00
Marcus Boerger c7ec6d0ce1 - Errcode might be empty 2005-03-12 00:50:20 +00:00
Wez Furlong 9619c3b811 Fix crappy whitespace 2005-03-12 00:07:44 +00:00
Wez Furlong 52dd9f028e Implement a PDO driver for sqlite 2 2005-03-11 23:57:01 +00:00
Marcus Boerger b4a961a234 - Add new test 2005-03-11 02:32:07 +00:00
Marcus Boerger 5a94bb642f - Do not touch return_valu's refcount or is_ref 2005-03-11 02:11:44 +00:00
Marcus Boerger 4e390892b7 - Do not touch return_valu's refcount or is_ref 2005-03-11 01:52:24 +00:00
5727828651 ChangeLog update 2005-03-11 01:50:54 +00:00
Marcus Boerger 45212809b5 - Irrelevant 2005-03-11 01:32:20 +00:00
Marcus Boerger 299a17ba37 - Fix #30266 2005-03-11 01:11:54 +00:00
Marcus Boerger b924ef8796 - Don't touch refcount/is_ref 2005-03-11 00:44:34 +00:00
Marcus Boerger 1d85c3fe80 - Times have changed - php 5 relevant version now 2005-03-11 00:22:28 +00:00
Marcus Boerger faae6ac159 - Do not touch return_valu's refcount or is_ref 2005-03-11 00:14:02 +00:00
Marcus Boerger 04a08c757a - Allow to work under php 5 2005-03-11 00:11:35 +00:00
Marcus Boerger df56c39bda - Cosmetics 2005-03-10 23:52:43 +00:00
Marcus Boerger 4172ec995c - Do not touch return_valu's refcount or is_ref 2005-03-10 23:42:15 +00:00
Ilia Alshanetsky ff80321587 Final set of fixes for bug #27633.
# Many thanks to Edin for helpind analyze and resolve this bug.
2005-03-10 23:37:45 +00:00
Rob Richards e6034763ca require libxml 2.6.0 or higher 2005-03-10 22:35:18 +00:00
Rob Richards 8462621bd7 add workaround for libxml bug when using next() method
remove some no longer needed windows specific code
2005-03-10 22:32:47 +00:00
Marcus Boerger cdb042f632 - Fix fetching bound vars & tests 2005-03-10 18:48:01 +00:00
Marcus Boerger 92af2b6194 - Update tests 2005-03-10 17:55:36 +00:00
Marcus Boerger 1b93629fb8 - Fix test name 2005-03-10 15:54:52 +00:00
Zeev Suraski b31c44d0fd Oops, revert. 2005-03-10 14:33:53 +00:00
Zeev Suraski 1b5d558f91 Fix prototype 2005-03-10 14:32:16 +00:00
Marcus Boerger 38a9516a8a - Rename test script 2005-03-10 14:04:54 +00:00
Marcus Boerger 7473600dba - Make this work under 5 2005-03-10 14:02:46 +00:00
Marcus Boerger 0a93d54c53 - Bugfix #28442 2005-03-10 13:20:26 +00:00
Joe Orton 3796738681 Fix /*-within-comment warning from GCC. 2005-03-10 11:19:32 +00:00
Joe Orton bef3202d9e - Fixed bug #31717: Reject PATH_INFO if "AcceptPathInfo off" is used. 2005-03-10 11:09:32 +00:00
Magnus M��tt� e65d57535f Add tests for firebird. 2005-03-10 02:43:44 +00:00
Magnus M��tt� 72276d013a Add NOT NULL to create so the tests work with Firebird too. 2005-03-10 02:37:20 +00:00
Marcus Boerger e4599c6944 - #31562 2nd part 2005-03-10 02:32:00 +00:00
Marcus Boerger affc9bb69b - Fix #31562 2005-03-10 02:29:45 +00:00
d0d268c405 ChangeLog update 2005-03-10 01:35:35 +00:00
Marcus Boerger bd13b72164 - Wrong order of action - touch 2005-03-10 00:17:17 +00:00
Marcus Boerger 22fcd1aac7 - Fix #31442 unserialize broken on 64-bit systems
- Fix one warning
2005-03-10 00:10:21 +00:00
Marcus Boerger 34c432de7e - Fix #31442 unserialize broken on 64-bit systems
- Fix one warning
2005-03-09 23:58:44 +00:00
Antony Dovgal 3e2dd57c0a fix compile warnings 2005-03-09 21:58:20 +00:00
Magnus M��tt� 0844446176 More tests. 2005-03-09 21:02:31 +00:00
Ilia Alshanetsky 21ff96859e Fixes to ascii downloads on win32. 2005-03-09 20:52:38 +00:00
Wez Furlong a826ded3cc re-enable deps for HEAD 2005-03-09 18:21:41 +00:00
Wez Furlong e162e80d31 prep for pecl release 2005-03-09 18:21:10 +00:00
Wez Furlong 584abff629 update extension version 2005-03-09 18:18:53 +00:00
Wez Furlong 5984f7f3e1 prep for release 2005-03-09 18:14:49 +00:00
Marcus Boerger 56235c6cc8 Fix the fix 2005-03-09 10:29:27 +00:00
Derick Rethans 16d67ab9f5 - MF43: Fixed bug #28067 (partially incorrect utf8 to htmlentities mapping). 2005-03-09 10:13:05 +00:00
Antony Dovgal a2413c32ce fix build 2005-03-09 09:19:27 +00:00
Wez Furlong 95b67c9763 update in readiness for release 2005-03-09 06:04:21 +00:00
Wez Furlong f7ebff804d "thou shalt not throw exceptions except in really exceptional circumstances."
The only allowed places to throw them directly are from within the PDO class
constructors or when dealing with transaction level attributes, where
"hard-failure" is a feature.

All other errors should use the PDO error handling mechanism and respect the
users selected error mode.
2005-03-09 05:50:03 +00:00
Magnus M��tt� 591fb2d97c Add one more test. 2005-03-09 05:29:57 +00:00
Wez Furlong de1d8b91f0 prep package file for release.
fix my favourite typo.
fix compile warnings
2005-03-09 05:03:58 +00:00
Magnus M��tt� 4b4975f1f8 Add test 020 and 021 for PDO_SQLite. 2005-03-09 04:45:08 +00:00
Magnus M��tt� 27c43d5991 Since in_array is case sensitive we need to convert the names to lowercase
otherwise it won't run tests for extensions where the case of the name differ from the
extension name.
2005-03-09 04:23:02 +00:00
Magnus M��tt� d49ecd51c1 Add more tests. 2005-03-09 03:50:10 +00:00
Magnus M��tt� d06dec1ac0 Remove old test. 2005-03-09 03:45:24 +00:00
Marcus Boerger f0a3e5be17 More line count fixes 2005-03-09 03:07:42 +00:00
Marcus Boerger b79e8759fc Add documentation 2005-03-09 03:07:07 +00:00
Marcus Boerger ef17168fd1 No double line counting 2005-03-09 02:54:36 +00:00
Wez Furlong 3efc383a07 probably fix for ? placeholders not working with oci 2005-03-09 02:13:06 +00:00
Magnus M��tt� 088972feee Fix segv when einfo->errcode is not available.
Add missing NULL entry to oci_methods.
2005-03-09 01:56:43 +00:00
da2cb43507 ChangeLog update 2005-03-09 01:40:19 +00:00
Marcus Boerger b06d0ef758 Add description for interface Serializeable 2005-03-09 01:21:04 +00:00
Dan Scott e90582a990 Add test for PDOStatement::getColumnMeta().
Note that PDO_ODBC test fails as it is currently unimplemented.
2005-03-09 00:20:07 +00:00
Magnus M��tt� ddde4497b2 Add more tests. 2005-03-08 23:00:34 +00:00
foobar d0bb8f5f12 This makes more sense. (Someone might actually use php_error_docref0() :) 2005-03-08 21:42:10 +00:00
Johannes Schlüter 0e9e0f62fc - Fix #32238 (spl_array.c: void function cannot return value) 2005-03-08 21:33:15 +00:00
foobar e17ad42e38 - This was not needed (said Marcus) 2005-03-08 21:22:03 +00:00
Ilia Alshanetsky 0dbe348d1d Improve the performance of htmlspecialchars_decode() by 20-30%. 2005-03-08 21:13:03 +00:00
Dan Scott 83dfcbf3f6 Add simple tests for insert through PDO::prepare/PDOStatement::execute.
Tests both question mark placeholders and named parameters.
2005-03-08 18:12:22 +00:00
Dan Scott 570976d236 Add a test for PDOStatement::columnCount(). 2005-03-08 17:39:41 +00:00
foobar 7c1d94a702 update 2005-03-08 06:40:05 +00:00
foobar 360381583d reorder 2005-03-08 06:38:58 +00:00
7ab5b4ff42 ChangeLog update 2005-03-08 01:42:09 +00:00
Marcus Boerger 7b64727519 - Add/Correct parameter info and protos 2005-03-08 00:42:49 +00:00
Marcus Boerger bbccc37f84 - Add new tests 2005-03-07 22:43:27 +00:00
Marcus Boerger efb3529b7f - Add new tests 2005-03-07 22:36:12 +00:00
Marcus Boerger 9c08e3ccae - Update signature 2005-03-07 22:27:29 +00:00
Marcus Boerger 6200cdba7c - Add some more news 2005-03-07 22:26:53 +00:00
Marcus Boerger 1a67f846d6 - Add test 2005-03-07 22:24:18 +00:00
Marcus Boerger 757da1eed5 - New Interface Serializeable
- Change signature of unserialize() callback to ease inheritance and
  support code reuse of handlers
2005-03-07 22:23:14 +00:00
Marcus Boerger 9b8725a967 - Add more methods
- Avoid exceptions in iterator access
- Do not read in rewind8) or next() instead read in iteration if neccessary
- Correctly count line numer on reading
2005-03-07 22:18:40 +00:00
Marcus Boerger 6bd8257607 - Fix proto
- Do not try to write zero bytes
2005-03-07 22:10:08 +00:00
Marcus Boerger cf6711abfa - Length needs to be positive 2005-03-07 21:54:08 +00:00
Marcus Boerger 97655f8a3b - Make maic qutes runtime work if length is specified too 2005-03-07 21:52:34 +00:00
Marcus Boerger 85ebbd28a0 - Delay memory allocation, speeds up faiure case 2005-03-07 21:28:38 +00:00
Ilia Alshanetsky 975ff6f5d5 Added htmlspecialchars_decode() function for fast conversion from
htmlspecialchars() generated entities back to characters.
2005-03-07 19:37:27 +00:00
Marcus Boerger 4ae4b63f44 - Add updated description 2005-03-07 19:31:44 +00:00
Marcus Boerger 6f00c1b73b - Fix #32226 2005-03-07 19:28:10 +00:00
Zeev Suraski 118b7b567a Revert // </script> patch 2005-03-07 16:48:49 +00:00
Ilia Alshanetsky 0c9610fc9d Fixed bug #32210 (proc_get_status() sets "running" always to true). 2005-03-07 16:17:12 +00:00
Magnus M��tt� 12e60c9c1e Add test 017. 2005-03-07 15:52:58 +00:00
Marcus Boerger 1d54f897ca - Fix problem with some plain c pedantic compilers 2005-03-07 08:04:47 +00:00
Marcus Boerger 37e2436b6f - Add new test 2005-03-07 01:43:02 +00:00
Marcus Boerger 7bbbfa3f15 - Add new tests 2005-03-07 01:39:12 +00:00
b25b123467 ChangeLog update 2005-03-07 01:33:24 +00:00
Marcus Boerger 3960865e8e - In File::fgetcsv() use max length from object 2005-03-07 01:00:29 +00:00
Marcus Boerger 40bf907541 - Add File object 2005-03-07 00:40:57 +00:00
Marcus Boerger 7fbc91acce - Allow length 0 as default (e.g. skip param) 2005-03-07 00:16:18 +00:00
foobar 84e560435e MFB: Fix VPATH build 2005-03-06 23:16:44 +00:00
Marcus Boerger 89f320755d - Use new objects 2005-03-06 23:09:21 +00:00
Marcus Boerger 16f0329a52 - Fix problem with exception in other methods, too 2005-03-06 23:07:43 +00:00
Marcus Boerger f3970b8076 - Add intefaces from zend_interface.h as macros 2005-03-06 22:57:45 +00:00
Marcus Boerger 0d1e43711a - Fix problem with exceptions in hasChildren calls 2005-03-06 22:57:05 +00:00
Marcus Boerger ef64180c90 - Actuall the comments were correct 2005-03-06 22:18:09 +00:00
Marcus Boerger 86ac9559be - Fix by Tim 2005-03-06 22:15:35 +00:00
Marcus Boerger 5830e46a84 - Bugfix #28840 __destruct of a class that extends mysqli not called 2005-03-06 21:40:01 +00:00
Ilia Alshanetsky 96d7eebce8 Make html_entity_decode() 15-20% faster by avoiding pointless string
duplication.
2005-03-06 19:36:51 +00:00
foobar 6d6e939f9b - Moved ext/fam and ext/mnogosearch to PECL 2005-03-06 19:24:21 +00:00
Ilia Alshanetsky c8687cdb79 Fixed bug #29424 (width and height inverted for JPEG2000 files). 2005-03-06 17:03:43 +00:00
foobar 0344652b38 Fixed compile warning (bug #32046) 2005-03-06 16:22:02 +00:00
foobar ede98577e2 Fix compile warning (bug #32047) 2005-03-06 15:55:41 +00:00
1d3c79a8a6 ChangeLog update 2005-03-06 01:46:24 +00:00
Dan Scott 8a3cc406be Usually a good idea to have .cvsignore around. 2005-03-05 21:52:04 +00:00
Dan Scott 48a6151051 Test PDO::beginTransaction and PDO::rollBack. 2005-03-05 21:03:12 +00:00
John Coggeshall 81c161d0a7 Opps. 2005-03-05 17:55:45 +00:00
Moriyoshi Koizumi 5e33c04e95 - Fixed bug #32109 ($_POST is not populated in multithreaded environment). 2005-03-05 16:41:13 +00:00
Dan Scott fc825e2071 Missed this one... 2005-03-05 15:48:54 +00:00
Dmitry Stogov eff0d65240 Fixed bug #32115 (dateTime encoding of timezone incorrect) 2005-03-05 13:27:13 +00:00
Marcus Boerger e4ce3e36ef - Negative seeking is not supported 2005-03-05 11:35:13 +00:00
7fc626f89b ChangeLog update 2005-03-05 01:34:31 +00:00
John Coggeshall 5fe241ff64 Starting tests.... 2005-03-05 01:13:10 +00:00
Andrei Zmievski f8fc9a3256 Check that object can actually return a class entry. I need this for a
class-entry-less helper objects that should not be present in the class
table.
2005-03-05 00:45:47 +00:00
Rob Richards d42656b033 use php streams for uri I/O under PHP 4 2005-03-04 15:41:33 +00:00
foobar a942bcd669 Merge from sapi/apache/config.m4 and cleanup 2005-03-04 15:15:26 +00:00
foobar 4c883c79bb Do not set apache stuff if not building apache 2005-03-04 15:14:47 +00:00
foobar ba5479a099 This did not work for some reason, better revert it 2005-03-04 15:13:03 +00:00
foobar e891278f1d Add missing subst 2005-03-04 14:34:24 +00:00
eafd1c4678 ChangeLog update 2005-03-04 01:35:53 +00:00
Marcus Boerger f76f510185 - Add tests
- Fix testname
- Drop unnecessary include line (was wrong anyway)
2005-03-04 01:29:27 +00:00
Dan Scott 5ce920f189 One more PDO_ODBC test (tested with DB2 V8.2). 2005-03-03 20:30:38 +00:00
Dan Scott dc4501cf99 Next three tests for PDO_ODBC (tested with DB2 V8.2). 2005-03-03 20:23:29 +00:00
Dan Scott 12f1993f8e Next batch of tests for PDO_ODBC (tested against DB2 V8.2). 2005-03-03 13:53:55 +00:00
Dan Scott 49d1349b9a Begin porting standard PDO tests to PDO_ODBC, testing against DB2. 2005-03-03 11:49:35 +00:00
Marcus Boerger d9145daa61 - Rename test 14 to 16 (which is a new one) and MFB 14 again 2005-03-03 10:48:02 +00:00
Marcus Boerger 7cca51e97e - Fix bug #32134 2005-03-03 10:35:34 +00:00
Zeev Suraski baf717472e New egg 2005-03-03 09:55:10 +00:00
Ilia Alshanetsky 09a8f38e39 Fixed bug #32160 (file truncation in copy() when source & destination are
the same).
2005-03-03 03:29:23 +00:00
c2eed8e950 ChangeLog update 2005-03-03 01:36:08 +00:00
Marcus Boerger a50157121d - Finish work on spl_autoload*() 2005-03-03 00:20:57 +00:00
Marcus Boerger 30ee47c1d8 - Let spl_autoload_extensions() always return what's registered 2005-03-02 20:59:06 +00:00
Moriyoshi Koizumi e628f2d9fa - Add testcases for bug #32001 2005-03-02 19:27:37 +00:00
Rob Richards 7d7ca3b713 BFN 2005-03-02 18:28:31 +00:00
Rob Richards c90305cb2e Fixed bug #31033 (php:function(string, nodeset) with xsl:key crashes PHP)
- only in 5.1 branch for now due to significance of change
2005-03-02 18:27:25 +00:00
Stefan Esser 4d5599f6e0 Fixed possible bufferoverflow 2005-03-02 18:21:45 +00:00
Rob Richards bd5e6e6232 Fixed bug #32001 (xml_parse_into_struct() exceeds maximum execution time) 2005-03-02 18:13:34 +00:00
37ab4fe1b2 ChangeLog update 2005-03-02 01:35:54 +00:00
Marcus Boerger 0246835860 - Update .cvsignore 2005-03-02 01:15:54 +00:00
Marcus Boerger 5cb7104630 - Add new functions 2005-03-02 01:14:41 +00:00
Marcus Boerger f33adafab7 - Update docu 2005-03-01 23:44:05 +00:00
Marcus Boerger 0b3ed59fb6 - Support statuc methods/functions 2005-03-01 23:41:49 +00:00
Ilia Alshanetsky 71b9b512cc Fixed bug #31792 (getrusage() does not provide ru_nswap value). 2005-03-01 21:32:25 +00:00
Magnus M��tt� 865c23e947 Add Oracle tests for PDO. 2005-03-01 21:09:12 +00:00
Andrei Zmievski 584f64ed62 Allow = sign in long option argument.
Fixes PEAR bug #1831.
2005-03-01 18:19:12 +00:00
Anantha Kesari H Y 033a45903c NetWare allows directory seperator as \ and / 2005-03-01 14:59:37 +00:00
Stefan Esser 14abc19a76 Handle last or broken JP2 boxes correctly. 2005-03-01 13:53:02 +00:00
Antony Dovgal 6dac68f669 fix SIGFPE in gmp_powm(), gmp_sqrt() & gmp_sqrtrem() when using negative values
do not allow negative value to be passed to gmp_fact()
2005-03-01 13:09:33 +00:00
Marcus Boerger 67fd1f2654 - MFB 2005-03-01 10:14:18 +00:00
Marcus Boerger 9001280387 - Fix #32130 (ArrayIterator::seek() does not throw an Exception on invalid index) 2005-03-01 10:06:11 +00:00
Marcus Boerger 76c5d53993 - Need to store class entry 2005-03-01 10:05:12 +00:00
foobar c61608ef35 update 2005-03-01 09:26:28 +00:00
foobar 0b7435f590 ws 2005-03-01 09:25:36 +00:00
foobar 143d62a179 Fix the fix for one line comments with <script..> </script> tags 2005-03-01 02:17:41 +00:00
foobar 3f320607ab touch 2005-03-01 01:45:34 +00:00
87528d9138 ChangeLog update 2005-03-01 01:41:19 +00:00
Johannes Schlüter f28e72b06a - Change comment: Syntax highlighter uses <span> instead of <font> 2005-03-01 00:23:31 +00:00
Marcus Boerger a4521139da - Reserve some bits for flags 2005-02-28 22:37:13 +00:00
Ilia Alshanetsky 8eab7ab62e Added notes about ignore_user_abort to php.ini* 2005-02-28 22:09:22 +00:00
Marcus Boerger 6ce9bcc31e - Need to drop ce until engine gets fixed 2005-02-28 19:23:56 +00:00
Marcus Boerger ddd62f2b07 - Add support for methods dynamically added through object handlers 2005-02-28 18:53:33 +00:00
Marcus Boerger eb330a95f6 - Fix warning 2005-02-28 18:44:14 +00:00
Marcus Boerger d072f6de54 - Changing handler table definitively results in SEGVs 2005-02-28 18:40:02 +00:00
foobar cfecb1face reorder 2005-02-28 16:47:52 +00:00
Stefan Esser e2f1b375a2 This way around for correct error messages 2005-02-28 16:32:49 +00:00
Stefan Esser b7476a5bd6 Drop invalid arrays 2005-02-28 16:22:39 +00:00
Joe Orton bc1c0c2e12 Fix type mismatch. 2005-02-28 13:30:50 +00:00
Rasmus Lerdorf 99f832a206 If pdo is disabled, skip all the pdo extensions. 2005-02-28 08:18:47 +00:00
Pierre Joye ee49617830 - WS 2005-02-28 08:16:47 +00:00
Pierre Joye 4901a8e2b8 - create LIBXML_VERSION and LIBXML_DOTTED_VERSION constants 2005-02-28 08:13:35 +00:00
Wez Furlong 401f813383 Let's install the mbstring headers.
Fixes PECL #3516
2005-02-28 05:21:35 +00:00
Wez Furlong 742b0ab676 build bundled sqlite on win32 2005-02-28 03:23:56 +00:00
Wez Furlong c145e5a7e3 juggle around a bit; commit generated file 2005-02-28 03:21:52 +00:00
4832e83a1d ChangeLog update 2005-02-28 01:39:43 +00:00
Wez Furlong f58e2006d5 fix for PECL Bug #3452 2005-02-28 01:30:14 +00:00
Marcus Boerger fdc3fce335 - Fix missapplied logic inversion 2005-02-28 01:08:07 +00:00
Marcus Boerger f7d2317ce7 - Fix typo 2005-02-28 00:07:16 +00:00
Marcus Boerger 8de753f09e - Add tests 2005-02-27 23:15:52 +00:00
Marcus Boerger fef7cb4e29 - Disable direct serializing for PHP 5.0 2005-02-27 22:58:08 +00:00
Marcus Boerger 6b18b88b2c - Allow default fetch mode to contain fetch flags 2005-02-27 22:48:14 +00:00
Marcus Boerger d0a76e992b - Add new test 2005-02-27 22:39:35 +00:00
Marcus Boerger 03a4a8c11d - Add some fetch column related capailities
- Add direct (classtype based) unserializing capabilities
2005-02-27 22:32:11 +00:00
Marcus Boerger 893e9c0498 - Add new test 2005-02-27 22:25:11 +00:00
Marcus Boerger a586cecf35 - If silence if wanted we do not error out 2005-02-27 22:22:26 +00:00
Marcus Boerger c4bc32ff7b - Add two new methods
- Fix signature, no need to cast it
2005-02-27 22:21:17 +00:00
Marcus Boerger c087f07233 - These must be initailized 2005-02-27 22:18:55 +00:00
Hartmut Holzgraefe f7e8fcb8e0 fully distinguish between database and statement level errors 2005-02-27 20:34:36 +00:00
Rasmus Lerdorf 86994c3357 Add a comment to remind me to have a look at this at some point. 2005-02-27 18:45:07 +00:00
Ilia Alshanetsky 0367674517 Fixed compiler warnings. 2005-02-27 17:08:18 +00:00
Marcus Boerger 8324d21955 - Update method_exists to new handlers and allow first parameter as string 2005-02-27 15:03:09 +00:00
foobar 3f57b46f67 cs fix (really annoying :) 2005-02-27 12:50:22 +00:00
Hartmut Holzgraefe dd7d41e938 use fetch_fields only once and remember the result 2005-02-27 12:43:23 +00:00
foobar 0ec872a153 - Cache the version check results
# ..and prepare for --enable-developer-mode
2005-02-27 12:42:28 +00:00
Hartmut Holzgraefe 04f2f981e0 changed the error checks on result set retrieval
UPDATEs not modifying anything are not actually bugs
2005-02-27 12:15:47 +00:00
Hartmut Holzgraefe 81770f3c39 no need to check for execution status, always free a result set if there
is one
2005-02-27 12:05:46 +00:00
Hartmut Holzgraefe fa5070b39c just to be sure ... 2005-02-27 11:55:39 +00:00
Hartmut Holzgraefe beb7151936 cols 2005-02-27 11:46:38 +00:00
Hartmut Holzgraefe 8725ed75cd CS / whitespace 2005-02-27 11:42:18 +00:00
Hartmut Holzgraefe d3fcc41be7 use auto generated error -> state mappings 2005-02-27 11:39:15 +00:00
Hartmut Holzgraefe 4c4ec3c5db line endings 2005-02-27 11:36:07 +00:00
Hartmut Holzgraefe 409a94ffea error code mapping (generated from mysql 5 sql_state.h file using
the get_error_codes.php script)
2005-02-27 11:31:49 +00:00
Stanislav Malyshev 634a5ec6f8 fix typo 2005-02-27 11:30:41 +00:00
Hartmut Holzgraefe 49a383ef4f initial checkin 2005-02-27 11:29:17 +00:00
Sara Golemon 00c6078ff1 Enum filters in phpinfo() 2005-02-27 08:12:12 +00:00
Wez Furlong ae5649598d upgrade bundled sqlite to sqlite 3.1.3 2005-02-27 05:20:19 +00:00
58f61a16ee ChangeLog update 2005-02-27 01:35:00 +00:00
Wez Furlong cbe40ddd2d fix comma 2005-02-27 01:30:58 +00:00
Wez Furlong 2c5b2fc105 Alan: moved your fields away, but reserved you a pointer.
Changed PDO::lastInsertId() to have following proto:

	string PDO::lastInsertId([string name])

this allows arbitrary unique identitifers to be returned from the driver.

The optional name parameter is for databases that require additional contextual
information to be able to return the correct identifier.  None currently use
it, but pgsql will be on the list of drivers that do.
2005-02-26 17:27:51 +00:00
Wez Furlong 31239f2130 *cough* 2005-02-26 16:03:55 +00:00
Wez Furlong 09fee0bf21 and the generated file 2005-02-26 15:45:43 +00:00
Wez Furlong b4ad599df2 fix for PECL #3545 2005-02-26 15:44:38 +00:00
Wez Furlong 31f5f8f907 fix line endings 2005-02-26 15:41:54 +00:00
Wez Furlong 8be87fbab0 fix broken line endings 2005-02-26 15:35:41 +00:00
Wez Furlong b38f21b99c let the test-suite run from an alternate build dir 2005-02-26 15:23:10 +00:00
Marcus Boerger f6bf9e67a8 - Make detection work for macros 2005-02-26 02:15:00 +00:00
Marcus Boerger ec2babc448 - Simplify 2005-02-26 02:06:49 +00:00
4e66bbdfb7 ChangeLog update 2005-02-26 01:34:35 +00:00
Greg Beaver a247bf01ba use 1.3.5 2005-02-26 01:27:49 +00:00
Edin Kadribasic b8a6661c81 Allow arbitrary files to be added to distro with ADD_DIST_FILE(filename) 2005-02-26 01:07:48 +00:00
Marcus Boerger 74dba52933 - Prepare for db1.85 emulation with db3 2005-02-26 01:05:33 +00:00
Edin Kadribasic bf3ec794f1 Added .reg files to the disto (were added manually) 2005-02-26 00:37:10 +00:00
Marcus Boerger 9ffeb12c4c - Add support for db1 through emulation
# Most probably db4 requires a slightly different detection since functions
# are macros which most probably doesn't work with current configure check.
2005-02-25 23:51:53 +00:00
Frank M. Kromann 28dbc778d8 FreeTDS does not have support for DBTEXTLIMIT 2005-02-25 23:24:18 +00:00
Frank M. Kromann 9d0e081c56 Kill warnings. There should be no need for this flag as it's already defined in libxml headers. 2005-02-25 22:59:26 +00:00
Marcus Boerger d907a500bd - Align 2005-02-25 20:02:45 +00:00
Antony Dovgal 4707b43193 fix bug preventing from building oci8 as shared module
(patch by stanislav dot voroniy at portavita dot nl)
2005-02-25 11:31:10 +00:00
Georg Richter 2e2bfb83c4 fix for bug #31939 2005-02-25 08:43:41 +00:00
Anantha Kesari H Y 5ecdba358c changing the windows style path seperator in netinet\in.h to netinet/in.h 2005-02-25 06:31:06 +00:00
Anantha Kesari H Y 147dab1b57 time.h is available in NetWare LibC.
path sperator has been changed from \ to / while including netware\sendmail_nw.h
2005-02-25 05:57:41 +00:00
896efd3a13 ChangeLog update 2005-02-25 01:35:47 +00:00
Marcus Boerger 5b1af1c1ed - Change to enable (synch with unix build system) 2005-02-25 01:17:45 +00:00
Edin Kadribasic dec1c86ab6 Added --enable-debug-pack which will create a zip file with *.pdb debug
symbol files. Could be used to allow windows users to use free Microsoft
debugging tools to generate useful backtraces.

Debug tools can be found at:
http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx

CLAGS used described in:
http://support.microsoft.com/default.aspx?scid=kb;en-us;291585

Only tested on VC 6.0.
2005-02-25 00:20:19 +00:00
Ilia Alshanetsky a3085602d0 Fixed bug #32081 (default socket value is not being used). 2005-02-24 23:58:59 +00:00
Edin Kadribasic e2974d755d Offical zip files have -Win32 suffix 2005-02-24 23:28:49 +00:00
Marcus Boerger 89d75d5c9c - Little speed up 2005-02-24 20:22:40 +00:00
Marcus Boerger 72dc2d1025 - This must be == 1 2005-02-24 20:22:18 +00:00
foobar 34805e8d39 - Fixed all buildconf warnings + cross-compiling issues 2005-02-24 19:27:10 +00:00
Andi Gutmans ac63e8c2c1 - Make one line comments work the same with <script ...> </script> as with
- other tags. This will break scripts that have whitespace at the end
- of the closing tag </script    > but this is barely used as it is
- and I doubt ppl used whitespace. (patch by Jani)
2005-02-24 19:25:44 +00:00
foobar 9a3c0eca4b - cross-compile fix 2005-02-24 19:05:01 +00:00
Andi Gutmans 74b722f14c - This part of the patch was right 2005-02-24 18:40:19 +00:00
foobar 2a6da0f24c - Restructured and added a few comments here and there.
- Made macros of couple of tests previously littering configure.in
  (e.g. PHP_PROG_AWK, PHP_PROG_LEX, PHP_PROG_BISON..)
- Moved all PHP_SUBST() calls into their respective macros.
  (no point adding empty entries in Makefile if macro is not used)
2005-02-24 18:11:36 +00:00
foobar 129a8a7607 - Generated with re2c 0.9.4 2005-02-24 17:50:20 +00:00
Pierre Joye a6b93ee6a0 - we do not use any global 2005-02-24 15:35:56 +00:00
Pierre Joye ec93388662 - we do not need this function anymore 2005-02-24 15:30:24 +00:00
Pierre Joye 19c1535ae5 - revert previous commit, use libxml version to enable or not a function
(safer)
- add xmlwriter_flush, flush the buffer, works with both file and mem
  buffer, BC kept
- use ifdef for the function implementation
(Rob, Pierre)
2005-02-24 15:08:37 +00:00
Stanislav Malyshev 8919a7ae08 fix typo 2005-02-24 10:58:16 +00:00
Dmitry Stogov f3f8792b9b Fixed bug in ZEND_POST_INC/ZEND_POST_DEC handlers.
These opcodes assume IS_TMP_VAR as result.
2005-02-24 08:52:11 +00:00
Andi Gutmans de9206a9e9 - Need zend_Compile.h for struct _zend_arg_info definiton (thanks to Joe
Orton)
2005-02-24 03:11:29 +00:00
Andi Gutmans f4cdd366e1 - Fix comment 2005-02-24 03:04:57 +00:00
Andi Gutmans 8140f095c6 - Revert following patch until we decide what is the right way to handle
- this:
 - Fix signatures they are all meant to be able to deal with any type in any
    object storage (though we are still missing several parts)
2005-02-24 02:35:59 +00:00
5caddd66ba ChangeLog update 2005-02-24 01:35:08 +00:00
Marcus Boerger f982890a58 - Missed during last committs somehow 2005-02-24 00:14:50 +00:00
Marcus Boerger 30f870f957 - Prevent superflous memory allocation 2005-02-24 00:12:15 +00:00
Marcus Boerger b89fda667f - Drop driver name from generic tests and reserve those names for driver
specific tests.
# Well a little design correction
2005-02-24 00:11:16 +00:00
Ilia Alshanetsky fac3e54ad9 Additional safety checks.
# More to follow
2005-02-23 23:39:36 +00:00
Marcus Boerger b786b93b7a - Delay ctor call so that it can overwrite everything and the data can
already be accessed from the ctor.
2005-02-23 23:28:30 +00:00
Marcus Boerger 03c03f5890 - Checks for older versions of libxml2 2005-02-23 23:02:01 +00:00
Marcus Boerger 3f5e714d7b - Slightly redesign
# More to follow, explanation follows at more public place
2005-02-23 22:49:32 +00:00
Rasmus Lerdorf 06aede5b5d Filter skeleton code. No actual filters yet. 2005-02-23 22:41:43 +00:00
Ilia Alshanetsky 8aaafb1ae9 Increase maximum mmapable file size to 2mb from 1mb. 2005-02-23 22:41:05 +00:00
Ard Biesheuvel f21ab2f60f Fixed bug #31597: ibase_connect() - incorrect warning 2005-02-23 20:20:25 +00:00
Ilia Alshanetsky bd0d48f7a5 Fixed compiler warning. 2005-02-23 18:53:09 +00:00
Ilia Alshanetsky 5ffe5a485d MFB_4_3: Fixed bug #29521 (compress.bzip2 returns error when used with http
wrapper).
2005-02-23 18:48:49 +00:00
Stefan Esser 0ef1f50383 Correcting bounds check before someone uses this code 2005-02-23 18:26:39 +00:00
Ard Biesheuvel b9b03a7feb Added search for libfbclient 2005-02-23 17:44:22 +00:00
Moriyoshi Koizumi d2627b5107 - Synch with the latest checkouts. (include fix by Joe Orton. Thanks.) 2005-02-23 13:35:34 +00:00
Derick Rethans 30d9fd6bba - Fixed bug #32076 (ReflectionMethod :: isDestructor() always return true)
(Patch by Antony Dogval)
2005-02-23 12:20:04 +00:00
Rob Richards 6966023564 fix libxml versions for comments 2005-02-23 11:25:32 +00:00
Stanislav Malyshev db3fdce304 Custom object serializer infrastructure - PHP implementation
# The detailed announce on the list will follow
2005-02-23 11:17:52 +00:00
Stanislav Malyshev 5b98a09219 Custom object serializer infrastructure
# The detailed announce on the list will follow
2005-02-23 11:15:51 +00:00
Joe Orton 630955304a Ignore generated files. 2005-02-23 11:14:28 +00:00
Anantha Kesari H Y 73ef0fd315 NetWare can make use of Autoconf generated header file 2005-02-23 11:02:12 +00:00
Anantha Kesari H Y d25d507bec NetWare LibC has mkstemp implementation 2005-02-23 10:54:06 +00:00
Anantha Kesari H Y fc7bbdddbd NetWare can make use autoconf generated header file 2005-02-23 10:31:44 +00:00
Anantha Kesari H Y f04b1e97bb NetWare LibC has pwd.h 2005-02-23 08:56:47 +00:00
foobar 775cfd708e Hack the planet 2005-02-23 07:50:28 +00:00
a5806375b5 ChangeLog update 2005-02-23 01:36:05 +00:00
Marcus Boerger e0c445d9b1 - Update docu 2005-02-23 01:34:14 +00:00
Marcus Boerger d02a2df3f0 - Use PHP not C semantics 2005-02-23 01:16:21 +00:00
Marcus Boerger 3f1738f96d - Add new tests 2005-02-23 01:13:13 +00:00
Marcus Boerger 72c1baa9d8 - Allow to convert Traversable into Aggregate 2005-02-23 01:09:10 +00:00
Marcus Boerger 5f1c3f4a7e - Allow to convert traversable into Iterator 2005-02-23 01:03:16 +00:00
Marcus Boerger 3cb441df9a - Add new tests 2005-02-23 00:56:34 +00:00
Marcus Boerger 40d180a87d - Reorganize ctor_args handling (fixes some bugs) 2005-02-23 00:52:46 +00:00
Marcus Boerger effe989d91 - Show that PDOStatement implements Traversable 2005-02-23 00:52:14 +00:00
Marcus Boerger 77cf78caa1 - Make ctor args optional 2005-02-23 00:29:44 +00:00
Marcus Boerger 994006abd4 - Need to also revert operator 2005-02-22 21:22:23 +00:00
Marcus Boerger d235a2bf4a - Put this back in (forgot to revert) 2005-02-22 20:59:52 +00:00
Marcus Boerger cb9658feef - Revert signature of PDO:prepare()
old: proto object PDO::prepare(string statment [, array driver_options [, string classname ]])
  now: proto object PDO::prepare(string statment [, array options])
  param 'classname' and and 'ctor_args' are now set through options
  using index PDO_ATTR_STATEMENT_CLASS
- Change all deriver_options parameters to 'options' to reflect the fact
  that they may contain statement as well as driver specific flags
2005-02-22 20:25:56 +00:00
Marcus Boerger 3c743e3a98 - Allow to derive PDOStatement
- Verify fetch modes
- Add last fetch mode PDO_FETCH_FUNC (only valid inside fetchAll()) that
  allows to completley customize the way data is treated on the fly
2005-02-22 19:27:34 +00:00
Ilia Alshanetsky d97da3e222 Fixed bug #31288 (Possible crash in mysql_fetch_field(), if
mysql_list_fields() was not called previously).
2005-02-22 14:58:49 +00:00
Marcus Boerger 237cd7e511 - We cannot provide this fallback becuase it requires zend_object ptr's.
# Found that out after discussing with Stas. As a consequence still every
# extension that provides specialised class types is responsible for
# calling its __destruct. This is currently not done for several exts.
2005-02-22 14:53:57 +00:00
foobar f180478aad Fix cross-compile 2005-02-22 13:52:51 +00:00
foobar 2926bed9f2 Fix build (it was #ifNdef NETWARE..) 2005-02-22 13:49:52 +00:00
Marcus Boerger 3096f1edac - Fix signatures they are all meant to be able to deal with any type in any
object storage (though we are still missing several parts)
2005-02-22 12:06:59 +00:00
Marcus Boerger 93e13aff05 - Force calling of dtors unless otherwise specified (fixes several __destruct bugs) 2005-02-22 11:43:05 +00:00
Marcus Boerger 18985accc4 - Call dtor 2005-02-22 11:37:53 +00:00
Moriyoshi Koizumi 20f709f339 - Update libmbfl (fixes bug #32063). 2005-02-22 09:57:45 +00:00
Anantha Kesari H Y 8eb3b715d1 NetWare can include autoconf generated config headers 2005-02-22 08:48:33 +00:00
Pierre Joye 0802829ad4 - ifdef all (protos and functions) and using the correct version
- fix protos ending
- ws
2005-02-22 08:05:05 +00:00
Anantha Kesari H Y d00a304f0e NetWare can make use of the configure script generated header file. 2005-02-22 06:13:49 +00:00
Anantha Kesari H Y 295f8d918f NetWare can use Autoconf based build system. 2005-02-22 06:05:20 +00:00
Moriyoshi Koizumi b19d28907e - Silly typo. 2005-02-22 05:07:37 +00:00
4fd1d7e85a ChangeLog update 2005-02-22 01:36:03 +00:00
Ilia Alshanetsky c7b931d80d Fixed bug #31515 (Improve performance of scandir() by factor of 10 or so). 2005-02-22 00:24:13 +00:00
foobar 498cce1f80 Nuke unused variables when PCRE is not compiled in 2005-02-21 21:00:04 +00:00
foobar 42599f8191 Remove the useless TSRM_FETCH calls 2005-02-21 20:57:18 +00:00
Marcus Boerger ab8f1f316b - Add new test 2005-02-21 18:55:51 +00:00
Marcus Boerger 74b1cee57f - Show warnings 2005-02-21 18:54:45 +00:00
Hartmut Holzgraefe 0ef339df92 "SET SESSION" is not supported by MySQL 3.23, as session is the default
scope for SET anyway we can drop the SESSION specifier (PECL Bug #3470)
2005-02-21 16:10:03 +00:00
Pierre Joye ec684f72f8 - examples usage, initial commit 2005-02-21 15:31:35 +00:00
Moriyoshi Koizumi ffa8233ed9 - BFN 2005-02-21 15:17:00 +00:00
Moriyoshi Koizumi 3093ceb3da - WS fix. 2005-02-21 15:14:32 +00:00
Moriyoshi Koizumi 0d7845384f - Fix bug #28568 (known_post_content_types is not thread safe).
# What is eventually necessiated is entire SAPI redesign, I think.
2005-02-21 15:14:02 +00:00
Moriyoshi Koizumi 38dfd6886d - Add missing entry. 2005-02-21 15:10:19 +00:00
Pierre Joye 46eb3e977c - add xmlTextWriterStartComment and xmlTextWriterEndComment support 2005-02-21 15:05:54 +00:00
Ard Biesheuvel bafbe90392 Fixed PECL bug #3527: Missing quotation marks in php_pdo_firebird_int.h 2005-02-21 13:57:02 +00:00
Moriyoshi Koizumi 01c0d589ef - Fix bug #30868 (evaluated pointer comparison in mbregex causes compile
failure).
2005-02-21 10:19:11 +00:00
Anantha Kesari H Y 91b48c2a89 NetWare LibC has lstat implementation 2005-02-21 10:13:07 +00:00
Moriyoshi Koizumi e8901dc170 - Fix bug #30573 (compiler warning due to invalid type cast) 2005-02-21 10:12:43 +00:00
Anantha Kesari H Y 787cf59dee NetWare can make use of autogenerated config header file 2005-02-21 10:07:28 +00:00
Anantha Kesari H Y e32ae40fbf NetWare has pthreads implementation 2005-02-21 10:05:07 +00:00
Anantha Kesari H Y ba980b12ad NetWare can use the tsrm_config.h 2005-02-21 10:01:34 +00:00
Anantha Kesari H Y 3b4d482055 NetWare LibC has a lstat implementation 2005-02-21 09:56:28 +00:00
Anantha Kesari H Y 459313c26d In NetWare LibC WTERMSIG is avaliable as WIFTERMSIG 2005-02-21 09:50:48 +00:00
Anantha Kesari H Y bf427d4a0d NetWare LibC has pwd.h. Removed unwanted extern basic_globals_id declaration for Netware. 2005-02-21 09:44:58 +00:00
Moriyoshi Koizumi d7d7ca62d4 - Fix bug #29989 (type re_registers redefined in oniguruma.h) 2005-02-21 09:43:55 +00:00
Anantha Kesari H Y 3e204f3e07 NetWare has pwd.h and removed unwanted check on NEW_LIBC while including param.h 2005-02-21 09:17:30 +00:00
Anantha Kesari H Y 8bd83a53ac NetWare LibC has pwd.h 2005-02-21 09:12:44 +00:00
Anantha Kesari H Y f43386764f In NetWare statfs f_bavail member is known as f_bfree 2005-02-21 09:08:54 +00:00
Moriyoshi Koizumi 8d73dc7bfc - Fix compiler warnings. 2005-02-21 07:57:08 +00:00
Moriyoshi Koizumi df3c2b5808 - Add testcases for bug #28220 and #30549. 2005-02-21 07:45:37 +00:00
5a9e110bf9 ChangeLog update 2005-02-21 01:33:58 +00:00
Hartmut Holzgraefe fd39b78b39 fix for PECL bug #3529 2005-02-20 23:56:14 +00:00
Hartmut Holzgraefe 5f3dd68ac5 fix for PECL bug 3530 2005-02-20 23:08:34 +00:00
Pierre Joye 7eaece85a8 - zend_bool for boolean arg 2005-02-20 22:56:32 +00:00
Moriyoshi Koizumi a796dc2b81 - Forgot to add this one. 2005-02-20 22:20:23 +00:00
Moriyoshi Koizumi 5b5e012bc2 - Update libmbfl (fixes bug #30549 and #31911).
- Update oniguruma to 3.7.0
2005-02-20 22:18:09 +00:00
Rob Richards 8913ddc295 use new error handling when not throwing exceptions 2005-02-20 22:01:24 +00:00
Rob Richards b7cf6f4539 add function to allow extensions to use new error handling if set by user 2005-02-20 21:49:45 +00:00
Pierre Joye f67803801e - more zend_bool.
Fix flush buffer in output_memory
  Fix isparm in start_dtd_entity
2005-02-20 19:31:52 +00:00
Marcus Boerger a455c7abcb - Shutup notices 2005-02-20 19:26:27 +00:00
Marcus Boerger 5a48f0ec38 - Add tests 2005-02-20 19:26:05 +00:00
Marcus Boerger fc2276c955 - Change tests to use ' instead of " for string values becuase that is
working for more SQL dialects.
2005-02-20 19:25:17 +00:00
Marcus Boerger f607beb486 - Forgot to change extension name 2005-02-20 19:12:55 +00:00
Pierre Joye 3e5b42a291 - int is not zend_bool, fixed indented output 2005-02-20 19:00:25 +00:00
Ilia Alshanetsky 1aab604198 Simplify Code. 2005-02-20 18:23:33 +00:00
Marcus Boerger 776144866c - Add tests 2005-02-20 18:23:12 +00:00
Marcus Boerger 37e2d03763 - Missed that file in last commit 2005-02-20 17:57:00 +00:00
Marcus Boerger 94c286f2ef - Attempt at an unified test suite 2005-02-20 17:56:19 +00:00
Marcus Boerger 26677dd2a2 - Add test 2005-02-20 16:16:45 +00:00
Marcus Boerger d56ce00b85 - Add fetch flag PDO_FETCH_CLASSTYPE 2005-02-20 16:12:57 +00:00
Marcus Boerger 567fd3159d - Update tests 2005-02-20 15:28:31 +00:00
Marcus Boerger 3239a56526 - Only call the ctor once 2005-02-20 15:28:09 +00:00
Marcus Boerger dcf89ff197 - Bump API 2005-02-20 15:07:29 +00:00
Marcus Boerger 5a2620349e - Fix memleak and optimize PDO_FETCH_CLASS 2005-02-20 14:31:44 +00:00
Marcus Boerger 883ee83478 - Call ctor after initializing the props like regular db exts do 2005-02-20 13:42:03 +00:00
Marcus Boerger 44ab1ef86c - Update test 2005-02-20 13:37:04 +00:00
Marcus Boerger 07a8ea220f - Need to specify class_entry in PDO_FETCH_CLASS mode 2005-02-20 13:33:45 +00:00
Dmitry Stogov 57d2c2bb83 Fixed possible memory corruption 2005-02-20 10:19:11 +00:00
8f2cfb9d4e ChangeLog update 2005-02-20 01:36:02 +00:00
Marcus Boerger 96e8cca9bc - Add test 2005-02-19 23:58:03 +00:00
Marcus Boerger 6045a3a5e1 - Add test 2005-02-19 23:48:47 +00:00
Marcus Boerger b788dc9d2a - Add fetch mode PDO_FETCH_UNIQUE 2005-02-19 23:48:30 +00:00
Marcus Boerger a452a445cf - Simplify 2005-02-19 23:36:58 +00:00
Marcus Boerger 422e2b639e - Add PDO_FETCH_GROUP test 2005-02-19 23:12:24 +00:00
Marcus Boerger 474fcab623 - Add PDO_FETCH_GROUP to fetchAll() 2005-02-19 23:11:23 +00:00
Marcus Boerger 1fee3962b0 - Update/Add tests 2005-02-19 21:50:46 +00:00
Marcus Boerger 41674da59f - Add full PDO_FETCH_CLASS capabilities to fetchAll() 2005-02-19 21:49:42 +00:00
Marcus Boerger e6a5ebbdab - Default to stdClass in PDO_FETCH_CLASS mode if no classname is given 2005-02-19 21:35:31 +00:00
Marcus Boerger 89f1128cf4 - Add first tests 2005-02-19 19:52:41 +00:00
Rui Hirokawa 539b81e03a fixed #31987 zend-multibyte in ZTS. 2005-02-19 14:33:41 +00:00
Marcus Boerger 253cd12753 - Regroup and add a test 2005-02-19 14:02:24 +00:00
dc4c0cfac1 ChangeLog update 2005-02-19 01:35:15 +00:00
Wez Furlong cdbe7b7afa add this note. 2005-02-18 15:39:22 +00:00
Wez Furlong 9653864fbd prep for release 2005-02-18 15:32:14 +00:00
Wez Furlong 86708673fb Fix connecting to remote host, patch by Tim Friebe 2005-02-18 15:11:27 +00:00
Derick Rethans ff1687731d - Fixed bug #32021: Crash caused by range('', 'z') 2005-02-18 13:37:23 +00:00
Rob Richards b1157ff8d9 Fragment must have associated document to append xml otherwise it is read-only 2005-02-18 11:57:24 +00:00
Rob Richards e46e7309f8 Fixed bug #32011 (Fragments which replaced Nodes are not globaly useable) 2005-02-18 11:47:20 +00:00
Wez Furlong 3f0f701639 Update for pending PEAR release. 2005-02-18 01:39:36 +00:00
81ef9ee5ee ChangeLog update 2005-02-18 01:36:34 +00:00
Ilia Alshanetsky 6af3197b90 Improved search paths. 2005-02-17 22:56:47 +00:00
Marcus Boerger c17d3dbbb7 - A little optimization to prevent problems when trying to reimplement an
interface inherited from an interfaces that was just implemented......
2005-02-17 21:05:04 +00:00
Marcus Boerger c88da2bd92 - No C++ ruleZ here 2005-02-17 20:54:56 +00:00
Marcus Boerger 82ccc25113 - Actually we must do this in two steps: 1st resize the table and set all
interfaces, 2nd implement the interfaces
2005-02-17 20:49:56 +00:00
Marcus Boerger 02c35975c0 - Incrementation is done elsewhere 2005-02-17 20:28:46 +00:00
Marcus Boerger a7e4f84c5d - Fix windows build (funny MS compiler) 2005-02-17 20:15:40 +00:00
Andi Gutmans 27b13ba47c - Fix Bug #31960: msql_fetch_row() and msql_fetch_array() dropping columns with NULL values 2005-02-17 20:11:20 +00:00
Ilia Alshanetsky f2eb0acfcf Fixed bug #27633 (Double \r\r problem on ftp_get in ASCII mode on Win32). 2005-02-17 15:37:24 +00:00
Joe Orton 4f4cb65300 Declare error_mapping array as static and more const. 2005-02-17 15:05:16 +00:00
Anantha Kesari H Y 5f243d7af7 NetWare LibC has pwd.h 2005-02-17 13:57:21 +00:00
Anantha Kesari H Y 67a2998335 NetWare libc has pwd.h 2005-02-17 13:56:49 +00:00
Wez Furlong 9296eb0fd2 George too 2005-02-17 04:50:49 +00:00
Wez Furlong ede312933c ran ./scripts/dev/credits to update credits to reflect recent removals and
additions.
2005-02-17 04:49:52 +00:00
foobar 640bc001e5 - Compile fix for systems without int32_t typedef 2005-02-17 04:44:52 +00:00
Ilia Alshanetsky ed9e8c7c81 Fixed bug #31440 ($GLOBALS can be overwritten via GPC when register_globals
is enabled).
2005-02-17 04:44:11 +00:00
Wez Furlong 55f53a5a96 symlinked pdo drivers under ext.
Enabled PDO and PDO_SQLITE by default.
Fixup PDO header detection so that it searches in the correct order, and
correctly picks up the headers when building from outside of the source
tree.

TODO: make pdo_XXX auto-enable when XXX is enabled.  Volunteers welcome.
2005-02-17 04:23:15 +00:00
foobar 4585c15cb0 - Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) 2005-02-17 03:51:19 +00:00
0b9addb57b ChangeLog update 2005-02-17 01:37:26 +00:00
Marcus Boerger 80af3ac83d - Add version information 2005-02-17 00:24:57 +00:00
Marcus Boerger e9b635b6e7 - For now we need the simple way 2005-02-17 00:16:00 +00:00
foobar 3f9dc8814e PHP_WIN32 is defined or not defined. 2005-02-16 23:47:38 +00:00
Wez Furlong 7215b2b8fb use a number here, fixes PECL #3493 2005-02-16 18:09:26 +00:00
Edin Kadribasic d388e4dc16 Enable mbstring use on windows. We were linking against mbstring for
some time now, but have never actually used it on Windows.
Fixes #31980.
2005-02-16 09:53:26 +00:00
f4ea74d828 ChangeLog update 2005-02-16 01:35:10 +00:00
Ilia Alshanetsky 43d1785ea1 Fixed bug #31986 (Max nesting limit set too low). 2005-02-15 21:56:17 +00:00
Marcus Boerger 7956ca0211 - SQLite depends on SPL if it is present
- Add SQLiteResult::count()
- SQLiteResult implements Countable if present
2005-02-15 21:09:42 +00:00
Edin Kadribasic 8ff4a1002c Really disable zend multibyte by default. mbstring is using #ifdef all over the place so defining to '0' doesn't help much 2005-02-15 13:57:49 +00:00
Edin Kadribasic 2c306869c5 Fixed bug #3478: handling of 64bit return values on 32bit machine 2005-02-15 12:41:24 +00:00
foobar 3f5055efab - Applied some patches to fix issues with e.g. ia_64 and s390 2005-02-15 08:51:10 +00:00
foobar 67a965a7e0 No tabs here 2005-02-15 01:44:10 +00:00
1eb0693385 ChangeLog update 2005-02-15 01:34:46 +00:00
foobar 731b04dd54 Missing .libs entry 2005-02-15 01:30:40 +00:00
Ilia Alshanetsky 7ee1fdb657 Prune uploaded file names to \ on all OSes, read comments for explanation. 2005-02-15 00:25:38 +00:00
foobar b6b3659224 - More sock->error resets 2005-02-14 23:44:23 +00:00
Edin Kadribasic 4a133ae725 ws fix 2005-02-14 23:40:24 +00:00
Edin Kadribasic 70e0849416 Added pg_field_type_oid() function 2005-02-14 23:36:16 +00:00
Edin Kadribasic 84a6e90b7d Added missing defines (#31751) 2005-02-14 23:01:57 +00:00
foobar a66b053ac9 - Removed duplicate error + reset error in new sockets 2005-02-14 22:16:06 +00:00
Marcus Boerger 3ab88a4718 - Disallow illegal class names (.c part) 2005-02-14 21:03:09 +00:00
Marcus Boerger ff8055fc5c - Disallow illegal class names 2005-02-14 20:58:22 +00:00
Wez Furlong 6c1c64c2e7 experimental hooks for alan.
Off limits to everyone else... pretend they are not there :)
2005-02-14 15:52:06 +00:00
Antony Dovgal 47e1961561 add markers for nice vim foldings 2005-02-14 13:38:09 +00:00
Antony Dovgal 7d4bf3ccd9 free errmsg & prevent leaks 2005-02-14 13:31:34 +00:00
Antony Dovgal ff23184893 fix indentation and add check for PDO includes 2005-02-14 12:52:34 +00:00
Anantha Kesari H Y 3c1e2e15b8 NetWare Libc has php.h so no need of having netware specific block here 2005-02-14 11:10:07 +00:00
foobar d20e2cf0fc Nuke non-existing ini option 2005-02-14 08:23:54 +00:00
foobar 28f0397803 Nuke unused code 2005-02-14 08:21:34 +00:00
0992be8577 ChangeLog update 2005-02-14 01:39:25 +00:00
Edin Kadribasic 6ff3368e1b Simplify 2005-02-13 23:40:30 +00:00
Edin Kadribasic 14819d0f14 Allow pdo to be statically compiled in, while modules remain dynamic 2005-02-13 23:19:00 +00:00
Wez Furlong 06cf185298 fix pdo_mssql.dll build 2005-02-13 23:13:14 +00:00
Marcus Boerger a57b6bad69 - Be more gracious in reflection API 2005-02-13 23:04:49 +00:00
Wez Furlong a92ae61cb8 fix snaps 2005-02-13 21:38:39 +00:00
Ilia Alshanetsky cd0435b15a Fixed test. 2005-02-13 19:23:53 +00:00
Marcus Boerger 21705a45bf - Little code reordering 2005-02-13 18:30:26 +00:00
Marcus Boerger f04134aee0 - Drop unneccessary rinit/rshutown,mshutdown
- Add protos
2005-02-13 18:14:34 +00:00
Marcus Boerger ef2b59f772 - Expand tests to have it work inside PHP 5.0 2005-02-13 18:13:44 +00:00
foobar 3ca8ad73a4 - Missing $Id$ tags 2005-02-13 17:54:04 +00:00
Ilia Alshanetsky f57b8d6dc5 Set auto-commit after establishing the connection, otherwise we have a crash. 2005-02-13 17:16:24 +00:00
Marcus Boerger f860c70362 - In fetch mode PDO_FETCH_CLASS handle constructor args
- Add PDOStatement::fetchObject
2005-02-13 17:04:04 +00:00
Marcus Boerger 746d5490cf - Use runtimeException as base if present (synch with other dbs) 2005-02-13 15:40:15 +00:00
Hartmut Holzgraefe aedea8539c no need to check for all functions of a group,
added check for prepared statement functions
2005-02-13 14:42:46 +00:00
Marcus Boerger d308d6d462 - Rename 2005-02-13 13:57:51 +00:00
Marcus Boerger e3a5c9f1d7 - Fix doc comment handling 2005-02-13 13:50:48 +00:00
Marcus Boerger 0a9e940ab7 - Add new test 2005-02-13 13:50:30 +00:00
Rui Hirokawa c7ebef660a added --enable-zend-multibute for win32 2005-02-13 13:03:03 +00:00
foobar 7281cd8082 MFB_4_3: cvs diff -r1.84.2.5 -r1.84.2.6 php_session.h 2005-02-13 07:55:27 +00:00
Hartmut Holzgraefe 1f98a966c5 fix aclocal "underquoted argument" warnings 2005-02-13 07:31:02 +00:00
Hartmut Holzgraefe fc20765c5e fix aclocal warning (newer versions are more strict about this) 2005-02-13 07:17:06 +00:00
Hartmut Holzgraefe e087455493 add function existance check 2005-02-13 07:15:02 +00:00
Wez Furlong 427c5e0e4f tidy up error case 2005-02-13 07:00:29 +00:00
Wez Furlong 0be93c95c9 prep for release 2005-02-13 06:56:16 +00:00
Hartmut Holzgraefe b6828f5949 Fixed domain socket / named pipe handling 2005-02-13 06:52:45 +00:00
Wez Furlong 81999fdeba Fix variable declaration 2005-02-13 06:42:19 +00:00
Wez Furlong f2d2da300f zts 2005-02-13 06:41:46 +00:00
Wez Furlong 47d1c2ad65 autocommit flag gets set always by PDO before invoking this method;
we should unconditionally inspect it here.
2005-02-13 06:37:29 +00:00
Wez Furlong 078b77619a commit generated version of the .re 2005-02-13 06:30:36 +00:00
Wez Furlong 0da6a84edf implement mapping of :name to ? parameters for drivers that only support ?
placeholders.
The current restriction is that you may not use the same named parameter
more than one in a given query, as there is a danger of scary things happen
with the zval if it gets bound multiple times.
2005-02-13 06:29:35 +00:00
Wez Furlong 2a32b478f9 typo-fix error message 2005-02-13 06:27:03 +00:00
Wez Furlong 5edd570b94 Correct the pdo header search order 2005-02-13 06:26:48 +00:00
Wez Furlong fc51fd11b6 it's only an error in emulation mode; rewrite happens in prepare, which
happens before bindParam
2005-02-13 04:00:22 +00:00
Edin Kadribasic ab9821d8c3 Do not shout :) 2005-02-13 03:27:48 +00:00
Wez Furlong 1051e7076f Fixes the crash part of PECL Bug #3434. 2005-02-13 03:26:43 +00:00
Wez Furlong 0aa82c3c83 same fix here 2005-02-13 03:15:11 +00:00
Wez Furlong bee7f3d0ac correct backwards logic 2005-02-13 03:01:38 +00:00
Wez Furlong 08f683a645 Probably fix pecl vs bundled-shared build 2005-02-13 02:51:11 +00:00
Wez Furlong 4d80aaf47a try to handle OSX issues more gracefully 2005-02-13 01:54:59 +00:00
b0ca477655 ChangeLog update 2005-02-13 01:38:06 +00:00
Wez Furlong 4dc3b75569 possible fix for snaps box 2005-02-13 01:32:27 +00:00
Edin Kadribasic 68de0d75b0 Unix line endings 2005-02-13 01:02:18 +00:00
Antony Dovgal 175bf7e9a3 set username && password only if they were specified 2005-02-13 00:57:48 +00:00
Hartmut Holzgraefe 486370dc7c autocommit setting done right 2005-02-13 00:55:16 +00:00
Hartmut Holzgraefe 5d4fb518ae added MySQL transaction support 2005-02-13 00:51:17 +00:00
Hartmut Holzgraefe c6761bfe11 DOS -> Unix line endings 2005-02-13 00:48:00 +00:00
Ilia Alshanetsky 5904d59ffd Fixed compiler warnings. 2005-02-12 20:58:29 +00:00
Ilia Alshanetsky 9b394af973 Simplify code and fix compiler warning. 2005-02-12 20:55:28 +00:00
Ilia Alshanetsky e5a906dcb9 Updated version without compiler warnings. 2005-02-12 20:34:20 +00:00
Marcus Boerger 1a35bcfcbc - Add new test 2005-02-12 18:40:19 +00:00
foobar f485fc1a83 Missed one place.. 2005-02-12 18:29:42 +00:00
foobar 751712628a This was not good idea. 2005-02-12 18:27:22 +00:00
foobar 30deea4d30 Remove unused set_h_errno 2005-02-12 18:14:03 +00:00
Marcus Boerger 6159f69023 - Bugfix #30682 (autoconversion from false/true to 0/1 missing in case of
static property default value)
2005-02-12 16:38:47 +00:00
Wez Furlong 9e31b10531 prep for release 2005-02-12 08:23:32 +00:00
Wez Furlong 002545fffb Fix bundled sqlite build (doh!) 2005-02-12 08:20:17 +00:00
33347d3264 ChangeLog update 2005-02-12 01:32:51 +00:00
Marcus Boerger a29f5391db - Cleanup foreach handling 2005-02-11 22:26:45 +00:00
Wez Furlong 91eab3e5bc typo 2005-02-11 02:05:05 +00:00
foobar 59db0751fc Revert previous patch 2005-02-11 02:03:51 +00:00
a29e968e1e ChangeLog update 2005-02-11 01:37:02 +00:00
Wez Furlong 1f06eb1c5c update in anticipation of a release later tonight 2005-02-11 01:22:44 +00:00
Wez Furlong ccd242665b Fix PDO::query() for drivers that emulate bound parameters. 2005-02-11 01:20:59 +00:00
Rob Richards bb9ba8e36e fix segfault when retval_ptr is empty - such as when exception thrown 2005-02-10 22:59:26 +00:00
Hartmut Holzgraefe 2c6b600a90 test case for Bug #30266 2005-02-10 22:55:52 +00:00
foobar 378817d367 - Fixed bug #31920 (zend_strtod.c error: conflicting types for 'int8_t') 2005-02-10 22:19:32 +00:00
Antony Dovgal 5b78e4c025 hm..
fix #28324 _properly_
2005-02-10 20:22:07 +00:00
Antony Dovgal 94982058b6 fix bug #28324 (HTTP_SESSION_VARS appear when register_long_arrays is Off) 2005-02-10 19:38:11 +00:00
Rob Richards 4967138514 initial cut of new error handling 2005-02-10 15:52:38 +00:00
Pierre Joye 162b91136c - fix #30745 and #31853 (php-bugs at demark dot org, pierre) 2005-02-10 14:31:32 +00:00
Ilia Alshanetsky f257e10d48 Removed unused vars. 2005-02-10 14:11:06 +00:00
Dmitry Stogov 5764d6f41b Fixed bug #30407 (Strange behaviour of default arguments) 2005-02-10 11:45:24 +00:00
Wez Furlong 877a2bd690 prep for release 2005-02-10 02:06:49 +00:00
Wez Furlong 69cbb7f958 prep for release 2005-02-10 01:56:20 +00:00
Wez Furlong e9f5fb53f3 only do this magic on non-win32 platforms 2005-02-10 01:34:39 +00:00
042f9081a8 ChangeLog update 2005-02-10 01:33:08 +00:00
Wez Furlong 3b857ea987 rename ancient method 2005-02-09 23:34:53 +00:00
Frank M. Kromann d2ae18d76e change return value from false to true, when a statement was executed with warnings 2005-02-09 19:32:03 +00:00
Frank M. Kromann 4b0d9e2319 Check for warnings and return the warning texts 2005-02-09 18:49:38 +00:00
Ilia Alshanetsky ee0e2d0ea3 Touch file. 2005-02-09 17:06:13 +00:00
Ilia Alshanetsky cd6d5fb18f Fixed compile warnings. 2005-02-09 16:33:00 +00:00
Rasmus Lerdorf 4909775f04 Fix for bug #31901 2005-02-09 16:22:48 +00:00
Ilia Alshanetsky 2196c4335b kill unused var 2005-02-09 16:14:50 +00:00
Ilia Alshanetsky 1b3dd5db8b remove unused vars. 2005-02-09 15:56:27 +00:00
Wez Furlong 94d5261f73 cosmetic changes 2005-02-09 15:12:41 +00:00
Wez Furlong ad60999858 proper fix for PECL Bug #3412 2005-02-09 14:32:04 +00:00
Rob Richards 08592b38da Fixed bug #31878 (Segmentation fault using clone keyword on nodes) 2005-02-09 11:46:43 +00:00
Wez Furlong 1cdde9e3ed update with changes 2005-02-09 07:02:00 +00:00
Wez Furlong 211206b2e4 Add PDO_ATTR_TIMEOUT support.
Fix PECL Bug #3391
2005-02-09 07:00:00 +00:00
Wez Furlong f6aa8f5d90 keep a log here for now 2005-02-09 06:44:08 +00:00
Wez Furlong 902ca8c1cf Expose the quoter method of the driver as PDO::quote().
Closes PECL Bug #3393
2005-02-09 06:43:15 +00:00
Wez Furlong d57a169500 typo fix 2005-02-09 06:14:48 +00:00
Wez Furlong dbaa3bfdfa hope it works! 2005-02-09 05:26:38 +00:00
Wez Furlong c28a0b9fcb disable dep 2005-02-09 05:18:02 +00:00
Wez Furlong 44cec3d456 disable dep for pecl release 2005-02-09 05:12:41 +00:00
Wez Furlong 201ec3dc02 prep for release 2005-02-09 05:04:40 +00:00
Wez Furlong 3047ced496 prep for possible release 2005-02-09 05:00:58 +00:00
Wez Furlong 229ea4bbfc update ready for release.
Disable dependency macro for compatibility with existing PHP 5.0.x releases.
2005-02-09 04:57:32 +00:00
Wez Furlong b9a951aa1a be realistic... 2005-02-09 04:56:10 +00:00
Wez Furlong 5a2cb4154a update ready for release
# includes big hack to help guide people into running "make install" so
# that the headers get installed; works around a pear bug.
2005-02-09 04:54:56 +00:00
5f026d026a ChangeLog update 2005-02-09 01:33:26 +00:00
Moriyoshi Koizumi 352fc43ec9 - Complement for Jani's fix. Likely fix the iconv issue. 2005-02-09 00:49:45 +00:00
Wez Furlong 5304374fc5 fix typo 2005-02-09 00:38:11 +00:00
Marcus Boerger 3fb1c65a41 - Initial Observer implementation 2005-02-08 20:42:48 +00:00
Marcus Boerger 2e8b9c005b - Update to 2005 2005-02-08 19:10:06 +00:00
Marcus Boerger 2f9662d156 - Fix year and speling 2005-02-08 19:05:25 +00:00
Marcus Boerger e5fe40eac9 - Actually these are private 2005-02-08 19:00:19 +00:00
Ilia Alshanetsky 891745776e Removed pointless operations/declarations. 2005-02-08 15:30:42 +00:00
Ilia Alshanetsky 55fd7ac601 Added optional maxlen parameter to file_get_contents(). 2005-02-08 15:25:45 +00:00
Antony Dovgal bc27a2af7a move ext/cpdf to PECL 2005-02-08 13:40:37 +00:00
Rasmus Lerdorf bf7cb1179a Don't need MSHUTDOWN either here 2005-02-08 05:25:48 +00:00
d8ad6ff49b ChangeLog update 2005-02-08 01:35:38 +00:00
Rasmus Lerdorf 3baf795c17 Get rid of more useless RINIT/RSHUTDOWN calls 2005-02-07 23:04:00 +00:00
Ilia Alshanetsky aa6cb1055b Fixed bug #31527 (crash in msg_send() when non-string is stored without
being serialized).
2005-02-07 22:31:19 +00:00
Rasmus Lerdorf 9c530d79e7 No reason to call empty RINIT, RSHUTDOWN and MSHUTDOWN functions here 2005-02-07 22:16:46 +00:00
Dmitry Stogov c91218ae8a Fixed bug introduced with foreach() optimization patch 2005-02-07 17:54:58 +00:00
Dmitry Stogov 625e06f454 Fixed FE_RESET/FE_FETCH bug.
Now FE_RESET instruction takes jump-address from itself, not from the following FE_FETCH instruction.
2005-02-07 16:44:00 +00:00
Marcus Boerger a8552cb2f9 - Add missing '?>' 2005-02-07 16:27:41 +00:00
Dmitry Stogov fc96c7f7fa foreash($a as $key => $val) optimization
Removed temorary array creation on each iteration.
2005-02-07 16:09:54 +00:00
Marcus Boerger 2d13dd0ef0 - Remove part of the cleanup which causes a problem with unnormal code
like tests/lang/040.phpt
# However there is a memleak introduced somewhen after august 04 for such
# code now, 5.0 and 4.3 are fine though.
2005-02-07 15:22:38 +00:00
Marcus Boerger d1fc7ad4d9 - Add new test 2005-02-07 15:16:08 +00:00
Antony Dovgal 96610aee08 fix leaks on shutdown
fix leaks appearing when trying to open several "databases"
2005-02-07 13:30:45 +00:00
foobar 066d1b4d53 - Fixed bug #31858 (--disable-cli does not force --without-pear) 2005-02-07 12:48:11 +00:00
Wez Furlong dbcf51b5a8 a working implementation of LOB input parameters for ODBC.
however: when sending in a string from the script, we get a 1 byte overflow
of the pdo parameter structure... Need to install valgrind on the test box
2005-02-07 04:13:32 +00:00
Wez Furlong ac018c38a8 This might allow piecewise sending of LOB data for input parameters. 2005-02-07 03:27:54 +00:00
149d9e8407 ChangeLog update 2005-02-07 01:33:17 +00:00
Wez Furlong ae5958570b update 2005-02-07 01:21:58 +00:00
Wez Furlong 29380a8e54 update for input/output parameters change 2005-02-07 01:17:24 +00:00
Wez Furlong 501000f129 Implement input/output parameters 2005-02-07 01:16:16 +00:00
Wez Furlong 36e3ea8cb2 add input/output parameter type flag 2005-02-07 01:12:49 +00:00
Wez Furlong 504afcfc5a and the generated file 2005-02-07 00:26:38 +00:00
Wez Furlong 2bd3536041 handle input LOBs (which are passed as streams) in bound parameter emulation.
Update error handling.
2005-02-07 00:26:22 +00:00
Wez Furlong af162668e5 fix pointer indirection (and thus leak) 2005-02-07 00:04:20 +00:00
Wez Furlong 7279fe8ab0 centralize this define 2005-02-07 00:02:51 +00:00
Wez Furlong 61981912f8 hmmm 2005-02-06 23:58:53 +00:00
Zeev Suraski 17537ac500 Correct fix for #28804 2005-02-06 23:51:59 +00:00
Wez Furlong 668740aada even less noise 2005-02-06 23:23:05 +00:00
Wez Furlong d134fb2a8d update for api changes 2005-02-06 23:22:37 +00:00
Wez Furlong 0569078901 Avoid bug where stream_copy_to_stream() call for precisely 2000000 bytes would
result in entire resource being copied.
The mmap brake is already present inside mmap_range() and is set to 1MB.
2005-02-06 23:17:09 +00:00
Wez Furlong 1069cefada support sucking data from streams in file_put_contents() 2005-02-06 23:05:24 +00:00
Ilia Alshanetsky 917648a232 Fixed possible un-initialized var on error. 2005-02-06 22:58:46 +00:00
Wez Furlong c3eae192dc less noise 2005-02-06 22:48:36 +00:00
Edin Kadribasic 22ff90f7ba Adjust for the new get_col api 2005-02-06 22:48:35 +00:00
Wez Furlong d87c5ec288 update for api changes 2005-02-06 22:34:53 +00:00
Wez Furlong 3130ed3066 make configure smarter.
Update for new get_col() signature
2005-02-06 22:25:33 +00:00
Wez Furlong ccf0a6a557 add a caller_frees parameter to get_col() to allow drivers that need
to allocate data on demand to do so without worrying about cleaning it up.

Spec out how LOB parameters are returned.
2005-02-06 22:11:12 +00:00
Wez Furlong f400f0e665 add an open mode for the memory streams that allows the stream to take
ownership of the passed-in buffer
2005-02-06 21:41:36 +00:00
Wez Furlong e3ba31e899 better handling of pdo-level errors 2005-02-06 21:05:59 +00:00
Wez Furlong ec98e744be touch again 2005-02-06 21:05:28 +00:00
Wez Furlong 474a65e277 update todo 2005-02-06 19:59:32 +00:00
Wez Furlong c56419ed78 support getting some more attributes 2005-02-06 17:49:48 +00:00
Wez Furlong ca4dc0361c this one too 2005-02-06 17:33:12 +00:00
Wez Furlong 9ba84360e3 handle some generic attributes here 2005-02-06 17:25:09 +00:00
Wez Furlong b2126a848a This will probably fix PECL Bug #3273 2005-02-06 16:46:18 +00:00
Wez Furlong 257dfcdde7 touch file 2005-02-06 16:29:33 +00:00
Timm Friebe 5eb673d1cb - Made error handler not output anything if error was not in error_reporting() mask 2005-02-06 14:08:11 +00:00
Timm Friebe ca250d16dc - Fixed error handler for situations in which an error
was raised in an include file
2005-02-06 14:06:21 +00:00
Timm Friebe 6a4d498af4 - Initial release
# Used for being able to run .phpt-files in a webserver environment
# Incomplete and pretty basic but serves its purpose ATM
2005-02-06 13:35:09 +00:00
Timm Friebe 57fa001979 - Prefixed all temporary names with "phpt_" 2005-02-06 12:59:03 +00:00
Timm Friebe 2a595d116e - Initial release
# Works perfectly with php-cli
2005-02-06 11:58:53 +00:00
Timm Friebe e47835b90e - "Unified" test name 2005-02-06 11:58:18 +00:00
ba9e818d57 ChangeLog update 2005-02-06 01:43:36 +00:00
Edin Kadribasic accdde8c19 Finalized pgsql LOB support using native pgsql bytea type.
If paramater is bound with type PDO_PARAM_LOB the quoter function
gets a hint that specific LOB type quoting should be used:

$stmt->bindParam(":lob", $lob, PDO_PARAM_LOB);
2005-02-06 01:27:27 +00:00
Edin Kadribasic 0d9b0606b9 Don't segault when we have placeholders but no bound params 2005-02-06 00:46:17 +00:00
Edin Kadribasic bf77a39349 Decode pgsql LOB objects (bytea type) on fetch 2005-02-05 22:55:23 +00:00
Edin Kadribasic 64e8c3105c Return lobs as strings for now 2005-02-05 22:46:26 +00:00
Wez Furlong 74821473e2 update separately 2005-02-05 21:30:19 +00:00
Wez Furlong 15e754201f pass param type to quoter functions 2005-02-05 21:29:42 +00:00
Edin Kadribasic 95cc208464 Removed unused variebles.
Return OID as int.
2005-02-05 20:38:47 +00:00
Marcus Boerger 662cd8262e - Cleanup foreach statement 2005-02-05 14:01:59 +00:00
Georg Richter ef6f0f00a6 fix for bug #29329 2005-02-05 10:59:38 +00:00
9321218742 ChangeLog update 2005-02-05 01:34:50 +00:00
foobar 71b9c41a6b fix test 2005-02-04 23:23:34 +00:00
Hartmut Holzgraefe d88c2b18d4 added some missing zend_[declare|update]_property_...() convenience
functions for bool, double and binary safe string data
2005-02-04 20:24:21 +00:00
Dmitry Stogov 625b79c3ba Fixed bug #31832 (SOAP encoding problem with complex types in WSDL mode with multiple parts) 2005-02-04 15:42:46 +00:00
Derick Rethans 0242ae498e - Fixed bug #31754 (dbase_open() fails for mode = 1). (Mehdi, Derick) 2005-02-04 14:28:50 +00:00
foobar b61a63d008 - Fixed bug #31842 (*date('r') does not return RFC2822 conforming date string). 2005-02-04 13:08:56 +00:00
foobar 951eb23e9a - Fixed bug #28227 (PHP CGI depends upon non-standard SCRIPT_FILENAME)
# patch by: lukem at NetBSD dot org
2005-02-04 10:39:33 +00:00
Edin Kadribasic 1a962e9d98 Get OID of the last inserted row 2005-02-04 01:48:01 +00:00
443dcdbb60 ChangeLog update 2005-02-04 01:34:25 +00:00
Ilia Alshanetsky 779edcb01d Proper fix for bug #31796 . 2005-02-04 00:21:50 +00:00
Ilia Alshanetsky 5879c5cf21 Fixed bug #31796 (readline completion handler does not handle empty return
values).
2005-02-03 22:45:36 +00:00
Ilia Alshanetsky 996b464e30 Use the created connection string. 2005-02-03 22:24:50 +00:00
foobar 996c9d85d7 - Fix buildconf with BSD make 2005-02-03 17:42:42 +00:00
Magnus M��tt� fda27b4465 Fix typos. 2005-02-03 17:02:42 +00:00
foobar fe0e3b39f8 cleanup 2005-02-03 15:46:15 +00:00
foobar 77ee4950dd - Fixed bug #28804 (ini-file section parsing pattern is buggy). 2005-02-03 03:01:56 +00:00
foobar 91962aafad ws fix 2005-02-03 02:58:21 +00:00
4d0f0d308f ChangeLog update 2005-02-03 01:33:55 +00:00
Ilia Alshanetsky e55938b6a8 Fixed bug #31514 (open_basedir uses path_translated rather then cwd for .
translation).
2005-02-02 23:43:17 +00:00
Zeev Suraski 11339ee42e Removing this file has been long due...
API's and functionality are stable.
2005-02-02 17:22:19 +00:00
foobar ebd3f9673d pecl movement 2005-02-02 14:44:36 +00:00
foobar 75b4e2c832 - Moved ext/w32api to PECL. 2005-02-02 14:43:26 +00:00
foobar c919fac568 PECL 2005-02-02 14:33:53 +00:00
foobar 0741be6f3c - Moved ext/yp to PECL. 2005-02-02 14:33:23 +00:00
foobar 51ba2cdce9 NEWS 2005-02-02 14:32:23 +00:00
foobar 439c5f4f33 - Moved ext/dio to PECL. 2005-02-02 14:29:58 +00:00
Stanislav Malyshev 7b241027fa fix memory leak if function call fails 2005-02-02 10:37:50 +00:00
Stanislav Malyshev 3925337a55 Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony Dovgal) 2005-02-02 10:36:02 +00:00
Dmitry Stogov 3c31410074 Fixed bug #31747 (SOAP Digest Authentication doesn't work with "HTTP/1.1 100 Continue" response) 2005-02-02 10:34:39 +00:00
Stanislav Malyshev d38eed95ea test for Bug #31720 2005-02-02 10:31:53 +00:00
Dmitry Stogov 83e6e40438 Fixed bug #31755 (Cannot create SOAP header in no namespace) 2005-02-02 09:11:46 +00:00
Dmitry Stogov fd4fe1c8d3 Fixed bugs #29767 and #31683 (__get and __set methods must not modify property name). 2005-02-02 07:19:22 +00:00
24a834dfa4 ChangeLog update 2005-02-02 01:33:27 +00:00
Ilia Alshanetsky 8c97b9dc73 Fixed bug #31797 (exif_read_data() uses too low nesting limit). 2005-02-01 23:27:33 +00:00
Stanislav Malyshev 1088e28dfa Fix debug_trace with eval (patch from Antony Dovgal) 2005-02-01 19:05:56 +00:00
Stanislav Malyshev 13cd138683 test for eval debug_backtrace bug 2005-02-01 19:03:50 +00:00
Anantha Kesari H Y bcbca0e397 NetWare has a compliant pthread implementation 2005-02-01 13:04:26 +00:00
Ilia Alshanetsky d179e6aa40 Final version of filename upload handling. 2005-02-01 02:33:07 +00:00
38775706eb ChangeLog update 2005-02-01 01:33:19 +00:00
Marcus Boerger 0bb81ce1d6 - Add ReclectionClass:hasProperty(), ReflectionClass::hasConstant()
to complete api (johannes@php.net)
2005-01-31 22:56:01 +00:00
Dmitry Stogov fea1b5b3a0 Fixed SIGSEGV when restoring WSDL without functions from cache 2005-01-31 15:08:24 +00:00
Antony Dovgal 5e8cd3a2da fix segfault when failed to open magic file 2005-01-31 15:01:47 +00:00
Dmitry Stogov 950632519b Empty "detail" was removed from SoapFault object. 2005-01-31 14:26:06 +00:00
Dmitry Stogov 6e8d3e9023 Fixed memory allocation bug 2005-01-31 14:02:19 +00:00
4a77ca046a ChangeLog update 2005-01-31 01:34:53 +00:00
Ilia Alshanetsky 112eb3b35d Fix handling of INF/NAN in unserialize(). 2005-01-30 16:38:53 +00:00
c73882617e ChangeLog update 2005-01-29 01:38:40 +00:00
Marcus Boerger 0236e31313 - Fix severity (found by johannes) 2005-01-28 20:24:20 +00:00
Georg Richter 32aaa6a7be fixed a bug in mysql_affected_rows and mysql_stmt_affected_rows
in case affected_rows function returns (my_ulonglong) -1 for errors.
(Thanks to Antony Dovgal for reporting this bug)
2005-01-28 17:35:37 +00:00
Antony Dovgal 999c63d9d7 improve CS & error messages 2005-01-28 16:42:26 +00:00
Antony Dovgal c61ce71a01 MFB: explain why ftok() failed 2005-01-28 16:36:46 +00:00
Dmitry Stogov d5d127c3ad Memory leak was fixed 2005-01-28 10:33:46 +00:00
Antony Dovgal f7326d6279 MFB: fix #31732 2005-01-28 02:00:39 +00:00
Antony Dovgal 3ff7f46fd4 change return type from NULL to FALSE when parameter parsing failed
(as was requested by Ilia)
2005-01-28 01:38:56 +00:00
968bd31c92 ChangeLog update 2005-01-28 01:35:59 +00:00
Antony Dovgal 75725c57a5 MFB: fix posix_getsid() & posix_getpgid() 2005-01-28 00:27:48 +00:00
Frank M. Kromann a13734d2f7 Hack to fix crash caused by FBCAccess not returning errors when creating an index that exists in the database. 2005-01-27 20:13:04 +00:00
Ilia Alshanetsky 42155f6028 Fixed bug #31705 (parse_url() does not recognize http://foo.com#bar) 2005-01-27 16:37:34 +00:00
Antony Dovgal 6ffd569410 MFB: fix leak in mysqli_fetch_array() 2005-01-27 14:41:48 +00:00
Georg Richter 7148919940 fix for bug #31710 (return value for mysql_rollback is reverted)
fixed also same behaviour for mysql_commit and mysql_autocommit
2005-01-27 10:18:28 +00:00
969860b570 ChangeLog update 2005-01-27 01:35:48 +00:00
Antony Dovgal 9d9e4379af MFB: fix segfault when invalid field offset is passed to mysqli_fetch_field_direct() 2005-01-27 01:14:43 +00:00
Marcus Boerger 5cabd2f12b - Move tests to proper location now that the tested classes are hardcoded 2005-01-27 00:34:13 +00:00
Marcus Boerger faba10853f - Unify 2005-01-27 00:26:13 +00:00
Marcus Boerger f1e34911a9 - Add new test 2005-01-27 00:22:28 +00:00
Marcus Boerger f18aa85252 - Know whether ew refer to an external array (is_ref) or not 2005-01-27 00:22:06 +00:00
Derick Rethans 7b27263e16 - There is no --with-apache2, only apxs2 2005-01-26 18:03:04 +00:00
Ilia Alshanetsky 4a5294788e Fixed bug #31699 (unserialize() float problem on non-English locales). 2005-01-26 16:55:17 +00:00
51ca0e7bbb ChangeLog update 2005-01-26 01:42:26 +00:00
Ilia Alshanetsky c85a9abc4c Fixed bug #29733 (printf() handles repeated placeholders wrong).
# Original patch by bugs dot php dot net at bluetwanger dot de
2005-01-26 00:01:26 +00:00
Andrei Zmievski 9ab8deb33c Don't depend on empty_string. 2005-01-25 23:58:22 +00:00
Ilia Alshanetsky 8c22d51070 Fixed bug #31465 (False warning in unpack() when working with *). 2005-01-25 22:50:39 +00:00
Andrei Zmievski 27b1a27faf MFB (Fix several egregious leaks in ext/browscap and sapi/embed). 2005-01-25 21:33:58 +00:00
Marcus Boerger 1c2b14b92f - Proto fix 2005-01-25 19:08:38 +00:00
Antony Dovgal c404bdb9f8 check body for NULL before using and prevent segfaults 2005-01-25 14:20:02 +00:00
foobar af854a8409 - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings) 2005-01-25 13:42:52 +00:00
foobar 601140cbe9 New versions of glibc support a RTLD_DEEPBIND flag to dlopen. The
effect of this flag when loading a "foo.so" with undefined symbols is
that the search that symbol starts at foo.so and its dependencies
*before* the loading process' global symbol table.

This is an effective workaround for symbol namespace collisions between
various modules and the libraries on which they depend (where fixing the
respective modules or libraries is not possible e.g. due to API
constraints).

(By: Joe Orton)
2005-01-25 13:08:05 +00:00
foobar 25ab28c48f - Fix macosx shared extension build 2005-01-25 13:02:25 +00:00
foobar 0576cdc942 - Return of the automake requirement.
# Unfortunately we can't control what macros are used by the 3rd party
# extensions so..
2005-01-25 12:53:43 +00:00
Dmitry Stogov 2d8e73b963 Fixed bug #28041 (SOAP HTTP Digest Access Authentication was implemented) 2005-01-25 11:03:20 +00:00
Marcus Boerger 82193adc09 - Bugfix #26229 (getIterator() segfaults when it returns arrays or scalars) 2005-01-25 10:40:51 +00:00
Marcus Boerger 14e54cdc1e - Fix dependency 2005-01-25 10:39:49 +00:00
Marcus Boerger ccca7df1ea - Use correct freeing (thx Dmitry) 2005-01-25 10:07:52 +00:00
838ab371d9 ChangeLog update 2005-01-25 01:34:05 +00:00
foobar 91f68f0130 massage 2005-01-25 00:09:44 +00:00
Ilia Alshanetsky 25fd4c3bc2 Fixed ZTS build 2005-01-24 23:53:00 +00:00
Ilia Alshanetsky 71695f8159 Use multibyte specific code for handling files and generic basename based
code in all other instances.
2005-01-24 22:35:23 +00:00
Marcus Boerger b570ad759b - Unify 2005-01-24 21:28:56 +00:00
Marcus Boerger e1737ca88a - Bugfix #31346 2005-01-24 21:27:36 +00:00
Marcus Boerger 06dbcb22a1 - Update 2005-01-24 21:13:52 +00:00
Marcus Boerger 36e6841ef5 - Add new test 2005-01-24 20:22:56 +00:00
Marcus Boerger 3c36e73b95 - bugfix 31348 2005-01-24 20:21:11 +00:00
Marcus Boerger 3cf4eae4aa - Second and last part of #30725 fix 2005-01-24 20:02:55 +00:00
Marcus Boerger 5206e9c9cf - Allow getIterator() to fail 2005-01-24 19:18:37 +00:00
Marcus Boerger be86e1696e - Add new test 2005-01-24 19:16:06 +00:00
Marcus Boerger 2f55df7d10 - mysqli/sqlite changes 2005-01-24 18:49:01 +00:00
Marcus Boerger 7ec2fe9dcd - Synch with MYSQLi extension and use RuntimeException as base for
SQLiteException if SPL is present.
2005-01-24 18:46:50 +00:00
Moriyoshi Koizumi 76d91f2a3d - Revert irrelevant part. 2005-01-24 16:47:18 +00:00
Antony Dovgal 5a559e9a57 add test 2005-01-24 14:19:53 +00:00
Antony Dovgal 9e55579cb0 fix msg_recieve() returning TRUE instead of FALSE when unserialize failed
(patch by Andrey Hristov)
2005-01-24 14:12:01 +00:00
Joe Orton 62121a1840 Fixed regression #31645 - only flush before running the subrequest. 2005-01-24 11:44:56 +00:00
66a24ad4f5 ChangeLog update 2005-01-24 01:35:53 +00:00
Wez Furlong ebaf95b13a make this the right size... 2005-01-23 15:34:48 +00:00
Sergey Kartashoff 618b7c267c - A bug in mnogosearch module in ispell loading code was fixed 2005-01-23 15:01:20 +00:00
Edin Kadribasic 60f5e66aa9 Add support for fetching meta data 2005-01-23 14:50:06 +00:00
Edin Kadribasic d8aa131ca0 Store pgsql_type, intval and boolav per column 2005-01-23 10:57:11 +00:00
8839b8b3ec ChangeLog update 2005-01-23 01:36:14 +00:00
Edin Kadribasic 902c2b43cb Remove debug stuff 2005-01-22 23:51:09 +00:00
Edin Kadribasic e58a8671a2 Support for native nulls, bools and ints 2005-01-22 23:31:19 +00:00
foobar 5264cfb853 - Remove also autom4te.cache dir with phpize --clean 2005-01-22 20:30:05 +00:00
foobar af1f60e601 - Compile fix for systems without uint32_t typedef 2005-01-22 20:28:17 +00:00
Marcus Boerger 1d5c13bdad - Fix #31651 (ReflectionClass::getDefaultProperties segfaults with arrays.) 2005-01-22 12:23:01 +00:00
Marcus Boerger bad986232b - Update after fixing it 2005-01-22 12:22:01 +00:00
Marcus Boerger a01e3435de _ Add test for bug 31651 2005-01-22 11:46:56 +00:00
Edin Kadribasic afcd94f22d Generate files needed for php5ts.dll build 2005-01-22 03:36:38 +00:00
Andi Gutmans 8838c0f860 - Two new API calls for Derick (retreive CV name and value) by Dmitry 2005-01-22 02:29:18 +00:00
eba6a36290 ChangeLog update 2005-01-22 01:34:16 +00:00
foobar f8a540d105 - Typofix + removed unnecessary unsets caused by it 2005-01-22 01:31:54 +00:00
Andrei Zmievski ecb9f8668d MFB (bugfix for 24851) 2005-01-22 00:01:33 +00:00
Stefan Esser 581265f4d1 Correctly initialize ZVAL 2005-01-21 16:03:47 +00:00
Antony Dovgal 5e1b127864 destruct return_value 2005-01-21 10:55:41 +00:00
Wez Furlong 0162d0093d picky picky.
Lets make those OUTPUT rather than INPUT-OUTPUT.
We need some flag from the user if they want that.
2005-01-21 06:11:10 +00:00
Wez Furlong e5b6b0dbee Allow static build (better detection of PDO headers).
Copy error code into driver code, so PDO can handle it correctly.
Less leaks
2005-01-21 04:43:06 +00:00
Wez Furlong 7a137a5f84 fix leak 2005-01-21 04:41:52 +00:00
Wez Furlong 8ebcbfdf1b hrmm. Really really really really touch the timestamp in CVS to avoid
crappy makefile annoyance.
2005-01-21 04:34:41 +00:00
Wez Furlong bc55e7f3e2 make use of the query rewriter (even though it doesn't do anything yet) 2005-01-21 04:22:06 +00:00
Wez Furlong 53af3dc4f2 update 2005-01-21 04:02:41 +00:00
Wez Furlong dede3c59fe fix encoding nastiness that snuck in from the copy-n-paste of error code
descriptions from a web page.
2005-01-21 03:59:41 +00:00
Wez Furlong 88640832be and check in the generated c file later, to avoid remaking it in fresh checkouts. 2005-01-21 03:58:09 +00:00
Wez Furlong 6ddbfa0733 Revise query parser so that it can rewrite from one bind syntax to another.
Expose it as PDO_API.  No drivers utilize this feature yet.
2005-01-21 03:57:06 +00:00
1c0479f3f9 ChangeLog update 2005-01-21 01:36:01 +00:00
Wez Furlong 26f97a911b Eliminate unused parameter.
Don't start a transaction when asking for a cursor with pgsql.
Fix parameter binding for sqlite3
2005-01-21 00:39:03 +00:00
Wez Furlong dcd3d84ddb Eliminate unused parameter 2005-01-21 00:38:09 +00:00
Wez Furlong 08fa032b80 fix backslash 2005-01-21 00:04:50 +00:00
Antony Dovgal d0427feee4 fix bug #31623 (OCILogin does not support password grace period) 2005-01-20 18:39:48 +00:00
Antony Dovgal 84a8849a3a fix error message 2005-01-20 18:08:08 +00:00
Antony Dovgal 4f3e113e38 fix segfault in imap_sort() - it segfaults when options is less than 0.
it looks like c-client bug, but we still need a workaround.
also, convert_to_string search criteria.
2005-01-20 18:03:35 +00:00
Ilia Alshanetsky 844cc09cd1 Fixed bug #31398 (When magic_guotes_gpc are enabled filenames with '
get cutoff).
2005-01-20 17:44:58 +00:00
Dmitry Stogov a343fc848d Support for HTTP error codes 2005-01-20 17:29:16 +00:00
Edin Kadribasic 93e4213bfe Add support for the 'official' build machine layout 2005-01-20 15:54:35 +00:00
Dmitry Stogov c35353ea20 Fixed bug #30901 (can't send cookies with soap envelop).
void SoapClient::__setCookie(string name [, string value])
2005-01-20 14:29:19 +00:00
Antony Dovgal 9812f55289 fix segfault in imap_headerinfo() when fromlength or subjectlength are less than 0
+ fix protos
2005-01-20 14:04:50 +00:00
Dmitry Stogov a830b0fc6b Fixed bug #31422 (No Error-Logging on SoapServer-Side). 2005-01-20 12:48:01 +00:00
Rob Richards dd2f5ed142 Fixed bug #28817 (Var problem when extending domDocument). 2005-01-20 11:47:05 +00:00
Antony Dovgal 6a9579bd7e fix typos in error messages 2005-01-20 09:59:23 +00:00
Antony Dovgal 5aa42a202a fix typos in error messages & resource name 2005-01-20 09:57:57 +00:00
Dmitry Stogov 56025c6a1a Support for HTTPS with digital certificates. 2005-01-20 06:08:04 +00:00
Wez Furlong 1312fe469e Fix segfault on stmt close.
Make scrollable cursors actually work
2005-01-20 06:06:26 +00:00
Wez Furlong e21e1c65e3 Juggle/enhance mssql library detection 2005-01-20 05:09:06 +00:00
Wez Furlong 84aa902015 Generate pdo_oci.dll for modern SDKs and pdo_oci8.dll for ye-olde oci805 libs.
I'm told that oci805 is required for connectivity to oci805 servers, which are
no longer supported in more recent SDK releases.

Edin: please grab:

http://download.oracle.com/otn/nt/instantclient/instantclient-basic-win32-10.1.0.3-20050113.zip
http://download.oracle.com/otn/nt/instantclient/instantclient-sdk-win32-10.1.0.3-20050113.zip

and extract them under php_build, so that you end up with php_build/instantclient10_1
2005-01-20 03:33:17 +00:00
Wez Furlong 9fe37737f9 generate dblib and mssql variants in the same build 2005-01-20 03:29:53 +00:00
Wez Furlong 968d2ef830 A couple more adjustments for building multiple output variants of the same
extension source.
2005-01-20 03:24:50 +00:00
foobar 2c65e09a4b - Revert the weird change of ZEND_STRS() macro and use the correct
ZEND_STRL() macro.
# ZEND_STRS was changed to be same as ZEND_STRL..someone on crack? :)
2005-01-20 02:02:09 +00:00
foobar 480a3b08d5 - Changed phpize not to require automake and libtool.
- Fixed build system to always use bundled libtool files.
2005-01-20 01:41:20 +00:00
aaf344e642 ChangeLog update 2005-01-20 01:35:55 +00:00
foobar 76906e0443 - Add --with-libdir to phpized builds too 2005-01-20 00:54:18 +00:00
foobar 39b7569614 - Removed obsolete AC_PROG_RANLIB (AC_PROG_LIBTOOL does it)
- configure --help output cleanup for --with-libdir
2005-01-20 00:51:41 +00:00
foobar 52e00b8f03 Added --debug option to buildconf 2005-01-19 23:03:29 +00:00
foobar ed25ab62f5 Revert the multiple autoconf versions patch 2005-01-19 22:27:39 +00:00
Ilia Alshanetsky e8300c82a0 Stricter cc header check. 2005-01-19 18:54:23 +00:00
Derick Rethans c5b7fe878c - Add the patched libtool.m4 from snaps so that Jani can play with it. 2005-01-19 17:52:32 +00:00
foobar 9feb47d70e - Fixed bug #28976 (use From: from headers if sendmail_from is empty) 2005-01-19 17:38:20 +00:00
foobar 6faa433d58 - Fix the pic patch 2005-01-19 17:35:55 +00:00
Wez Furlong e28d2c8032 Take a stab at implementing out parameters for odbc 2005-01-19 05:27:15 +00:00
Wez Furlong a39d50c95f don't propogate an unspecified length to the driver.
Drivers will used a 0 length as a hint that the parameter is an in-out or out
parameter.
2005-01-19 05:25:40 +00:00
Wez Furlong 769d399be5 add dep 2005-01-19 03:50:32 +00:00
Wez Furlong ffd35bb63d allow static linkage.
Avoid segv when no username is passed
2005-01-19 03:45:21 +00:00
Wez Furlong a536e31fb1 leak/segv less 2005-01-19 03:44:49 +00:00
foobar 20be664666 - Fixed bug #29183 (Undefined symbol zend_check_private with Solaris CC) 2005-01-19 01:46:26 +00:00
57463e1509 ChangeLog update 2005-01-19 01:34:40 +00:00
foobar 91ea475f4d - Fixed bug #29136 (make test - libtool failure on MacOSX) 2005-01-19 01:30:23 +00:00
Wez Furlong 434d068994 *compile before commit *
*compile before commit *
*compile before commit *
2005-01-19 01:17:13 +00:00
Wez Furlong af8bb16ec1 implement nextRowset for ODBC
# this might even work first time
2005-01-19 01:13:39 +00:00
Wez Furlong 544d61873d proto bool PDOStatement::nextRowset()
Advances to the next rowset in a multi-rowset statement handle. Returns true if
it succeded, false otherwise
2005-01-19 01:12:52 +00:00
Marcus Boerger 406e85a8d8 - Fix memleak 2005-01-19 00:55:56 +00:00
Wez Furlong 9b36089838 let it compile again 2005-01-19 00:33:56 +00:00
foobar c245e1f0f7 - ldap_start_tls() requires ldapv3 protocol -> force it 2005-01-19 00:27:21 +00:00
Ilia Alshanetsky c78db34489 Fixed bug #31142 (crash, memory leak and data loss by imap_mail_compose). 2005-01-18 23:36:08 +00:00
Frank M. Kromann 736ff0319a Set the MSSQL_VERSION to FreeTDS when that lib is used 2005-01-18 22:39:01 +00:00
Frank M. Kromann 4b4cde0702 Rename php_freetds.dll to php_dblib.dll (still using the freetds libs).
Allow the build of both versions in the same process
2005-01-18 22:38:24 +00:00
Frank M. Kromann e296197362 Allow the build system to generate multiple extensions from the same extension directory 2005-01-18 22:37:12 +00:00
Antony Dovgal 84fe72612e add checks for libs & headers required by IBM DB2 2005-01-18 21:16:32 +00:00
Ilia Alshanetsky 023c1bccb3 Fixed bug #31480 (Possible infinite loop in imap_mail_compose()). 2005-01-18 16:32:53 +00:00
Ilia Alshanetsky 1e6454a67b Fixed bug #31479 (Fixed crash in chunk_split(), when chunklen > strlen). 2005-01-18 15:47:57 +00:00
foobar 64e40c2271 - Make sure FD_CLOEXEC is always defined. 2005-01-18 15:44:33 +00:00
Antony Dovgal 63fbc27466 fix bug #30430 (odbc_next_result() doesn't bind values and that results in segfault)
fix protos
2005-01-18 15:03:51 +00:00
Dmitry Stogov 57a0c3e159 Fixed patch for bug #31478 (SegFault/Memory Leak with empty()) 2005-01-18 12:01:31 +00:00
foobar 0503943150 - Sanitize output 2005-01-18 11:53:49 +00:00
foobar 197711bb7d Add test for bug #31402 2005-01-18 11:36:44 +00:00
foobar bed68d8828 Touch the generated file. 2005-01-18 10:57:05 +00:00
Dmitry Stogov ea6ea21939 Fixed bug #31190 (exceptions in call_user_func_array()) 2005-01-18 10:38:04 +00:00
Magnus M��tt� 5c98efddae Add test case for bug #30726. 2005-01-18 09:56:31 +00:00
Dmitry Stogov 30445fb661 Fixed bug #28444 (Cannot access undefined property for object with overloaded property access). 2005-01-18 09:05:39 +00:00
Frank M. Kromann 25917d5885 Make this compile with the generic ntwdblib from Microsoft 2005-01-18 07:17:01 +00:00
Frank M. Kromann 14821bb8cf use the static dblib.lib to avoid the need for extra dll's 2005-01-18 06:42:08 +00:00
Frank M. Kromann 008d859df9 add --with-freetds option to win32 build.
TODO make it work when both mssql and freetds is included or bail out with an error
2005-01-18 06:32:11 +00:00
Frank M. Kromann 01b426c452 make the mssql extension work with freetds on win32 2005-01-18 06:29:45 +00:00
Frank M. Kromann d56b42bec4 make the mssql extension work with freetds on win32 2005-01-18 06:09:48 +00:00
Wez Furlong a9d98544de Allow drivers to select bind emulation on a per statement basis 2005-01-18 04:58:50 +00:00
Wez Furlong d911f19862 doh 2005-01-18 04:35:47 +00:00
Wez Furlong 505fbb1966 nice and fluffy error handling 2005-01-18 02:42:52 +00:00
5089dc049a ChangeLog update 2005-01-18 01:36:51 +00:00
Wez Furlong 8b35436cb1 remove error and hook up rowCount 2005-01-18 00:58:15 +00:00
Ilia Alshanetsky 9839614829 Fixed bug #30726 (-.1 like numbers are not being handled correctly). 2005-01-18 00:29:43 +00:00
Wez Furlong 37ea5fbeb5 Tidy up driver specific method handling 2005-01-17 23:59:16 +00:00
Antony Dovgal 7c152b6a8e fix weird DB2 issue:
DB2's SQLDataSources() returns _max available_ length of result string instead of
_real_ length and that results in strings a-la "\0                  "
2005-01-17 18:08:54 +00:00
foobar 37d820b03f - Fixed bug #31444 (Memory leak in zend_language_scanner.c) 2005-01-17 17:20:56 +00:00
foobar e82eb93cf2 - Added some sanity checks by changing to the parameter parsing API 2005-01-17 17:07:28 +00:00
Christian Stocker 8d10b52ddf fix protos (by Mehdi Achour ) 2005-01-17 15:56:17 +00:00
Antony Dovgal acbdbe1e65 fix leak appearing when odbc_errormsg() got invalid resource 2005-01-17 15:05:11 +00:00
Joe Orton 8288c451c0 Fixed bug #31519: Set r->status_line to SAPI-provided status-line. 2005-01-17 12:24:40 +00:00
Stefan Esser da7001a6c3 Fix compiler warning. 2005-01-17 11:45:09 +00:00
Edin Kadribasic 095a6f1eb3 Use PQescapeBytea() for quoting. Need to think how to add binary safe
quoting for blobls (pgsql bytea type).
Fixes #2818
2005-01-17 10:37:41 +00:00
Wez Furlong 3a751f37c6 don't raise errors for the no-error case 2005-01-17 05:28:46 +00:00
Wez Furlong b234f1e415 tidy up a few things 2005-01-17 05:28:13 +00:00
dc73af8351 ChangeLog update 2005-01-17 01:40:52 +00:00
Wez Furlong 44e77380fb Missing 1 2005-01-17 01:31:14 +00:00
Wez Furlong ca98805935 Add a PDO driver for Sybase style DB-lib (including MS SQL).
Only the basics are here right now.
2005-01-17 01:15:14 +00:00
Zak Greant f3d39ff406 Added standard emacs and vim modelines 2005-01-16 19:28:55 +00:00
Moriyoshi Koizumi b1ddbcbef9 - Fix a critical bug that request-local settings leak to another request. 2005-01-16 15:55:17 +00:00
78306883e2 ChangeLog update 2005-01-16 01:34:48 +00:00
Stefan Esser 135fee7f10 and use it... 2005-01-15 18:30:16 +00:00
Stefan Esser f8787a67ed finally use what we calculated 2005-01-15 18:19:49 +00:00
Stefan Esser 2c25b9d866 Restore unserialize() speed 2005-01-15 18:18:08 +00:00
foobar 58c6ed3583 CS fix 2005-01-15 04:50:26 +00:00
foobar 0e9866bfd6 ws fix 2005-01-15 04:34:30 +00:00
0bea91bbcb ChangeLog update 2005-01-15 01:33:59 +00:00
Andi Gutmans 4908642c8c - Unload on MAC OS X (shouldn't be a reason not to) 2005-01-15 00:11:20 +00:00
foobar 330746480e - Fixed bug #31060 (imageftbbox() does not use linespacing parameter) 2005-01-14 23:07:46 +00:00
foobar 68ca0ed6d8 - Fixed bug #30120 (imagettftext() and imagettfbbox() accept too many parameters) 2005-01-14 22:43:15 +00:00
foobar 14058c83e6 - Fix another generated header include 2005-01-14 20:44:28 +00:00
Dmitry Stogov 9de934c210 Fixed SIGSEGV in ext/standard/tests/network/tcp4loop.phpt and ext/standard/tests/network/unixloop.phpt 2005-01-14 09:02:02 +00:00
Dmitry Stogov 72d02269a9 Restore behavior of $str["str"]. (Now $str["str"] is equivalent to $str[0] again) 2005-01-14 09:01:22 +00:00
0d6b05eb8d ChangeLog update 2005-01-14 01:36:11 +00:00
Wez Furlong 10eb5a1098 fix compile.
Someone with firebird needs to sit down and give this extension some love
2005-01-13 18:02:13 +00:00
Dmitry Stogov ce0884c287 Additional fix for fix of bug #29883 2005-01-13 08:49:06 +00:00
Wez Furlong d056f96a2f Add configure support for Oracle InstantClient SDK 2005-01-13 04:55:56 +00:00
Wez Furlong f17311c9dd Add support for ODBCRouter 2005-01-13 02:06:39 +00:00
Wez Furlong ef0de01b62 Take a blind stab at implementing scrollable cursors for pgsql.
We allocate a unique cursor name for each statement, so that we
don't interfere with other open statement handles on the same dbh.

Note, however, that we force a new transaction for each open scrollable cursor
(postgres requires cursors to be used inside a transaction).  This is okay,
except for the case where a scrollable cursor is opened, an update is made and
the cursor is closed; closing the cursor commits the transaction that was begun
when it was opened.

It might well be better to avoid the transaction in PDO and force the user to
be aware of the requirements of cursors and explicitly initiate the transaction
themselves.

This is all untested code; it compiles and looks like it will work, but I
encourage someone with a real postgres setup to actually sit down and try to
use it.
2005-01-13 01:59:39 +00:00
10cba41a70 ChangeLog update 2005-01-13 01:35:42 +00:00
Wez Furlong 0db373883f detect funky kerberos deps that chain on from openssl deps on RH distros 2005-01-13 01:12:34 +00:00
Dmitry Stogov 6fa37163f2 Fixed bug #31098 (isset false positive) 2005-01-12 09:18:31 +00:00
Wez Furlong 222e5f9cbc stub out scrollable cursors here too 2005-01-12 06:12:26 +00:00
Wez Furlong d3ab27f7cc stub out scrollable cursors 2005-01-12 06:11:33 +00:00
Wez Furlong be616317c7 stub out scrollable cursor change 2005-01-12 06:10:31 +00:00
Wez Furlong c77bd71315 be aware of scrollable cursors; sqlite doesn't support them 2005-01-12 06:08:59 +00:00
Wez Furlong 4d5c40cd9a touch generated file to avoid implicit yacc rule from eating it 2005-01-12 06:08:36 +00:00
Wez Furlong 81664bd2db Remove bogus scroll attribute.
Expose cursor constants to the script
2005-01-12 05:59:27 +00:00
Wez Furlong 7552fe23ff make scrollable cursors consistent with odbc; removing bogus attribute 2005-01-12 05:58:58 +00:00
Wez Furlong b2fe675636 Support scrollable cursors 2005-01-12 05:58:19 +00:00
Wez Furlong 459b4f85d3 Add support for scrollable cursors.
Enable PDO_ATTR_PREFETCH and default it to 100Kb of prefetch buffer.
2005-01-12 05:47:03 +00:00
Wez Furlong dd842e4bf4 API support for scrollable cursors 2005-01-12 04:49:12 +00:00
Wez Furlong 076bc75c01 add theoretical support for returning ints as ints and bools as bools.
individual drivers need to support returning data in these formats.
2005-01-12 03:26:46 +00:00
Wez Furlong f9d3469e4f Add configure support for ODBCRouter and generic ODBC libs.
Note that ODBCRouter doesn't directly implement ODBC 3.0, so
using it here won't really work.

Expand the ODBC 3 check to better explain what happened and
how to make progress (e.g.: use an ODBC manager library like
unixODBC).
2005-01-12 02:19:30 +00:00
c13ec603b8 ChangeLog update 2005-01-12 01:35:50 +00:00
Moriyoshi Koizumi e5786084e1 - Test renaming 2005-01-11 21:57:01 +00:00
Moriyoshi Koizumi 9b77de63ed - Fix bug #31436 (isset() incorrectly returns true in dereference of a wrong type) 2005-01-11 21:53:11 +00:00
Moriyoshi Koizumi 87ddc9d06b - BFN 2005-01-11 21:10:47 +00:00
Moriyoshi Koizumi 20a5a1d61c - Fix the fix :) 2005-01-11 20:58:46 +00:00
Moriyoshi Koizumi ee18958f98 - Fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
2005-01-11 20:44:04 +00:00
Moriyoshi Koizumi 357b0c34b6 - Fix bug #31478 (segfault with empty()) 2005-01-11 17:17:48 +00:00
Wez Furlong 166ca20bed Fix build 2005-01-11 14:28:37 +00:00
Joe Orton cb6605c1a5 Fixed bug #30446 - virtual() includes files out of sequence,
work around 2.0 subrequest/internal redirect issue.
2005-01-11 14:01:32 +00:00
foobar 376d5f6910 Fix ZTS build 2005-01-11 13:35:56 +00:00
Rob Richards a3335dba69 revert fix for bug #28817 - fix is bad 2005-01-11 10:36:08 +00:00
foobar b298098307 - Added check for IMAP 2005 version 2005-01-11 04:56:06 +00:00
Wez Furlong c55b4ab516 update for recent adjustments 2005-01-11 02:59:52 +00:00
0e8b1d6864 ChangeLog update 2005-01-11 01:35:48 +00:00
Rasmus Lerdorf 2a3ca10a61 Fix OSX DL_UNLOAD macro and actually use it to make shared extensions
work on OSX.
2005-01-10 21:57:30 +00:00
Antony Dovgal 6074423330 fix Konstantin's last name Chugeuv -> Chuguev 2005-01-10 21:37:17 +00:00
foobar 32d86482cc update test to include negative floats as strings too 2005-01-10 16:00:08 +00:00
foobar 40b9c63da1 - Fixed bug #28074 (FastCGI: stderr should be written in a FCGI stderr stream). 2005-01-10 15:38:24 +00:00
foobar 71ea389f74 Missing $Id$ tag 2005-01-10 15:20:53 +00:00
foobar 2b407ef934 - Update credits 2005-01-10 15:11:17 +00:00
foobar 6e84232e62 - Compressed 2004 Changelog 2005-01-10 15:07:51 +00:00
foobar a96507c1ec - Added missing header sections. 2005-01-10 14:57:36 +00:00
Joe Orton 9a8114e388 Don't scribble over the stack; icc compiler warning fix
from dcb314@hotmail.com via Red Hat bugzilla #143795.
2005-01-10 11:26:56 +00:00
Marcus Boerger 4a76003201 - Fix proto 2005-01-10 07:19:08 +00:00
Marcus Boerger 0f44e8a722 - Bugfix #31342: SQLite OO interface with Exceptions (hugo dot pl at gmail dot com) 2005-01-10 07:16:25 +00:00
Marcus Boerger 4494f0892b - Implement iterator interface in sqlite 2005-01-10 07:13:56 +00:00
41f1e96817 ChangeLog update 2005-01-10 01:35:59 +00:00
foobar 4589cef5e1 - Added AC_ZEND_C_BIGENDIAN macro (as requested by Andi) 2005-01-10 01:33:29 +00:00
foobar 931810629c - The pic/no-pic patch by Joe Orton. 2005-01-10 01:11:09 +00:00
foobar a139dbf9cc - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
Antony Dovgal 37d3ea836e add skipif section 2005-01-09 18:22:12 +00:00
Antony Dovgal 68d73f8cf9 add test for bug #31454 2005-01-09 18:15:49 +00:00
Antony Dovgal d7072f8a9d efree(name) 2005-01-09 17:49:51 +00:00
Antony Dovgal c644b2a5a1 fix bug #31454 (session_set_save_handler crashes PHP when supplied non-existent object ref) 2005-01-09 17:42:02 +00:00
foobar 6ffb0dcaf2 - Fix leaks with registered shutdown functions. 2005-01-09 16:30:09 +00:00
foobar 2da8b014af MFB: - Rationalize code a bit 2005-01-09 16:18:39 +00:00
54e954f852 ChangeLog update 2005-01-09 01:36:09 +00:00
foobar fc9d60b66a Remove done stuff 2005-01-09 00:18:28 +00:00
foobar 4db9db0cc7 - Fix possible crash (PR#26223). Leaks remain. 2005-01-08 20:44:23 +00:00
Georg Richter 6b49e2d9e7 fixed compile bug under Windows (libmysql.def currently doesn't export mysql_server_init/end).
Thanks to Sebastian Bergmann for reporting
2005-01-08 15:11:37 +00:00
Dmitry Stogov 0854cad7a2 Unnecesary check was removed 2005-01-08 13:53:45 +00:00
Marcus Boerger 5516915115 - Add new test 2005-01-08 13:47:05 +00:00
Marcus Boerger 344d2210c2 - Unify 2005-01-08 13:46:18 +00:00
Marcus Boerger 01d6db92fc - Fix shared build 2005-01-08 13:36:17 +00:00
Marcus Boerger 8045f834d4 - Remove double destroy (which is definitively wrong and prevents php from
normal execution).
2005-01-08 13:34:03 +00:00
Marcus Boerger 79687e9b7d - Fix dependency 2005-01-08 13:24:39 +00:00
Marcus Boerger 1875caf1ab - Fix warning
- Fix tsrm usage
2005-01-08 12:35:50 +00:00
foobar 901e4f78ec NN 2005-01-08 12:16:31 +00:00
foobar 9ea10c5cec - Fix some memory leaks 2005-01-08 12:02:22 +00:00
688baca5a5 ChangeLog update 2005-01-08 01:35:57 +00:00
Antony Dovgal 5eeb444b8b remove duplicated include 2005-01-07 20:55:46 +00:00
Magnus M��tt� 5ec0e49497 Argh.. Committed old patch.
Add safe_mode check and fix error code.
2005-01-07 17:38:03 +00:00
Antony Dovgal c71c8e7604 fix PHP_CHECK_64BIT macro (finally got 64bit machine to test it) 2005-01-07 16:57:23 +00:00
Georg Richter f16db40af2 forgot to remove some comments in last commit:( 2005-01-07 16:34:55 +00:00
Sebastian Bergmann 683515596b ZTS fix. 2005-01-07 16:24:51 +00:00
Sebastian Bergmann aca657eca2 Sync with config.m4. 2005-01-07 16:23:13 +00:00
Magnus M��tt� 0dddd923c7 Added new function: posix_access()
Feature requests: #29615, #14924
2005-01-07 16:05:06 +00:00
Georg Richter 500d0e3bd2 new mysqli stuff 2005-01-07 15:05:09 +00:00
Georg Richter 0b4c108bd7 Added new classes:
mysqli_driver
	mysqli_warning
	mysqli_exception
	mysqli_sql_exception

Improved embedded server support
changed testsuite to work also with embedded server

Made statement and resultset classes extendable

minor fixes
2005-01-07 14:59:59 +00:00
foobar 05adbd51b4 - Fixed bug #31055 (apache2filter: per request leak proportional to the full path of the request URI) 2005-01-07 06:28:08 +00:00
foobar 7a3d9addb8 - Make sure $host_alias is never empty 2005-01-07 06:12:42 +00:00
Wez Furlong f5c452989d update by steph 2005-01-07 05:39:27 +00:00
Wez Furlong e6c282a766 jumbo commit; implement sqlstate error codes.
Bundle sqlite3
2005-01-07 05:27:27 +00:00
Wez Furlong 02d6b65c67 lame implementation of SQLSTATE error codes 2005-01-07 05:25:57 +00:00
Wez Furlong 70da739031 remove error map; odbc speaks SQLSTATE natively 2005-01-07 05:25:35 +00:00
Wez Furlong fe1a87d02d half-hearted adjustment for sqlstate error codes; will do a better job
when I'm sitting down with a working oci env
2005-01-07 05:25:02 +00:00
Wez Furlong 0f12bfece7 tidy up some parts of the build (could do with more work)
Partially implement SQLSTATE error codes
2005-01-07 05:24:21 +00:00
Wez Furlong 4486666209 half-update for sqlstate error codes 2005-01-07 05:23:48 +00:00
Wez Furlong 6e0d8dd06f implement SQLSTATE style error codes.
Allow drivers to add methods to dbh and stmt objects
(note that we can't use a class, because the use only sees the PDO class).
Clarify the api slightly:
  PDO::exec() is used for one-shot queries that don't return rows
  PDO::query() is a convenience function for returning a rowset without
  having to go through the steps of preparing and executing.
2005-01-07 05:23:10 +00:00
1c9200da92 ChangeLog update 2005-01-07 01:35:24 +00:00
10696169b2 ChangeLog update 2005-01-06 01:35:51 +00:00
Joe Orton 792032c6bb Fix #31413: curl POSTFIELDS usage on 64-bit platforms. 2005-01-05 21:33:56 +00:00
f243fccfd4 ChangeLog update 2005-01-05 01:35:56 +00:00
Frank M. Kromann a6ce3e17e4 Allow gmp to compile under Win32 2005-01-04 22:39:29 +00:00
Wez Furlong c4bc5b7f33 Fix #31408: memory leak in stream_socket_recvfrom 2005-01-04 15:30:45 +00:00
foobar a2177b2e8e - Fixed bug #31396 (compile fails with gd 2.0.33 without freetype) 2005-01-04 06:51:45 +00:00
85f9f047cf ChangeLog update 2005-01-04 01:36:40 +00:00
Stanislav Malyshev 9fa1ee360b merge patch from http://www.sqlite.org/cvstrac/chngview?cn=1953
bug led to PHP exiting on queries with unknown columns
2005-01-03 11:29:27 +00:00
Stanislav Malyshev 52ffca0b27 Fix the following nasty bug:
- if compile bails out from the middle of compiling, current_buffer is not restored
- if current_buffer is not null, yy_switch_to_buffer will do: *yy_c_buf_p = yy_hold_char; on
the next request
- which would lead to memory corruption on next request
2005-01-03 10:01:03 +00:00
33cd288edc ChangeLog update 2005-01-03 01:37:14 +00:00
Ilia Alshanetsky ea7b61dfe5 Fixed bug #31371 (highlight_file() trims new line after heredoc). 2005-01-02 23:53:43 +00:00
Rob Richards 6bbb254ecc allow parser flags to be passed to xinclude() 2005-01-02 12:22:36 +00:00
Rob Richards 6a64418809 add NONET flag to disable network access when loading xml 2005-01-02 12:21:14 +00:00
Rob Richards 8450fae834 Fixed bug #31361 (simplexml/domxml segfault when adding node twice) 2005-01-02 12:08:41 +00:00
Moriyoshi Koizumi 88ce94a3c2 - Add testcases for bug #29493 and #31213. 2005-01-02 06:51:03 +00:00
fc64a7ae57 ChangeLog update 2005-01-02 01:36:26 +00:00
Wez Furlong 126e524635 Fix build... 2005-01-01 14:32:59 +00:00
8747e6e1b4 ChangeLog update 2005-01-01 01:35:57 +00:00
Wez Furlong 1f75a34f76 add proper dep 2004-12-31 17:45:08 +00:00
c1e5e2c74c ChangeLog update 2004-12-31 01:36:44 +00:00
Rasmus Lerdorf b1db6ed28d Safer libtoolize version check 2004-12-30 15:53:57 +00:00
foobar 4cf9d27072 - Fixed bug #28930 (PHP sources pick wrong header files generated by bison) 2004-12-30 15:18:24 +00:00
foobar a3943d9be5 - Fix buildconf failure with autoconf versions > 2.13 2004-12-30 14:56:00 +00:00
foobar 5ac375a40d - Fixed bug #31101 (missing kerberos header file path with --with-openssl) 2004-12-30 14:50:06 +00:00
Antony Dovgal 8596934a39 tidy_repair_string() should not try to load config file if there was no config parameter 2004-12-30 11:56:18 +00:00
foobar 69eec3f3b9 MFB_4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:08:39 +00:00
foobar 57eddbd7d0 - Fixed the crash and leak. 2004-12-30 05:31:55 +00:00
foobar f47d6bc193 missing .cvsignore file 2004-12-30 04:43:51 +00:00
Ilia Alshanetsky a7bc501d90 MFH: A leak is better(?) then a crash. 2004-12-30 04:39:17 +00:00
Ilia Alshanetsky 4bef3dde2d MFB: fixed test case 2004-12-30 04:11:33 +00:00
00a1b5d546 ChangeLog update 2004-12-30 01:34:40 +00:00
Ilia Alshanetsky 585833ab7e Fixed proto. 2004-12-30 01:23:44 +00:00
foobar 5abd0518dd cleanup.. 2004-12-30 00:59:28 +00:00
Ilia Alshanetsky 8f7f00178f Fixed typo. 2004-12-29 21:56:42 +00:00
Ilia Alshanetsky 12c2113b3e Fixed compiler warnings. 2004-12-29 21:40:34 +00:00
Ilia Alshanetsky ed64463bdb Fixed memory leaks. 2004-12-29 21:33:03 +00:00
Ilia Alshanetsky 742f8c2502 MFB: don't perform pointless operations. 2004-12-29 21:25:00 +00:00
Ilia Alshanetsky 3f79dfbb04 Don't forget to unload t1lib. 2004-12-29 21:07:59 +00:00
Frank M. Kromann 70c51c4ee6 Fix typo 2004-12-29 20:18:34 +00:00
Antony Dovgal 6528b1b0b4 more typos 2004-12-29 16:11:42 +00:00
Antony Dovgal 0460f73db2 MFB: fix typos 2004-12-29 13:53:40 +00:00
Georg Richter 57fa54af2d added property 'id' to retrieve statement id (required by PEAR DB, to support
mysqli prepared statements)
2004-12-29 11:46:13 +00:00
e8a505bd3d ChangeLog update 2004-12-29 01:37:10 +00:00
Derick Rethans 7f12445175 - MFB: Add dom/xml_common.h header as installed header in order to be able to build pecl/xml_reader 2004-12-28 15:20:42 +00:00
Andi Gutmans c2913c977a - Revert expose_php change 2004-12-28 03:48:18 +00:00
Ilia Alshanetsky 5acd33001a Turn off sending of PHP identifying header. This is complete useless for
any practical application and is a total wasting bandwidth/cpu.
2004-12-28 02:42:23 +00:00
69b2401099 ChangeLog update 2004-12-28 01:35:50 +00:00
Wez Furlong 73186934d8 more get_method signature changes 2004-12-27 22:04:54 +00:00
Zeev Suraski 6b1f070907 MFB 2004-12-27 18:53:27 +00:00
Zeev Suraski f64c4f4569 MFB - description fix 2004-12-27 18:22:50 +00:00
Georg Richter dc63cb7feb fixed testcase 047
fixed windows compile error
2004-12-27 15:39:35 +00:00
Marcus Boerger 7be33a225e - Need to unmangle the class name here 2004-12-27 15:13:26 +00:00
Dmitry Stogov beaff87d50 "Undefined variable: %s" noticies were fixed to use one space 2004-12-27 13:43:26 +00:00
Marcus Boerger 03af7c8abc - More proto/error message fixes 2004-12-27 13:32:22 +00:00
Georg Richter 698c0361d6 Fix for feature request #31015: added length for field length 2004-12-27 11:48:57 +00:00
Marcus Boerger 4b80deed8e - Small fixlet (by Tony) 2004-12-27 11:41:45 +00:00
Ilia Alshanetsky 4da21882fd Fixed spelling. 2004-12-27 07:19:25 +00:00
2971f422da ChangeLog update 2004-12-27 01:35:30 +00:00
Wez Furlong 823d48bd37 hmmmmm. Bound params *were* working this way before, but now it seems that
I have to bind them as text.
2004-12-26 18:13:52 +00:00
Georg Richter c2ef1ad438 added constructors for mysqli_stmt and mysqli_resultset classes 2004-12-26 13:17:03 +00:00
Georg Richter 683f6c879c added constructors for mysqli_stmt and mysqli_result classes 2004-12-26 13:16:40 +00:00
Wez Furlong b44785e958 don't blow up under HEAD 2004-12-26 04:50:09 +00:00
Wez Furlong 63ee853b74 bump PHP API number.
This is so that we can work around the signature change in the get_method
overloaded object handler in our portable extensions.

Yes, you could argue that the zend api number needs bumping, but then you could
argue which one to bump, as neither of them is specific or generic enough.

Besides all that, the PHP API number really needs a good old bump anyway.
2004-12-26 04:46:09 +00:00
Georg Richter ea22bf6063 fix for bug 31141 2004-12-25 16:42:53 +00:00
Marcus Boerger 8c7bd30a7b - Add ReflectionClass::hasMethod() (thanks to Johannes S.) 2004-12-25 16:27:27 +00:00
Wez Furlong c8b2f43005 fix build issues 2004-12-25 04:01:30 +00:00
Wez Furlong 843807c647 When a socket is non-blocking, don't block ssl enabled sockets.
Allow for non-blocking negotiation when calling stream_socket_enable_crypto().
That function will return the foolowing values:

false - negotiation failed
0     - try again when more data is available (only for non-blocking sockets)
true  - ssl was enabled
2004-12-25 02:02:56 +00:00
4deaf7e243 ChangeLog update 2004-12-25 01:35:07 +00:00
Antony Dovgal ffb2cf7a94 return empty string when got empty parameter 2004-12-24 19:45:54 +00:00
Dmitry Stogov f91088459b New sarbage collector's bug was fixed (the behavior should be the same as in PHP_5_0) 2004-12-24 09:00:29 +00:00
Dmitry Stogov e986a1f47e "Undefined variable: %s" noticies were fixed to be compatible with PHP_5_0 2004-12-24 08:24:55 +00:00
c2e70dbe9e ChangeLog update 2004-12-24 01:37:05 +00:00
Wez Furlong e1f3beaa13 really don't blow up 2004-12-23 19:39:22 +00:00
Ilia Alshanetsky d0f606f11d Fixed several buffer overflows. 2004-12-23 19:29:12 +00:00
Antony Dovgal 38d8e20f68 destroy return_value and fix leak in array_fill() 2004-12-23 16:35:48 +00:00
Antony Dovgal 78edc7e65a add Oracle Instant Client support (initial patch by cjbj at hotmail dot com) 2004-12-23 16:20:09 +00:00
Wez Furlong d3d757d95a don't crash... 2004-12-23 05:56:50 +00:00
63f659637f ChangeLog update 2004-12-23 01:34:51 +00:00
Ilia Alshanetsky b19e666946 Fixed bug #31142 (imap_mail_compose() fails to generate correct output). 2004-12-22 17:27:39 +00:00
287dc7a32b ChangeLog update 2004-12-22 01:36:38 +00:00
Ilia Alshanetsky 4ab69902dc Fixed possible crash in imap_mail_compose(). 2004-12-21 15:47:14 +00:00
Edin Kadribasic ea07d448a5 MFB: Avoid autoheader warning 2004-12-21 15:41:22 +00:00
foobar b6823b673e - Fixed bug #28248 (Can not compile --with-sybase and freetds) 2004-12-21 06:57:01 +00:00
foobar c9f552923a - Fixed bug #28385 (files in $(prefix)/lib/php/build/* installed with wrong
permissions). (Jani, ramsy at ramix dot jp)
2004-12-21 04:58:50 +00:00
Magnus M��tt� 774a978ea9 Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:34:22 +00:00
foobar b8056095c6 - Fixed bug #31145 (configure is using -lcpdf instead of -lcpdfm) 2004-12-21 04:21:43 +00:00
61bf7a23ce ChangeLog update 2004-12-21 01:34:54 +00:00
foobar 20fce0ba3e - Use correct header files (in c99 compliant way). uint32_t is preferred. 2004-12-21 01:07:24 +00:00
Wez Furlong 0a42a1f422 Errr... fix leak 2004-12-21 00:37:01 +00:00
foobar 4157e50c00 Better fix for endian compile problems. 2004-12-20 20:37:45 +00:00
foobar bc3f6c94d4 Fix buildconf when multiple autoconf versions installed 2004-12-20 20:23:57 +00:00
Rasmus Lerdorf fdaa130f3a Add the new request_time sapi struct entry to all the sapis. Some of these
may have ways of getting the request time without the extra syscall, but
for now let's just make sure we don't crash and people will eventually
fill these in where applicable.
2004-12-20 19:33:41 +00:00
Georg Richter 5c50f0bb30 prevent type conversion during mysql_stmt_execute for NULL variables 2004-12-20 16:39:14 +00:00
7152b3811e ChangeLog update 2004-12-20 01:36:49 +00:00
Ilia Alshanetsky ec83570232 Fixed bug #31103 (Better error message when c-client cannot be found). 2004-12-19 18:16:50 +00:00
6a05ad04d9 ChangeLog update 2004-12-19 01:39:08 +00:00
foobar a903822561 Missing cvs id tag 2004-12-18 03:14:39 +00:00
95467a3a25 ChangeLog update 2004-12-18 01:35:26 +00:00
Andi Gutmans 235e6c0afe - Fixed Bug #30562 Segmentation fault with __call() 2004-12-17 22:24:51 +00:00
Derick Rethans 13c2cbb515 - MF43: Fixed bug #31072 (var_export() does not output an array element with an
empty string key). (Derick)
2004-12-17 14:40:39 +00:00
Derick Rethans 4394c6f441 - MF43: Fixed strtod for Irix and some other strange platform 2004-12-17 13:17:32 +00:00
Derick Rethans 6386777fe3 - MF43: Fixed weird types, this also makes it compile on IRIX again. 2004-12-17 13:08:44 +00:00
Rob Richards b462fc8bd2 Fixed bug #31139 (XML Parser Functions seem to drop &amp; when parsing) 2004-12-17 12:20:50 +00:00
3f835d67ba ChangeLog update 2004-12-17 01:36:38 +00:00
Ilia Alshanetsky 77c0395968 Fixed bug #31087 (broken php_url_encode_hash macro). 2004-12-16 22:39:39 +00:00
Derick Rethans 1c23efeff4 - MF43: Make it compile on HPUX on Itanium 2 2004-12-16 22:22:51 +00:00
Frank M. Kromann 4f8973fcdc Fix #31120 and #31135. mssql_query returns false on successfill inserts and stored procedures 2004-12-16 21:47:23 +00:00
Antony Dovgal 33c24b5436 fix leak (init array only if we got valid start key) 2004-12-16 19:13:58 +00:00
Derick Rethans 16c6679125 - MF43: Fixed bug #31107 (strtod on solaris9/intel) 2004-12-16 13:06:58 +00:00
foobar ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
foobar eb0c45d572 - Fixed compile error with HP-UX using GCC. 2004-12-16 11:49:48 +00:00
Derick Rethans 2689533db9 - MF43: Fixed bug #31110 and #31111 (Zend/zend_strtod.c problems) 2004-12-16 10:38:48 +00:00
5d2b6c784e ChangeLog update 2004-12-16 01:35:24 +00:00
Frank M. Kromann 7800086169 Adding missing zend_list_addref() and make SWFShape::drawArc() work 2004-12-15 18:01:31 +00:00
foobar e4fa4fcdd9 missing files 2004-12-15 02:29:40 +00:00
89fac1e1e2 ChangeLog update 2004-12-15 01:51:40 +00:00
Ilia Alshanetsky cc17322c14 MFB: test fix. 2004-12-14 17:43:53 +00:00
Dmitry Stogov b20a007aa0 Fixed build with custom libming 2004-12-14 16:15:58 +00:00
Dmitry Stogov 860754f0f9 Fixed build on linux-glibc21-i386 2004-12-14 14:01:06 +00:00
Dmitry Stogov 3f0c2347ff Fixed bug #30994 (SOAP server unable to handle request with references). 2004-12-14 13:58:57 +00:00
Derick Rethans c0edc48a08 - MFH: Fixed compile error related to bug #28605.
#- But it does not *fix* bug #28605.
2004-12-14 08:43:01 +00:00
b952c194f6 ChangeLog update 2004-12-14 01:33:41 +00:00
Ilia Alshanetsky 6d7cac7731 Fixed bug #28228 (NULL decimal separator is not being handled correctly). 2004-12-14 00:37:19 +00:00
Wez Furlong 419bbffeef Make it really build... 2004-12-13 13:52:01 +00:00
Joe Orton 7263c220dd More PHP_LIBDIR fixes for lib64 platforms. 2004-12-13 10:30:21 +00:00
Derick Rethans d91a531d2e - Added "G" modifier to ini setting number format. 2004-12-13 09:09:06 +00:00
eafd2ef88e ChangeLog update 2004-12-13 01:39:15 +00:00
Wez Furlong d213b67cdf Add missing constants for socketpair().
I thought I had included these...
Good catch Nuno :)
2004-12-12 23:21:53 +00:00
Moriyoshi Koizumi 28cc55be0a - Apply the same fix to apache2filter too. 2004-12-12 23:06:06 +00:00
Wez Furlong d10b86f8f4 Add stream_socket_pair(), a streams based version of socketpair().
Modified patch from Vincent [six at t0x dot net]
2004-12-12 16:10:35 +00:00
Ilia Alshanetsky c96a1e0ddf Fixed bug #31056 (php_std_date() returns invalid formatted date if
y2k_compliance is On).

# will MFH to 5.0.X and 4.3.X after release
2004-12-12 15:50:06 +00:00
Moriyoshi Koizumi a0975f8dcf - Fixlet for httpd-2.1 on Darwin platforms 2004-12-12 02:11:27 +00:00
7d7aa0f99d ChangeLog update 2004-12-12 01:41:02 +00:00
Derick Rethans b68803c08e - Generate all iconv headers by default 2004-12-11 11:16:55 +00:00
8208e517f8 ChangeLog update 2004-12-11 01:33:25 +00:00
Andi Gutmans 4e942cb07f - Fix bug #27728 (Can't return within a zend_try{} or the previous
state isn't restored.
2004-12-10 22:59:25 +00:00
Antony Dovgal 01b996b98b fix buffer overrun & segfault in get_meta_tags() when there is no tag value 2004-12-10 10:30:01 +00:00
e6f64862c1 ChangeLog update 2004-12-10 01:32:20 +00:00
Ilia Alshanetsky 5484568c5c Avoid causing a crash. 2004-12-10 00:36:51 +00:00
Antony Dovgal ad76be844b CS changes (as suggested by Ilia) 2004-12-09 17:15:52 +00:00
Antony Dovgal 5dbe3f6f4f fix 1-byte leak 2004-12-09 15:07:56 +00:00
Antony Dovgal e76824c91f fix segfault in session_module_name() when session.save_handler is empty 2004-12-09 14:14:21 +00:00
Derick Rethans 1266735cd0 - MF43: Fixed bug #31034 (Problem with non-existing iconv header file). 2004-12-09 09:06:06 +00:00
Antony Dovgal 01f31dcccb fix buffer overrun and remove debug printf() call 2004-12-09 08:22:06 +00:00
3996f37651 ChangeLog update 2004-12-09 01:32:56 +00:00
Frank M. Kromann 49f88bc05a Fix logic for file checking. Bug #31019 2004-12-08 18:57:48 +00:00
Joe Orton 7b547a393a Fix VPATH build again. 2004-12-08 12:50:00 +00:00
foobar 4366854783 Fix build. This was not supposed to halt configure if test fails. 2004-12-08 06:46:34 +00:00
Brad House ab6faef7ee Newer versions of libmonetra broke compatability with one function. Make workaround that detects version, and works with both. 2004-12-08 03:02:34 +00:00
c861ce463d ChangeLog update 2004-12-08 01:32:56 +00:00
Dmitry Stogov a22fa4d109 Fixed crash in phpinfo() after graceful Apache restart. 2004-12-07 18:02:25 +00:00
Dmitry Stogov ca3c82bbb5 Fixed bug #30928 (When Using WSDL, SoapServer doesn't handle private or protected properties) 2004-12-07 17:29:42 +00:00
Antony Dovgal 0582a631fe fix leak 2004-12-07 16:54:25 +00:00
Derick Rethans 8dc461f854 - Tidy up NEWS a bit 2004-12-07 08:46:14 +00:00
Dmitry Stogov 5b18b931d0 Fixed bug #30904 (segfault when recording soapclient into session). 2004-12-07 07:46:12 +00:00
e32da28bd5 ChangeLog update 2004-12-07 01:31:57 +00:00
Ilia Alshanetsky d0cbaa911f Fixed bug #30995 (snmp extension does not build with net-snmp 5.2). 2004-12-07 00:33:24 +00:00
Ilia Alshanetsky 35540fdee6 Added -d option which allows ini options to be specified via command line.
Patch by: Sean Coates
2004-12-06 23:37:20 +00:00
Ilia Alshanetsky 6883a3f09c Fixed bug #30990 (allow popen() on *NIX to accept 'b' flag). 2004-12-06 23:30:37 +00:00
Derick Rethans 48b118968f - MF43: Install the iconv extension headers to <installpath>/ext/iconv so that
external extensions can use them.
2004-12-06 20:39:20 +00:00
Ilia Alshanetsky 2980ab0cdc MFB: revert 2004-12-06 19:46:23 +00:00
Stanislav Malyshev 9baa92c596 fix startup - if startup did not succeed, do not continue with execution 2004-12-06 18:55:30 +00:00
Stanislav Malyshev f9c2324cd0 do not zero out peak - MM shutdown would do that 2004-12-06 18:48:35 +00:00
Stanislav Malyshev 11ae876f34 add test 2004-12-06 16:08:08 +00:00
Stanislav Malyshev 9e9c193e1b port fix for #30998: Crash when user error handler returns false on amd64 2004-12-06 15:50:27 +00:00
Dmitry Stogov 7c83c4e418 Fixed bug #30922 (reflective functions crash PHP when interfaces extend themselves) 2004-12-06 11:53:30 +00:00
Georg Richter f0f08ec32b fixed windows compile errors (Thx to Sebastian Bergmann) 2004-12-06 05:15:03 +00:00
cd39bb55f6 ChangeLog update 2004-12-06 01:35:04 +00:00
Rob Richards cb72e23c14 add optional parameter to pass libxml document load options 2004-12-05 12:02:35 +00:00
Rob Richards 4cea708b21 define options that can be used when loading documents 2004-12-05 11:59:46 +00:00
Holger Zimmermann b36a4c57ca Replaced static server variables by function call and configurable list at the Pi3Web server side. 2004-12-05 09:52:25 +00:00
4026a3ce7e ChangeLog update 2004-12-05 01:32:43 +00:00
Rasmus Lerdorf 3d297bf881 Fix proto 2004-12-04 13:47:13 +00:00
Rob Richards 28076f78ed add test 2004-12-04 11:40:10 +00:00
Rob Richards 25554b8118 Fixed bug #28817 (Var problem when extending domDocument). (Georg) 2004-12-04 11:39:34 +00:00
Georg Richter 6d27573ec2 added skipif section 2004-12-04 08:50:33 +00:00
Georg Richter 9751d9afaa Fixed bug #30890 (testsuite)
Fixed bug #28817 (property problems in extended class)
2004-12-04 08:16:04 +00:00
Rasmus Lerdorf 224d2479b3 Add apache_reset_timeout() function for Apache1. This is needed because
Apache1 only resets the write timer, which defaults to 300 seconds, on
a successful write.  That is, if the client has gone away and Apache
attempts a write which fails it will set the conn->aborted flag but not
reset the timeout.  Assuming the PHP script is running in ignore_user_abort
mode we ignore the aborted flag, but we'll still get blown out of the water
300 seconds after the failed write unless we periodically reset the timer.
With set_time_limit(0), ignore_user_abort(true) and periodic
apache_reset_timeout() calls we can theoretically run forever which is
why I disabled this call in safe mode.
2004-12-04 07:16:44 +00:00
9ff0d0818e ChangeLog update 2004-12-04 01:32:05 +00:00
Antony Dovgal b6b8bf0010 fix array_walk_recursive() so it doesn't reuse cached fci between calls
and add test for it
2004-12-03 17:43:23 +00:00
Stefan Esser 9a18fb197d Handle already existing elements correctly 2004-12-03 16:02:48 +00:00
Georg Richter 30dd61abb7 Fixed bug #30967 (properties in extended mysqli classes don't work) 2004-12-03 07:56:19 +00:00
Ilia Alshanetsky e99526eb7e Fixed bug #30962 (mssql returns space for NULL columns). 2004-12-03 02:26:04 +00:00
2844354634 ChangeLog update 2004-12-03 01:32:51 +00:00
Antony Dovgal ccc6462cc5 revert my previous patch as it breaks more than fixes 2004-12-02 16:35:02 +00:00
Antony Dovgal ed5638bf77 fix tests 2004-12-02 16:33:36 +00:00
ecac37514c ChangeLog update 2004-12-02 01:33:36 +00:00
Stefan Esser 1a319ae1ac Fixed: virtual_popen in ZTS mode 2004-12-02 01:04:23 +00:00
Stefan Esser b08147d46a Partly reverted because of problems with some realpath() implementations 2004-12-02 00:44:07 +00:00
Stefan Esser 6076a4a66c Fixed behaviour of TSRM in case of realpath() failure 2004-12-01 22:56:05 +00:00
Stefan Esser 1094a0d243 Beware of negative indices 2004-12-01 22:42:00 +00:00
Stefan Esser b1bb6f1735 Do not silently truncate 2004-12-01 22:37:33 +00:00
Ilia Alshanetsky 4c5d71917e MFB: Removed extra space that causes problems for some compilers. 2004-12-01 18:52:13 +00:00
Dmitry Stogov a1c85ca6f2 Fixed bug #30329 (Error Fetching http body, No Content-Length, connection closed or chunked data). 2004-12-01 18:22:40 +00:00
Dmitry Stogov 5b074c048d Port 443 is default for https, so we shouldn't put it into Host: 2004-12-01 17:33:32 +00:00
Dmitry Stogov ec4b6f713d Fixed bug #30359 (SOAP client requests have no port in "Host" field ). 2004-12-01 16:59:48 +00:00
Derick Rethans 9c14e2235c - Fixed MacOSX compilation (Patch by Christian) 2004-12-01 15:05:02 +00:00
Dmitry Stogov ec36f7dc69 Fixed bug #29883 (isset gives invalid values on strings). 2004-12-01 14:02:35 +00:00
Derick Rethans 1039fdebb1 - MF43: Update install instructions 2004-12-01 09:15:49 +00:00
Greg Beaver eaad3a9f7b remove old test files 2004-12-01 06:09:06 +00:00
8bc100cdae ChangeLog update 2004-12-01 01:32:00 +00:00
Ilia Alshanetsky 349c134061 Fixed bug #30945 (make ctype_* functions return FALSE on empty strings).
Slight performance improvement of multi-byte string checking via ctype_*.
2004-11-30 16:55:55 +00:00
5f949d21c2 ChangeLog update 2004-11-30 01:33:45 +00:00
Ilia Alshanetsky 46745e31ed This test is conditional on the libTidy library. On some configurations
tidy crashes due to a bug in the lib.
2004-11-30 00:01:30 +00:00
Derick Rethans b6f9b5c693 - Added testcase for bug #30695 2004-11-29 10:15:03 +00:00
Derick Rethans ebca90f075 - MFH: Revert Joe's work around a bug in GCC patch as it breaks too many things. 2004-11-29 09:32:15 +00:00
463204f9b3 ChangeLog update 2004-11-29 01:35:51 +00:00
Ilia Alshanetsky 0e46666591 Save test result file inside the build directory. 2004-11-28 20:40:16 +00:00
Sergey Kartashoff 1907f0ab8b - MnoGoSearch extension updated to fix compilation issues with
mnogosearch-3.2.25+
2004-11-28 20:03:05 +00:00
Antony Dovgal dbc0bb7514 fix #29954 (array_reduce segfaults when initial value is array) 2004-11-28 17:03:45 +00:00
Stefan Esser c02b2d2d45 Fixed: Correctly Initialize fields 2004-11-28 13:32:29 +00:00
Antony Dovgal 9fb623c312 fix #30314 2004-11-28 13:21:09 +00:00
Stefan Esser 6d98fc38b5 Fixed: removed possible integer over-/underflows 2004-11-28 12:44:28 +00:00
e0e157e6de ChangeLog update 2004-11-28 01:35:04 +00:00
Ilia Alshanetsky 9379801c9a Improve offset check inside shmop_write(). 2004-11-27 18:17:58 +00:00
Marcus Boerger c51e49147e BFN 2004-11-27 10:16:13 +00:00
adbca0b92e ChangeLog update 2004-11-27 01:32:02 +00:00
Stanislav Malyshev 808d9b035f 'l' is long - int won't work on 64-bit 2004-11-26 13:17:30 +00:00
2ec1f4d16a ChangeLog update 2004-11-26 01:33:14 +00:00
Ilia Alshanetsky 5796326d5a CS 2004-11-25 23:44:20 +00:00
75ab06e855 ChangeLog update 2004-11-25 01:33:25 +00:00
Ilia Alshanetsky 07db7765a1 Fixed compilation when PHP is built in separate directory. 2004-11-24 23:12:18 +00:00
Marcus Boerger 520097b065 - Fix Bug #30856 (ReflectionClass::getStaticProperties segfaults) 2004-11-24 19:56:54 +00:00
Marcus Boerger 4ab537fc61 - Add new test 2004-11-24 19:56:25 +00:00
98f9906c59 ChangeLog update 2004-11-24 01:33:16 +00:00
Dmitry Stogov 5ece0ecdfb Test was fixed. 2004-11-23 17:21:33 +00:00
Derick Rethans 9b9ae8ee70 - We need to install the headers too. 2004-11-23 13:05:24 +00:00
Edin Kadribasic 6d23aae34e Only dllexport during the compilation of iconv.c 2004-11-23 12:04:07 +00:00
Derick Rethans ce022d2723 - Export "php_iconv_string()". 2004-11-23 09:44:54 +00:00
Derick Rethans a6ded1178e - Added test for bug #28599 2004-11-23 09:40:07 +00:00
3630c4d1e0 ChangeLog update 2004-11-23 01:36:07 +00:00
Ilia Alshanetsky 0e138423d4 Fixed compile warning. 2004-11-22 23:29:59 +00:00
Frank M. Kromann b38b068302 Adding fbsql_set_characterset.
Change PHP_INI_USER to PHP_INI_ALL on fbsql.batchsize
2004-11-22 22:40:21 +00:00
Andi Gutmans 7c3eaef39d - Don't reuse Oracle connections in multi-threaded environments until
- we decide to either not support ZTS connection pooling (kind of
- pointless as PHP isn't stable in ZTS mode) or fix the 100% reproducable
- crash bug on oci_connect() under Windows most probably due to this
- problem.
2004-11-22 21:44:42 +00:00
Derick Rethans a07c080ce8 - Added test case for bug #30862. 2004-11-22 21:41:16 +00:00
Frank M. Kromann 82cd4789a7 Fix #30860 configure fails when tds is compiled as shared 2004-11-22 19:41:43 +00:00
Dmitry Stogov 139933fe59 Test was fixed. 2004-11-22 17:43:03 +00:00
Dmitry Stogov 107da542ae Skip condition was fixed. 2004-11-22 15:15:50 +00:00
Dmitry Stogov c6fad655a0 Tests were fixed. 2004-11-22 15:12:32 +00:00
f7585a2cb3 ChangeLog update 2004-11-22 01:36:34 +00:00
Ilia Alshanetsky 496031df78 emalloc -> safe_emalloc. 2004-11-21 20:43:10 +00:00
Rob Richards a7cd9768d1 internal entities get expanded if no default handler but cdata handler exists 2004-11-21 14:25:15 +00:00
Antony Dovgal 39b25e4f3d fix yet another typo 2004-11-21 13:35:32 +00:00
Antony Dovgal d9dd604ae7 fix typo (bug #30857) 2004-11-21 13:33:20 +00:00
Andi Gutmans 737568997b *** empty log message *** 2004-11-21 06:17:32 +00:00
8a1f6b537a ChangeLog update 2004-11-21 01:36:52 +00:00
Stefan Esser 224201e635 Fixed: strip quotes from filename 2004-11-20 18:49:36 +00:00
Pierre Joye f3b74fe9ac - Attempt to fix #28598, bug introduced in GD (around php 4.3.4)
The way they fix MS Symbol are wrong, multiple faces support hould added
  later, safer.

  Please test it with your weird fonts, if it works, MFH will be done.
2004-11-20 13:09:45 +00:00
Rob Richards 8f32b61acb fix crash when calling com methods
- due to change in Zend
2004-11-20 11:40:49 +00:00
2e1f2f8852 ChangeLog update 2004-11-20 01:36:16 +00:00
Antony Dovgal 2a588879ef fix bug #30587 (array_multisort doesn't separate zvals before changing them) 2004-11-19 16:55:37 +00:00
94f8379545 ChangeLog update 2004-11-19 01:35:44 +00:00
Rob Richards 83a6b8c762 Fixed bug #30061 (xml_set_start_namespace_decl_handler not called)
hopefully resolve a bunch of entity issues
2004-11-18 19:59:23 +00:00
Rob Richards b87d8cdfd0 prototype fixes (Jakub Vrána) 2004-11-18 19:54:30 +00:00
Rob Richards 1e0212ef8e Fixed bug #30832 ("!" stripped off comments in xml parser)
reset sax->initialized flag when not using SAX2
2004-11-18 18:26:13 +00:00
Rob Richards 2496f4f882 fix SAX2 handling to work with libxml 2.6.16 2004-11-18 16:36:00 +00:00
Rob Richards bd8aba8c8d fix typo so it compiles 2004-11-18 16:35:04 +00:00
Antony Dovgal ee31c94bc7 run-test2 should be able to emulate POST & GET in the same time 2004-11-18 14:57:45 +00:00
867517fa5d ChangeLog update 2004-11-18 01:34:33 +00:00
Ilia Alshanetsky 54ff6af758 Gracefully handle allocation failure. 2004-11-17 23:42:14 +00:00
Pierre Joye 32ff83e4da - Really fix imagefill, part of my previous (old) fix was not applied
(blame me), bak the alphablending and restore it on exit
2004-11-17 20:19:35 +00:00
Pierre Joye d9f08cb7ce - MFB: fix #30739, imagefill did not set back alphablending mode 2004-11-17 17:21:22 +00:00
Stanislav Malyshev e9003696bd fix crash 2004-11-17 12:06:27 +00:00
Dmitry Stogov 6bb5705619 namespace was renamed 2004-11-17 06:18:18 +00:00
22519a360a ChangeLog update 2004-11-17 01:37:20 +00:00
Ilia Alshanetsky df4911561b Fixed possible usage of un-initialized variable. 2004-11-16 21:04:10 +00:00
Dmitry Stogov 62ce05fb49 indentation fixed. 2004-11-16 13:51:09 +00:00
Dmitry Stogov 94a372b992 Fixed bug #30799 (SoapServer doesn't handle private or protected properties) 2004-11-16 13:04:39 +00:00
Dmitry Stogov a9a5dbd9b8 Class mapping was implemented (Bug #29385 Soapserver always uses std class). 2004-11-16 12:07:32 +00:00
Derick Rethans ccc7c3b48e - Make this compile for the Mac again 2004-11-16 07:48:25 +00:00
c224f6fba2 ChangeLog update 2004-11-16 01:36:15 +00:00
Frank M. Kromann b1c6c89d97 Fix one-shot builds. 2004-11-15 23:59:22 +00:00
Ilia Alshanetsky d98a44d483 Fixed bug #29801 (Set limit on the size of mmapable data). 2004-11-15 23:43:12 +00:00
Ilia Alshanetsky a04722b1b0 MFB: fixed build. 2004-11-15 23:37:05 +00:00
Edin Kadribasic 372a69fded iconv is built-in in php5 2004-11-15 23:27:48 +00:00
Frank M. Kromann 4893e3c505 Adding most of the changes suggested in #30280. Mostly fix's for possible leaks. 2004-11-15 22:45:29 +00:00
Frank M. Kromann 11363296be Avoid renaming of sprintf to php_sprintf 2004-11-15 21:13:25 +00:00
Frank M. Kromann 816bcd3aff Fix win32 build. 2004-11-15 21:04:09 +00:00
Derick Rethans 4916f58540 - Fixed bug #30779 (Compile of Zend/zend_strtod.c fails on Sparc) 2004-11-15 19:26:45 +00:00
Sergey Kartashoff 0314fa1c3b # Unix EOLs fixed 2004-11-15 19:08:19 +00:00
Sergey Kartashoff 89b2866758 # Copyright header & version info changed to PHP 5 standard notice 2004-11-15 19:03:20 +00:00
Frank M. Kromann e1e29cefc4 Adding php_sprintf.c to Win32 build 2004-11-15 18:27:10 +00:00
Derick Rethans d79407f4fd - MF5.0: Fixed bug #28599 (strtotime fails with zero base time). 2004-11-15 16:31:12 +00:00
Antony Dovgal 71d9afee0c fix CLI leaks when using malformed option string 2004-11-15 14:00:48 +00:00
Derick Rethans 61364b5bb1 - MFH4.3: Cleaned up some of the locale mess:
* all internal use of sprintf, snprintf and the like will always
    use the . as thousands seperator (if php.h is included only!).
  * echo, printf() and sprintf() always render locale-aware
  * added the %F modifier for non-locale aware rendering for floats
2004-11-15 13:42:22 +00:00
48fe8cf7bc ChangeLog update 2004-11-15 01:36:53 +00:00
Ilia Alshanetsky fae64ba40c Added support for better control over FTP encryption protocols. 2004-11-14 20:00:16 +00:00
Sergey Kartashoff 2b80314c3f # Unix EOLs fixed 2004-11-14 19:29:59 +00:00
Sergey Kartashoff acc517cd5c - More mnogosearch-3.2.23+ compatibility 2004-11-14 18:30:40 +00:00
Marcus Boerger 95ff205e6c - Bugix #30783: Apache crash when using ReflectionFunction::getStaticVariables() 2004-11-14 18:01:44 +00:00
Antony Dovgal f85a11f280 fix #30780 (tidy segfaults on 'new tidyNode;') 2004-11-14 13:33:59 +00:00
d29cc93a6f ChangeLog update 2004-11-14 01:36:55 +00:00
Rob Richards db2c5275a1 Fixed bug #30566 (attribute namespace URIs are inconsistent when parsing). 2004-11-13 14:32:44 +00:00
49ac2e74f2 ChangeLog update 2004-11-13 01:51:05 +00:00
Frank M. Kromann a62b69b9c5 fix ZTS builds 2004-11-12 20:32:43 +00:00
Ilia Alshanetsky 613db6ee30 Simplify and cleanup code. 2004-11-12 02:22:01 +00:00
68faef668b ChangeLog update 2004-11-12 01:51:37 +00:00
Marcus Boerger 08cc69dbf4 - Correct exception throwing 2004-11-11 20:06:23 +00:00
Marcus Boerger 4c8bca469f - Use exceptions now they work 2004-11-11 19:42:11 +00:00
Marcus Boerger 9c0f5e8887 - Use appropriate exception class where possible 2004-11-11 19:36:27 +00:00
Marcus Boerger 5dbb0aaa24 - Drop debug message 2004-11-11 19:31:27 +00:00
Rob Richards d563495a24 add support for file://localhost/
support file:/// under windows again
2004-11-11 13:08:32 +00:00
Dmitry Stogov e370219e2a Support for lists in non-WSDL mode was implemented
Support for "xsi:type" was improved
2004-11-11 09:17:10 +00:00
Antony Dovgal d33eb14569 fix #30751 (phpinfo() shows the same ini path after reconfigure with --with-config-file-path) 2004-11-11 06:57:06 +00:00
57e0902c59 ChangeLog update 2004-11-11 01:55:43 +00:00
Ilia Alshanetsky f41c40f63e Fixed bug #30750 (Meaningful error message when upload directory is not
accessible).
2004-11-11 00:38:04 +00:00
Frank M. Kromann fb543df1a8 No need to ude /Fo twice.
Unbreak the build be readding the compile only flag
2004-11-10 23:52:56 +00:00
Frank M. Kromann d589e61204 Make sure files are stored in the right directory 2004-11-10 20:12:42 +00:00
Wez Furlong be4778b87e Fix leaking handle.
Thanks to ilya77 at gmail dot com
2004-11-10 19:47:15 +00:00
Marcus Boerger a59551d771 - Add new tests 2004-11-10 19:22:26 +00:00
Ard Biesheuvel bb5ce07f8c Fixed return value of ibase_execute() 2004-11-10 11:21:50 +00:00
e52d178674 ChangeLog update 2004-11-10 01:49:49 +00:00
Ilia Alshanetsky 8992aa0bcf Fixed possible overflow. 2004-11-10 01:43:04 +00:00
Andrei Zmievski 44468214b5 Revert inadvertent commit. 2004-11-09 20:59:02 +00:00
Andrei Zmievski c2f8c1a79b .dylib extension are Mach-O shared libraries that meant for linking
against. Loadable modules (aka bundles) can have any extension, so we
should probably stick with .so

http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en#lib-and-mod
2004-11-09 20:58:24 +00:00
Joe Orton 20f63ecb7a Fix --with-recode since PHP_YAZ is never defined. 2004-11-09 16:11:13 +00:00
Joe Orton 0f858fc744 Make the "rounding fuzz" check work again with gcc 3.3 and later,
fixing the bug24142 test.
2004-11-09 15:58:16 +00:00
Frank M. Kromann 1d04952b1d Fix typo in man page. Bug #30727. Patch by Jakub Vrana 2004-11-09 15:05:20 +00:00
Dmitry Stogov 9c5661f05d Fixed bug #29211 (SoapClient doesn't request wsdl through proxy). (Rob) 2004-11-09 08:13:35 +00:00
d61a7f1207 ChangeLog update 2004-11-09 01:47:08 +00:00
Ilia Alshanetsky 500690f235 Fixed crash inside cpdf_setdash() if called before page init. 2004-11-09 00:44:12 +00:00
Marcus Boerger 31165806f8 - Simplify construction of RecursiveIteratorIterator 2004-11-08 13:44:34 +00:00
Marcus Boerger 118d5a7d5b - Fix constructors
- This fixes exceptions in spl
2004-11-08 13:42:53 +00:00
Ilia Alshanetsky cb16f5e815 Fixed possible crash on fstat() failure. 2004-11-08 04:54:27 +00:00
890afc455c ChangeLog update 2004-11-06 01:51:41 +00:00
808243230b ChangeLog update 2004-11-05 01:36:27 +00:00
Ilia Alshanetsky 92a641e5e7 Simplify and cleanup code. 2004-11-05 00:05:55 +00:00
Marcus Boerger 4b76d82fe3 - Add new test 2004-11-04 22:07:18 +00:00
Marcus Boerger 28ced40c63 Bug #30627 2004-11-04 20:13:30 +00:00
Dmitry Stogov 75c2a2e527 Fixed bug #30685 (Malformed SOAPClient http header reequest). 2004-11-04 15:30:28 +00:00
Edin Kadribasic d2b5b62af5 MySQL is releasing client libraries that compile out of the box
with mysqli extension, so there is no need for a specially compiled
client library anymore.
2004-11-04 02:41:40 +00:00
Edin Kadribasic 34e4dae95c Added zend_strtod.c to the new build 2004-11-04 02:06:04 +00:00
Edin Kadribasic 9c754364a6 Added zend_strtod.* to the build 2004-11-04 02:05:36 +00:00
Edin Kadribasic 5675c50dc2 Make zend_strtod compile on windows 2004-11-04 02:04:39 +00:00
adfebe8c6f ChangeLog update 2004-11-04 01:32:26 +00:00
Moriyoshi Koizumi 47dec40bd5 - Add entry for zend_strtod.c in belief that this is still active. 2004-11-04 00:13:08 +00:00
Derick Rethans 59651c4e58 - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent. (PHP part)
2004-11-03 23:36:51 +00:00
Moriyoshi Koizumi dbf2c8abd5 - Don't show grep outputs 2004-11-03 23:25:33 +00:00
Derick Rethans e612284ea4 - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent.
2004-11-03 23:13:32 +00:00
Moriyoshi Koizumi ae78d7d4bf - Checks for Darwin'ish systems that uses Mach-O, which apparently doesn't
support weak symbol aliasing at this time.
2004-11-03 23:05:18 +00:00
Ilia Alshanetsky 9a9815a123 emalloc() failures are handled by zend engine. 2004-11-03 22:17:45 +00:00
Marcus Boerger fcbd8c4f99 - Trying to invoke function not methot here 2004-11-03 21:18:44 +00:00
Marcus Boerger 63b288c464 - Fix invokeargs() with static methods 2004-11-03 21:11:48 +00:00
Joe Orton 2685ca935f Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
to support multi-ABI platforms.
2004-11-03 14:32:52 +00:00
Joe Orton 557cda47a0 Core changes to support multi-ABI platforms with libraries in
/usr/lib64 rather than /usr/lib.

* configure.in: Add --with-libdir flag; define PHP_LIBDIR.

* acinclude.m4 (PHP_REMOVE_USR_LIB, PHP_RUNPATH_SWITCH,
PHP_ADD_LIBPATH): Check for /usr/$PHP_LIBDIR rather than /usr/lib.
(PHP_SETUP_OPENSSL, PHP_SETUP_ICONV): Use /path/to/$PHP_LIBDIR in
place of /path/to/lib.
2004-11-03 14:07:09 +00:00
Joe Orton ee39ec7d0a Remove unused variable. 2004-11-03 13:12:41 +00:00
Joe Orton 2469701b87 Fix extraction of httpd version if httpd is linked against -lefence. 2004-11-03 13:04:10 +00:00
Dmitry Stogov 9fb0e11de5 Fixed "isset() and the new VM" bug. 2004-11-03 07:11:49 +00:00
Antony Dovgal b5c1040240 fix build 2004-11-03 06:22:08 +00:00
e16f0c6996 ChangeLog update 2004-11-03 01:38:35 +00:00
Frank M. Kromann 6a15a50d35 oops missed a couple!
Add termination block to function table. This will allow the engine to stop registreting functions at the end.
This fixes the - duplicate name - warning
2004-11-03 01:20:16 +00:00
Frank M. Kromann 93da44811e Add termination block to function table. This will allow the engine to stop registreting functions at the end.
This fixes the - duplicate name - warning
2004-11-03 01:16:10 +00:00
Andrey Hristov 494d665955 make sleep() return it's return value when possible
#on some *nix systems sleep() is implemented with SIGALRM. When SIGALRM
#interrupts sleep() it returns the number of seconds that has to be slept
#till the number of seconds wanted by the script. Sleep() on Windows is
# void.
2004-11-02 17:03:20 +00:00
Ilia Alshanetsky 8091bfb84c MFB: Fixed bug #30658 (Ensure that temporary files created by GD are removed). 2004-11-02 16:41:41 +00:00
Sebastian Bergmann 9a92e31cdd Patch by Joe Orton <jorton@redhat.com>. 2004-11-02 13:10:37 +00:00
4a3f24e0e0 ChangeLog update 2004-11-02 01:50:23 +00:00
Ilia Alshanetsky 5f9d72c431 Fixed open_basedir & safe_mode bypass inside readlink() function. 2004-11-02 00:37:32 +00:00
Marcus Boerger e1dfbfc695 - Don't call beginChildren/endChildren if they don't do anything 2004-11-01 23:16:43 +00:00
Marcus Boerger 533e39ecf7 - Cache function lookup 2004-11-01 23:02:10 +00:00
Marcus Boerger 3b7e24cab2 - Add RecursiveIteratorIterator::beginChildren(), endChildren() 2004-11-01 22:54:12 +00:00
Marcus Boerger 36a9455a48 - Update examples 2004-11-01 22:31:11 +00:00
Marcus Boerger c18e248e60 - Remove doubled definition 2004-11-01 22:28:59 +00:00
Marcus Boerger b0c2af58f7 - Add some comment 2004-11-01 21:06:42 +00:00
Marcus Boerger 2ce7bcd742 - Allow direct access to spl class entries (SPL cannot be build shared) 2004-11-01 20:57:23 +00:00
Marcus Boerger 4dbf6a530d - Update docu 2004-11-01 18:11:39 +00:00
Marcus Boerger 07ed0872fb - Update docu 2004-11-01 18:01:06 +00:00
Marcus Boerger bd40510b62 - Two new exceptions
- Make use of new exception classes
2004-11-01 17:39:59 +00:00
Marcus Boerger 623f564abc - Fix macro usage 2004-11-01 17:26:15 +00:00
Marcus Boerger cae8eeba8d - Update docu 2004-11-01 17:05:45 +00:00
Marcus Boerger 638b0515b3 - Update docu 2004-11-01 16:31:19 +00:00
Marcus Boerger fe1909b591 - Implement basic exception classes 2004-11-01 15:50:25 +00:00
Marcus Boerger db47e478c5 - Use new way for global variables
- Cache class lookup
2004-11-01 12:09:46 +00:00
Marcus Boerger 8e3a8b1e8e - Add interface Countable (PECL #30113) 2004-11-01 10:45:54 +00:00
Georg Richter b557bdb665 added multi resultset support in mysql_connect 2004-11-01 09:53:16 +00:00
Georg Richter b8863135a2 Fixed tests for empty dates (see http://bugs.mysql.com/?id=6058)
Fixed memleak in mysqli_stmt_bind_result
Fixed error handling for mysqli_multi_query
2004-11-01 07:19:26 +00:00
Ilia Alshanetsky 5b95dc5faf MFB: Fixed bug #30613 (Prevent infinite recursion in url redirection). 2004-11-01 04:55:01 +00:00
8ee7205c78 ChangeLog update 2004-11-01 01:55:54 +00:00
Marcus Boerger e0196d11a4 - Do not autoload if require does the trick 2004-11-01 01:29:06 +00:00
Marcus Boerger 846666109b - Update 2004-11-01 00:33:41 +00:00
Marcus Boerger b9470609ad - Minor fixes
- Implement AppendIterator in C
2004-11-01 00:26:59 +00:00
Marcus Boerger 9626e9859a - Implement EmptyIterator in C 2004-10-31 20:59:39 +00:00
Marcus Boerger b87f16bfbe - Update docu 2004-10-31 19:51:34 +00:00
Marcus Boerger de3a8ea3e1 - Implement InfiniteIterator in C 2004-10-31 19:49:18 +00:00
Marcus Boerger 081dac3026 - Update docu 2004-10-31 19:05:37 +00:00
Marcus Boerger a872cb0d8d - Aggregate inner iterator for RecursiveIteratorIterator 2004-10-31 19:05:19 +00:00
Marcus Boerger 90012aa3cc - Implement classes IteratorIterator and NoRewindIterator in C 2004-10-31 18:43:00 +00:00
Marcus Boerger 6166a4a49d - Update 2004-10-31 15:36:08 +00:00
Marcus Boerger 41b87ab486 - Add ReflectionFunction::invokeArgs(array)
- Add ReflectionMethod::invokeArgs(obj, array)
2004-10-31 15:30:53 +00:00
Sebastian Bergmann e1a941b486 Invokation -> Invocation 2004-10-31 10:19:53 +00:00
d64c25ce2e ChangeLog update 2004-10-31 00:52:50 +00:00
Marcus Boerger 4b10a2562a Bump version (as discussed with Andi) 2004-10-30 22:56:59 +00:00
Marcus Boerger 9d7cba9db0 - Be consistent and use names as keys (found by johannes) 2004-10-30 19:53:25 +00:00
Marcus Boerger 260fb777e2 - Bump API version 2004-10-30 19:27:42 +00:00
Marcus Boerger 0e6d7d652e - Update to new API 2004-10-30 19:14:05 +00:00
Marcus Boerger 861bad634a - Fix inner iterator aggregation 2004-10-30 19:12:14 +00:00
Marcus Boerger c5a9a5a284 - Change zend_object_handlers->get_method() to allow aggregation for internal classes 2004-10-30 19:11:37 +00:00
Marcus Boerger 9dcce367e0 WS (ups) 2004-10-30 14:34:43 +00:00
Marcus Boerger e2ba10a727 strip trailing (back)slash from path 2004-10-30 14:33:25 +00:00
Marcus Boerger 4fd5931e70 - New architecture needs one more dependency 2004-10-30 13:48:29 +00:00
Marcus Boerger 8bf02ee681 - Fix protos 2004-10-30 10:18:10 +00:00
Marcus Boerger 7c4760d421 - Fix proto 2004-10-30 10:04:37 +00:00
5a54f79283 ChangeLog update 2004-10-30 00:46:12 +00:00
Marcus Boerger b67ca452c3 - Update docu 2004-10-29 20:58:58 +00:00
Marcus Boerger 208a97a221 - Implement OuterIterator in C 2004-10-29 20:12:57 +00:00
Marcus Boerger 85cae78988 - Abstract no longer valid here 2004-10-29 19:50:51 +00:00
Andi Gutmans b86cdbbddb - For Ilia:
- MFH: Fixed bug #30572 (crash when comparing SimpleXML attribute to a boolean).
- Hope this works well. I will MFH tomorrow if no one complains.
2004-10-29 00:55:11 +00:00
11e64bafbc ChangeLog update 2004-10-29 00:48:12 +00:00
Andi Gutmans 939a0f136e - [PATCH] Bug fix for #29770, but for PHP 4.3.9 (Vladimir Zidar) 2004-10-29 00:37:22 +00:00
Ilia Alshanetsky 321cd10977 Simplify code. 2004-10-28 22:22:22 +00:00
Marcus Boerger dbd717591a - TSRM Fix 2004-10-28 07:47:46 +00:00
Dmitry Stogov 64baaf8f7f --without-lines changed to --with-lines 2004-10-28 06:48:59 +00:00
Antony Dovgal aa35b11afe fix Win32 & Netware build 2004-10-28 05:05:20 +00:00
Andi Gutmans 72558f2673 - Fix typo 2004-10-28 01:19:33 +00:00
4d5fd77412 ChangeLog update 2004-10-28 00:35:35 +00:00
Ilia Alshanetsky 23344ea427 Simplify and cleanup code. 2004-10-27 23:12:05 +00:00
Andi Gutmans 657e5d0fbc - Oops missed this one 2004-10-27 20:13:59 +00:00
Andi Gutmans a4dff681c8 - Revert Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean).
- Need to discuss where the real problem is.
2004-10-27 18:15:03 +00:00
Andi Gutmans 47a4a96d23 - Tiny fixes 2004-10-27 18:08:56 +00:00
Andi Gutmans a904c1dabc - Improve comments, docs, code... 2004-10-27 17:58:46 +00:00
Antony Dovgal ceacc834fb fix bug #30388 (rename across filesystems loses ownership and permission info) 2004-10-27 11:58:49 +00:00
Wez Furlong c8cc96e6fe Fix possible crash; patch by Kamesh Jayachandran 2004-10-27 11:07:26 +00:00
Wez Furlong 35b00ffdab Synopsis:
PDOStatement::setFetchMode()
	reset default fetch() mode for a statement to PDO_FETCH_BOTH

PDOStatement::setFetchMode(PDO_FETCH_NUM)
PDOStatement::setFetchMode(PDO_FETCH_ASSOC)
PDOStatement::setFetchMode(PDO_FETCH_BOTH)
PDOStatement::setFetchMode(PDO_FETCH_OBJ)
	set default fetch() mode for a statement.

PDOStatement::setFetchMode(PDO_FETCH_COLUMN, int colno)
	set default fetch() mode to retrieve colno-th column on each fetch() call.

PDOStatement::setFetchMode(PDO_FETCH_CLASS, string classname [, array ctor args])
	set default fetch() mode to create an instance of classname,
	calling it's ctor, passing the optional ctor args.
	The names of the columns in the result set will be used as property names on
	the object instance.  PPP rules apply.

	[NOTE: calling ctor is not yet implemented]
	[TODO: this might crash PHP for persistent PDO handles]

PDOStatement::setFetchMode(PDO_FETCH_INTO, object obj)
	Similar to PDO_FETCH_CLASS, except that each iteration will update the
	supplied object properties.

	[TODO: this might crash PHP for persistent PDO handles]

The default fetch() mode is used when no parameters are passed to
PDOStatement::fetch().  When using a statement in an iterator context,
PDOStatement::fetch() is called implicitly on each iteration.

object PDO::queryAndIterate(string sql, <PDOStatement::setFetchMode args>)
	This is semantically equivalent to:

	$stmt = $pdo->prepare($sql);
	$stmt->execute();
	$stmt->setFetchMode($args);
	return $stmt;


Example/Intended usage:

/* fetch an array with numeric and string keys */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test") as $row) {
	debug_zval_dump($row);
}

/* fetch the value of column 1 into $row on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
		PDO_FETCH_COLUMN, 1) as $row) {
	debug_zval_dump($row); // string(3) "foo"
}

/* create a new instance of class Foo on each iteration */
foreach ($pdo->queryAndIterate("select NAME, VALUE from test",
		PDO_FETCH_CLASS, 'Foo') as $row) {
	debug_zval_dump($row);
/*
	Object(Foo)#4 (2) refcount(2){
		["NAME"]=>
  		string(12) "foo220051429" refcount(2)
		["VALUE"]=>
		string(12) "bar789825748" refcount(2)
	}
*/
}

etc.
2004-10-27 10:26:27 +00:00
dc8078b191 ChangeLog update 2004-10-27 00:36:13 +00:00
Andi Gutmans 6a16f3eb1d - Patch from Andrey Hristov:
I have cooked a small patch which allows is_subclass_of() the accept
not only an object as first parameter but a string as well. When string
is passed the function checks whether the class specified is subclass of
the second parameter
class a{}
class b{} extends a{}
is_subclass_of("a", "a") //false
is_subclass_of("b", "a") //true
currently only objects are allowed as first parameter
2004-10-26 23:25:05 +00:00
Ilia Alshanetsky bb928e70a7 Fixed bug #30228 (crash when comparing SimpleXML attribute to a boolean). 2004-10-26 22:38:34 +00:00
Wez Furlong 12a678ca6a *cough* de-bogusify driver registration.
(what was I smoking??)
2004-10-26 22:00:15 +00:00
Wez Furlong 0a4127a610 Fix for Bug #29418 (double free when openssl_csr_new fails).
Also hook up MSHUTDOWN function which appears to have never been enabled.

Patch by Kamesh Jayachandran
2004-10-26 09:24:07 +00:00
506c2e2e5b ChangeLog update 2004-10-26 00:48:48 +00:00
Ilia Alshanetsky 852170d740 Merge gettimeofday() based code to prevent duplication. 2004-10-25 13:28:56 +00:00
bbebe4bc3f ChangeLog update 2004-10-25 00:36:45 +00:00
Ilia Alshanetsky 0802b1286d Make request start time be available via $_SERVER['REQUEST_TIME'].
# As discussed on internals.
2004-10-24 17:41:13 +00:00
aeac86458c ChangeLog update 2004-10-24 00:36:26 +00:00
Hartmut Holzgraefe 7fc2e6ca5b Make ldap_parse_reference() available on Windows (Bug #29492) 2004-10-23 23:03:52 +00:00
Joe Orton 1f364c1ee1 - always convert apr_time_t to time_t using apr_time_sec() to be future-proof.
- print apr_time_t values using APR_TIME_T and apr_snprintf.
- remove redundant add_property_long calls.
2004-10-23 13:48:05 +00:00
Joe Orton 516a19f1ec Fix the get_request_time implementation for the 2.0 SAPIs to return
seconds not microseconds and to use TSRM stuff correctly.
2004-10-23 12:56:20 +00:00
Antony Dovgal 07f84de680 commit fixes by <mikael dot suvi at trigger dot ee>
(segfaults under heavy load)
2004-10-23 09:32:44 +00:00
Andi Gutmans f4be622502 - Add missing file 2004-10-23 07:30:18 +00:00
4727b2dd11 ChangeLog update 2004-10-23 00:35:20 +00:00
Andi Gutmans e86edc5f1b - Nuke another two files 2004-10-22 22:01:34 +00:00
Andi Gutmans e50a6fde11 - Commit new VM
- Old one is tagged as PRE_NEW_VM_GEN_PATCH
- Still doing work so more commits to come. Don't complain (yet) :)
2004-10-22 21:42:14 +00:00
Rob Richards b20d2ba86c fix windows build 2004-10-22 13:11:33 +00:00
Edin Kadribasic 1fc379a76c Revert Linux LFS patch 2004-10-22 10:46:42 +00:00
Andi Gutmans fd92acac4f - Fix crash (MFB PHP5_0) 2004-10-22 01:55:39 +00:00
7889c7b97e ChangeLog update 2004-10-22 00:35:53 +00:00
Edin Kadribasic 7f7ce47553 MFB: Linux LFS support, fixes 27792 2004-10-21 23:50:28 +00:00
Ilia Alshanetsky 4b947b0525 Allow gettimeofday() return a float if optional argument is specified. 2004-10-21 21:20:52 +00:00
54aa881075 ChangeLog update 2004-10-21 00:37:45 +00:00
Andi Gutmans 086e951387 - Fix test 2004-10-20 22:55:57 +00:00
Ilia Alshanetsky 0818faee7f Slight optimization in str_split() when split length is the same or greater
then the string length.
2004-10-20 22:44:43 +00:00
Andi Gutmans 14fac3dd02 - One more test fix 2004-10-20 22:36:32 +00:00
Andi Gutmans 14e547516c - Fix interface tests. Interfaces should not use access modifiers 2004-10-20 22:13:44 +00:00
Andi Gutmans abd42847b1 - If object handles are equal then save the comparison of properties in
- the == operator.
2004-10-20 17:57:28 +00:00
Stanislav Malyshev f799da0a21 MF4: fix double bailout in HEAD when output is attempted from shutdown 2004-10-20 15:31:06 +00:00
Joe Orton 1ef6c7add1 Fix case where php_handle_aborted_connection was called outside a
try/end_try block (#25570).
2004-10-20 09:28:47 +00:00
ed6025327c ChangeLog update 2004-10-20 00:37:11 +00:00
Ilia Alshanetsky c5e2e02b0a Simplify code. 2004-10-19 22:25:15 +00:00
Anantha Kesari H Y 2559c94740 As NetWare LibC don't have the implementation of chown and chgrp there is no point in exposing this function to PHP 2004-10-19 08:21:24 +00:00
Georg Richter f4f84ac9ab Minor fix for mysqli_connect: checking socket_len for NULL Values
(Thx to Paul DuBois)
2004-10-19 05:14:09 +00:00
d2f6707429 ChangeLog update 2004-10-19 00:36:32 +00:00
Ilia Alshanetsky 8c8fba0841 Fixed bug #30475 (curl_getinfo() may crash in some situations). 2004-10-18 22:41:24 +00:00
Antony Dovgal e865bc2bc5 fix bug #30442 ( segmentation fault when parsing ?getvariable[][ ) 2004-10-18 15:05:06 +00:00
Anantha Kesari H Y d608f1a0e0 including zend_compile.h for NetWare as NetWare uses MetroWerks Code warrior compiler which does not allow declarations of following kind before defining the types.
extern struct _zend_arg_info first_arg_force_ref[2];
2004-10-18 12:06:57 +00:00
Anantha Kesari H Y 5bf2be3461 removing inclusion of platform specific config files as they are already included from php_scandir.h 2004-10-18 10:42:16 +00:00
Anantha Kesari H Y 6021286c5d removing php_output_activate Fix for bug#30397 2004-10-18 10:26:45 +00:00
Derick Rethans 3b2879b3c1 - Revert patch until it is discussed 2004-10-18 06:04:02 +00:00
c94cc82ebb ChangeLog update 2004-10-18 00:36:09 +00:00
5573922f0f ChangeLog update 2004-10-17 00:35:52 +00:00
Andi Gutmans f2c7379ca7 - One more test (WS) 2004-10-16 23:17:58 +00:00
Andi Gutmans 30ff6d2836 - WS fix to test commit 2004-10-16 23:16:50 +00:00
Anantha Kesari H Y d5eb399b5e Fix for Bug #30397 2004-10-16 10:32:42 +00:00
Anantha Kesari H Y c3dbe168fb Fix for 30457 2004-10-16 09:28:45 +00:00
82dfe6f07e ChangeLog update 2004-10-15 00:36:38 +00:00
Ilia Alshanetsky 7d18ca4c93 Added sqlite_fetch_column_types() 3rd argument for arrays. 2004-10-14 23:19:38 +00:00
Marcus Boerger b52ab41ca7 - Allow to omit object/classname in get_parent_class() which makes it
compatible with the signature and behavior of get_class()
2004-10-14 07:26:04 +00:00
d06579e714 ChangeLog update 2004-10-14 00:49:13 +00:00
Ilia Alshanetsky 51ffc01776 Added optional offset parameter to file_get_contents(). 2004-10-13 23:26:29 +00:00
Andi Gutmans 3e382a7d06 - Don't allow access modifiers in interfaces. Explicitly stating public
- should also be disallowed but we don't have a way to detect it today.
2004-10-13 01:04:08 +00:00
cce41cb736 ChangeLog update 2004-10-13 00:37:00 +00:00
Ilia Alshanetsky 2390ca71f1 MFH: Added optional offset parameter to stream_get_contents(). 2004-10-12 23:25:24 +00:00
Marcus Boerger 0c40e2a06e Bug #30381 Strange results with get_class_vars() 2004-10-12 22:19:43 +00:00
Marcus Boerger a4c387508e - Fix visibility in get_class_vars() and get_class_methods()
# Still there is a problem/error in the executor, i'll have a look
2004-10-12 11:01:08 +00:00
Marcus Boerger 0f9b3de234 - Fix set_exception_handler
# unsettign with '' never worked so we use NULL now which is much better
# because it matches the the return NULL in case no handler was defined
# and can't lead to problems with wrong string operations.
2004-10-12 09:13:20 +00:00
04f75f2357 ChangeLog update 2004-10-12 00:35:59 +00:00
Ilia Alshanetsky 5c04e39383 Fixed bug #30362 (stream_get_line() not handling end string correctly). 2004-10-11 18:31:49 +00:00
Ilia Alshanetsky f8a4d8a4d5 Fixed bug #30375 (cal_info() does not work without a parameter). 2004-10-11 06:39:41 +00:00
Wez Furlong b7182e85c7 Fix the return value check too 2004-10-11 01:40:41 +00:00
Wez Furlong 7cb4e769ff check the correct flag for async connect 2004-10-11 01:30:19 +00:00
7f9f359105 ChangeLog update 2004-10-11 00:36:26 +00:00
Sebastian Bergmann 53fa8699fc Add *.gcda and *.gcno (from gcc -fprofile-{use|generate}) to .cvsignore. 2004-10-10 16:10:38 +00:00
Antony Dovgal 3a5822585e fix possible segfault 2004-10-10 15:04:21 +00:00
Antony Dovgal b0b4b6eff2 prevent deadlocks when re-using previously established persistent connection 2004-10-10 10:54:26 +00:00
f26d0f234f ChangeLog update 2004-10-10 00:39:53 +00:00
Wez Furlong 9bffcfb407 Fix crash bug.
# how the f*** did this work in the first place!?
2004-10-09 13:08:16 +00:00
Moriyoshi Koizumi a86095fe07 - Fix test. I have no idea why the test was left this way. 2004-10-09 08:16:29 +00:00
Wez Furlong b3d9c5bea6 Improve .Net support; this should reduce "failed to init .net" errors.
Improve error reporting while we're at it too.
2004-10-09 04:39:58 +00:00
e38fe93975 ChangeLog update 2004-10-09 00:36:00 +00:00
Marcus Boerger 2ffbbb1588 Revert for now 2004-10-08 22:19:03 +00:00
Marcus Boerger f71644b480 - Revert automatic pass arg_info
# We need to find a better solutions to prevent havy extension writer probs
2004-10-08 22:17:32 +00:00
Marcus Boerger 1546a578ec - Make RecursiveFilterIterator work by using reflection
- Add docu
- Add new example
2004-10-08 21:49:39 +00:00
Marcus Boerger 1a7051f913 Add new example 2004-10-08 21:17:53 +00:00
Marcus Boerger 5832635b68 Use OuterIterator to simplify conversion to C code 2004-10-08 21:12:15 +00:00
Marcus Boerger f0c9f998d3 speling 2004-10-08 19:02:00 +00:00
Andi Gutmans f9aef18c86 - Fix BC break with default in switch() having to be at the end. 2004-10-08 18:50:00 +00:00
Rob Richards 1aa7fda66b Fix bug #2482 (xmlwriter_start_document chrashes apache)
Fix other function parameters
prep for release
2004-10-08 14:54:15 +00:00
Christian Stocker c118443546 this NEWS entry should have gone into PHP_5_0 branch. sorry 2004-10-08 14:51:55 +00:00
Moriyoshi Koizumi 4f247de89b - Sync with the latest codebase (fixes bug #28220). 2004-10-08 14:40:46 +00:00
Christian Stocker bd99d77bf6 - Fixed bug #27183 (Userland stream wrapper segfaults on stream_write)
Was applied to PHP 4 ages ago, but not to PHP 5 branch
2004-10-08 14:40:11 +00:00
Moriyoshi Koizumi 756ee85bec - Avoid doubly symbol definition. Codes in the removed file has never been
used anywhere.
2004-10-08 14:24:06 +00:00
Anantha Kesari H Y 315e58f2f6 As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg 2004-10-08 12:22:35 +00:00
Anantha Kesari H Y b140c80396 removed redundant CLIB_STAT_PATCH checks. defined the IS_ABSOLUTE_PATH macros to suit the NetWare filesystem convention 2004-10-08 09:48:20 +00:00
Anantha Kesari H Y a980f7babe removed redundant NEW_LIBC checks and added the code to recognize the file naming convention in NetWare(supports Windows based drive names like sys: data: and unix like / (sys: being root) 2004-10-08 08:59:11 +00:00
Anantha Kesari H Y 7ab517bcbf explicitly including sys/select.h as NetWare LibC sys/types.h does not include sys/select.h implicitly as other LibC 2004-10-08 07:43:41 +00:00
df06803187 ChangeLog update 2004-10-08 00:36:09 +00:00
Ilia Alshanetsky 2476198086 Fixed bug #30356 (str_ireplace() does not work on all strings). 2004-10-07 23:10:35 +00:00
Marcus Boerger 6349f46e38 - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
Anantha Kesari H Y 940c5b393d removed unwanted NEW_LIBC checks for NETWARE and removing custom mktemp.h as LibC itself supports mkstemp functionality 2004-10-07 12:22:16 +00:00
Rob Richards 7dced12c32 add DOMDocument xmlEncoding, xmlStandalone, xmlVersion (spec name changes)
add DOMText isElementContentWhitespace (spec name change)
 - old props/method kept for BC.
 - spec names changed when Level 3 went from Draft to Recommendation
nuke some unused code
2004-10-07 11:40:20 +00:00
Rob Richards b0ffa2497b fix segfault in appendXML due to libxml bug 2004-10-07 10:00:39 +00:00
d8cd7e848d ChangeLog update 2004-10-07 00:49:15 +00:00
Ilia Alshanetsky 1594170f85 Fixed compiler warning. 2004-10-06 23:56:29 +00:00
Marcus Boerger ee40e4dc90 Style... 2004-10-06 21:31:00 +00:00
Marcus Boerger ca6558a406 - Fix Bug #30344 2004-10-06 21:23:18 +00:00
Anantha Kesari H Y 1d7a8a9e69 removed unwanted NEW_LIBC checks 2004-10-06 13:22:21 +00:00
f63340acba ChangeLog update 2004-10-06 00:35:43 +00:00
Andi Gutmans a952a1bf76 - If we're going to mention the low level stuff then also give credit
- to Thies and Sterling
2004-10-06 00:01:38 +00:00
Ilia Alshanetsky e35adfe522 Fixed bug #30027 (Possible crash inside ftp_get()).
# Patch by cfield at affinitysolutions dot com
2004-10-05 23:53:09 +00:00
Marcus Boerger d9ad917fe7 Add more improvements done so far 2004-10-05 18:58:26 +00:00
Marcus Boerger 0358d81ecf Update 2004-10-05 18:40:06 +00:00
Marcus Boerger 476013cebd - Use ZEND_ARG_SEND_AUTOMATIC for several array functions 2004-10-05 18:37:17 +00:00
Marcus Boerger f916d603ef - Add arginfo ZEND_ARG_SEND_AUTOMATIC which lets the compiler automatically
determine whether pass by ref is possible or pass by value is needed.
# This is usefull when functions take array or string parameters as
# expressions. In such a case force by ref is not applicable and the
# executor would copy the variable unnecessarily as soon as it is at least
# once referenced.
2004-10-05 18:36:46 +00:00
Dmitry Stogov fb6072e10d Fixed bug #30175 (SOAP results aren't parsed correctly) 2004-10-05 16:00:40 +00:00
Dmitry Stogov 6414c8606a Test files are fixed. 2004-10-05 13:29:43 +00:00
Dmitry Stogov 0f99c02070 Test files are fixed. 2004-10-05 13:21:06 +00:00
Dmitry Stogov 3d383e45dc Fixed unset() bug that was introduced with CV optimization patch 2004-10-05 09:09:18 +00:00
Dmitry Stogov 3f35c6a6cc Added test cases for CV optimization patch 2004-10-05 06:53:39 +00:00
Andi Gutmans 216853c0db - Apply realpath() cache patch. We don't use it if we're in safe_mode and
- friends (which are quite slow anyway).
- If it proves to be stable I'll remove the #ifdef's in a few weeks.
2004-10-05 00:42:25 +00:00
01fda447c5 ChangeLog update 2004-10-05 00:35:08 +00:00
Ilia Alshanetsky 5316f7bf25 Fixed bug #30281 (Prevent non-wbmp images from being detected as such). 2004-10-04 20:42:30 +00:00
Andi Gutmans 11bcaedfc8 - Rename delete_global_variable() to zend_delete_global_variable() 2004-10-04 20:17:06 +00:00
Andi Gutmans db507dd153 - Commit the variable fetch optimization.
- Extensions which delete global variables need to use new special function
- delete_global_variable() (I'm about to rename it) to remove them.
- Will post to internals@ or via commit messages if there's anything else.
2004-10-04 19:54:35 +00:00
Marcus Boerger bb77132391 - Add new test 2004-10-04 17:53:55 +00:00
Marcus Boerger dc2d342b24 - Add new test 2004-10-04 17:30:53 +00:00
Marcus Boerger 4b395a168b - Bugfix #27798 2004-10-04 08:59:29 +00:00
Marcus Boerger 3d29cd72d5 - Add new test 2004-10-04 08:58:47 +00:00
Anantha Kesari H Y 47e4f575c2 modified to 3rd argument of fcntl to FD_CLOEXEC 2004-10-04 08:52:53 +00:00
6eafaed7e8 ChangeLog update 2004-10-04 00:34:36 +00:00
Rob Richards 5f630e1935 add evaluate() method to support all xpath expressions 2004-10-03 09:55:29 +00:00
d4c7c87afb ChangeLog update 2004-10-03 00:35:29 +00:00
Marcus Boerger 1e3aa55b1e - Add new test 2004-10-02 14:22:52 +00:00
Marcus Boerger 6762c9f0e0 - Add new test 2004-10-02 14:13:35 +00:00
4bd7b33e1b ChangeLog update 2004-10-02 00:35:13 +00:00
Marcus Boerger 2f5985335b - Add makefile fragment which simplifies working on the executer 2004-10-01 22:32:15 +00:00
Rasmus Lerdorf 3d85a5d876 Slightly different fix for HEAD for the ming output method BC breaking
change.
2004-10-01 19:28:45 +00:00
Sebastian Bergmann b4a5314dc3 Fugbix typo. 2004-10-01 10:35:26 +00:00
1507a660b1 ChangeLog update 2004-10-01 00:34:08 +00:00
Andi Gutmans 1a4bfd6561 - Small improvement to DVAL_TO_ZVAL macro 2004-09-30 18:36:03 +00:00
Anantha Kesari H Y ee43ab18b0 enabling few functionalities as the LibC starts supporting them 2004-09-30 15:55:18 +00:00
Anantha Kesari H Y 93be400da9 Including config.nw.h file for NetWare 2004-09-30 14:46:03 +00:00
Anantha Kesari H Y 142e92bb70 NetWare specific stat structure access incorporated 2004-09-30 14:31:30 +00:00
Anantha Kesari H Y ccbeace1ff handled NetWare F_SETFD and stat differences 2004-09-30 14:23:51 +00:00
Antony Dovgal 0ea23249da fix error message 2004-09-30 14:20:02 +00:00
Antony Dovgal fcd702efe4 fix segfault when using unknown/unsupported save_handler and/or serialize_handler (bug #30282) 2004-09-30 12:19:59 +00:00
Marcus Boerger 9d28fc6643 - CS: Use PHP_* instead of ZEND_* macros 2004-09-30 08:04:29 +00:00
Marcus Boerger 854b3ebdc3 - Add missing macro 2004-09-30 08:03:38 +00:00
Ilia Alshanetsky c7cd1d708f Fixed bug #30276 (Possible crash in ctype_digit on large numbers). 2004-09-30 01:22:56 +00:00
464ebb7843 ChangeLog update 2004-09-30 00:41:24 +00:00
Marcus Boerger aa247a3276 - MFB (synch correctly not only for one problem) 2004-09-29 20:57:07 +00:00
Marcus Boerger 1619178f5e - Speling 2004-09-29 20:27:36 +00:00
Marcus Boerger e109ab5492 - Fix docu 2004-09-29 20:25:28 +00:00
Marcus Boerger 0ec6eb7aad - Refix the fix
# This somehow got lost and was then readded by Andi in 1.258 at the wrong
# position. Obviously we need to separate the argument first and convert it
# afterwards as done in 5.0.*.
2004-09-29 20:24:35 +00:00
Marcus Boerger 35e78f43a1 - Add missing --SKIPIF-- 2004-09-29 20:10:12 +00:00
Marcus Boerger d748f8ecf2 - Fix tests (atm preg_match() is wrong) 2004-09-29 20:09:52 +00:00
Marcus Boerger c9d32d9b71 - Update test 2004-09-29 19:36:30 +00:00
Andi Gutmans 5efcdba2d0 - Move bench.php to Zend/ 2004-09-29 17:08:46 +00:00
Anantha Kesari H Y 379bb867cb NetWare LibC don't have search.h 2004-09-29 16:11:47 +00:00
Anantha Kesari H Y 5dbf49e314 removed unwanted NEW_LIBC checks 2004-09-29 14:42:16 +00:00
Anantha Kesari H Y 06a4be43a3 NetWare don't have uid for a file so modified the php_checkuid to return 1 for NetWAre 2004-09-29 12:35:13 +00:00
Anantha Kesari H Y b38de145ac removed unneccessary inclusion of headers for NetWare 2004-09-29 12:25:56 +00:00
Anantha Kesari H Y a93f75ce6b NETWARE has a proper stat structure Now no need of CLIB_STAT_PATCH checks 2004-09-29 10:54:56 +00:00
Anantha Kesari H Y 0903dcdcf7 removed redundant NEW_LIBC checks for NETWARE 2004-09-29 10:36:24 +00:00
Anantha Kesari H Y 7387db4366 Included select.h for NetWare 2004-09-29 10:28:17 +00:00
Anantha Kesari H Y 474c53348c removed unwanted comments, NEW_LIBC checks and NetWare specific stat structure population 2004-09-29 10:21:41 +00:00
Anantha Kesari H Y 745beb2deb removed redundant NEW_LIBC and CLIB_STAT_PATCH checks for NETWARE 2004-09-29 09:47:15 +00:00
Marcus Boerger 2f40d61bed - Fix test 2004-09-29 09:43:33 +00:00
Marcus Boerger 7133858532 - Fix test by removing corrupt --SKIPIF-- 2004-09-29 09:41:18 +00:00
Marcus Boerger 1ac9923c63 - Fix tests by removing erroneous check from --SKIPIF-- 2004-09-29 09:39:43 +00:00
Marcus Boerger 0a74684b3a - Fix tests by removing corrupt --SKIPIF-- 2004-09-29 09:36:56 +00:00
Marcus Boerger 13f3e07ff2 - Add new tests 2004-09-29 09:36:23 +00:00
Marcus Boerger a898c2dd28 Fix classnames 2004-09-29 08:55:45 +00:00
Marcus Boerger 93753e19b1 Add new test 2004-09-29 08:48:16 +00:00
Anantha Kesari H Y ec42c1432c implemented proc_open for NETWARE 2004-09-29 06:04:36 +00:00
Sterling Hughes 8f1a327edb Add strptime function. 2004-09-29 04:57:19 +00:00
f890909ac4 ChangeLog update 2004-09-29 00:34:42 +00:00
Marcus Boerger aa8da8daf1 - Fix warnign 2004-09-28 23:10:39 +00:00
Marcus Boerger e39f3f3f48 Simplify/Optmize magic method calls (__get/__set/__call/__clone/__destruct) 2004-09-28 22:55:22 +00:00
foobar 72b2d1c9ee MFB: - Fixed bug #30205 (Missing <unistd.h> in crypt() configure test). 2004-09-28 20:42:56 +00:00
Andi Gutmans 3e2b49ab5b - Return the warning until we check if we can change the type of str.len 2004-09-28 19:46:57 +00:00
Marcus Boerger b907755e3c - publish reflection_class_factory() as zend_reflection_class_factory() 2004-09-28 19:06:15 +00:00
Frank M. Kromann 81c8d3132b Fix compilation 2004-09-28 18:38:29 +00:00
Antony Dovgal 454b9659c5 fix bug #29652 (number of FD to ocius.msb is growing)
many thanks to Sergei V. Rozinov <S dot Rozinov at sibron dot ru> for testing
2004-09-28 16:59:10 +00:00
Ilia Alshanetsky 183126535c Fixed bug #30224 (Sybase date strings are sometimes not null terminated). 2004-09-28 14:07:23 +00:00
Wez Furlong ab2dead053 update ignore files 2004-09-28 09:44:56 +00:00
31902806a8 ChangeLog update 2004-09-28 00:34:17 +00:00
Marcus Boerger 3fec3a916b - Make internally used properties read-only and fix default properties 2004-09-27 22:24:57 +00:00
Marcus Boerger 0e68cf3cdb - Add new test 2004-09-27 22:23:31 +00:00
Edin Kadribasic c48f96a790 MFB: bugfix #30133 2004-09-27 22:23:11 +00:00
Andrey Hristov b76deb94a3 give credits to David 2004-09-27 22:13:36 +00:00
Marcus Boerger f775ea0ae3 - Fix memeleak 2004-09-27 22:06:10 +00:00
Marcus Boerger 8d587ce308 - Declare properties 2004-09-27 21:25:12 +00:00
Marcus Boerger 5ab692da02 - Add new test 2004-09-27 21:24:45 +00:00
Andi Gutmans 84f248761f - Document zend_vm_use_old_executor() for Derick. 2004-09-27 18:21:39 +00:00
Ilia Alshanetsky 52ee529ef4 Make test more generic.
# Thanks Marcus.
2004-09-27 17:52:25 +00:00
Ilia Alshanetsky 479af1e75d Fixed bug #30249 (Incorrect timeout check). 2004-09-27 17:30:46 +00:00
Anantha Kesari H Y 549ec65eee removed redundant NEW_LIBC checks 2004-09-27 15:55:04 +00:00
Anantha Kesari H Y 32788092da removed redundant NEW_LIBC and CLIB_STAT_PATCH checks 2004-09-27 15:37:33 +00:00
Anantha Kesari H Y 09d305c1ff removed redundant NEW_LIBC checks 2004-09-27 14:51:17 +00:00
Anantha Kesari H Y 5da74deab9 removed unwanted NEW_LIBC checks 2004-09-27 14:29:55 +00:00
Anantha Kesari H Y e12ea3c30d removed redundant NEW_LIBC check 2004-09-27 14:25:13 +00:00
Anantha Kesari H Y e510e26aa6 removed unwanted NEW_LIBC checks and comments 2004-09-27 14:19:07 +00:00
Marcus Boerger 9291a7fa98 Fix Reflection_Class to ReflectionClass in docu/messages 2004-09-27 09:11:40 +00:00
Marcus Boerger 920b706142 - Fix warning 2004-09-27 09:03:40 +00:00
Marcus Boerger 04fe8184f8 - Fix warnings 2004-09-27 09:01:18 +00:00
Marcus Boerger 16c1f0ae74 - Fix warning
# What's the reason _zvalue_value.str.len is int instead of uint/zend_uint?
2004-09-27 08:50:41 +00:00
Marcus Boerger 8e09f92917 - Fix warning 2004-09-27 08:46:12 +00:00
Marcus Boerger 4bcd155285 - Fix warnings 2004-09-27 08:43:05 +00:00
Marcus Boerger 01af2c3f73 Fix warnign 2004-09-27 08:33:11 +00:00
Andi Gutmans 4a03738225 - Use zval_ctor_func() for wrapper and update the prototype to void 2004-09-27 07:04:36 +00:00
Andi Gutmans 67fc0f2bfe - Make zval_copy_ctor() return void like dtor(). No one ever checks the
- return value which is SUCCESS always.
2004-09-27 02:29:01 +00:00
23ecf60129 ChangeLog update 2004-09-27 00:34:15 +00:00
Marcus Boerger 32a0465214 - Fix warning 2004-09-26 22:23:14 +00:00
Marcus Boerger cc7ef25e4a fix build 2004-09-26 22:20:24 +00:00
Marcus Boerger e0ec7c981e - Fix build 2004-09-26 22:19:57 +00:00
Marcus Boerger 32e478b9fc - Add fputcsv() (David Sklar) 2004-09-26 21:55:22 +00:00
Marcus Boerger 5177691e4a - Add missing .cvsignore 2004-09-26 21:51:58 +00:00
Marcus Boerger 881c2f05f5 - Earlier detection of failure (.c now) 2004-09-26 21:49:16 +00:00
Marcus Boerger abe47301c1 - Earlier detection of failure 2004-09-26 21:47:27 +00:00
Marcus Boerger ace462334e Fix TSRM build 2004-09-26 21:45:17 +00:00
Marcus Boerger 42bc4cd0ca Add new examples 2004-09-26 21:21:45 +00:00
Wez Furlong 1f08a96f5a add ignore file 2004-09-26 20:53:31 +00:00
Wez Furlong 69a91aae8e Removing clucking debug and tweak the reset call 2004-09-26 20:52:07 +00:00
Wez Furlong e7a6eca69d rough cut at mysql meta data 2004-09-26 20:47:03 +00:00
Wez Furlong 486b426947 meta data for sqlite3.
Fix repeated executes when the entire rowset has not been consumed.
2004-09-26 20:46:35 +00:00
Wez Furlong eb0cd48d60 Add rough cut at fetching meta data. 2004-09-26 20:45:44 +00:00
Andi Gutmans f17aa81edc - Apply Thies and Sterling's patch which doesn't call ctor/dtor functions
- for types which don't require it (BOOL/NULL/LONG/DOUBLE)
- Breaks serialization!!!
2004-09-26 20:03:54 +00:00
Ilia Alshanetsky d5bac133ee Return FALSE when file cannot be found.
Specify full paths to the files used for the test.
2004-09-26 19:24:18 +00:00
Ilia Alshanetsky d6501f756a fixed test output. 2004-09-26 19:12:06 +00:00
Marcus Boerger 3cdd2bcb01 - Add more tests 2004-09-26 18:28:07 +00:00
Marcus Boerger 617de19912 - Add new test (related to #30234) 2004-09-26 18:16:33 +00:00
Wez Furlong 429b37d750 compile fix from Timm 2004-09-26 13:52:09 +00:00
Wez Furlong 64f3120598 Finalize fix for #30057 2004-09-26 01:10:05 +00:00
10dd36d959 ChangeLog update 2004-09-26 00:35:24 +00:00
Wez Furlong 0c1a436917 Probable fix for Bug #30147 2004-09-25 23:13:49 +00:00
Anantha Kesari H Y cc45f504d4 removing the unwanted inclusion of headers 2004-09-25 15:39:26 +00:00
Anantha Kesari H Y b35e507884 removing unwanted comment 2004-09-25 15:36:47 +00:00
Anantha Kesari H Y 293ab565b5 removing unwanted inclusion of socket header file 2004-09-25 15:33:57 +00:00
Anantha Kesari H Y 80a4042a5c removed NEW_LIBC checks in NETWARE 2004-09-25 15:30:26 +00:00
Marcus Boerger 16f30e1951 - Fix lib substitution (rurban at x-ray dot at ) 2004-09-25 15:29:19 +00:00
Anantha Kesari H Y 7d57757a8a removed redundant NEW_LIBC checks 2004-09-25 15:26:55 +00:00
Anantha Kesari H Y 6692794433 removed redundance LIBC checks for NETWARE 2004-09-25 15:23:35 +00:00
Anantha Kesari H Y 78ecac2569 removed unwanted NEW_LIBC checks as they are no more needed for NETAWRE 2004-09-25 14:54:41 +00:00
Anantha Kesari H Y 146cb29054 removing unwanted header files getting included 2004-09-25 14:48:44 +00:00
Anantha Kesari H Y bc90ecb7e2 removed unwanted NEW_LIBC checks 2004-09-25 14:46:24 +00:00
Anantha Kesari H Y c4b57bc16b Now NetWare LibC supports proper stat structure no need of CLIB_STAT_PATCH and all such checks 2004-09-25 14:23:32 +00:00
Anantha Kesari H Y 595268403a removed the redundant NEW_LIBC checks 2004-09-25 14:19:38 +00:00
Anantha Kesari H Y 00760e1343 removed the redundant NEW_LIBC checks 2004-09-25 14:09:45 +00:00
Anantha Kesari H Y 24437ccb75 cleaned up confusing NetWare specific check. disabled chown and chgrp for NetWare 2004-09-25 13:19:45 +00:00
0ec80db02a ChangeLog update 2004-09-25 00:35:03 +00:00
Wez Furlong 2416481fd1 More sensible error codes in the exceptions we throw for broken transactions 2004-09-24 18:49:33 +00:00
Anantha Kesari H Y ac5b702b91 removed redundant CLIB_STAT_PATCH checks for NETWARE 2004-09-24 15:44:57 +00:00
Anantha Kesari H Y b82a18c8da selectively avoiding module cleanup code for apache 1 build and removing a duplicate code 2004-09-24 15:40:22 +00:00
Dmitry Stogov aeab5f8723 Fixed specializer bug. 2004-09-24 06:06:39 +00:00
8799fed634 ChangeLog update 2004-09-24 00:34:15 +00:00
Andi Gutmans f82ed13625 - Commit new VM architecture. This one allows people (aka Derick) to
- ask the engine to use function handler mode. Will update the README
- about that.
2004-09-23 21:43:32 +00:00
Ilia Alshanetsky 1fc2b79172 Make handle error messages handle persistent situations better. 2004-09-23 21:15:51 +00:00
Ilia Alshanetsky 626caf0292 Make error messages handle persistent environments properly. 2004-09-23 21:03:41 +00:00
Wez Furlong 72040f7f2a more method table adjustments.
mysql driver needs work with the error message stuff.
Other drivers need a bit more auditing...
2004-09-23 20:43:11 +00:00
Wez Furlong b42c14f07e placeholder for someone to implement a ping for persistent connections 2004-09-23 20:20:23 +00:00
Wez Furlong 53ed3475ce add entry for liveness check 2004-09-23 20:09:00 +00:00
Ilia Alshanetsky a4df842974 Fixed test. 2004-09-23 20:08:07 +00:00
Wez Furlong 7937f0a229 Implement persistent connections
$dbh->exec --> $dbh->query
2004-09-23 20:07:02 +00:00
Marcus Boerger 2e49a2d960 Add test description 2004-09-23 18:43:21 +00:00
Marcus Boerger c0b62ca36d Add new test 2004-09-23 18:38:34 +00:00
Marcus Boerger e13eb1d6c0 Bugfix # 30209 2004-09-23 18:37:53 +00:00
Andi Gutmans 97b796d0aa - Commit synthetic benchmark 2004-09-23 16:42:21 +00:00
Anantha Kesari H Y c914bff745 removed unwanted NetWare specific changes 2004-09-23 15:57:30 +00:00
Anantha Kesari H Y 9b0489ac47 removed redundant checks for NETWARE 2004-09-23 15:43:54 +00:00
Anantha Kesari H Y 13163ad5e4 TSRMLS_FETCH should be called prior to accessing any of the SG members 2004-09-23 15:08:31 +00:00
Anantha Kesari H Y d2e85c5c9a NetWare now has a POSIX compliant stat structure so no need of CLIB_STAT_PATCH and all such macros 2004-09-23 14:36:42 +00:00
Anantha Kesari H Y b855337d39 CLIB_STAT_PATCH check is redundant. So removing it 2004-09-23 13:07:43 +00:00
Anantha Kesari H Y b04db9d9e0 Reverted the NetWare Specific Stack limit related patches as asked by Andi 2004-09-23 06:23:36 +00:00
921cdf4fb9 ChangeLog update 2004-09-23 00:34:44 +00:00
Wez Furlong bfe9871c83 fix for pecl modules; runs "make install" and correctly adds the files to the
transaction and package.

(as far as I know).
2004-09-22 19:04:56 +00:00
Anantha Kesari H Y b66e7aec62 NetWare specific stack limit checks 2004-09-22 15:51:56 +00:00
Anantha Kesari H Y 5af07c3c8b Aligned the ifdef NETWARE blocks to first column. 2004-09-22 14:31:21 +00:00
Anantha Kesari H Y 8eb7503078 Stack limit will be checked while executing the script 2004-09-22 14:20:19 +00:00
Anantha Kesari H Y b0b1a57fc4 To avoid redefinition (of free, alloca etc.) compilation errors in Zend. 2004-09-22 13:42:32 +00:00
Anantha Kesari H Y 8478f5e38e When Apache is unloaded, it calls dlclose on all the PHP extensions
that are loaded in memory. In the case of Apache 1.3, this call is blocking indefinitely. As a work around, this call is bypassed for Apache 1.3 build on NetWare only. This means that none of the loaded PHP extensions are unloaded. They will have to be manually unloaded before re-loading the Apache 1.3 again.
2004-09-22 13:29:08 +00:00
Anantha Kesari H Y ff40ceab56 defined ZEND_PATHS_SEPERATOR to semicolon for NetWare 2004-09-22 12:49:08 +00:00
Anantha Kesari H Y 4fe1927183 enabled macros to call the proper LibC functions 2004-09-22 12:45:28 +00:00
Dmitry Stogov 480f4e3565 Specializer was updated with executor's fixes. 2004-09-22 08:45:21 +00:00
Dmitry Stogov 3009a073b0 Fixed bug #29566 (foreach/string handling strangeness (crash)). 2004-09-22 07:14:26 +00:00
Dmitry Stogov 81a5af36a1 Fixed bug in fix for bug #29707 2004-09-22 06:32:19 +00:00
Dmitry Stogov b027850ba4 Fixed bug #30182 (SOAP module processing WSDL file dumps core). 2004-09-22 05:58:40 +00:00
24961c73ac ChangeLog update 2004-09-22 00:34:14 +00:00
Andi Gutmans d9252aa1ea - Fix for bug #29707 2004-09-21 22:09:22 +00:00
Frank M. Kromann 62fbbd1494 Fix win32 build 2004-09-21 18:09:29 +00:00
e62484fa09 ChangeLog update 2004-09-21 00:34:37 +00:00
Wez Furlong 31a17d9044 Enable hypot for all 2004-09-20 22:08:06 +00:00
Edin Kadribasic 3da64fa20a Add additional include search path 2004-09-20 21:26:24 +00:00
Uwe Schindler 74fe4ec0cb changed order of processing of ini entries 2004-09-20 13:30:13 +00:00
Ilia Alshanetsky 4af4cf0914 Fixed bug #29913 (parse_url() is now binary safe). 2004-09-20 05:13:35 +00:00
4017713fc2 ChangeLog update 2004-09-20 00:34:18 +00:00
Wez Furlong 9ce9605723 Use the correct free() here... 2004-09-19 22:20:55 +00:00
Wez Furlong eb5e0d6d12 Add package.xml
(not quite ready for release)
2004-09-19 19:50:06 +00:00
Wez Furlong ceb551024a Add support for:
$d = new PDO('foobar');  // name has no : character

This will indirect via the entry "pdo.dsn.foobar" from the php.ini file,
so if you have:

pdo.dsn.foobar=sqlite::memory:

the above is equivalent to this:

$d = new PDO('sqlite::memory:');

which creates an in-memory sqlite db.
2004-09-19 19:28:02 +00:00
Wez Furlong f40608230b Use NO_PERM code here 2004-09-19 18:13:09 +00:00
Wez Furlong 797303d23a un-bogusify uri: stuff... 2004-09-19 18:11:27 +00:00
Wez Furlong 34d10931e2 Add "no permission" error code.
Add a uri: psuedo driver; it specifies the name of a resource that contains,
as its first line, the actual data source to connect to.
The resource can be a local file, or it can be any resource for which PHP
has a wrapper.

// loads connection data from the file "myapp"
$d = new PDO('uri:myapp');

// lets say that public.db.com has a read-only db open for the public
// their connection data is also published via the web:
// (not so great to resolve this on each request though...)
$d = new PDO('uri:http://public.db.com/pdo-connection-data');
2004-09-19 16:58:13 +00:00
Wez Furlong 6fa469f367 make it build on win32 2004-09-19 15:47:13 +00:00
Wez Furlong 0d4869f24b Add transaction support.
Add authorizer/safe_mode support
2004-09-19 12:42:39 +00:00
Marcus Boerger d0cfb7d3fd Bugfix #30146 (ReflectionProperty->getValue() requires instance for static property) 2004-09-19 11:54:08 +00:00
Marcus Boerger dfe23e34d9 Add new test 2004-09-19 11:53:30 +00:00
Marcus Boerger 980424a834 Add new test 2004-09-19 11:26:05 +00:00
Marcus Boerger 43d9ade92b Bugfix #30148 (ReflectionMethod->isConstructor() fails for inherited classes) 2004-09-19 11:25:39 +00:00
Wez Furlong 2f161ab79d First cut at a PDO driver for SQLite 3.x
Features:
- native prepare/execute and bound parameters.
- finally supports binary data (via bound parameter api)
- full unicode/utf-8 support

Missing:
- UDF functions
- authorizer hooks for safe_mode/open_basedir restrictions

You need to download, compile and install sqlite3 yourself; we're not bundling
it (at least, not yet).
2004-09-19 10:55:41 +00:00
db7af4d8f0 ChangeLog update 2004-09-18 00:35:27 +00:00
Wez Furlong ff4e970fb1 Make new poll stuff work on win32 (and still be safe on unix) 2004-09-17 14:36:55 +00:00
Wez Furlong 99e290f882 Fix for Bug #24189: possibly unsafe select(2) usage.
We avoid the problem by using poll(2).

On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.

If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).

Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.

A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).

The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +00:00
Wez Furlong 9085689d6f standardize the callback support to allow array($obj, 'method') callbacks.
Add a couple of utility functions.
2004-09-17 11:26:43 +00:00
Stanislav Malyshev 3755c03291 fix crash when dtor is fialing on shutdown 2004-09-17 10:13:52 +00:00
Ilia Alshanetsky 2a2d49b947 Fixed bug #30050 (Possible crash inside php_shutdown_config()).
# Patch suggestion by nw at softwarekombinat dot de
2004-09-17 02:48:41 +00:00
1775e980ea ChangeLog update 2004-09-17 00:33:44 +00:00
Andi Gutmans 16d79b79d6 - Add test for bug #27669 2004-09-16 19:36:56 +00:00
Dmitry Stogov 7a149080d8 Fixed crash with SoapFault and register_shutdown_function(). 2004-09-16 08:12:27 +00:00
Sebastian Bergmann 6ccbb6b51b ZTS fix. 2004-09-16 05:43:29 +00:00
Andi Gutmans daa52df47a - Only 5.0.x news which we'll copy over before 5.1.0 release 2004-09-16 00:47:25 +00:00
Andi Gutmans d098a077e4 - News 2004-09-16 00:46:20 +00:00
Andi Gutmans d8efe626b5 - Fix bug #27669 (Dmitry).
Fixes:
<?
        class A
        {
                function hello()
                {
                        echo "Hello World\n";
                }
        }
        $y[0] = 'hello';
        A::$y[0]();
?>
2004-09-16 00:40:38 +00:00
5fc85f6c61 ChangeLog update 2004-09-16 00:33:09 +00:00
Uwe Schindler 5e1f396849 Fixed bug #29805 (HTTP Authentication Issues) 2004-09-15 21:28:30 +00:00
Dmitry Stogov 37a66d6d3b Fixed invalid test name 2004-09-15 14:36:59 +00:00
foobar 36a76f403a Test for bug #30069 2004-09-15 13:54:16 +00:00
Ilia Alshanetsky da136e6106 MFH: Fixed a bug causing ".123" * "90" and alike to return a 0. 2004-09-15 13:41:45 +00:00
Derick Rethans c68f4bde30 - Windows support strcoll too. 2004-09-15 12:28:55 +00:00
Derick Rethans 7795da58e6 - Added new boolean (fourth) parameter to array_slice() that turns on the
preservation of keys in the returned array.
2004-09-15 11:50:27 +00:00
Dmitry Stogov 2a63e78eed Fixed possible crash 2004-09-15 10:43:07 +00:00
7438337fdd ChangeLog update 2004-09-15 00:34:26 +00:00
Ilia Alshanetsky 6784176b9c Fixed compiler warnings. 2004-09-14 23:57:53 +00:00
Dmitry Stogov ffc2278d6e Fixed bug #30045 (Cannot pass big integers (> 2147483647) in SOAP requests) 2004-09-14 12:15:30 +00:00
Sara Golemon 34550382d8 Added stream_filter_remove() to cancel a stream filter.
Register filters as resources when
instantiated by stream_filter_(ap|pre)pend().

Export php_stream_filter_flush() internal function to wind buffered data
out of a particular filter until consumed by a later filter or sent to
stream->readbuffer or stream->ops->write()
2004-09-14 03:48:17 +00:00
41c4fd66d9 ChangeLog update 2004-09-14 00:33:34 +00:00
Sara Golemon 9cd4320b65 Allocating hash tables should be done via macro, not directly 2004-09-13 21:07:22 +00:00
Magnus M��tt� 17c77a54bf Add missing stream unregister for sslv2 and 3. 2004-09-13 18:30:30 +00:00
Stefan Esser 0f860d8f34 only allow valid arrays at this point 2004-09-13 16:00:23 +00:00
Dmitry Stogov 12752a4044 Change soap's ctors to __construct(),
rename SoapClient->__call() to SoapClinet->__soapCall().
2004-09-13 11:55:24 +00:00
Stanislav Malyshev 29fec3febc Antony Dovgal's error message improvement - #27290 2004-09-13 10:41:39 +00:00
dd12885897 ChangeLog update 2004-09-13 00:32:56 +00:00
Marcus Boerger 61bbeabdfa - Moe changed from .re to .c 2004-09-12 12:45:01 +00:00
Marcus Boerger 8564352f59 - Readd check for nested data (but correct this time) 2004-09-12 12:43:05 +00:00
Marcus Boerger 06ade1ab1c - Check for legal key types 2004-09-12 12:23:16 +00:00
Marcus Boerger 6200c9a5a1 - Remove wrong test 2004-09-12 11:51:13 +00:00
Stefan Esser e7d698c7d8 New Rule: Never try to repair potential malicious user input 2004-09-12 10:45:14 +00:00
Antony Dovgal e2568f0a4f 64-bit related changes
./configure will now behave differently if $ORACLE_HOME/lib32 exists
(this mostly happens at Solaris AFAIK)
2004-09-12 06:38:31 +00:00
Antony Dovgal 0e2100ca58 add PHP_CHECK_64BIT macro to be able to detect 64-bit platform in ./configure 2004-09-12 06:35:51 +00:00
49b1208120 ChangeLog update 2004-09-12 00:33:34 +00:00
Derick Rethans 4bae5cb4d0 - MFB: Added the sorting flag SORT_LOCALE_STRING to the sort() functions which
makes them sort based on the current locale. (Derick)
2004-09-11 14:22:35 +00:00
b3a32e6d21 ChangeLog update 2004-09-11 00:33:56 +00:00
Andi Gutmans 3e201ac281 - Resolve undefined behavior (joe at redhat) 2004-09-11 00:23:20 +00:00
Sara Golemon ed5dcbff9b A little extra code to allow overriding plainfiles wrapper as well 2004-09-10 21:50:29 +00:00
Sara Golemon 955b43ba12 Add stream_wrapper_unregister()
Disables a wrapper (user-defined or built-in) for the life of the request.

Add stream_wrapper_restore()
Restores the wrapper originally defined at the time the request started
to the protocol name mentioned.
2004-09-10 20:45:35 +00:00
Sterling Hughes 58cb0d77a0 fix wrong check from return value, binary content should not be \0'd,
non-binary content should be \0'd.
2004-09-10 20:36:45 +00:00
Antony Dovgal 663e46eee5 add testcase for bug #29446 2004-09-10 13:55:26 +00:00
Wez Furlong 0bc0ccce2b Fix Bug #29296: add explicit sslv2 and sslv3 transports 2004-09-10 11:43:47 +00:00
Dmitry Stogov f8181ba7b5 SoapClient->__call() is renamed to SoapClient->__soap_call(). 2004-09-10 09:02:06 +00:00
Dmitry Stogov f93560ddc9 Using php_libxml_xmlCheckUTF8() from ext/libxml. 2004-09-10 08:59:45 +00:00
Andi Gutmans ab52308356 - This one fixes rather strange problem - ZE allows multiple declarations of the same class constant.
- It could be a minor BC break, but I'm sure it's a bug. (Antony Dovgal aka tony2001)
2004-09-10 06:13:13 +00:00
0a72ea8d70 ChangeLog update 2004-09-10 00:35:29 +00:00
Wez Furlong 751f67d5d1 avoid ANSI stdio when calling tempnam() to avoid limitations of AT&T libc. 2004-09-09 19:41:07 +00:00
Timm Friebe 8e5d8e6679 - Defaulted ini variable "sybct.deadlock_retry_count" to 0
# For details on why this was changed, see
# http://zend.com/lists/php-dev/200409/msg00108.html
2004-09-09 19:17:50 +00:00
Marcus Boerger 8b30b8da98 Fix test script 2004-09-09 17:08:45 +00:00
Andi Gutmans db07396fe8 - Revert API bump 2004-09-09 17:08:25 +00:00
Andi Gutmans 3d438cc06a - Commit VM explanation. 2004-09-09 17:04:12 +00:00
Andi Gutmans ec4f64344c - Recommit 2004-09-09 16:52:24 +00:00
Andi Gutmans 6bd3c36a53 - Recommit:
- Check signature of magic methods
  - Register __get/__set/__call for internal classes
2004-09-09 16:51:45 +00:00
Andi Gutmans 8aed222d93 - Recommit:
- Bump the API number to work around this major breakage.
2004-09-09 16:50:04 +00:00
Andi Gutmans 96ab56e146 - Roll back VM commit 2004-09-09 16:47:22 +00:00
Rasmus Lerdorf bb8167cda3 Stop at the index on an unmatched [ 2004-09-09 16:10:24 +00:00
Marcus Boerger 7bfb397338 - Drop namespace relict 2004-09-09 13:29:08 +00:00
Marcus Boerger 621795ef4b Fix __call's method signature 2004-09-09 09:53:53 +00:00
Marcus Boerger be24e2455c - Check signature of magic methods
- Register __get/__set/__call for internal classes
2004-09-09 09:51:43 +00:00
Marcus Boerger 8e56b3b6a6 Proper #ifdef'ing 2004-09-09 09:08:33 +00:00
Marcus Boerger b16ae3b73a add new test 2004-09-09 07:46:19 +00:00
Derick Rethans 7d2302830f - Bump the API number to work around this major breakage. 2004-09-09 07:41:32 +00:00
Dmitry Stogov f6206c5050 We will use CALL dispatch method for compilers other then GCC. It is more safe. 2004-09-09 06:05:11 +00:00
ea4dbef1b7 ChangeLog update 2004-09-09 00:34:46 +00:00
Andi Gutmans f20f992ddd - Fix the fix. 2004-09-09 00:15:39 +00:00
Andi Gutmans 2e286e7374 - Fix bug #28054 by preventing printing out bogus information in backtrace
when in error handler (still doesn't know all information but at least
  it's not bogus)
2004-09-08 23:46:37 +00:00
Sara Golemon 532a79aa52 *** empty log message *** 2004-09-08 23:37:55 +00:00
Andi Gutmans 8eb8850c90 - Some architectural changes:
a) We specialize opcodes according to op_type fields. Each opcode has to
    be marked with which op_type's it uses.
 b) We support different execution methods. Function handlers, switch()
    and goto dispatching. goto seems to be the fastest but it really
    depends on the compiler and how well it optimizes. I suggest playing
    around with optimization flags.

- Warning: Things might break so keep us posted on how things are going.
  (Dmitry, Andi)
2004-09-08 22:14:12 +00:00
Sara Golemon d179ac771c Handle maxlen when stream can't be mmaped 2004-09-08 18:42:15 +00:00
Rob Richards da5ff5d9f1 fix issue with multiple xsl objects using registerPHPfunctions
- also fixes threading issue
2004-09-08 16:54:17 +00:00
Rob Richards ccb99d0a1e implement php_libxml_xmlCheckUTF8
- workaround for pre libxml2-2.6.13 function
2004-09-08 10:15:41 +00:00
9ed4b04f6a ChangeLog update 2004-09-08 00:32:37 +00:00
Sara Golemon 92c4a37a6a Chunk Length may optionally be followed by whitespace 2004-09-07 22:46:24 +00:00
Frank M. Kromann aa25757136 Make it possible to return VideoStream and PrebuiltClip 2004-09-07 19:40:18 +00:00
Sara Golemon a85bff9796 Protocol version context option and chunked transfer encoding 2004-09-07 19:27:11 +00:00
Dmitry Stogov 7e53511ec8 Make ext/soap work around libxml2 bug in xmlCheckUTF8 (2.6.7-2.6.13) 2004-09-07 14:34:46 +00:00
882a4c4d2c ChangeLog update 2004-09-07 00:34:14 +00:00
Marcus Boerger dd5652e4c1 - Fix handling of exceptions in dtors 2004-09-06 19:13:33 +00:00
Rob Richards 963200c74c Fixed bug #29945 (simplexml_load_file URL limitation 255 char) 2004-09-06 10:16:34 +00:00
Dmitry Stogov 4c4d9102e8 Fix: interfac -> interface 2004-09-06 08:40:04 +00:00
85a9b2283f ChangeLog update 2004-09-06 00:35:08 +00:00
Zeev Suraski 85a36e2bc3 Fix reverse dependency 2004-09-05 22:40:35 +00:00
Marcus Boerger 2f5990a5c4 Touch 2004-09-05 17:44:15 +00:00
Marcus Boerger 338e3357ae - Bugfix #29985 2004-09-05 17:37:57 +00:00
Marcus Boerger efea880e6f - Add some checks to unserialize() to prevent bufferoverflows 2004-09-05 17:16:02 +00:00
Marcus Boerger 91af7f394f - Add some checks when unserializing data to prevent buffer overflows 2004-09-05 16:29:05 +00:00
Andrey Hristov 945f7d68b9 remove "." at the end of messages 2004-09-05 13:27:58 +00:00
Moshe Doron 9632e324b6 make autogenerated docs happy (Friedhelm Betz) 2004-09-05 08:13:56 +00:00
895b4a2825 ChangeLog update 2004-09-05 00:32:42 +00:00
Andi Gutmans d7422e3821 - Don't destroy object when calling overloaded cast method in
- zend_parse_parameters()
2004-09-04 17:03:45 +00:00
Georg Richter eb3900b77a forgot to remove comment in last commit 2004-09-04 14:16:52 +00:00
bb6422a83f ChangeLog update 2004-09-04 00:33:13 +00:00
Marcus Boerger ef3e8fa852 - Add link to chm version
- Change wording
2004-09-03 18:46:29 +00:00
Marcus Boerger d265cdffbf - Fix protoe's 2004-09-03 18:39:30 +00:00
Marcus Boerger 4d3894178d Update docu 2004-09-03 06:16:34 +00:00
Ilia Alshanetsky 6ad651afbe Adjusted input check. 2004-09-03 03:35:22 +00:00
69a4d841a9 ChangeLog update 2004-09-03 00:34:03 +00:00
Frank M. Kromann 57f3b2504e Adding swfvideostreamp and swfprebuiltclipp, available in ming 0.3 2004-09-02 20:56:39 +00:00
Marcus Boerger 72000ecda9 Fix memleak in serialize 2004-09-02 18:28:47 +00:00
Marcus Boerger 94c4feef12 Fix test 2004-09-02 18:24:58 +00:00
Sebastian Bergmann aab4ad1a8e Fugbix typo. 2004-09-02 17:27:44 +00:00
Stanislav Malyshev dbc1cb5e92 MF4: fix crash if shutdown uses file stats 2004-09-02 09:39:55 +00:00
Derick Rethans 00b9ace829 - Added test for bug #29944. 2004-09-02 06:36:35 +00:00
Georg Richter 62ed6a0f2b fixed bug #29283 2004-09-02 04:53:01 +00:00
Ilia Alshanetsky 197d65770a Fixed bug #29925 (Added a check to prevent illegal characters in session
key).
2004-09-02 02:44:04 +00:00
4369785d6d ChangeLog update 2004-09-01 00:34:13 +00:00
Marcus Boerger 1cd7013517 Add new test for seeking 2004-08-31 20:54:31 +00:00
Marcus Boerger 819127b74b Fix seeking 2004-08-31 20:54:00 +00:00
Sara Golemon 579575e430 Use user_agent ini setting if it's available. 2004-08-31 20:11:18 +00:00
Joe Orton 0d3884fed1 Move global symbols defined by bundled copy of libgd into private
php_gd_* namespace, to avoid symbol conflicts with, for instance,
another Apache module which loads a different copy of libgd.
2004-08-31 16:41:29 +00:00
Antony Dovgal fd6d9cbeac fix bug #29723 (file_get_contents() fails with the file:// wrapper under Win32) 2004-08-31 11:37:02 +00:00
Joe Orton 8b4929818f Do not rely on behaviour of integers which might be greater than
LONG_MAX on 32-bit architectures.
2004-08-31 10:23:22 +00:00
Antony Dovgal fdb578219b this file shouldn't be in the repository at all 2004-08-31 08:31:09 +00:00
322ed7d092 ChangeLog update 2004-08-31 00:32:38 +00:00
Ilia Alshanetsky 142ac728dd Added missing input validation to dio_write(). 2004-08-30 22:21:09 +00:00
Frank M. Kromann a1cf684b55 Fif for #28047. Set correct debug options for debug_ts build 2004-08-30 19:01:58 +00:00
Marcus Boerger 8867010b22 Add some information about array overloading 2004-08-30 18:48:52 +00:00
Rob Richards a50166004d remove cloning under ze1_compatibility_mode
- minor BC break but doesnt work right under compat mode anyways
2004-08-30 17:29:22 +00:00
Rob Richards 02fa5aa0dc remove cloning under ze1_compatibility_mode
- minor BC break but doesnt work right under compat mode anyways
2004-08-30 15:07:20 +00:00
Rob Richards d39cca1530 remove clone functionality 2004-08-30 14:59:30 +00:00
Antony Dovgal 513c93b9ae add testcase for bug #29893 2004-08-30 09:07:17 +00:00
Stanislav Malyshev 4f68f3774c fix crash #29893 2004-08-30 08:57:40 +00:00
22f796e55f ChangeLog update 2004-08-30 00:33:06 +00:00
Marcus Boerger 0eaa26fc31 String offset starts with 0, fix isset($str[$len]) 2004-08-29 19:15:08 +00:00
Ilia Alshanetsky 9996b5f731 Fixed leak when serializing protected & private properties. 2004-08-29 17:16:20 +00:00
George Schlossnagle 1901b9d90e A little cleanup on the language refinements. 2004-08-29 13:37:10 +00:00
Marcus Boerger 1e708a5aeb Bugfix #29882 isset crashes on arrays 2004-08-29 13:28:03 +00:00
Jan Lehnardt d402f6fab3 - language refinements 2004-08-29 11:54:38 +00:00
Sergey Kartashoff 505144b844 - A fix for building of shared mnogosearch module 2004-08-29 10:59:33 +00:00
Marcus Boerger 1d1d20ced2 Add more docu 2004-08-29 10:33:24 +00:00
Antony Dovgal fdb29f9fa5 fix leak 2004-08-29 06:10:47 +00:00
b799e6cbaf ChangeLog update 2004-08-29 00:34:14 +00:00
John Coggeshall 2f4ca9a2d4 Removed examples which don't actually work anymore for PHP 4, and
updated those that do for PHP 5.
2004-08-28 18:10:21 +00:00
Derick Rethans 52d6a64efa - Fixed bug #29873 (No defines around pcntl_*priority definitions). 2004-08-28 12:20:06 +00:00
48335493eb ChangeLog update 2004-08-28 00:34:05 +00:00
Marcus Boerger eeb4e150e7 Fix by (mathieu dot bruneau at argontechnologies dot ca) 2004-08-27 20:38:15 +00:00
Andi Gutmans ec3aac1e86 - Fix leak report for 0 byte allocations (Dmitry) 2004-08-27 16:49:14 +00:00
Dmitry Stogov dae2423d11 Fixed bug #29842 (soapclient return null value) 2004-08-27 07:07:46 +00:00
7280d303f4 ChangeLog update 2004-08-27 00:32:42 +00:00
Ilia Alshanetsky ee8a0fc8f8 Fixed a nasty resource/memory/disk-space leak when opening zlib files
via wrapper stacking ala compress.zlib://http://...
2004-08-26 23:36:05 +00:00
Marcus Boerger ec4f576cb3 Enforce semantics: Classes cannot extend Interfaces 2004-08-26 22:59:25 +00:00
Marcus Boerger b1d43bac61 Fix test: Classes cannot extend Interfaces 2004-08-26 22:58:12 +00:00
Marcus Boerger dcd10fb714 Add new test 2004-08-26 22:53:51 +00:00
Marcus Boerger 08c344c293 Drop doubled check 2004-08-26 22:32:38 +00:00
Marcus Boerger 690b45afaa - Bugfix #29828 Interfaces no longer work 2004-08-26 22:25:55 +00:00
Marcus Boerger 5960786cc6 Add new test 2004-08-26 22:24:48 +00:00
Rob Richards 74259c9124 no longer experimental
update package info
2004-08-26 20:17:20 +00:00
Rob Richards 518145133f not experimental 2004-08-26 20:13:33 +00:00
Dmitry Stogov 855f3591a6 Memory leaks were fixed 2004-08-26 18:52:57 +00:00
Dmitry Stogov 0384e2ae27 Fixed bug #29839 (incorrect convert (xml:lang to lang)) 2004-08-26 18:43:06 +00:00
Dmitry Stogov dedab09c32 Fixed bug #29839 (incorrect convert (xml:lang to lang)) 2004-08-26 18:40:10 +00:00
Dmitry Stogov 0835c34572 Fixed bug #29795 (SegFault with Soap and Amazon's Web Services)
Fixed bug #27994 (segfault with Soapserver when WSDL-Cache is enabled)
2004-08-26 15:26:32 +00:00
Dmitry Stogov 6078001f12 Merged bug fixes from PHP_5_0. 2004-08-26 12:24:54 +00:00
b8ed424ed3 ChangeLog update 2004-08-26 00:33:05 +00:00
Ilia Alshanetsky fe73e4d851 Fixed bug #29808 (array_count_values() breaks with numeric strings). 2004-08-26 00:26:19 +00:00
Andrei Zmievski ace6ff598c MFB. 2004-08-25 20:48:48 +00:00
Georg Richter 616d49aaf6 test for local_infile_handler 2004-08-25 13:58:03 +00:00
Georg Richter c8572b0bba changed local_infile_handler:
mysql client lib now uses php_local_infile functions by default, which allows
  to use php_fopen_wrapper: e.g. LOAD DATA LOCAL INFILE 'http://foo.com/bar.csv' ...

  mysql_set_local_infile_handler now only supports a callback function for read.
2004-08-25 13:57:35 +00:00
Christian Stocker b96ebb376f if $doc->recover = true; set error_reporting to (old | E_WARNING)
This way, you can't silence XML parse errors with the @ character
2004-08-25 08:27:07 +00:00
Marcus Boerger 7ec9245c74 No short tags 2004-08-25 07:25:54 +00:00
Derick Rethans ea5d8fcf1d - Those two are already in the NEWS for 5.0.2. 2004-08-25 06:37:47 +00:00
Andi Gutmans 69aa60a947 - Improve wording 2004-08-25 01:06:18 +00:00
Andi Gutmans 99cae17cd0 - MFB 2004-08-25 01:04:41 +00:00
Andi Gutmans 709c5bd2d5 - Add interface_exists() and differentiate between classes and interfaces
(Andrey Hristov)
2004-08-25 00:41:43 +00:00
d800816f94 ChangeLog update 2004-08-25 00:33:08 +00:00
Andrey Hristov b8b1b35904 new incompatibilities. maybe someone from the doc group will update the
migrating guide. also Derick may add new slides to his talk :)
2004-08-24 22:01:58 +00:00
Marcus Boerger 1d913a9c0b MFB: TSRM fix 2004-08-24 21:49:09 +00:00
Marcus Boerger 965783b7c1 Add new test 2004-08-24 21:35:46 +00:00
Andrei Zmievski f30355a7df MFB. 2004-08-24 20:58:59 +00:00
Marcus Boerger 87187da066 - Add missing brackets 2004-08-24 18:47:18 +00:00
Frank M. Kromann 381d3f8e62 Add fbsql_rows_fetched() - returns the total number of rows fetched.
Fix a possible crash in fbsql_database() if the function was called before a connection was made.
2004-08-24 17:59:01 +00:00
Ilia Alshanetsky f95c1df583 Fixed bug #29821 (Fixed possible crashes in convert_uudecode() on invalid
data).
2004-08-24 15:25:48 +00:00
Rob Richards 53d0c7a753 fix segfault when object cloned 2004-08-24 13:33:11 +00:00
Wez Furlong bbd6dec20c Add support for the readline callback interface, allowing you to interleave
IO and user input.  Sample script:

<?php
dl("readline.so");

function handle_user_input($line)
{
   echo "You typed: '$line'\n";
   if ($line == 'exit')
      exit;
}

readline_callback_handler_install('type! > ', 'handle_user_input');

while (true) {
   $n = stream_select($r = array(STDIN), $w = null, $e = null, null);

   if ($n && in_array(STDIN, $r)) {
      readline_callback_read_char();
   }
}
2004-08-24 12:52:07 +00:00
Derick Rethans 0bfb0fad92 - No tabs here please 2004-08-24 12:28:46 +00:00
Wez Furlong 5ed8e63591 use dependent libs while probing for functions 2004-08-24 12:06:37 +00:00
Christian Stocker ce65982ec1 This extension is no more experimental 2004-08-24 11:50:26 +00:00
Andi Gutmans e762b69ccb - Fix typo 2004-08-24 01:04:57 +00:00
ce84626a7f ChangeLog update 2004-08-24 00:36:07 +00:00
Marcus Boerger efbfaec0a3 - Drop unused variable 2004-08-23 20:58:48 +00:00
Marcus Boerger b7a8297bc1 - Boost up __autoload() calls by caching the lookup 2004-08-23 20:57:40 +00:00
Andi Gutmans 88b9c69cb2 - Improve wording 2004-08-23 20:19:37 +00:00
Andi Gutmans 4c5fd67f7c - NEWS 2004-08-23 20:18:10 +00:00
Andi Gutmans 51501e8de0 - Improve performance of switch() 2004-08-23 20:16:35 +00:00
Ilia Alshanetsky 4ca88997f7 Fixed possible crash inside dio_read(). 2004-08-23 17:27:33 +00:00
Ilia Alshanetsky 8eacea8b48 Fixed proto of headers_list(). 2004-08-23 16:58:11 +00:00
Derick Rethans 6ffc1c291a - MFB: Fixed Apache 2.0 SAPI build against Apache 2 HEAD. (Patch by Joe Orton) 2004-08-23 09:01:27 +00:00
Derick Rethans 05bf7d9c65 - Little changes. 2004-08-23 09:01:08 +00:00
51b7d3a1c0 ChangeLog update 2004-08-23 00:34:43 +00:00
Ilia Alshanetsky c84bd49fb5 Using int when long should be used. 2004-08-22 18:05:24 +00:00
d6dd2c26fa ChangeLog update 2004-08-22 00:33:22 +00:00
Timm Friebe 7035a224b5 - Fixed packet size setting
# Patch by Alex Kiesel
2004-08-21 17:54:11 +00:00
Andrey Hristov dd5538566e fix for bug 26737 : private & protected member variables not serialized
when user defined __sleep() is declared. Additionally E_NOTICE is
being thrown if __sleep() returns a non-existing member variable name
2004-08-21 13:49:19 +00:00
Frank M. Kromann e398e6b7d6 Fix win32 compilation. Missing uid_t and gid_t definitions. 2004-08-21 03:09:45 +00:00
20db6b2dcb ChangeLog update 2004-08-21 00:33:39 +00:00
Sara Golemon b5547442e5 Bugfix#29777 Some compilers don't like // style comments 2004-08-21 00:00:16 +00:00
Sara Golemon 5a81efa31f Fix compile 2004-08-20 23:53:59 +00:00
Ilia Alshanetsky 3849411fa2 Adjust magic path ordering. 2004-08-20 15:11:49 +00:00
Ilia Alshanetsky 823e4029f7 MFB: Removed unneeded bits. 2004-08-20 13:53:16 +00:00
Ilia Alshanetsky 420a8cd50a Added /usr/share/misc/file/magic to the possible magic paths (used by Debian) 2004-08-20 13:48:19 +00:00
Derick Rethans 998f5221b5 - Order and removed a bugfix which was already in 5.0.2/ 2004-08-20 06:14:42 +00:00
Ilia Alshanetsky 67e3288a5d Added more missing cURL options. 2004-08-20 00:55:56 +00:00
9b09af54d9 ChangeLog update 2004-08-20 00:34:05 +00:00
Andi Gutmans a36e7b0ab1 - Cleanup 2004-08-19 20:42:20 +00:00
Andi Gutmans 57ba9b8ccf - Second wave of garbage removal. 2004-08-19 20:29:04 +00:00
Brian France 2f97097e0f If you send a post with a content-type header and then the next post without the content-type header, raw_post_data will not be set. This is because SG(request_info).post_entry is set to the first requests function pointer which makes it follow the wrong code path. 2004-08-19 20:26:39 +00:00
Andi Gutmans edb7c7d4f5 - Stop using garbage. Please let me know if you find any bugs resulting
- of this patch (very likely). (Dmitry, Andi)
2004-08-19 20:03:06 +00:00
Marcus Boerger 4319872812 Janify [tm] 2004-08-19 18:15:48 +00:00
Antony Dovgal 5d7d4a55aa BFN 2004-08-19 15:22:17 +00:00
Antony Dovgal ca28e37be1 fix #29737 in the right way with performance in mind 2004-08-19 15:14:04 +00:00
Antony Dovgal e156ed7433 fix #29737 (ip2long should return -1 if IP is 255.255.255.255 and FALSE on error) 2004-08-19 13:59:29 +00:00
Christian Stocker 5950725144 fix for bug #29657 xml_* functions throw non descriptive error, compared to php4
fix for bug #29711 libxml and non iso-8859-1.
If no encoding specified, it defaults to UTF-8 now
2004-08-19 12:18:25 +00:00
Marcus Boerger ba75dd7877 Fix issue in test 2004-08-19 08:04:20 +00:00
Marcus Boerger f97066dc17 BFN + reorder 2004-08-19 07:45:24 +00:00
Marcus Boerger 308081cd11 - Implement #29728: Reflection API Feature: Default parameter value.
. ReflectionParameter::isDefaultValueAvailable()
  . ReflectionParameter::getDefaultValue()
2004-08-19 07:42:02 +00:00
Marcus Boerger 5e1a0f4c0c - Nedd to work on copy 2004-08-19 07:16:02 +00:00
77319b779a ChangeLog update 2004-08-19 00:32:47 +00:00
Marcus Boerger 35fec42377 - Show default value of optional parameters of user defined functions. 2004-08-18 23:07:12 +00:00
Ilia Alshanetsky 5520636b17 Fixed bug #29727 (Added missing CURL authentication directives). 2004-08-18 21:27:24 +00:00
Andrei Zmievski f60dc4699f Forgot to turn off debugging. 2004-08-18 18:10:31 +00:00
Andrei Zmievski fe5c131a0d Re-add my patch for .ini variable access. 2004-08-18 16:58:20 +00:00
Antony Dovgal ad503c814b MFB: typo in config.m4 (potential configuration problem with Stronghold) 2004-08-18 07:22:54 +00:00
97360bacd5 ChangeLog update 2004-08-18 00:36:55 +00:00
Andi Gutmans 48b766d500 - Fix typos 2004-08-17 23:08:44 +00:00
Antony Dovgal b3da1422bb fix typo 2004-08-17 10:57:40 +00:00
d3cf46ca1d ChangeLog update 2004-08-17 00:33:20 +00:00
Ilia Alshanetsky 4d360ead0c Fixed bug #29594 (Use PHP's own tmpfile() implementation). 2004-08-16 23:07:42 +00:00
Zeev Suraski b9310261d7 Fix an oldie fd leak 2004-08-16 12:24:52 +00:00
Marcus Boerger 041d23d7b6 - Fix bug #29447: Reflection API issues 2004-08-16 08:48:25 +00:00
Ilia Alshanetsky 60fc9c050a Fixed bug #29678 (opendir() with ftp:// wrapper segfaults if path does not
have trailing slash).
2004-08-16 01:41:14 +00:00
be00addf85 ChangeLog update 2004-08-16 00:33:22 +00:00
Marcus Boerger 44a9c3188e Make clear this is PDO support 2004-08-15 19:17:58 +00:00
Marcus Boerger d16571328f Fix extension name 2004-08-15 15:56:33 +00:00
Marcus Boerger ce8331f9a5 Remove unnecessary check 2004-08-15 15:48:32 +00:00
Marcus Boerger 295ae448b1 - Synch names with other extensions 2004-08-15 13:43:56 +00:00
Georg Richter 1c6f49006b fixed default for mysqli_fetch_array 2004-08-15 05:48:16 +00:00
8840250fa0 ChangeLog update 2004-08-15 00:34:53 +00:00
Marcus Boerger e45270dd2f Add missing check 2004-08-14 19:02:17 +00:00
7ccbed42c8 ChangeLog update 2004-08-14 00:34:06 +00:00
Dan Kalowsky 206c05dc47 Checking in a patch by Dave Lawson (dlawson@masterytech.com) to correct
some of the behavior found in the odbc_fetch_*() functions.  This patch
NEEDS to be tested on MS Access before a release is done with it.  This
submission is to get it into the daily builds for testing.
2004-08-13 19:33:24 +00:00
Georg Richter 1593aa0e5e fixed bug #29656 (segfault on result and statement properties) 2004-08-13 16:25:29 +00:00
Antony Dovgal e511b57e2a fix yet another annoying compile warning 2004-08-13 14:59:58 +00:00
Antony Dovgal f370d0290f fix compile warning 2004-08-13 14:52:27 +00:00
Christian Stocker 98dd7282be Forgot to add DomDocumentFragment->appendXML(), when I commited it back then 2004-08-13 12:35:56 +00:00
Christian Stocker e99c375606 Added DomDocument->recover property for parsing not well-formed XML Documents. 2004-08-13 12:32:55 +00:00
Derick Rethans 566230a01b - Added the PHP_EOL constant (Patch by Paul Hudson) 2004-08-13 07:02:50 +00:00
e5cb1fa4e4 ChangeLog update 2004-08-13 00:33:48 +00:00
Georg Richter 8ff9528138 minor fix in mysqli_prepare: copying stmt errormessag to mysql structure 2004-08-12 22:14:06 +00:00
Chuck Hagenbuch 6639ab8469 More spaces -> tabs. 2004-08-12 19:31:36 +00:00
Ilia Alshanetsky 5b58b9af6b Properly fix the msgno check inside imap_fetchbody(). 2004-08-12 19:20:15 +00:00
Chuck Hagenbuch 0bf1525bc8 fix. 2004-08-12 18:01:45 +00:00
Marcus Boerger 1dda0f263a Fix tests after foreach patch 2004-08-12 08:01:41 +00:00
Andi Gutmans 0286913937 - Use FREE_HASHTABLE() 2004-08-12 06:17:42 +00:00
Andi Gutmans 993f70c1d2 - Don't use magic numbers 2004-08-12 05:54:11 +00:00
Andi Gutmans de25255b6d - Significantly improve performance of foreach($arr as $data). (Marcus) 2004-08-12 05:41:01 +00:00
Marcus Boerger 5310de975c Change to use md5_file() 2004-08-12 00:38:01 +00:00
fb9b63de23 ChangeLog update 2004-08-12 00:37:05 +00:00
Ilia Alshanetsky 61d60153b2 Fixed memory leak. 2004-08-11 23:25:50 +00:00
Ilia Alshanetsky bf8a6a07d8 MFH: Fixed bug #29607 (highlighting code with HEREDOC produces invalid
output).
2004-08-11 22:38:32 +00:00
Marcus Boerger 3bca709fbc Add missing module deps 2004-08-11 21:04:36 +00:00
Marcus Boerger 364c2fe5a2 TSRM fix 2004-08-11 20:51:41 +00:00
Ilia Alshanetsky af77fdb9bf It's stable now. 2004-08-11 20:31:39 +00:00
Ilia Alshanetsky e8f10e2694 Prepare for 1.0 release of enchant. 2004-08-11 20:30:44 +00:00
Marcus Boerger be022a813f More meaningfull error message 2004-08-11 20:19:49 +00:00
Derick Rethans 318be175a4 - Added a notice to getimagesize in case zlib is not available and a compressed
SWF movie has been passed to the function.
2004-08-11 12:33:03 +00:00
Christian Stocker 786ffab310 fix test 2004-08-11 08:23:26 +00:00
Rasmus Lerdorf 3166314d89 Reset global request_time in sapi_activate. Reset it in sapi_deactivate
too, although I can't see why that would be necessary, but most of the
other sapi globals are reset there as well.
2004-08-11 06:18:25 +00:00
Derick Rethans 4894978500 - Added missing defines.
#- I did say the patch was for 4.3 ;-)
2004-08-11 06:11:07 +00:00
Sara Golemon 883e096ce6 Minor format specifier fixes 2004-08-11 04:27:01 +00:00
Sara Golemon 74de8bdb02 Don't require the user to specify as a reference 2004-08-11 03:57:15 +00:00
a13424db00 ChangeLog update 2004-08-11 00:33:29 +00:00
Ilia Alshanetsky 60b6ac053e Fixed bug #29606 (php_strip_whitespace() prints to stdout rather then
returning the value).
2004-08-10 22:16:46 +00:00
Rasmus Lerdorf cad60c3760 Add SAPI hook to get the request time if provided by the web server,
otherwise call time(0) on the first call and store it so subsequent
calls will get the same time.  Hook support for Apache1/2 included.
2004-08-10 17:40:00 +00:00
Dmitry Stogov 426443cc18 Changed bugs order. 2004-08-10 16:43:20 +00:00
Dmitry Stogov fa6079ea25 Fixed bug #28969 (Wrong data encoding of special characters) 2004-08-10 16:18:08 +00:00
Dmitry Stogov de46ba2ea5 Fixed bug #28969 (Wrong data encoding of special characters). 2004-08-10 16:11:41 +00:00
Dmitry Stogov bcdab8f7e6 Fixed bug #29256 (SOAP HTTP Error when envelop size is more than 24345 bytes) 2004-08-10 14:57:47 +00:00
Wez Furlong b21a7357fc Fix for #29256 from Dmitry, very slightly modified 2004-08-10 13:44:43 +00:00
Dmitry Stogov db855e2c74 Test is fixed. (__call() requires two parameters). 2004-08-10 09:57:16 +00:00
Christian Stocker 32613f510c Fix segfault on error in xslt 2004-08-10 08:00:06 +00:00
Marcus Boerger 51505045e6 - Fix warnings 2004-08-10 07:01:54 +00:00
Moriyoshi Koizumi 51fc7b8ea5 - Bugfix #29493 (extract(array, EXTR_REFS) misbehaves with elements referred
twice or more times). (Patch inspired by Michael Manley. Thanks.)
2004-08-10 06:00:30 +00:00
Andi Gutmans b4faef2fe3 - MFB 2004-08-10 05:42:21 +00:00
Ilia Alshanetsky 636eb109ad Fixed bug #29581 (Typo inside php.ini comments for mysql.trace_mode). 2004-08-10 00:44:20 +00:00
96209e6cad ChangeLog update 2004-08-10 00:34:28 +00:00
Derick Rethans 92df5e9af9 - Fixed speling and some reordering 2004-08-09 15:56:51 +00:00
Georg Richter 2454194424 fixed bug #29577 (MYSQLI_CLIENT_FOUND_ROWS undefined) 2004-08-09 04:34:01 +00:00
7374258dc1 ChangeLog update 2004-08-09 00:34:17 +00:00
Ilia Alshanetsky f268ada2f3 When skip condition is met, stop. 2004-08-08 21:31:50 +00:00
Ilia Alshanetsky 93b21c6ed4 MFB: removed \r characters. 2004-08-08 21:26:29 +00:00
Christian Stocker 264fd866a1 - Fix bug #29573: Segmentation fault when php function(called from XSLT templat) throw exception
- Fix some 0 Byte Memory Leaks
2004-08-08 18:01:33 +00:00
79187b1360 ChangeLog update 2004-08-08 00:34:33 +00:00
Wez Furlong 8c4b687769 Fix for Bug #29490 from Michael Sisolak.
Another fine patch; thanks Michael.
2004-08-07 21:00:59 +00:00
Sara Golemon 37b8c079d6 Fix inet_pton/ntop() on BSD 2004-08-07 15:59:59 +00:00
Sara Golemon 592b17d4d1 Binary safety fix for inet_pton() 2004-08-07 05:11:26 +00:00
Sara Golemon 75f4ec8879 New Functions inet_pton() and inet_ntop() 2004-08-07 04:50:24 +00:00
Andi Gutmans f3d6620f00 - Commit Derick's patch for allowing Zend to use regular libc memory
- allocation functions. Mainly useful in conjunction with tools such as
- valgrind which enables us to find bugs we might not find with the
- current memory managers boundary protection.
2004-08-07 00:45:34 +00:00
b86a6d448a ChangeLog update 2004-08-07 00:35:48 +00:00
Sara Golemon d1341b1c15 Add A6 support, fix IPv6 address parsing, and improve define compatability 2004-08-06 18:38:35 +00:00
Sara Golemon b48af415cd ZTS Fix 2004-08-06 16:36:00 +00:00
Wez Furlong d0ce6368b1 Avoid possible segfault when using stream_socket_client with bogus flags. 2004-08-06 14:08:17 +00:00
b7b1440330 ChangeLog update 2004-08-06 00:33:59 +00:00
Ilia Alshanetsky ee656c4b32 php_error() -> php_error_docref() 2004-08-05 23:57:51 +00:00
Gabor Hojtsy 15e14aeca5 update documentation credits, mentioning that more contributors are listed in the manual 2004-08-05 16:26:15 +00:00
Antony Dovgal 5a10841059 remove all references to @ thing, as it's not recommended.
always add it to NEWS yourself please (c) Derick =)
2004-08-05 14:15:36 +00:00
Antony Dovgal 22bbf75b5f news entry 2004-08-05 14:13:13 +00:00
Antony Dovgal e63a7d893b change xsl_xsltprocessor_set_parameter() to support parameter->value arrays
add test for it
@Change xsl_xsltprocessor_set_parameter() to support parameter->value arrays (Tony)
2004-08-05 13:31:17 +00:00
Wez Furlong a60a6c5209 Generate a .reg file for the syslog stuff
NB: still need a solution for zts and non-zts on the same machine.
2004-08-05 12:15:17 +00:00
Ilia Alshanetsky b1c45f61ad Eliminate unneeded variable. 2004-08-05 00:44:30 +00:00
91e6402230 ChangeLog update 2004-08-05 00:35:34 +00:00
Marcus Boerger 90e4fd0a0a - Fix bug #29523 (ReflectionParameter::isOptional() is incorrect) 2004-08-04 22:47:56 +00:00
Frank M. Kromann 5c412842d9 Move iconv exports to the iconv extension and make libxml depend on iconv 2004-08-04 16:47:17 +00:00
Frank M. Kromann 3944483cac Move iconv exports to the iconv extension 2004-08-04 16:46:48 +00:00
Zeev Suraski 99e343d250 Update prototypes 2004-08-04 16:41:13 +00:00
Antony Dovgal 58f9ed3a8e nuke unused variable 2004-08-04 14:57:40 +00:00
Zeev Suraski 84e6f8f075 Fix prototypes 2004-08-04 14:41:56 +00:00
Georg Richter 40defd5f2c forgot to remove debug variable :( (Thx to Derick) 2004-08-04 13:15:48 +00:00
Georg Richter b6da3465bc fixed bug #29522 2004-08-04 12:59:26 +00:00
Georg Richter 5caeacc9c3 fixed properties when connect wasn't called 2004-08-04 12:59:09 +00:00
Georg Richter 161b37ffbc fixed bug #29522 2004-08-04 12:28:09 +00:00
46baa28aaf ChangeLog update 2004-08-04 00:34:06 +00:00
Ilia Alshanetsky e7b73ddce7 Fixed argument handling in sun* functions. 2004-08-04 00:28:03 +00:00
Edin Kadribasic a0a046ca09 New libxml2 version for windows build.
Version 2.6.11.
http://ctindustries.net/dom/libxml/
2004-08-03 22:45:36 +00:00
Marcus Boerger ae2d914580 Update 2004-08-03 17:10:40 +00:00
Marcus Boerger 8ff8c8cc49 MFHed 2004-08-03 17:07:40 +00:00
Marcus Boerger c4508c377e Add new test 2004-08-03 16:59:53 +00:00
Marcus Boerger 7bfc91c3a9 - Fixed Bug #29505 get_class_vars() severely broken when used with arrays 2004-08-03 16:59:25 +00:00
Marcus Boerger 546b9b97ca BFN 2004-08-03 16:41:12 +00:00
Wez Furlong 4d39a171ee Even more verbosity... 2004-08-03 12:41:26 +00:00
Wez Furlong f765acea59 Even more verbosity in case of error 2004-08-03 09:44:04 +00:00
Antony Dovgal cc39d06e4e fix typo in mail.c: mail_force_extra_parameters -> mail.force_extra_parameters 2004-08-03 06:25:25 +00:00
Antony Dovgal addc7161b9 fix typo in php.ini: paramAters -> paramEters 2004-08-03 06:19:16 +00:00
Greg Beaver c0fd859688 commit for win32 - binary so line endings are always preserved - this time on HEAD, where it belongs 2004-08-03 04:36:00 +00:00
Frank M. Kromann 2acc314e6f sys/stat.h is includes in php_streams.h no need to do that again. 2004-08-03 04:15:34 +00:00
Wez Furlong 93cdab8b96 Catch exceptions from broken config.w32 files 2004-08-03 01:23:35 +00:00
Wez Furlong bfbd57905e Explicitly check PATH before cygwin for mc.exe, as we want MS message compiler,
not GNU Midnight Commander.
2004-08-03 01:03:32 +00:00
Wez Furlong bb099765a3 Revert the search path tweak; it broke the snap build for ming 2004-08-03 00:58:29 +00:00
Wez Furlong 99639f79b6 Avoid possible exception 2004-08-03 00:47:57 +00:00
a27afba6ff ChangeLog update 2004-08-03 00:34:47 +00:00
Wez Furlong e7aeb7a4c8 A better fix for the VC 2k max literal string limit
(also affects vc7)
2004-08-03 00:02:48 +00:00
Marcus Boerger 70268f05ef - Expand to test number of parameters 2004-08-02 23:10:53 +00:00
Marcus Boerger 84b90d6803 - Add methods to check parameter count 2004-08-02 23:10:29 +00:00
Marcus Boerger 2803965525 Correct test name 2004-08-02 23:00:35 +00:00
Marcus Boerger ef9e7e5d9e Add test 2004-08-02 22:59:58 +00:00
Ilia Alshanetsky cd7dafab7c Allow sqlite_fetch_column_types() to properly handle table names with
spaces in them.
2004-08-02 22:43:40 +00:00
Marcus Boerger a0ff48dbd3 - Change to use memcmp instead of strcmp 2004-08-02 22:41:34 +00:00
Frank M. Kromann 30cad86a8d VC6 hack to avoid CONFIGURE_COMMAND string length over 2048 when building many extensions 2004-08-02 18:48:49 +00:00
Wez Furlong d38f944d1c Better error reporting 2004-08-02 18:02:48 +00:00
Frank M. Kromann 07979b3ce4 Search in PATH before explicit_path. This resolves conflict between Microsoft and cygwin tools with the same name. 2004-08-02 17:54:49 +00:00
Frank M. Kromann 78306b2d1d Fix line endings 2004-08-02 17:45:54 +00:00
Andi Gutmans 57d57237cf - Fix typo 2004-08-02 17:36:45 +00:00
Marcus Boerger dc7cb19993 - Remove all for now
# - the optimization part can be done in apc or compareable products
# - NULL can be reintroduced later when needed
2004-08-02 16:38:09 +00:00
Marcus Boerger 1e6c12c919 MFB Enforce protocol of magic methods/classes 2004-08-02 08:29:59 +00:00
Marcus Boerger 5f0433db83 MFB: Enforce protocol on magic methods/functions 2004-08-02 08:27:57 +00:00
Sascha Schumann 5890197024 fix empty_string issue
Patch submitted by Antony Dovgal <tony2001@phpclub.net>
2004-08-02 08:27:46 +00:00
Sascha Schumann 26cb5355e0 don't read empty files
0 malloc noticed by Antony Dovgal <tony2001@phpclub.net>
2004-08-02 08:27:24 +00:00
Ilia Alshanetsky d746343928 A gentler (performance wise) allocation of buffer for temp variables. 2004-08-02 02:35:01 +00:00
dc2552a3ac ChangeLog update 2004-08-02 00:33:46 +00:00
Wez Furlong d898a7418b More hoops for VC6 2004-08-01 12:32:03 +00:00
Wez Furlong f93193ccff snap this rule in half for vc6 2004-08-01 11:33:58 +00:00
Wez Furlong 2a90ba3642 Juggle deps 2004-08-01 11:19:33 +00:00
2bf08d7d7d ChangeLog update 2004-08-01 00:33:37 +00:00
Wez Furlong 8085f48575 Enable usleep under win32 2004-08-01 00:29:50 +00:00
Wez Furlong 2c9d87c2f6 Fix bug #8314: sane syslog output to the WinNT event log.
Big fat note: if you're building from a .dsp, you need to replicate
the custom build step that uses MC to generate the message catalog

To make use of this fix, you need to register the event source; running "nmake
install" will handle this for you (if you also build the win32std extension
from pecl).

I'll arrange with Phil to have the installer handle this registration too.
2004-07-31 23:59:46 +00:00
Wez Furlong d45d690164 Go with new go-pear infrastructure 2004-07-31 18:59:50 +00:00
Wez Furlong c8c9add3be Un-bork 2004-07-31 18:52:04 +00:00
Wez Furlong 83472de48e Fix some misbehaving pecls (my own included ;-) 2004-07-31 18:46:18 +00:00
Wez Furlong 47e7fef08e Allow win32 stuff to build non-zts.
Fix stream crypto func (again? didn't I already commit that?)
2004-07-31 17:28:27 +00:00
Wez Furlong d4ad4ac370 Allow COM to build under non-zts.
Thanks Frank.
2004-07-31 17:27:03 +00:00
Wez Furlong d0be029908 zts fix... 2004-07-31 16:34:44 +00:00
Wez Furlong ae7285d658 Misc sendto/recvfrom tweaks that have been pending here for a while... 2004-07-31 10:56:55 +00:00
Wez Furlong 05a3fabacb Make sure this is initialized... 2004-07-31 10:49:09 +00:00
Wez Furlong 71078de71a Implement an fstat cache for plain files. 2004-07-31 10:09:25 +00:00
a701436da6 ChangeLog update 2004-07-31 00:34:20 +00:00
Andi Gutmans 79279dce97 - Add globals.c 2004-07-30 22:52:32 +00:00
Frank M. Kromann 62cd02c5a7 Adding missing PHPAPI for non ZTS builds 2004-07-30 22:49:02 +00:00
Andi Gutmans d7c839d54f - More ptr_stack optimizations and cleanups 2004-07-30 21:00:37 +00:00
Andi Gutmans 138ef9a43e - Improve performance by inlining zend_ptr_stack_n_push(). var_args can
usually not be inlined by compilers.
2004-07-30 20:16:40 +00:00
Frank M. Kromann 18896d510d Fix line endings 2004-07-30 16:49:55 +00:00
Edin Kadribasic 60a2ea476b Nuke references to InstallShield 2004-07-30 12:40:35 +00:00
Edin Kadribasic 6b8544ace5 Update for php5 2004-07-30 09:59:26 +00:00
Edin Kadribasic bef5858483 s/php.exe/php-cgi.exe 2004-07-30 09:29:43 +00:00
Ilia Alshanetsky 972940509f Fixed bug #29443 (Sanity check for wbmp detection). 2004-07-30 01:10:41 +00:00
381adeadff ChangeLog update 2004-07-30 00:33:59 +00:00
Edin Kadribasic 5ec7c94a95 Fixed bug #29264. Newer libintl redefines function names so all
PHP gettext function names become prefixed with libintl_
2004-07-29 22:23:23 +00:00
Edin Kadribasic 8a582fa707 Fix compilation on Windows (bug #29340) 2004-07-29 21:09:23 +00:00
Edin Kadribasic 7941b599fc No PECL should be enabled by default 2004-07-29 20:43:00 +00:00
Timm Friebe a75203a278 - Fixed bug #29064 (Exact numeric/decimal/money datatypes lose precision)
- Fixed bug #27843 (sybase_query() triggers (spurious?) notices when
  query is a stored procedure)
- Fixed multiple memory leaks with sybase_unbuffered_query()
- Changed sybase_query() to ignore store_results = false in  buffering
  mode, it would yield unpredictable results
- Fixed sybase_unbuffered_query() when used with store_results = false
- Changed sybase_fetch_object() to ignore second argument when passed
  as NULL
- Made sybase_data_seek() error message more verbose
- Fixed memory leak in shutdown when not all rows where selected in an
  unbuffered query
2004-07-29 19:32:46 +00:00
Marcus Boerger dcf007c6da - Increase performance of *sort() and some internal sort operations.
# This patch increases the performance of small arrays/hashes by up to ~15%
# The performance increase during the performance talk :-)
2004-07-29 19:18:46 +00:00
Sara Golemon d96e7a170c Revert goto opcode 2004-07-29 17:45:31 +00:00
Sara Golemon 37acb31c1a &tmp and label are the same thing, don't free it till we're done with it. 2004-07-29 16:49:59 +00:00
Sara Golemon 8c844fdde3 Plug some memory leaks and promote unknown label to E_ERROR.
If someone tries to jump to a non-existant label execution really
shouldn't try to carry on.
2004-07-29 16:36:00 +00:00
Sara Golemon 5865b3680a Add goto operator by popular request. 2004-07-29 15:23:47 +00:00
Wez Furlong 7b1d95adba Fix my favourite call user func mistake 2004-07-29 14:06:24 +00:00
Wez Furlong ff531cca4d Missing ifdef; thanks Tony 2004-07-29 11:54:12 +00:00
Christian Stocker 274dbb1b75 Remove News entry, which is already in 5.0 2004-07-29 06:40:45 +00:00
Wez Furlong 4da80ed1de Use the correct lengths when building the name -> dispid mapping 2004-07-29 06:19:27 +00:00
Wez Furlong dafda8936b Missing return statement 2004-07-29 03:58:00 +00:00
Wez Furlong cde7423cde Misc. win32 thread safety fixes. 2004-07-29 02:59:44 +00:00
c7f22e5aca ChangeLog update 2004-07-29 00:36:09 +00:00
Ilia Alshanetsky 739696d2d7 Fixed but #29437 (Possible crash inside array_walk_recursive()). 2004-07-29 00:35:07 +00:00
Ilia Alshanetsky 65ae35729d Proper parameter separators for PostgreSQL connection initialization. 2004-07-29 00:18:02 +00:00
Ilia Alshanetsky 45ddc6a5cd Better address availability check. 2004-07-28 23:34:27 +00:00
Wez Furlong f1072c2ae9 Ensure that port numbers get set in the peer/socket name functions.
(duh!)
2004-07-28 23:30:23 +00:00
Ilia Alshanetsky 445daac3ab Fixed possible crash in stream_socket_recvfrom() when length parameter has
a negative value.
2004-07-28 23:21:54 +00:00
Wez Furlong 637c424d64 Fix #29431: crash when parsing an invalid network address 2004-07-28 23:15:25 +00:00
Wez Furlong b1667b579b Fix: ini entries for dl()'d modules now work under ZTS
Side-effect: avoid possible crashes when multiple threads load/unload
modules and mess with the global hash table.
2004-07-28 22:56:01 +00:00
Marcus Boerger b1326c1c24 - Fix problem when inner constructor isn't called from derived constructor
(foound by david)
2004-07-28 22:53:10 +00:00
Marcus Boerger 171d01dfcf - Update examples 2004-07-28 22:52:11 +00:00
Andi Gutmans 7d80f82e70 - Fix MAC OSX to always use native DSO loading 2004-07-28 19:05:40 +00:00
Christian Stocker 5f888422d9 Fix for bug #29409 (Segfault in PHP functions called from XSLT). (by Rob) 2004-07-28 12:40:53 +00:00
Wez Furlong 3d9eeb4538 Move activescript sapi to PECL 2004-07-28 12:35:52 +00:00
Wez Furlong 9a19f065af - Rename ProgID from ActivePHP (tm) to PHPScript (bah)
- Convert line-endings for error messages to CRLF
- Misc other tweaks
2004-07-28 12:32:49 +00:00
Ilia Alshanetsky 89989f4e62 Fixed bug #29342 (strtotime() does not handle empty date string properly). 2004-07-28 01:44:39 +00:00
Marcus Boerger 0b40c1d82b - Trim error messages 2004-07-28 00:51:48 +00:00
Marcus Boerger 7557b388de - Fix shutdown problems 2004-07-28 00:40:01 +00:00
8059173ad3 ChangeLog update 2004-07-28 00:34:08 +00:00
Wez Furlong d5923d9121 equivalent segv/shutdown fix for failed connect 2004-07-28 00:15:19 +00:00
Wez Furlong d6bfe18b20 looks like this approach will give us our exceptions back 2004-07-28 00:10:28 +00:00
Marcus Boerger 23475d4147 - Add missing include 2004-07-28 00:03:44 +00:00
Marcus Boerger af900cb1d0 - Fix SEGV in case ctor failed 2004-07-28 00:01:12 +00:00
Wez Furlong 7d788aeba4 fix possible segv on failed connect 2004-07-27 23:58:19 +00:00
Wez Furlong 20eac88e58 Tidy up a few loose ends.
Override normal php.ini behaviour so that only the launching applications
folder is searched; this avoids picking up a default php.ini with an execution
time limit set.
2004-07-27 22:36:56 +00:00
Wez Furlong a783891e76 that's not my copy of the exception ctor, do don't fiddle its flags. 2004-07-27 22:17:40 +00:00
Wez Furlong aa74430ee0 "better" "fix" for #29392.
This fixes the crash; the sample script:

	$c = new COM('ADODB.Connection');
	echo $c;

still does not work because the engine tries to call $c->__toString() and the
ADODB object *might* implement that method, but doesn't know until you open the
connection.
2004-07-27 22:17:00 +00:00
Rob Richards 4897bbe125 prep for stable release 2004-07-27 21:06:04 +00:00
Ilia Alshanetsky fe50278d0a Fixed bug 29395 (sqlite_escape_string() returns bogus data on empty
strings).

Original Patch by: Tony
2004-07-27 16:40:43 +00:00
Marcus Boerger e9549a4f9c - Be specific about visibility 2004-07-27 16:21:56 +00:00
Ilia Alshanetsky 47bf193c53 Added missing comma. Thanks Tony. 2004-07-27 12:44:25 +00:00
Wez Furlong ac87800760 Major re-jig.
With thanks to Rob Richards for tracking down a couple of big bugs caused by
teeny bits of code.
2004-07-27 03:57:31 +00:00
Wez Furlong 3e327b6e21 protect caller from a potential bailout 2004-07-27 03:44:40 +00:00
Wez Furlong 530d41732d Revert last fix, because it breaks dynamic methods 2004-07-27 02:37:54 +00:00
Wez Furlong 20534bc445 Fix #29392 COM behaved badly for non-existant methods 2004-07-27 01:59:44 +00:00
Wez Furlong 03e298ec47 Fix two possible crashes. Latter is unlikely unless you are doing scary
things, but former looks nasty.
2004-07-27 01:33:25 +00:00
f5ddb60764 ChangeLog update 2004-07-27 00:34:31 +00:00
Ilia Alshanetsky 69a5253284 Fixed bug #29349 (imagecreatefromstring() crashes with external GD library)
Original Patch By: adconrad at debian dot org
2004-07-27 00:27:06 +00:00
Stanislav Malyshev 46455027fc quick fix for #29382 2004-07-26 17:12:17 +00:00
George Schlossnagle c7b7791029 allow pdo to be functionally inherited from. 2004-07-26 07:42:46 +00:00
Georg Richter 485f862b35 fixed bug #29335 2004-07-26 07:19:05 +00:00
Andrey Hristov e64af9a898 proto fix
(thanks to dave%php.net for spotting)
2004-07-26 06:32:54 +00:00
Georg Richter dede51adf6 fixed bug in mysql->client_version
added mysql->client_info property
2004-07-26 05:44:06 +00:00
7223a1bc88 ChangeLog update 2004-07-26 00:32:29 +00:00
Marcus Boerger 806245e185 - Do not autoload classes in skip code 2004-07-25 19:23:17 +00:00
Marcus Boerger 03c19c2b8f - Add new test 2004-07-25 19:21:21 +00:00
Marcus Boerger fd83c1ea41 - Add test 2004-07-25 19:20:47 +00:00
Ilia Alshanetsky 86efab2cc4 Fixed bug #29369 (Uploaded files with ' or " in their names get their names
truncated at those characters).
2004-07-25 19:19:26 +00:00
Marcus Boerger aae7a83df4 - Fixed Bug #29354 Exception constructor marked as both public and
protected
# If the constructor should be protected then it needs to be overwritten
# with a method that simply calls the parent, this function simply changes
# the visibility of the original function and makes that (public+protected)
2004-07-25 18:50:24 +00:00
Marcus Boerger 7e914380c9 - Show visibility errors (try to fix #29354) 2004-07-25 18:20:33 +00:00
Marcus Boerger f5cf052225 - Fix bug #29368 : The destructor is called when an exception is thrown from the constructor 2004-07-25 17:25:44 +00:00
Marcus Boerger ba55871325 - Add new patch for reordered shutdown sequence 2004-07-25 16:12:18 +00:00
Christian Stocker 0936bfa42c renamed registerNamespace() to registerXPathNamespace() 2004-07-25 14:59:21 +00:00
Rob Richards a1c33af793 export php_libxml_error_handler for win32 build 2004-07-25 12:00:28 +00:00
Christian Stocker 0b244def73 added new method SimpleXMLElement->registerNamespace(string prefix, string uri)
"registers a prefix <-> namespaceURI combination for use in a later xpath query. "
2004-07-25 11:02:43 +00:00
Christian Stocker a497e9bf75 use php_error_docref for libxml2 errors 2004-07-25 10:37:27 +00:00
Christian Stocker 6bd845e365 set errorhandler to generic php_libxml_error_handler 2004-07-25 08:37:39 +00:00
Marcus Boerger 0cd2da0309 - Execute destructors earlier (Florian Schaper, fschaper at intux org) 2004-07-25 07:14:49 +00:00
Marcus Boerger 40bf10319b - Add ReflectionParameter::isOptional() to test whether a parameter is
optional and also show this information in export.
2004-07-25 07:06:53 +00:00
Marcus Boerger 2b9c90efd3 - Add optional parameters $filename and $lineno to ErrorException
constructor to allow overwriting automatically retrieved information.
# It may be reasonable to delete the trace in case that feature is used.
2004-07-25 07:05:48 +00:00
b9638a4a50 ChangeLog update 2004-07-25 00:32:53 +00:00
Rob Richards 6b0cc4b54d fix build for VC++ 6
update dsp (Enable IObjectSafety)
2004-07-24 14:07:08 +00:00
Wez Furlong e67ad79599 Enable IObjectSafety so that we can be used in the M$ scripting control.
Thanks to Rob for checking this out.
2004-07-24 13:18:56 +00:00
Andrey Hristov d77a3f92e6 make behavior a bit field 2004-07-24 09:25:52 +00:00
Sara Golemon b0f344e493 Oh by the way, only use proxy mode for reading... 2004-07-24 04:14:26 +00:00
Sara Golemon 93f795bb9e Add proxy support to ftp using http wrapper 2004-07-24 04:01:48 +00:00
49e31e4b0f ChangeLog update 2004-07-24 00:32:58 +00:00
Andi Gutmans d1b29ad4c2 - There's no reason why gettimeofday() shouldn''t return the same time in
successive calls; this test fails spuriously on Linux/x86_64 (which has
a particularly fast gettimeofday() implementation).
- Joe Orton <jorton@redhat>
2004-07-23 21:53:16 +00:00
Georg Richter 8c6ab178e4 fixed bug #29311
added support for Cursors (MySQL 5.0.x)
2004-07-23 12:47:36 +00:00
Marcus Boerger 5ff2111a59 Fix 0 Byte leak after alloca to emalloc change 2004-07-23 07:13:54 +00:00
Edin Kadribasic 67c42a4a9b Updated version number 2004-07-23 02:28:18 +00:00
Ilia Alshanetsky 70d78cf7dd Fixed bug #29333 (output_buffering + trans_sess_id can corrupt output). 2004-07-23 02:05:49 +00:00
b5a926f78d ChangeLog update 2004-07-23 00:36:00 +00:00
Stefan Esser da3d9f8e25 Fix .dsp 2004-07-22 22:42:35 +00:00
Stefan Esser e58e6efd4d Merge changes from GD 2.0.28 2004-07-22 22:38:59 +00:00
Marcus Boerger 170c92dfbe Fix testcase 2004-07-22 18:40:19 +00:00
Rob Richards 950f950ecd add optional name parameter to next()
move to next named sibling skipping subtrees
2004-07-22 15:50:44 +00:00
Wez Furlong bb23e0d7cc news... 2004-07-22 12:15:12 +00:00
Wez Furlong 17adf438a2 Added stream_context_get_default() which returns the default context option.
You may then set options that affect streams operations for the whole script.

Added stream_socket_enable_crypto() which allows you to turn on or off a crypto
layer (eg: SSL/TLS) on stream, if supported by the underlying transport.

Registered a bunch of constants for that.
2004-07-22 12:12:28 +00:00
Zeev Suraski 34b00ca22a Fix bug in handling of protected properties 2004-07-22 11:54:27 +00:00
Zeev Suraski 2682bbd2b0 Fix Windows build 2004-07-22 08:06:52 +00:00
Georg Richter 96c002e07c changed warning (bug #29298) for outdated client library 2004-07-22 07:24:55 +00:00
Sara Golemon f064a2c8b9 This should fix binary safety for bound results or may coogle strike me down. 2004-07-22 03:23:33 +00:00
6789bcfed2 ChangeLog update 2004-07-22 00:34:33 +00:00
Edin Kadribasic 4162f81c88 HEAD is 5.1.0-dev now 2004-07-21 23:02:28 +00:00
Edin Kadribasic 728b849529 Fix for #28929 by Michael Sisolak 2004-07-21 22:52:50 +00:00
Edin Kadribasic d42361630f Fixed build 2004-07-21 22:13:31 +00:00
Ilia Alshanetsky 1c2a22025d Fixed bug #29209 (imap_fetchbody() doesn't check message index).
# Initial Patch by tony2001 at phpclub dot net
2004-07-21 21:57:03 +00:00
Andrey Hristov 5e5d2640fb add array_:
intersect_key()
intersect_ukey()
diff_key()
diff_ukey()
The first two by a patch of Cristiano Duarte. The second two were
implemented in almost the same way except one small difference.
2004-07-21 21:17:56 +00:00
Marcus Boerger 08fa8849b2 - Fixded #29291: get_class_vars() return names with NULLs 2004-07-21 18:36:51 +00:00
Christian Stocker 7b292e2fba Fix for Bug 29010 "make test does not wait to email address" (by Sebastian Nohn) 2004-07-21 11:19:09 +00:00
Sara Golemon dee534efba MDTM added to ftp_url_stat 2004-07-21 04:38:47 +00:00
Sara Golemon e5ed53b00a Add MTDM support to ftp_fopen_wrapper::url_stat() 2004-07-21 04:37:47 +00:00
Sara Golemon f502f56613 Oops, copy/paste typo 2004-07-21 02:39:53 +00:00
Sara Golemon ee93ed0aaa Persistent mallocs can return NULL (on failure) 2004-07-21 02:38:40 +00:00
a03447092d ChangeLog update 2004-07-21 00:34:28 +00:00
Ilia Alshanetsky 633ce3039f Abort earlier on invalid format. 2004-07-21 00:14:48 +00:00
Moriyoshi Koizumi 182e93ab6e - Add safe_pemalloc() 2004-07-20 21:55:57 +00:00
Rob Richards 23d202bd36 prep for alpha release 2004-07-20 20:57:10 +00:00
Moriyoshi Koizumi fbfd50bd1f - Correct range checks.
- Normalize negative values.
2004-07-20 20:08:08 +00:00
Moriyoshi Koizumi e87fe59e96 - Cleanups. 2004-07-20 19:41:37 +00:00
Moriyoshi Koizumi e25a206e87 oops... 2004-07-20 19:35:38 +00:00
Marcus Boerger 514dfbfbed - Need to set handle prior to calling zend_register_module_ex()
(Marcus, Kamesh Jayachandran <kameshj at fastmail dot fm>)
2004-07-20 19:23:55 +00:00
Moriyoshi Koizumi f89486a3a0 - Fix possible leaks / segfaults in persistent filter 2004-07-20 18:46:39 +00:00
Marcus Boerger 446cc107b8 - Fixed bug 28895 again (long live the dead) 2004-07-20 18:22:31 +00:00
Moriyoshi Koizumi c210c68add - Add more null checks. 2004-07-20 18:16:36 +00:00
Moriyoshi Koizumi 3e026f08ae - pemalloc() might return NULL. 2004-07-20 18:03:19 +00:00
Rob Richards 180306cf88 add optional flush paramter to xmlwriter_output_memory 2004-07-20 15:13:53 +00:00
Zeev Suraski 8a153add90 Fix prototypes 2004-07-20 10:43:19 +00:00
Zeev Suraski 7601484612 Add descriptions 2004-07-20 09:24:22 +00:00
Stanislav Malyshev 7bdc6d4bf4 add todo 2004-07-20 08:58:18 +00:00
Dmitry Stogov 31757a6aa8 Fixed incorrect HTTP headers in SOAP response 2004-07-20 07:39:32 +00:00
Sara Golemon f92797f4e0 Add bz2 stream filter support 2004-07-20 05:26:33 +00:00
Sara Golemon fc7197322c Make persistency safe 2004-07-20 05:08:52 +00:00
Ilia Alshanetsky f3f7b6242d Fixed bug #29226 (ctype_* functions missing validation of numeric string
representations).
2004-07-20 01:03:16 +00:00
6b2e7f941a ChangeLog update 2004-07-20 00:33:57 +00:00
Ilia Alshanetsky 0d085b253f Allow pgsql driver to accept login & password as separate parameters like
other PDO drivers can.
2004-07-20 00:33:21 +00:00
Frank M. Kromann 15b6714595 Fix compilation with older versions of libMing. Thanks Markus 2004-07-19 22:23:13 +00:00
Marcus Boerger 1f57188741 Add missing .cvsignore 2004-07-19 21:30:22 +00:00
Frank M. Kromann d889a123db Sync. with the API of libMing 0.3b1 2004-07-19 21:10:10 +00:00
Sebastian Bergmann fb3c30574e Fix prototypes: Reflection_* -> Reflection*. 2004-07-19 19:17:32 +00:00
Sebastian Bergmann 045d395d4a Make ReflectionClass::getMethod() and ReflectionClass::getProperty() raise an ReflectionException instead of returning NULL on failure. 2004-07-19 19:14:10 +00:00
Sebastian Bergmann 32e125e2b8 Do not use contracted forms. 2004-07-19 19:02:11 +00:00
Moriyoshi Koizumi 5ff410efdf - Fix test name 2004-07-19 18:49:20 +00:00
Moriyoshi Koizumi fae637021d - Oops, actual PR # is 29119, not 29199... 2004-07-19 17:51:41 +00:00
Moriyoshi Koizumi 46bc2c5ae2 - Fix bug #29199 (html_entity_decode() misbehaves with UTF-8) 2004-07-19 17:46:30 +00:00
Stanislav Malyshev d84702836a export INI parser 2004-07-19 16:32:24 +00:00
Dmitry Stogov 96fc48b606 Fixed bug #28985 (__getTypes() returning nothing on complex WSDL). 2004-07-19 14:55:35 +00:00
Wez Furlong 86b0967775 fix for empty_string changes.
Don't forget to allocate bytes for NUL terminators
2004-07-19 14:40:46 +00:00
Stanislav Malyshev e000da960b __set and __get will be called not only when variable doesn't exist but also when it's
invisible
2004-07-19 14:26:53 +00:00
Andi Gutmans f17aba3062 - Bump API number due to empty_string change 2004-07-19 14:19:21 +00:00
Dmitry Stogov 71b7a54377 Fixed bugs #29109 and #29236. (WSDL cache failure) 2004-07-19 13:58:10 +00:00
Wez Furlong 8a8b20877c Possible fix for #29258 (unverified)
win32 people, please test (I have no working win32 build env right now)
2004-07-19 13:39:57 +00:00
Dmitry Stogov e0f33c589f Fixed bug #29061 (soap extension segfaults). 2004-07-19 12:53:29 +00:00
Dmitry Stogov e35bc2e2b4 Fixed memory leak (related to new implementation of empty strings) 2004-07-19 11:38:40 +00:00
Wez Furlong 0d002664fb Implement empty-string-to-null conversion option for oracle compat.
This can be enabled using:
	$dbh->setAttribute(PDO_ATTR_ORACLE_NULLS, true);
2004-07-19 09:35:36 +00:00
Moriyoshi Koizumi 967c72865f - Fix a bug in iconv stream filter that prevents pending buckets from being
processed on flush operation (same issue pollita fixed several days ago).
2004-07-19 08:34:18 +00:00
Antony Dovgal cbd5396cbb fix build 2004-07-19 07:35:41 +00:00
Andi Gutmans 56f8195fe5 - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
  STR_FREE() and zval_dtor() always have to check for it and it slows down
  the general case. In addition, it seems that empty_string has been abused
  quite a lot, and was used not only for setting zval's but generally in
  PHP code instead of "", which wasn't the intention. Last but not least,
  nuking empty_string should improve stability as I doubt every place
  correctly checked if they are not mistakenly erealloc()'ing it or
  calling efree() on it.
  NOTE: Some code is probably broken. Each extension maintainer should
  check and see that my changes are OK. Also, I haven't had time to touch
  PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Moriyoshi Koizumi 599ae4b1b5 - Fix VPATH build. (patch by Joe Orton) 2004-07-19 05:07:40 +00:00
Moriyoshi Koizumi 83d2cbd36e - Rename php_compat.h to php_onig_compat.h to avoid name conflict.
(reported by Joe Orton, thanks.)
2004-07-19 05:04:33 +00:00
fa958958c3 ChangeLog update 2004-07-19 00:35:14 +00:00
Ilia Alshanetsky 8840191d91 Fixed bug #28633 (sprintf incorrectly adding padding to floats). 2004-07-18 17:27:49 +00:00
Marcus Boerger 1ea073fb7a Update 2004-07-18 14:04:36 +00:00
Marcus Boerger 8860787ad9 - DOS 2 UNIX 2004-07-18 14:01:54 +00:00
Rob Richards 5c17925a7c add appendXML() to DOMFragment (chregu) 2004-07-18 13:47:44 +00:00
Marcus Boerger a7f36a5825 Update 2004-07-18 13:37:23 +00:00
Wez Furlong a5b697826b not safe for persistent streams 2004-07-18 13:23:40 +00:00
Rob Richards 42ade33fa6 MFB: enable exslt support for win32 builds
WS fixes for exslt tests
2004-07-18 13:23:33 +00:00
Rob Richards 8925d6573e MFB: add missing optional value param to createElementNS (chregu) 2004-07-18 13:16:15 +00:00
Marcus Boerger d19914a2aa remove this entry 2004-07-18 12:08:35 +00:00
Wez Furlong ed682e570a Implement extension load-order deps. 2004-07-18 12:03:51 +00:00
Rob Richards 22b70fcb31 MFB: Fixed bug #29221 (Segfault using DOM ownerDocument in a PHP object) 2004-07-18 11:45:12 +00:00
Andrey Hristov 96f5c697dd Add support for negative values of limit of explode(). If limit is negative
then all components are returned except the last abs(limit) ones.
2004-07-18 11:34:28 +00:00
Sergey Kartashoff 29ba20eea0 - A Bug #29147 was fixed. Thanks to Antony Dovgal <tony2001 at phpclub.net>
for his patch.
2004-07-18 11:18:04 +00:00
Wez Furlong 07a17df386 touch to avoid weird implicit makefile rule 2004-07-18 10:34:12 +00:00
Wez Furlong a0191f0505 don't allocate 0 bytes here either 2004-07-18 09:55:46 +00:00
Wez Furlong af9c0b84cd No point allocating 0 bytes 2004-07-18 09:55:02 +00:00
9f50e40643 ChangeLog update 2004-07-18 00:33:38 +00:00
Moriyoshi Koizumi 2af6d0e1ab - request_dtor() should be called if a fatal error occurs during activation
phase.
2004-07-17 21:29:50 +00:00
Georg Richter 15ef63b39a fixed paraenthesis warning in mysql_stmt_attr_set/get 2004-07-17 10:48:28 +00:00
394a0aea16 ChangeLog update 2004-07-17 00:32:34 +00:00
Sara Golemon b63393dea0 Update windows build files for filter support 2004-07-17 00:21:04 +00:00
Sara Golemon 5289adbe99 Add zlib stream filter support 2004-07-17 00:05:31 +00:00
Sara Golemon d40e78ad6f convert.* filters not consuming buckets_in on PSFS_FLUSH_* 2004-07-16 23:40:21 +00:00
Anantha Kesari H Y d725f3af91 NetWare specific openssl build file 2004-07-16 08:59:24 +00:00
Sebastian Bergmann d1106bb4dc (IMO) Better NEWS entry for true/false/null implementation change. 2004-07-16 07:31:34 +00:00
Marcus Boerger 5c0cd5c47e Correct version 2004-07-16 07:17:51 +00:00
Marcus Boerger 53697aeb0d BFN 2004-07-16 07:16:53 +00:00
Marcus Boerger 86d46f7cc1 - Speed up by making null/false/true reserved word which allows to drop
an opcode (FETCH_CONSTANT) for every usage.
2004-07-16 06:50:57 +00:00
Marcus Boerger 381a3b234f Bugfix #28464 catch() does not catch exceptions by interfaces 2004-07-16 06:39:50 +00:00
Ilia Alshanetsky 6dd2613d7b MFB: Fixed bug #28800 (strings beginning with "inf" improperly converted). 2004-07-16 02:03:25 +00:00
10d903343f ChangeLog update 2004-07-16 00:33:02 +00:00
Andi Gutmans eb2e53be99 - Improve performance of zend_alloc by stopping the size from being a bit
- field.
2004-07-15 22:59:54 +00:00
Zeev Suraski ce6717965e Fix sqlite build 2004-07-15 22:34:45 +00:00
Marcus Boerger 7722837517 - Use ErrorException instead of Exception 2004-07-15 22:22:06 +00:00
Marcus Boerger 1cdf7e66f4 - Add new class ErrorException to encapsulate errors in exceptions 2004-07-15 22:21:36 +00:00
Marcus Boerger 32bdaae133 Apply the fix 2004-07-15 22:17:55 +00:00
2168 changed files with 329766 additions and 63925 deletions

No files matched your search

+10181 -13082
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
+120 -49
View File
@@ -26,11 +26,6 @@ Status legend
== Server APIs ==
-------------------------------------------------------------------------------
EXTENSION: activescript
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
MAINTENANCE: Odd Fixes
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: aolserver
MAINTENANCE: Unknown
@@ -41,14 +36,19 @@ PRIMARY MAINTAINER: Rasmus Lerdorf <rasmus@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: apache2handler / apache2filter
EXTENSION: apache_hooks
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: apache2filter
PRIMARY MAINTAINER: Aaron Bannert <aaron@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: apache_hooks
MAINTENANCE: Unknown
STATUS: Unknown
EXTENSION: apache2handler
PRIMARY MAINTAINER: Aaron Bannert <aaron@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: caudium
MAINTENANCE: Unknown
@@ -63,6 +63,16 @@ MAINTENANCE: Marcus Boerger <helly@php.net>, Edin Kadribasic <edink@php.
STATUS: Working
SINCE: 4.3.0
-------------------------------------------------------------------------------
EXTENSION: continuity
PRIMARY MAINTAINER: Alex Leigh <aleigh@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: date
PRIMARY MAINTAINER: Derick Rethans <derick@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: embed
PRIMARY MAINTAINER: Edin Kadribasic <edink@php.net>
MAINTENANCE: Maintained
@@ -129,12 +139,8 @@ STATUS: Working
SINCE: 4.0.6
COMMENT: DB abstraction for odbc, mysql, pgsql, mssql, fbsql and more, see documentation
-------------------------------------------------------------------------------
EXTENSION: filepro
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: hwapi
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
EXTENSION: fbsql
PRIMARY MAINTAINER: Frank M. Kromann <fmk@swwwing.com>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
@@ -175,6 +181,26 @@ MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: oci8
PRIMARY MAINTAINER: Antony Dovgal <tony2001@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: odbc
PRIMARY MAINTAINER: Daniel R. Kalowsky <kalowsky@php.net>
MAINTENANCE: Maintained
STATUS: Working
COMMENT: Working
-------------------------------------------------------------------------------
EXTENSION: oracle
MAINTENANCE: Orphaned
STATUS: Working
COMMENT: Using the new OCI8 driver is encouraged where possible.
-------------------------------------------------------------------------------
EXTENSION: ovrimos
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: pgsql
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>, Yasuo Ohgaki <yohgaki@php.net>
MAINTENANCE: Maintained
@@ -196,22 +222,6 @@ EXTENSION: sybase_ct
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: oci8
PRIMARY MAINTAINER: Antony Dovgal <tony2001@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: odbc
PRIMARY MAINTAINER: Daniel R. Kalowsky <kalowsky@php.net>
MAINTENANCE: Maintained
STATUS: Working
COMMENT: Working
-------------------------------------------------------------------------------
EXTENSION: oracle
MAINTENANCE: Orphaned
STATUS: Working
COMMENT: Using the new OCI8 driver is encouraged where possible.
-------------------------------------------------------------------------------
== XML extensions ==
@@ -220,15 +230,20 @@ COMMENT: Using the new OCI8 driver is encouraged where possible.
EXTENSION: dom
PRIMARY MAINTAINER: Christian Stocker <chregu@php.net>, Rob Richards <rrichards@php.net>, Marcus Boerger <helly@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: simplexml
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: soap
PRIMARY MAINTAINER: Dmitry Stogov <dmitry@zend.com>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: wddx
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
@@ -247,7 +262,7 @@ STATUS: Experimental
EXTENSION: xsl
PRIMARY MAINTAINER: Christian Stocker <chregu@php.net>, Rob Richards <rrichards@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 5.0
-------------------------------------------------------------------------------
@@ -265,11 +280,6 @@ MAINTENANCE: Odd Fixes
STATUS: Working
SINCE: 4.0.3
-------------------------------------------------------------------------------
EXTENSION: dio
MAINTENANCE: Orphaned
STATUS: Working
SINCE: 4.0.6
-------------------------------------------------------------------------------
EXTENSION: calendar
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
MAINTENANCE: Odd Fixes
@@ -303,11 +313,20 @@ MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.2
-------------------------------------------------------------------------------
EXTENSION: fam
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: fdf
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: filepro
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: ftp
PRIMARY MAINTAINER: Stefan Esser (sesser@php.net)
MAINTENANCE: Maintained
@@ -327,6 +346,11 @@ MAINTENANCE: Unknown
STATUS: Unknown
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: hwapi
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: iconv
PRIMARY MAINTAINER: Moriyoshi Koizumi <moriyoshi@php.net>
MAINTENANCE: Maintained
@@ -337,6 +361,11 @@ PRIMARY MAINTAINER: Chuck Hagenbuch <chuck@horde.org>
MAINTENANCE: Odd Fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ircg
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: ldap
PRIMARY MAINTAINER: Stig Venaas <venaas@php.net>
MAINTENANCE: Maintained
@@ -352,33 +381,63 @@ PRIMARY MAINTAINER: Derick Rethans <derick@derickrethans.nl>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mcve
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: mhash
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mime_magic
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Deprecated
STATUS: Experimental
COMMENT: Use PECL's fileinfo extension instead
-------------------------------------------------------------------------------
EXTENSION: ming
PRIMARY MAINTAINER: Frank M. Kromann
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: mnogosearch
PRIMARY MAINTAINER: Sergey Kartashoff <gluke@mail.ru>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: mono
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: msession
PRIMARY MAINTAINER Mark L. Woodward mlwmohawk@mohawksoft.com
PRIMARY MAINTAINER Mark L. Woodward <mlwmohawk@mohawksoft.com>
MAINTENANCE: Maintained
STATUS: Working/Experimental
COMMENT: Tested on Linux, should work on other UNIX platforms. Backend server code can compile under Windows.
-------------------------------------------------------------------------------
EXTENSION: ncurses
PRIMARY MAINTAINER Ilia Alshanetsky <iliaa@php.net>, Wez Furlong <wez@php.net>, Hartmut Holzgraefe <hholzgra@php.net>, Georg Richter <georg@php.net>
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: openssl
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: pcntl
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: pcre
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: pdf
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: pfpro
PRIMARY MAINTAINER: David Croft <david@infotrek.co.uk>
MAINTENANCE: Maintained
@@ -427,6 +486,12 @@ MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: spl
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 5.0.0
-------------------------------------------------------------------------------
EXTENSION: sysvmsg
MAINTENANCE: Unknown
STATUS: Unknown
@@ -439,16 +504,22 @@ EXTENSION: sysvshm
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: tidy
PRIMARY MAINTAINER: John Coggeshall <john@php.net>, Ilia Alshanetsky <iliaa@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: tokenizer
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: yaz
PRIMARY MAINTAINER: Adam Dickmeiss <adam@indexdata.dk>
MAINTENANCE: Maintained
STATUS: Unknown
SINCE: 4.0.1
-------------------------------------------------------------------------------
EXTENSION: yp
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: zlib
PRIMARY MAINTAINER: Stefan Roehrich <sr@linux.de>
MAINTENANCE: Maintained
+1493 -380
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,6 +1,6 @@
--------------------------------------------------------------------
The PHP License, Version 3.0
Copyright (c) 1999 - 2003 The PHP Group. All rights reserved.
Copyright (c) 1999 - 2005 The PHP Group. All rights reserved.
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
+4 -2
View File
@@ -5,6 +5,8 @@ INSTALL_DATA = $(INSTALL) -m 644
DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
CORE_HEADERS = Zend/ TSRM/ include/ main/ main/streams/ regex/ ext/standard/
INSTALL_HEADERS = $(CORE_HEADERS) $(INSTALL_EXT_HEADERS)
all: $(all_targets)
@echo
@@ -55,7 +57,7 @@ test:
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' $(top_srcdir)/run-tests.php $(TESTS); \
$(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
@@ -69,7 +71,7 @@ clean:
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/libphp5.module buildmk.stamp
egrep define'.*include/php' configure|sed 's/.*>//'|xargs rm -f
$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
find . -name Makefile | xargs rm -f
.PHONY: all clean install distclean test
+771 -508
View File
File diff suppressed because it is too large. Load diff
+28 -28
View File
@@ -29,7 +29,14 @@ Having said that, here are the organizational rules:
5. If you don't know how to do something, ask first!
6. Test your changes before committing them. We mean it. Really.
Currently we have the following branches in use:
HEAD Will become PHP 5.1. This CVS branch is for active development.
PHP_5_0 Is used to release the PHP 5.0.x series. Only minor feature
enhancements may go in here, but please keep that as infrequent as
possible.
PHP_4_3 Is used to release the PHP 4.3.x series. Only bugfixes are permitted
on this branch.
The next few rules are more of a technical nature.
@@ -37,8 +44,11 @@ The next few rules are more of a technical nature.
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. Also see
the note below about automatically updating NEWS in your commit message.
bug fixes, improvements, etc., should go into the NEWS file.
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
modified several unrelated files, commit each group separately and
@@ -58,37 +68,29 @@ The next few rules are more of a technical nature.
The format of the commit messages is pretty simple.
Use a - to start a new item in your commit message.
If a line begins with #, it is taken to be a comment and will not appear
in the ChangeLog. If the line begins with @, it will be redirected to the
NEWS file. Everything else goes into the ChangeLog.
in the ChangeLog. Everything else goes into the ChangeLog.
It is important to note that if your comment or news logline spans multiple
lines, you have to put # or @ at the beginning of _every_ such line. Every
entry in NEWS has to have a name after it, so if you did it with someone's
help, put both your names there. Your name WILL NOT be automatically put
at the end of the NEWS entry - so, please provide it yourself.
lines, you have to put # at the beginning of _every_ such line.
Example. Say you modified two files, datetime.c and string.c. In datetime.c
you added a new format option for date() function, and in string.c you fixed
a memory leak in php_trim(). Don't commit both of these at once. Commit them
Example. Say you modified two files, datetime.c and string.c. In datetime.c you
added a new format option for the date() function, and in string.c you fixed a
memory leak in php_trim(). Don't commit both of these at once. Commit them
separately and try to make sure your commit messages look something like the
following.
For datetime.c:
(PHP date) Added new 'K' format modifier for printing out number of
days until New Year's Eve.
@- Added new 'K' format modifier that will output the number of days
@ until New Year's Eve. (Bob)
- Added new 'K' format modifier to date() for printing out number of days until
New Year's Eve.
For string.c:
(php_trim) Fixed a memory leak resulting from improper use of zval_dtor().
# Man, that thing was leaking all over the place!
@- Fixed memory leak in trim(). (Bob)
- Fixed a memory leak in php_trim() resulting from improper use of zval_dtor().
#- Man, that thing was leaking all over the place!
The lines above marked with @ will go into NEWS file automagically, and the
# lines will be omitted from the ChangeLog. Alternatively, you might want
to modify NEWS file directly and not use the @ lines.
The # lines will be omitted from the ChangeLog automagically.
If you fix some bugs, you should note the bug ID numbers in your
commit message. Bug ID should be prefixed by "#" for easier access to
@@ -96,13 +98,11 @@ bug report when developers are browsing CVS via. LXR or Bonsai.
Example:
Fixed pgsql notice handler double free crash bug. Bug #14016
@ Fixed pgsql notice handler double free crash bug. Bug #14016
Fixed bug #14016 (pgsql notice handler double free crash bug.)
If you don't see your messages in ChangeLog and NEWS right away, don't worry!
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. Don't go adding stuff to NEWS by hand if you already put @
lines in the commit message.
somewhat later.
You can use LXR (http://lxr.php.net/) and Bonsai (http://bonsai.php.net/)
to look at PHP CVS repository in various ways.
+53 -5
View File
@@ -77,20 +77,24 @@
9. get_class() starting PHP 5 returns the name of the class as it was
declared which may lead to problems in older scripts that rely on
the previous behaviour - the class name is lowercased.
the previous behaviour - the class name is lowercased. Expect the
same behaviour from get_parent_class() when applicable.
Example :
<?php
class FooBar {
}
class ExtFooBar extends FooBar{}
$a = new FooBar();
var_dump(get_class($a));
var_dump(get_class($a), get_parent_class($a));
?>
Output (PHP 4):
string(6) "foobar"
string(9) "extfoobar"
Output (PHP 5):
string(6) "FooBar"
string(9) "ExtFooBar"
----------------------------------------------------------------------
Example code that will break :
//....
@@ -101,7 +105,51 @@
//...
}
//...
Possible solution is to search for get_class() in all your scripts and
use strtolower().
Possible solution is to search for get_class() and get_parent_class() in
all your scripts and use strtolower().
10. get_class_methods() returns the names of the methods of a class as they
declared. In PHP4 the names are all lowercased.
Example code :
<?php
class Foo{
function doFoo(){}
function hasFoo(){}
}
var_dump(get_class_methods("Foo"));
?>
Output (PHP4):
array(2) {
[0]=>
string(5) "dofoo"
[1]=>
string(6) "hasfoo"
}
Output (PHP5):
array(2) {
[0]=>
string(5) "doFoo"
[1]=>
string(6) "hasFoo"
}
11. Assignment $this is impossible. Starting PHP 5.0.0 $this has special
meaning in class methods and is recognized by the PHP parser. The latter
will generate a parse error when assignment to $this is found
Example code :
<?php
class Foo {
function assignNew($obj) {
$this = $obj;
}
}
$a = new Foo();
$b = new Foo();
$a->assignNew($b);
echo "I was executed\n";
?>
Output (PHP 4):
I was executed
Output (PHP 5):
PHP Fatal error: Cannot re-assign $this in /tmp/this_ex.php on line 4
-3
View File
@@ -7,9 +7,6 @@ Zend
dimensional arrays.
* Look at replacing c-lib call tolower().
* Make hash API functions work with HASH_OF() to save time.
* Add configure test to determine if dlsym() requires underscore and set
DLSYM_NEEDS_UNDERSCORE accordingly. Perl and zsh have it in configure,
for example. (DONE?)
* Native large number support (probably with GNU GMP)
* Const'ify APIs. Right now, many functions leave parameters untouched,
but don't declare those as const. This makes interaction with other
-7
View File
@@ -1,16 +1,9 @@
Zend Engine
-----------
- Look at making zend_constant value member be a zval* instead of zval. (Andi)
- Add the patch for referring to existing .ini vars in .ini files. (Andrei)
- Implement inheritance rules for type hints. (Marcus)
- Implement true/false/NULL as keywords (apply the patch). (Andi, Marcus)
- Implement typehinting for arrays (apply the patch). (Andi, Marcus)
- Find a keyword for the if-set-or operator (apply the patch). (Marcus, all)
- Fix ZTS destruction (apply the patch). (Marcus)
Build System
------------
- Implement load order of built-in extensions (apply the patch). (Wez)
Standard Library
----------------
+82 -59
View File
@@ -34,9 +34,7 @@ typedef struct {
size_t size;
ts_allocate_ctor ctor;
ts_allocate_dtor dtor;
#ifdef MBO_0
int done;
#endif
} tsrm_resource_type;
@@ -94,12 +92,28 @@ static FILE *tsrm_error_file;
#if defined(PTHREADS)
/* Thread local storage */
static pthread_key_t tls_key;
# define tsrm_tls_set(what) pthread_setspecific(tls_key, (void*)(what))
# define tsrm_tls_get() pthread_getspecific(tls_key)
#elif defined(TSRM_ST)
static int tls_key;
# define tsrm_tls_set(what) st_thread_setspecific(tls_key, (void*)(what))
# define tsrm_tls_get() st_thread_getspecific(tls_key)
#elif defined(TSRM_WIN32)
static DWORD tls_key;
# define tsrm_tls_set(what) TlsSetValue(tls_key, (void*)(what))
# define tsrm_tls_get() TlsGetValue(tls_key)
#elif defined(BETHREADS)
static int32 tls_key;
# define tsrm_tls_set(what) tls_set(tls_key, (void*)(what))
# define tsrm_tls_get() (tsrm_tls_entry*)tls_get(tls_key)
#else
# define tsrm_tls_set(what)
# define tsrm_tls_get() NULL
# warning tsrm_set_interpreter_context is probably broken on this platform
#endif
/* Startup TSRM (call once for the entire process) */
@@ -162,11 +176,9 @@ TSRM_API void tsrm_shutdown(void)
next_p = p->next;
for (j=0; j<p->count; j++) {
if (p->storage[j]) {
#ifdef MBO_0
if (resource_types_table && !resource_types_table[j].done && resource_types_table[j].dtor) {
resource_types_table[j].dtor(p->storage[j], &p->storage);
}
#endif
free(p->storage[j]);
}
}
@@ -226,9 +238,7 @@ TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size;
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor;
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor;
#ifdef MBO_0
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0;
#endif
/* enlarge the arrays for the already active threads */
for (i=0; i<tsrm_tls_table_size; i++) {
@@ -268,26 +278,16 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_
(*thread_resources_ptr)->thread_id = thread_id;
(*thread_resources_ptr)->next = NULL;
#if defined(PTHREADS)
/* Set thread local storage to this new thread resources structure */
pthread_setspecific(tls_key, (void *) *thread_resources_ptr);
#elif defined(TSRM_ST)
st_thread_setspecific(tls_key, (void *) *thread_resources_ptr);
#elif defined(TSRM_WIN32)
TlsSetValue(tls_key, (void *) *thread_resources_ptr);
#elif defined(BETHREADS)
tls_set(tls_key, (void*) *thread_resources_ptr);
#endif
tsrm_tls_set(*thread_resources_ptr);
if (tsrm_new_thread_begin_handler) {
tsrm_new_thread_begin_handler(thread_id, &((*thread_resources_ptr)->storage));
}
for (i=0; i<id_count; i++) {
#if MBO_0
if (resource_types_table[i].done) {
(*thread_resources_ptr)->storage[i] = NULL;
} else
#endif
{
(*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size);
if (resource_types_table[i].ctor) {
@@ -296,11 +296,11 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_
}
}
tsrm_mutex_unlock(tsmm_mutex);
if (tsrm_new_thread_end_handler) {
tsrm_new_thread_end_handler(thread_id, &((*thread_resources_ptr)->storage));
}
tsrm_mutex_unlock(tsmm_mutex);
}
@@ -321,22 +321,13 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
if(tsrm_tls_table) {
#endif
if (!th_id) {
#if defined(PTHREADS)
/* Fast path for looking up the resources for the current
* thread. Its used by just about every call to
* ts_resource_ex(). This avoids the need for a mutex lock
* and our hashtable lookup.
*/
thread_resources = pthread_getspecific(tls_key);
#elif defined(TSRM_ST)
thread_resources = st_thread_getspecific(tls_key);
#elif defined(TSRM_WIN32)
thread_resources = TlsGetValue(tls_key);
#elif defined(BETHREADS)
thread_resources = (tsrm_tls_entry*)tls_get(tls_key);
#else
thread_resources = NULL;
#endif
thread_resources = tsrm_tls_get();
if (thread_resources) {
TSRM_ERROR((TSRM_ERROR_LEVEL_INFO, "Fetching resource id %d for current thread %d", id, (long) thread_resources->thread_id));
/* Read a specific resource from the thread's resources.
@@ -387,6 +378,66 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
#endif
}
/* frees an interpreter context. You are responsible for making sure that
* it is not linked into the TSRM hash, and not marked as the current interpreter */
void tsrm_free_interpreter_context(void *context)
{
tsrm_tls_entry *next, *thread_resources = (tsrm_tls_entry*)context;
int i;
while (thread_resources) {
next = thread_resources->next;
for (i=0; i<thread_resources->count; i++) {
if (resource_types_table[i].dtor) {
resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage);
}
}
for (i=0; i<thread_resources->count; i++) {
free(thread_resources->storage[i]);
}
free(thread_resources->storage);
free(thread_resources);
thread_resources = next;
}
}
void *tsrm_set_interpreter_context(void *new_ctx)
{
tsrm_tls_entry *current;
current = tsrm_tls_get();
/* TODO: unlink current from the global linked list, and replace it
* it with the new context, protected by mutex where/if appropriate */
/* Set thread local storage to this new thread resources structure */
tsrm_tls_set(new_ctx);
/* return old context, so caller can restore it when they're done */
return current;
}
/* allocates a new interpreter context */
void *tsrm_new_interpreter_context(void)
{
tsrm_tls_entry *new_ctx, *current;
THREAD_T thread_id;
thread_id = tsrm_thread_id();
tsrm_mutex_lock(tsmm_mutex);
current = tsrm_tls_get();
new_ctx = malloc(sizeof(*new_ctx));
allocate_new_resource(&new_ctx, thread_id);
/* switch back to the context that was in use prior to our creation
* of the new one */
return tsrm_set_interpreter_context(current);
}
/* frees all resources allocated for the current thread */
void ts_free_thread(void)
@@ -417,11 +468,7 @@ void ts_free_thread(void)
} else {
tsrm_tls_table[hash_value] = thread_resources->next;
}
#if defined(PTHREADS)
pthread_setspecific(tls_key, 0);
#elif defined(TSRM_WIN32)
TlsSetValue(tls_key, 0);
#endif
tsrm_tls_set(0);
free(thread_resources);
break;
}
@@ -437,7 +484,6 @@ void ts_free_thread(void)
/* deallocates all occurrences of a given id */
void ts_free_id(ts_rsrc_id id)
{
#ifdef MBO_0
int i;
int j = TSRM_UNSHUFFLE_RSRC_ID(id);
@@ -466,7 +512,6 @@ void ts_free_id(ts_rsrc_id id)
tsrm_mutex_unlock(tsmm_mutex);
TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully freed resource id %d", id));
#endif
}
@@ -481,13 +526,6 @@ TSRM_API THREAD_T tsrm_thread_id(void)
{
#ifdef TSRM_WIN32
return GetCurrentThreadId();
#elif defined(NETWARE)
/* There seems to be some problem with the LibC call: NXThreadGetId().
* Due to this, the PHPMyAdmin application is abending in PHP calls.
* Used the call, kCurrentThread instead and it works fine.
*/
/* return NXThreadGetId(); */
return kCurrentThread();
#elif defined(GNUPTH)
return pth_self();
#elif defined(PTHREADS)
@@ -508,24 +546,9 @@ TSRM_API THREAD_T tsrm_thread_id(void)
TSRM_API MUTEX_T tsrm_mutex_alloc(void)
{
MUTEX_T mutexp;
#ifdef NETWARE
#ifndef USE_MPK
/* To use the Recursive Mutex Locking of LibC */
long flags = NX_MUTEX_RECURSIVE;
NXHierarchy_t order = 0;
NX_LOCK_INFO_ALLOC (lockInfo, "PHP-TSRM", 0);
#endif
#endif
#ifdef TSRM_WIN32
mutexp = malloc(sizeof(CRITICAL_SECTION));
InitializeCriticalSection(mutexp);
#elif defined(NETWARE)
#ifdef USE_MPK
mutexp = kMutexAlloc((BYTE*)"PHP-TSRM");
#else
mutexp = NXMutexAlloc(flags, order, &lockInfo);
#endif
#elif defined(GNUPTH)
mutexp = (MUTEX_T) malloc(sizeof(*mutexp));
pth_mutex_init(mutexp);
+8 -16
View File
@@ -14,8 +14,8 @@
#define TSRM_H
/* #ifndef WIN32 */
#if !defined(WIN32) && !defined(NETWARE)
# include "tsrm_config.h"
#ifndef WIN32
# include <tsrm_config.h>
#endif
#ifdef WIN32
@@ -42,13 +42,6 @@
# endif
# include <windows.h>
# include <shellapi.h>
#elif defined(NETWARE)
# include <nks/thread.h>
#ifdef USE_MPK
# include <mpklib4php.h>
#else
# include <nks/synch.h>
#endif
#elif defined(GNUPTH)
# include <pth.h>
#elif defined(PTHREADS)
@@ -66,13 +59,6 @@ typedef int ts_rsrc_id;
#ifdef TSRM_WIN32
# define THREAD_T DWORD
# define MUTEX_T CRITICAL_SECTION *
#elif defined(NETWARE)
# define THREAD_T NXThreadId_t
#ifdef USE_MPK
# define MUTEX_T MUTEX
#else
# define MUTEX_T NXMutex_t *
#endif
#elif defined(GNUPTH)
# define THREAD_T pth_t
# define MUTEX_T pth_mutex_t *
@@ -146,6 +132,12 @@ TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
/* these 3 APIs should only be used by people that fully understand the threading model
* used by PHP/Zend and the selected SAPI. */
TSRM_API void *tsrm_new_interpreter_context(void);
TSRM_API void *tsrm_set_interpreter_context(void *new_ctx);
TSRM_API void tsrm_free_interpreter_context(void *context);
#define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1)
#define TSRM_UNSHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)-1)
+1 -1
View File
@@ -1,5 +1,5 @@
AC_DEFUN(AM_SET_LIBTOOL_VARIABLE,[
AC_DEFUN([AM_SET_LIBTOOL_VARIABLE],[
LIBTOOL='$(SHELL) $(top_builddir)/libtool $1'
])
+13 -5
View File
@@ -30,7 +30,7 @@ dnl PTHREADS_FLAGS
dnl
dnl Set some magic defines to achieve POSIX threads conformance
dnl
AC_DEFUN(PTHREADS_FLAGS,[
AC_DEFUN([PTHREADS_FLAGS],[
if test -z "$host_alias" && test -n "$host"; then
host_alias=$host
fi
@@ -65,7 +65,7 @@ dnl PTHREADS_CHECK_COMPILE
dnl
dnl Check whether the current setup can use POSIX threads calls
dnl
AC_DEFUN(PTHREADS_CHECK_COMPILE, [
AC_DEFUN([PTHREADS_CHECK_COMPILE], [
AC_TRY_RUN( [
#include <pthread.h>
#include <stddef.h>
@@ -84,7 +84,15 @@ int main() {
pthreads_working=yes
], [
pthreads_working=no
], pthreads_working=no ) ] )dnl
], [
dnl For cross compiling running this test is of no use. NetWare supports pthreads
pthreads_working=no
case $host_alias in
*netware*)
pthreads_working=yes
esac
]
) ] )dnl
dnl
dnl PTHREADS_CHECK()
dnl
@@ -100,7 +108,7 @@ dnl -pthreads gcc (Solaris)
dnl -qthreaded AIX cc V5
dnl -threads gcc (HP-UX)
dnl
AC_DEFUN(PTHREADS_CHECK,[
AC_DEFUN([PTHREADS_CHECK],[
if test "$beos_threads" = "1"; then
pthreads_working="yes"
@@ -154,7 +162,7 @@ fi
])dnl
dnl
dnl
AC_DEFUN(PTHREADS_ASSIGN_VARS,[
AC_DEFUN([PTHREADS_ASSIGN_VARS],[
if test -n "$ac_cv_pthreads_lib"; then
LIBS="$LIBS -l$ac_cv_pthreads_lib"
fi
+7 -7
View File
@@ -1,6 +1,6 @@
dnl TSRM_CHECK_GCC_ARG(ARG, ACTION-IF-FOUND, ACTION-IF-NOT_FOUND)
AC_DEFUN(TSRM_CHECK_GCC_ARG,[
AC_DEFUN([TSRM_CHECK_GCC_ARG],[
gcc_arg_name=[ac_cv_gcc_arg]translit($1,A-Z-,a-z_)
AC_CACHE_CHECK([whether $CC supports $1], [ac_cv_gcc_arg]translit($1,A-Z-,a-z_), [
echo 'void somefunc() { };' > conftest.c
@@ -21,7 +21,7 @@ AC_DEFUN(TSRM_CHECK_GCC_ARG,[
fi
])
AC_DEFUN(TSRM_BASIC_CHECKS,[
AC_DEFUN([TSRM_BASIC_CHECKS],[
AC_REQUIRE([AC_PROG_CC])dnl
dnl AC_REQUIRE([AM_PROG_CC_STDC])dnl
@@ -33,7 +33,7 @@ AC_CHECK_HEADERS(stdarg.h)
])
AC_DEFUN(TSRM_CHECK_PTH,[
AC_DEFUN([TSRM_CHECK_PTH],[
AC_MSG_CHECKING(for GNU Pth)
PTH_PREFIX="`$1 --prefix`"
@@ -50,7 +50,7 @@ AC_MSG_RESULT(yes - installed in $PTH_PREFIX)
])
AC_DEFUN(TSRM_CHECK_ST,[
AC_DEFUN([TSRM_CHECK_ST],[
if test -r "$1/include/st.h"; then
CPPFLAGS="$CPPFLAGS -I$1/include"
LDFLAGS="$LDFLAGS -L$1/lib"
@@ -70,7 +70,7 @@ AC_DEFUN(TSRM_CHECK_ST,[
sinclude(threads.m4)
sinclude(TSRM/threads.m4)
AC_DEFUN(TSRM_CHECK_PTHREADS,[
AC_DEFUN([TSRM_CHECK_PTHREADS],[
PTHREADS_CHECK
@@ -89,14 +89,14 @@ fi
])
AC_DEFUN(TSRM_THREADS_CHECKS,[
AC_DEFUN([TSRM_THREADS_CHECKS],[
dnl For the thread implementations, we always use --with-*
dnl to maintain consistency
AC_ARG_WITH(tsrm-pth,
[ --with-tsrm-pth[=pth-config]
Use GNU Pth.],[
Use GNU Pth],[
TSRM_PTH=$withval
],[
TSRM_PTH=no
-11
View File
@@ -1,11 +0,0 @@
#ifndef TSRM_CONFIG_NW_H
#define TSRM_CONFIG_NW_H
#define HAVE_UTIME 1
/* Though we have alloca(), this seems to be causing some problem
* with the stack pointer. Hence not using it
*/
/*#define HAVE_ALLOCA 1*/
#endif
+1 -3
View File
@@ -7,10 +7,8 @@
#ifdef TSRM_WIN32
# include "tsrm_config.w32.h"
#elif defined(NETWARE)
# include "tsrm_config.nw.h"
#else
# include "tsrm_config.h"
# include <tsrm_config.h>
# include <sys/param.h>
#endif
+206 -64
View File
@@ -27,6 +27,7 @@
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
#include "tsrm_virtual_cwd.h"
#include "tsrm_strtok_r.h"
@@ -41,11 +42,6 @@
# endif
#endif
#ifdef NETWARE
/*#include "pipe.h"*/
#include "tsrm_nw.h"
#endif
#ifndef HAVE_REALPATH
#define realpath(x,y) strcpy(y,x)
#endif
@@ -60,9 +56,9 @@ MUTEX_T cwd_mutex;
#endif
#ifdef ZTS
static ts_rsrc_id cwd_globals_id;
ts_rsrc_id cwd_globals_id;
#else
static virtual_cwd_globals cwd_globals;
virtual_cwd_globals cwd_globals;
#endif
cwd_state main_cwd_state; /* True global */
@@ -142,15 +138,9 @@ static int php_check_dots(const char *element, int n)
static int php_is_dir_ok(const cwd_state *state)
{
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
struct stat buf;
if (stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode))
#else
struct stat_libc buf;
if (stat(state->cwd, (struct stat*)(&buf)) == 0 && S_ISDIR(buf.st_mode))
#endif
return (0);
return (1);
@@ -158,15 +148,9 @@ static int php_is_dir_ok(const cwd_state *state)
static int php_is_file_ok(const cwd_state *state)
{
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
struct stat buf;
if (stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode))
#else
struct stat_libc buf;
if (stat(state->cwd, (struct stat*)(&buf)) == 0 && S_ISREG(buf.st_mode))
#endif
return (0);
return (1);
@@ -175,11 +159,31 @@ static int php_is_file_ok(const cwd_state *state)
static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
{
CWD_STATE_COPY(&cwd_globals->cwd, &main_cwd_state);
#ifdef REALPATH_CACHE
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));
#endif
}
static void cwd_globals_dtor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
{
CWD_STATE_FREE(&cwd_globals->cwd);
#ifdef REALPATH_CACHE
{
int i;
for (i = 0; i < sizeof(cwd_globals->realpath_cache)/sizeof(cwd_globals->realpath_cache[0]); i++) {
realpath_cache_bucket *p = cwd_globals->realpath_cache[i];
while (p != NULL) {
realpath_cache_bucket *r = p;
p = p->next;
free(r);
}
}
}
#endif
}
static char *tsrm_strndup(const char *s, size_t length)
@@ -287,6 +291,65 @@ CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC)
return buf;
}
#ifdef REALPATH_CACHE
static inline unsigned long realpath_cache_key(const char *path, int path_len)
{
register unsigned long h;
const char *e = path + path_len;
for (h = 2166136261U; path < e; ) {
h *= 16777619;
h ^= *path++;
}
return h;
}
static inline void realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, time_t t TSRMLS_DC)
{
long size = sizeof(realpath_cache_bucket) + path_len + 1 + realpath_len + 1;
if (CWDG(realpath_cache_size) + size <= CWDG(realpath_cache_size_limit)) {
realpath_cache_bucket *bucket = malloc(size);
unsigned long n;
bucket->key = realpath_cache_key(path, path_len);
bucket->path = (char*)bucket + sizeof(realpath_cache_bucket);
memcpy(bucket->path, path, path_len+1);
bucket->path_len = path_len;
bucket->realpath = bucket->path + (path_len + 1);
memcpy(bucket->realpath, realpath, realpath_len+1);
bucket->realpath_len = realpath_len;
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];
CWDG(realpath_cache)[n] = bucket;
CWDG(realpath_cache_size) += size;
}
}
static inline realpath_cache_bucket* realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC)
{
unsigned long key = realpath_cache_key(path, path_len);
unsigned long n = key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n];
while (*bucket != NULL) {
if (CWDG(realpath_cache_ttl) && (*bucket)->expires < t) {
realpath_cache_bucket *r = *bucket;
*bucket = (*bucket)->next;
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
free(r);
} else if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
memcmp(path, (*bucket)->path, path_len) == 0) {
return *bucket;
} else {
*bucket = (*bucket)->next;
}
}
return NULL;
}
#endif
/* Resolve path relatively to state and put the real path into state */
/* returns 0 for ok, 1 for error */
CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath)
@@ -295,7 +358,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
char *ptr, *path_copy;
char *tok = NULL;
int ptr_length;
cwd_state *old_state;
cwd_state old_state;
int ret = 0;
int copy_amount = -1;
char *free_path;
@@ -305,18 +368,65 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#else
char *new_path;
#endif
#ifdef REALPATH_CACHE
char orig_path[MAXPATHLEN];
int orig_path_len;
realpath_cache_bucket *bucket;
time_t t;
TSRMLS_FETCH();
#endif
if (path_length == 0)
return (0);
if (path_length >= MAXPATHLEN)
return (1);
#ifdef REALPATH_CACHE
if (use_realpath && CWDG(realpath_cache_size_limit)) {
if (IS_ABSOLUTE_PATH(path, path_length) || (state->cwd_length < 1)) {
memcpy(orig_path, path, path_length+1);
orig_path_len = path_length;
} else {
orig_path_len = path_length + state->cwd_length + 1;
if (orig_path_len >= MAXPATHLEN) {
return 1;
}
memcpy(orig_path, state->cwd, state->cwd_length);
orig_path[state->cwd_length] = DEFAULT_SLASH;
memcpy(orig_path + state->cwd_length + 1, path, path_length + 1);
}
t = CWDG(realpath_cache_ttl)?time(NULL):0;
if ((bucket = realpath_cache_find(orig_path, orig_path_len, t TSRMLS_CC)) != NULL) {
int len = bucket->realpath_len;
CWD_STATE_COPY(&old_state, state);
state->cwd = (char *) realloc(state->cwd, len+1);
memcpy(state->cwd, bucket->realpath, len+1);
state->cwd_length = len;
if (verify_path && verify_path(state)) {
CWD_STATE_FREE(state);
*state = old_state;
return 1;
} else {
CWD_STATE_FREE(&old_state);
return 0;
}
}
}
#endif
#if !defined(TSRM_WIN32) && !defined(NETWARE)
/* cwd_length can be 0 when getcwd() fails.
* This can happen under solaris when a dir does not have read permissions
* but *does* have execute permissions */
if (IS_ABSOLUTE_PATH(path, path_length) || (state->cwd_length < 1)) {
if (use_realpath && realpath(path, resolved_path)) {
path = resolved_path;
path_length = strlen(path);
if (use_realpath) {
if (realpath(path, resolved_path)) { /* Note: Not threadsafe on older *BSD's */
path = resolved_path;
path_length = strlen(path);
} else {
/* disable for now
return 1; */
}
}
} else { /* Concat current directory with relative path and then run realpath() on it */
char *tmp;
@@ -332,9 +442,19 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
memcpy(ptr, path, path_length);
ptr += path_length;
*ptr = '\0';
if (use_realpath && realpath(tmp, resolved_path)) {
path = resolved_path;
path_length = strlen(path);
if (strlen(tmp) >= MAXPATHLEN) {
free(tmp);
return 1;
}
if (use_realpath) {
if (realpath(tmp, resolved_path)) {
path = resolved_path;
path_length = strlen(path);
} else {
/* disable for now
free(tmp);
return 1; */
}
}
free(tmp);
}
@@ -364,8 +484,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#endif
free_path = path_copy = tsrm_strndup(path, path_length);
old_state = (cwd_state *) malloc(sizeof(cwd_state));
CWD_STATE_COPY(old_state, state);
CWD_STATE_COPY(&old_state, state);
#if VIRTUAL_CWD_DEBUG
fprintf(stderr,"cwd = %s path = %s\n", state->cwd, path);
#endif
@@ -385,7 +504,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
memcpy(state->cwd, path_copy, copy_amount);
path_copy += copy_amount;
} else {
memcpy(state->cwd, old_state->cwd, copy_amount);
memcpy(state->cwd, old_state.cwd, copy_amount);
}
}
state->cwd[copy_amount] = '\0';
@@ -428,8 +547,19 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
#elif defined(NETWARE)
/* If the token is a volume name, it will have colon at the end -- so, no slash before it */
if (ptr[ptr_length-1] != ':') {
/*
Below code keeps appending to state->cwd a File system seperator
cases where this appending should not happen is given below,
a) sys: should just be left as it is
b) sys:system should just be left as it is,
Colon is allowed only in the first token as volume names alone can have the : in their names.
Files and Directories cannot have : in their names
So the check goes like this,
For second token and above simply append the DEFAULT_SLASH to the state->cwd.
For first token check for the existence of :
if it exists don't append the DEFAULT_SLASH to the state->cwd.
*/
if(((state->cwd_length == 0) && (strchr(ptr, ':') == NULL)) || (state->cwd_length > 0)) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
#else
@@ -453,24 +583,28 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
state->cwd_length = path_length;
}
if (verify_path && verify_path(state)) {
CWD_STATE_FREE(state);
*state = *old_state;
ret = 1;
} else {
CWD_STATE_FREE(old_state);
ret = 0;
}
free(old_state);
#ifdef TSRM_WIN32
if (new_path) {
free(new_path);
}
#endif
free(free_path);
#ifdef REALPATH_CACHE
if (use_realpath && CWDG(realpath_cache_size_limit)) {
realpath_cache_add(orig_path, orig_path_len, state->cwd, state->cwd_length, t TSRMLS_CC);
}
#endif
if (verify_path && verify_path(state)) {
CWD_STATE_FREE(state);
*state = old_state;
ret = 1;
} else {
CWD_STATE_FREE(&old_state);
ret = 0;
}
#if VIRTUAL_CWD_DEBUG
fprintf (stderr, "virtual_file_ex() = %s\n",state->cwd);
#endif
@@ -699,7 +833,6 @@ CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC)
return retval;
}
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC)
{
cwd_state new_state;
@@ -713,23 +846,8 @@ CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
#else
CWD_API int virtual_stat(const char *path, struct stat_libc *buf TSRMLS_DC)
{
cwd_state new_state;
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
virtual_file_ex(&new_state, path, NULL, 1);
retval = stat(new_state.cwd, (struct stat*)buf);
CWD_STATE_FREE(&new_state);
return retval;
}
#endif
#if !defined(TSRM_WIN32) && !defined(NETWARE)
#if !defined(TSRM_WIN32)
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC)
{
cwd_state new_state;
@@ -851,13 +969,24 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
{
int command_length;
int dir_length, extra = 0;
char *command_line;
char *ptr;
char *ptr, *dir;
FILE *retval;
command_length = strlen(command);
ptr = command_line = (char *) malloc(command_length + sizeof("cd ; ") + CWDG(cwd).cwd_length+1);
dir_length = CWDG(cwd).cwd_length;
dir = CWDG(cwd).cwd;
while (dir_length > 0) {
if (*dir == '\'') extra+=3;
dir++;
dir_length--;
}
dir_length = CWDG(cwd).cwd_length;
dir = CWDG(cwd).cwd;
ptr = command_line = (char *) malloc(command_length + sizeof("cd '' ; ") + dir_length + extra+1+1);
if (!command_line) {
return NULL;
}
@@ -867,8 +996,21 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
if (CWDG(cwd).cwd_length == 0) {
*ptr++ = DEFAULT_SLASH;
} else {
memcpy(ptr, CWDG(cwd).cwd, CWDG(cwd).cwd_length);
ptr += CWDG(cwd).cwd_length;
*ptr++ = '\'';
while (dir_length > 0) {
switch (*dir) {
case '\'':
*ptr++ = '\'';
*ptr++ = '\\';
*ptr++ = '\'';
/* fall-through */
default:
*ptr++ = *dir;
}
dir++;
dir_length--;
}
*ptr++ = '\'';
}
*ptr++ = ' ';
+29 -8
View File
@@ -70,14 +70,15 @@ typedef unsigned short mode_t;
#include <dirent.h>
#endif
#define DEFAULT_SLASH '/'
#define DEFAULT_SLASH '\\'
#define DEFAULT_DIR_SEPARATOR ';'
#define IS_SLASH(c) ((c) == '/' || (c) == '\\')
#define IS_SLASH_P(c) IS_SLASH(*(c))
#define COPY_WHEN_ABSOLUTE(path) \
(strchr(path, ':') - path + 1) /* Take the volume name which ends with a colon */
/* Colon indicates volume name, either first character should be forward slash or backward slash */
#define IS_ABSOLUTE_PATH(path, len) \
(strchr(path, ':') != NULL) /* Colon indicates volume name */
((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\'))))
#else
#ifdef HAVE_DIRENT_H
@@ -141,12 +142,8 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC);
CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...);
CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC);
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC);
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC);
#else
CWD_API int virtual_stat(const char *path, struct stat_libc *buf TSRMLS_DC);
#endif
#if !defined(TSRM_WIN32) && !defined(NETWARE)
#if !defined(TSRM_WIN32)
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC);
#endif
CWD_API int virtual_unlink(const char *path TSRMLS_DC);
@@ -200,13 +197,37 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group TSRMLS_
CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath);
#define REALPATH_CACHE
#define REALPATH_CACHE_TTL (2*60) /* 2 minutes */
#define REALPATH_CACHE_SIZE 0 /* disabled while php.ini isn't loaded */
#ifdef REALPATH_CACHE
typedef struct _realpath_cache_bucket {
unsigned long key;
char *path;
int path_len;
char *realpath;
int realpath_len;
time_t expires;
struct _realpath_cache_bucket *next;
} realpath_cache_bucket;
#endif
typedef struct _virtual_cwd_globals {
cwd_state cwd;
#ifdef REALPATH_CACHE
long realpath_cache_size;
long realpath_cache_size_limit;
long realpath_cache_ttl;
realpath_cache_bucket *realpath_cache[1024];
#endif
} virtual_cwd_globals;
#ifdef ZTS
extern ts_rsrc_id cwd_globals_id;
# define CWDG(v) TSRMG(cwd_globals_id, virtual_cwd_globals *, v)
#else
extern virtual_cwd_globals cwd_globals;
# define CWDG(v) (cwd_globals.v)
#endif
@@ -229,7 +250,7 @@ typedef struct _virtual_cwd_globals {
#define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path TSRMLS_CC)
#define VCWD_RENAME(oldname, newname) virtual_rename(oldname, newname TSRMLS_CC)
#define VCWD_STAT(path, buff) virtual_stat(path, buff TSRMLS_CC)
#if !defined(TSRM_WIN32) && !defined(NETWARE)
#if !defined(TSRM_WIN32)
#define VCWD_LSTAT(path, buff) virtual_lstat(path, buff TSRMLS_CC)
#endif
#define VCWD_UNLINK(path) virtual_unlink(path TSRMLS_CC)
+3878 -2
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -16,7 +16,8 @@ libZend_la_SOURCES=\
zend_ini.c zend_qsort.c zend_objects.c zend_object_handlers.c \
zend_objects_API.c zend_ts_hash.c zend_stream.c zend_mm.c \
zend_default_classes.c zend_reflection_api.c \
zend_iterators.c zend_interfaces.c zend_exceptions.c
zend_iterators.c zend_interfaces.c zend_exceptions.c \
zend_strtod.c zend_multibyte.c
libZend_la_LDFLAGS =
libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
+1
View File
@@ -0,0 +1 @@
Zend/zend_execute.lo: $(srcdir)/zend_vm_execute.h $(srcdir)/zend_vm_opcodes.h
+107
View File
@@ -0,0 +1,107 @@
ZEND_VM
=======
ZEND_VM architecture allows specializing opcode handlers according to op_type
fields and using different execution methods (call threading, switch threading
and direct threading). As a result ZE2 got more than 20% speedup on raw PHP
code execution (with specialized executor and direct threading execution
method). As in most PHP applications raw execution speed isn't the limiting
factor but system calls and database callls are, your mileage with this patch
will vary.
Most parts of the old zend_execute.c go into zend_vm_def.h. Here you can
find opcode handlers and helpers. The typical opcode handler template looks
like this:
ZEND_VM_HANDLER(<OPCODE-NUMBER>, <OPCODE>, <OP1_TYPES>, <OP2_TYPES>)
{
<HANDLER'S CODE>
}
<OPCODE-NUMBER> is a opcode number (0, 1, ...)
<OPCODE> is an opcode name (ZEN_NOP, ZEND_ADD, :)
<OP1_TYPES> & <OP2_TYPES> are masks for allowed operand op_types. Specializer
will generate code only for defined combination of types. You can use any
combination of the following op_types UNUSED, CONST, VAR, TMP and CV also
you can use ANY mask to disable specialization according operand's op_type.
<HANDLER'S CODE> is a handler's code itself. For most handlers it stills the
same as in old zend_execute.c, but now it uses macros to access opcode operands
and some internal executor data.
You can see the conformity of new macros to old code in the following list:
EXECUTE_DATA
execute_data
ZEND_VM_DISPATCH_TO_HANDLER(<OP>)
return <OP>_helper(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)
ZEND_VM_DISPATCH_TO_HELPER(<NAME>)
return <NAME>(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)
ZEND_VM_DISPATCH_TO_HELPER_EX(<NAME>,<PARAM>,<VAL>)
return <NAME>(<VAL>, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)
ZEND_VM_CONTINUE()
return 0
ZEND_VM_NEXT_OPCODE()
NEXT_OPCODE()
ZEND_VM_SET_OPCODE(<TARGET>
SET_OPCODE(<TARGET>
ZEND_VM_INC_OPCODE()
INC_OPCOD()
ZEND_VM_RETURN_FROM_EXECUTE_LOOP()
RETURN_FROM_EXECUTE_LOOP()
ZEND_VM_C_LABEL(<LABEL>):
<LABEL>:
ZEND_VM_C_GOTO(<LABEL>)
goto <LABEL>
OP<X>_TYPE
opline->op<X>.op_type
GET_OP<X>_ZVAL_PTR(<TYPE>)
get_zval_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
GET_OP<X>_ZVAL_PTR_PTR(<TYPE>)
get_zval_ptr_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
GET_OP<X>_OBJ_ZVAL_PTR(<TYPE>)
get_obj_zval_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
GET_OP<X>_OBJ_ZVAL_PTR_PTR(<TYPE>)
get_obj_zval_ptr_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
IS_OP<X>_TMP_FREE()
IS_TMP_FREE(free_op<X>)
FREE_OP<X>()
FREE_OP(free_op<X>)
FREE_OP<X>_IF_VAR()
FREE_VAR(free_op<X>)
FREE_OP<X>_VAR_PTR()
FREE_VAR_PTR(free_op<X>)
Executor's helpers can be defined without parameters or with one parameter.
This is done with the following constructs:
ZEND_VM_HELPER(<HELPER-NAME>, <OP1_TYPES>, <OP2_TYPES>)
{
<HELPER'S CODE>
}
ZEND_VM_HELPER_EX(<HELPER-NAME>, <OP1_TYPES>, <OP2_TYPES>, <PARAM_SPEC>)
{
<HELPER'S CODE>
}
Executor's code is generated by PHP script zend_vm_gen.php it uses zend_vm_def.h
and zend_vm_execute.skl as input and produces zend_vm_opcodes.h and
zend_vm_execute.h. The first file is a list of opcode definitions. It is
included from zend_compile.h. The second one is an executor code itself. It is
included from zend_execute.c.
zend_vm_gen.php can produce different kind of executors. You can select
different opcode threading model using --with-vm-kind=CALL|SWITCH|GOTO. You can
disable opcode specialization using --without-specializer. You can include or
exclude old executor together with specialized one using --without-old-executor.
At last you can debug executor using original zend_vm_def.h or generated file
zend_vm_execute.h. Debugging with original file requires --with-lines
option. By default ZE2 uses the following command to generate executor:
$ php zend_vm_gen.php --with-vm-kind=CALL
Zend Engine II currently includes two executors during the build process, one
is the specialized version and the other is the old one non-specialized with
function handlers. By default Zend Engine II uses the specialized one but you
can switch to the old executor at runtime by calling zend_vm_use_old_executor().
+42 -1
View File
@@ -545,7 +545,7 @@ Changes in the Zend Engine 2.0
<?php
class Exception {
function __construct(string $message=NULL, int $code=0) {
function __construct(/*string*/ $message=NULL, /*int*/ $code=0) {
if (func_num_args()) {
$this->message = $message;
}
@@ -890,6 +890,47 @@ Changes in the Zend Engine 2.0
the use of all abstract methods declared in the interfaces Iterator
and IteratorAggregate respectively.
* Array overloading
Objects can be used with Array notation when they implement the
interface ArrayAccess. You cannot use such objects in standard
array functions, however you have full control over the array
notation. This allows lazy initialization or read only array.
Note that setting [] results in a call to offsetSet() with
index being NULL. That means that as with standard arrays you
cannot store NULL keys.
Example:
<?php
class ArrayClass implements ArrayAccess {
public $a = array();
function offsetExists($index) {
return array_key_exists($index, $this->a);
}
function offsetGet($index) {
return $this->a[$index];
}
function offsetSet($index, $newval) {
return $this->a[$index] = $newval;
}
function offsetUnset($index) {
unset($this->a[$index]);
}
}
$obj = new ArrayClass;
$obj[0] = 'bla'; // calls offsetSet(0,'bla')
$obj[] = 42; // calls offsetSet(NULL, 42)
$x = $obj[0]; // calls offsetGet(0)
$b = isset($obj[0]); // calls offsetExists(0)
unset($obj[0]); // calls offsetUnset(0)
?>
* __METHOD__
The pseudo constant __METHOD__ shows the current class and method
+27 -19
View File
@@ -7,20 +7,20 @@
CFG=Zend - Win32 Release_inline
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE
!MESSAGE NMAKE /f "Zend.mak".
!MESSAGE
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE
!MESSAGE NMAKE /f "Zend.mak" CFG="Zend - Win32 Release_inline"
!MESSAGE
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE
!MESSAGE "Zend - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "Zend - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE "Zend - Win32 Release_inline" (based on "Win32 (x86) Static Library")
!MESSAGE
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
@@ -95,7 +95,7 @@ LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
!ENDIF
# Begin Target
@@ -135,10 +135,6 @@ SOURCE=.\zend_default_classes.c
# End Source File
# Begin Source File
SOURCE=.\zend_interfaces.c
# End Source File
# Begin Source File
SOURCE=.\zend_dynamic_array.c
# End Source File
# Begin Source File
@@ -179,6 +175,10 @@ SOURCE=.\zend_ini_scanner.c
# End Source File
# Begin Source File
SOURCE=.\zend_interfaces.c
# End Source File
# Begin Source File
SOURCE=".\zend_language_parser.c"
# End Source File
# Begin Source File
@@ -243,6 +243,10 @@ SOURCE=.\zend_stream.c
# End Source File
# Begin Source File
SOURCE=.\zend_strtod.c
# End Source File
# Begin Source File
SOURCE=.\zend_ts_hash.c
# End Source File
# Begin Source File
@@ -291,10 +295,6 @@ SOURCE=.\zend_default_classes.h
# End Source File
# Begin Source File
SOURCE=.\zend_interfaces.h
# End Source File
# Begin Source File
SOURCE=.\zend_dynamic_array.h
# End Source File
# Begin Source File
@@ -351,6 +351,10 @@ SOURCE=.\zend_ini_scanner.h
# End Source File
# Begin Source File
SOURCE=.\zend_interfaces.h
# End Source File
# Begin Source File
SOURCE=.\zend_istdiostream.h
# End Source File
# Begin Source File
@@ -415,6 +419,10 @@ SOURCE=.\zend_stream.h
# End Source File
# Begin Source File
SOURCE=.\zend_strtod.h
# End Source File
# Begin Source File
SOURCE=.\zend_ts_hash.h
# End Source File
# Begin Source File
@@ -449,7 +457,7 @@ BuildCmds= \
!ELSEIF "$(CFG)" == "Zend - Win32 Release_inline"
!ENDIF
!ENDIF
# End Source File
# Begin Source File
@@ -504,7 +512,7 @@ BuildCmds= \
$(BuildCmds)
# End Custom Build
!ENDIF
!ENDIF
# End Source File
# End Group
@@ -533,7 +541,7 @@ InputPath=.\zend_ini_scanner.l
!ELSEIF "$(CFG)" == "Zend - Win32 Release_inline"
!ENDIF
!ENDIF
# End Source File
# Begin Source File
@@ -570,7 +578,7 @@ InputPath=".\zend_language_scanner.l"
# End Custom Build
!ENDIF
!ENDIF
# End Source File
# End Group
+88 -23
View File
@@ -4,22 +4,29 @@ dnl
dnl This file contains Zend specific autoconf functions.
dnl
AC_DEFUN(LIBZEND_BISON_CHECK,[
if test "$YACC" != "bison -y"; then
AC_MSG_WARN(You will need bison if you want to regenerate the Zend parser.)
else
AC_MSG_CHECKING(bison version)
set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /' | tr -d 'a-z'`
if test "${1}" = "1" -a "${2}" -lt "28"; then
AC_MSG_WARN(You will need bison 1.28 if you want to regenerate the Zend parser (found ${1}.${2}).)
fi
AC_MSG_RESULT(${1}.${2} (ok))
fi
AC_DEFUN([LIBZEND_CHECK_INT_TYPE],[
AC_MSG_CHECKING(for $1)
AC_TRY_COMPILE([
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_INTTYPES_H
#include <inttypes.h>
#elif HAVE_STDINT_H
#include <stdint.h>
#endif],
[if (($1 *) 0)
return 0;
if (sizeof ($1))
return 0;
],[
AC_DEFINE_UNQUOTED([HAVE_]translit($1,a-z_-,A-Z__), 1,[Define if $1 type is present. ])
AC_MSG_RESULT(yes)
], AC_MSG_RESULT(no)
)dnl
])
AC_DEFUN(LIBZEND_BASIC_CHECKS,[
AC_DEFUN([LIBZEND_BASIC_CHECKS],[
AC_REQUIRE([AC_PROG_YACC])
AC_REQUIRE([AC_PROG_CC])
@@ -42,6 +49,8 @@ if test "$ac_cv_prog_gcc" = "yes" -a "`uname -s`" = "Rhapsody"; then
fi
AC_CHECK_HEADERS(
inttypes.h \
stdint.h \
limits.h \
malloc.h \
string.h \
@@ -58,12 +67,12 @@ dlfcn.h)
AC_TYPE_SIZE_T
AC_TYPE_SIGNAL
AC_DEFUN(LIBZEND_LIBDL_CHECKS,[
AC_DEFUN([LIBZEND_LIBDL_CHECKS],[
AC_CHECK_LIB(dl, dlopen, [LIBS="-ldl $LIBS"])
AC_CHECK_FUNC(dlopen,[AC_DEFINE(HAVE_LIBDL, 1,[ ])])
])
AC_DEFUN(LIBZEND_DLSYM_CHECK,[
AC_DEFUN([LIBZEND_DLSYM_CHECK],[
dnl
dnl Ugly hack to check if dlsym() requires a leading underscore in symbol name.
dnl
@@ -82,6 +91,10 @@ dnl This is required for QNX and may be some BSD derived systems
AC_CHECK_TYPE( uint, unsigned int )
AC_CHECK_TYPE( ulong, unsigned long )
dnl Check if int32_t and uint32_t are defined
LIBZEND_CHECK_INT_TYPE(int32_t)
LIBZEND_CHECK_INT_TYPE(uint32_t)
dnl Checks for library functions.
AC_FUNC_VPRINTF
AC_FUNC_MEMCMP
@@ -95,7 +108,7 @@ ZEND_FP_EXCEPT
])
AC_DEFUN(LIBZEND_ENABLE_DEBUG,[
AC_DEFUN([LIBZEND_ENABLE_DEBUG],[
AC_ARG_ENABLE(debug,
[ --enable-debug Compile with debugging symbols],[
@@ -106,10 +119,27 @@ AC_ARG_ENABLE(debug,
])
AC_DEFUN(LIBZEND_OTHER_CHECKS,[
AC_DEFUN([LIBZEND_OTHER_CHECKS],[
AC_ARG_WITH(zend-vm,
[ --with-zend-vm=TYPE Set virtual machine dispatch method. Type is
one of "CALL", "SWITCH" or "GOTO" [TYPE=CALL]],[
PHP_ZEND_VM=$withval
],[
PHP_ZEND_VM=CALL
])
AC_ARG_ENABLE(zend-memory-manager,
[ --disable-zend-memory-manager
Disable the Zend memory manager - FOR DEVELOPERS ONLY!!],
[
ZEND_USE_ZEND_ALLOC=$enableval
], [
ZEND_USE_ZEND_ALLOC=yes
])
AC_ARG_ENABLE(maintainer-zts,
[ --enable-maintainer-zts Enable thread safety - for code maintainers only],[
[ --enable-maintainer-zts Enable thread safety - for code maintainers only!!],[
ZEND_MAINTAINER_ZTS=$enableval
],[
ZEND_MAINTAINER_ZTS=no
@@ -117,26 +147,32 @@ AC_ARG_ENABLE(maintainer-zts,
AC_ARG_ENABLE(inline-optimization,
[ --disable-inline-optimization
If building zend_execute.lo fails, try this switch.],[
If building zend_execute.lo fails, try this switch],[
ZEND_INLINE_OPTIMIZATION=$enableval
],[
ZEND_INLINE_OPTIMIZATION=yes
])
AC_ARG_ENABLE(memory-limit,
[ --enable-memory-limit Compile with memory limit support. ], [
[ --enable-memory-limit Compile with memory limit support], [
ZEND_MEMORY_LIMIT=$enableval
],[
ZEND_MEMORY_LIMIT=no
])
AC_ARG_ENABLE(zend-multibyte,
[ --enable-zend-multibyte Compile with zend multibyte support. ], [
[ --enable-zend-multibyte Compile with zend multibyte support], [
ZEND_MULTIBYTE=$enableval
],[
ZEND_MULTIBYTE=no
])
AC_MSG_CHECKING([virtual machine dispatch method])
AC_MSG_RESULT($PHP_ZEND_VM)
AC_MSG_CHECKING(whether to enable the Zend memory manager)
AC_MSG_RESULT($ZEND_USE_ZEND_ALLOC)
AC_MSG_CHECKING(whether to enable thread-safety)
AC_MSG_RESULT($ZEND_MAINTAINER_ZTS)
@@ -152,6 +188,19 @@ AC_MSG_RESULT($ZEND_DEBUG)
AC_MSG_CHECKING(whether to enable Zend multibyte)
AC_MSG_RESULT($ZEND_MULTIBYTE)
case $PHP_ZEND_VM in
SWITCH)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_SWITCH,[virtual machine dispatch method])
;;
GOTO)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_GOTO,[virtual machine dispatch method])
;;
*)
PHP_ZEND_VM=CALL
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_CALL,[virtual machine dispatch method])
;;
esac
if test "$ZEND_DEBUG" = "yes"; then
AC_DEFINE(ZEND_DEBUG,1,[ ])
echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
@@ -167,6 +216,12 @@ fi
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
if test "$ZEND_USE_ZEND_ALLOC" = "yes"; then
AC_DEFINE(USE_ZEND_ALLOC,1,[Use Zend memory manager])
else
AC_DEFINE(USE_ZEND_ALLOC,0,[Use Zend memory manager])
fi
if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
AC_DEFINE(ZTS,1,[ ])
CFLAGS="$CFLAGS -DZTS"
@@ -195,6 +250,13 @@ AC_C_INLINE
AC_SUBST(INLINE_CFLAGS)
AC_MSG_CHECKING(target system is Darwin)
if echo "$target" | grep "darwin" > /dev/null; then
AC_DEFINE([DARWIN], 1, [Define if the target system is darwin])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
dnl test and set the alignment define for ZEND_MM
dnl this also does the logarithmic test for ZEND_MM.
@@ -237,6 +299,9 @@ int main()
LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2`
AC_DEFINE_UNQUOTED(ZEND_MM_ALIGNMENT, $LIBZEND_MM_ALIGN, [ ])
AC_DEFINE_UNQUOTED(ZEND_MM_ALIGNMENT_LOG2, $LIBZEND_MM_ALIGN_LOG2, [ ])
], [], [
dnl cross-compile needs something here
LIBZEND_MM_ALIGN=8
])
AC_MSG_RESULT(done)
@@ -244,7 +309,7 @@ AC_MSG_RESULT(done)
])
AC_DEFUN(LIBZEND_CPLUSPLUS_CHECKS,[
AC_DEFUN([LIBZEND_CPLUSPLUS_CHECKS],[
])
+8
View File
@@ -276,6 +276,10 @@ SOURCE=.\zend_stream.c
# End Source File
# Begin Source File
SOURCE=.\zend_strtod.c
# End Source File
# Begin Source File
SOURCE=.\zend_ts_hash.c
# End Source File
# Begin Source File
@@ -452,6 +456,10 @@ SOURCE=.\zend_stream.h
# End Source File
# Begin Source File
SOURCE=.\zend_strtod.h
# End Source File
# Begin Source File
SOURCE=.\zend_ts_hash.h
# End Source File
# Begin Source File
+11 -4
View File
@@ -23,9 +23,7 @@
#define ZEND_DLEXPORT
#define ZEND_DLIMPORT
#ifndef NETWARE
@TOP@
#endif
#undef uint
#undef ulong
@@ -33,9 +31,7 @@
/* Define if you want to enable memory limit support */
#define MEMORY_LIMIT 0
#ifndef NETWARE
@BOTTOM@
#endif
#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
@@ -47,6 +43,10 @@
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
@@ -65,6 +65,13 @@ int zend_sprintf(char *buffer, const char *format, ...);
#include <math.h>
/* To enable the is_nan, is_infinite and is_finite PHP functions */
#ifdef NETWARE
#define HAVE_ISNAN 1
#define HAVE_ISINF 1
#define HAVE_ISFINITE 1
#endif
#ifndef zend_isnan
#ifdef HAVE_ISNAN
#define zend_isnan(a) isnan(a)
+61 -4
View File
@@ -2,7 +2,37 @@ dnl $Id$
dnl
dnl This file contains local autoconf functions.
AC_DEFUN(ZEND_FP_EXCEPT,[
AC_DEFUN([LIBZEND_BISON_CHECK],[
# we only support certain bison versions
bison_version_list="1.28 1.35 1.75 1.875 2.0"
# for standalone build of Zend Engine
test -z "$SED" && SED=sed
if test "$YACC"; then
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /'|tr -d a-z`
bison_version="${1}.${2}"
php_cv_bison_version=invalid
for bison_check_version in $bison_version_list; do
if test "$bison_version" = "$bison_check_version"; then
php_cv_bison_version="$bison_check_version (ok)"
fi
done
])
else
bison_version=none
fi
case $php_cv_bison_version in
""|invalid[)]
bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
AC_MSG_WARN([$bison_msg])
YACC="exit 0;"
;;
esac
])
AC_DEFUN([ZEND_FP_EXCEPT],[
AC_CACHE_CHECK(whether fp_except is defined, ac_cv_type_fp_except,[
AC_TRY_COMPILE([
#include <floatingpoint.h>
@@ -23,7 +53,7 @@ fp_except x = (fp_except) 0;
dnl
dnl Check for broken sprintf()
dnl
AC_DEFUN(AC_ZEND_BROKEN_SPRINTF,[
AC_DEFUN([AC_ZEND_BROKEN_SPRINTF],[
AC_CACHE_CHECK(whether sprintf is broken, ac_cv_broken_sprintf,[
AC_TRY_RUN([main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }],[
ac_cv_broken_sprintf=no
@@ -41,7 +71,34 @@ AC_DEFUN(AC_ZEND_BROKEN_SPRINTF,[
AC_DEFINE_UNQUOTED(ZEND_BROKEN_SPRINTF, $ac_result, [Whether sprintf is broken])
])
AC_DEFUN(AM_SET_LIBTOOL_VARIABLE,[
LIBTOOL='$(SHELL) $(top_builddir)/libtool $1'
dnl
dnl AC_ZEND_C_BIGENDIAN
dnl Replacement macro for AC_C_BIGENDIAN
dnl
AC_DEFUN([AC_ZEND_C_BIGENDIAN],
[AC_CACHE_CHECK([whether byte ordering is bigendian], ac_cv_c_bigendian_php,
[
ac_cv_c_bigendian_php=unknown
AC_TRY_RUN(
[
int main(void)
{
short one = 1;
char *cp = (char *)&one;
if (*cp == 0) {
return(0);
} else {
return(1);
}
}
], [ac_cv_c_bigendian_php=yes], [ac_cv_c_bigendian_php=no], [ac_cv_c_bigendian_php=unknown])
])
if test $ac_cv_c_bigendian_php = yes; then
AC_DEFINE(WORDS_BIGENDIAN, [], [Define if processor uses big-endian word])
fi
])
AC_DEFUN([AM_SET_LIBTOOL_VARIABLE],[
LIBTOOL='$(SHELL) $(top_builddir)/libtool $1'
])
+412
View File
@@ -0,0 +1,412 @@
<?php
function simple() {
for ($i = 0; $i < 1000000; $i++)
$a++;
for ($thisisalongname = 0; $thisisalongname < 1000000; $thisisalongname++)
$thisisanotherlongname++;
}
/****/
function simplecall() {
for ($i = 0; $i < 1000000; $i++)
strlen("hallo");
}
/****/
function hallo($a) {
}
function simpleucall() {
for ($i = 0; $i < 1000000; $i++)
hallo("hallo");
}
/****/
function simpleudcall() {
for ($i = 0; $i < 1000000; $i++)
hallo2("hallo");
}
function hallo2($a) {
}
/****/
function mandel() {
$w1=50;
$h1=150;
$recen=-.45;
$imcen=0.0;
$r=0.7;
$s=0; $rec=0; $imc=0; $re=0; $im=0; $re2=0; $im2=0;
$x=0; $y=0; $w2=0; $h2=0; $color=0;
$s=2*$r/$w1;
$w2=40;
$h2=12;
for ($y=0 ; $y<=$w1; $y=$y+1) {
$imc=$s*($y-$h2)+$imcen;
for ($x=0 ; $x<=$h1; $x=$x+1) {
$rec=$s*($x-$w2)+$recen;
$re=$rec;
$im=$imc;
$color=1000;
$re2=$re*$re;
$im2=$im*$im;
while( ((($re2+$im2)<1000000) && $color>0)) {
$im=$re*$im*2+$imc;
$re=$re2-$im2+$rec;
$re2=$re*$re;
$im2=$im*$im;
$color=$color-1;
}
if ( $color==0 ) {
print "_";
} else {
print "#";
}
}
print "<br>".$vbCr;
flush();
}
}
/****/
function mandel2() {
$b = " .:,;!/>)|&IH%*#";
//float r, i, z, Z, t, c, C;
for ($y=30; printf("\n"), $C = $y*0.1 - 1.5, $y--;){
for ($x=0; $c = $x*0.04 - 2, $z=0, $Z=0, $x++ < 75;){
for ($r=$c, $i=$C, $k=0; $t = $z*$z - $Z*$Z + $r, $Z = 2*$z*$Z + $i, $z=$t, $k<5000; $k++)
if ($z*$z + $Z*$Z > 500000) break;
echo $b[$k%16];
}
}
}
/****/
function Ack($m, $n){
if($m == 0) return $n+1;
if($n == 0) return Ack($m-1, 1);
return Ack($m - 1, Ack($m, ($n - 1)));
}
function ackermann($n) {
$r = Ack(3,$n);
print "Ack(3,$n): $r\n";
}
/****/
function ary($n) {
for ($i=0; $i<$n; $i++) {
$X[$i] = $i;
}
for ($i=$n-1; $i>=0; $i--) {
$Y[$i] = $X[$i];
}
$last = $n-1;
print "$Y[$last]\n";
}
/****/
function ary2($n) {
for ($i=0; $i<$n;) {
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
}
for ($i=$n-1; $i>=0; $i--) {
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
}
$last = $n-1;
print "$Y[$last]\n";
}
/****/
function ary3($n) {
for ($i=0; $i<$n; $i++) {
$X[$i] = $i + 1;
}
for ($k=0; $k<1000; $k++) {
for ($i=$n-1; $i>=0; $i--) {
$Y[$i] += $X[$i];
}
}
$last = $n-1;
print "$Y[0] $Y[$last]\n";
}
/****/
function fibo_r($n){
return(($n < 2) ? 1 : fibo_r($n - 2) + fibo_r($n - 1));
}
function fibo($n) {
$r = fibo_r($n);
print "$r\n";
}
/****/
function hash($n) {
for ($i = 1; $i <= $n; $i++) {
$X[dechex($i)] = $i;
}
for ($i = $n; $i > 0; $i--) {
if ($X[$i]) { $c++; }
}
print "$c\n";
}
/****/
function hash2($n) {
for ($i = 0; $i < 10000; $i++) {
$hash1["foo_$i"] = $i;
}
for ($i = $n; $i > 0; $i--) {
foreach($hash1 as $key => $value) $hash2[$key] += $value;
}
print "$hash1[foo_1] $hash1[foo_9999] $hash2[foo_1] $hash2[foo_9999]\n";
}
/****/
function gen_random ($n) {
global $LAST;
return( ($n * ($LAST = ($LAST * IA + IC) % IM)) / IM );
}
function heapsort_r($n, &$ra) {
$l = ($n >> 1) + 1;
$ir = $n;
while (1) {
if ($l > 1) {
$rra = $ra[--$l];
} else {
$rra = $ra[$ir];
$ra[$ir] = $ra[1];
if (--$ir == 1) {
$ra[1] = $rra;
return;
}
}
$i = $l;
$j = $l << 1;
while ($j <= $ir) {
if (($j < $ir) && ($ra[$j] < $ra[$j+1])) {
$j++;
}
if ($rra < $ra[$j]) {
$ra[$i] = $ra[$j];
$j += ($i = $j);
} else {
$j = $ir + 1;
}
}
$ra[$i] = $rra;
}
}
function heapsort($N) {
global $LAST;
define("IM", 139968);
define("IA", 3877);
define("IC", 29573);
$LAST = 42;
for ($i=1; $i<=$N; $i++) {
$ary[$i] = gen_random(1);
}
heapsort_r($N, $ary);
printf("%.10f\n", $ary[$N]);
}
/****/
function mkmatrix ($rows, $cols) {
$count = 1;
$mx = array();
for ($i=0; $i<$rows; $i++) {
for ($j=0; $j<$cols; $j++) {
$mx[$i][$j] = $count++;
}
}
return($mx);
}
function mmult ($rows, $cols, $m1, $m2) {
$m3 = array();
for ($i=0; $i<$rows; $i++) {
for ($j=0; $j<$cols; $j++) {
$x = 0;
for ($k=0; $k<$cols; $k++) {
$x += $m1[$i][$k] * $m2[$k][$j];
}
$m3[$i][$j] = $x;
}
}
return($m3);
}
function matrix($n) {
$SIZE = 30;
$m1 = mkmatrix($SIZE, $SIZE);
$m2 = mkmatrix($SIZE, $SIZE);
while ($n--) {
$mm = mmult($SIZE, $SIZE, $m1, $m2);
}
print "{$mm[0][0]} {$mm[2][3]} {$mm[3][2]} {$mm[4][4]}\n";
}
/****/
function nestedloop($n) {
$x = 0;
for ($a=0; $a<$n; $a++)
for ($b=0; $b<$n; $b++)
for ($c=0; $c<$n; $c++)
for ($d=0; $d<$n; $d++)
for ($e=0; $e<$n; $e++)
for ($f=0; $f<$n; $f++)
$x++;
print "$x\n";
}
/****/
function sieve($n) {
$count = 0;
while ($n-- > 0) {
$count = 0;
$flags = range (0,8192);
for ($i=2; $i<8193; $i++) {
if ($flags[$i] > 0) {
for ($k=$i+$i; $k <= 8192; $k+=$i) {
$flags[$k] = 0;
}
$count++;
}
}
}
print "Count: $count\n";
}
/****/
function strcat($n) {
$str = "";
while ($n-- > 0) {
$str .= "hello\n";
}
$len = strlen($str);
print "$len\n";
}
/*****/
function getmicrotime()
{
$t = gettimeofday();
return ($t['sec'] + $t['usec'] / 1000000);
}
function start_test()
{
ob_start();
return getmicrotime();
}
function end_test($start, $name)
{
global $total;
$end = getmicrotime();
ob_end_clean();
$total += $end-$start;
$num = number_format($end-$start,3);
$pad = str_repeat(" ", 24-strlen($name)-strlen($num));
echo $name.$pad.$num."\n";
ob_start();
return getmicrotime();
}
function total()
{
global $total;
$pad = str_repeat("-", 24);
echo $pad."\n";
$num = number_format($total,3);
$pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
echo "Total".$pad.$num."\n";
}
$t0 = $t = start_test();
simple();
$t = end_test($t, "simple");
simplecall();
$t = end_test($t, "simplecall");
simpleucall();
$t = end_test($t, "simpleucall");
simpleudcall();
$t = end_test($t, "simpleudcall");
mandel();
$t = end_test($t, "mandel");
mandel2();
$t = end_test($t, "mandel2");
ackermann(7);
$t = end_test($t, "ackermann(7)");
ary(50000);
$t = end_test($t, "ary(50000)");
ary2(50000);
$t = end_test($t, "ary2(50000)");
ary3(2000);
$t = end_test($t, "ary3(2000)");
fibo(30);
$t = end_test($t, "fibo(30)");
hash(50000);
$t = end_test($t, "hash(50000)");
hash2(50);
$t = end_test($t, "hash2(50)");
heapsort(20000);
$t = end_test($t, "heapsort(20000)");
matrix(20);
$t = end_test($t, "matrix(20)");
nestedloop(12);
$t = end_test($t, "nestedloop(12)");
sieve(30);
$t = end_test($t, "sieve(30)");
strcat(200000);
$t = end_test($t, "strcat(200000)");
total($t0, "Total");
?>
+4
View File
@@ -10,10 +10,14 @@ AC_PROG_CC
AM_PROG_LEX
AM_PROG_CC_STDC
ZEND_VERSION=$VERSION
AC_ZEND_C_BIGENDIAN
dnl We want this one before the checks, so the checks can modify CFLAGS.
test -z "$CFLAGS" && auto_cflags=1
AC_CHECK_SIZEOF(long, 8)
AC_CHECK_SIZEOF(int, 4)
sinclude(Zend.m4)
LIBZEND_BASIC_CHECKS
+19
View File
@@ -0,0 +1,19 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2005 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 |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
*/
/* $Id$ */
+15
View File
@@ -0,0 +1,15 @@
--TEST--
Array type hint
--FILE--
<?php
function foo(array $a) {
echo count($a)."\n";
}
foo(array(1,2,3));
foo(123);
?>
--EXPECTF--
3
Fatal error: Argument 1 must be an array in %sarray_type_hint_001.php on line 2
+1 -1
View File
@@ -39,5 +39,5 @@ echo "Done\n";
2
3
Done
test::destructor
test::__destruct
test::destructor
-40
View File
@@ -18,57 +18,17 @@ for ($i = 0; $i < 8; $i++) {
--EXPECTF--
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
+12 -4
View File
@@ -11,11 +11,19 @@ class array_iterator implements IteratorAggregate {
$obj = new array_iterator;
foreach ($obj as $property => $value) {
var_dump($value);
try
{
foreach ($obj as $property => $value)
{
var_dump($value);
}
}
catch(Exception $e)
{
echo $e->getMessage() . "\n";
}
?>
===DONE===
--EXPECTF--
Warning: Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator in %sbug26229.php on line %d
===DONE===
Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator
===DONE===
-13
View File
@@ -1,13 +0,0 @@
--TEST--
Bug #27145 (Errors messages print unmangled PPP property names)
--FILE--
<?php
class a {
protected static $v = "aa";
}
class b extends a {
protected static $v = "bb";
}
?>
--EXPECTF--
Fatal error: Cannot redeclare property static protected a::$v in class b in %s on line %d
+23
View File
@@ -0,0 +1,23 @@
--TEST--
Bug #27304
--FILE--
<?php
class Staticexample
{
static function test()
{
var_dump(isset($this));
}
}
$b = new Staticexample();
Staticexample::test();
$b->test();
?>
===DONE===
--EXPECT--
bool(false)
bool(false)
===DONE===
+12
View File
@@ -0,0 +1,12 @@
--TEST--
Bug #27598 (list() array key assignment causes HUGE memory leak)
--FILE--
<?php
list($out[0]) = array(1);
var_dump($out);
?>
--EXPECT--
array(1) {
[0]=>
int(1)
}
+2
View File
@@ -2,6 +2,8 @@
Bug #27641 (zend.ze1_compatibility_mode = On causes object properties to be misreported)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--INI--
error_reporting=4095
--FILE--
<?php
class A {
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
--FILE--
<?php
error_reporting(E_ALL & !E_STRICT);
class A {
function hello() {
echo "Hello World\n";
}
}
$y[0] = 'hello';
A::$y[0]();
?>
===DONE===
--EXPECTF--
Hello World
===DONE===
+72
View File
@@ -0,0 +1,72 @@
--TEST--
Bug #27798 (private / protected variables not exposed by get_object_vars() inside class)
--FILE--
<?php
class Base
{
public $Foo = 1;
protected $Bar = 2;
private $Baz = 3;
function __construct()
{
echo __METHOD__ . "\n";
var_dump(get_object_vars($this));
}
}
class Child extends Base
{
private $Baz = 4;
function __construct()
{
parent::__construct();
echo __METHOD__ . "\n";
var_dump(get_object_vars($this));
}
}
var_dump(get_object_vars(new Base));
var_dump(get_object_vars(new Child));
?>
===DONE===
--EXPECT--
Base::__construct
array(3) {
["Foo"]=>
int(1)
["Bar"]=>
int(2)
["Baz"]=>
int(3)
}
array(1) {
["Foo"]=>
int(1)
}
Base::__construct
array(3) {
["Baz"]=>
int(4)
["Foo"]=>
int(1)
["Bar"]=>
int(2)
}
Child::__construct
array(3) {
["Baz"]=>
int(4)
["Foo"]=>
int(1)
["Bar"]=>
int(2)
}
array(1) {
["Foo"]=>
int(1)
}
===DONE===
+65
View File
@@ -0,0 +1,65 @@
--TEST--
Bug #28442 (Changing a static variables in a class changes it across sub/super classes.)
--FILE--
<?php
class ClassA
{
static $prop;
}
class ClassB extends ClassA
{
static $prop;
}
class ClassC extends ClassB
{
}
echo "===INIT===\n";
ClassA::$prop = 'A';
ClassB::$prop = 'B';
ClassC::$prop = 'C';
var_dump(ClassA::$prop);
var_dump(ClassB::$prop);
var_dump(ClassC::$prop);
echo "===SetA===\n";
ClassA::$prop = 'A2';
var_dump(ClassA::$prop);
var_dump(ClassB::$prop);
var_dump(ClassC::$prop);
echo "===SetB===\n";
ClassB::$prop = 'B2';
var_dump(ClassA::$prop);
var_dump(ClassB::$prop);
var_dump(ClassC::$prop);
echo "===SetC===\n";
ClassC::$prop = 'C2';
var_dump(ClassA::$prop);
var_dump(ClassB::$prop);
var_dump(ClassC::$prop);
?>
===DONE===
--EXPECTF--
===INIT===
string(1) "A"
string(1) "C"
string(1) "C"
===SetA===
string(2) "A2"
string(1) "C"
string(1) "C"
===SetB===
string(2) "A2"
string(2) "B2"
string(2) "B2"
===SetC===
string(2) "A2"
string(2) "C2"
string(2) "C2"
===DONE===
+74
View File
@@ -0,0 +1,74 @@
--TEST--
Bug #28444 (Cannot access undefined property for object with overloaded property access)
--FILE--
<?php
class Object
{
public $x;
function __construct($x)
{
$this->x = $x;
}
}
class Overloaded
{
public $props = array();
public $x;
function __construct($x)
{
$this->x = new Object($x);
}
function __get($prop)
{
echo __METHOD__ . "($prop)\n";
return $this->props[$prop];
}
function __set($prop, $val)
{
echo __METHOD__ . "($prop,$val)\n";
$this->props[$prop] = $val;
}
}
$y = new Overloaded(2);
var_dump($y->x);
var_dump($y->x->x);
var_dump($y->x->x = 3);
var_dump($y->y = 3);
var_dump($y->y);
var_dump($y->z = new Object(4));
var_dump($y->z->x);
$t = $y->z;
var_dump($t->x = 5);
var_dump($y->z->x = 6);
?>
===DONE===
--EXPECTF--
object(Object)#%d (1) {
["x"]=>
int(2)
}
int(2)
int(3)
Overloaded::__set(y,3)
int(3)
Overloaded::__get(y)
int(3)
Overloaded::__set(z,Object id #3)
object(Object)#%d (1) {
["x"]=>
int(4)
}
Overloaded::__get(z)
int(4)
Overloaded::__get(z)
int(5)
Overloaded::__get(z)
int(6)
===DONE===
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others)
--FILE--
<?php
$a = new stdClass();
$x = "";
$a->$x = "string('')";
var_dump($a);
?>
--EXPECTF--
Fatal error: Cannot access empty property in %sbug29015.php on line 4
+27
View File
@@ -0,0 +1,27 @@
--TEST--
Bug #29104 Function declaration in method doesn't work
--FILE--
<?php
class A
{
function g()
{
echo "function g - begin\n";
function f()
{
echo "function f\n";
}
echo "function g - end\n";
}
}
$a = new A;
$a->g();
f();
?>
--EXPECT--
function g - begin
function g - end
function f
+104
View File
@@ -0,0 +1,104 @@
--TEST--
Bug #29210 Function: is_callable - no support for private and protected classes
--FILE--
<?php
class test_class {
private function test_func1() {
echo "test_func1\n";
}
protected function test_func2() {
echo "test_func2\n";
}
static private function test_func3() {
echo "test_func3\n";
}
static protected function test_func4() {
echo "test_func4\n";
}
function test() {
if (is_callable(array($this,'test_func1'))) {
$this->test_func1();
} else {
echo "test_func1 isn't callable from inside\n";
}
if (is_callable(array($this,'test_func2'))) {
$this->test_func2();
} else {
echo "test_func2 isn't callable from inside\n";
}
if (is_callable(array('test_class','test_func3'))) {
test_class::test_func3();
} else {
echo "test_func3 isn't callable from inside\n";
}
if (is_callable(array('test_class','test_func4'))) {
test_class::test_func4();
} else {
echo "test_func4 isn't callable from inside\n";
}
}
}
class foo extends test_class {
function test() {
if (is_callable(array($this,'test_func1'))) {
$this->test_func1();
} else {
echo "test_func1 isn't callable from child\n";
}
if (is_callable(array($this,'test_func2'))) {
$this->test_func2();
} else {
echo "test_func2 isn't callable from child\n";
}
if (is_callable(array('test_class','test_func3'))) {
test_class::test_func3();
} else {
echo "test_func3 isn't callable from child\n";
}
if (is_callable(array('test_class','test_func4'))) {
test_class::test_func4();
} else {
echo "test_func4 isn't callable from child\n";
}
}
}
$object = new test_class;
$object->test();
if (is_callable(array($object,'test_func1'))) {
$object->test_func1();
} else {
echo "test_func1 isn't callable from outside\n";
}
if (is_callable(array($object,'test_func2'))) {
$object->test_func2();
} else {
echo "test_func2 isn't callable from outside\n";
}
if (is_callable(array('test_class','test_func3'))) {
test_class::test_func3();
} else {
echo "test_func3 isn't callable from outside\n";
}
if (is_callable(array('test_class','test_func4'))) {
test_class::test_func4();
} else {
echo "test_func4 isn't callable from outside\n";
}
$object = new foo();
$object->test();
?>
--EXPECT--
test_func1
test_func2
test_func3
test_func4
test_func1 isn't callable from outside
test_func2 isn't callable from outside
test_func3 isn't callable from outside
test_func4 isn't callable from outside
test_func1 isn't callable from child
test_func2
test_func3 isn't callable from child
test_func4
+34
View File
@@ -0,0 +1,34 @@
--TEST--
Bug #29368 (The destructor is called when an exception is thrown from the constructor)
--FILE--
<?php
class Foo
{
function __construct()
{
echo __METHOD__ . "\n";
throw new Exception;
}
function __destruct()
{
echo __METHOD__ . "\n";
}
}
try
{
$bar = new Foo;
} catch(Exception $exc)
{
echo "Caught exception!\n";
}
unset($bar);
?>
===DONE===
--EXPECTF--
Foo::__construct
Caught exception!
===DONE===
+31
View File
@@ -0,0 +1,31 @@
--TEST--
Bug #29505 (get_class_vars() severely broken when used with arrays)
--FILE--
<?php
class Test {
public $empty = array();
public $three = array(1, "b"=>"c", 3=>array());
}
var_dump(get_class_vars('Test'));
?>
===DONE===
--EXPECT--
array(2) {
["empty"]=>
array(0) {
}
["three"]=>
array(3) {
[0]=>
int(1)
["b"]=>
string(1) "c"
[3]=>
array(0) {
}
}
}
===DONE===
+41
View File
@@ -0,0 +1,41 @@
--TEST--
Bug #29674 (inherited method doesn't have access to private variables of the derived class)
--FILE--
<?php
class BaseClass
{
private $private_base = "Base";
function printVars ()
{
var_dump($this->private_base);
var_dump($this->private_child);
}
}
class ChildClass extends BaseClass
{
private $private_child = "Child";
}
echo "===BASE===\n";
$obj = new BaseClass;
$obj->printVars();
echo "===CHILD===\n";
$obj = new ChildClass;
$obj->printVars();
?>
===DONE===
--EXPECTF--
===BASE===
string(4) "Base"
Notice: Undefined property: BaseClass::$private_child in %sbug29674.php on line %d
NULL
===CHILD===
string(4) "Base"
Fatal error: Cannot access private property ChildClass::$private_child in %sbug29674.php on line %d
+62
View File
@@ -0,0 +1,62 @@
--TEST--
Bug #29689 (default value of protected member overrides default value of private)
--FILE--
<?php
class foo {
private $foo = 'foo';
private $foo2 = 'foo2';
function printFoo()
{
echo __CLASS__, ': ', $this->foo, " ", $this->foo2, "\n";
}
}
class bar extends foo {
protected $foo = 'bar';
function printFoo()
{
parent::printFoo();
echo __CLASS__, ': ', $this->foo, " ", $this->foo2, "\n";
}
}
class baz extends bar {
protected $foo = 'baz';
protected $foo2 = 'baz2';
}
class bar2 extends foo {
function printFoo()
{
parent::printFoo();
echo __CLASS__, ': ', $this->foo, " ", $this->foo2, "\n";
}
}
class baz2 extends bar2 {
protected $foo = 'baz2';
protected $foo2 = 'baz22';
}
$bar = new bar;
$bar->printFoo();
echo "---baz--\n";
$baz = new baz();
$baz->printFoo();
echo "---baz2--\n";
$baz = new baz2();
$baz->printFoo();
?>
--EXPECTF--
foo: foo foo2
bar: bar
Notice: Undefined property: bar::$foo2 in %s on line %d
---baz--
foo: foo foo2
bar: baz baz2
---baz2--
foo: foo foo2
bar2: baz2 baz22
+13
View File
@@ -0,0 +1,13 @@
--TEST--
Bug #29883 (isset gives invalid values on strings)
--FILE--
<?php
$x = "bug";
var_dump(isset($x[-1]));
var_dump(isset($x["1"]));
echo $x["1"]."\n";
?>
--EXPECT--
bool(false)
bool(true)
u
+23
View File
@@ -0,0 +1,23 @@
--TEST--
Bug #29890 (crash if error handler fails)
--FILE--
<?php
function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine,&$fClass) {
echo "error :".$fErrStr."\n";
}
set_time_limit(5);
error_reporting(E_ALL);
set_error_handler("customErrorHandler");
define("TEST",2);
//should return a notice that the constant is already defined
define("TEST",3);
?>
--EXPECT--
error :Constant TEST already defined
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #29896 (Backtrace argument list out of sync)
--FILE--
<?php
function userErrorHandler($num, $msg, $file, $line, $vars)
{
debug_print_backtrace();
}
$OldErrorHandler = set_error_handler("userErrorHandler");
function GenerateError1($A1)
{
$a = $b;
}
function GenerateError2($A1)
{
GenerateError1("Test1");
}
GenerateError2("Test2");
?>
--EXPECTF--
#0 userErrorHandler(8, Undefined variable: b, %sbug29896.php, 11, Array ([A1] => Test1)) called at [%sbug29896.php:11]
#1 GenerateError1(Test1) called at [%sbug29896.php:16]
#2 GenerateError2(Test2) called at [%sbug29896.php:19]
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #29944 (Function defined in switch, crashes)
--FILE--
<?php
$a = 1;
switch ($a) {
case 1:
function foo($a) {
return "ok\n";
}
echo foo($a);
}
?>
--EXPECT--
ok
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #30080 (Passing array or non array of objects)
--FILE--
<?php
class foo {
function foo($arrayobj) {
var_dump($arrayobj);
}
}
new foo(array(new stdClass));
?>
--EXPECT--
array(1) {
[0]=>
object(stdClass)#2 (0) {
}
}
+30
View File
@@ -0,0 +1,30 @@
--TEST--
Bug #30140 (Problem with array in static properties)
--FILE--
<?php
class A {
public static $test1 = true;
public static $test2 = array();
public static $test3 = "str";
}
class B extends A {
}
A::$test1 = "x";
A::$test2 = "y";
A::$test3 = "z";
var_dump(A::$test1);
var_dump(A::$test2);
var_dump(A::$test3);
var_dump(B::$test1);
var_dump(B::$test2);
var_dump(B::$test3);
?>
--EXPECT--
string(1) "x"
string(1) "y"
string(1) "z"
string(1) "x"
string(1) "y"
string(1) "z"
+34
View File
@@ -0,0 +1,34 @@
--TEST--
Bug #30161 (Segmentation fault with exceptions)
--FILE--
<?php
class FIIFO {
public function __construct() {
throw new Exception;
}
}
class hariCow extends FIIFO {
public function __construct() {
try {
parent::__construct();
} catch(Exception $e) {
}
}
public function __toString() {
return "ok\n";
}
}
$db = new hariCow;
echo $db;
?>
--EXPECT--
ok
+52
View File
@@ -0,0 +1,52 @@
--TEST--
Bug #30162 (Catching exception in constructor couses lose of $this)
--FILE--
<?php
class FIIFO {
public function __construct() {
$this->x = "x";
throw new Exception;
}
}
class hariCow extends FIIFO {
public function __construct() {
try {
parent::__construct();
} catch(Exception $e) {
}
$this->y = "y";
try {
$this->z = new FIIFO;
} catch(Exception $e) {
}
}
public function __toString() {
return "Rusticus in asino sedet.";
}
}
try {
$db = new FIIFO();
} catch(Exception $e) {
}
var_dump($db);
$db = new hariCow;
var_dump($db);
?>
--EXPECTF--
Notice: Undefined variable: db in %sbug30162.php on line 35
NULL
object(hariCow)#1 (2) {
["x"]=>
string(1) "x"
["y"]=>
string(1) "y"
}
+40
View File
@@ -0,0 +1,40 @@
--TEST--
Bug #30332 (zend.ze1_compatibility_mode isnt fully compatable with array_push())
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
class x { };
$first = new x;
$second = $first;
$container = array();
array_push($container, $first);
$first->first = " im in the first";
print_r($first);
print_r($second);
print_r($container);
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'x' because of 'zend.ze1_compatibility_mode' in %sbug30332.php on line 4
Strict Standards: Implicit cloning object of class 'x' because of 'zend.ze1_compatibility_mode' in %sbug30332.php on line 5
Strict Standards: Implicit cloning object of class 'x' because of 'zend.ze1_compatibility_mode' in %sbug30332.php on line 7
x Object
(
[first] => im in the first
)
x Object
(
)
Array
(
[0] => x Object
(
)
)
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug 30346 (arrayAcces & using $this)
--FILE--
<?php
class Test implements ArrayAccess
{
public function __construct() { }
public function offsetExists( $offset ) { return false; }
public function offsetGet( $offset ) { return $offset; }
public function offsetSet( $offset, $data ) { }
public function offsetUnset( $offset ) { }
}
$post = new Test;
$id = 'page';
echo $post[$id.'_show'];
echo "\n";
?>
===DONE===
--EXPECT--
page_show
===DONE===
+30
View File
@@ -0,0 +1,30 @@
--TEST--
Bug #30394 (Assignment operators yield wrong result with __get/__set)
--FILE--
<?php
class Container
{
public function __get( $what )
{
return $this->_p[ $what ];
}
public function __set( $what, $value )
{
$this->_p[ $what ] = $value;
}
private $_p = array();
}
$c = new Container();
$c->a = 1;
$c->a += 1;
print $c->a; // --> 2
print " - ";
$c->a += max( 0, 1 );
print $c->a; // --> 4 (!)
?>
--EXPECT--
2 - 3
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #30407 (Strange behaviour of default arguments)
--FILE--
<?php
function haricow($a = 'one') {
var_dump($a);
$a = 'two';
}
haricow();
haricow();
?>
===DONE===
--EXPECT--
string(3) "one"
string(3) "one"
===DONE===
+36
View File
@@ -0,0 +1,36 @@
--TEST--
Bug #30451 (static properties permissions broken)
--FILE--
<?php
class A {
protected static $property = TRUE;
protected static function method() {
return TRUE;
}
}
class B extends A {
public function __construct() {
var_dump(self::method());
var_dump(parent::method());
var_dump(self::$property);
var_dump(parent::$property);
}
}
new B;
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
+39
View File
@@ -0,0 +1,39 @@
--TEST--
Bug #30702 cannot initialize class variable from class constant
--FILE--
<?php
class foo {
const C1=1;
}
class bar extends foo {
const C2=2;
public $c1=bar::C1;
public $c2=bar::C2;
public $c3=self::C1;
public $c4=self::C2;
public $c5=foo::C1;
public $c6=parent::C1;
}
$x= new bar();
var_dump($x);
?>
--EXPECT--
object(bar)#1 (6) {
["c1"]=>
int(1)
["c2"]=>
int(2)
["c3"]=>
int(1)
["c4"]=>
int(2)
["c5"]=>
int(1)
["c6"]=>
int(1)
}
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #30707 (Segmentation fault on exception in method)
--FILE--
<?php
class C {
function byePHP($plop) {
echo "ok\n";
}
function plip() {
try {
$this->plap($this->plop());
} catch(Exception $e) {
}
}
function plap($a) {
}
function plop() {
throw new Exception;
}
}
$x = new C;
$x->byePHP($x->plip());
?>
--EXPECT--
ok
+32
View File
@@ -0,0 +1,32 @@
--TEST--
Bug #30725 (PHP segfaults when an exception is thrown in getIterator() within foreach)
--FILE--
<?php
class Test implements IteratorAggregate
{
function getIterator()
{
throw new Exception();
}
}
try
{
$it = new Test;
foreach($it as $v)
{
echo "Fail\n";
}
echo "Wrong\n";
}
catch(Exception $e)
{
echo "Caught\n";
}
?>
===DONE===
--EXPECT--
Caught
===DONE===
+23
View File
@@ -0,0 +1,23 @@
--TEST--
Bug #30791 magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded
--FILE--
<?php
class a {
public $a = 4;
function __call($a,$b) {
return "unknown method";
}
}
$b = new a;
echo $b,"\n";
$c = unserialize(serialize($b));
echo $c,"\n";
var_dump($c);
?>
--EXPECT--
Object id #1
Object id #2
object(a)#2 (1) {
["a"]=>
int(4)
}
+27
View File
@@ -0,0 +1,27 @@
--TEST--
Bug #30820 (static member conflict with $this->member silently ignored)
--INI--
error_reporting=4095
--FILE--
<?php
class Blah {
private static $x;
public function show() {
Blah::$x = 1;
$this->x = 5; // no warning, but refers to different variable
echo 'Blah::$x = '. Blah::$x ."\n";
echo '$this->x = '. $this->x ."\n";
}
}
$b = new Blah();
$b->show();
?>
--EXPECTF--
Strict Standards: Accessing static property Blah::$x as non static in %sbug30820.php on line 7
Blah::$x = 1
Strict Standards: Accessing static property Blah::$x as non static in %sbug30820.php on line 10
$this->x = 5
+31
View File
@@ -0,0 +1,31 @@
--TEST--
Bug #30889 Conflict between __get/__set and ++ operator
--FILE--
<?php
class overloaded
{
private $values;
function __construct()
{
$this->values = array('a' => 0);
}
function __set($name, $value)
{
print "set $name = $value ($name was ".$this->values[$name].")\n";
$this->values[$name] = $value;
}
function __get($name)
{
print "get $name (returns ".$this->values[$name].")\n";
return $this->values[$name];
}
}
$test = new overloaded();
$test->a++; // __get(), then __set()
++$test->a;
?>
--EXPECT--
get a (returns 0)
set a = 1 (a was 0)
get a (returns 1)
set a = 2 (a was 1)
+13
View File
@@ -0,0 +1,13 @@
--TEST--
Bug #30922 (reflective functions crash PHP when interfaces extend themselves)
--FILE--
<?php
interface RecurisiveFooFar extends RecurisiveFooFar {}
class A implements RecurisiveFooFar {}
$a = new A();
var_dump($a instanceOf A);
echo "ok\n";
?>
--EXPECTF--
Fatal error: Interface RecurisiveFooFar cannot not implement itself in %sbug30922.php on line %d
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Bug #30998 (Crash when user error handler returns false)
--FILE--
<?php
error_reporting(-1);
function my_error($errno, $errstr, $errfile, $errline)
{
print "$errstr ($errno) in $errfile:$errline\n";
return false;
}
set_error_handler('my_error');
$f = fopen("/tmp/blah", "r");
?>
===DONE===
--EXPECTF--
fopen(/tmp/blah): failed to open stream: No such file or directory (2) in %s:%d
Warning: fopen(/tmp/blah): failed to open stream: No such file or directory in %s on line %d
===DONE===
+53
View File
@@ -0,0 +1,53 @@
--TEST--
Bug #31098 (isset() / empty() incorrectly returns true in dereference of a wrong type)
--FILE--
<?php
$a = '';
var_dump(isset($a->b));
$a = 'a';
var_dump(isset($a->b));
$a = '0';
var_dump(isset($a->b));
$a = '';
var_dump(isset($a{'b'}));
$a = 'a';
var_dump(isset($a{'b'}));
$a = '0';
var_dump(isset($a{'b'}));
$simpleString = "Bogus String Text";
echo isset($simpleString->wrong)?"bug\n":"ok\n";
echo isset($simpleString["wrong"])?"ok\n":"bug\n";
echo isset($simpleString[-1])?"bug\n":"ok\n";
echo isset($simpleString[0])?"ok\n":"bug\n";
echo isset($simpleString["0"])?"ok\n":"bug\n";
echo isset($simpleString["16"])?"ok\n":"bug\n";
echo isset($simpleString["17"])?"bug\n":"ok\n";
echo isset($simpleString["wrong"][0])?"bug\n":"ok\n";
echo $simpleString->wrong === null?"ok\n":"bug\n";
echo $simpleString["wrong"] === "B"?"ok\n":"bug\n";
echo $simpleString["0"] === "B"?"ok\n":"bug\n";
$simpleString["wrong"] = "f";
echo $simpleString["0"] === "f"?"ok\n":"bug\n";
?>
--EXPECTF--
bool(false)
bool(false)
bool(false)
bool(false)
bool(true)
bool(true)
ok
ok
ok
ok
ok
ok
ok
ok
Notice: Trying to get property of non-object in %sbug31098.php on line %d
ok
ok
ok
ok
+48
View File
@@ -0,0 +1,48 @@
--TEST--
Bug #31102 (Exception not handled when thrown inside __autoload())
--FILE--
<?php
$test = 0;
function __autoload($class)
{
global $test;
echo __METHOD__ . "($class,$test)\n";
switch($test)
{
case 1:
eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
return;
case 2:
eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
throw new Exception(__METHOD__);
return;
case 3:
return;
}
}
while($test++ < 5)
{
try
{
eval("\$bug = new Test$test();");
}
catch (Exception $e)
{
echo "Caught: " . $e->getMessage() . "\n";
}
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
__autoload(Test1,1)
Caught: Test1::__construct
__autoload(Test2,2)
Caught: __autoload
__autoload(Test3,3)
Fatal error: Class 'Test3' not found in %sbug31102.php(%d) : eval()'d code on line 1
+44
View File
@@ -0,0 +1,44 @@
--TEST--
Bug #31177 (Memory leak)
--FILE--
<?php
class DbGow {
public function query() {
throw new Exception;
}
public function select() {
return new DbGowRecordSet($this->query());
}
public function select2() {
new DbGowRecordSet($this->query());
}
}
class DbGowRecordSet {
public function __construct($resource) {
}
}
$db = new DbGow;
try {
$rs = $db->select();
} catch(Exception $e) {
echo "ok\n";
}
try {
$db->select2();
} catch(Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok
ok
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #31525 (object reference being dropped. $this getting lost)
--INI--
error_reporting=4095
--FILE--
<?php
class Foo {
function getThis() {
return $this;
}
function destroyThis() {
$baz =& $this->getThis();
}
}
$bar = new Foo();
$bar->destroyThis();
var_dump($bar);
?>
--EXPECTF--
Strict Standards: Only variables should be assigned by reference in %sbug31525.php on line 7
object(Foo)#1 (0) {
}
+97
View File
@@ -0,0 +1,97 @@
--TEST--
Bug #31683 (changes to $name in __get($name) override future parameters)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
class Foo implements ArrayAccess {
function __get($test) {
var_dump($test);
$test = 'bug';
}
function __set($test, $val) {
var_dump($test);
var_dump($val);
$test = 'bug';
$val = 'bug';
}
function __call($test, $arg) {
var_dump($test);
$test = 'bug';
}
function offsetget($test) {
var_dump($test);
$test = 'bug';
return 123;
}
function offsetset($test, $val) {
var_dump($test);
var_dump($val);
$test = 'bug';
$val = 'bug';
}
function offsetexists($test) {
var_dump($test);
$test = 'bug';
}
function offsetunset($test) {
var_dump($test);
$test = 'bug';
}
}
$foo = new Foo();
$a = "ok";
for ($i=0; $i < 2; $i++) {
$foo->ok("ok");
$foo->ok;
$foo->ok = "ok";
$x = $foo["ok"];
$foo["ok"] = "ok";
isset($foo["ok"]);
unset($foo["ok"]);
// $foo[];
$foo[] = "ok";
// isset($foo[]);
// unset($foo[]);
$foo->$a;
echo "---\n";
}
?>
--EXPECT--
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
NULL
string(2) "ok"
string(2) "ok"
---
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
string(2) "ok"
NULL
string(2) "ok"
string(2) "ok"
---
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #31720 (Invalid object callbacks not caught in array_walk())
--FILE--
<?php
$array = array('at least one element');
array_walk($array, array($nonesuchvar,'show'));
?>
===DONE===
--EXPECTF--
Notice: Undefined variable: nonesuchvar in %s on line %d
Notice: Non-callable array passed to zend_call_function() in %s on line %d
Warning: array_walk(): Unable to call Array() - function does not exist in %s on line %d
===DONE===
+25
View File
@@ -0,0 +1,25 @@
--TEST--
Bug #31828 (Crash with zend.ze1_compatibility_mode=On)
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
$o = new stdClass();
$o->id = 77;
$o->name = "Aerospace";
$a[] = $o;
$a = $a[0];
print_r($a);
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 2
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 5
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 6
stdClass Object
(
[id] => 77
[name] => Aerospace
)
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
class test { }
$t = new test;
$t = $t; // gives segfault
var_dump($t);
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 3
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 5
object(test)#%d (0) {
}
+36
View File
@@ -0,0 +1,36 @@
--TEST--
Bug #32226 (SEGV with exception handler on non existing instance)
--FILE--
<?php
class A
{
public function A()
{
set_exception_handler(array($this, 'EH'));
throw new Exception();
}
public function EH()
{
restore_exception_handler();
throw new Exception();
}
}
try
{
$a = new A();
}
catch(Exception $e)
{
echo "Caught\n";
}
?>
===DONE===
--EXPECT--
Caught
===DONE===
+47
View File
@@ -0,0 +1,47 @@
--TEST--
Bug #32252 (Segfault when offsetSet throws an Exception (only without debug))
--FILE--
<?php
class Test implements ArrayAccess
{
function offsetExists($offset)
{
echo __METHOD__ . "($offset)\n";
return false;
}
function offsetGet($offset)
{
echo __METHOD__ . "($offset)\n";
return null;
}
function offsetSet($offset, $value)
{
echo __METHOD__ . "($offset, $value)\n";
throw new Exception("Ooops");
}
function offsetUnset($offset)
{
echo __METHOD__ . "($offset)\n";
}
}
$list = new Test();
try
{
$list[-1] = 123;
}
catch (Exception $e)
{
echo "CAUGHT\n";
}
?>
===DONE===
--EXPECT--
Test::offsetSet(-1, 123)
CAUGHT
===DONE===
+35
View File
@@ -0,0 +1,35 @@
--TEST--
Bug #32290 (calling call_user_func_array() ends in infinite loop within child class)
--FILE--
<?php
class TestA
{
public function doSomething($i)
{
echo __METHOD__ . "($this)\n";
return --$i;
}
}
class TestB extends TestA
{
public function doSomething($i)
{
echo __METHOD__ . "($this)\n";
$i++;
if ($i >= 5) return 5;
return call_user_func_array(array("TestA","doSomething"), array($i));
}
}
$x = new TestB();
var_dump($x->doSomething(1));
?>
===DONE===
--EXPECTF--
TestB::doSomething(Object id #%d)
TestA::doSomething(Object id #%d)
int(1)
===DONE===
+60
View File
@@ -0,0 +1,60 @@
--TEST--
Bug #32296 get_class_methods output has changed between 5.0.2 and 5.0.3
--FILE--
<?php
abstract class space{
function __construct(){}
abstract protected function unfold();
}
abstract class shape extends space{
private function x1() {}
protected final function unfold(){}
}
abstract class quad extends shape{
private function x2() {}
function buggy(){
$c = get_class($this);
$a = get_class_methods(get_class($this));
$b = get_class_methods($this);
print($c."\n".'a:');
print_r($a);
print('b:');
print_r($b);
}
}
class square extends quad{}
$a = new square();
$a->buggy();
print_r(get_class_methods("square"));
print_r(get_class_methods($a));
?>
--EXPECT--
square
a:Array
(
[0] => x2
[1] => buggy
[2] => unfold
[3] => __construct
)
b:Array
(
[0] => x2
[1] => buggy
[2] => unfold
[3] => __construct
)
Array
(
[0] => buggy
[1] => __construct
)
Array
(
[0] => buggy
[1] => __construct
)
+80
View File
@@ -0,0 +1,80 @@
--TEST--
Bug #32322 (Return values by reference broken( using self::),example singleton instance)
--INI--
error_reporting=4095
--FILE--
<?php
class test
{
private static $instance = null;
private $myname = '';
private function __construct( $value = '' )
{
echo "New class $value created \n";
$this -> myname = $value;
}
private function __clone() {}
static public function getInstance()
{
if ( self::$instance == null )
{
self::$instance = new test('Singleton1');
}
else {
echo "Using old class " . self::$instance -> myname . "\n";
}
return self::$instance;
}
static public function getInstance2()
{
static $instance2 = null;
if ( $instance2 == null )
{
$instance2 = new test('Singleton2');
}
else {
echo "Using old class " . $instance2 -> myname . "\n";
}
return $instance2;
}
public function __destruct()
{
if ( defined('SCRIPT_END') )
{
echo "Class " . $this -> myname . " destroyed at script end\n";
} else {
echo "Class " . $this -> myname . " destroyed beforce script end\n";
}
}
}
echo "Try static instance inside class :\n";
$getCopyofSingleton = test::getInstance();
$getCopyofSingleton = null;
$getCopyofSingleton = &test::getInstance();
$getCopyofSingleton = null;
$getCopyofSingleton = test::getInstance();
echo "Try static instance inside function :\n";
$getCopyofSingleton2 = test::getInstance2();
$getCopyofSingleton2 = null;
$getCopyofSingleton2 = &test::getInstance2();
$getCopyofSingleton2 = null;
$getCopyofSingleton2 = test::getInstance2();
define('SCRIPT_END',1);
?>
--EXPECTF--
Try static instance inside class :
New class Singleton1 created
Using old class Singleton1
Strict Standards: Only variables should be assigned by reference in %sbug32322.php on line 49
Using old class Singleton1
Try static instance inside function :
New class Singleton2 created
Using old class Singleton2
Strict Standards: Only variables should be assigned by reference in %sbug32322.php on line 55
Using old class Singleton2
Class Singleton1 destroyed at script end
Class Singleton2 destroyed at script end
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #32427 Interfaces are not allowed 'static' access modifier
--FILE--
<?php
interface Example {
public static function sillyError();
}
class ExampleImpl implements Example {
public static function sillyError() {
echo "I am a silly error\n";
}
}
ExampleImpl::sillyError();
?>
--EXPECT--
I am a silly error
+13
View File
@@ -0,0 +1,13 @@
--TEST--
Bug #32428 (The @ warning error supression operator is broken)
--FILE--
<?php
$data = @$not_exists;
$data = @($not_exists);
$data = @!$not_exists;
$data = !@$not_exists;
$data = @($not_exists+1);
echo "ok\n";
?>
--EXPECT--
ok
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #32429 (method_exists() always return TRUE if __call method exists)
--FILE--
<?php
class TestClass {
public function __construct() {
var_dump(method_exists($this, 'test'));
if (method_exists($this, 'test')) {
$this->test();
}
}
public function __call($name, $args) {
throw new Exception('Call to undefined method'.get_class($this).'::'.$name.'()');
}
}
try {
$test = new TestClass;
} catch (Exception $e) {
exit($e->getMessage());
}
?>
--EXPECT--
bool(false)
+27
View File
@@ -0,0 +1,27 @@
--TEST--
Bug #32596 (Segfault/Memory Leak by getClass (etc) in __destruct)
--FILE--
<?php
class BUG {
public $error = "please fix this thing, it wasted a nice part of my life!\n";
static function instance() {return new BUG();}
function __destruct()
{
$c=get_class($this); unset($c);
echo get_class($this) ."\n";
if(defined('DEBUG_'.__CLASS__)){}
$c=get_class($this); //memory leak only
echo $this->error;
}
}
BUG::instance()->error;
echo "this is still executed\n";
?>
--EXPECT--
BUG
please fix this thing, it wasted a nice part of my life!
this is still executed
+62
View File
@@ -0,0 +1,62 @@
--TEST--
Bug #32674 exception in iterator causes crash
--FILE--
<?php
class collection implements Iterator {
private $_elements = array();
public function __construct() {
}
public function rewind() {
reset($this->_elements);
}
public function count() {
return count($this->_elements);
}
public function current() {
$element = current($this->_elements);
return $element;
}
public function next() {
$element = next($this->_elements);
return $element;
}
public function key() {
$this->_fillCollection();
$element = key($this->_elements);
return $element;
}
public function valid() {
throw new Exception('shit happend');
return ($this->current() !== false);
}
}
class class2 {
public $dummy;
}
$obj = new class2();
$col = new collection();
try {
foreach($col as $co) {
//irrelevant
}
echo 'shouldn`t get here';
//$dummy = 'this will not crash';
$obj->dummy = 'this will crash';
} catch (Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Bug #32799 (crash: calling the corresponding global var during the destruct)
--FILE--
<?php
class test{
public $c=1;
function __destruct (){
$GLOBALS['p']->c++; // no warning
print $GLOBALS['p']->c."\n"; // segfault
var_dump($GLOBALS['p']);
}
}
$p=new test;
$p=null; //destroy the object by a new assignment (segfault)
?>
--EXPECT--
2
object(test)#1 (1) {
["c"]=>
int(2)
}
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Bug #32833 Invalid opcode
--FILE--
<?php
$test = array();
$test[] .= "ok\n";
echo $test[0];
?>
--EXPECT--
ok
+38
View File
@@ -0,0 +1,38 @@
--TEST--
Bug #32852 (Crash with singleton and __destruct when zend.ze1_compatibility_mode = On)
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
class crashme {
private static $instance = null;
public function __construct() {
self::$instance = $this;
}
public function __destruct() {
echo "i'm called\n";
}
public static function singleton() {
if (!isset(self::$instance)) {
self::$instance = new crashme();
}
return self::$instance;
}
}
crashme::singleton();
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'crashme' because of 'zend.ze1_compatibility_mode' in %sbug32852.php on line 6
i'm called
Strict Standards: Implicit cloning object of class 'crashme' because of 'zend.ze1_compatibility_mode' in %sbug32852.php on line 15
i'm called
Strict Standards: Implicit cloning object of class 'crashme' because of 'zend.ze1_compatibility_mode' in %sbug32852.php on line 17
i'm called
i'm called
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #32993 (implemented Iterator function current() don't throw exception)
--FILE--
<?php
class Test implements Iterator {
public $arr = array();
public function rewind() { return reset($this->arr); }
public function current() { throw new Exception(); }
public function key() { return key($this->arr); }
public function next() { return next($this->arr); }
public function valid() { return (current($this->arr) !== false); }
}
$t = new Test();
$t->arr = array(1, 2, 3);
try {
foreach ($t as $v) {
echo "$v\n";
}
} catch (Exception $e) {
; // handle exception
}
echo "ok\n";
?>
--EXPECT--
ok
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #33116 (crash when assigning class name to global variable in __autoload)
--FILE--
<?php
function __autoload($class)
{
$GLOBALS['include'][] = $class;
eval("class DefClass{}");
}
$a = new DefClass;
print_r($a);
print_r($GLOBALS['include']);
?>
--EXPECT--
DefClass Object
(
)
Array
(
[0] => DefClass
)
+27
View File
@@ -0,0 +1,27 @@
--TEST--
Bug #33171 (foreach enumerates private fields declared in base classes)
--FILE--
<?php
class A
{
private $c = "A's c";
}
class B extends A
{
private $c = "B's c";
public function go()
{
foreach ($this as $key => $val)
{
echo "$key => $val\n";
}
}
};
$x = new B;
$x->go();
?>
--EXPECT--
c => B's c
+25
View File
@@ -0,0 +1,25 @@
--TEST--
Bug #33243 (ze1_compatibility_mode does not work as expected)
--INI--
zend.ze1_compatibility_mode=1
error_reporting=4095
--FILE--
<?php
$a->y->z = 0;
$b = $a; // should perform deep copy of $a
$b->y->z = 1; // hence this should have no effect on $a
var_dump($a);
?>
--EXPECTF--
Strict Standards: Creating default object from empty value in %sbug33243.php on line 2
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug33243.php on line 3
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug33243.php on line 5
object(stdClass)#%d (1) {
["y"]=>
object(stdClass)#%d (1) {
["z"]=>
int(0)
}
}
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #33257 array_splice() inconsistent when passed function instead of variable
--FILE--
<?php
class X {
protected static $arr = array("a", "b", "c");
public static function getArr() {
return self::$arr;
}
}
//$arr1 = X::getArr();
array_splice(X::getArr(), 1, 1);
print_r(X::getArr());
?>
--EXPECTF--
Fatal error: Only variables can be passed by reference in %sbug33257.php on line 10
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #33277 (private method accessed by child class)
--FILE--
<?php
class foo {
private function bar() {
echo "private!\n";
}
}
class fooson extends foo {
function barson() {
$this->bar();
}
}
class foo2son extends fooson {
function bar() {
echo "public!\n";
}
}
$b = new foo2son();
$b->barson();
?>
--EXPECT--
public!
Loaded 100 of 2168 files, more files were not shown because too many files have changed in this diff. Show more