Compare commits

..
5555 Commits
Author SHA1 Message Date
SVN Migration 5c83dc9ade This commit was manufactured by cvs2svn to create tag 'php_5_0_0RC4'. 2004-07-15 19:41:25 +00:00
SVN Migration 8091552925 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-15 19:41:23 +00:00
Marcus Boerger 1916223883 - Fix prototype 2004-07-15 19:41:22 +00:00
Marcus Boerger f2377c4d1f Synch comments 2004-07-15 19:09:37 +00:00
Dan Kalowsky f20849d12e Bug 29058 (patch submitted by bug reporter) 2004-07-15 15:09:12 +00:00
Magnus M��tt� cfc8accd3e Test for bug 26737:
Protected and private variables are not saved on serialization
when a user defined __sleep is used.
2004-07-15 11:52:04 +00:00
Antony Dovgal f6eb507b2c fix #29012 (Potential race during first connection) thanks to cjbj at hotmail dot com 2004-07-15 11:00:14 +00:00
Ilia Alshanetsky a75608c1de Fixed Bug #29075 (strnatcmp() incorrectly handles whitespace).
# Original Patch by: curt@php.net
2004-07-15 01:26:03 +00:00
5a9875f293 ChangeLog update 2004-07-15 00:33:10 +00:00
Edin Kadribasic 546e5bbc43 Made php -m output sorted case-insensitevly 2004-07-14 22:30:29 +00:00
Stefan Esser 90f151470c same bug. 2004-07-14 09:55:24 +00:00
Derick Rethans edce707f3b - Fixed text. 2004-07-14 09:54:02 +00:00
Stefan Esser 446f4d1bc2 Security Fix broken! Destroyed Basic auth. Blame: me
4.3.x not affected
2004-07-14 09:43:26 +00:00
Stanislav Malyshev d673ec0184 be consistent with write_dimension 2004-07-14 09:04:13 +00:00
Stanislav Malyshev 28d72ce2fd fix #28957 2004-07-14 09:01:58 +00:00
John Coggeshall 51ae1cc7bd Changing the Tidy version to 2.0 2004-07-14 02:41:53 +00:00
12c826c2e7 ChangeLog update 2004-07-14 00:33:30 +00:00
Sara Golemon c4bf45e39a Bugfix# 28829 bcmath values for 0, 1, and 2 initialized/freed at wrong time for threaded sapis. 2004-07-14 00:14:43 +00:00
Zeev Suraski 2ec89aa8e1 Add {{{ proto's 2004-07-13 20:41:55 +00:00
Andi Gutmans c18badbfbf - 5.0.1-dev 2004-07-13 19:56:49 +00:00
Marcus Boerger 1ea22c9004 Bugfix #29116 Zend constant warning uses memory after free (jdolecek at NetBSD dot org) 2004-07-13 19:22:11 +00:00
Andi Gutmans 399e2ca69f - Roll PHP 5.0.0 2004-07-13 19:05:31 +00:00
Wez Furlong cfb84391d0 add missing break 2004-07-13 17:14:49 +00:00
Georg Richter bfd3c9ecfb prototype fixes 2004-07-13 17:04:16 +00:00
Rob Richards d64a00da04 initial xmlwriter code 2004-07-13 17:01:30 +00:00
Wez Furlong 971fcd4254 Looks like Sara forgot to change this too. 2004-07-13 16:34:56 +00:00
Georg Richter f61dbf06a1 changed mysqli_stmt_reset (returns now bool instead of void) 2004-07-13 16:12:28 +00:00
Stefan Esser 0b9d614988 Fixed typo 2004-07-13 11:30:50 +00:00
Alan Knowles 6284b34e6e remove test dependance on postgres ** this still fails however 2004-07-13 07:20:45 +00:00
Alan Knowles ad2b89c9a3 ensure that test passes on systems without postgres built in. 2004-07-13 07:12:06 +00:00
196259d334 ChangeLog update 2004-07-13 00:32:43 +00:00
Wez Furlong ae40d0ef2a Fix file_get_contents() bug... 2004-07-12 20:59:24 +00:00
Timm Friebe e532feb29c - Initial release 2004-07-12 20:26:53 +00:00
Ilia Alshanetsky 905fbfd85e Added missing constant and correct bound column retrieval. When bound
columns are specified only return status (TRUE/FALSE) indicator.
2004-07-12 20:12:39 +00:00
Ilia Alshanetsky ddb32b11b2 Fixed a bug that could result in false failed query reporting on
INSERT/UPDATE/DELETE queries.
2004-07-12 20:09:19 +00:00
Ilia Alshanetsky 11371cd0a8 Missing patch. 2004-07-12 18:49:47 +00:00
Ilia Alshanetsky 7daa1cfecc Fixed bug #28999 (fixed behaviour of exec() to work as it did in 4.X). 2004-07-12 18:48:30 +00:00
Ilia Alshanetsky a8996a8ac6 Fixed bug #29086 & #28064 (PHP crashes on extremly long scripts). 2004-07-12 17:47:29 +00:00
Ilia Alshanetsky 0ad4c5037c Touch the file so that build system does not try to rebuild it. 2004-07-12 17:44:40 +00:00
Andi Gutmans 334ddd1248 - Convert zend_class_entry -> zend_class_entry * 2004-07-12 16:38:45 +00:00
Christian Stocker 14a61929b9 implement the clone code for the XSLTProcessor object and fix #29108
"xslt segfaults when ze1_compatibility_mode is on" (By Rob Richards)
2004-07-12 13:04:01 +00:00
Antony Dovgal 08486a0ea3 fix #28978 (multiple OCIBindByName on the same placeholder eats memory) 2004-07-12 07:40:05 +00:00
83e4bb727b ChangeLog update 2004-07-12 00:32:48 +00:00
Andrey Hristov c401890d17 reorder + add 2004-07-11 21:41:33 +00:00
Andrey Hristov 0eef82a733 fixing bug #28974 : overflow in array_slice()
The same kind of overflow appeared in array_splice(), substr() and
substr_replace()
2004-07-11 21:15:04 +00:00
Stefan Esser 0e8de752fd Ooups... 2004-07-11 21:14:50 +00:00
Stefan Esser 8c075de7c7 Fixed: PARSE_TYPE parameter to input_filter
Fixed: input_filter should also be able to filter empty variables by name
2004-07-11 20:13:39 +00:00
Andrey Hristov 268d3d7ba3 fixing bug #28739
array_*diff() and array_*intersect() not clearing the fci cache before work.
FCI call cache was introduced in HEAD. All functions that perform sorting
of arrays clear the fci cache before work. array_*diff() and\ array_*intersect()
were somehow missed to be updated.
2004-07-11 19:20:05 +00:00
Andrey Hristov bc69bdb01a fixing the name of the test 2004-07-11 18:19:43 +00:00
Andrey Hristov 7af08c0c34 fixing bug 29038:
EXTR_PREFIX_SAME is prevented from creating a new variable when the key
is a empty string. EXTR_PREFIX_ALL is also prevented from doing that,
but works for numbers.
2004-07-11 18:18:05 +00:00
Timm Friebe cd75bd4f65 - Initial release 2004-07-11 16:57:38 +00:00
Timm Friebe a14c66445a - Added simple test for float exceeding the float precision
# See bug #29064
2004-07-11 16:57:12 +00:00
Timm Friebe 1e6ccabd5f - Initial release 2004-07-11 16:31:32 +00:00
Timm Friebe d6c0fdfd2f - Initial release 2004-07-11 16:10:03 +00:00
Ilia Alshanetsky 4ebcb2ecfe Fixed bug #29008 (array_combine() does not handle non-numeric/string keys). 2004-07-11 15:23:57 +00:00
ed6ebf011b ChangeLog update 2004-07-11 00:33:01 +00:00
Jon Parise d46f8078f5 DragonFly BSD is derived from FreeBSD and requires the same floating point
precision fix.
2004-07-10 19:29:01 +00:00
Wez Furlong a0957e24b7 Fix #28402: no need for -ldl 2004-07-10 12:49:34 +00:00
Wez Furlong b52f7a01af Bump PHP 5 sqlite extension number to 2.0
(put some distance between it and the 4.3 version)
2004-07-10 12:30:18 +00:00
Wez Furlong e563b4eafa Upgrade bundled library to 2.8.14 + misc fixes
(http://www.sqlite.org/cvstrac/chngview?cn=1742)
2004-07-10 12:27:51 +00:00
Wez Furlong cd732f1a3f RIP: greedy ready problems
This allows people to use fread($fp, filesize($filename)) for regular files,
but packet-based non-greedy reads for everything else.
2004-07-10 10:54:09 +00:00
Andi Gutmans e5cfb1d05c - Better stability during premature shutdown of request startup 2004-07-10 07:46:17 +00:00
Ilia Alshanetsky 41b639fffe Fixed function proto. 2004-07-09 17:49:08 +00:00
69e20cf219 ChangeLog update 2004-07-09 00:33:24 +00:00
Ilia Alshanetsky 79c28f7618 Fixed bug #29049 (array sorting via user function/method does not validate
it).
2004-07-08 17:07:22 +00:00
Sergey Kartashoff c176a0ae20 - A bugfix in search words hilightling code (mnogosearch extension). 2004-07-08 05:22:14 +00:00
Ilia Alshanetsky f28b063c28 Last dangerous alloca() bits. 2004-07-08 01:18:43 +00:00
e080db4303 ChangeLog update 2004-07-08 00:32:27 +00:00
Edin Kadribasic 5e605e6dc2 Added memory-limit to the list of excluded force-on options 2004-07-07 12:25:10 +00:00
Georg Richter 9db1075c0e added check in config.m4 for deprecated library
added support for new 4.1.3-beta functions
	mysqli_stmt_field_count
	mysqli_stmt_attr_set
	mysqli_stmt_attr_get
removed support for deprecated/old api functions
fixed bug in constructor_get
2004-07-07 08:02:27 +00:00
1d89ed6ee3 ChangeLog update 2004-07-07 00:32:37 +00:00
Ilia Alshanetsky 5201e62d0d Fixed bug #29034 (wordwrap() returns a boolean when passed empty string). 2004-07-06 22:16:42 +00:00
Sergey Kartashoff c144fdf680 - Some fixes in mnogosearch extension 2004-07-06 19:08:45 +00:00
Marcus Boerger a2592aa5fb - Revert storing handle, got lost in 1.92, noticed by Kamesh Jayachandran
<kameshj at fastmail dot fm>
2004-07-06 18:48:39 +00:00
Ard Biesheuvel 1b4e0b81e3 Don't copy ini items to module globals
(fixed unregistered bug with mangled default_db setting)
2004-07-06 13:46:19 +00:00
Sebastian Bergmann b5aa8db6a3 Fix ZTS build. 2004-07-06 08:01:07 +00:00
Dmitry Stogov 8ad22e4279 Fixed bug #28751 (SoapServer does not call _autoload()) 2004-07-06 07:30:33 +00:00
ea5dc3d577 ChangeLog update 2004-07-06 00:33:32 +00:00
Ilia Alshanetsky 7f7f566318 Eliminate alloca() calls where they can be affected by the users. 2004-07-05 21:31:35 +00:00
Ilia Alshanetsky 2ba792cd0b Don't use alloca() where it can reached by the users. 2004-07-05 21:16:29 +00:00
Marcus Boerger c884ad017c - Bugfix: #29019 Database not closing 2004-07-05 19:36:10 +00:00
Andi Gutmans 82b4d74fd4 - Disable zend_mm for 5.0.0 2004-07-05 17:06:41 +00:00
Sascha Schumann f51ff68dfa - revert to proper behaviour 2004-07-05 11:41:31 +00:00
Moriyoshi Koizumi 8989a96789 - Add test for bug #28325. 2004-07-05 07:53:41 +00:00
447223f48a ChangeLog update 2004-07-05 00:32:17 +00:00
Ilia Alshanetsky d5fc8152f3 Eliminate potentially dangerous alloca(). 2004-07-04 17:13:58 +00:00
Ilia Alshanetsky a41a54f7fa Fixed bug #28963 (Missing space for \0 in address allocation). 2004-07-04 16:52:59 +00:00
Marcus Boerger c5b9577df8 Fix TSRM build 2004-07-04 11:14:17 +00:00
beb3674b7a ChangeLog update 2004-07-04 00:32:20 +00:00
Moriyoshi Koizumi 0f2c97f627 BFN 2004-07-03 16:14:46 +00:00
Moriyoshi Koizumi a92af73136 - Bugfix #28325 (circular reference serialisation). 2004-07-03 16:10:28 +00:00
ac3b484388 ChangeLog update 2004-07-03 00:32:18 +00:00
Andi Gutmans c3e9cd9c91 - Should fix mem leak with ZEND_MM. I made this change a while ago and
- rolled it back but I don't remember why. Please test!
2004-07-03 00:16:39 +00:00
ae5301c5d5 ChangeLog update 2004-07-02 00:32:17 +00:00
Ilia Alshanetsky 2ba0608e48 Do not use alloca() where it can be easily abused by the users.
# This probably should go into reflection code as well.
2004-07-01 16:28:32 +00:00
Sterling Hughes e8f984d77a fix bug wrt to CURLOPT_POSTFIELDS where if you passed it code like:
$fields = array('foo' => 'bar');
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_exec($ch);
as opposed to :

curl_setopt($ch, CURLOPT_POSTFIELDS, array('foo' => 'bar'));

you'll get a segv or no results, depending on the mood and cycle of the
moon.
2004-07-01 06:50:46 +00:00
Sara Golemon 76766f2d31 That hashtable should never have been an argument.... 2004-07-01 04:43:29 +00:00
d24e005477 ChangeLog update 2004-07-01 00:32:13 +00:00
Frank M. Kromann e0fe48e8a0 Fix for #28512. news entry 2004-06-30 19:51:28 +00:00
Frank M. Kromann 2067ce4079 Fix for #28512. Allocate enough space to store data 2004-06-30 19:46:57 +00:00
Ilia Alshanetsky bdfd8c60ea Another instance where alloca() is not needed. 2004-06-30 13:43:16 +00:00
Ard Biesheuvel 81dbc2fcef Fixed Ilia's alloca() issue/exploit
Removed pointless RINIT()
Use macros for consistent resource type names
2004-06-30 10:55:03 +00:00
Ilia Alshanetsky 690ca62dd3 Do not use alloca() where it can be abused through user input. 2004-06-30 01:12:06 +00:00
0850c7a348 ChangeLog update 2004-06-30 00:32:27 +00:00
Wez Furlong 8f435013ff Fix for Bug #28964 fread "greedy" behaviour 2004-06-29 21:51:53 +00:00
2aa678b088 ChangeLog update 2004-06-29 00:32:44 +00:00
Ilia Alshanetsky ed7d1e82c6 Removed pointless allocation check. 2004-06-28 22:31:28 +00:00
Sebastian Bergmann b163696106 Fix #28921 (Bad grammar in INSTALL). 2004-06-28 16:41:01 +00:00
Derick Rethans da2a1977b5 - Fixed bug with leap year checking. 2004-06-28 14:33:57 +00:00
Ard Biesheuvel 77804efa77 Revert at Derick's request 2004-06-28 11:41:08 +00:00
Ard Biesheuvel d1efeb2e58 BFN 2004-06-28 11:28:12 +00:00
Ard Biesheuvel 16e2d61435 MFB Fixed bug #28897 (-1 returned as -0.000 for 64-bit scaled int) 2004-06-28 11:27:05 +00:00
98672f41ba ChangeLog update 2004-06-28 00:33:21 +00:00
Ilia Alshanetsky 53bf5ccbea Removed unneeded if(). 2004-06-27 21:49:47 +00:00
Marcus Boerger 91f0369c80 Add more tests 2004-06-27 13:28:01 +00:00
Marcus Boerger 46e9abe602 Add more tests 2004-06-27 13:15:31 +00:00
99b5263afd ChangeLog update 2004-06-27 00:32:20 +00:00
Marcus Boerger 962b593455 BFN 2004-06-26 22:08:19 +00:00
Moriyoshi Koizumi d200a703e7 *** empty log message *** 2004-06-26 17:04:39 +00:00
Uwe Schindler 3bb7e73656 replace strncpy with strlcpy 2004-06-26 10:30:07 +00:00
Stefan Esser 59d55efb17 As long we pass values by reference this is needed. Ugly! 2004-06-26 08:09:28 +00:00
Stefan Esser ff716cbd3e Fixed input_filter functions need emalloc()ed values. 2004-06-26 07:57:37 +00:00
Stefan Esser 9e5ea7d229 strip_tags() news 2004-06-26 07:46:08 +00:00
Stefan Esser a27d5d842a IE we love you all... 2004-06-26 07:43:02 +00:00
Moriyoshi Koizumi 4eccf848ec - WS 2004-06-26 05:41:14 +00:00
Moriyoshi Koizumi b33f7ab671 - Fix bug #28466 (mbstring_convert_variables() problem). 2004-06-26 05:39:00 +00:00
f125cb60cc ChangeLog update 2004-06-26 00:32:25 +00:00
Edin Kadribasic 42f7b8026c MFB: Memory leak fix (patch by Joe Orton)
Fixes #28113. Adapted to php5 by Magnus Määttä.
2004-06-25 13:00:48 +00:00
Wez Furlong 5aa568254a export zend stream functions for zend extensions under windows 2004-06-25 12:55:11 +00:00
2f94546824 ChangeLog update 2004-06-25 00:32:18 +00:00
Sara Golemon a4032b68c6 Ease off on severity of new error (Using Resources as array offsets) 2004-06-24 16:35:34 +00:00
Ilia Alshanetsky e4e71fd8ba MFB: Fixed bug #1713 (possible crash inside tidy_get_error_buffer()). 2004-06-24 14:20:59 +00:00
Stefan Esser 476c9a3b3d Fixed zend_parse_parameters arguments... 2004-06-24 08:49:00 +00:00
Ilia Alshanetsky 81abbc66fc Added missing safe_mode & open_basedir checks. 2004-06-24 00:48:58 +00:00
ca14c9b1af ChangeLog update 2004-06-24 00:32:21 +00:00
Sara Golemon 56b153390b BugFix #28879 Inconsistent behavior between explicit and implicit array creation.
Changes:

Throw E_WARNING "Illegal offset type" when explicitly creating
array elements with objects, arrays, or resorces as indexes.
This matches implicit creation w/ obj/arr indices.

Throw E_WARNING "Resource ID#%ld used as offset, casting to integer (%ld)"
when implicitly creating array with resource as index. (BC)
2004-06-23 23:20:44 +00:00
George Schlossnagle 9e187415f9 fix for inheritability 2004-06-23 18:06:00 +00:00
Georg Richter f063bdec06 added php_mysqli_construct_get to support __construct in extended classes 2004-06-23 16:47:25 +00:00
Ard Biesheuvel dc701bfdab Changed name to all caps 2004-06-23 13:42:06 +00:00
Ard Biesheuvel 391cbac1f2 Return all results as strings until I can convince the other guys that
it should be otherwise
2004-06-23 13:26:09 +00:00
Ard Biesheuvel 18cd69ef74 Fixed some int-long issues 2004-06-23 13:20:54 +00:00
Uwe Schindler 8327d4e2bd Addendum to bug #28878: change ini keys as PHP_INI_SYSTEM
Also: Adding "bucket" parameter to non-ini-keys, Elemination of double CONTENT_TYPE/_LENGTH environment variables
2004-06-23 13:02:01 +00:00
Dmitry Stogov 2b216967f2 Added SOAP configuration directives 2004-06-23 08:18:42 +00:00
d632106e6e ChangeLog update 2004-06-23 00:32:34 +00:00
Andrei Zmievski 279770743f MFB (better error checking in pcre_fullinfo() calls). 2004-06-22 22:21:58 +00:00
Ilia Alshanetsky 869a90f015 Fixed possible buffer overflow. 2004-06-22 20:27:46 +00:00
Alex Leigh ef81373201 Updated the author's contact information. 2004-06-22 18:08:03 +00:00
Uwe Schindler e276023d82 Fix bug #28878: php.ini values in php5_execute 2004-06-22 15:37:40 +00:00
Dmitry Stogov 4ea8f4b9f2 BUGFIX: Segfault if server's URL has no path. ("http://192.168.8.1:180") 2004-06-22 12:42:17 +00:00
c055a54343 ChangeLog update 2004-06-22 00:32:17 +00:00
Ilia Alshanetsky a3bd8bcd7b Added missing safe_mode check. 2004-06-21 22:53:52 +00:00
Sara Golemon 8f2686df35 BFN 2004-06-21 21:09:13 +00:00
Sara Golemon a2c24ae90e BugFix#28868 (Part Two): This fixes thread unsafety in the userspace
filters which relates to the fix just applied for userspace wrappers.
2004-06-21 21:08:05 +00:00
Marcus Boerger dc66fb1f10 Fixed bug #28822: ArrayObject::offsetExists() works inverted 2004-06-21 19:15:27 +00:00
Sara Golemon 7fcfa8865e BugFix#28868: Wrapper hash not thread-safe.
Userdefined wrappers were being registered into a global wrapper hash
which can cross threads.  Termination of once instance then has the
potential to leave an active stream in another instance with no wrapper
leading to segfault.
2004-06-21 18:58:55 +00:00
Dmitry Stogov d9226a1dd0 Support for HTTP redirection. 2004-06-21 12:56:33 +00:00
Tomas V.V.Cox 1fb65c4c29 More output magic on nested exceptions 2004-06-21 04:36:17 +00:00
Tomas V.V.Cox 24ec6e5a5c Be more consistent with CS 2004-06-21 04:06:18 +00:00
Tomas V.V.Cox 8957eac122 Some API changes:
- addObserver() params order switched
- signal() -> _signal()
- public:getCauseMessage() -> private:_getCauseMessage()
- some more docs
2004-06-21 03:53:39 +00:00
907bdcbc7e ChangeLog update 2004-06-21 00:32:07 +00:00
Ilia Alshanetsky a99e4b5969 Removed unneeded checks around Zend allocation macros. 2004-06-20 21:40:43 +00:00
Tomas V.V.Cox d3de81fb00 First release of the PEAR_Exception class
(dedicated to otherbird)
2004-06-20 19:08:37 +00:00
Marcus Boerger 3df3aedbe0 BFN 2004-06-20 16:49:49 +00:00
Marcus Boerger de8b457181 Fix 2nd issue of bug #28831 2004-06-20 16:46:27 +00:00
Marcus Boerger 9219b746bb BFN 2004-06-20 09:39:09 +00:00
Marcus Boerger 43b4b086db Bugfix #28851: call_user_func_array has typo in error message 2004-06-20 09:37:35 +00:00
0e6607aa51 ChangeLog update 2004-06-20 00:32:22 +00:00
Jan Lehnardt 536e7448f6 - do it right (phpize path issue) 2004-06-19 20:32:07 +00:00
Jan Lehnardt f4f844af19 - phpize now can handle directories with spaces in their name (#28847) 2004-06-19 19:39:56 +00:00
Sebastian Bergmann f0903895c1 Reflection_* -> Reflection*. Patch by Timm Friebe. 2004-06-19 16:52:04 +00:00
8586e6505f ChangeLog update 2004-06-19 00:32:22 +00:00
Sara Golemon 2f7c5d30b5 Another typo in converting array index doubles to long. 2004-06-18 18:33:46 +00:00
George Schlossnagle 6cc2073d91 tests for the crash in bug 28213 2004-06-18 18:10:52 +00:00
George Schlossnagle 6d182a8456 fix for 28213.
class_name and call_type should be reinitialized on every loop iter.
2004-06-18 17:34:58 +00:00
Martin Jansen 6910e6432a * Replaced the nonexistent word "postfix" with "suffix". 2004-06-18 14:41:01 +00:00
Sara Golemon 851b6d4475 String lengths should never be char pointers. 2004-06-18 00:44:37 +00:00
Ilia Alshanetsky 0c72b185fd Fixed possible memory leak. 2004-06-18 00:44:35 +00:00
Ilia Alshanetsky cfbf5b24b7 Fixed bug #28818 (Apache 2 sapis do not export st_dev). 2004-06-18 00:36:58 +00:00
cf8a8a3189 ChangeLog update 2004-06-18 00:32:27 +00:00
Sara Golemon 96a8b63865 String length in parse_parameters should be int 2004-06-17 18:23:47 +00:00
ad2651a74a ChangeLog update 2004-06-17 00:32:34 +00:00
Ilia Alshanetsky 23d71171cf Properly handly high ascii values in soundex(). 2004-06-17 00:17:49 +00:00
Ard Biesheuvel 5232a5afea 64-bit bugsquash party 2004-06-16 23:57:25 +00:00
Stig Bakken 6527a454c6 * don't register object on destructors list if it does not define its
own emulated destructor
2004-06-16 16:26:12 +00:00
c9908cf81d ChangeLog update 2004-06-16 00:32:45 +00:00
Stefan Esser 585628ba67 Fixed: made 3rd parameter to strrpos 64bit safe. 2004-06-15 22:38:18 +00:00
Marcus Boerger 47c72816d3 BFN 2004-06-15 20:40:58 +00:00
Marcus Boerger 4fec06587b #28789: ReflectionProperty getValue() fails on public static members 2004-06-15 20:39:49 +00:00
Pierre Joye 0f5e09c192 - Fix #1602 (reported by Cox)
Do not display var=value using config-get (easy scripting)
2004-06-15 16:48:49 +00:00
Pierre Joye 98e59d58ba - Fix licence (#1645)
- update my status there, reflecting the fact for the past 11 months
2004-06-15 16:33:46 +00:00
Ard Biesheuvel 350e5aa862 Refactored statement allocation
Added emulated support for named input parameters
2004-06-15 14:16:22 +00:00
Rob Richards 196506caa1 BFN 2004-06-15 11:51:09 +00:00
Rob Richards 7c7c353b1e Fixed bug #28771 (Segfault when using xslt and clone)
Add test case for bug #28721
2004-06-15 11:50:56 +00:00
Ard Biesheuvel f91395898c Un-revert param index fix 2004-06-15 10:22:21 +00:00
Ard Biesheuvel e48d127244 Revert (at Wez's request) 2004-06-15 10:06:41 +00:00
313c153274 ChangeLog update 2004-06-15 00:32:13 +00:00
Antony Dovgal 0a896dd987 add tests 2004-06-14 20:10:27 +00:00
Antony Dovgal 73060a89ee fix config.m4
add fold markers
2004-06-14 19:58:35 +00:00
Marcus Boerger afc5a6145c Need {} here 2004-06-14 19:09:42 +00:00
Ard Biesheuvel 2cc63714a0 Added support for fetching and binding to blob fields 2004-06-14 10:56:49 +00:00
533cdf740f ChangeLog update 2004-06-14 00:32:15 +00:00
Ard Biesheuvel 2b21476207 Release isc statement handle when dtor is called
Don't separate() bound zvals
2004-06-13 23:24:31 +00:00
Ard Biesheuvel 1d7a4ed492 Report param binding error 2004-06-13 22:09:54 +00:00
Ilia Alshanetsky d26ddca966 Standardize error reporting. 2004-06-13 17:04:36 +00:00
Pierre Joye 495925381e - Typo (#1627) (cox) 2004-06-13 14:06:01 +00:00
Ard Biesheuvel cb4612c735 Added double param type 2004-06-13 10:35:01 +00:00
Rob Richards ac772dcf53 BFN 2004-06-13 10:13:12 +00:00
Rob Richards e73d498947 Fix bug #28721 (appendChild() and insertBefore() unset DOMText) 2004-06-13 10:12:47 +00:00
7fefbbb177 ChangeLog update 2004-06-13 00:32:14 +00:00
Ard Biesheuvel e1519d6f17 GCC fixes 2004-06-12 22:17:16 +00:00
Ard Biesheuvel c84c5640e7 Revert 2004-06-12 20:52:07 +00:00
Ard Biesheuvel 6b3cda310a Added client/server info attributes 2004-06-12 18:56:07 +00:00
Ard Biesheuvel 8a3975191e Hope I finally got it right this time 2004-06-12 18:42:13 +00:00
Ard Biesheuvel a312bb5ee3 Folding markers 2004-06-12 17:09:33 +00:00
Ard Biesheuvel ad568aab6f Improved error handling
Added some comments
2004-06-12 16:58:20 +00:00
Ard Biesheuvel c8c0ddb73d Removed dependency on regular interbase extension
Added support for all datatypes except BLOBs
2004-06-12 16:07:52 +00:00
Ard Biesheuvel 1fb48b5091 Removed dependency on regular interbase extension 2004-06-12 16:05:49 +00:00
Ard Biesheuvel 216c8ffdcd Use snaps. LIB path 2004-06-12 14:59:45 +00:00
Ard Biesheuvel 15fa07f0f6 Changed LIB path 2004-06-12 10:23:31 +00:00
Greg Beaver 22fa023c88 fix bug #1610: pear package doesn't validate deps
It was never validating deps at all!
2004-06-12 06:15:55 +00:00
Greg Beaver 9873fa5e42 fix bug #1615: installer must create extension dir if it doesn't exist, patch by Tomas 2004-06-12 05:48:10 +00:00
Greg Beaver 37b73ad2d4 fix bug #1617, exception never returned from PEAR_ErrorStack->push() 2004-06-12 05:36:40 +00:00
Ard Biesheuvel c29704e066 New test 2004-06-12 03:11:16 +00:00
Ard Biesheuvel 493b89c3b1 Nearly complete implementation
No date/time fields yet ...
2004-06-12 03:09:48 +00:00
Ard Biesheuvel 39a690321a Added export macros 2004-06-12 02:49:47 +00:00
Ard Biesheuvel 50ac5db2b4 Added double param type
Added param struct initialiser
Reversed param parsing order (long <=> string)
2004-06-12 02:35:34 +00:00
Ard Biesheuvel 1e3854597c Initial revision (incomplete) 2004-06-11 01:37:06 +00:00
d0c4b3d3ec ChangeLog update 2004-06-11 00:34:13 +00:00
Ilia Alshanetsky b9fc9a6ad1 hypot() is not experimental. 2004-06-10 19:38:24 +00:00
Ilia Alshanetsky af5501027f Fixed bug #28723 (Fixed mbstring config.m4 to work on OSes where test
command does not support -e parameter).
2004-06-10 14:06:17 +00:00
Marcus Boerger 7318238236 Changed that a bit 2004-06-10 13:39:30 +00:00
Marcus Boerger 4da11644de - Require a single white-space char after /** to start a doc comment that
way we prevent /*** from becoming a doc comment (as requested Derick).
2004-06-10 13:38:31 +00:00
Marcus Boerger c756609658 Add missing declaration 2004-06-10 12:32:09 +00:00
Marcus Boerger eb0cb6f6ed Small code layout change 2004-06-10 12:11:16 +00:00
Marcus Boerger 2784cf206d BFN 2004-06-10 11:57:04 +00:00
Marcus Boerger eefdd0ea49 Do not require NEWLINE at start of doccomment 2004-06-10 11:40:34 +00:00
Marcus Boerger 17a363a8f8 BFN 2004-06-10 11:29:15 +00:00
Marcus Boerger e8e4ff0aa1 Bugfix #28699: Reflection api bugs 2004-06-10 11:28:29 +00:00
Dmitry Stogov 0282ad792a Fixed bug #28702 (SOAP does not parse WSDL service address correctly). 2004-06-10 09:07:09 +00:00
622f7679f7 ChangeLog update 2004-06-10 00:32:42 +00:00
Frank M. Kromann 36702d5f41 Allow compilation on Win32.
Need to implement a few Windows specific functions.
2004-06-09 19:27:36 +00:00
Marcus Boerger bd05792560 BFN 2004-06-09 19:26:55 +00:00
Marcus Boerger 4213153365 Fix Bug #28694 ReflectionExtension::getFunctions() crashes PHP 2004-06-09 19:25:42 +00:00
Ilia Alshanetsky f0ffe7c85b Fixed bug #28175 (Allow bundled GD to compile against freetype 2.1.2). 2004-06-09 14:50:05 +00:00
Ilia Alshanetsky 3e638c84c0 Fixed bug #28525 (gmp_powm() does not work with hexadecimal string modulo
represented as a string).
Patch by: pickett at sumu dot org
2004-06-09 14:39:33 +00:00
Ilia Alshanetsky ccc580f408 Fixed memory leak on error in win32's opendir() emulation. (Patch by Wez) 2004-06-09 14:18:14 +00:00
1f73efcaab ChangeLog update 2004-06-09 00:32:35 +00:00
Ard Biesheuvel 4713ce294d Interbase news 2004-06-08 20:25:49 +00:00
Greg Beaver 1f20b7a626 partial fix, bug #1163: rpm build doesn't build properly 2004-06-08 18:26:20 +00:00
Greg Beaver d14e259823 fix bug #1550: Builder does not set path to match bin_dir 2004-06-08 18:15:11 +00:00
Greg Beaver 29a09f984c fix bug #1378: user/pass must be urldecoded from parse_url in Remote.php 2004-06-08 18:03:46 +00:00
Greg Beaver 628e5530b9 fix bug #1153: PEAR command doesn't work after upgrading
reverting earlier fix - people must have register_argc_argv=on set in php.ini for PEAR to work.
2004-06-08 17:56:22 +00:00
Greg Beaver b175cdfd71 fix bug #1581: unhelpful error message if "pear blatch" is typed 2004-06-08 17:49:19 +00:00
Ilia Alshanetsky 49fb6260b6 Fixed bug #1580 (Tidy configuration settings leak memory). 2004-06-08 14:55:14 +00:00
Ilia Alshanetsky b8c9e83664 Fixed bug #28692 (\0 in Authenticate header passed via safe_mode). 2004-06-08 13:23:38 +00:00
Ard Biesheuvel 4ea43fe019 ... back from the dead 2004-06-08 10:04:09 +00:00
Georg Richter 202d2990a9 fixed crash (changed MYSQL TO MY_MYSQL in mysql_stmt_init) 2004-06-08 06:20:58 +00:00
3fc91aff97 ChangeLog update 2004-06-08 00:32:15 +00:00
Andi Gutmans 0bdbbd379e - Go back to -dev (Shouldn't need another RC) 2004-06-07 18:57:34 +00:00
Ilia Alshanetsky ceb70dbc68 Fixed bug #28668 (glob() does not work with relative paths on Windows). 2004-06-07 18:30:16 +00:00
Frank M. Kromann f05924db37 Fix build on win32 2004-06-07 18:03:51 +00:00
Andi Gutmans 6f47156228 - Roll RC3 2004-06-07 14:23:45 +00:00
Ilia Alshanetsky ff5b2d27ae Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode
adds extra spaces).
2004-06-07 13:51:50 +00:00
Georg Richter 1b40042b35 forgot to remove Win32 restrictions for mysql methods 2004-06-07 08:34:52 +00:00
Derick Rethans bcca5b8cb5 - Reorder (again :) 2004-06-07 07:05:33 +00:00
Sara Golemon 3838fb99de MFB: Missing length limit parameter. 2004-06-07 05:00:37 +00:00
1b80f44cf1 ChangeLog update 2004-06-07 00:32:20 +00:00
Pierre Joye d7e86a5669 - No more Pager 2004-06-06 22:49:46 +00:00
Pierre Joye 8217b64a33 - Update for 5.0RC3 2004-06-06 22:49:10 +00:00
Ilia Alshanetsky 9c1e668593 Fixed bug #28649 (Proper glob() return value on Linux when there are no
matches).
2004-06-06 16:21:11 +00:00
Greg Beaver b4ae74ae2c update unit tests for PEAR 1.4.0dev6, using new getDownloadURL() xml-rpc call 2004-06-06 16:05:30 +00:00
Greg Beaver 9304645cf3 add missing $tmp to PEAR::isError() 2004-06-06 15:52:41 +00:00
Greg Beaver 84d9651b61 eliminate the annoyance of upgrading from crapster versions of PEAR once and for all.
Now, if getopt2 exists, it is used, otherwise getopt is used.
2004-06-06 15:04:16 +00:00
Georg Richter f0468116c0 removed conditional defines for load_data_infile_handlers on windows
(4.1.2 windows build is fixed now on mysql.com)
2004-06-06 08:52:19 +00:00
Stefan Esser fb5cb59035 Fixed Zend Function Destructor to use correct TSRM handle. 2004-06-06 08:37:12 +00:00
Sebastian Bergmann 14deb9dd04 ZTS fixes. 2004-06-06 06:40:19 +00:00
ff5fca9aa0 ChangeLog update 2004-06-06 00:33:20 +00:00
Georg Richter 216eb9f82b added mysqli changes 2004-06-05 18:43:31 +00:00
Georg Richter 93bf6517df Major changes for 4.1.2-alpha/4.1.3-beta:
- added container for mysql structure
- added load data infile callback functions (currently disabled under win)
Bug fixes:
- fixed property changes (4.1.1 -> 4.1.2)
- fixed memleak in mysqli_connect
- fixed bug #28100
- fixed bug #28205
- fixed bug #28430
2004-06-05 18:31:56 +00:00
Marcus Boerger 120625548d BFN 2004-06-05 14:59:32 +00:00
Marcus Boerger a6276a2414 Fix #28641: Instance of Interface 2004-06-05 14:59:21 +00:00
Ard Biesheuvel 9579de34d7 Added support for date/time types
Added support for compiling/executing PHP code stored in the database
Added support for TSRM
2004-06-05 10:03:42 +00:00
85c9a200fa ChangeLog update 2004-06-05 00:32:05 +00:00
Ard Biesheuvel 2c97bc2632 Fixed unregistered bug [crash in http_build_query()] 2004-06-04 16:54:14 +00:00
Ilia Alshanetsky f9cec029c8 Fixed bug #28632 (Prevent open_basedir bypass in MySQL's LOAD DATA LOCAL). 2004-06-04 15:26:54 +00:00
Ard Biesheuvel a37ffd814d Added support for scaled integers 2004-06-04 14:26:33 +00:00
Ilia Alshanetsky 0e443166e0 Fixed bug #28627 (When multiple MySQL links are used default link is
leaked).
Patch by: gavin at ipalsoftware dot com
2004-06-04 13:49:31 +00:00
Ard Biesheuvel f1a4a14ccb Added support for arbitrary input types
Added support for NULL input/output values
2004-06-04 13:33:56 +00:00
Sara Golemon ceb73ca019 MFB BugFix# 28626 You can't #ifdef check a typedef. Just give it another name since it's only used once anyway. 2004-06-04 01:03:38 +00:00
89ee6b45ad ChangeLog update 2004-06-04 00:34:01 +00:00
Ard Biesheuvel f4777d14e3 Let DB handle type coercion instead of PHP 2004-06-03 23:18:36 +00:00
Ard Biesheuvel 0223de2c39 Added support for other return types besides VARCHAR 2004-06-03 15:31:17 +00:00
Ard Biesheuvel 38030dac08 Fixed blob ID format 2004-06-03 12:00:23 +00:00
Ard Biesheuvel 5be358667b news 2004-06-03 10:55:27 +00:00
Andi Gutmans 02032ccf9f - Prepare for RC3RC2 2004-06-03 08:17:15 +00:00
40b17e6c5c ChangeLog update 2004-06-03 03:03:17 +00:00
Ard Biesheuvel bf4af0f4ca Ton of fixes 2004-06-02 21:43:31 +00:00
Ard Biesheuvel 86aecbbe31 Initial revision of PHP/Interbase UDF lib
# This will allow users running the embedded engine
# to call PHP functions from inside their SQL statements
2004-06-02 21:15:27 +00:00
Andi Gutmans f7ca8821b2 - Don't use ZEND_MM in Windows 2004-06-02 15:05:10 +00:00
Stanislav Malyshev 176f6d8e6e fix incdec - make value's refcount non-zero when passing to
write_property - otherwise __set caller cleanup could kill it.
2004-06-02 12:48:19 +00:00
c59be44de1 ChangeLog update 2004-06-02 00:32:03 +00:00
Ard Biesheuvel 39edbe5192 Don't be too strict if the number of binding arguments provided exceeds the expected number 2004-06-01 23:31:43 +00:00
Ilia Alshanetsky 6b35037ca2 No need to NULL terminate manually, snprintf() does it for us already. 2004-06-01 21:04:33 +00:00
Ilia Alshanetsky 98a6986d97 Fixed bug #28597 (xmlrpc_encode_request() incorrectly encodes chars in
200-210 range).
Patch by: fernando dot nemec at folha dot com dot br
2004-06-01 20:16:06 +00:00
Ilia Alshanetsky db9f1fafa5 Fixed leak inside MINFO function.
Fixed crash inside enchant_dict_suggest() when there are no suggestions.
Added missing safe_mode/open_basedir check inside
enchant_broker_request_pwl_dict().
Fixed various function prototypes.
2004-06-01 18:59:49 +00:00
Ard Biesheuvel b027552ca3 Removed debugging code 2004-06-01 17:14:47 +00:00
Greg Beaver 5b565c1eb1 update dependency to PEAR 1.4.0dev5 2004-06-01 14:51:49 +00:00
Greg Beaver 27a4b575e8 test files for PEAR are now installable! 2004-06-01 14:29:59 +00:00
Greg Beaver cb0b01f7c2 file needed for registry test 2004-06-01 14:27:54 +00:00
Greg Beaver a0ebaab052 add needed package.xml files for channel tests 2004-06-01 14:15:41 +00:00
Greg Beaver e78e1dd5e8 update to include all new unit tests and files 2004-06-01 13:55:49 +00:00
Greg Beaver 58483c8776 begin work on making the tests installable 2004-06-01 13:45:55 +00:00
Greg Beaver 472de86f8d prepare for actual installable unit tests 2004-06-01 13:22:28 +00:00
Greg Beaver 86953ab0f5 fix unit tests for 1.4.0dev4 2004-06-01 13:11:15 +00:00
Derick Rethans 0ede231c76 - Reorder 2004-06-01 11:54:00 +00:00
Andi Gutmans 6f34d891f5 - NEWS 2004-06-01 11:47:14 +00:00
Andi Gutmans 2e19f82a7f - If user error handler returns "false" then we relay to the built in error
handler
2004-06-01 11:45:46 +00:00
Ard Biesheuvel ff3a363d7a Use constant IBASE_CREATE instead of just 0 2004-06-01 08:38:33 +00:00
Ard Biesheuvel 302fd9a77f Woops, missed one 2004-06-01 00:50:05 +00:00
Ard Biesheuvel 5a8a9a59e2 Fixed bug #28569 (connection id is not thread safe) 2004-06-01 00:44:20 +00:00
95910aa26c ChangeLog update 2004-06-01 00:32:37 +00:00
Marcus Boerger 9b8eee74d9 Refcount must not be set separatley again. 2004-05-31 21:49:52 +00:00
Marcus Boerger 20b60f49d9 Add missing initialization 2004-05-31 21:46:00 +00:00
Marcus Boerger 21315c08b7 Add missing initialization 2004-05-31 21:43:43 +00:00
Marcus Boerger 374ac86e33 #28589: Segfault in Reflection API 2004-05-31 21:38:01 +00:00
Pierre Joye f6354c3a1a MFB: missing ';' 2004-05-31 21:04:21 +00:00
Ilia Alshanetsky 9e970ef9a8 Added missing argument check. 2004-05-31 21:01:29 +00:00
Ilia Alshanetsky 22dfb88bf1 Fix build. 2004-05-31 20:25:37 +00:00
Ard Biesheuvel 3be22062fa Fix typo in error message 2004-05-31 13:43:06 +00:00
Ard Biesheuvel e9125d6338 Improved handling of 'CREATE DATABASE ...' by ibase_query()
Improved param handling of ibase_query() and ibase_execute()
2004-05-31 13:40:25 +00:00
Rob Richards 5b0f34ae80 Fix bug #28584: DOMText::splitText() does not split text properly (benjcarson)
Prototype fixes
2004-05-31 12:50:28 +00:00
Zeev Suraski 7d04465b74 Fix prototypes 2004-05-31 12:27:49 +00:00
Rob Richards 1d82c42493 fix leak when using relaxng
interim fix for isolating our streams handling
- once libxml supports overriding streams this should be changed
  for security reasons
2004-05-31 11:20:46 +00:00
Zeev Suraski 846c5a252e Fix typo 2004-05-31 08:58:32 +00:00
468ae7b88a ChangeLog update 2004-05-31 00:33:13 +00:00
Brad House cae0fd23f0 Update the mcve module for libmonetra 4.0
A compatability layer has been introduced which should mean all
scripts written for v 3.2 of the module should continue working,
as well as compilation should still work against libmcve 3.2.x.
This module eventually needs to be renamed to 'monetra' to reflect
the naming change of the underlying library.
2004-05-30 22:41:24 +00:00
Ard Biesheuvel fda04a0ed3 Restrict 'CREATE DATABASE' in sql safe mode 2004-05-30 20:40:36 +00:00
Ard Biesheuvel 17da85ba9b Fix Win32 build
Added missing 'break'
2004-05-30 20:24:46 +00:00
Ilia Alshanetsky 4a7962b31f Fixed memory leak on ifx_error(). 2004-05-30 18:58:47 +00:00
Ilia Alshanetsky 33d72ede4e Fixed bug #28564 (Problem building informix as a shared extension).
Patch by: roques at mti dot ag
2004-05-30 17:56:52 +00:00
Zeev Suraski a2ea2d7173 Fix prototypes 2004-05-30 17:53:12 +00:00
Ard Biesheuvel 18fa78842d Fix unregistered bug (segfault on uninitialised pointer)
Return string("0 ") from ibase_query() if query succeeded but did not affect any rows
2004-05-30 17:51:19 +00:00
Zeev Suraski e54165e406 No meaning for unsigned 2004-05-30 17:34:11 +00:00
Zeev Suraski e11b518c95 Fix prototype 2004-05-30 17:32:32 +00:00
Greg Beaver 2e7e8f30fc fix unit tests for 1.4.0dev3 2004-05-30 17:02:34 +00:00
Ard Biesheuvel f7ce70672c Use default character set in generated test DB 2004-05-30 16:59:43 +00:00
Ard Biesheuvel bd2ddd9fae Fix HTML/table layout in info() entry 2004-05-30 16:41:28 +00:00
Ard Biesheuvel 56ca01da1f Removed ibase_timefmt() - use ini_set() instead
Improved phpinfo() appearance
2004-05-30 16:20:25 +00:00
Zeev Suraski 8b861ec798 Update to PHP-style prototypes
(a PHP function returning char *?  What were you smoking? :)
2004-05-30 15:12:08 +00:00
Brad House 43db887482 manually check for egrep 2004-05-30 14:33:45 +00:00
39729083ee ChangeLog update 2004-05-30 00:32:48 +00:00
Wez Furlong bd818c0118 Turn this off then 2004-05-29 09:27:18 +00:00
Greg Beaver a865b5d0c7 testing file 2004-05-29 09:21:31 +00:00
Greg Beaver 09ee88f9bf modify php_dump.php, .cvsignore ignores *.php
move include to the place where it is used
2004-05-29 09:09:46 +00:00
Greg Beaver 71e0c354ff update _installFile() test for channels 2004-05-29 09:06:09 +00:00
Greg Beaver 32fd0f3ffa update checkDeps/extractDownloadFilename tests for channels 2004-05-29 09:03:43 +00:00
Greg Beaver 478aff5c22 update registry test for channels 2004-05-29 09:02:47 +00:00
Greg Beaver 73124c04be use fake pearweb - now anyone can run the download unit tests.
These tests require channels to pass
2004-05-29 09:02:26 +00:00
Greg Beaver d4070174d8 fake pearweb package files, for unit testing downloads without an installed pearweb 2004-05-29 09:00:52 +00:00
Greg Beaver d87e221f44 config unit tests, ready for channels 2004-05-29 08:59:26 +00:00
Greg Beaver 918d45198a new unit tests
pearweb mock object is complete
2004-05-29 08:51:59 +00:00
Greg Beaver 8c5c17c3a1 update for conflicting file test 2004-05-29 08:49:01 +00:00
Greg Beaver 1f31e7ddea new package.xml needed to test conflicting files error 2004-05-29 08:48:01 +00:00
ba2b5623c3 ChangeLog update 2004-05-29 00:32:22 +00:00
Wez Furlong 7171429f21 Don't rely on TIOCNOTTY. 2004-05-29 00:30:11 +00:00
Ard Biesheuvel 5f53ee1537 Changed default date format to ISO
Enable sync flag in connect()
2004-05-28 23:39:33 +00:00
John Coggeshall 6b02a01c20 'tidy' should not be final, but 'tidyNode' should be. 2004-05-28 20:32:52 +00:00
Ard Biesheuvel 850c6a27f6 Fix commit/rollback of multi-link transactions
Some CS
2004-05-28 20:11:34 +00:00
Andrei Zmievski 915a990330 Allow user-defined error handlers to indicate whether default error
handler should be re-invoked, by returning true or false.
2004-05-28 17:28:33 +00:00
Ilia Alshanetsky 6544f8d47e Fixed memory leak on error. 2004-05-28 14:17:46 +00:00
Ilia Alshanetsky e389e255e6 The engine will take care out-of-memory situation for us. 2004-05-28 14:14:26 +00:00
Stefan Esser 23813d603c Fixed off-by-one in http_fopen_wrapper 2004-05-28 13:38:06 +00:00
Wez Furlong 54bbe548fe Hopefully resolve proc_open build issues.
If we need anything more elaborate than this, then we can move to a configure
time check as Sascha suggests.
2004-05-28 13:25:51 +00:00
Christian Stocker c59471cd1f fix memleak in php callbacks 2004-05-28 13:04:19 +00:00
Stefan Esser 2e3b9ec278 Fixed off-by-one in php_parse_url. 2004-05-28 11:33:23 +00:00
Derick Rethans 27344aaed6 - Added date/time parser thingy. 2004-05-28 10:47:15 +00:00
Derick Rethans f964cc09d2 - Fixed ip2long() behavior if an invalid IP address was passed to the
function. This makes it possible to distingiush between "255.255.255.255"
  and a wrong one.
2004-05-28 10:45:18 +00:00
Marcus Boerger 9797f49466 Add more outstanding patches 2004-05-28 09:14:44 +00:00
Marcus Boerger 0aceba0a8d Remove finished tasks 2004-05-28 09:12:07 +00:00
Marcus Boerger a8ced60e04 Remove finished tasks 2004-05-28 09:06:56 +00:00
Marcus Boerger 9d76829963 Add more things 2004-05-28 09:03:00 +00:00
Marcus Boerger 0ef420a71e Prevent possible problems with illegal properties 2004-05-28 08:55:10 +00:00
Derick Rethans 877ecb3c81 - Make the default mask for user defined error handlers include ALL errors,
including E_STRICT.
2004-05-28 08:08:56 +00:00
7489718769 ChangeLog update 2004-05-28 00:31:45 +00:00
Ilia Alshanetsky df71910d0e Better skip condition check for session tests. 2004-05-27 20:53:26 +00:00
Andrei Zmievski 844e7eb945 5.1 tasks. 2004-05-27 16:22:47 +00:00
Andi Gutmans e51105c6a6 - Back to RC3-dev until we roll final 2004-05-27 15:03:46 +00:00
Wez Furlong b369925372 Fix #25939 for good this time.
# How could I miss this??
2004-05-27 13:04:14 +00:00
Derick Rethans ab34eb7330 Put similar items next to eachother 2004-05-27 12:28:41 +00:00
Andi Gutmans d470f93506 - More news 2004-05-27 12:01:14 +00:00
Andi Gutmans bca3e30484 - Fix problem with exceptions returning from include(). (Dmitry) 2004-05-27 11:59:58 +00:00
Andi Gutmans 5a9d648f1f - RC3RC1 2004-05-27 11:39:35 +00:00
Rob Richards edae935c26 namespace/tagname validation fixes (Adam Trachtenberg)
added new test
2004-05-27 11:15:45 +00:00
Andi Gutmans 7f887852a6 - NEWS 2004-05-27 08:30:14 +00:00
Dmitry Stogov 99a0504a6b Memory leaks were fixed 2004-05-27 08:19:29 +00:00
Dmitry Stogov 2b3e184245 BUGFIX: Prevent crash on error in send_http_soap_request() 2004-05-27 07:58:22 +00:00
e3e7ef94a5 ChangeLog update 2004-05-27 00:32:10 +00:00
Wez Furlong 6f5c0992a3 Fix leak on systems where alloca isn't really alloca. 2004-05-26 22:19:44 +00:00
Wez Furlong dd9ac710f1 Fix silly mistake.
Thanks Antony :)
2004-05-26 21:19:21 +00:00
Andrei Zmievski 81efd46186 Avoid unnecessary and silly copying of constant name when registering. 2004-05-26 21:01:37 +00:00
Andi Gutmans 97dee3a8c2 - Fix memory manager problem 2004-05-26 20:55:16 +00:00
Ilia Alshanetsky b59d5af951 Prepare for 0.2 release. 2004-05-26 20:25:58 +00:00
Ilia Alshanetsky 190227899a Turn off session.auto_start to prevent test failures. 2004-05-26 18:23:21 +00:00
Ilia Alshanetsky de58df089f Prevent test failure when fi_FI locale is not available. 2004-05-26 18:18:14 +00:00
Pierre Joye 07e4ab6946 - Remove this test, it still segfaults anyway (less noise in tests :) )
Already removed in PHP_4_3 branch
2004-05-26 18:12:43 +00:00
Andi Gutmans b5daf7078e - Use FREE_HASHTABLE instead of efree() 2004-05-26 18:00:27 +00:00
Edin Kadribasic 9cc4fb18b6 PQfreemem() is only available in 7.4 2004-05-26 17:45:03 +00:00
Wez Furlong 429bce6519 Apparently it is better to specify 500 here for unix98 bits and pieces. 2004-05-26 14:55:32 +00:00
Wez Furlong 6ef90672d8 Fix build... 2004-05-26 10:11:20 +00:00
Sebastian Bergmann 2fbfcd7482 Update Reflection API class names. Whitespace fixes. 2004-05-26 07:00:39 +00:00
Derick Rethans 17df3ec21b - Fixed bug #28523 (Typo in ext/sockets/sockets.c) 2004-05-26 06:53:04 +00:00
c50a4252cd ChangeLog update 2004-05-26 00:33:37 +00:00
Stefan Esser 7dc95709c8 break is better 2004-05-25 22:12:40 +00:00
Wez Furlong 2e73bbfdc1 Allow use of scrollable cursor for ODBC 2004-05-25 18:57:50 +00:00
Wez Furlong 70bd032076 Use the correct label for the error message 2004-05-25 18:34:46 +00:00
Wez Furlong d13d9c6047 Allow setting the cursor name for ODBC statements, so that:
UPDATE foo set .... WHERE CURRENT OF <NAME>

statements will work.
2004-05-25 18:33:51 +00:00
Wez Furlong d2a8d5a80f get/set attributes for statements 2004-05-25 18:32:48 +00:00
Wez Furlong 4d232fb17c Add flag to control the use of the ODBC cursor emulation library.
The default (which should be safe) is to use the cursor library if it is needed.
If for some reason either the driver or the emulation is broken, you may
override this from your script.
2004-05-25 17:44:36 +00:00
Wez Furlong 7a87af3321 Some definitions for cursors.
Define a mechanism for driver-specific attributes.
Use a refcount for the stmt structure.
2004-05-25 17:43:24 +00:00
Edin Kadribasic c7a2cf7385 Whitespace: editor in the wrong mode ;) 2004-05-25 17:38:58 +00:00
Edin Kadribasic 16a53a00ea Add transaction support 2004-05-25 17:36:22 +00:00
Brad House 7f44f8ee94 PHP_SETUP_OPENSSL is NOT SNMP_SHARED_LIBADD, it's MCVE_SHARED_LIBADD
requires AC_PROG_EGREP when you phpize
2004-05-25 17:08:42 +00:00
Ilia Alshanetsky cf75eb8a6f Cleanup. 2004-05-25 16:49:32 +00:00
Ilia Alshanetsky 402de24fc4 One more leak down. 2004-05-25 16:40:54 +00:00
Ilia Alshanetsky b7ecaca17f More leak fixes. 2004-05-25 16:38:28 +00:00
Edin Kadribasic ff1cbb8460 Use binary safe function for quoting 2004-05-25 16:24:29 +00:00
Antony Dovgal 737bc357cb fix couple of memory leaks 2004-05-25 14:57:56 +00:00
Ilia Alshanetsky 0c762dff03 More possible leak fixes (Thanks Tony). 2004-05-25 14:47:22 +00:00
Ilia Alshanetsky 2685fad6b7 Fixed memory leak. 2004-05-25 14:39:26 +00:00
Ilia Alshanetsky 9280b88a8c One more memory leak. 2004-05-25 14:35:49 +00:00
Ilia Alshanetsky d782abf416 More leak fixes. 2004-05-25 14:30:07 +00:00
Andi Gutmans 2917ff1e7d - Nuke unused decleration 2004-05-25 14:19:19 +00:00
Ilia Alshanetsky ce3891347f Fixed memory leak. 2004-05-25 14:12:15 +00:00
Ilia Alshanetsky 6304e5d7cb Kill unused var. 2004-05-25 13:51:00 +00:00
Wez Furlong 1360e3478c Merge that nicer error message here too 2004-05-25 13:25:22 +00:00
Wez Furlong 6873d6839d *sigh*, obviously, we need this to be able to use sapi_module.name 2004-05-25 13:23:20 +00:00
Wez Furlong ff0ee48537 DEBUG -> PHP_DEBUG 2004-05-25 13:17:01 +00:00
Wez Furlong 7916ef2ee1 Allow sqlite to build as a shared ext under win32 2004-05-25 13:01:05 +00:00
Wez Furlong 146255f35c check if it matches... not if it doesn't... 2004-05-25 13:00:25 +00:00
Wez Furlong c6dff79138 In debug mode, under CLI don't close stderr.
This is so that we can see any error reports.

# for extra paranoia, could limit this check to happen only after the script is
# finished running.
2004-05-25 12:59:15 +00:00
Wez Furlong 32956a25bf add "clean-pecl" rule for nuking pecl objects 2004-05-25 12:57:45 +00:00
Wez Furlong a4f03b8086 Tidy this up a little bit for win32. 2004-05-25 12:44:35 +00:00
Wez Furlong e6551f081d Throw exception during ctor 2004-05-25 12:03:41 +00:00
Andi Gutmans 02884a08f5 - More fixes 2004-05-25 10:09:46 +00:00
Andi Gutmans 6704ab4b35 - Make fix compile. 2004-05-25 09:25:22 +00:00
Andi Gutmans db90fc4c90 - Fix memory leak in mem cache in conjunction with Zend MM. How come no one
- noticed this? :)
2004-05-25 08:33:11 +00:00
1e36c786ae ChangeLog update 2004-05-25 00:32:04 +00:00
Pierre Joye 5b71225f1b - Fix #28506, negative angle returns "random arcs"
while (angle < 0) angle += 2*M_PI is used now
2004-05-24 19:52:28 +00:00
Ilia Alshanetsky 396bf39311 Fixed bug #28508 (Do not make hypot() available if not supported by libc). 2004-05-24 17:02:12 +00:00
Wez Furlong 81b3231b5d Moved pdflib extension to PECL 2004-05-24 16:41:41 +00:00
9926a97e26 ChangeLog update 2004-05-24 00:32:46 +00:00
Andi Gutmans 0b0c5d3fac - Fix problem with object being destroyed more than once 2004-05-23 20:33:09 +00:00
Andi Gutmans ef9878647d - Fix the following script (it crashed):
<?php
   class ErrorHandler {
     function __construct() {
       set_error_handler(array(&$this, 'handle'));
     }

     function __destruct() {
       restore_error_handler();
     }

     function handle($code, $msg, $file, $line, $locals) {
     }
   }

   new ErrorHandler();
?>
2004-05-23 20:27:32 +00:00
Ilia Alshanetsky e4c5e85697 Fixed leaks on fatal errors in tidy. 2004-05-23 17:22:21 +00:00
Andi Gutmans bd892a164b - NEWS 2004-05-23 16:24:21 +00:00
Andi Gutmans c495c54069 - Fix typo although it isn't being built 2004-05-23 16:05:09 +00:00
Andi Gutmans e410a0f5b1 - Fixed bug #27640 memory leak of registered_zend_ini_directives (Dmitry) 2004-05-23 16:02:36 +00:00
Andrey Hristov 4760dd4fc5 adding this 2004-05-23 15:26:55 +00:00
Andrey Hristov 794065776a Ansrei reverted this 2004-05-23 15:21:38 +00:00
Wez Furlong ad99c124c4 Finally a fix for #23220: IIS does not cleanly close SSL connections.
Also enable the safe and recommended bug work around options in the SSL
context.
2004-05-23 10:36:08 +00:00
Stefan Esser bed3f4ce0b This is more correct. 2004-05-23 10:00:59 +00:00
Greg Beaver ad57096a8b Fix #1395: PEAR_ErrorStack::staticCallback needs to instantiate the stack
Fix up default callback, so that it can be set for each package as well as for all packages.

Callbacks now have 3 levels of control, which may be a bit too complex, default callbacks might have to go for debugging reasons.  Either that or some kind of origination information should be appended to the error array describing which callbacks were called, so debugging is at least possible
2004-05-23 06:06:10 +00:00
Greg Beaver 6f7d0b2a6a in preparation for testing all remote functionality, use a mock object for a functioning pearweb server 2004-05-23 05:33:25 +00:00
a4de015ec7 ChangeLog update 2004-05-23 00:33:49 +00:00
Wez Furlong 055848d83a prep for release 2004-05-22 20:58:36 +00:00
Ard Biesheuvel 8b1fca9e3a Use dummy status vector in ibase_connect()
Added fbird_ aliases for all ibase_ functions
# See comment in code for more info
# Please let me know if there are any namespace issues involved
2004-05-22 18:50:58 +00:00
Wez Furlong d39117c234 Fix buglet in dbh closing. 2004-05-22 15:04:26 +00:00
Wez Furlong 35494bb569 Enable ODBC Connection Pooling.
Theoretically better than PHP persistent connections, since ODBC itself takes
care of resetting the connections back to a "ground" state.

Connection pooling defaults to ON, since this is generally useful.
You can turn it off by using:

pdo_odbc.connection_pooling=off

in your php.ini file.

You may configure how ODBC matches connection details to existing connections
by setting this value to "strict" (the default) or "relaxed".  You are
encouraged to read the ODBC specs before changing this value.
2004-05-22 14:51:26 +00:00
Wez Furlong ce5e317cc5 ok MSVC, why didn't you spot *that* one?? 2004-05-22 00:38:11 +00:00
e136b9311c ChangeLog update 2004-05-22 00:32:18 +00:00
Wez Furlong 8d9c384f7f Fix doer()
Implement error handling for ODBC
2004-05-22 00:30:00 +00:00
Ilia Alshanetsky b4ef3d186a Add self to credits. 2004-05-21 22:45:27 +00:00
George Schlossnagle 84cfbe5efe pierre's thingy 2004-05-21 22:36:52 +00:00
George Schlossnagle e872491f80 /me learns to read 2004-05-21 22:30:58 +00:00
George Schlossnagle 88942c9834 both places 2004-05-21 22:27:30 +00:00
George Schlossnagle 553698f35d drop the dev 2004-05-21 22:27:02 +00:00
Wez Furlong 758b7f1ad4 Bump the version number 2004-05-21 22:26:45 +00:00
George Schlossnagle 4d01a5c2d1 ok, apprently we _don't_ want to count the nulls. 2004-05-21 22:24:20 +00:00
George Schlossnagle 1ee89e1bea remove debugging 2004-05-21 22:20:25 +00:00
George Schlossnagle 518cf77f32 fix fubar'd emulated bindings 2004-05-21 22:19:33 +00:00
Wez Furlong dc57cff2a6 Prep for release 2004-05-21 21:20:00 +00:00
Timm Friebe 3a168b52e7 - Fixed expected return value from test #2
Invalid resources yield bool(false) in PHP5, NULL in PHP4
2004-05-21 21:01:21 +00:00
Timm Friebe 342d7b6968 - Removed currently leaking auto-cancel test
- Fixed expected return value from sybase_num_rows() when an
  invalid resource is passed (returns false instead of NULL)
2004-05-21 20:54:39 +00:00
Timm Friebe df5396677d - Fixed expected return value from var_dump()
- Cleaned up SQL statement
# This bug has been fixed, but this test should be kept anyways,
# just to make sure it does not reappear
2004-05-21 20:53:01 +00:00
Timm Friebe 8eac91345b - Fixed bug #28354 2004-05-21 20:29:38 +00:00
Timm Friebe b20be6a27b - Initial release 2004-05-21 19:45:55 +00:00
Edin Kadribasic 640bed4cf5 Prepare release 2004-05-21 19:09:43 +00:00
Wez Furlong 40ab777dc8 Update package/module 2004-05-21 17:33:58 +00:00
Wez Furlong 25049d6cf8 Add some blurb 2004-05-21 17:31:49 +00:00
Wez Furlong 9462eb6db5 Ok, so we do need to rinit here after all. 2004-05-21 17:17:55 +00:00
Wez Furlong fbccd1438c Update to reflect recent changes in dl() 2004-05-21 17:08:36 +00:00
Wez Furlong 597124e128 Update package/module 2004-05-21 16:53:32 +00:00
Wez Furlong 500922f9a2 Update package file 2004-05-21 16:38:41 +00:00
Wez Furlong e419d735c4 Better error message to save looking in the wrong place. 2004-05-21 16:36:37 +00:00
Ilia Alshanetsky 3a5e5ca4d4 Implement ODBC doer. 2004-05-21 16:17:22 +00:00
Wez Furlong 798d437b05 Fix return type here too 2004-05-21 15:33:18 +00:00
Wez Furlong a53edd047e Fix return type 2004-05-21 15:29:09 +00:00
Wez Furlong 5e408e4ee9 Fix setAttribute for oci.
Fix some compiler warnings
2004-05-21 15:25:22 +00:00
Derick Rethans 42bc9637b2 - Fixed order (again) 2004-05-21 15:09:34 +00:00
Dmitry Stogov b9bb0d77a0 Fixed bug #28239 (No results returned on SOAP call, no error given) 2004-05-21 14:50:19 +00:00
Wez Furlong d8d7dd7e14 Allow lazy fetch to work with numeric offsets.
Fix named parameters...
2004-05-21 14:31:51 +00:00
Ilia Alshanetsky 37d8a82b4d Fixed compiler warning. 2004-05-21 14:27:48 +00:00
Ard Biesheuvel c6773a06cd Removed strcpy() call from most common case
Added test for hash index generation
2004-05-21 14:24:34 +00:00
Wez Furlong 64f0ec7bde Update for placeholder flags 2004-05-21 14:15:03 +00:00
Wez Furlong 8f5b212612 store the name length in the same manner as it is stored in zvals 2004-05-21 14:14:32 +00:00
Wez Furlong ed83c5bee5 Tidy up placeholder flags 2004-05-21 14:09:51 +00:00
Ard Biesheuvel 27c3c301bd Added test for duplicate field names when returning rows as hashes or objects
# This change should be in 5.0.0, as it might break BC
2004-05-21 13:46:04 +00:00
Wez Furlong bf48daa8d5 Version 1 of PDO_FETCH_LAZY 2004-05-21 13:26:58 +00:00
Ard Biesheuvel 126531a44b Make sure METADATALENGTH is defined (used by IB 7) 2004-05-21 13:14:56 +00:00
Derick Rethans cb1e4ab6c8 - Fixed TSRM problem in latest commit. 2004-05-21 08:16:13 +00:00
Derick Rethans bc7ad69fbc - Fixed bug #28456 (Problem with enclosed / in uploaded file names) 2004-05-21 08:11:43 +00:00
Greg Beaver f30b95fcf0 fix missing assignment
$this->_errors = array_filter($this->_errors);
2004-05-21 03:43:58 +00:00
Greg Beaver 981948641c fix for BC break
staticGetErrors adds the parameter $level between $purge and $merge, as it will be as common (or more common) as $purge.
2004-05-21 03:33:51 +00:00
Greg Beaver aaa7263bdd Several issues resolved.
fix 1444: PEAR_ErrorStack->push() needs to validate $msg and $code as string/int
add error level checking to hasErrors() and getErrors().
BC break!!:
staticGetErrors adds the parameter $level between $purge and $merge, as it will be as common (or more common) as $purge.
2004-05-21 03:33:19 +00:00
3d9c47eed0 ChangeLog update 2004-05-21 00:39:44 +00:00
Ilia Alshanetsky 9cccfa57b6 Fixed stream leak on error. 2004-05-20 23:37:59 +00:00
Wez Furlong 221710e820 Specify that OCI returns column names in upper case by default 2004-05-20 22:29:26 +00:00
Wez Furlong f0a001a953 Implement case folding of column names as a portability option. 2004-05-20 22:28:53 +00:00
Ilia Alshanetsky 41784bfcff Kill unused var. 2004-05-20 22:24:30 +00:00
Wez Furlong e0ac3f66ae Implement PDO_FETCH_OBJ
# todo (after initial release) - specify a particular class, reuse existing
# objects etc.
2004-05-20 22:06:42 +00:00
Wez Furlong 4cdf143184 Fix build on win32 2004-05-20 21:50:25 +00:00
Andrey Hristov 19d0283ce8 for now removing ":public". Waiting for a decision? ":public" will require
quite a lot of phpt files changes.
2004-05-20 21:15:42 +00:00
Andrey Hristov 44de5a0e8e fixing the tests so to work with the new var_dump() (dumping private and
protected member variables)
2004-05-20 21:13:14 +00:00
Ilia Alshanetsky 43a04beb46 Make username & password parameters optional. 2004-05-20 20:25:22 +00:00
Ilia Alshanetsky afb3979882 Fixed parameter order. 2004-05-20 20:22:07 +00:00
Ilia Alshanetsky ebd608ba18 Added getAttribute() handler.
Fixed leak inside exec().
2004-05-20 20:04:11 +00:00
Edin Kadribasic 7f6343e60d Use native PostgreSQL connect string e.g.
$db = new PDO("pgsql:dbname=template1 user=postgres password=secret");
2004-05-20 19:58:51 +00:00
George Schlossnagle e155ad208a sigh... need to include the null byte in hash keys 2004-05-20 19:19:04 +00:00
Ilia Alshanetsky 15fb957c61 Added MySQL getAttribute() support. 2004-05-20 19:17:32 +00:00
Wez Furlong 5023a7c61c Enable setting the different error modes via PDO::setAttribute() 2004-05-20 19:16:49 +00:00
Ilia Alshanetsky 726e188cce Fixed typo. 2004-05-20 19:14:44 +00:00
Ilia Alshanetsky 42a2b22a4a Added missing user-land constants. 2004-05-20 19:12:24 +00:00
Edin Kadribasic 9cfeb25667 We quote with ' in real databases 2004-05-20 19:09:36 +00:00
Ilia Alshanetsky e596466a1f Added getAttribute() method. 2004-05-20 19:09:35 +00:00
George Schlossnagle b7b7bedabd remove debug 2004-05-20 18:50:21 +00:00
George Schlossnagle c22cb0477c off by one error 2004-05-20 18:44:12 +00:00
George Schlossnagle 3366916203 set active_query_string to null in case of failure 2004-05-20 18:29:59 +00:00
Ilia Alshanetsky 1c2b47c408 Make sure that the error string is freed. 2004-05-20 18:19:03 +00:00
Ilia Alshanetsky b7784d96b0 Fixed possible crash. 2004-05-20 18:10:16 +00:00
Ilia Alshanetsky cf33729c20 Better error message. 2004-05-20 18:05:44 +00:00
Ilia Alshanetsky f8d045619a Last insert id (oids) support. 2004-05-20 18:00:24 +00:00
Wez Furlong 3ec72d3ed9 Revert; obviously I missed the function at the bottom of the file... 2004-05-20 17:59:27 +00:00
George Schlossnagle d16625b803 Support ? as a bind in emulated prepares
Throw informative error when pdo_parse_param fails
2004-05-20 17:56:09 +00:00
Andrey Hristov aafb2b1581 var_dump() now shows private and protected member variables.
Not BC is that since now the public variables are explicitly shown as public
Example :

class a{ protected $a=1; private $b=2;var $c=3;} $a=new a(); var_dump($a);

object(a)#1 (3) {
  ["a:protected"]=>
  int(1)
  ["b:private"]=>
  int(2)
  ["c:public"]=>
  int(3)
}
2004-05-20 17:46:20 +00:00
Ilia Alshanetsky 38eb52b8a7 Make doer() work.
Make error reporting system work.
2004-05-20 17:43:56 +00:00
Wez Furlong 892ec5f535 Export this, so extensions may throw their own exception objects that
they have already instantiated.
2004-05-20 17:41:09 +00:00
George Schlossnagle e3e2370490 keys need to be null-terminated (how did this not get committed before???)
bind-by-name includes the leading : in the name
2004-05-20 17:34:52 +00:00
Wez Furlong 04ccc0134d Add methods for error handling 2004-05-20 17:22:13 +00:00
George Schlossnagle 76b7b5d1e2 iactually support :\w+ as binds 2004-05-20 17:04:57 +00:00
Derick Rethans ee9cc68848 - Removed unused INI sections. 2004-05-20 17:03:24 +00:00
Dmitry Stogov 38ef28e41b Allowing user defined SOAP transports with SoapClient::__doRequest() 2004-05-20 16:55:03 +00:00
Wez Furlong af2aa721df zts fix ;) 2004-05-20 16:17:37 +00:00
Ilia Alshanetsky 40b04cd54b Correctly report errors for statment problems. 2004-05-20 16:13:13 +00:00
Ilia Alshanetsky 0d6aa20880 Error handling support.
Fixed possible crash when trying to fetch data from a failed query.
2004-05-20 15:51:25 +00:00
Ilia Alshanetsky fbbb41a53b Fixed typo. 2004-05-20 15:45:16 +00:00
Ilia Alshanetsky e770b2b411 Fixed compiler warnings. 2004-05-20 13:57:09 +00:00
Wez Furlong d55e20660b Don't dup here either 2004-05-20 10:30:29 +00:00
Wez Furlong 0699938bc4 Don't dup here, PDO will do it as needed 2004-05-20 10:28:26 +00:00
Derick Rethans dcb0ee6ec4 - Allow extra parameters to mail to be forced also from virtual host settings. 2004-05-20 10:24:39 +00:00
Wez Furlong d9decf0dfc Fix prototype.
Use user-supplied path before the default when looking for headers
2004-05-20 10:24:17 +00:00
Edin Kadribasic fa1b0a51d3 Make it compile on windows 2004-05-20 03:02:58 +00:00
Edin Kadribasic 9d6c259988 PostgreSQL PDO driver. 2004-05-20 02:27:49 +00:00
9f5e4a19be ChangeLog update 2004-05-20 00:33:36 +00:00
Ilia Alshanetsky 28aca30c13 Free vars before calling E_ERROR. 2004-05-20 00:11:23 +00:00
Wez Furlong 04c35e3d91 re-jig error handling, and make it co-operate with the PDO error handling system.
Implement $dbh->exec() for OCI.
2004-05-20 00:06:30 +00:00
Wez Furlong e7c72f8455 First cut at a "unified" error handling API. The main thing that is missing
currently is a switch in the dbh to indicate what to do with the errors.
2004-05-20 00:05:22 +00:00
Wez Furlong 08ce920c9e Fix win32 build 2004-05-19 21:36:22 +00:00
Marcus Boerger 0a242a52b3 - Allow to build with ext/mysqli 2004-05-19 20:57:02 +00:00
Marcus Boerger fd90645613 - Allow to compile as builtin module 2004-05-19 20:56:06 +00:00
Ilia Alshanetsky 862247693f Row count cannot be calculated in MySQL without buffering the query. 2004-05-19 20:44:28 +00:00
Ilia Alshanetsky c98a99c263 Added fetchAll and fetchSingle methods for data retrieval. 2004-05-19 20:38:53 +00:00
Ilia Alshanetsky 676dfcf581 Timeout stuff. 2004-05-19 20:38:25 +00:00
Ilia Alshanetsky f4b5abc948 Added support for setting timeout value. 2004-05-19 20:34:57 +00:00
Ilia Alshanetsky 56abe4de4a Prevent possible crash when working with column containing NULL. 2004-05-19 20:34:01 +00:00
George Schlossnagle 38a409c02f exec() now returns affected row count 2004-05-19 19:31:33 +00:00
George Schlossnagle 129997216b exec() now returns row count 2004-05-19 19:27:53 +00:00
George Schlossnagle ee1241ab1a builds on stock rh9 now 2004-05-19 18:51:01 +00:00
Frank M. Kromann 7c5c0fbbea Set correct Win32 line endings and fix ZTS compilation 2004-05-19 18:04:47 +00:00
Ilia Alshanetsky 074ba3fbc0 Added lastInsertId() method for retrieving last insert id.
Made affectedRows() work for MySQL.
Populate error value in MySQL on error.
2004-05-19 17:35:39 +00:00
Ilia Alshanetsky 5a4c3234b9 Skip spaces between connection params. 2004-05-19 17:09:48 +00:00
Ard Biesheuvel fd7a92f046 Fixed unregistered bug (memory leak in printf() & friends) 2004-05-19 16:46:29 +00:00
Ilia Alshanetsky a5a908c4bf Better include path detection. 2004-05-19 16:26:06 +00:00
Wez Furlong 1a91f75193 Add simple error code values and a place to store them 2004-05-19 16:21:43 +00:00
Wez Furlong 641f2c0c40 Let it install correctly when built via phpize 2004-05-19 15:27:27 +00:00
Ilia Alshanetsky c328a15469 More errno stuff. 2004-05-19 15:17:52 +00:00
Ilia Alshanetsky 3dddc0bade Fixed possible crash on connection error. 2004-05-19 15:14:55 +00:00
Ilia Alshanetsky b5f8bd8e9e Simplify config via the use of mysql_config.
Fixed errno naming conflict.
2004-05-19 15:12:05 +00:00
Ilia Alshanetsky c11d6ca38b Copy the headers 2004-05-19 14:27:32 +00:00
Edin Kadribasic bbcf09a833 Typo 2004-05-19 14:23:59 +00:00
Edin Kadribasic e8abbca3a6 Fix configure 2004-05-19 14:02:36 +00:00
Wez Furlong fd6b885a19 Revise $dbh->exec().
The driver doer() method should populate dbh->affected_rows if it can determine its value.
2004-05-19 13:55:41 +00:00
Wez Furlong 6cd27ff8be Add $dbh->exec() method.
Rename $dbh->beginWork() to $dbh->beginTransaction().
2004-05-19 13:43:07 +00:00
Ilia Alshanetsky a0b3e87003 Abort if driver cannot be registered. 2004-05-19 13:34:40 +00:00
Edin Kadribasic 7a214b66ae Cosmetics 2004-05-19 13:28:05 +00:00
Ilia Alshanetsky 741e31bdf3 Removed unused vars. 2004-05-19 13:27:54 +00:00
Wez Furlong 777484b561 update prototype 2004-05-19 12:40:50 +00:00
Wez Furlong f7de5001e2 Update prototype 2004-05-19 12:40:31 +00:00
Wez Furlong 8759648192 Update prepare() prototype.
Attempt to hunt down the cause of a build warning under win32 by adjust the
name of the error function.
2004-05-19 12:40:11 +00:00
Wez Furlong 4116d9fb0e Expand the prepare() prototype to accept additional options. 2004-05-19 12:37:31 +00:00
Sebastian Bergmann 681ded13bc ZTS fix. 2004-05-19 09:23:15 +00:00
Marcus Boerger 29cfd6d24f - Remove unused blocks 2004-05-19 08:56:50 +00:00
Marcus Boerger d94136fc30 - Remove unused blocks 2004-05-19 08:45:46 +00:00
bd29f379e7 ChangeLog update 2004-05-19 00:34:15 +00:00
Ilia Alshanetsky 65e1741d2d Fixed possible memory leak. 2004-05-18 23:26:53 +00:00
Ilia Alshanetsky 46eb5401e7 Better header detection. 2004-05-18 23:07:22 +00:00
Ilia Alshanetsky aecad9e37b Fixed build. 2004-05-18 22:45:53 +00:00
Ilia Alshanetsky cb1239a338 Allow static builds. 2004-05-18 22:31:13 +00:00
Marcus Boerger 007a076cd0 Fix test 2004-05-18 21:27:08 +00:00
Marcus Boerger c8e72410be - Need to operate on module pointer in hash table 2004-05-18 21:19:15 +00:00
Wez Furlong 8d9ced8282 Fix #27638: not cleaning up object files in win32 build 2004-05-18 21:07:01 +00:00
George Schlossnagle f02fb4ada4 should be a strcmp, not a strncmp, thanks, wez 2004-05-18 20:57:19 +00:00
Marcus Boerger 6882000c53 - Make start and length parameter to Limititerator::__construct optional 2004-05-18 20:39:35 +00:00
George Schlossnagle 8233053d24 was leaking query_string's 2004-05-18 20:33:30 +00:00
George Schlossnagle 5f4cfcb009 support the read-only property 'queryString' 2004-05-18 20:26:24 +00:00
Wez Furlong d80297b251 Fix bug #28438: win32 build fails in non-zts mode 2004-05-18 20:14:54 +00:00
George Schlossnagle 2e4c3ea35f forgotten off the last commit 2004-05-18 19:30:43 +00:00
Wez Furlong c4ca0f3378 Give user a nice message when PDO isn't initialized prior to a driver. 2004-05-18 19:30:22 +00:00
Wez Furlong b54a4dfeeb Minor tweaks 2004-05-18 19:25:45 +00:00
Wez Furlong bdd4b84c29 typo.. 2004-05-18 19:25:23 +00:00
Wez Furlong df69bf6c06 mySQL, not Oracle ;) 2004-05-18 19:06:47 +00:00
Wez Furlong 9ec5c3526e Add to win32 build 2004-05-18 19:03:27 +00:00
Ilia Alshanetsky caed65f547 Fixed search path for MySQL. 2004-05-18 18:42:36 +00:00
George Schlossnagle 71728cc2b2 initial import of mysql 3.x pdo driver 2004-05-18 18:01:52 +00:00
Stanislav Malyshev da26db3054 Z_TYPE_P is for zvals 2004-05-18 16:13:57 +00:00
Wez Furlong 17d009c3b4 Update generated parser 2004-05-18 15:58:17 +00:00
Wez Furlong e37b622d3f Add parser to win32 build 2004-05-18 15:58:00 +00:00
Wez Furlong 2a9fa24458 Tweaks for win32 2004-05-18 15:57:46 +00:00
George Schlossnagle 85e3a1bc3b for those without re2c 2004-05-18 15:38:25 +00:00
Wez Furlong f76725902b Fix dl() and extension= 2004-05-18 15:26:32 +00:00
Wez Furlong b949bfe651 Register according to the type specified by the module.
(Helps to fix dl() bug)
2004-05-18 15:26:13 +00:00
George Schlossnagle 70f06be16a license/copyright block 2004-05-18 15:22:58 +00:00
George Schlossnagle a97e1a6646 handle binding/quoting of queries for drivers with emulated prepares 2004-05-18 15:19:31 +00:00
Ilia Alshanetsky 3e0cbfb077 Fixed command line escaping routines for win32. 2004-05-18 13:43:24 +00:00
Edin Kadribasic b1efed9dde Move declarations to the begining of function.
This allows it to actually compile on windows.
2004-05-18 12:32:05 +00:00
Edin Kadribasic e489d93abc TSRM fix 2004-05-18 10:53:53 +00:00
Edin Kadribasic 3b64493a3d No length parameter -> estrdup() 2004-05-18 10:49:06 +00:00
Wez Furlong 3455498219 Probe for some functions; allows pdo_oci to build on the snap machine again. 2004-05-18 10:00:01 +00:00
Wez Furlong 0460174a0d Primitive support for probing headers for functions using a regexp 2004-05-18 09:58:45 +00:00
Wez Furlong c9f736ab6e Skeleton for emulated prepare() 2004-05-18 08:59:27 +00:00
Wez Furlong 5a9864ed2b Update to match new prototype 2004-05-18 08:47:10 +00:00
Wez Furlong 940c896e15 Quoting here leads to problems with databases that really support bound parameters.
We should do this conditionally based on the emulate_prepare flag.
2004-05-18 08:45:28 +00:00
George Schlossnagle 2e36e9d06d only rewrite tmp if quoter returns true 2004-05-18 05:34:52 +00:00
George Schlossnagle 636cc3e1dc auto-quote values before binding them in at execute time 2004-05-18 05:31:01 +00:00
George Schlossnagle 7d40971563 use new prototype 2004-05-18 05:01:16 +00:00
George Schlossnagle 2e281baab9 we need the source string length for binary safe string handling 2004-05-18 05:00:52 +00:00
Wez Furlong 12acb64696 package.xml 2004-05-18 00:45:58 +00:00
Wez Furlong 2653f34210 Skeleton package file 2004-05-18 00:40:01 +00:00
4d7b0e114d ChangeLog update 2004-05-18 00:35:47 +00:00
Sara Golemon b094db390e Bugfix#28404 When type is double we need to access dval, not lval 2004-05-18 00:04:22 +00:00
Wez Furlong d4c5556b8b Let is build under unix.
Tested against IBM DB2 and unixODBC.
Could work with others.
2004-05-17 22:20:11 +00:00
George Schlossnagle fd73439882 include guard 2004-05-17 21:12:30 +00:00
Ilia Alshanetsky 0a38683b14 Correct output. 2004-05-17 20:58:57 +00:00
Sara Golemon cceecdbcdb BugFix# 27982: Provide error message when trying to overwrite an existant file without overwrite context option. 2004-05-17 20:31:59 +00:00
Andrei Zmievski 427561446f Revert the .ini vars patch. Will have to try again next Christmas
apparently.
2004-05-17 20:09:37 +00:00
Wez Furlong cf4127b6b9 Allow PDO OCI to build under unix.
Don't build by default under win32.
2004-05-17 18:17:39 +00:00
Wez Furlong dd84731577 Allow PDO to build as a self-contained extension.
Install headers so that other self-contained extensions may them.
2004-05-17 18:13:03 +00:00
Andrei Zmievski 26eaab7641 Fix the apparent bug (; at the end of parse rule block). 2004-05-17 17:12:07 +00:00
Wez Furlong 79c513db96 Some pedantic fixes for gcc. 2004-05-17 17:00:35 +00:00
Derick Rethans 255a5a8a5b - Document the smtp_port setting in php.ini 2004-05-17 16:30:22 +00:00
Wez Furlong d6c4dee168 ODBC (v3 ish) driver for PDO.
Will not build under unix yet.
2004-05-17 15:43:01 +00:00
Wez Furlong 1b1ced539b OCI driver for PDO, supporting bound input and output parameters.
Will not build under unix yet.
2004-05-17 15:42:33 +00:00
Wez Furlong 684be9cf36 Hello PDO.
Still more to come.  Give it a couple of days before starting to write drivers
for the other databases; a few things might change, so I'd like to coordinate
that, but in a couple of days.
2004-05-17 15:41:51 +00:00
Wez Furlong 3a4f33e31f As discussed with Andi, add this helper API for setting the object pointer from
within the constructor.

Please read the comment for notes about how to use it; in general, you don't
need it, so don't use it.
2004-05-17 11:27:16 +00:00
7d15d8cc3e ChangeLog update 2004-05-17 00:33:01 +00:00
Pierre Joye 9e9576ecfa - T_WHITESPACE for the 1st test... 2004-05-16 21:00:24 +00:00
Pierre Joye a937ae4762 - PHP allows spaces before :: (parent :: foo(); )
Nota bene, requires another change to really check the syntax:
  loop back to the first non white space element and valid it (parent,
  string or var)
2004-05-16 20:55:29 +00:00
Timm Friebe 77c75e786b - Fixed test for LONG_MIN / LONG_MAX for 64-bit platforms 2004-05-16 20:33:44 +00:00
Timm Friebe 425ae98916 - Fixed auto-conversion from long to double when LONG_MAX /
LONG_MIN where overflown
2004-05-16 20:30:35 +00:00
Timm Friebe 7bbe13ac4d - Initial release 2004-05-16 20:28:31 +00:00
Pierre Joye 915e9a555e - Fix #1329, closedir on exit (kameshj at fastmail dot fm) 2004-05-16 15:43:30 +00:00
Pierre Joye d049b24dfd - Fix #1330, unused variable 2004-05-16 15:39:07 +00:00
Pierre Joye 59727034b7 - Fix #1249 (wrong print out the wrong state with force option)
- some NL issues, sorry, commit now too
2004-05-16 15:37:13 +00:00
Ilia Alshanetsky bb88a86240 Do not allocate error buffer at the start of every request. 2004-05-16 15:34:53 +00:00
Marcus Boerger ed5ce047db - Add new test 2004-05-16 14:48:45 +00:00
Ilia Alshanetsky fbd3e0da40 Added missing safe_mode & open_basedir checks. 2004-05-16 14:38:19 +00:00
Marcus Boerger 251b627684 - Fix printf with floats 2004-05-16 14:01:45 +00:00
Wez Furlong 6d7346f4b9 ; 2004-05-16 12:10:35 +00:00
Wez Furlong 57cf4805a9 Add config.w32 template to ext_skel 2004-05-16 11:49:35 +00:00
Rob Richards 9e3956b313 constructors throw DOMException
add DOM_PHP_ERR DomException code
validate tagnames in constructors
use C style comments
update TODO
2004-05-16 10:30:16 +00:00
Brad House 92c72cb8d8 update config.m4 for libmonetra 4.0 compatability.
Library no longer has MCVE_ symbols, the header file has #define\'s to
convert MCVE_ -> M_ to reflect the Monetra name change from MCVE.
More updates to follow.
2004-05-16 02:59:34 +00:00
72d12fb320 ChangeLog update 2004-05-15 00:36:05 +00:00
Andrei Zmievski 66181dde3b .ini variables patch notice 2004-05-14 21:10:02 +00:00
Andrei Zmievski e97f733515 Adding ability to refer to existing .ini variables from within .ini
files. Example:

open_basedir = ${open_basedir} ":/new/dir"
2004-05-14 20:58:15 +00:00
Ilia Alshanetsky 5b4dc50c01 Fixed possible memory leak inside popen(). 2004-05-14 16:12:03 +00:00
01e92c81e7 ChangeLog update 2004-05-14 00:32:50 +00:00
Ilia Alshanetsky d24465ba8a Fixed bug #28386 (wordwrap() wraps lines 1 character too soon). 2004-05-13 17:44:23 +00:00
Ilia Alshanetsky 50260570b4 Make isapi more compatible with apache sapis as far as the creation
$_COOKIE super-global and various $_SERVER values.
2004-05-13 17:21:39 +00:00
Stanislav Malyshev 0821f8f7d9 add sqlite_exec() 2004-05-13 14:19:10 +00:00
Ilia Alshanetsky f7f966f96f Skip session tests if session.save_path is not writable. 2004-05-13 12:53:47 +00:00
Wez Furlong 6571a32c87 Add --enable-memory-limit configure option (defaults to off) 2004-05-13 12:14:56 +00:00
Marcus Boerger fbb28b36b7 - Once ts_free_id() will be used, we cannot call ctors for deleted ids
when creating new threads.
2004-05-13 06:53:21 +00:00
b30bc204c9 ChangeLog update 2004-05-13 00:59:25 +00:00
Marcus Boerger aa7454aba4 - Centralize register and hash operations for startup/register_module
in new zend_register_module_ex().
2004-05-12 23:05:28 +00:00
Marcus Boerger 950ddcc9c2 - Revert to 1.249 2004-05-12 23:03:38 +00:00
Marcus Boerger 88a02ba159 - More work on ts_free_id() but still keep it out 2004-05-12 22:28:28 +00:00
Marcus Boerger c0be906309 ifdef out the ts_free_id until php 5.1 and until it is complete 2004-05-12 22:17:01 +00:00
Ilia Alshanetsky d6ba95c618 Fixed various possible memory leaks. 2004-05-12 20:17:19 +00:00
Ilia Alshanetsky ca5c6a1e91 Fixed bug #28374 (Possible unterminated loop inside
_php_pgsql_trim_message()).
2004-05-12 16:49:47 +00:00
Ard Biesheuvel 8428d0088c Fixed a couple of inconsistencies in param binding
# Previously, empty strings were either rejected (for scaled integers)
# or silently converted to 0 (unscaled integers & floats). Also, in some
# cases, null zvals were converted to empty strings, which were
# consequently rejected as unconvertible values.
# In the new situation, empty strings will be handled as NULLs for
# fields that cannot distinguish between the two (numeric/date/time).
# Additionally, all range and value checking is now carried out by the
# database, so there is a consistent interface for error handling.
2004-05-12 15:16:51 +00:00
Ard Biesheuvel afc9cb151b Dropped support for ancient Interbase versions (< 6)
# This has no consequences for Firebird, as its initial release was based on IB 6
2004-05-12 14:29:42 +00:00
Ard Biesheuvel b4939dfa9a Made ibase_timefmt() check its args more thoroughly and nuked a pointless malloc() 2004-05-12 13:14:55 +00:00
Ard Biesheuvel ecfd014357 Made ibase_gen_id() bail out on incorrect args 2004-05-12 13:07:35 +00:00
Marcus Boerger 8e52e04c30 - Implement ts_free_id() 2004-05-12 10:30:46 +00:00
Marcus Boerger 40a9fd5f76 - Touch 2004-05-12 10:19:06 +00:00
Marcus Boerger 05a9f544a7 - Move hash table destruction to proper location 2004-05-12 10:17:12 +00:00
Marcus Boerger 2d6770f0e6 - Added missing UNREGISTER_INI_ENTRIES 2004-05-12 10:15:48 +00:00
8de360fdbe ChangeLog update 2004-05-12 00:33:00 +00:00
Ilia Alshanetsky bd92164eff Make vprintf() and printf() return the length of the string printed.
Make fprintf() and vfprints() return the correct length of the string
printed.
2004-05-11 19:51:46 +00:00
Ilia Alshanetsky 69b712410b Reset opt_name to NULL to ensure it's not re-used if numeric keys can be
found inside the options array.
2004-05-11 15:59:07 +00:00
Derick Rethans 500f634db9 - Fixed defines 2004-05-11 15:30:54 +00:00
Andi Gutmans 4f77a021ce - Don't allow passing NULL to type hinted parameter. 2004-05-11 14:28:40 +00:00
Ilia Alshanetsky 1842676706 Fixed bug #28355 (glob() does not return error on Linux when it does not
have permission to open the directory).
2004-05-11 13:34:19 +00:00
9540037bb7 ChangeLog update 2004-05-11 00:32:24 +00:00
Ilia Alshanetsky 97d91c7656 Fixed crash inside cpdf_place_inline_image() when working with truecolor
images.
2004-05-10 22:13:08 +00:00
Rob Richards d3b364fdc7 add chregu as maintainer
prep for next release
2004-05-10 20:46:32 +00:00
Christian Stocker 7f9a606b62 Adding next() method 2004-05-10 20:39:04 +00:00
Marcus Boerger 68c22fba72 - Documentation update
- Checkin doxygen config file
# A patched version of doxygen is needed, hopefully 1.3.8 will contain it
2004-05-10 17:26:03 +00:00
Zeev Suraski 428e722d88 - Fix comparison of objects
- Clarify convert_object_to_type()
2004-05-10 14:56:21 +00:00
Rob Richards dbe02eff78 check for dom support
remove comment
2004-05-10 14:38:32 +00:00
Christian Stocker 33cd5e9b43 - added expand support (see http://www.xmlsoft.org/xmlreader.html#Mixing for the details behind
that)
 CVS: ----------------------------------------------------------------------
2004-05-10 13:31:14 +00:00
Stefan Esser 2224276a13 Checking MEMORY_LIMIT before doing emalloc/erealloc solves several ugly problems. 2004-05-10 12:17:25 +00:00
Zeev Suraski 9518107e8e Fix Win32 build 2004-05-10 12:06:09 +00:00
Marcus Boerger b0d27f9e85 - Decouple NAN and INF 2004-05-10 07:23:38 +00:00
Ilia Alshanetsky 9a50bd2de1 Missing part of the upgrade patch. 2004-05-10 02:18:49 +00:00
Marcus Boerger 3988ee2df9 - Fix problems with c mode 2004-05-10 01:42:43 +00:00
5cbb4ab242 ChangeLog update 2004-05-10 00:32:12 +00:00
Ilia Alshanetsky 468e834ef1 Fixed bug #28289 (incorrect resolving of relative paths by glob() in
windows).
2004-05-09 19:01:13 +00:00
Ilia Alshanetsky a4c3c3cd47 GD bug fixing news. 2004-05-09 18:26:40 +00:00
Ilia Alshanetsky f11d064b6a Fixed bug #28304 (Missing bounds check inside imagefilter()). 2004-05-09 18:25:33 +00:00
Ilia Alshanetsky 9557b4013a Fixed bug #28311 (Transparency detection code is off by 1). 2004-05-09 17:47:31 +00:00
Ilia Alshanetsky d3fda74acf Fixed bug #28267 (php_image_filter_contrast calls gdImageBrightness). 2004-05-09 17:39:20 +00:00
Ilia Alshanetsky 6e9c4b3125 Upgrade bundled GD library to 2.0.23.
Fixed bug #28175 (build problem for people using FreeType 2.1.0-2.1.2).
2004-05-09 17:33:50 +00:00
Wez Furlong f8518cc83a Implement com_get_active_object() and a helper object for working with
persistent COM objects.
(That's the last of the stuff I want to sneak in before 5.0 is released).
2004-05-09 15:21:29 +00:00
Wez Furlong 6f8233897e Urgh!
Use the correct function to free messages from php_win_err(), otherwise
we say hello to Mr. S. Fault.
2004-05-09 14:28:19 +00:00
Derick Rethans ca47676650 - Fixed news 2004-05-09 14:22:02 +00:00
John Coggeshall 7b54f02f25 Tell ppl about it. 2004-05-09 14:00:30 +00:00
John Coggeshall 399022f3c5 Renamed tidy_node to tidyNode, removed the tidy_exception class and updated
the tests.
2004-05-09 14:00:14 +00:00
Stanislav Malyshev 255d87b1b8 Add __EXTENSIONS__ define - otherwise it won't compile on Solaris 2004-05-09 11:08:04 +00:00
c9dc23da36 ChangeLog update 2004-05-09 00:35:06 +00:00
Ilia Alshanetsky 28eaa612c1 Fixed typo. 2004-05-08 17:37:28 +00:00
Derick Rethans f7afbb9370 - Fixed type which prevented this extension from being loaded as shared
extension.
2004-05-08 17:34:07 +00:00
Marcus Boerger c7b2568269 - Docu updates
- Add missing example file
- Fix aggregation of inner iterators in examples
2004-05-08 12:35:21 +00:00
Marcus Boerger 629a25643c - Update docu 2004-05-08 12:26:28 +00:00
Marcus Boerger a6feb3f405 - Update examples
- Update documentation
- Move classes/interfaces already implemented in c to new subdir internal
2004-05-08 12:24:15 +00:00
Sergey Kartashoff 26fea0bd80 - mnoGoSearch extension was updated to support CachedCopies of
mnogosearch-3.2.16 or later. Udm_Get_Agent_Param and
  Udm_Store_Doc_Cgi functions were added. MnoGoSearch-3.2.3 stored API
  was removed.
2004-05-08 11:50:40 +00:00
Sara Golemon 96132bf4fe if statement logic would never eval to false. 2004-05-08 05:58:18 +00:00
55ec6950ce ChangeLog update 2004-05-08 00:33:46 +00:00
Rob Richards 0953c573ad allow ->open() and ->XML() to be called statically 2004-05-07 18:38:21 +00:00
Wez Furlong 6686b3f722 spot the vim user 2004-05-07 17:47:27 +00:00
Wez Furlong ce05cea7ee Fix Bug #28317: Avoid recursion in libpcre on windows platform. 2004-05-07 17:47:02 +00:00
Ard Biesheuvel bfcc12ef78 Fix unregistered bug in zval pointer/array juggling
# Thinko: element of a **zval[] is usually not a *zval[]
# I can't believe this has gone undetected for 4+ years!
2004-05-07 15:11:07 +00:00
Marcus Boerger bfc3e689de - Fix bug #28309 2004-05-07 06:13:21 +00:00
5927a5eb18 ChangeLog update 2004-05-07 00:31:54 +00:00
Marcus Boerger 7388b6b9ac - Update examples 2004-05-06 22:55:25 +00:00
Marcus Boerger af7d85db25 - interfaces 'extends' not 'implements' other interfaces 2004-05-06 21:46:40 +00:00
Marcus Boerger 592ee79fc1 - Update documentation 2004-05-06 21:20:50 +00:00
Derick Rethans 5b5207292b - Fixed test 2004-05-06 17:45:27 +00:00
Jay Smith 8f306fd749 Fixed a segfault. (It's possible for large offsets to make strrpos()
read past the end of the haystack string...)
2004-05-06 16:11:50 +00:00
Stanislav Malyshev c6bec7db3b fix line endings 2004-05-06 15:41:59 +00:00
Stanislav Malyshev 74ab20817a Fix fastCGI breakage: due to calling flush on unitialized requests,
request was aborted unless ignore_user_abort is set
2004-05-06 15:23:53 +00:00
Sara Golemon 0dae58bb2a Bugfix #28300 Userspace stream/filter names don't need to be lowercased. 2004-05-06 14:29:33 +00:00
Marc Boeren 35bdc36c5b Call functions by their new, proper names instead of what are now aliases.
Change OCIFetchInto (deprecated) to oci_fetch_array.
2004-05-06 12:22:14 +00:00
Marcus Boerger a9070ba130 Add protos 2004-05-06 09:01:31 +00:00
Marcus Boerger 635052875e Count support for ArrayIterator & ArrayObject 2004-05-06 08:57:20 +00:00
3e038d4398 ChangeLog update 2004-05-06 00:31:51 +00:00
Ard Biesheuvel 18d9462a22 Fixed unregistered bug: array count is incorrect when binding array ids
Fixed unregistered bug: empty numeric/datetime param argument is coerced to
	a string that cannot be handled by the IB API layer
2004-05-05 22:18:35 +00:00
Sara Golemon 0180c36951 BugFix#28287 stream_*_register() not calling __autoload(). 2004-05-05 18:18:57 +00:00
Dmitry Stogov 962ab19c99 Support for classes with __call() method on server side. 2004-05-05 10:52:33 +00:00
Dmitry Stogov 7bddbd7bd0 php_error() -> php_error_docref() (Marcus, Dmitry) 2004-05-05 10:31:26 +00:00
fd0ec1cb45 ChangeLog update 2004-05-05 01:16:24 +00:00
Wez Furlong 4a645e09af news 2004-05-04 15:11:06 +00:00
Wez Furlong 263723ec9b Update for count_elements handler for overloaded objects. 2004-05-04 15:03:48 +00:00
Wez Furlong d056b25c3f Add count_elements handler for overloaded objects. 2004-05-04 15:03:28 +00:00
Wez Furlong 5b5b10f0ca Just in case this header isn't present on the snaps machine. 2004-05-04 15:00:25 +00:00
Wez Furlong c921ceb49c Improve stability.
Give it a new CLSID and change the engine name to ActivePHP5.
Globals registered by the scripting host are now auto-globals and don't
need to be declared global when accessed from within functions.
2004-05-04 14:54:01 +00:00
Ard Biesheuvel d6838a86f3 ibase_query(): Be careful not to return true on error conditions 2004-05-04 12:42:54 +00:00
Martin Jansen 46f2330c19 * Providing the full URL to the coding standards. 2004-05-04 10:43:24 +00:00
Rob Richards adeb21cd8e add package.xml 2004-05-04 08:23:10 +00:00
711422e1e4 ChangeLog update 2004-05-04 00:35:07 +00:00
Wez Furlong 173cf83629 Enable writing to SafeArray dimensions. 2004-05-03 20:10:58 +00:00
Wez Furlong 92d87a6a8d Fix problem when assigning to a variable that holds an instance of
a COM/VARIANT/DOTNET object.
2004-05-03 18:19:07 +00:00
Wez Furlong 8ca144bba5 Fixup some constants and error handling.
Remove unfinished and un-needed function.
2004-05-03 15:51:41 +00:00
Uwe Schindler b39a1e5195 Security fix: Put '\0' string termination before loop 2004-05-03 12:23:25 +00:00
fc4500f7ec ChangeLog update 2004-05-03 00:36:07 +00:00
Marcus Boerger c122763bc0 - Look for missing classes in include_path 2004-05-02 22:55:22 +00:00
Marcus Boerger e72a305091 Update examples 2004-05-02 22:07:32 +00:00
Andi Gutmans 3317070941 - Fix comparison of two objects in non-compatibility mode. 2004-05-02 15:40:46 +00:00
Marcus Boerger 6a4e1fff78 Use caseinsensitive sort 2004-05-02 13:23:30 +00:00
Wez Furlong 4d5ce8cd08 Fix Bug #28251 2004-05-02 11:13:08 +00:00
Marcus Boerger 9216b3d182 Add a notice on STDIN 2004-05-02 09:14:02 +00:00
17a4cea930 ChangeLog update 2004-05-02 00:35:19 +00:00
Marcus Boerger f571b188f9 Don't load modules twice 2004-05-01 20:34:15 +00:00
5fbad6bed5 ChangeLog update 2004-05-01 00:36:00 +00:00
Marcus Boerger ecf8650a36 Autoload class as long as needed 2004-04-30 19:01:06 +00:00
Derick Rethans 5c9d3842bd - HTML entity to ISO char. 2004-04-30 18:00:24 +00:00
Greg Beaver d14b94b8df fix to work with only the installed version of PEAR 2004-04-30 16:45:46 +00:00
Greg Beaver 11be5f887b fix included files and put error messages in PEAR_Downloader where they are needed 2004-04-30 16:37:39 +00:00
Ilia Alshanetsky 91e9545f4f Fixed bug #28228 (number_format() does not allow empty decimal separator). 2004-04-30 13:26:01 +00:00
Marcus Boerger 6f699cea5f Bugfix #28229 (PATCH run-tests tripped up by spaces in names) 2004-04-30 08:18:54 +00:00
Greg Beaver bf87bf816c remove notices in E_ALL for config test in PHP 4.3.6 2004-04-30 03:39:04 +00:00
Greg Beaver 56d7d95c67 hopefully fix this test for all cases 2004-04-30 03:35:43 +00:00
Greg Beaver e349a5e41d update to begin process for next release (release is not imminent) 2004-04-30 02:09:03 +00:00
Greg Beaver 94ff299736 fix unit test to work with 1.3.2 (which will be needed) 2004-04-30 02:06:11 +00:00
Greg Beaver af03ecf9e1 fix 1186: notice in PEAR_Common undeclared $_packageName 2004-04-30 02:05:45 +00:00
Greg Beaver 65ecfc28cf fix unit test with PEAR 1.3.1 2004-04-30 01:57:35 +00:00
66f14d696e ChangeLog update 2004-04-30 00:35:30 +00:00
Marcus Boerger 7f01ec57bf SPL is meant to be in uppercase letters, do it now it works 2004-04-29 23:02:11 +00:00
Marcus Boerger 9aab7d7cdf An oumlaut doesn't work here, need ASCII only 2004-04-29 22:57:23 +00:00
Marcus Boerger a9bdb2ed88 - Fix protos and add notes to the docs
- Reorder func prototypes to show what is common and what is specific
2004-04-29 22:52:49 +00:00
Marcus Boerger 74f21310e3 - ArrayObject::append() must not be called when it refers to an object 2004-04-29 22:25:45 +00:00
Ilia Alshanetsky 6fd3a52665 Fixed bug #28196 (missing error constants in cURL extension). 2004-04-29 16:25:42 +00:00
Ilia Alshanetsky e81addb5ca C++ comments. 2004-04-29 12:59:26 +00:00
Wez Furlong 4b4fae6aa4 another down... 2004-04-29 10:19:16 +00:00
Stanislav Malyshev 239ae7b5fc Fix bug #27876 2004-04-29 09:47:29 +00:00
Marcus Boerger bf5f758c93 - Remove unused variable
- Respect visibility in count() and add a test for that
2004-04-29 07:22:02 +00:00
17d544632e ChangeLog update 2004-04-29 00:36:06 +00:00
Wez Furlong 38795b88ed Add "--disable-all" switch, which will force all arguments to "no" if
they are not specified explicitly. (like the snapshot build, but in
reverse).
2004-04-29 00:17:09 +00:00
Wez Furlong 1ee2b46d2f Should have tested this change before committing. 2004-04-28 23:24:33 +00:00
Marcus Boerger 1721e5d44e - More examples 2004-04-28 21:52:51 +00:00
Marcus Boerger 69e792ee7b Count() was missing 2004-04-28 21:45:41 +00:00
Marcus Boerger 1e264fc509 - Add tests for the examples 2004-04-28 20:10:21 +00:00
Marcus Boerger 4cdc3117c7 - DOS 2 UNIX 2004-04-28 19:58:47 +00:00
Marcus Boerger 63a490cd90 Fix c++ builds 2004-04-28 19:20:28 +00:00
Ilia Alshanetsky 738aa1099f Added missing skip condition. 2004-04-28 15:14:47 +00:00
Wez Furlong 027d450166 Fix for Bug #28161 (and probably others that I can't find in the bug db;
the search interface sucks).

Expand the proxy object so it can handle psuedo array style properties.

ASP/VB code like this:

	headObj.Attribute("RID") = rid

can be expressed like this in PHP:

	$headObj->Attribute['RID'] = $rid;

In theory, this feature can be used for "multi dimensional" properties:

	headObj.Attribute("RID", "Foo") = rid;

like this:

	$headObj->Attribute['RID']['Foo'] = $rid;
2004-04-28 08:23:22 +00:00
b97ecc1820 ChangeLog update 2004-04-28 00:33:46 +00:00
Sara Golemon 1335bc8fb8 Don't strip off those []s, it'll only create problems in wrappers and elsewhere. 2004-04-27 19:28:11 +00:00
Sara Golemon 99b6724a4c BugFix 28187 parse_url does not handle scheme://[0123:4567::89]:12345/etc style IPv6 embedded address URLs 2004-04-27 19:13:13 +00:00
Marcus Boerger e44c06c14e - More examples 2004-04-27 18:15:00 +00:00
Marcus Boerger 953a09969f - Optional parameter to class_exists() that can be used to bypass
__autoload() which can be helpfull in __autoload() itself.
2004-04-27 18:09:40 +00:00
Ilia Alshanetsky 32321488ab Removed C++ style comments. 2004-04-27 17:33:59 +00:00
Marcus Boerger 11690da164 - Some pretection against out-of-memory situations 2004-04-27 17:12:11 +00:00
Marcus Boerger c56ca79733 Fix test 2004-04-27 15:48:20 +00:00
Marcus Boerger 11ce65aeaf - Fix warnings 2004-04-27 15:47:55 +00:00
Marcus Boerger 7a5380297b - Fix ArrayIterator iteration
- Make it seekable
2004-04-27 15:42:45 +00:00
Marcus Boerger 7f37b3f651 Fix LimitIterator by using new handler 2004-04-27 15:41:26 +00:00
Marcus Boerger c896fa34a8 Fix documentation 2004-04-27 15:39:33 +00:00
Marcus Boerger e1cd098925 - no unneccessary retval initialization
- new c-level iterator handler invalidate_current that is optionally
  used to clear internal caching like in implementation of Iterator
2004-04-27 15:38:07 +00:00
Andi Gutmans e780c42f21 - Fix prototypes 2004-04-27 15:18:33 +00:00
Ilia Alshanetsky c527cc8708 Fixed bug #28184 (C++ comments in GD library sources). 2004-04-27 14:59:07 +00:00
Rob Richards 80fd6dcaa4 add relaxNG support
set xml base directory so it is consistant
add validation examples
2004-04-27 10:46:21 +00:00
Greg Beaver 1f22d848e9 fix bug 1242 - notice if multi-dimensional array is passed as a parameter
add optional parameter to staticHasErrors() that allows error determination for a single package
2004-04-27 04:31:39 +00:00
e744a448ab ChangeLog update 2004-04-27 00:35:21 +00:00
Marcus Boerger b526220462 Complete implementation 2004-04-26 22:01:12 +00:00
Marcus Boerger 5ffeb236f4 Update 2004-04-26 21:34:45 +00:00
Ilia Alshanetsky e7d225fda8 Removed pointless check. 2004-04-26 20:14:11 +00:00
Marcus Boerger 54e5ad6b6e Fix prototype 2004-04-26 18:54:18 +00:00
Antony Dovgal af96ad84b5 hmm. this comma is supposed to be a semicolon. 2004-04-26 14:49:41 +00:00
210244b339 ChangeLog update 2004-04-26 00:35:44 +00:00
Derick Rethans c452e275e7 - MFB: Fixed bug #28147 (Crash with drawing anti-alised lines) 2004-04-25 19:45:02 +00:00
Ilia Alshanetsky be901ebeaf Fixed test. 2004-04-25 16:50:47 +00:00
Marcus Boerger e058626c66 Add new iterator example AppendIterator and use it in findfile.php example.
# The initial idea came from a request by Sebastian
2004-04-25 13:06:15 +00:00
Marcus Boerger 9238d1bbbc With the new inheritance rules we need an explicit append method. 2004-04-25 13:04:36 +00:00
Marcus Boerger 5fff6fa361 Skip correct amount of stack entries 2004-04-25 11:28:46 +00:00
Marcus Boerger c5abb9b24c Capture potential problem by error message 2004-04-25 11:25:25 +00:00
Marcus Boerger 286f75c891 Show number of classes 2004-04-25 11:22:56 +00:00
Marcus Boerger 8116ba4249 BFN 2004-04-25 11:19:57 +00:00
Marcus Boerger 5b755c40ea Fix several issues
- bugfix #27063
- bugfix #27929
- bugfix #28099
- bugfix #28125
# The amount of code is needed to solve the return by reference problem.
# dual_it and derived also need their own iterator handlers to be able
# to return by reference.
2004-04-25 11:14:11 +00:00
Andi Gutmans 87a9f7bdbb - RC3-dev 2004-04-25 10:13:08 +00:00
Andi Gutmans 1ccf8dde15 - This was forgotten 2004-04-25 09:15:57 +00:00
Andi Gutmans 94c44ea9eb - RC2 2004-04-25 08:32:50 +00:00
Wez Furlong df14ec2fe2 Spell it out. 2004-04-25 00:41:34 +00:00
a4e94e33b3 ChangeLog update 2004-04-25 00:34:28 +00:00
Ilia Alshanetsky 4e4d861046 Fixed test. 2004-04-24 22:38:51 +00:00
f977f8a90b ChangeLog update 2004-04-24 00:34:14 +00:00
Andi Gutmans 399073f9d4 - Fixed bug #27923. foreach() without a key should not check if the key
- is a reference (Adam)
2004-04-23 21:53:46 +00:00
Andi Gutmans fa2e902436 NEWS 2004-04-23 21:51:39 +00:00
Derick Rethans 43aed8f70b This was already in NEWS for the branch, removing 2004-04-23 18:20:20 +00:00
Derick Rethans 858fc0015f Cleanup NEWS 2004-04-23 18:19:03 +00:00
Rasmus Lerdorf 191a661f8c MFB: Fix for bug #27810 2004-04-23 18:08:58 +00:00
Rob Richards 838d30a5cd move libxml error handler ro rinit/rshutdown to keep it local to php 2004-04-23 17:31:44 +00:00
Ilia Alshanetsky 7a11fe48b6 Fixed bug #28087 (Do not force mysql.trace_mode to 0 on every request). 2004-04-23 17:03:52 +00:00
Derick Rethans 9ee23d7066 - Fixed buffer overflow in phpinfo() for Zend Extension Api NO. 2004-04-23 13:28:25 +00:00
Wez Furlong 16f8b66e46 Another one bites the dust 2004-04-23 13:28:05 +00:00
Dmitry Stogov eba2aa9bd0 Support for <![CDATA[ ]]> for string/hexbinary/base64binary data 2004-04-23 12:22:41 +00:00
Sara Golemon d5e0742e8d In-HEAD bugfix# 28115 2004-04-23 03:37:20 +00:00
f1bad5dab7 ChangeLog update 2004-04-23 00:36:46 +00:00
Marcus Boerger af17964ef4 Avoid warning to interfere test result 2004-04-22 22:55:18 +00:00
Ilia Alshanetsky 9da8328bae Empty query checks, bug #28112. 2004-04-22 22:34:29 +00:00
Marcus Boerger 920e4235a4 Add test for bug #28112 2004-04-22 22:29:41 +00:00
Marcus Boerger ddfb337577 bugfix #28112 2004-04-22 22:26:02 +00:00
Wez Furlong 696663bc3d Add test 2004-04-22 14:29:33 +00:00
Wez Furlong 91dc1a516a A working fix for the safearray mapping bug. 2004-04-22 14:27:11 +00:00
Wez Furlong 73f49c16f4 The fix for the vc7 libc putenv bug is also needed here to avoid a crash. 2004-04-22 14:26:03 +00:00
Hartmut Holzgraefe 9833b429d6 Depercating mime_magic in favor of PECL::fileinfo 2004-04-22 01:24:12 +00:00
Wez Furlong c50726fa4b (probable) fix for Bug #27974: PHP Arrays are not mapped to VARIANTs. 2004-04-22 00:50:49 +00:00
f52e75742b ChangeLog update 2004-04-22 00:35:20 +00:00
Ilia Alshanetsky 8694cd135d Fixed possible crash inside pg_copy_(to|from) function if delimiter is more
then 1 character long.
2004-04-22 00:31:55 +00:00
Ilia Alshanetsky d641ba3eae More C++ comments. 2004-04-21 23:16:34 +00:00
Ilia Alshanetsky 1b80b33b87 C++ comments are ungood ;). 2004-04-21 23:06:26 +00:00
Wez Furlong 03b4f344a0 News about the ssl server socket bug 2004-04-21 23:02:56 +00:00
Wez Furlong e9920ede1f Fix bug #28096 - stream_socket_accept() on an SSL server socket doesn't
enable SSL on the accepted socket.

- Add cipher list context option
- Add helpful hint about why SSL server socket fails with mysterious
  error (eg: you need an SSL certificate for most ciphers).
2004-04-21 23:02:06 +00:00
Hartmut Holzgraefe 375b5df63d libmagic will only consume up to HOWMANY (hardcoded to 65536) bytes
from a file, so lets save bandwith and memory by limiting us to this
2004-04-21 22:49:35 +00:00
Dmitry Stogov c94f0276b0 Support for multiref data 2004-04-21 16:57:18 +00:00
Wez Furlong 0fb4bf9771 Fixed bug #19749 (shouldn't mmap() files larger than memory_limit) 2004-04-21 12:02:47 +00:00
Andi Gutmans 206f0da25a - RC2-dev 2004-04-21 10:34:27 +00:00
Andi Gutmans 40c20d3d72 - Prepare for RC2RC2 (if everything is OK especially Zeev's interface
- patch I'll roll RC2 tomorrow).
2004-04-21 09:59:52 +00:00
Wez Furlong d6cb1431ac yaz moved 2004-04-21 08:57:16 +00:00
Wez Furlong 8090684c5a Moved ext/yaz to PECL. 2004-04-21 08:56:34 +00:00
Zeev Suraski 242aa98b0a Restore fatal error in case a method that's supposed to implement an
interface/abstract method, breaks its prototype
2004-04-21 08:44:37 +00:00
Derick Rethans 142edcf01f - Reorder news 2004-04-21 07:23:40 +00:00
42f26b6fae ChangeLog update 2004-04-21 00:35:41 +00:00
Ilia Alshanetsky 8a23a020e9 Fixed possible memory leaks.
Prevent shm_attach() from destroying non-shm resources.
2004-04-21 00:11:28 +00:00
Frank M. Kromann bfdcc96274 mssql related fixes 2004-04-20 23:55:02 +00:00
Frank M. Kromann 9909a36992 Fix #28007. Compile fails when the SHORT type is undefined (older versions of FreeTDS) 2004-04-20 23:37:08 +00:00
Frank M. Kromann c5f8871734 Fix problem getting return value from stored procedure when it returns multiple results 2004-04-20 23:30:51 +00:00
John Coggeshall 04764e1942 minor update 2004-04-20 18:29:16 +00:00
John Coggeshall 8e1391ce49 No need for exception function, and renamed the 'error_buf' prop to
errorBuffer to conform with the rest of the ext.
2004-04-20 18:28:09 +00:00
Andi Gutmans 844b4738fd - Fix news 2004-04-20 14:18:56 +00:00
Andi Gutmans 71f99771b0 - More news 2004-04-20 14:15:57 +00:00
Andi Gutmans 173782b73e - Fix bug #27283 - Exceptions where the last catch() statement was sometimes
- skipped.
2004-04-20 14:14:55 +00:00
Christian Stocker 65bc57a81f - make static methods calls work from within xslt
- extended tests
2004-04-20 09:24:24 +00:00
e9c3ac04f5 ChangeLog update 2004-04-20 00:35:29 +00:00
Ilia Alshanetsky 39f820b8b8 Fixed compiler warnings. 2004-04-20 00:26:48 +00:00
Marcus Boerger dddbe6f60e Add new tests (by magnus) 2004-04-20 00:00:51 +00:00
Rob Richards f726dc7af1 add ext/libxml/ to the headers path 2004-04-19 19:46:00 +00:00
Rob Richards 5094e4e67c initial revision
requires PHP 5
2004-04-19 18:55:02 +00:00
Marcus Boerger be85c9049b show ini entries and classes for extensions. 2004-04-19 18:02:49 +00:00
Wez Furlong daa90c915c Fix #27865; don't dup STDIN, STDOUT or STDERR when running under CLI. 2004-04-19 17:41:39 +00:00
Derick Rethans 3326b8790e - Is it really this hard?</jani> 2004-04-19 15:15:49 +00:00
John Coggeshall bf937669e0 Adding tidy error handling news 2004-04-19 15:14:31 +00:00
Wez Furlong 73af3afdbe and the news 2004-04-19 15:08:11 +00:00
Wez Furlong 398b4a2fbb Add pty support to proc_open() for systems with Unix98 ptys.
# With permission from Andi
2004-04-19 15:07:30 +00:00
Edin Kadribasic 9bf6b05b87 No need to export anything. Fixes win32 build 2004-04-19 14:13:41 +00:00
7537d97280 ChangeLog update 2004-04-19 00:34:18 +00:00
Ilia Alshanetsky 60292114a0 Simplify code via the use of macros. 2004-04-18 21:49:10 +00:00
Derick Rethans abff9671fb - Whitespace 2004-04-18 14:04:48 +00:00
John Coggeshall 544cdffd90 Fixing a tidy_getopt() bug, and converting all exceptions to E_WARNING 2004-04-18 07:58:19 +00:00
20d52aa8dc ChangeLog update 2004-04-18 00:34:17 +00:00
Derick Rethans c8c5e8bbe6 - MFH: Fix for bug #28042 (greek letters in html to entitity mapping not
correct)
2004-04-17 23:08:02 +00:00
Marcus Boerger d58fe0357d Retval may not be set when zend_execute() is overloaded 2004-04-17 14:02:40 +00:00
57049aff26 ChangeLog update 2004-04-17 00:34:11 +00:00
John Coggeshall ba43e31e24 Fixed construct bug and Windows build. 2004-04-16 21:51:59 +00:00
Derick Rethans 2ed9c955b8 - Fix initializations 2004-04-16 18:55:19 +00:00
Uwe Schindler fb25210072 set Sybase default APPNAME to ("PHP " PHP_VERSION) 2004-04-16 16:27:19 +00:00
John Coggeshall 1fb0de4a6d Modified error handling:
- Trivial errors have been reduced to E_NOTICEs if possible
  - Bad, but not script-stopping errors (i.e. file not file) are E_WARNING
  - Truly bad things that make the extension unusable are not E_ERROR

  Exceptions are thrown only in a OO context for E_WARNINGs.
2004-04-16 15:46:41 +00:00
355678208d ChangeLog update 2004-04-16 00:36:43 +00:00
Marcus Boerger 43e44e4e9f Bugfix #28012, now for snprintf 2004-04-15 23:08:22 +00:00
Marcus Boerger c007130382 Bugfix #28012 spprintf() output inconsistent for %p 2004-04-15 23:04:49 +00:00
Marcus Boerger a455d7846d Handle failure in get_current_data 2004-04-15 21:32:34 +00:00
Andi Gutmans 14edc95ff8 - Temporary fix for bug #27869
- George, you need to implement clone in order for "clone" and
- compatibility mode to work.
2004-04-15 17:25:51 +00:00
Wez Furlong 8307c0204c Fix bug that prevented --without-gd from working 2004-04-15 16:09:36 +00:00
Hartmut Holzgraefe 1d444f9ad2 typo 2004-04-15 15:27:08 +00:00
Hartmut Holzgraefe 702ca7f53f be a bit more explanatory ... 2004-04-15 15:03:26 +00:00
Ilia Alshanetsky dda0dd4825 Fixed test failure if session.use_trans_sid is enabled. 2004-04-15 13:37:50 +00:00
foobar 4a45a8e948 Remove duplicate entries 2004-04-15 12:25:57 +00:00
Wez Furlong 81835bbf47 been stable for a long time now 2004-04-15 11:52:40 +00:00
Dmitry Stogov 8d8c50fed3 Fixed bug #27681 (soap extension fails without HAVE_TM_GMTOFF). 2004-04-15 10:27:53 +00:00
Dmitry Stogov 0d42248ad8 Calls to zend_exception_error() were removed. 2004-04-15 09:35:27 +00:00
foobar 724a221a7b reorder..is this so hard..? :) 2004-04-15 02:37:42 +00:00
c4435ad7b2 ChangeLog update 2004-04-15 00:35:44 +00:00
Marcus Boerger 1c7fdeac21 BFN 2004-04-14 23:41:22 +00:00
Marcus Boerger 00da44519c Bugfix #27997 2004-04-14 23:26:56 +00:00
Frank M. Kromann 6ba2e4bc51 Declare variables before calling functions. This makes tidy compile on Win32. 2004-04-14 19:01:45 +00:00
Andi Gutmans 4774563966 - Add comment 2004-04-14 17:12:04 +00:00
Edin Kadribasic d5c6825241 According to Wez, this is not needed.
It also breaks win32 build.
2004-04-14 13:56:18 +00:00
Andi Gutmans 245dd7367d - RC2-dev 2004-04-14 11:24:17 +00:00
Andi Gutmans acc4cd17ce - RC2RC1 2004-04-14 11:03:47 +00:00
Derick Rethans 3c28fbd6dd - Enable iconv by default 2004-04-14 07:42:38 +00:00
66f5637723 ChangeLog update 2004-04-14 00:35:36 +00:00
Marcus Boerger 087ed66b69 Classnames shall start with an uppercase character 2004-04-13 20:25:49 +00:00
Marcus Boerger 27aee6b1dd Update error messages in tests 2004-04-13 19:08:54 +00:00
Marcus Boerger f0c91bac50 New tests (and ordering of tests) 2004-04-13 19:06:39 +00:00
Marcus Boerger ad2471cbbb Bugfix #27979 2004-04-13 19:06:16 +00:00
Ilia Alshanetsky 793140873b Another setting leak in session code (bug #27963). 2004-04-13 18:18:22 +00:00
Sara Golemon a7ba08a0bd Export symbols needed by bz2_filter 2004-04-13 17:54:47 +00:00
Wez Furlong d16ad34368 This wasn't updated for new parameters for object handlers yet... 2004-04-13 17:51:36 +00:00
foobar e1c7a424ce BFN 2004-04-13 17:28:23 +00:00
Stanislav Malyshev 3c84c9c4bd fix bug #27979 2004-04-13 16:21:24 +00:00
Zeev Suraski 2310acb57a Fix debug_backtrace to show arguments again
We need to merge code from debug_backtrace & debug_print_backtrace at
some point!
2004-04-13 16:07:19 +00:00
Andi Gutmans 4f47f33402 - Fix API no of Engine 2. The first number is the engine version and the
- rest is the API_NO. This way engine2_api_no is always greater than
- engine1_api_no.
2004-04-13 15:27:36 +00:00
Andi Gutmans 979da66118 - Add hook for exception handler (Derick) 2004-04-13 15:19:21 +00:00
Ilia Alshanetsky 254c8d6ce9 Fixed bug #27963 (Session lifetime setting may leak between requests). 2004-04-13 00:39:05 +00:00
9d10977fd7 ChangeLog update 2004-04-13 00:34:35 +00:00
Derick Rethans 2c259a7979 - Add fontpath for win98/XP (Patch by Friedhelm Betz) 2004-04-12 21:42:42 +00:00
Marcus Boerger 33cdc9ed36 Fix order of macro parameter (synch with other macros) 2004-04-12 13:02:54 +00:00
Andi Gutmans 67502a2e7d - modifyable -> modifiable 2004-04-12 12:22:26 +00:00
John Coggeshall 9b21e0d0a9 - Removed things related to attribute classes / consts which no
longer exist in Tidy
- Changed protos in comment blocks to studlyCaps
- Fixed problem where Tidy would throw exceptions if called from
  a procedural context. Tidy will now cause E_ERRORs if called from
  procedural form.
2004-04-12 03:14:19 +00:00
15bc137fef ChangeLog update 2004-04-12 00:33:45 +00:00
Ilia Alshanetsky 8075d977e1 Open basedir & safe_mode exception when copying or attaching to a memory
only database.
2004-04-11 18:53:32 +00:00
14e2e82cf5 ChangeLog update 2004-04-11 00:33:36 +00:00
Marcus Boerger ad4755e257 studlyCaps 2004-04-10 13:56:27 +00:00
f95488a3c9 ChangeLog update 2004-04-10 00:34:29 +00:00
Sara Golemon 3feae65f70 BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettimeofday() 2004-04-09 19:18:59 +00:00
Ard Biesheuvel ff66870b4c Changed ibase_user_[add|modify|delete]() to use service resources 2004-04-09 18:45:30 +00:00
Ilia Alshanetsky 824f9a4d11 Fixed bug #27928 (sqlite incorrectly handles invalid filenames). 2004-04-09 18:02:05 +00:00
Andi Gutmans 7bedd9f824 - NEWS 2004-04-09 14:43:20 +00:00
Andi Gutmans 4a24cbe276 - Fix bug #26441 (When __set() returned a value it corrupted it) 2004-04-09 14:42:06 +00:00
Greg Beaver 8a91c1d5b8 re-organize as per PEAR-Core discussion 2004-04-09 07:38:48 +00:00
Greg Beaver dfa4a5d927 as per PEAR-Core discussion, remove all but absolutely essential
packages for the installer, and for PEAR_Frontend_Web
2004-04-09 01:12:41 +00:00
ca8dc5aca3 ChangeLog update 2004-04-09 00:33:16 +00:00
Greg Beaver 7ab7b99ac1 oops, PHPUnit2, not PHPUnit 2004-04-08 23:52:36 +00:00
Marcus Boerger 6e3b81e385 Add new test 2004-04-08 22:47:13 +00:00
Marcus Boerger 42370213f7 Fix toString() issue again 2004-04-08 22:46:43 +00:00
Marcus Boerger 84ddc25df6 BFN 2004-04-08 20:38:17 +00:00
Marcus Boerger 8ccfca0c41 Bugfix #27519 Reflection_Function constructor crashes with non-existant
function's name
2004-04-08 20:37:06 +00:00
Derick Rethans 3ec166aba4 - Add missing "CEST" timezone 2004-04-08 19:21:05 +00:00
Frank M. Kromann b2913063e0 Remove debug output 2004-04-08 19:08:37 +00:00
Jon Parise ba863b4558 Include Mail 1.1.3 with PHP 5. 2004-04-08 18:27:26 +00:00
Derick Rethans 1f932c30d6 - Added reworded destructor change 2004-04-08 16:19:58 +00:00
Derick Rethans b91a947d5e - Added test and not the diff ;-) 2004-04-08 16:17:35 +00:00
foobar 5d3900a2e9 remove crap 2004-04-08 15:58:35 +00:00
Greg Beaver b3cec4d9d4 Dan wants tabs -> spaces 2004-04-08 15:03:21 +00:00
Greg Beaver eaa48d3743 forgot phpunit -> phpunit2 for php5 2004-04-08 14:59:31 +00:00
Stefan Esser 6b12a45247 Fixed: possible remote overflow and possible efree(NULL) crash 2004-04-08 14:58:04 +00:00
Greg Beaver fdc1b53183 this should update the list
# Pierre-Alain, have you tested frontend_web with pager 2 yet?
2004-04-08 14:30:13 +00:00
Derick Rethans 9d4f01a8af - Test case for bug #20382 2004-04-08 14:18:23 +00:00
Wez Furlong 5e8d0919cf Add code to fetch the pear bundle based on pear/go-pear-list.php
For the moment, this is turned off, but it should be turned on ready for
the next RC.
(waiting for feedback from Edin and the PEAR guys)
2004-04-08 13:36:11 +00:00
Wez Furlong 61144768ed Add this list here, so that pear-core guys can manipulate the PEAR bundle
for the win32 snapshot.
2004-04-08 13:32:50 +00:00
Wez Furlong a8757b11e6 Enable mbregex in win32 build 2004-04-08 11:01:51 +00:00
foobar bb276eb8d4 - Fix test file outputs. 2004-04-08 08:39:41 +00:00
foobar 1789e67088 pfft.. 2004-04-08 07:56:50 +00:00
456c023e83 ChangeLog update 2004-04-08 00:35:41 +00:00
Moriyoshi Koizumi d3a8b31310 - Add missing checks. Maybe fixes PR #27680 2004-04-08 00:30:06 +00:00
Edin Kadribasic 31de856abb Allow compilation with gdlib 1.8 2004-04-07 22:27:32 +00:00
Frank M. Kromann d956e33ed2 avoid deleting needed files when the .cvsignore file contains empty lines (mysqli) 2004-04-07 18:48:23 +00:00
Frank M. Kromann 9a10491752 Export symbols required by zlib_filter extension 2004-04-07 18:47:09 +00:00
Rob Richards fb39035e77 Fix class name 2004-04-07 16:48:11 +00:00
Rob Richards e8340dd2c5 BFN 2004-04-07 16:25:55 +00:00
Rob Richards e32f012e65 Fix bug #27821 xml_parse segfaults when xml_set_object called from class method
fix memleaks in compat.c
2004-04-07 16:24:17 +00:00
Andi Gutmans c534a9e782 - Hopefully fix the debug_backtrace() code. 2004-04-07 15:29:09 +00:00
foobar 99a2a59f01 cleanup 2004-04-07 15:25:29 +00:00
Andi Gutmans 7264ffe50d - Fix crash bug in zend_debug_backtrace(). No idea how come this survived
- for so long....
2004-04-07 14:02:29 +00:00
foobar f1823e58da Revert the patch to "fix" #27664 and added more informal error msg. 2004-04-07 13:56:33 +00:00
Ard Biesheuvel 59f0817205 Don't define ibase_service struct type unless its member types are defined 2004-04-07 10:36:00 +00:00
Stanislav Malyshev 72e2e4fea3 Fix incomplete class for the new object model 2004-04-07 08:06:09 +00:00
84930ecbdf ChangeLog update 2004-04-07 00:34:16 +00:00
Greg Beaver 0715add65f developer -> lead for cellog 2004-04-07 00:29:58 +00:00
Ilia Alshanetsky 9a98c38cbd Removed pointless check. 2004-04-06 23:14:06 +00:00
Greg Beaver e09aff93fb add PEAR_ErrorStack to description of PEAR 2004-04-06 22:18:37 +00:00
Greg Beaver f2e8c04e8a change release date 2004-04-06 22:08:51 +00:00
Rob Richards 7b1f927ef5 register_namespace changed to registerNamespace for consistency 2004-04-06 18:26:19 +00:00
Adam Dickmeiss 1afef889e2 Allow character set conversion for yaz_record's array method, e.g.
yaz_record($id,$pos,"array;charset=marc8,iso-8859-1")
2004-04-06 17:40:05 +00:00
foobar 4ee4d27cb4 reorder, reword, typos.. 2004-04-06 09:53:31 +00:00
foobar 338b9bfb2d Remove duplicate entry 2004-04-06 09:43:18 +00:00
d1aee77c5a ChangeLog update 2004-04-06 00:35:23 +00:00
Ard Biesheuvel 18fa461119 More divide & conquer 2004-04-05 13:22:34 +00:00
Dmitry Stogov f9c5fc6ecb Fix (using patterns) 2004-04-05 05:24:15 +00:00
1bee9e12fb ChangeLog update 2004-04-05 00:35:43 +00:00
Moriyoshi Koizumi 94ec5c2a64 - Let it work safely 2004-04-04 19:23:19 +00:00
Derick Rethans bebddbdd24 - Fixed test 2004-04-04 19:00:53 +00:00
Ilia Alshanetsky bf997c3eb3 Removed unused variable. 2004-04-04 18:28:59 +00:00
Moriyoshi Koizumi 7f5950ffb7 - Fix test: Any datetime value that exceeds the unix time range should
not be unserialized.
2004-04-04 18:07:36 +00:00
Ilia Alshanetsky 3b27b0f18b Fixed a bug that prevented building of gd extension against external GD
lib 1.X.
2004-04-04 17:59:08 +00:00
Ard Biesheuvel 2680fb4a9d CS 2004-04-04 13:51:56 +00:00
Derick Rethans f1141d79c6 - Fixed comment and double 0 2004-04-04 12:45:02 +00:00
Derick Rethans 794846e5c5 - One more test for a date/time related bug. 2004-04-04 12:42:13 +00:00
Marcus Boerger 8fd505f4b4 Add a comment why it is in 2004-04-04 12:31:12 +00:00
1ca4aca8fb ChangeLog update 2004-04-04 01:32:18 +00:00
Andi Gutmans 8838b38fcb Patch by Timm Friebe:
It changes
set_exception_handler() to accept the pseudo-type "callable" (instead of
a string referring to a global function).


Examples:
  set_exception_handler('function_name');
  set_exception_handler(array('class_name', 'static_method'));
  set_exception_handler(array($instance, 'instance_method'));


This also makes set_exception_handler() more consistent with all the
other callback functionality, e.g. set_error_handler().
2004-04-03 21:50:12 +00:00
Derick Rethans efb62ea35f - MFB: Fixed bug #27849 (configure craps out on trivial syntax error). 2004-04-03 17:23:53 +00:00
Andi Gutmans 911922432f - Nuke more old junk 2004-04-03 17:01:13 +00:00
Ard Biesheuvel e7eccf10e6 That should do it 2004-04-03 16:38:10 +00:00
Greg Beaver ae73e40808 fixed #534 for real (remove notice if state=stable doesn't exist, and use "none" for stable version number) 2004-04-03 15:56:00 +00:00
Ard Biesheuvel 4493bbb809 Skip on Windows 2004-04-03 15:29:10 +00:00
Ard Biesheuvel 2daf7303b2 Don't rely on OS-based authentication (as it is not supported under Win32) 2004-04-03 15:24:11 +00:00
Marcus Boerger de56cc51a8 Increase severity level and use a more precise error message. 2004-04-03 14:40:36 +00:00
Andi Gutmans 1c7cfe739d - Nuke code which hasn't been in use for ages. 2004-04-03 11:09:39 +00:00
Ard Biesheuvel b04eb1d3da fclose() tempfile so unlink() doesn't choke on Win32 2004-04-03 11:04:21 +00:00
Ard Biesheuvel cd7e8bdf8c Change definition of ISC_LONG_[MIN|MAX] to please MSVC. 2004-04-03 11:00:14 +00:00
Ard Biesheuvel 5367158046 MFB: more elaborate HUGE_VAL test 2004-04-03 10:42:42 +00:00
Marcus Boerger 53b4597fca Initialize to 0 to prevent valgrind warnings 2004-04-03 09:51:57 +00:00
Greg Beaver b79e803a43 fix Bug #937 throwError() treats every call as static
fix Bug #964 PEAR_ERROR_EXCEPTION causes fatal error
2004-04-03 06:28:54 +00:00
Greg Beaver 9d86149b01 fix #534: pear search doesn't list unstable releases 2004-04-03 06:06:17 +00:00
da4f2be35a ChangeLog update 2004-04-03 02:06:57 +00:00
Greg Beaver 361951bc01 not devel any more 2004-04-03 00:42:20 +00:00
Derick Rethans 95659890ba - Fixed expected shift/reduce conflict count nu,ber 2004-04-02 21:26:35 +00:00
Sara Golemon 60baea9671 Update sample SAPI locations. BugFix# 27829 2004-04-02 20:32:41 +00:00
Dmitry Stogov b010daa9c4 Support for domain cookies 2004-04-02 15:43:41 +00:00
Dmitry Stogov 794358f385 Test file was fixed (implicit cloning strict warnings) 2004-04-02 13:43:58 +00:00
Dmitry Stogov 6f6ef6deed SoapClint support for multiple hosts (through WSDL) with cookies. 2004-04-02 11:12:44 +00:00
Dmitry Stogov 7dae9e6cad Fixed bug #27742 (WDSL SOAP Parsing Schema bug) 2004-04-02 06:23:51 +00:00
9a6dad867d ChangeLog update 2004-04-02 01:32:15 +00:00
Ilia Alshanetsky c85843aec1 MFB: Revert patch for bug #27782. 2004-04-01 22:07:42 +00:00
Ilia Alshanetsky 962c8cc9ef Fixed reversed condition for error reporting. 2004-04-01 22:05:35 +00:00
Derick Rethans b2ed70e4e0 - MFB: Fixed bug #27780 (strtotime(+1 xxx) returns a wrong date/time) 2004-04-01 21:40:56 +00:00
Ard Biesheuvel 0956f5133c CS/WS 2004-04-01 18:23:45 +00:00
Ard Biesheuvel 75df505fe6 Test binding of numeric timestamps 2004-04-01 16:42:25 +00:00
Ard Biesheuvel 563e9dd664 Don't rely on isql anymore, as creating databases is now supported by the API
Changed tests to include ibase_query("SET TRANSACTION ...")
2004-04-01 16:25:51 +00:00
Dmitry Stogov 6a6096ec11 StudlyCaps fix. 2004-04-01 14:37:03 +00:00
Dmitry Stogov f712d46b50 Fixed possible crash 2004-04-01 14:05:55 +00:00
Dmitry Stogov 9dd0826623 Fixed bug #27722 (Segfault on schema without targetNamespace). 2004-04-01 13:44:12 +00:00
Ard Biesheuvel 0d5a3f0b91 WS 2004-04-01 11:38:23 +00:00
Ard Biesheuvel 1eb428e76d Fix unregistered bug (crash when closing db opened with "CREATE DATABASE ...") 2004-04-01 10:56:28 +00:00
Dmitry Stogov 40bb734452 Some small improvments, support for new style constructors, support for exceptions other then SoapFault 2004-04-01 10:47:44 +00:00
Derick Rethans 88c17817a9 - Fixed bug #27822 (is_resource() returns TRUE for closed resources) 2004-04-01 08:54:44 +00:00
Sara Golemon fac9416797 Only wind filters when appending to the read chain. 2004-04-01 03:52:34 +00:00
1d5a6d3f9f ChangeLog update 2004-04-01 01:32:08 +00:00
Sara Golemon 002f7ef393 This leaks when a stream opener proxy opens another stream. 2004-04-01 01:07:54 +00:00
Sara Golemon 72616e6eae BugFix#27619
Filters not applied to pre-buffered stream data.
(esp. http:// streams)
2004-03-31 23:48:59 +00:00
Derick Rethans 29273ca7a9 - Align help output for configure. 2004-03-31 21:11:23 +00:00
Ilia Alshanetsky dbc60edabf Fixed bug #27809 (ftp_systype returns null on some ftp servers). 2004-03-31 20:43:40 +00:00
Hartmut Holzgraefe f8708f369d disallow negative timestamps on windows only 2004-03-31 17:57:33 +00:00
Rob Richards 010c340f29 use new style constructors
fix return for nodelist item
2004-03-31 17:18:59 +00:00
Ilia Alshanetsky 39a43c994e Fixed bug #27802 (default number of children to 8 when PHP_FCGI_CHILDREN is
not defined).
2004-03-31 17:01:01 +00:00
Dmitry Stogov d00b6c7c99 Fixed BUG in zend_post_incdec_property 2004-03-31 15:16:00 +00:00
Andi Gutmans 1c5ea0d7df - Fix typo 2004-03-31 13:11:19 +00:00
5de30d1066 ChangeLog update 2004-03-31 01:32:01 +00:00
Ard Biesheuvel 81cfb1b312 Make time tests more robust against differences in implementation
# FreeBSD mktime() returns -1 if is_dst==1 and no DST timezone is set
2004-03-31 01:00:55 +00:00
Ilia Alshanetsky 8ecdc90763 Fixed generate_array_diff(). 2004-03-30 23:58:47 +00:00
Marcus Boerger 9f8ba2e8a1 Fix tests 2004-03-30 21:17:52 +00:00
Marcus Boerger 76ae4e10bf Fix test 2004-03-30 21:13:05 +00:00
Marcus Boerger 1ffa3cf65d Add more statistics 2004-03-30 19:33:22 +00:00
Ilia Alshanetsky ec4655f864 Fixed bug #27782 (Wrong behaviour of next(), prev() and each()). 2004-03-30 19:08:43 +00:00
Marcus Boerger a5c94d0184 The test script to search for underscores 2004-03-30 18:50:39 +00:00
Marcus Boerger b4bc994680 TSRM fix 2004-03-30 18:39:53 +00:00
Marcus Boerger 5230321731 - Fix Reflection class names
- Add ability to get the extension an internal class was defined in
# This is the patch Andi and me used to search for underscrores...
2004-03-30 18:36:53 +00:00
Frank M. Kromann b4f64e7f7b Fix for #27764. Get return value from a stored procedure not returning any result sets 2004-03-30 17:54:10 +00:00
Stanislav Malyshev 07266a10ab Disabled calling dtors on tsrm_shutdown - calling dtors in tsrm_shutdown makes
modules registering TSRM ids to crash, if they have dtors, since the module
is unloaded before tsrm_shutdown is called. Can be re-enabled after
tsrm_free_id is implemented.
2004-03-30 16:56:01 +00:00
Ard Biesheuvel 04d178f79c Prevent test from failing on least significant digit 2004-03-30 12:36:44 +00:00
Dmitry Stogov 1ed6bb3e63 Using studlyCaps names. 2004-03-30 09:08:23 +00:00
Andi Gutmans 9094dd7a5e - Tiny improvement. 2004-03-30 08:56:29 +00:00
ddb1fdaaa9 ChangeLog update 2004-03-30 01:31:57 +00:00
Marcus Boerger dddf796edf NAN==NAN doest work (Ard) 2004-03-29 23:08:36 +00:00
Ilia Alshanetsky f7fd3a7dcc Removed extra spaces that cause the test to fail. 2004-03-29 21:57:29 +00:00
Wez Furlong 32be6f268b Fix for Bug #26757: session.save_path defaults to bogus value on win32
Merge from branch with one main difference: the default save_path is
set to the empty string on all platforms, whereas the code in the
branch only does so for win32.
2004-03-29 21:44:07 +00:00
Marcus Boerger 904dac52e2 DOM_RET_OBJ for return_value needs to be followed by return 2004-03-29 21:05:16 +00:00
Marcus Boerger 585af2418b Remove debug code 2004-03-29 20:54:46 +00:00
Marcus Boerger 4dc6fe7f62 Fix tests 2004-03-29 20:54:13 +00:00
Marcus Boerger b6321d4e8a Fix class names 2004-03-29 19:58:01 +00:00
Ilia Alshanetsky 0d0fffe98b Fixed compiler warnings. 2004-03-29 19:57:51 +00:00
Marcus Boerger 2ce2300d76 Fix class names 2004-03-29 19:49:17 +00:00
Marcus Boerger 43d3d8a0a4 Fix class names 2004-03-29 19:31:29 +00:00
Marcus Boerger 96b6c7f5f8 Windows part of NAN/INF 2004-03-29 18:58:28 +00:00
Marcus Boerger 8b15b46aa8 Found a NAN/INF solution that should be portable everywhere(?) (Ard,Marcus) 2004-03-29 18:51:47 +00:00
Marcus Boerger afe794c0d6 Allow mixed case search for extensions 2004-03-29 18:48:59 +00:00
Frank M. Kromann 87779f127a Fix for #27743. Make sure Money types are converted and returned correct 2004-03-29 18:32:27 +00:00
Ilia Alshanetsky 8b079070a3 Synchronized bundled GD library with GD 2.0.22. 2004-03-29 18:20:33 +00:00
Sebastian Bergmann c29e9277d0 -clonning+cloning 2004-03-29 15:20:50 +00:00
Dmitry Stogov 75d1e4ca7d Implicit clonning strict warning was added for ze1_compatibility_mode 2004-03-29 15:00:31 +00:00
Jan Lehnardt 775387e32d - be more verbose 2004-03-29 07:49:32 +00:00
Hartmut Holzgraefe 5e3b2e3d31 Test updated to test for additional libxml2/expat inconsistencies 2004-03-29 05:56:18 +00:00
31b042714e ChangeLog update 2004-03-29 01:32:05 +00:00
Ilia Alshanetsky 62c80d5e6e Fixed bug #27731 (error_reporting() inside @ block fails to set
error_reporting level).
2004-03-29 00:50:52 +00:00
Marcus Boerger 16a4376f53 Use lowercasing here 2004-03-28 23:56:18 +00:00
Marcus Boerger 4da754e868 Add ability to pass -n to the executed php 2004-03-28 23:04:53 +00:00
Marcus Boerger 4f855044c7 Improve portability (idea by Ard) 2004-03-28 21:46:43 +00:00
Marcus Boerger 1bf1b64c37 Initialize the complete struct 2004-03-28 21:09:37 +00:00
Marcus Boerger f8ff2ccf20 Fix writing of SQLite and SimpleXMl extension and add Rob to the credits
line of the latter. Add ext/SPL.
2004-03-28 20:27:18 +00:00
Marcus Boerger dce131ebcd Add agrument type info 2004-03-28 17:04:11 +00:00
Stanislav Malyshev 1293330175 check writability on =& too 2004-03-28 16:37:57 +00:00
Marcus Boerger d7cea0945c Fix XSL (Rob/Marcus) 2004-03-28 15:35:01 +00:00
Rasmus Lerdorf 1ece5eb5ad MFB test case for bug #27719 and improve comments in this tricky DST code 2004-03-28 15:03:56 +00:00
Stanislav Malyshev 9be3c9388b - call set handler if assigning to object having this handler
- cleanup: use macros to access object internal vars
2004-03-28 14:57:29 +00:00
Stanislav Malyshev 1cc4a69bbe preserve ZEND_API in definition 2004-03-28 14:32:32 +00:00
Stanislav Malyshev d61d11381b declare as extern 2004-03-28 14:30:49 +00:00
Marcus Boerger 0019c60902 Show progress 2004-03-28 14:12:14 +00:00
Marcus Boerger a7b9cb454e Adapt ecpectations to 5.0 reality 2004-03-28 14:09:47 +00:00
Marcus Boerger 83675b6622 Fix memleak found by Timm 2004-03-28 13:55:06 +00:00
Stanislav Malyshev 9091bf8e5f centralize object-to-scalar conversion, make it work with get handler 2004-03-28 12:08:26 +00:00
Stanislav Malyshev 3b8b43a947 try get handler on printable conversion 2004-03-28 12:06:10 +00:00
Stanislav Malyshev bcf30a04f5 some more clear comments 2004-03-28 12:05:36 +00:00
Stanislav Malyshev c331afa267 Use macros for object parts access 2004-03-28 10:44:48 +00:00
Dmitry Stogov 09d1d232fc fix of fix related to __autoload. (ext/standard/tests/network/bug20134.phpt passes again) 2004-03-28 09:37:30 +00:00
Andrey Hristov 58a52b1641 - Fixed the explanation and example about "classes must be declared before used".
- Added new entry about get_class() (Thanks Lukas for reminding (toStudlyCapOrNotToStudlyCap.txt).
2004-03-28 09:30:21 +00:00
3a836aafd9 ChangeLog update 2004-03-28 01:33:56 +00:00
Marcus Boerger c9c13a7336 Add new test 2004-03-27 15:49:23 +00:00
Marcus Boerger 63338975d4 Even though it is uncommented it should be right 2004-03-27 14:06:28 +00:00
Rui Hirokawa 9018537919 added missing files of oniguruma to mbstring.dsp. 2004-03-27 10:51:34 +00:00
Ard Biesheuvel 437840e85d Put AC_DEFINE in correct place so caching will work properly 2004-03-27 02:03:44 +00:00
Marcus Boerger 4b82cb500f BFN: MFHed #27687 2004-03-27 01:48:39 +00:00
Marcus Boerger e4a6365181 Move defines to proper location 2004-03-27 01:41:32 +00:00
78900ab0f9 ChangeLog update 2004-03-27 01:32:30 +00:00
Marcus Boerger 141049a2e2 Touch after .c 2004-03-27 01:27:53 +00:00
Marcus Boerger 6424efa54a BFN: MFHed 2004-03-27 01:19:02 +00:00
Marcus Boerger 861790dede atof("NAN")/atof("INF") do not work there 2004-03-27 01:00:52 +00:00
Marcus Boerger bc0373b880 Portable solution for bug #27646 that works correct on Windows, too 2004-03-27 00:50:41 +00:00
Marcus Boerger 90c80958b8 Commit the header, too. 2004-03-27 00:39:07 +00:00
Marcus Boerger d508cecfe3 Follow ming_xy naming convention 2004-03-27 00:38:35 +00:00
Frank M. Kromann 3d6ca9f2cc Fix complation errors after convertion to new macro's 2004-03-26 21:56:31 +00:00
Marcus Boerger f956b50f65 Change to studlyCaps convention
# Hopefully discussed enough this time
2004-03-26 21:16:50 +00:00
Marcus Boerger 26b75f56c6 Use studlyCaps and new macros (that should be it) 2004-03-26 21:10:17 +00:00
Marcus Boerger aea24b2a79 Force destructors to have empty signatures 2004-03-26 20:05:35 +00:00
Marcus Boerger 92d8c3d06e Correct that name 2004-03-26 19:53:07 +00:00
Ilia Alshanetsky 9a04c0f956 Fixed bug #27664 (--disable-cli doesn't force --without-pear). 2004-03-26 19:47:19 +00:00
Marcus Boerger 86d3e496f0 let inf be generated by INF constant (thanks to Wez) 2004-03-26 19:45:09 +00:00
Rasmus Lerdorf a40518164b MFB: The 2am offset was a bad choice as this hour doesn't necessarily exist
on a DST switch.  So use 4am instead.  Fixes bug #27719
2004-03-26 19:32:49 +00:00
Sara Golemon c52cc1c333 BugFix 27675 and add regression test. 2004-03-26 19:23:42 +00:00
33b6d03bfe ChangeLog update 2004-03-26 01:34:48 +00:00
Andi Gutmans 43d04ee291 - Fix build (thanks to Timm) 2004-03-26 00:26:19 +00:00
Marcus Boerger a4fba990a4 Pending touch 2004-03-25 22:40:25 +00:00
Marcus Boerger 3450ed948f -Make NAN and INF more portable (atof() doesn't work on MSVC.6 for example)
-Change test to use constants without prior conversion
2004-03-25 22:36:36 +00:00
Marcus Boerger 37a44999d3 Really use studlyCaps here 2004-03-25 22:06:36 +00:00
Derick Rethans fe576c7acb - Stopped file uploads from throwing E_WARNINGs and E_NOTICEs which can not be
hidden from within scripts (and a result value in the $_FILES global can be
  used to see the real failure anyway).
2004-03-25 21:27:23 +00:00
Derick Rethans b2ac395957 - Remove old and deprecated <?php_track_vars?> scanner token. 2004-03-25 21:11:57 +00:00
Ilia Alshanetsky 94d68252d3 Corrected package file. 2004-03-25 20:01:18 +00:00
Hartmut Holzgraefe 33490fdbaa another package description 2004-03-25 19:51:54 +00:00
Andi Gutmans 7313bcd1f4 - Update NEWS 2004-03-25 18:04:08 +00:00
Andi Gutmans e3eb8bdd78 - If __construct() is defined then it will always take precedence over
- old style constructors.
2004-03-25 18:00:50 +00:00
Stanislav Malyshev 7a98f60e1b no need to use result for RECV's - as in PHP4 2004-03-25 14:03:34 +00:00
Stanislav Malyshev 3c3dbc8873 Use get/set handlers for increment.decrement ops on objects 2004-03-25 13:03:04 +00:00
Andi Gutmans d6d52f6f2e /* The compiler is not-reentrant. Make sure we __autoload() only during run-time
* (doesn't impact fuctionality of __autoload()
     */
2004-03-25 11:30:02 +00:00
Marcus Boerger bca4347064 Fixed bug #27687 (Bug Adding Default Charset to 'text/*' Content-Type Header 2004-03-25 08:42:00 +00:00
Dmitry Stogov 2bbba73606 Using ALLOC_HASHTABLE/FREE_HASHTABLE instead of emalloc/free. 2004-03-25 08:14:33 +00:00
e973875d98 ChangeLog update 2004-03-25 01:35:42 +00:00
Hartmut Holzgraefe cc0894b788 more visa to sibira ;) 2004-03-24 18:43:23 +00:00
George Schlossnagle 8b2a760004 added test for property_exists checks. 2004-03-24 15:20:32 +00:00
Dmitry Stogov 55cf45abf5 New autoload protection schema was implemented (Using HashTable instead of boolean flag) 2004-03-24 14:30:59 +00:00
Derick Rethans 9ff10d086a - Revert bogus commit 2004-03-24 14:28:41 +00:00
Dmitry Stogov 6d9d08bf55 Fixed (strict warning was added to expected output) 2004-03-24 14:14:16 +00:00
Stanislav Malyshev 550da4ae7c and set module startup flag on startup 2004-03-24 13:33:26 +00:00
Stanislav Malyshev b514ab2ee9 reset module shutdown flag on startup 2004-03-24 13:31:34 +00:00
Derick Rethans 2face60bef - Fixed NEWS
#- Can we *please* keep this in order?
2004-03-24 13:31:20 +00:00
Dmitry Stogov 7baa132194 Fixed bug #27641 (Object cloning in ze1_compatibility_mode was reimplemented) 2004-03-24 13:16:07 +00:00
Dmitry Stogov ec53815b0f Object cloning in ze1 compatibility mode (zend.ze1_compatibility_mode) was reimplemented (Dmitry, Andi) 2004-03-24 10:55:04 +00:00
Antony Dovgal e001a041f3 add account names & emails 2004-03-24 07:46:18 +00:00
George Schlossnagle b9c04fe19a fixed non-existent elements check
ref: http://news.php.net/article.php?group=php.internals&article=8660
2004-03-24 05:04:26 +00:00
b12f5f7e45 ChangeLog update 2004-03-24 01:33:50 +00:00
Marcus Boerger 962b8d480c Revert studlyCaps change for now
# until we reach a point where the majority knows what they want
2004-03-23 23:30:56 +00:00
Ilia Alshanetsky 0bdfab022a Fixed bug #27661 (snmpget() does not close the socket in some cases). 2004-03-23 23:12:50 +00:00
Marcus Boerger 3f8a43989d Update .c output after .re 2004-03-23 22:33:29 +00:00
Marcus Boerger fdcff80c16 - Allow negative infinity
- Register missing constants, they work anyway but cause an E_NOTICE
# generation by atof() should be portable enough (afaik)
2004-03-23 22:30:25 +00:00
Marcus Boerger b6e3da9b65 BFN 2004-03-23 21:19:53 +00:00
Marcus Boerger c64376bda5 Bugfix #27646: Cannot serialize/unserialize non-finite numeric values 2004-03-23 20:54:00 +00:00
Hartmut Holzgraefe 04c36565eb make sure that all extensions ignore build system helper files
(both autotools and VisualStudio) and common editor backup files
(especially usefull in combination with 'cvsclean')
2004-03-23 19:53:16 +00:00
Hartmut Holzgraefe eeb172b29f "The Visa to Sibiria" (work in progress)
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
2004-03-23 19:46:10 +00:00
Marcus Boerger 82e2b354ac Consitency rules 2004-03-23 08:48:36 +00:00
Marcus Boerger e6a1f04677 Changed sqlite's OO API to studlyCaps. 2004-03-23 08:03:11 +00:00
4507e314af ChangeLog update 2004-03-23 01:32:21 +00:00
Wez Furlong 719d336b4f export libtidy symbols 2004-03-22 23:07:55 +00:00
Wez Furlong 27d7cd8594 update for read handler api change 2004-03-22 22:47:05 +00:00
Ilia Alshanetsky 83e9b7eeee Fixes to allow curl extension to compile against libcurl 7.11.1 2004-03-22 18:42:03 +00:00
Ilia Alshanetsky fc419f10ef Revert patch to imagefillborder. 2004-03-22 17:26:03 +00:00
Andi Gutmans 34667c4b58 - Fix bug 2004-03-22 15:51:07 +00:00
Andi Gutmans 94dc9af5a0 - Remove whitespace 2004-03-22 11:16:24 +00:00
f34db1b437 ChangeLog update 2004-03-22 01:33:55 +00:00
Greg Beaver 578c28fb0c update naming of tests - forgot to rename files before committing,
but this is not a big deal, as the name 'Error_Stack' still makes sense
2004-03-21 23:06:20 +00:00
Greg Beaver 9b530c04f1 added in wrong directory, move to tests/ 2004-03-21 23:02:29 +00:00
Greg Beaver 57b32bdf57 small changes
Use '' instead of ""
allow subclasses to easily change the exception class used just by
overriding the _exceptionClass property
2004-03-21 23:00:54 +00:00
Greg Beaver 4039adabf4 new package.xml to be used for installing tests, to make it easy to collect all tests in the same location for all PEAR packages 2004-03-21 22:57:33 +00:00
Stig Bakken c9a5a75fef * fit copyright header on 80 columns 2004-03-21 22:11:18 +00:00
Andi Gutmans 4ccca568bb - Improve consistency 2004-03-21 21:29:17 +00:00
Georg Richter 460ec22808 ups - changed alias instead of method before 2004-03-21 20:45:57 +00:00
Georg Richter 535b190ac1 renamed get_metadata method to get_result_metadata.
(We have to differentiate between result_metadata and param_metdata.
 mysql_stmt_param_metadata will be added in libmysql 4.1.3)
2004-03-21 20:43:44 +00:00
Stanislav Malyshev 5b0f6b1f34 Update for new read_property API 2004-03-21 18:28:38 +00:00
Stanislav Malyshev 7cf92e79ed return zval *, to make it useful for read_property 2004-03-21 18:27:58 +00:00
Stanislav Malyshev b372b86b89 update to new API 2004-03-21 18:21:46 +00:00
Stanislav Malyshev bd9b600c3c API change for read_property:
instead of bool silent it now gets fetch type
This can be used for creating proxy objects for write contexts
2004-03-21 18:07:27 +00:00
Ilia Alshanetsky ac7283a602 Fixed a possible crash inside libgd's gdImageFillToBorder() due to a stack
overflow.
2004-03-21 18:02:19 +00:00
Andi Gutmans f0b5eeb17b - Nuke unused code 2004-03-21 17:48:51 +00:00
91e3e2ed5c ChangeLog update 2004-03-21 01:33:32 +00:00
Marcus Boerger 9f4be8d2cd Fix test 2004-03-20 16:13:37 +00:00
Marcus Boerger af9788eb32 Fix return value to match std array func behavior 2004-03-20 16:09:42 +00:00
Marcus Boerger bad2a4bca9 Fix test 2004-03-20 12:30:57 +00:00
258f2e3f48 ChangeLog update 2004-03-20 01:32:55 +00:00
Sara Golemon dd28c137f6 Cleanup, minor refactor, and CS 2004-03-19 22:21:53 +00:00
Sara Golemon 75268270d6 Bug Fix #27657: TXT records longer than MAXHOSTNAMELEN cause segfaults. 2004-03-19 21:42:29 +00:00
Marcus Boerger dd5d497541 Fix test
# removing string conversion was a stupid idea
2004-03-19 20:05:39 +00:00
Marcus Boerger edde872904 Fix test 2004-03-19 20:00:18 +00:00
Marcus Boerger 0c8d7457c5 Make test work when user has memory limit setting 2004-03-19 19:56:31 +00:00
Frank M. Kromann 3e7a8e08eb Fix for #26589. Crash when selecting many columns of type Money 2004-03-19 18:45:07 +00:00
Ilia Alshanetsky d45b2c6bc3 MFH: Fixed bug #27628 (Simplify the process of making a POST request via
stream context).
2004-03-19 15:41:26 +00:00
Greg Beaver a145c1b4ce update to 1.3.1dev 2004-03-19 03:16:12 +00:00
85009fd76f ChangeLog update 2004-03-19 01:32:25 +00:00
Greg Beaver 4180b972ae phpunit tests for PEAR_ErrorStack 2004-03-19 00:48:39 +00:00
Greg Beaver 0ba63371ed new Error Stack for PEAR, EXPERIMENTAL until proven solid and stable 2004-03-19 00:48:18 +00:00
Pierre Joye 9bd83f2d81 - Fix the test description and $Id$ 2004-03-18 18:41:32 +00:00
Derick Rethans 9ebaa24aac - Fixed layout 2004-03-18 18:25:22 +00:00
Dmitry Stogov c17d6970b6 *** empty log message *** 2004-03-18 17:34:57 +00:00
Ilia Alshanetsky b176ee99d3 Fixed bug #27633 (Incorrect EOL translation by ftp_get() in ASCII mode). 2004-03-18 17:12:07 +00:00
Dmitry Stogov 7767bacaf8 *** empty log message *** 2004-03-18 17:01:46 +00:00
Dmitry Stogov deb84befae BUG #27469 was fixed (serialize() objects of incomplete class) 2004-03-18 16:54:36 +00:00
Andi Gutmans 814000305a - Back to RC2-dev 2004-03-18 15:27:28 +00:00
Pierre Joye 3d331bc64c - Test for possible data corruption with __set 2004-03-18 15:14:02 +00:00
Zeev Suraski 4f313c79c2 Add missing bug updates 2004-03-18 14:14:26 +00:00
Zeev Suraski aac5c1f6c5 Prepare to roll RC1 2004-03-18 14:12:27 +00:00
Zeev Suraski b8275175ff Fix possible data corruption with __set() 2004-03-18 14:03:58 +00:00
Uwe Schindler fcfe11e9e4 hint to raise stacksize (bug #27231) 2004-03-18 13:37:16 +00:00
Stanislav Malyshev f52edc19a7 Improve error message - on E_STRICT, method is actually called,
so the error shouldn't say it cannot be called.
2004-03-18 13:28:05 +00:00
Georg Richter e6ac744282 fixed problems in mysql_stmt_init (missing alloc from stmt) 2004-03-18 13:04:55 +00:00
Georg Richter 848f123645 removed if type=string: val is allocated for any type of data 2004-03-18 13:03:17 +00:00
Martin Jansen ba7d6efe7b * Converting tabs to spaces 2004-03-18 12:23:57 +00:00
Martin Jansen 254456a4a6 * Typo fixes 2004-03-18 12:21:28 +00:00
Derick Rethans 6a4099ccdd - Reorganize 2004-03-18 10:39:39 +00:00
Dmitry Stogov 787f0bbbb2 *** empty log message *** 2004-03-18 10:21:28 +00:00
Dmitry Stogov 6e63ea45c7 BUG #27457 was fixed (using temporary hash table with string keys only) 2004-03-18 09:48:37 +00:00
Andi Gutmans ed6cbcb480 - Change redefinition of constructor from E_COMPILE_ERROR to E_STRICT. 2004-03-18 08:52:51 +00:00
Andi Gutmans 2004c25041 - Update Changes 2004-03-18 08:12:19 +00:00
Ilia Alshanetsky d0a4801579 s/emalloc/safe_emalloc/ where appropriate. 2004-03-18 02:16:35 +00:00
Ilia Alshanetsky 5442d722c3 Fixed bug #27300 (Improved regex for pg_convert()).
# Patch by benjcarson at digitaljunkies dot ca
2004-03-18 01:34:58 +00:00
9b614ccb5a ChangeLog update 2004-03-18 01:32:14 +00:00
Sascha Schumann 7aa832aba2 Readd x86 implementation 2004-03-17 22:23:15 +00:00
Sara Golemon 4341ee6061 Userspace Directory Stream Test 2004-03-17 20:48:12 +00:00
Marcus Boerger 851c254ef8 Fix CachingIterator's ability to cache string conversion results.
Add a test for that.
2004-03-17 19:58:32 +00:00
Marcus Boerger b967853eb3 Go with implicit call 2004-03-17 19:14:15 +00:00
Marcus Boerger 8cdd2ed319 Explicit cast needed for now 2004-03-17 19:00:44 +00:00
Pierre Joye f223262bcd - Fix crash when an invalid color index is used with imagecolortransparent 2004-03-17 17:07:31 +00:00
Andi Gutmans cedd0296e0 - Improved patch for support multiplication on 64bit machines 2004-03-17 16:40:56 +00:00
Andi Gutmans 5569ad0626 - Fix tiny bug (one of the reasons we can't support __toString() for
- regular objects).
2004-03-17 16:18:24 +00:00
Dmitry Stogov 67a0ff81ae Test was fixed 2004-03-17 16:06:18 +00:00
Andi Gutmans 09341786dc - Stop make_printable_zval() from calling __toString() 2004-03-17 15:49:34 +00:00
Andi Gutmans ccb515afc7 - Fixed problem with __toString(). Due to the engine's architecture it is
- currently not possible to call __toString() anywhere besides print & eval.
- Follow up will be on internals@
2004-03-17 15:48:49 +00:00
Stanislav Malyshev c18c5be1e0 fix typo 2004-03-17 11:10:37 +00:00
Andi Gutmans 29ee03aa55 - Apply Ard's patch to support multiplication & overflow on both 32bit
and 64bit machines
2004-03-17 09:25:52 +00:00
8aea19c345 ChangeLog update 2004-03-17 01:34:14 +00:00
Sara Golemon 581948ab00 Provide a meaningful error message when registration fails 2004-03-17 00:08:22 +00:00
Ilia Alshanetsky 88058e5715 Fixed bug #27498 (bogus safe_mode error on nonexistent directories for
chdir() and opendir() functions).
2004-03-16 23:23:17 +00:00
Ilia Alshanetsky 39baa271b6 Fixed bug #27580 (pre-initialization errors in ap2 handler are not being
written to vhost error log).
Stop using depreciated and ignored APLOG_NOERRNO directive.
Make file not found & directory as script invocation error messages more
descriptive.
2004-03-16 22:38:07 +00:00
Derick Rethans 1ef3c8c74a - Replaced the exec_finished hook by the zend_post_deactive hook for
extensions. The new hook will be run after the symbol table and destructors
  are run. (PHP part)
2004-03-16 22:27:57 +00:00
Derick Rethans 6535933f7c - Replaced the exec_finished hook by the zend_post_deactive hook for
extensions. The new hook will be run after the symbol table and destructors
  are run. (Derick)
2004-03-16 22:27:26 +00:00
Derick Rethans 6b7224cc74 - Update news with fugbix 2004-03-16 21:47:27 +00:00
Georg Richter e3077eadef fixed stmt->stmt->query which was removed in libmysql 4.1.2
added query buffer in internal stmt structure to copy string
after prepare
2004-03-16 21:43:25 +00:00
Derick Rethans f66c62cef8 - Fixed compilation on the 'broken' IRIX native compiler. 2004-03-16 21:39:43 +00:00
Derick Rethans f59ac64430 - Bump API number so that it actually differs from PHP 4. This is needed
because we don't want PHP 4 and PHP 5 extensions to be in the same directory
  when doing "make install" for shared, or phpize'd extensions.
2004-03-16 21:32:40 +00:00
Marcus Boerger cbaa43ff12 Fix SEGV in certain conditions while calling static methods 2004-03-16 21:29:22 +00:00
Derick Rethans 1e8e284c6b - Fixed typo 2004-03-16 20:58:01 +00:00
Zeev Suraski 02344b1dae Improve the way auto-globals JIT works, and add the ability to turn it off 2004-03-16 19:49:19 +00:00
Zeev Suraski e2a5ebf597 Add ability to disable JIT for a particular auto global 2004-03-16 19:46:04 +00:00
Marcus Boerger 6d7f04307d Update message 2004-03-16 18:09:52 +00:00
Marcus Boerger 6e8c176a9d TSRM fix 2004-03-16 18:04:25 +00:00
Sascha Schumann b74128db59 Enable ptr format check for GCC 3.1 and higher 2004-03-16 17:35:57 +00:00
Pierre Joye fd8cea693a - initial commit
test case for #27504 (http://bugs.php.net/bug.php?id=27504)
2004-03-16 16:45:44 +00:00
foobar 1eba738ee8 fix typos 2004-03-16 16:44:51 +00:00
Ilia Alshanetsky 365f0120fe Do not allow 3.0.4 for __attribute__. 2004-03-16 16:42:12 +00:00
Ilia Alshanetsky fa5f52718a Fixed bug #27600 (GCC 3.0.4 does not like __attribute__ directive) 2004-03-16 16:36:54 +00:00
Andi Gutmans 6a31fb9bb0 - Fix problem when using old-style constructors it wasn't being inherited
correctly.
2004-03-16 15:22:44 +00:00
Derick Rethans b0dbd2abcc - Spaces to tabs 2004-03-16 14:59:06 +00:00
Andi Gutmans e551584c57 - NEWS 2004-03-16 14:52:22 +00:00
Andi Gutmans 833b97d4c2 - If the called method is static then don't define $this 2004-03-16 14:49:52 +00:00
Andi Gutmans 0041aff953 - Error out if get_method() isn't defined.
- Use calling scope of internal function callee when calling a method
  using static syntax (array("A", "func"));
2004-03-16 14:39:07 +00:00
Marcus Boerger 426649067c Make use of zend_make_printable_zval() instead of 'manually' calling
__toString().
2004-03-16 10:17:59 +00:00
Marcus Boerger cde333aca6 This workaround is no longer needed 2004-03-16 10:16:52 +00:00
Marcus Boerger 09e76476ef Improve error message 2004-03-16 10:14:57 +00:00
3b2f56275a ChangeLog update 2004-03-16 01:32:56 +00:00
Ilia Alshanetsky 542b034efa Fixed bug #27559 (Corrected open_basedir resolving logic). 2004-03-16 00:31:22 +00:00
Jay Smith 83b2d923f8 Fixed bug #27291 (get_browser matches browscap.ini patterns incorrectly). 2004-03-15 21:26:39 +00:00
Marcus Boerger b83663e0f2 Keep BC of pg_fetch_object 2004-03-15 20:16:59 +00:00
Marcus Boerger 0ace9f4885 Bugfix #27597 pg_fetch_array not returning false . 2004-03-15 19:47:18 +00:00
Frank M. Kromann 05158095ce Fix for #27594. Comuted columns does not return a column source 2004-03-15 19:41:48 +00:00
Rasmus Lerdorf f3907111c1 Missing NEWS entries 2004-03-15 18:22:01 +00:00
Andi Gutmans dae7093d93 - Restore E_NOTICE for longs and doubles. 2004-03-15 16:55:20 +00:00
foobar 97f81830b8 - Fixed bug #24582 (extensions can not be loaded dynamically in Solaris/iPlanet) 2004-03-15 16:06:29 +00:00
foobar e389c25850 - Fix test (wrong expected result..) 2004-03-15 15:53:28 +00:00
Andi Gutmans 14d711b9bb - Nuke E_NOTICE. This caused a notice when doing if ($obj == NULL) 2004-03-15 14:15:47 +00:00
Adam Dickmeiss 9a04d51b4a Use MAKE_STD_ZVAL instead of ALLOC_ZVAL 2004-03-15 10:01:12 +00:00
Jon Parise 633c95aa40 Fixed crash in php_ini_scanned_files() when no additional INI files were
actually parsed.

I'll merge this into the PHP_4_3 branch as soon as I receive permission
from the release master.
2004-03-15 07:45:25 +00:00
Sebastian Bergmann 111d0466c9 Fugbix typo. 2004-03-15 05:53:51 +00:00
7c0a993cc3 ChangeLog update 2004-03-15 01:33:46 +00:00
Marcus Boerger 97b5bb474e Guard display_startup_errors with checking for default (working) output
functions.
2004-03-14 23:56:07 +00:00
foobar 04a242541b typo 2004-03-14 23:22:51 +00:00
Marcus Boerger 7a67839d33 BFN 2004-03-14 23:01:21 +00:00
Marcus Boerger 15e1d817be Fix strval to use __toString if necessary 2004-03-14 22:59:04 +00:00
Marcus Boerger 4efbb35067 Make object parameter optional 2004-03-14 22:40:25 +00:00
Derick Rethans 56fe1a38bf - That change was unintentional, but it would be the right thing to do ;-) 2004-03-14 22:00:22 +00:00
Derick Rethans 4e7e611ca8 - The extension list is ordered alphabetically, also moved the tidy section
to a more suitable place (new things go at the end, not at the start).
2004-03-14 21:36:17 +00:00
Derick Rethans 1b197a9399 - Reorder 2004-03-14 21:27:21 +00:00
Andi Gutmans cf0ca48779 - Typo 2004-03-14 21:23:48 +00:00
Andi Gutmans 3155073efb - Add all of the fixes from the past week. Almost ready for RC1 now. 2004-03-14 21:21:21 +00:00
Ilia Alshanetsky 4c283fff27 Fixed bug #27590 (crash during shutdown when freeing persistent resources
in ZTS mode).
2004-03-14 20:11:13 +00:00
Andi Gutmans 1aedb9615a - Fix windows build 2004-03-14 18:00:40 +00:00
Jan Lehnardt 4ed1b9a193 - improve error message 2004-03-14 17:53:28 +00:00
Andi Gutmans 37d713ea49 - Fix for bug #27504 2004-03-14 17:52:58 +00:00
Sascha Schumann f04f78b50f Renaming cvsclean target; IRIX make seems to ignore .PHONY 2004-03-14 17:44:36 +00:00
Andi Gutmans 47cb3323a8 - Fixing bug #27123 2004-03-14 17:16:31 +00:00
Andi Gutmans f11c819ddb - Improve compatibility mode and compare objects according to property
- comparison (sucky but this is how PHP 4 behaved).
2004-03-14 15:56:03 +00:00
Andi Gutmans 7901a2218c - Fix flow of logic 2004-03-14 15:50:51 +00:00
Andi Gutmans 515e28ed5b - Support old style of converting objects to long/double/bool.
- This is only enabled in compatibility mode, else it calls cast_object()
- and if that is not available we return 1 (true) so that the following
- code would work:
if ($obj) {
}
2004-03-14 15:45:09 +00:00
Marcus Boerger decc3fc6e6 Add new test 2004-03-14 15:33:15 +00:00
Marcus Boerger 2917102e3f Fix: Add return type void 2004-03-14 15:27:56 +00:00
Andi Gutmans 88de69b97c - Support Cast operator in convert_to_* so that we support internal
- extensions such as SimpleXML. This is for Sterling.
2004-03-14 13:52:36 +00:00
Andi Gutmans 4f897b2f3c - Fix memory leak in the following code (Dmitry):
<?php
$a = array();
$a .= "x";
?>
2004-03-14 13:14:48 +00:00
Andi Gutmans 52cd980702 - Initial commit which allows comparing overloaded objects with native
- types (only for internal classes and not for user-land classes).
2004-03-14 12:44:28 +00:00
Melvyn Sopacua 21ecfd57fd Fix a typo, dating back from 1.145. 2004-03-14 11:42:17 +00:00
Pierre Joye f4f1fe553a - add a 2nd test for #27582 2004-03-14 03:21:26 +00:00
3afb382a5c ChangeLog update 2004-03-14 01:34:44 +00:00
John Coggeshall be3a537411 Adding extension=php_tidy.dll 2004-03-14 01:26:33 +00:00
Pierre Joye 9be8aeb690 - add tests for the bug #27582 (imagefilltoborder crashes) 2004-03-13 23:22:56 +00:00
Pierre Joye 197b48322e - restore too the alphablending if we do not reach the end of the function
Notice: This function still crashes (stack overflow), to reproduce it
  see bug27582_2.phpt
2004-03-13 23:21:25 +00:00
Marcus Boerger 0763dfa16f Update test with check for [] assignment 2004-03-13 20:07:22 +00:00
Marcus Boerger 96cb40a072 Check for ext/spl being available 2004-03-13 20:03:02 +00:00
Marcus Boerger 462bb8b83a Add new test 2004-03-13 20:01:23 +00:00
Marcus Boerger b95d8d14d5 Bugfix #27586 ArrayObject::getIterator crashes with [] assignment 2004-03-13 20:01:00 +00:00
Pierre Joye 9fc9639c83 - fix #27582 (http://bugs.php.net/bug.php?id=27582)
The problem was that the colors were changed endlessly, blending over
  and over. An endless loop and recursive calls filled the stack=>segfault
2004-03-13 18:28:19 +00:00
Greg Beaver e3c0e33f11 fix #1008: safe mode raises warning
fix register_argc_argv in pear.bat
2004-03-13 17:37:23 +00:00
4685a6687f ChangeLog update 2004-03-13 01:33:18 +00:00
Sara Golemon 1c7d6b229c MFB: Test getaddrinfo() for brokenness. Pretend it doesn't exist if it misbehaves. 2004-03-12 21:45:55 +00:00
Sterling Hughes e71590ef68 zval **, not a zval * 2004-03-12 20:04:31 +00:00
Sterling Hughes 94a1728de0 avoid a memory leak when a php_curl handle is allocated, but the initialization
of a CURL handle fails.
2004-03-12 18:41:19 +00:00
Sterling Hughes 177db33c63 add the curl_copy_handle() function which will exactly duplicate a cURL handle.
Useful when you have multiple "similair" transforms as with a multi handle with
only small variances (like the URL)
2004-03-12 18:37:55 +00:00
Pierre Joye 4a31a6a88b - revert previous commit:
- Features freeze period
 - No agreement on this change
 - Even if an agreement exists, this change is not enough to allow the
   usage of this new tag
2004-03-12 18:22:48 +00:00
Martin Jansen c653c6d1d9 * Adding new state "emeritus", which can be used for former maintainers of
packages.

Submitted by: Daniel Convissor

# The necessary updates for the website and the manual will follow in a
# few hours or at least tomorrow morning.
2004-03-12 18:05:08 +00:00
Ilia Alshanetsky 4eafea278f Simplify check. 2004-03-12 17:37:04 +00:00
Ilia Alshanetsky 2c9098a78f Additional checks of return values from user callback functions. 2004-03-12 17:31:10 +00:00
Rasmus Lerdorf 8f58b974b2 Fix/workaround for http://bugs.php.net/27533 2004-03-12 17:29:52 +00:00
Sterling Hughes ad84ce6233 leave length as -1, no need to strdup() 2004-03-12 16:36:30 +00:00
John Coggeshall 1c7ea2045b Opps. Shouldn't look at the value, just the type 2004-03-12 16:28:28 +00:00
John Coggeshall 4c76273d88 CURLOPT_INFILE === CURLOPT_READDATA 2004-03-12 16:12:47 +00:00
John Coggeshall 2009e4e83b Fixed a crash which happens if your READFUNCTION callback doesn't actually
return a string as promised.
2004-03-12 16:08:11 +00:00
Ilia Alshanetsky ed2b1770ab Invalid response code when force-cgi-redirect safety mechanism is triggered 2004-03-12 14:05:59 +00:00
Ilia Alshanetsky 3787740cbc Fixed compiler warning. 2004-03-12 01:59:46 +00:00
3b9cbffeec ChangeLog update 2004-03-12 01:34:03 +00:00
Frank M. Kromann 542dc54ce4 Hack to check for ming version 0.2 and 0.3 to inclue the right libs. 2004-03-11 18:48:30 +00:00
foobar 66b03bdf61 update 2004-03-11 15:08:46 +00:00
Andi Gutmans a87cc63aaa - Real fix for bug #27535 (Dmitry) 2004-03-11 13:40:19 +00:00
Andi Gutmans aa472500e1 - Attempt to fix bug #27535 2004-03-11 13:27:18 +00:00
Pierre Joye 68f1108b53 - prepare 0.2.1 2004-03-11 11:37:04 +00:00
ab56341dbe ChangeLog update 2004-03-11 01:32:04 +00:00
Ilia Alshanetsky 6a1a3ecc36 Readability++ 2004-03-11 00:27:16 +00:00
Ilia Alshanetsky 21a7e57ae7 Fixed memory leak in the multi interface.
Fixed proto of curl_multi_exec().
Fixed crash in curl resource attached to curl multi resource is manually
freed via curl_close().
2004-03-11 00:11:18 +00:00
Frank M. Kromann a5fec66463 More ZLIB exports needed by the ming extension 2004-03-10 21:59:29 +00:00
Moriyoshi Koizumi e84334a597 - Revert ini setting patch, as I notified in
http://news.php.net/article.php?group=php.internals&article=8451
2004-03-10 20:55:42 +00:00
Rasmus Lerdorf 05f8b4e6bc getopt() doesn't work if variables_order does not include "S" because it
only looks in $_SERVER for argv.  So, if we don't find argv in $_SERVER
fall back to looking in the global symbol table where register_argc_argv
would have put it.
2004-03-10 19:12:49 +00:00
Frank M. Kromann 579a7dd0c9 Reexport some zlib symbols so we can avoid linking with zlib.lib in shared extensions (on win32) 2004-03-10 18:30:44 +00:00
Ard Biesheuvel cc924cad9d Nuke unused vars 2004-03-10 15:59:50 +00:00
Ard Biesheuvel e6281ab38b Don't use fp arithmetic for int results
# FP arithmetic is not accurate enough on 64-bit archs
# This patch relies on ZEND_SIGNED_MULTIPLY_LONG(),
# so that should be fixed as well.
2004-03-10 15:57:49 +00:00
Martin Kraemer b63def4dfc Typo 2004-03-10 11:24:11 +00:00
Georg Richter a3bd712b78 added new function mysql_stmt_free_result 2004-03-10 09:50:05 +00:00
25adeaf77c ChangeLog update 2004-03-10 01:32:01 +00:00
Marcus Boerger 5f5a8172be Update 2004-03-09 17:47:28 +00:00
Marcus Boerger bf2cf5041c Drop copydoc and add more classes/methods 2004-03-09 17:36:32 +00:00
Marcus Boerger 1b060f3614 Access to inner iterator was missing 2004-03-09 17:35:18 +00:00
Rasmus Lerdorf 3189068f4e Make curl_setopt($ch,CURLOPT_RETURNTRANSFER,0) reset the RETURNTRANSFER to
stdout as is implied in the documentation.  Currently it simply does
absolutely nothing and there is no way to reset it to stdout.
2004-03-09 17:11:22 +00:00
Marcus Boerger 56834c958d Update 2004-03-09 17:01:21 +00:00
Marcus Boerger 6a8a25567f Rename hasMore() to valid() as discussed. (Part VI) 2004-03-09 16:53:12 +00:00
Marcus Boerger 2bdcfe4d0e Update test 2004-03-09 16:51:02 +00:00
Marcus Boerger 50ee116f08 Clearify the different method/class flags (as discussed with Andi). 2004-03-09 16:38:37 +00:00
Marcus Boerger 494d8207fe No longer needed 2004-03-09 15:53:42 +00:00
Andi Gutmans f30b51f5b9 - Fix crash:
<?php
class ResourceFormat
{
     const IMG           = 1;
}

class Image
{
     const RESOURCE_FORMAT   = ResourceFormat::IMG;
}

print_r(constant('Image::RESOURCE_FORMAT'));
?>
2004-03-09 15:37:18 +00:00
Andi Gutmans 0fc9d5861d - Nuke unused code. 2004-03-09 15:27:39 +00:00
Ilia Alshanetsky e33168207e Fixed memory leak with curl_multi_init() de-initialization. 2004-03-09 15:04:17 +00:00
Ilia Alshanetsky f677b6032a Fixed define. 2004-03-09 14:56:34 +00:00
Ilia Alshanetsky d196309341 Fixed bug #27338 (memory leak inside tsrm_virtual_cwd.c on win32). 2004-03-09 14:50:11 +00:00
Marcus Boerger e1127cb514 Make run-tests.php work with xdebug being loaded.
# Lots of ppl use that as a built-in extension already.
2004-03-09 14:39:35 +00:00
Marcus Boerger 1651be020a Show the connect result 2004-03-09 14:37:49 +00:00
Marcus Boerger 59804de32e Missing buffer->val change 2004-03-09 14:29:20 +00:00
foobar 3bd12064ef test for bug #27457 2004-03-09 14:19:50 +00:00
Georg Richter 612ab199ad fixed memleaks in bind functions
added 4.1.2 support (renamed functions)
2004-03-09 12:01:23 +00:00
Derick Rethans 360b98566c - Added test for bug #27535 (Objects pointing to each other cause Apache to
crash).
2004-03-09 08:19:19 +00:00
Ilia Alshanetsky 35f695954a Cleaned up phpinfo() output. 2004-03-09 02:36:23 +00:00
Ilia Alshanetsky 09517318b1 Fixed bug #27530 (broken http auth when safe_mode is on and PCRE is
disabled).
2004-03-09 02:24:02 +00:00
Pierre Joye 451e295d09 - Fix sugg only if it exists... 2004-03-09 01:57:53 +00:00
Pierre Joye 3093399928 - free sugg 2004-03-09 01:57:01 +00:00
7f74901434 ChangeLog update 2004-03-09 01:34:32 +00:00
Ilia Alshanetsky a073ba979f Fix function declaration. 2004-03-09 01:28:29 +00:00
Ilia Alshanetsky 7bc8bdec79 Change float operations to safe_emalloc().
Original idea by Sascha (see sess_sqlite.c)
2004-03-09 01:09:35 +00:00
Ilia Alshanetsky e375ffddb4 Added enchant_dict_quick_check() function.
Made enchant_dict_check() return a boolean.
2004-03-09 00:31:17 +00:00
Ard Biesheuvel b303ba089c More wordsize fixes 2004-03-08 23:11:45 +00:00
Pierre Joye f1ff65c155 - Fixes protos 2004-03-08 23:08:17 +00:00
Ard Biesheuvel b703fe79f6 Fix warning 2004-03-08 23:04:33 +00:00
Ilia Alshanetsky d2d091b2af Cleanup 2004-03-08 22:21:36 +00:00
Derick Rethans b3b2192a1e - Added mb_list_encoding() to return an array with all mbstring supported
encodings.
2004-03-08 22:18:05 +00:00
Pierre Joye 14bdcf810a - sources cleanup:
- merge the tests of broker/dict pointers, I can always set them back if
   we like to raise warnings here
 - proto fixes
 - remove printf() debug
2004-03-08 21:34:12 +00:00
Marcus Boerger 7dd5b1f126 Rename hasMore() to valid() as discussed. (Part V) 2004-03-08 21:17:39 +00:00
Marcus Boerger 979ef59b7c Rename hasMore() to valid() as discussed. (Part IV) 2004-03-08 21:15:39 +00:00
Pierre Joye c2689fe35b - Initial commit 2004-03-08 20:12:13 +00:00
Ard Biesheuvel 1950bdd42c MFB fix #27408 2004-03-08 19:08:25 +00:00
Marcus Boerger 8685972af2 Rename hasMore() to valid() as discussed. (Part III) 2004-03-08 19:00:21 +00:00
Marcus Boerger 6b0f57ee50 Rename hasMore() to valid() as discussed. (Part II) 2004-03-08 18:05:41 +00:00
Marcus Boerger b6b7c9eb65 Rename hasMore() to valid() as discussed. (Part I) 2004-03-08 17:33:31 +00:00
Marcus Boerger c3b06ea21e Check count. 2004-03-08 16:52:59 +00:00
Ard Biesheuvel 6bfc0d06cf Merged some more odd fixes from my own branch 2004-03-08 10:49:17 +00:00
Ard Biesheuvel 48d16437d6 Cleaned up array handling and optimize for the case where no array fields are used
Fix timestamp binding for Win32 (which doesn't have gmtime_r())
CS
2004-03-08 10:32:26 +00:00
Derick Rethans 0d4352ced8 - Fixed bug #24550 (tokenizing with __METHOD__ crash) (Patch by Greg Beaver) 2004-03-08 08:02:02 +00:00
Ilia Alshanetsky c828007fdf Fixed bug #27424 (headers missing on flush() in apache 2 SAPIs). 2004-03-08 03:15:45 +00:00
Ilia Alshanetsky 6112260738 Fixed compiler warnings. 2004-03-08 03:06:56 +00:00
07b90fa1ba ChangeLog update 2004-03-08 01:32:05 +00:00
Marcus Boerger 5208baee49 Add another missing conversion 2004-03-08 00:19:43 +00:00
Marcus Boerger 4ee3282ec6 Search for db-4.2.x 2004-03-07 23:45:31 +00:00
Sascha Schumann 048e66b2a9 Avoid using floating point arithmetic and rely on safe_emalloc
for the multiplication.

The actual size requirement is spelled out as:

** The result is written into a preallocated output buffer "out".
** "out" must be able to hold at least 2 +(257*n)/254 bytes.
** In other words, the output will be expanded by as much as 3
** bytes for every 254 bytes of input plus 2 bytes of fixed overhead.
** (This is approximately 2 + 1.0118*n or about a 1.2% size increase.)
2004-03-07 22:35:26 +00:00
Wez Furlong 70757063a7 add cast for qsort compare function.
Kinda ugly, but helps assert that we are doing the right thing as well as
kill the warning there.
2004-03-07 22:06:36 +00:00
Wez Furlong 1e35cf4f32 Connect feof() call to user-space stream feof() method.
Fixes Bug #27417 and #27508
2004-03-07 22:05:21 +00:00
Ilia Alshanetsky 0eb7000b0a Corrected string escape calculation. 2004-03-07 21:57:50 +00:00
Wez Furlong 0dd2280102 Less magic please 2004-03-07 21:36:55 +00:00
Ard Biesheuvel 4fffb84005 Simplify / fix 2004-03-07 18:01:12 +00:00
Ard Biesheuvel 67cdc2c12f Added missing support for binding timestamps
# Returning timestamps was already supported
2004-03-07 14:25:08 +00:00
5d93908766 ChangeLog update 2004-03-07 01:32:00 +00:00
Moriyoshi Koizumi 9a0e4fae4c - Forgot to commit this one. 2004-03-07 00:03:50 +00:00
Moriyoshi Koizumi 91b39a6538 - Fix test, take 2 2004-03-06 23:11:25 +00:00
Ilia Alshanetsky 02cdf5a87a Fixed bug #27421 (mbstring.func_overload should be system ini setting). 2004-03-06 19:29:52 +00:00
Ilia Alshanetsky 72a3bb18d1 Fixed bug #27460 (base64_decode() does not handle extra padding). 2004-03-06 19:06:04 +00:00
Ilia Alshanetsky bf6b0dc5e6 Fixed bug #27505 (htmlentities() does not handle BIG5 correctly). 2004-03-06 18:35:41 +00:00
Ilia Alshanetsky e57c749ecc Use correct variable name. 2004-03-06 18:29:54 +00:00
Ilia Alshanetsky 53e56151fe Fixed bug #27437 (wrong freetype include inside GD library). 2004-03-06 18:24:41 +00:00
Ilia Alshanetsky 215f0763d0 Fixed a possible memory leaks inside sqlite_popen() &
sqlite_fetch_column_types().
Resolve the file path inside sqlite_factory().
2004-03-06 18:14:54 +00:00
Ilia Alshanetsky 2d630bb6ae Fixed possible crash due to an integer overflow. 2004-03-06 18:11:59 +00:00
Ilia Alshanetsky f60d104c09 Better extension availability check. 2004-03-06 18:10:32 +00:00
Pierre Joye a8b6b2102b - fix #27238 2004-03-06 17:31:51 +00:00
e37f4db03d ChangeLog update 2004-03-06 01:32:09 +00:00
Andi Gutmans 2af86692ea - Fix some small problems I introduce in last patch. 2004-03-05 17:18:34 +00:00
Andi Gutmans 74775aa41a - Finally fix the following:
$xml_mem = simplexml_load_string('<bookbody><part><chapter><page>1</page></chapter></part></bookbody>');
/* The following works fine */
foreach ($xml_mem->part as $part) {
  foreach($part->chapter->page as $page) {
 print $page;
  }
}
/* The following segfaults */
foreach ($xml_mem->part as $part) {
  foreach($part->chapter as $chapter) { // Difference here from previous example
 print $chapter;
  }
}
2004-03-05 13:04:21 +00:00
Dmitry Stogov 09a7d5bb2f Test files were fixed acording to new constructor redeclaration semantic 2004-03-05 12:18:16 +00:00
Dmitry Stogov 215c71ee7c Test file was fixed (stack trace is removed) 2004-03-05 12:16:28 +00:00
c851067bf9 ChangeLog update 2004-03-05 01:31:59 +00:00
Moriyoshi Koizumi 26799b851f - typo (must have sleep.) 2004-03-04 22:53:09 +00:00
Moriyoshi Koizumi c0aabb79b2 - Fix memleak when scanner is called from within tokenizer extension.
# (only happens with zend multibyte feature enabled)
2004-03-04 22:50:55 +00:00
Moriyoshi Koizumi e5fb0e3fbd - Prevent cli from printing multiple "Interactive mode enabled" if
the command line option is given more than once (like -aaaaaa).
2004-03-04 22:49:54 +00:00
Sara Golemon 85aa47efab Don't rely on ANSI tmpfile(), use the streams layer instead, it'll deal with platform issues. 2004-03-04 22:24:27 +00:00
Moriyoshi Koizumi ab204a36e0 - Fix compiler warnings. (Patch by K.Kosako <kosako@sofnec.co.jp>) 2004-03-04 21:50:21 +00:00
Derick Rethans 88dffe4b6c - No maintainer anymore. 2004-03-04 15:55:44 +00:00
Christian Stocker c18b8dcd2d - fix a linefeed problem, if there are more than one configureoption 2004-03-04 13:37:37 +00:00
Stanislav Malyshev 97e7ce733a fix the fix 2004-03-04 13:11:03 +00:00
Stanislav Malyshev 99edaa3a4f oops, fix cut&paste gone bad 2004-03-04 13:09:03 +00:00
Stanislav Malyshev f9c65203d2 Fix object true value: if we are in compat mode and it's Zend object -
use PHP4 rules. Otherwise, object is always true.
2004-03-04 13:06:02 +00:00
Derick Rethans 39ac9579f7 - Fixed a 64bit issue (for zend_builtin_functions.c, module_number is an int).
- Change the MAX_LENGTH_OF_LONG constant to 20, as LONG_MAX is 20 characters.
  (Patches by Ard Biesheuven)
2004-03-04 11:02:05 +00:00
Derick Rethans f88b286888 - Added instance_of test (patch by Ard Biesheuvel) 2004-03-04 10:58:49 +00:00
Stanislav Malyshev 78a36b50a1 Disallow redefining ctors and cleanup 2004-03-04 10:02:59 +00:00
Stanislav Malyshev 9731d9f303 Handle out of memory/bad size situation gracefully, without getting into loop 2004-03-04 09:18:05 +00:00
62670bd1af ChangeLog update 2004-03-04 01:36:39 +00:00
Rob Richards 4ce377064a Fix bug #27467: domDocument::load() called from class method crashes
the methods can be called statically only from within classes which
  are not extending DomDocument
2004-03-03 20:59:02 +00:00
Edin Kadribasic 865903a2a4 Attempt at fixing win32 link errors 2004-03-03 18:54:20 +00:00
Edin Kadribasic fb861026d8 Add missing source file 2004-03-03 18:36:30 +00:00
Edin Kadribasic 664998fa50 Replace mysql with mysqli in paths to allow building both mysql and mysqli 2004-03-03 18:15:56 +00:00
Moriyoshi Koizumi a91e44c830 - Add missing include path. 2004-03-03 10:27:19 +00:00
Andi Gutmans 1c180ba3e8 - Fix crash:
<?
class foo {
        function __destruct() {
                foreach ($this->x as $x);
        }
}
new foo();
echo 'OK';
?>
2004-03-03 09:58:58 +00:00
ef39d84bbb ChangeLog update 2004-03-03 01:33:18 +00:00
Moriyoshi Koizumi 9e9d7d1743 - proper DLL linkage specifier.
# oniguruma.h:34-
#
# #ifndef ONIG_EXTERN
# #if defined(_WIN32) && !defined(__CYGWIN__)
# #if defined(EXPORT) || defined(RUBY_EXPORT)
# #define ONIG_EXTERN   extern __declspec(dllexport)
# #else
# #define ONIG_EXTERN   extern __declspec(dllimport)
# #endif
# #endif
# #endif
2004-03-02 22:38:21 +00:00
Derick Rethans 596efe5197 - Fixed bug in gdImageFilledRectangle in the bundled GD library, that required
x1 < x2 and y1 < y2 for coordinates.
2004-03-02 21:56:30 +00:00
Derick Rethans 21141e1378 - Fixed timing issues in test 2004-03-02 21:14:10 +00:00
Derick Rethans 5f7553e24c - Added testcase for bug #27468 2004-03-02 21:03:24 +00:00
Moriyoshi Koizumi bc4d64477a - Fix typo. 2004-03-02 20:18:14 +00:00
Derick Rethans d4fc693702 - CLONE, not CLOSE 2004-03-02 17:51:46 +00:00
Derick Rethans 0d6131cf4a - Added "clone" to the list of tokens. (Patch by Greg Beaver) 2004-03-02 17:49:49 +00:00
Marcus Boerger 8d45fece42 Fix zend_parse_method_parameters_ex() and make it consistant with
zend_parse_method_parameters().
# Obviously its only place of use is in pdo just right now.
2004-03-02 16:17:58 +00:00
Derick Rethans 17790a0369 - Consistent naming 2004-03-02 16:12:25 +00:00
Pierre Joye 2fba0d7b7a - initial test for #27439, covers more cases we got during
foreach($this->foo as $bar) bug
2004-03-02 16:00:49 +00:00
Moriyoshi Koizumi 1dfd0bd901 - Really fix the build.
# Should be fixed now :|
2004-03-02 15:59:30 +00:00
Moriyoshi Koizumi e3b4faf793 - Revisit config.h for win32 build.
# apologies for messing.
2004-03-02 15:58:39 +00:00
Pierre Joye 0132cc897b - include exception.inc not .php 2004-03-02 15:57:41 +00:00
Derick Rethans 6644d38e35 - Fixed yacc file 2004-03-02 13:12:44 +00:00
Edin Kadribasic f067c0479f Temporary fix for win32 build 2004-03-02 11:50:10 +00:00
Andi Gutmans 41b7211539 - Fix leaks (although there might be still a problem here). 2004-03-02 11:03:48 +00:00
Andi Gutmans 7c9694d26e - Fix leak (Dmitry) 2004-03-02 10:13:43 +00:00
Derick Rethans 026b92df42 - Added .cvsignore file 2004-03-02 08:55:36 +00:00
Andi Gutmans 576e16b03f - Fix crash in:
<?php
  class Foo {
    public $attributes=  array();

    function export() {
      foreach ($this->attributes as $name => $attr) {
      }
    }
  }

  $f= new Foo();
  $f->export();
?>
2004-03-02 08:28:12 +00:00
Andi Gutmans 3333380bf0 - Improve fix for protecting destructor's from exceptions.
- I was killing the current exception completely which was wrong.
2004-03-02 08:13:15 +00:00
ee768a2fe6 ChangeLog update 2004-03-02 01:31:41 +00:00
Pierre Joye dd7ba93e19 - excpetion.php => exception.inc (derick) 2004-03-01 20:44:11 +00:00
Pierre Joye 6f68407894 - initial release, reflection tests suite 2004-03-01 20:40:51 +00:00
Moriyoshi Koizumi 03bdd13560 - Fix win32 build.
# Thanks Nuno Lopes & Derick for letting me know.
2004-03-01 20:25:33 +00:00
Andi Gutmans 8912a50bf4 - Fix crash in destructors(). You can't throw an exception in destructors
as there is no guaranteed time when the destructor will be called.
2004-03-01 19:45:07 +00:00
Andi Gutmans 161ed69721 - Fix leak 2004-03-01 17:43:57 +00:00
Andi Gutmans 0f1382e126 - Fix crash in reflection API (pierre) 2004-03-01 15:19:38 +00:00
Andi Gutmans 7c72f6ff61 - Fix crash in exception handling (zend_exception_error(...) and
zend_eval_string_ex() were buggy (Dmitry, Andi)
2004-03-01 13:29:45 +00:00
Rob Richards 5e4b287463 use php_libxml_import_node for transform functions 2004-03-01 12:43:34 +00:00
Derick Rethans afc35efcf6 - Typo fix (by Jan) 2004-03-01 12:25:03 +00:00
Rob Richards 76ee5707f7 Fix bug #27436 dom_import_simplexml innaccurate
extensions register callbacks to export nodes
prevents segfault passing invalid objects to import functions
2004-03-01 12:09:24 +00:00
Moriyoshi Koizumi 9f9151473c - Use past tense 2004-03-01 10:46:58 +00:00
Moriyoshi Koizumi a48e59749c - NFN 2004-03-01 10:46:14 +00:00
Moriyoshi Koizumi bf1ed3de73 - Fix test. 2004-03-01 10:44:22 +00:00
Moriyoshi Koizumi df8ee549f5 - Add support for more ISO8601 style formats.
. Timezone specifier (ex. 20040301T00:00:00+1900)
 . Week specifier "W"  (ex. 1997W021)
- Modified test case to test new features.
2004-03-01 10:42:28 +00:00
Derick Rethans a84efbe923 - Fixed bug #27443 (defined() returns wrong type). 2004-03-01 08:07:25 +00:00
Jon Parise 4db900732d Cast the php_stream_dirent to a 'const char *' for estrndup() to avoid a
compiler warning.
2004-03-01 07:02:23 +00:00
Sara Golemon d9d38900b6 context parameter for opendir() and dir() 2004-03-01 05:40:14 +00:00
Sara Golemon 860daac5d8 Must addref the resource when we make a new zval reference to it that will be exported to userspace. 2004-03-01 05:33:19 +00:00
9cf988c201 ChangeLog update 2004-03-01 01:32:12 +00:00
Moriyoshi Koizumi c4a079e803 - Yet another BFN 2004-02-29 19:07:56 +00:00
Andi Gutmans 37ddf8e922 - Apply fixes by Timm. 2004-02-29 18:31:29 +00:00
Andi Gutmans 63e263f32a - Change prototype isA check not to check the constructor.
- Only give an E_STRICT for non-isA compliant code as opposed to
  E_COMPILE_ERROR.
2004-02-29 18:25:50 +00:00
Stanislav Malyshev edb21137de add ZEND_API there too for opcode handlers 2004-02-29 16:01:21 +00:00
Derick Rethans ed242f7e9e - Initialize memory to \0 so that we can reliable detect whether a specific
opcode element is in use.
#- Stas thinks it's OK ;-)
2004-02-29 16:00:50 +00:00
Anil Madhavapeddy b49e8fe865 Move the _prependPath function into PEAR_Downloader from PEAR_Installer,
as PEAR_Downloader uses it (and PEAR_Installer inherits PEAR_Downloader).

Unbreaks 'pear install -R'
2004-02-29 15:58:17 +00:00
Stanislav Malyshev deba01c64e export opcode table 2004-02-29 15:04:22 +00:00
Moriyoshi Koizumi 5e0da10217 - BFN 2004-02-29 05:22:57 +00:00
Moriyoshi Koizumi 3d83a4db04 - Bugfix #27287 (wddx segfaults during deserialization) 2004-02-29 05:21:36 +00:00
5f1e30823f ChangeLog update 2004-02-29 01:32:18 +00:00
Moriyoshi Koizumi 75f83f7bb4 - Fix segfaults on deserialisation of referenced variables.
# ALLOC_INIT_ZVAL() initialises the type field to IS_NULL, while
# MAKE_STD_ZVAL() doesn't. This caused a kind of random crash
# when zval_ptr_dtor() was applied on an intact zval created by
# the latter method.
#
# Please check relevant bugs again. There should be some that
# have already been marked as bogus.
2004-02-29 00:26:36 +00:00
Ilia Alshanetsky 0f116e7524 Remove unused variable. 2004-02-28 22:58:51 +00:00
Moriyoshi Koizumi 6a40d2de2b - Reordering. 2004-02-28 21:08:29 +00:00
Ilia Alshanetsky deeb7dd039 Memory allocation check. 2004-02-28 21:00:16 +00:00
Moriyoshi Koizumi a1fb66d296 - BFN & misc. 2004-02-28 20:58:48 +00:00
Moriyoshi Koizumi f9302aca13 - Remove redundant files that are irrelevant to the build. 2004-02-28 20:52:05 +00:00
Moriyoshi Koizumi f87f2ed4b4 - Forgot to add those. 2004-02-28 20:46:06 +00:00
Moriyoshi Koizumi 11b0f469f0 - Upgrade bundled oniguruma regex library to 2.2.2 (Rui, Moriyoshi)
. Supports various encodings such as BIG5, GB2312 and ISO-8859-*
  . Fixes bug #26677 (mbstring compile errors with IRIX)
  . Many thanks to K.Kosako.
- Remove redundant files that are not relevant to the build.
2004-02-28 20:45:27 +00:00
dc03dbc699 ChangeLog update 2004-02-28 01:32:09 +00:00
Rasmus Lerdorf 2a44432e8c As discussed a while ago. There is no reason to disallow command-line
arguments for the cgi version when run in a cgi context.  Our own test
framework is in fact broken because of this unnecessary restriction.
2004-02-27 23:31:28 +00:00
Frank M. Kromann 1e5869c660 Define buffer size macro and add a comment about the buffer size. 2004-02-27 23:03:07 +00:00
Marcus Boerger 7fdd68af8b Add some comments 2004-02-27 18:20:53 +00:00
Dmitry Stogov df29576af6 win32 specific fixes 2004-02-27 14:52:24 +00:00
Dmitry Stogov d05665a57e fix: Incorrect error message 2004-02-27 12:49:00 +00:00
Marcus Boerger ced7dfddbd The order of error has changed here. So the expectations must change too. 2004-02-27 09:17:55 +00:00
Marcus Boerger f449c8fdf7 Fixes for abstract classes/methods 2004-02-27 09:14:55 +00:00
Greg Beaver 7c6b73ce38 fix #640, error in comment for getStaticProperty 2004-02-27 02:27:00 +00:00
Greg Beaver 3e56af98e0 get_class -> is_a 2004-02-27 02:24:06 +00:00
44f0fce255 ChangeLog update 2004-02-27 01:32:32 +00:00
Ilia Alshanetsky c856e821d0 Fixed possible crash inside sqlite_escape_string() and
sqlite_udf_encode_binary().
2004-02-27 00:29:10 +00:00
Frank M. Kromann 29500c867d Adding function to change user passwords 2004-02-26 20:31:14 +00:00
Marcus Boerger 9346ff2de4 Fixes for abstract classes 2004-02-26 20:11:28 +00:00
Marcus Boerger 059c533b4a Fix __METHOD__ (noticed by Davey Sahfik) 2004-02-26 19:59:49 +00:00
Marcus Boerger cd7833ec81 Add new test (from pierre) 2004-02-26 19:51:08 +00:00
foobar c9d3f3250c Fix typo 2004-02-26 13:22:11 +00:00
foobar ac5fa854f3 ws & cs fixes 2004-02-26 12:33:23 +00:00
Georg Richter 700bb4dbb4 prototype fix for mysqli_ping 2004-02-26 12:24:21 +00:00
Georg Richter 8e52a1a8a3 added MySQLI ini entries
added ini parameter for mysql->reconnect
2004-02-26 11:40:35 +00:00
Georg Richter 5ffccfffda removed blocking calls to mysql_set_server_option (MYSQLI_DISABLE_MQ)
added mysqli_multi_query to function table
changed stmt->affected_rows property (http://bugs.mysql.com/?id=2247) for 4.1.2
2004-02-26 08:27:24 +00:00
1085c6c7f1 ChangeLog update 2004-02-26 01:32:27 +00:00
foobar a79c7c7c84 Remove bogus test: see bug #20993 2004-02-26 01:08:04 +00:00
Marcus Boerger 3e1f3b2124 Fix problem with Reflection_Property (patch from Timm slightly modified). 2004-02-26 01:06:18 +00:00
foobar 639073bd2a MFB: typofix 2004-02-26 00:13:30 +00:00
Ilia Alshanetsky 0f5f7c6dd0 Handle situation where feof() occurs before the HTTP header is retrieved. 2004-02-26 00:02:27 +00:00
foobar 44dfac9d96 - Fixed bug #27368 (php.ini-* has lone CR in the end)
# regex taken from win32/sendmail.c (suggested by Sara)
# And Andrei invited Wez to his speech on the cruise.. :)
2004-02-25 23:38:03 +00:00
Derick Rethans f954677e54 - Fix tests after change to highlight_string() 2004-02-25 22:55:47 +00:00
Ilia Alshanetsky 337b23bd93 Fixed bug #21760 (Use of uninitialized pointer inside php_read()).
Fixed 3 possible crashes due to integer overflow or invalid user input
inside the sockets extension.
2004-02-25 22:10:09 +00:00
Marcus Boerger ccef2cfb67 As Andi found out the dtor may increase the refcount. 2004-02-25 21:39:59 +00:00
foobar b87a245207 ws + cs 2004-02-25 21:06:59 +00:00
Marcus Boerger 8be7457b6c Temp fix for ctor signature until inheritance fix is complete 2004-02-25 20:38:56 +00:00
foobar cd2d5c4631 Revert and add the compatibility option. 2004-02-25 20:37:11 +00:00
foobar 43a1469151 typofix 2004-02-25 20:23:15 +00:00
Ard Biesheuvel 81f05c18f5 Wordsize fixes 2004-02-25 20:16:27 +00:00
foobar b1d8f10450 style 2004-02-25 19:42:56 +00:00
foobar 4a32ba458c Test for bug #27395 2004-02-25 18:54:15 +00:00
Andi Gutmans 85edb21e3a - More NEWS 2004-02-25 17:48:20 +00:00
Zeev Suraski 62e921f824 Fix leak in foreach ($o->mthd()->arr) 2004-02-25 17:23:50 +00:00
Zeev Suraski bec3adb801 Fix signature
Marcus - please make sure that this is ok.  Generally you are no longer
allowed to override a method and with an incompatible signature
2004-02-25 14:58:47 +00:00
Zeev Suraski 982b44e073 This is no longer valid out of the box PHP 5 code.
We tried to enable compatibility mode but the test engine doesn't appear
to take the --INI-- section into account in compile time, so it didn't
work...
2004-02-25 14:57:43 +00:00
Zeev Suraski 7086634a0b - Improve ARG_INFO() macros to support supplying required_num_args
- Initial fix for foreach($o->mthd()->arr) crash (now leaks)
2004-02-25 14:56:45 +00:00
Dmitry Stogov ab968b3d03 HTTP compression (memory leak was fixed) 2004-02-25 14:37:06 +00:00
Dmitry Stogov b1fa3214f0 fix: XMLSchema <choice> support was improved to support elements with minOccurs=0 2004-02-25 14:34:50 +00:00
Derick Rethans 9be67e5a42 - Use <span> instead of <font> in highlight_string(). (Patch by mg@iceni.pl) 2004-02-25 14:14:47 +00:00
Dmitry Stogov 32b6d2fbf8 HTTP compression support (gzip and deflate) 2004-02-25 14:04:41 +00:00
foobar cae6ae8250 Do not corrupt mysql build with mysqli build stuff. (should fix #27387) 2004-02-25 13:29:30 +00:00
foobar c0885c93fe Improve error messages 2004-02-25 13:11:00 +00:00
Zeev Suraski 5b51a57317 update 2004-02-25 12:45:07 +00:00
Zeev Suraski 3f514ccb79 - Rename compatiblity mode to zend.ze2_compatibility_mode (it doesn't only affect auto-clone).
- Perform implementation checks even with simple inheritance (off when
    compatibility mode is enabled).
  - Restore default arguments in interfaces and handle it correctly.
  - Move registration of internal classes later in the startup sequence
    in order to have INI options available.
2004-02-25 10:58:06 +00:00
Zeev Suraski eb6fd52e21 - Rename compatiblity mode to zend.ze2_compatibility_mode (it doesn't only affect auto-clone).
- Perform implementation checks even with simple inheritance (off when
  compatibility mode is enabled).
- Restore default arguments in interfaces and handle it correctly.
- Move registration of internal classes later in the startup sequence
  in order to have INI options available.
2004-02-25 10:57:10 +00:00
Derick Rethans ca64573e1b - Fixed bug #27391 (typo in Fatal Error message). 2004-02-25 10:43:36 +00:00
Sebastian Bergmann 184b379fd7 ZTS fix. 2004-02-25 09:36:46 +00:00
Zeev Suraski 36a751840d - Abstract methods cannot have defaults for arguments
- Make function foo($a, $b=null) satisfy both foo($a) and foo($a, $b)
  prototypes
2004-02-25 09:25:37 +00:00
Sebastian Bergmann 0cfb59fce4 Proto fixes. 2004-02-25 08:58:56 +00:00
Marcus Boerger b0529e5485 Fix object destruction/free in shutdown
- set destructor_called even when no dtor is given
- use free_storage even when no dtor hat to be called
2004-02-25 08:16:54 +00:00
Marcus Boerger 98f725b0e0 Checking once for dtor is enough 2004-02-25 07:47:56 +00:00
da0c739eac ChangeLog update 2004-02-25 01:32:26 +00:00
Marcus Boerger ce8f77f7b1 Fix class flags when handling abstract methods 2004-02-24 23:39:12 +00:00
Ilia Alshanetsky 895f244236 Fixed bug #27383 (Potential crash inside fopen_wrapper, while parsing
response code).
2004-02-24 21:52:40 +00:00
George Schlossnagle a38761cd68 fix for bug 27384 2004-02-24 21:49:28 +00:00
Frank M. Kromann d147e65186 Add missing export. 2004-02-24 19:08:28 +00:00
Ard Biesheuvel 5c0cf2311d More wordsize/alignment fixes 2004-02-24 15:47:38 +00:00
Dmitry Stogov 6b0a18ba7b Documentation update 2004-02-24 15:35:53 +00:00
Zeev Suraski e5e120460a Remove empty comment 2004-02-24 15:13:13 +00:00
Dmitry Stogov 0b0eb80fdf WSDL support for <soap:headerfault> was implemented 2004-02-24 15:06:42 +00:00
Rob Richards f5dbafafed fix win32 compile with libxml 2.6
fix mem leaks
2004-02-24 12:03:32 +00:00
Dmitry Stogov 78b63f9df1 Fixed value of attribute is default value of attribute 2004-02-24 10:14:09 +00:00
Dmitry Stogov 9da18c12cf fix: anotaion -> anotation 2004-02-24 10:13:25 +00:00
Dmitry Stogov f15dcfacc1 constants for MIME/DIME encoding were added 2004-02-24 10:12:45 +00:00
Dmitry Stogov feed42e062 XML Schema support was improved: support for <element> default, fixed and nillable 2004-02-24 09:02:33 +00:00
foobar ac92c47b84 Fix bug #26005 (Random "cannot change the session ini settings" errors) 2004-02-24 08:47:35 +00:00
409c06738f ChangeLog update 2004-02-24 01:32:27 +00:00
Wez Furlong 0619eee6d0 test case for statcache corruption of BG 2004-02-23 21:07:10 +00:00
Wez Furlong 2b95eccf7e Ooops, these should not be pointers ;) 2004-02-23 21:03:58 +00:00
Sara Golemon ba8ad292d9 Make today's changes work w/ str_ireplace() as well. 2004-02-23 20:34:59 +00:00
Sara Golemon 1c82797664 Short circuit str_replaces when we already know that needle does not occur in haystack.
Note: Prior bugfix was for #27176 not #27276
2004-02-23 20:13:14 +00:00
Sara Golemon 5144a1f522 Bugfix #27276: When using str_replace to expand a string, count occurances of needle in haystack to avoid massive overallocation 2004-02-23 20:06:01 +00:00
Ilia Alshanetsky 11366f4886 Fixed bug #27341 (HEAD requests fail to return data). 2004-02-23 19:50:07 +00:00
Derick Rethans 769dc0be75 - Added testcase for bug #27276 2004-02-23 19:45:16 +00:00
foobar 09d5b95871 Fix bug #27337 (missing sapi_shutdown() causing memory leak) 2004-02-23 19:12:22 +00:00
Andi Gutmans 4f05437e08 - Improve precendence:
<?php

$obj->foo = "Blah";

if (!$obj instanceof StdClass) {
    print "No";
} else {
    print "Yes";
}
2004-02-23 18:17:16 +00:00
Georg Richter c65d7997c3 fixed prototypes for mysqli_connect_err* functions
(thx to Mehdi Achour)
2004-02-23 16:49:18 +00:00
Ard Biesheuvel b2bc520067 64-bit fixes 2004-02-23 16:26:34 +00:00
Christian Stocker 1d0596dbef - omit WARNING instead of ERROR for x_p_c_ns
- fix SKIPIF code in tests
2004-02-23 16:19:40 +00:00
Christian Stocker 9e6de31645 skip tests, if xml_parser_create_ns is not supported. 2004-02-23 16:01:15 +00:00
Christian Stocker a3b1085f06 test for attributes 2004-02-23 15:55:16 +00:00
Christian Stocker 0c7143efe9 - mixed up name and value... fixed 2004-02-23 15:54:45 +00:00
Christian Stocker 0c942d06e6 fix attribute handling in combination with sax2 2004-02-23 15:43:49 +00:00
Adam Dickmeiss 2fdd9a9757 Use ZOOM_resultset_sort for yaz_sort. Require YAZ 2.0.13 or later. 2004-02-23 10:48:46 +00:00
Christian Stocker 830d453a2f remove compiler warnings 2004-02-23 09:19:25 +00:00
Andi Gutmans 4a14e5c30d - Decrease precedence of instanceof so that the following is true:
php -r 'var_export((object)1 instanceof stdClass);';
Patch by Jan Lehnardt
2004-02-23 08:40:39 +00:00
Christian Stocker 2f310c3e4f - make it compile with libxml2 2.5 again
- disable xml_parser_create_ns with libxml2 2.5 for the time being
- the #if s can be removed, once we insist on libxml2 2.6
2004-02-23 08:21:07 +00:00
Georg Richter b3979e76ba fixed report message
Disabled reconnect option
2004-02-23 06:35:18 +00:00
foobar 0bf907b1e6 - Added PHP_TEST_BUILD macro which can be used to test whether build
works / would work with current LIBS (+ additional extra-libs)
2004-02-23 03:24:58 +00:00
Ard Biesheuvel 154893115a 64-bit fix 2004-02-23 02:09:48 +00:00
Ard Biesheuvel 29053cc6d5 64-bit fix 2004-02-23 01:53:39 +00:00
0d28e63189 ChangeLog update 2004-02-23 01:32:39 +00:00
Ard Biesheuvel 9816c8a4e4 64-bit fix 2004-02-23 01:21:16 +00:00
foobar 9b13b215fb - Moved internally used includes/macros/structs/etc. into tidy.c to prevent
any conflicts with any other library/header/extension.

# Never EVER put this stuff in extension's php_*.h file if possible!
2004-02-23 00:59:29 +00:00
Derick Rethans b9d56576bf - Added testcase for bug #27354 (Modulus operator crashes PHP). 2004-02-22 20:04:30 +00:00
Derick Rethans e2c9926923 - Fixed bug #27354 (Modulus operator crashes PHP). 2004-02-22 20:02:26 +00:00
Marcus Boerger 1fbe07c9e0 Add some more obviously needed information 2004-02-22 18:50:47 +00:00
Christian Stocker 4e4cb3fcd2 add test for default namespaces and same-prefix/different-namespaceURI 2004-02-22 18:27:10 +00:00
Ilia Alshanetsky 52b962ca2f wbmp conversion warning fix. 2004-02-22 18:03:09 +00:00
Christian Stocker 2343df52d2 Fix broken Namespace support, use libxml2 namespace methods instead of
homebrown solution:
- default namespaces are recognized
- different namespaces with same prefix in different nodes are treated correctly
- libxml2 parser warnings are not errors anymore
2004-02-22 17:51:01 +00:00
Rob Richards 081e773f86 add optional third parameter to support namespace in constructor 2004-02-22 13:05:49 +00:00
Ard Biesheuvel 3a91737c73 Fix 64-bit crash 2004-02-22 12:10:00 +00:00
990fcad9b0 ChangeLog update 2004-02-22 01:32:09 +00:00
Sara Golemon c23305e184 Avoid use of memcpy(), reply on struct in_addr to be right sized instead 2004-02-21 19:37:37 +00:00
Ilia Alshanetsky cc2dc6c85e Set correct default threshold for image2wbmp(). 2004-02-21 16:49:39 +00:00
Sebastian Bergmann 7af39b1aad Can't test whether it works (no current >=mysql-4.1.2 available on Windows), but it should. 2004-02-21 15:05:52 +00:00
Georg Richter 12c6378412 fixed typo in method alias 2004-02-21 07:37:41 +00:00
60812423da ChangeLog update 2004-02-21 01:32:48 +00:00
Sara Golemon 4113da3f86 s_addr is always unsigned 32bit, long is not. 2004-02-20 21:05:37 +00:00
Sara Golemon 15cd6762f8 Bug Fix #27335: Numeric indexes crashing http_build_query() 2004-02-20 20:38:14 +00:00
Greg Beaver 4be7974f82 stupid oversight, no 4.2 dep 2004-02-20 17:15:07 +00:00
Dmitry Stogov 8fc285275c BUGFIX: bug in HTTP chunked encoding was fixed 2004-02-20 15:38:39 +00:00
Pierre Joye 081fa78b08 - Remove DB 1.6.0RC6 2004-02-20 15:37:33 +00:00
Pierre Joye a120b56aaf - Update to DB-1.6.0 stable 2004-02-20 15:36:24 +00:00
Pierre Joye 6123f87e25 - MFB 2004-02-20 15:35:44 +00:00
Georg Richter 1f67407f84 Moved functions for replication support in to file mysqli_repl.c
- these functions are marked as experimental now in documentation
    not sure if we will replace or extend them with NDB support in
    April
2004-02-20 13:09:14 +00:00
Antony Dovgal 7837416c2b this should really fix compile failure with gcc 2.96 2004-02-20 12:47:56 +00:00
Ard Biesheuvel 8747289066 Fix some issues with persistent links 2004-02-20 10:59:24 +00:00
Hartmut Holzgraefe 8c32fa79d7 EXTERN_C wrapping for PHPAPI prototypes
(Zend and main should now be ok)
2004-02-20 08:22:12 +00:00
Hartmut Holzgraefe b8f7d9f9f5 wrap all PHPAPI prototypes into BEGIN_EXTERN_C/END_EXTERN_C blocks
(else they won't be usable from C++ extensions)
2004-02-20 08:04:30 +00:00
Hartmut Holzgraefe 1727c6a2bb more EXTERN_C wrapping of ZEND_API prototypes 2004-02-20 08:03:27 +00:00
Hartmut Holzgraefe 767450164e A script that searches for PHPAPI and ZEND_API prototypes
not enclosed by BEGIN_EXTERN_C/END_EXTERN_C
2004-02-20 08:01:58 +00:00
foobar acf7a5e262 ws fix 2004-02-20 06:59:37 +00:00
foobar 26332c0436 Fix compile failure 2004-02-20 03:16:51 +00:00
foobar 6e15162724 Only use Z_TYPE* with zvals.. 2004-02-20 03:05:42 +00:00
6c0e948b8c ChangeLog update 2004-02-20 01:32:34 +00:00
Ilia Alshanetsky 2bc288bb0c Added missing safe_mode & open_basedir checks. 2004-02-20 01:09:00 +00:00
Dmitry Stogov 8b9607cff1 Don't try to use <input> name instead of <opeartion> name for encoding RPC call 2004-02-19 18:49:50 +00:00
Dmitry Stogov bac453038a Reading HTTP responses without "Content-Length:" but with "Connection: close" 2004-02-19 16:49:50 +00:00
Dmitry Stogov 2d61e3622d WSDL caching bugs were fixed 2004-02-19 16:46:52 +00:00
Dmitry Stogov 0dadb2bbab fix: prevent possible crash 2004-02-19 16:45:25 +00:00
Dmitry Stogov 9ebc56dd50 Passing arguments to "anyType" cause passing type information in literal encoding. Receiver gets sach parameters as SoapVar objects. 2004-02-19 11:32:42 +00:00
Dmitry Stogov 15ccb3be8d Support for SOAP Fault encoding according to WSDL <fault> and <soap:fault> 2004-02-19 08:21:13 +00:00
Ilia Alshanetsky 0e692f9506 Fixed possible resource/memory leak. 2004-02-19 02:19:11 +00:00
foobar 4441da2754 Improve error messages 2004-02-19 01:54:21 +00:00
b21569dead ChangeLog update 2004-02-19 01:32:24 +00:00
Hartmut Holzgraefe 3a3f95a399 wrap ZEND_API prototypes into BEGIN_EXTERN_C/END_EXTERN_C
for C++ extension support
2004-02-18 22:44:40 +00:00
Rob Richards 7deeb0f96a always return domnodelist unless error 2004-02-18 22:42:30 +00:00
Hartmut Holzgraefe d303509e05 be nice to C++ extensions 2004-02-18 21:34:15 +00:00
Rob Richards 4051591cfe correct implementation of prefix write property 2004-02-18 20:37:30 +00:00
foobar e3c437d378 register_list_destructors -> zend_register_list_destructors_ex 2004-02-18 20:22:40 +00:00
Ilia Alshanetsky 95cbb0046c Fixed bug #27295 (memory leak inside sscanf()). 2004-02-18 19:48:13 +00:00
Georg Richter a12c95e1be changed return value of mysql_fetch
- instead of MYSQL_NO_DATA mysql_fetch will now return NULL
2004-02-18 13:26:57 +00:00
Zeev Suraski 666b44c11e Forward-port fixlet from PHP 4 (thanks to Michael Sisolak) 2004-02-18 08:53:56 +00:00
Dmitry Stogov cbec795c0b fix: SoapFault constructor fixed to confirm documentation. 2004-02-18 07:35:34 +00:00
Dmitry Stogov 9cb54cb232 BUGFIX: HTTP chunked transfer-encoding support 2004-02-18 06:58:33 +00:00
Sara Golemon da55c00362 Show registered transports in phpinfo() 2004-02-18 05:07:13 +00:00
7cb2086ea1 ChangeLog update 2004-02-18 01:32:10 +00:00
foobar abb9ac9d5f Test for bug #27287 2004-02-18 00:00:36 +00:00
foobar 2b8611ae3b MFB: - Fix bug #26753 (zend_fetch_list_dtor_id() does not check NULL strings) 2004-02-17 22:04:05 +00:00
Ilia Alshanetsky cb5c9156c2 Fixed bug #27293 (two crashes inside image2wbmp()). 2004-02-17 21:30:00 +00:00
Rob Richards 43eb077107 add dtor to cleanup iterator related data 2004-02-17 19:57:48 +00:00
Dmitry Stogov b17eab9a31 Using element namesapces with literal encoding. 2004-02-17 18:54:30 +00:00
Dmitry Stogov 7edf9bc2c3 support for XMLSchema <element> nillable attribute 2004-02-17 15:10:16 +00:00
Ard Biesheuvel c796a47690 Fixed unregistered bugs in event handling
Cleaned up some of the code
Removed ISC_QUAD from static initializers because it looks different on
	some platforms
2004-02-17 12:53:54 +00:00
Ard Biesheuvel 3cc26de38d Added event handling test
CS
2004-02-17 12:24:42 +00:00
Wez Furlong 66fa4e74ea Fix:
#27269 php_gettext.dll extension will not load
2004-02-17 11:15:19 +00:00
Rob Richards ec2ea131fb implement clone functionality to fix segfault
DomNode->clone() creates new doc proxy if document is cloned
remove printf from xpath
fix remaining invalid object state issues
2004-02-17 11:13:47 +00:00
Dmitry Stogov 0ecd198dc5 fix: Using proper namespace for <soap:header> if it is not specified. 2004-02-17 09:23:28 +00:00
Dmitry Stogov 168dc362df Encoding of ommited tail parameters as NULLs 2004-02-17 08:18:53 +00:00
Georg Richter f7ca7c469a changed output 2004-02-17 07:45:15 +00:00
Stig Bakken cdad10a21a * apply bold escape codes only if output is going to a terminal/tty 2004-02-17 05:49:16 +00:00
9551966c85 ChangeLog update 2004-02-17 01:32:28 +00:00
Moriyoshi Koizumi 097bfda39d - Add "zbacktrace" user-defined command. 2004-02-16 20:20:55 +00:00
foobar 7a7927c146 shorten the description a bit 2004-02-16 17:44:27 +00:00
Ilia Alshanetsky 4a954193e4 Fixed bug #27278 (*printf() functions treat arguments as if passed by
reference).
2004-02-16 17:09:37 +00:00
Ilia Alshanetsky dc9f52f039 Fix test. 2004-02-16 17:09:08 +00:00
foobar 7fd4bdbec4 nuke copypaste rubbish 2004-02-16 16:50:53 +00:00
foobar 173794732b test for bug #27278 2004-02-16 16:50:11 +00:00
Dmitry Stogov 3e002aa66d specal case of array encoding. If object has only one inner element and this element has max_occurs > 1, then array can be passed directly. 2004-02-16 16:35:59 +00:00
Dmitry Stogov 1350643b8c BUGFIX: incorrect restoring of negative integers from WSDL cache 2004-02-16 16:32:52 +00:00
Sergey Kartashoff 25956876a7 - A fix to make UDM_LIMIT_DATE work was applied. Thanx to
d.rousseau at nnx.com
2004-02-16 16:11:59 +00:00
foobar 0eda6a05fe this was MFHd.. 2004-02-16 16:00:15 +00:00
Georg Richter d23dff1220 fixed some tests
added skip section for prepared statements when using SHOW command
2004-02-16 15:32:46 +00:00
Ilia Alshanetsky 4f388ba849 Better gmp fix. 2004-02-16 15:13:40 +00:00
Jan Lehnardt bf807f6d69 - fix typo 2004-02-16 14:41:38 +00:00
Rob Richards 602c786aa9 issue warning if object is in invalid state when dealing with properties 2004-02-16 13:06:33 +00:00
Derick Rethans 5dcf37b618 - Clearify clone behavior, fixed clone example (Patch by Jan Lehnardt) 2004-02-16 12:08:20 +00:00
Dmitry Stogov 939a8d43cf Prevent processing SOAP headers with invalid namespace in WSDL mode. 2004-02-16 12:04:48 +00:00
Stanislav Malyshev 794975d97f ce is not used, don't get it 2004-02-16 11:21:31 +00:00
Dmitry Stogov 6aad56d4a2 fix: prevent of possible crash 2004-02-16 09:56:30 +00:00
foobar 6e06620089 - fix test 2004-02-16 06:39:13 +00:00
710cf3eaf6 ChangeLog update 2004-02-16 01:32:11 +00:00
Marcus Boerger b438902cd2 BFN 2004-02-16 00:34:35 +00:00
Marcus Boerger b0ef896f0e Bugfix #27227 Mixed case class names causes Fatal Error in Constructor call 2004-02-16 00:34:23 +00:00
Ilia Alshanetsky 2e2c4375d0 For get_data iterator do not force numeric keys, return keys the user
requests.
2004-02-15 20:42:58 +00:00
Georg Richter d5084182ce fixed several binding problems 2004-02-15 20:23:05 +00:00
Ilia Alshanetsky d438dad1b2 Fixed a crash inside create_aggregate() method due to incorrect argument
parsing.
2004-02-15 20:15:34 +00:00
Rob Richards 2a32e4328a switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
fix a few segfaults found while testing
2004-02-15 18:57:10 +00:00
Ard Biesheuvel 595d6a2d84 Reintroduce param NULL testing (see bug #26777) 2004-02-15 18:34:47 +00:00
foobar 47c49ee013 Prevent bug reports like #27260 2004-02-15 17:54:19 +00:00
Stig Bakken 2fd0f86c73 * don't cut lines when wrapping output 2004-02-15 17:43:00 +00:00
Ilia Alshanetsky b7329c8456 Fixed bug #27258 (moved FPE check to correct location).
Fixed several possible FPE.
2004-02-15 17:22:57 +00:00
Rob Richards c3a57206cc allow certain methods to be called statically again:
domdocument (all load methods)
   domimplementation (all methods)
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
fix a few segfaults found while testing
2004-02-15 17:07:34 +00:00
Marcus Boerger b59989e716 Fix startup errors 2004-02-15 17:00:42 +00:00
Rob Richards c1418894dd switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
2004-02-15 14:05:17 +00:00
Zeev Suraski 7c710a9f9b Use zval_ptr_dtor() to free variables as soon as they hit refcount of 0.
Note:  You should not be using ZVAL_DELREF() in day to day usage.  Instead,
       you should use zval_ptr_dtor().  Use ZVAL_DELREF() only if you're
       messing with the refcount directly and know what you're doing.
Note #2:  For clarity, if you want to initialize a new zval with a refcount
          of 0, it's best to do that directly, instead of using ZVAL_DELREF
          after allocating the zval...
2004-02-15 12:58:19 +00:00
Rob Richards a2e1844de9 start of dom update
switch to zend_parse_method_parameters for consistancy
insure object parameters are correct class types
convert zvals to correct type if needed for property writes
2004-02-15 10:54:37 +00:00
Timm Friebe 104f2b5ff4 - Fixed bug #26407 (Result set fetching broken around transactions) 2004-02-15 10:53:45 +00:00
Timm Friebe e0c7f10ef5 - Changed initialization of function arguments to message handler
# Hopefully fixes bug #27157 (Compile Failure on Solaris 8), user does
# not know how to use patch and therefore couldn't verify this works.
2004-02-15 10:37:09 +00:00
36315ded6b ChangeLog update 2004-02-15 01:33:34 +00:00
Jan Lehnardt 4d0ad7fbb7 - improve error message 2004-02-14 19:02:23 +00:00
Jan Lehnardt 905f4e98a2 - silence warning 2004-02-14 17:31:00 +00:00
foobar cbb1e6e4fb bfn 2004-02-14 16:25:20 +00:00
Marcus Boerger ce984d7667 dtor's may not be called from free_storage handlers 2004-02-14 13:33:36 +00:00
Derick Rethans ac9f4cc2af - We always need to destroy the llist though. 2004-02-14 12:35:59 +00:00
Derick Rethans 3781af53cd - Fixed zero bytes memory allocation when no extra ini files are found in the
--with-config-file-scan-dir specified directory. (patch by Eric Colinet
  <e.colinet@laposte.net>)
2004-02-14 12:29:04 +00:00
ee42c23ce0 ChangeLog update 2004-02-14 01:32:09 +00:00
Dmitry Stogov b21756c1ca Source cleanup 2004-02-13 15:19:09 +00:00
Rob Richards 16136dfe93 Fix bug #27237: Working with simplexml crashes apache2
object dtor must be used to cleanup iterator data correctly
Fix asXML() outputing incorrect node
2004-02-13 15:05:18 +00:00
Dmitry Stogov 81af85c380 Old in-memory WSDL cache was removed (it was already switched off by #ifdef) 2004-02-13 11:03:58 +00:00
Dmitry Stogov 2d1ae249a8 Cleanup 2004-02-13 10:29:55 +00:00
Dmitry Stogov dcb3189df2 SoapClient::__getTypes and SoapClient::__getFunctions were fixed to return proper information 2004-02-13 08:30:13 +00:00
Dmitry Stogov 9b29737f44 BUGFIX 2004-02-13 08:29:11 +00:00
Ilia Alshanetsky 36f27848a6 Fixed compile warnings. 2004-02-13 02:20:20 +00:00
7e7630aeb0 ChangeLog update 2004-02-13 01:32:15 +00:00
Ilia Alshanetsky 472599ec75 Added cvsingore 2004-02-13 01:20:15 +00:00
Ilia Alshanetsky 5a38078385 Fixes for PHP 4.3.X. 2004-02-13 01:19:57 +00:00
Ilia Alshanetsky b93acb023d Added package.xml 2004-02-13 01:14:15 +00:00
Ilia Alshanetsky eb06e0c425 Initial commit of the fileinfo extension. 2004-02-13 01:06:06 +00:00
Frank M. Kromann cf2c4b26bb Adding mising declaration (needed for Win32 compilation) 2004-02-13 00:02:19 +00:00
Derick Rethans cd4a39edf9 - Fixed start-up problem if both SPL and SimpleXML were enabled. The
double initialization of apache 1.3 was causing problems here.
2004-02-12 23:39:46 +00:00
Marcus Boerger 1507a4a677 Fix (thx Andi) 2004-02-12 21:43:10 +00:00
Marcus Boerger ab1e2e7c06 Fix ArrayObject 2004-02-12 20:52:48 +00:00
Stig Bakken 4127b304ea * email address update 2004-02-12 19:05:41 +00:00
Stig Bakken f8125ed92d * update my email address 2004-02-12 19:03:03 +00:00
Stefan Esser debf069a58 better write into the correct buffer 2004-02-12 18:27:33 +00:00
Wez Furlong 6d131cefc0 name the pecl bundle pecl-foo instead of php-foo-pecl. 2004-02-12 17:58:52 +00:00
Dmitry Stogov 563e769dff WSDL support for unknown extensibility elements and wsdl:required attribute (Interop Round3 GroupF) 2004-02-12 16:42:34 +00:00
Dmitry Stogov 69eb0041b1 fix: possible crash was fixed 2004-02-12 16:41:58 +00:00
Andi Gutmans efe864dc34 - We are RC1-dev now 2004-02-12 16:26:59 +00:00
Andi Gutmans 82ad916386 - Roll Beta 4 2004-02-12 15:59:18 +00:00
Andi Gutmans 5cad7a2b4a - Remove old code 2004-02-12 15:23:06 +00:00
Hartmut Holzgraefe 92f355d733 making sure that the provided examples actualy work (or at least do not
generate no parse errors) unless they are really expected to fail
2004-02-12 14:44:58 +00:00
foobar 1526710ce1 reorder 2004-02-12 14:34:25 +00:00
Andi Gutmans 62b81df9b0 - This was too strict. 2004-02-12 14:31:13 +00:00
Zeev Suraski fe4239d0d7 Fix test 2004-02-12 14:12:37 +00:00
Pierre Joye 77e432c6ac - Update to DB-1.6.0RC6 (stable)
notabene: No more RC with stable state will be bundled with stable
  php release. It's ok for php5 beta4.
2004-02-12 14:09:53 +00:00
Pierre Joye c2d135276c - Remove old DB 2004-02-12 14:08:19 +00:00
Zeev Suraski f041e73a67 Fix prototype/warning 2004-02-12 13:53:51 +00:00
Andi Gutmans c46ccc01fd - More news 2004-02-12 13:52:47 +00:00
Zeev Suraski e7e0f7d4b4 - Check return-by-reference bit when implementing interface prototypes
- Add infrastructure for built-in functions to hint whether they
  return by reference or not.  It is NOT currently used for anything,
  except for interface prototypes (you can use it to request that the
  function that implements your prototype returns by reference or
  doesn't return by reference).
  For downwards compatibility - by default, interface prototypes are
  agnostic as to whether the function that implements them returns
  by reference or not.  Use ZEND_BEGIN_ARG_INFO_EX() with
  ZEND_RETURN_VALUE/ZEND_RETURN_REFERENCE to change that.
- Fix ArrayAccess::getOffset() to conduct additional checks.
  If your getOffset() should work with multidimensional arrays - it
  must return by reference.
2004-02-12 13:49:55 +00:00
Wez Furlong 2c3c75ae55 ensure that install exists before copying files. 2004-02-12 13:01:14 +00:00
Andi Gutmans d60d7777d1 - Add News entry 2004-02-12 12:37:13 +00:00
Zeev Suraski 59a5701a8e extend Exception 2004-02-12 12:37:04 +00:00
Wez Furlong 08a1b6c476 Tidy up "nmake clean" for people that don't have a PECL checkout.
Be paranoid when building a snapshot: if the module is not a core
module (eg: it comes from outside of ext or sapi) and it defaults to "yes",
then force it to become shared.  This will prevent a pecl ext from
accidentally being compiled statically into the core, and prevent that
ext from breaking the core build.  You can still manually force a static
build by explicitly specifying the args for that extension on your configure
line.
2004-02-12 12:30:41 +00:00
Andi Gutmans 7d3215d333 - Add comments to read/write property/dimension for extension authors 2004-02-12 12:22:45 +00:00
Zeev Suraski 229aa6351f extend Exception 2004-02-12 12:21:16 +00:00
Wez Furlong 08ed2cb9f7 fix copy-n-past error in constructor.
Spotted by Eric Colinet.
2004-02-12 12:11:21 +00:00
Wez Furlong fed6471bb7 Fix build; line continuation character should be the very last character
on a line, otherwise things b0rk.
2004-02-12 11:55:16 +00:00
Zeev Suraski 3221aea978 Update configure 2004-02-12 11:47:53 +00:00
Dmitry Stogov 866816efef Caching of temorary WSDL files was disabled. 2004-02-12 11:02:16 +00:00
Edin Kadribasic 5979799de0 Added zend_exceptions.c to the build 2004-02-12 10:53:08 +00:00
Zeev Suraski 30171a7590 zend_default_classes.h -> zend_exceptions.h 2004-02-12 10:43:27 +00:00
Dmitry Stogov 07e3413e99 Using zend_throw_exception_object() instead of EG(exception). 2004-02-12 10:39:20 +00:00
Andi Gutmans 61a049ba3b - Add zend_exceptions.c 2004-02-12 10:39:12 +00:00
Zeev Suraski 00ed3bad29 Centralize exceptions code in zend_exceptions.[ch].
Remove zend_default_classes.h (use zend_exceptions.h instead)

NOTE:  This currently breaks the build, fixes to php-src and pecl coming
       soon
2004-02-12 10:38:14 +00:00
Andi Gutmans e189d89672 - Use zend_throw_exception_object() in throw_handler to make sure it
- does all the checks
2004-02-12 10:28:33 +00:00
Zeev Suraski d9630a595b Exceptions updates:
- Enforce exceptions to be derived from class Exception.  This allows
  users to perform catch-all.  It's not yet complete, so don't get
  comfortable with it just yet :)  Updates are coming soon.
- Implement zend_throw_exception() using zend_throw_exception_ex()
2004-02-12 10:24:40 +00:00
Andi Gutmans 559b14611d - Add API function to throw exception by using an object 2004-02-12 09:50:08 +00:00
Dmitry Stogov 71380e7d7f "Runtime Configuration" and "Exceptions" were added. 2004-02-12 09:05:56 +00:00
Andi Gutmans eca1fdc821 - Go with b4 RC 1 (Sanity package) 2004-02-12 08:46:02 +00:00
35e8577db4 ChangeLog update 2004-02-12 01:36:26 +00:00
foobar 785d780283 ws fix 2004-02-12 01:31:57 +00:00
foobar b10ce1155c - Fixed bug #23467 (Showing incorrect Time Zone)
# patch by scottmacvicar at ntlworld dot com
2004-02-12 01:28:12 +00:00
Marcus Boerger 7258bff325 Cleanup 2004-02-11 23:36:25 +00:00
Marcus Boerger 2a8426a664 Must be initialized in ZTS mode 2004-02-11 22:58:03 +00:00
Marcus Boerger 39894ea7c1 Update 2004-02-11 22:42:53 +00:00
Marcus Boerger 4256448a5f Update 2004-02-11 22:38:05 +00:00
Marcus Boerger c6cbafa273 Fix: <interface> [extends <interface> [, <ineterface>]* ] 2004-02-11 22:13:39 +00:00
foobar e9e1494a59 There is CODING_STANDARDS..at least NEW code should respect those.. 2004-02-11 21:20:22 +00:00
foobar db0854a952 style 2004-02-11 21:17:35 +00:00
Marcus Boerger 1c00296cc7 Bugfix #27104 CLI/CGI SAPI module variable name conflict 2004-02-11 21:00:46 +00:00
Zeev Suraski c8c0e97982 Prevent SimpleXML from silently modifying types of variables that are
assigned to its objects.

Implementation notes for overloaded object modules:

- If you return a zval which is not otherwise referenced by the extension
  or the engine's symbol table, its reference count should be 0.
- If you receive a value zval in write_property/write_dimension, you
  may only modify it if its reference count is 1.  Otherwise, you must
  create a copy of that zval before making any changes.  You should NOT
  modify the reference count of the value passed to you.

Have fun!
2004-02-11 19:15:30 +00:00
Zeev Suraski d91fc5fa3c Fix leaks in assignments to overloaded objects 2004-02-11 19:12:16 +00:00
Brian France 8a3d87f766 - Added checks for invalid characters in a cookie name or cookie data
from setrawcookie. (Brian)
	- Added new pspell functions to set the dict-dir and data-dir options. (Brian)
2004-02-11 19:02:39 +00:00
Brian France d5b6608da5 Added checks for invalid characters in a cookie name or cookie data from setrawcookie 2004-02-11 19:00:42 +00:00
Brian France e6ae5c3318 Added two new functions to set the dict-dir and data-dir options. 2004-02-11 18:50:16 +00:00
Ilia Alshanetsky 8b97d9d7f1 'Touch' the file to make sure re2c is not needed. 2004-02-11 17:32:38 +00:00
Ilia Alshanetsky 0fc2bb9d49 Fixed bug #26862 (ob_flush() followed by output_reset_rewrite_vars() may
result in data loss).
2004-02-11 17:00:48 +00:00
Zeev Suraski 3d4c7922e1 Fix leak with overloaded objects, when they're used just "for the hell
of it" :)
2004-02-11 16:28:46 +00:00
Ard Biesheuvel b625b03493 Look in the right place for lib 2004-02-11 16:20:48 +00:00
Dmitry Stogov f3ed4a27a0 support for command line interface was improved 2004-02-11 16:13:15 +00:00
Dmitry Stogov f46638ae28 Cache files access rights were changed. 2004-02-11 16:12:31 +00:00
Zeev Suraski b70f942189 Get rid of some yucky past, and reenable these tests 2004-02-11 16:09:46 +00:00
Zeev Suraski aac72ce090 Fixed a bug the caused overloaded array indices to be converted to strings 2004-02-11 15:56:13 +00:00
Zeev Suraski 30f1be78c2 Turn off bogus warnings with overloaded dimensions and += (and friends) 2004-02-11 15:50:23 +00:00
Ilia Alshanetsky c6a2a19051 Proper win32 fix. 2004-02-11 14:52:12 +00:00
Zeev Suraski cc8c9ef2ec Improve the implementation of unset() on array dimensions to be more
consistent with that of regular variables and string offsets
2004-02-11 13:58:29 +00:00
Dmitry Stogov 6096b09159 Now SoapClient uses excptions as default method for error reporting 2004-02-11 13:53:50 +00:00
Zeev Suraski 75390796be Fix bug #25038 2004-02-11 13:01:39 +00:00
Rob Richards 5731108c55 Fix test 2004-02-11 13:00:19 +00:00
Zeev Suraski fde9bac476 Fix crash (patch by Rob Richards) 2004-02-11 12:35:24 +00:00
Zeev Suraski 6b6fe2f76e Fix exceptions thrown without a stack frame
Always enable set_exception_handler()
2004-02-11 12:31:18 +00:00
Rob Richards 6e4a4e8a9a Fix compiler warnings
Update tests
2004-02-11 12:19:26 +00:00
Ard Biesheuvel a3dd0efee2 Add version info about run-time client library
# A number of user crashes appear to be caused
# by using incorrect combinations of libraries
2004-02-11 12:08:44 +00:00
Ard Biesheuvel 9925c63be5 CS/WS 2004-02-11 11:59:08 +00:00
Andi Gutmans d93f899271 - Change to b4 2004-02-11 11:53:45 +00:00
Zeev Suraski 3d622f99c1 Change FETCH_RESOURCE to return false on error instead of null, for
consistency with other error situations
2004-02-11 11:52:33 +00:00
Zeev Suraski 0018eed69f Finally add a notice to hint people that using dl() is a bad idea... 2004-02-11 11:46:20 +00:00
Zeev Suraski c01c44c2e2 Fix bug #26802 (the right aspects of it found by Marcus, anyway :) 2004-02-11 10:51:05 +00:00
Zeev Suraski 0f3106ad17 Fix and clarify the test case 2004-02-11 10:48:20 +00:00
Zeev Suraski 73a6bcf5cf Complete the fix for handling of exceptions happening during the
argument passing phase of function calls (fixes bug #26866)
2004-02-11 09:42:58 +00:00
Zeev Suraski 4b632eba46 whitespace 2004-02-11 09:42:10 +00:00
Georg Richter 9e93ac6005 removed printfs :)
Thx Andi!
2004-02-11 08:34:08 +00:00
Georg Richter 3e2907d614 changed first param in mysqli_bind_param 2004-02-11 07:39:28 +00:00
Georg Richter c0a1ec4210 changed first parameter in mysqli_bind_param from array to string
(as discussed on berlin db meeting)
2004-02-11 07:38:43 +00:00
8d102800b3 ChangeLog update 2004-02-11 01:32:14 +00:00
Rui Hirokawa 815fe886b8 fixed a compilation error. 2004-02-11 00:45:07 +00:00
Zeev Suraski 816d15252b Ignore the memleak in this test 2004-02-10 22:13:07 +00:00
Timm Friebe b3a55e95de - Removed pointless call to error_reporting() 2004-02-10 20:39:08 +00:00
Zeev Suraski ed113a65b0 Clear that up 2004-02-10 18:50:10 +00:00
Zeev Suraski acb1f365d2 Cleanup 2004-02-10 18:46:53 +00:00
Zeev Suraski b8a990ace7 Fix report_memleaks 2004-02-10 17:55:32 +00:00
Ilia Alshanetsky 9c1be88844 Fixed win32 build.
Fixed building of libfcgi when PHP is built from another directory.
Added missing headers needed for wait().
Removed duplicate signal.h header.
Removed unneeded variables.
2004-02-10 17:44:31 +00:00
Zeev Suraski f069be85bf Whitespace 2004-02-10 17:44:18 +00:00
Zeev Suraski 79a58abbbf Fix bug #26698 (exceptions handled properly during argument passing to functions) 2004-02-10 17:01:55 +00:00
Ilia Alshanetsky e8beeecf3e Fixed bug #26653 (open_basedir incorrectly resolved on win32). 2004-02-10 16:08:54 +00:00
Zeev Suraski b6e14b44b4 Fix bug #27186 2004-02-10 16:08:01 +00:00
Zeev Suraski da36a7c249 Fix bug #26869 2004-02-10 15:30:32 +00:00
Andi Gutmans 597410a0e0 Fix a couple of tests 2004-02-10 15:20:51 +00:00
Zeev Suraski 57aaad0dec Fix refcounting of ++/+= overloading (fix leak in __get()/__set()
based classes)
2004-02-10 14:52:14 +00:00
Jan Lehnardt 023e12cf3a - fix #27197 for Greg (cellog@php.net) 2004-02-10 14:40:39 +00:00
Dmitry Stogov 20add786ae WSDL caching was implemented 2004-02-10 13:41:21 +00:00
foobar 6529000fff Add test case for bug #26866 2004-02-10 12:58:36 +00:00
Andi Gutmans 91ee6c0ceb - Nuke more unused code 2004-02-10 11:44:17 +00:00
Zeev Suraski de583b2f91 Fix handling in assignment using multidimensional array syntax to string
offset ($s = "FUBAR"; $s[0][0] = 1;)
2004-02-10 11:39:52 +00:00
Andi Gutmans 70c418d064 - We will go with PHP 4 behavior. With the new object model assigning by
reference has lost a lot of its importance.
2004-02-10 11:20:52 +00:00
Andi Gutmans 041b5dc2f7 - Remove junk 2004-02-10 10:44:09 +00:00
Zeev Suraski d082fb03ee Fix exception handling in opcodes spanned across multiple oplines (fixes the crash in __set()) 2004-02-10 10:07:46 +00:00
Zeev Suraski 5feca6a388 Update NEWS 2004-02-10 09:37:11 +00:00
Zeev Suraski e8e9b2afee Implement get callback for SimpleXML (it now supports pre/post increment
as well as binary-assign-ops)
2004-02-10 09:30:38 +00:00
Zeev Suraski 439396188c - Fix pre/post increment for overloaded objects
- Fix binary-assign-op for overloaded objects

NOTE:  This requires the implementation of the 'get' callback!
2004-02-10 09:29:42 +00:00
Moriyoshi Koizumi e88babe8ac - Correcting test.
# still segfaults though.
2004-02-10 09:15:01 +00:00
fa0d19caa7 ChangeLog update 2004-02-10 01:34:00 +00:00
Ilia Alshanetsky 242296faeb Fixed bug #26758 (FastCGI exits immediately with status 255). 2004-02-10 00:29:46 +00:00
Ilia Alshanetsky 0f9d01d8ac Fixed bug #27026 (Added cgi.nph that allows forcing of the Status: 200
header that is not normally needed).
2004-02-10 00:02:38 +00:00
Ilia Alshanetsky 67dd730546 Fixed bug #27196 (Missing content_length initialization in apache 2 sapis). 2004-02-09 23:27:43 +00:00
foobar 1b6b63c3f9 ws 2004-02-09 18:18:00 +00:00
Frank M. Kromann d7961b69e2 Delay creation of exec handle til it's needed 2004-02-09 17:58:04 +00:00
Dmitry Stogov a55f6cb66c Allowing to report SOAP Fault with "return new SoapFault(...)" 2004-02-09 09:31:18 +00:00
Dmitry Stogov 3b19e196fa Allowing to pass request to SoapServer::handle direct (not through $HTTP_RAW_POST_DATA). 2004-02-09 07:51:07 +00:00
Ilia Alshanetsky 0e5020fdad Fixed bug #27172 (Possible floating point exception in gmp_powm()). 2004-02-09 04:27:35 +00:00
Ilia Alshanetsky ec09b090f9 Fixed bug #27175 (tzset() is not being called by PHP on startup). 2004-02-09 04:04:24 +00:00
9d21d82024 ChangeLog update 2004-02-09 01:32:12 +00:00
Timm Friebe fbc3eda353 - Initial release 2004-02-09 00:32:39 +00:00
Timm Friebe a8bd293005 - Changed error_reporting setting to E_ALL so we get the notices 2004-02-09 00:14:24 +00:00
Timm Friebe 06ab4e69db - Made server name and credentials contain something obviously incorrect.
- Made charset parameter default to "iso_1" (fixed "Sybase: Unable to
  update character set." warnings which were failing all tests when the
  official Sybase libraries were used - FreeTDS ignores this).
2004-02-08 23:58:46 +00:00
Andi Gutmans 3bf293ff89 - Change from PHP5 -> PHP 5 2004-02-08 22:49:47 +00:00
Zeev Suraski 2a9e1294bc Update to new API 2004-02-08 17:25:54 +00:00
Zeev Suraski 473927ece8 Fix write-mode of overloaded objects when using array dimensions 2004-02-08 17:23:20 +00:00
Andi Gutmans 8a129bfc47 - Check if free_storage exists 2004-02-08 17:08:11 +00:00
c952eb4bd8 ChangeLog update 2004-02-08 01:32:14 +00:00
foobar 6b8616889d Fixed bug #27171 2004-02-07 19:14:49 +00:00
Georg Richter e3d0e587b8 fixed cast warning 2004-02-07 13:45:44 +00:00
Stig Bakken aa8572cfba * obsolete 2004-02-07 08:31:09 +00:00
Greg Beaver 71b6a816f6 fix PATH_SEPARATOR issues - was defined in PHP 4.3.0, but documentation never showed this. 2004-02-07 04:42:07 +00:00
fed3044000 ChangeLog update 2004-02-07 01:32:11 +00:00
Dmitry Stogov 79dc8d5ef6 fix 2004-02-06 16:54:34 +00:00
Dmitry Stogov 59ab20b23b optimization 2004-02-06 16:52:14 +00:00
Ard Biesheuvel 9415013456 Fix build with Win32 Interbase 5.x 2004-02-06 15:11:17 +00:00
foobar b8e6cde6c6 fine tune 2004-02-06 14:59:51 +00:00
Dmitry Stogov 6ae97a5b25 WSDL cache was disabled by default (see WSDL_CACHE macro)
WSDL related memory leaks were fixed
2004-02-06 14:22:33 +00:00
Dmitry Stogov 88c1168941 Free XML documents after WSDL parsing (they no longer need). 2004-02-06 11:56:03 +00:00
Wez Furlong 2cf588a0a9 prefer != "no" over = "yes". (it doesn't really matter for ext/soap, but
it's still the best practice).
2004-02-06 09:18:51 +00:00
Dmitry Stogov c22d7cf883 PHP5 and WIN32 support was improved 2004-02-06 08:01:35 +00:00
Ilia Alshanetsky dfde3095e4 Possible fix for bug #27165. 2004-02-06 03:14:06 +00:00
Ilia Alshanetsky c858a4e93c Fixed possible memory leak with INI values. 2004-02-06 03:08:27 +00:00
Ilia Alshanetsky 1eb6a18289 Do not initialize & create vars unless they will be used. 2004-02-06 03:07:59 +00:00
f6b9419d2c ChangeLog update 2004-02-06 01:32:19 +00:00
Andrey Hristov e5bd298bbc typo 2004-02-05 21:11:26 +00:00
Dmitry Stogov 508273780c PHP API was changed (see readme.html for more details). 2004-02-05 20:26:05 +00:00
Sebastian Bergmann 0e3ce62c7b Committing for Jan. 2004-02-05 10:41:55 +00:00
Dmitry Stogov 2c1dcf32a0 WSDL parsing speedup. Source cleanup. 2004-02-05 09:28:09 +00:00
Stanislav Malyshev 1c433049ca fix serialization 2004-02-05 09:07:46 +00:00
Stanislav Malyshev 8487383ede fix test - remove warning 2004-02-05 09:03:37 +00:00
Antony Dovgal d3cd05c95a fix bug #27149
(offset should start with 1)
2004-02-05 08:29:16 +00:00
Ilia Alshanetsky 5b0c9335d3 Bug fixing news. 2004-02-05 02:17:33 +00:00
Ilia Alshanetsky 157a4e289a Fixed bug #27145 (Unmangle private/protected property names before printing
then inside error messages).
2004-02-05 02:16:08 +00:00
John Coggeshall fac5939f42 Updating tests that got left behind when we changed to studlyCaps
and fixed another test
2004-02-05 01:38:59 +00:00
e92f95346b ChangeLog update 2004-02-05 01:32:18 +00:00
Zeev Suraski e28ab687d2 Fix exceptions happening inside internal functions called through
zend_user_function()
2004-02-04 23:48:39 +00:00
Marcus Boerger 4a3c015dd7 Fix annoying warning 2004-02-04 23:41:58 +00:00
Zeev Suraski 14ac17fa95 Remove double initialization 2004-02-04 23:28:40 +00:00
Ilia Alshanetsky ffd3b1dd0a Parse command line ini directives passed using -d before -i, to ensure
correct settings output.
2004-02-04 22:49:28 +00:00
Wez Furlong a44838e8a3 Fix a bug in the persistent socket liveness checks and feof(); they were
using the default socket timeout of 60 seconds before returning the socket
to the calling script.  The reason they were using that value is that the
same code is used for feof(), so the fix is allowing the caller to
indicate the timeout value for liveness checks.

A possible remaining issue now is that 0 second timeout[1] for pfsockopen
is possibly too short; it's impossible to specify a sane value for all
possible uses, so maybe we need a stream context or an .ini option to
control this, or maybe use the timeout value that was passed to
pfsockopen().

# [1] by timeout, I mean the time that PHP will wait for data on a
# persistent socket before deciding if a new connection should be made;
# NOT the timeout while waiting for a new connection to be established.
2004-02-04 22:46:44 +00:00
Marcus Boerger 7fa5cdcb72 Add new prototype 2004-02-04 22:22:30 +00:00
Marcus Boerger 63c964c40f Fix reflection 2004-02-04 22:19:00 +00:00
Marcus Boerger 629c3da19d Add test 2004-02-04 22:18:35 +00:00
Marcus Boerger 8710688358 The &new is no longer needed, prevent E_STRICT message 2004-02-04 21:34:10 +00:00
Andi Gutmans ac4dc68608 - Added recent stuff to NEWS 2004-02-04 21:29:28 +00:00
Marcus Boerger 09fe52c687 Fix Warning 2004-02-04 21:04:39 +00:00
Marcus Boerger dd58eb3f6d Fix warnings 2004-02-04 21:04:12 +00:00
Zeev Suraski d3c9467432 Fixlet 2004-02-04 18:24:44 +00:00
Zeev Suraski bab3acc37b Fix handling of $this in some cases 2004-02-04 17:57:48 +00:00
Zeev Suraski 75d1fbec60 Update test (reason: can no longer assign to $this) 2004-02-04 17:55:44 +00:00
Zeev Suraski aa4fa62fc8 Update test (reason: early binding changes its behavior) 2004-02-04 17:47:35 +00:00
Zeev Suraski 4b4351c2d9 Update test (reason: early binding changes its behavior) 2004-02-04 17:45:08 +00:00
Zeev Suraski 52b5f3fea1 Handle additional cases 2004-02-04 17:10:44 +00:00
Dmitry Stogov 1f68c98aba Unnecesurry namespaces was removed form SOAP fault responces 2004-02-04 16:50:29 +00:00
Dmitry Stogov 62572919d8 SoapServer::fault() method was implemented
Unnecesurry namespaces was removed form SOAP fault responces
2004-02-04 16:49:48 +00:00
Zeev Suraski c5d842279c Reinstate early-binding for classes.
Note that this is available for downwards compatibility only - and it doesn't
work if you use new features (namely, interfaces).  Generally, people should
declare their classes before using them, but we just didn't want hell to break
loose (c)
2004-02-04 16:30:15 +00:00
Zeev Suraski 723641590a Optimize 2004-02-04 15:51:07 +00:00
Dmitry Stogov 9fa7d1c24a SOAP Headers was implemented (near complete) 2004-02-04 14:46:12 +00:00
Zeev Suraski 3df50001e1 - Improve $this assignment detection and generalize some code in zend_compile.c 2004-02-04 14:25:25 +00:00
Ilia Alshanetsky 91f46b7880 Fixed compile warnings. 2004-02-04 14:15:16 +00:00
Zeev Suraski e1fc3963ee -Error out when trying to re-assign $this 2004-02-04 13:56:41 +00:00
Zeev Suraski d77bbe344c kill warning 2004-02-04 12:45:56 +00:00
Zeev Suraski d89b7b23f9 API updates 2004-02-04 12:45:47 +00:00
Zeev Suraski 5c3e03a2ff The valid bit was necessary after all - restored 2004-02-04 12:30:48 +00:00
Zeev Suraski 6584dca194 Fixlets 2004-02-04 12:17:57 +00:00
Zeev Suraski 3ac58bffcf - Small fixes 2004-02-04 11:56:07 +00:00
Zeev Suraski 27f54a4c13 - Improve wording 2004-02-04 11:47:54 +00:00
Zeev Suraski 8424be849f - Update with new destructor code 2004-02-04 11:14:47 +00:00
Zeev Suraski f5f7d569a0 Change destructor implementation (details will follow on internals@) 2004-02-04 09:56:20 +00:00
Moriyoshi Koizumi 24eb1f6eb2 - Update libmbfl to the latest. This fixes several serious issues in the html
entity encoder and the encoding detection facility. There should be no
  problem with mailparse() as API change was made so carefully that it
  would be as small as possible.
2004-02-04 07:24:08 +00:00
c4ec00a46d ChangeLog update 2004-02-04 01:32:17 +00:00
Greg Beaver 570edb04a7 re-adding as binary - file is unmodified 2004-02-03 23:59:16 +00:00
Greg Beaver 6d44a96a83 remove in order to re-add as binary 2004-02-03 23:58:20 +00:00
Marcus Boerger dfad2955ee Update tests 2004-02-03 22:07:29 +00:00
Marcus Boerger 4137d77ca9 No longer needed 2004-02-03 22:05:30 +00:00
Marcus Boerger 38e5a2a374 Update tests 2004-02-03 21:52:46 +00:00
Marcus Boerger 363c587871 Nuke unused variable 2004-02-03 21:15:08 +00:00
Marcus Boerger 60a4a48e4e Fix Warning 2004-02-03 21:13:04 +00:00
Sebastian Bergmann e2e5c69f47 clone/__clone() related changes. 2004-02-03 16:56:37 +00:00
Dmitry Stogov 75e4f43d0c Initial support for client-part SOAP headers (very incomlete) 2004-02-03 16:44:57 +00:00
Dmitry Stogov f3a114a97f SoapServer constructor was extended by default SOAP version. 2004-02-03 16:43:38 +00:00
Zeev Suraski e4db2fb890 Remove unused variable 2004-02-03 15:51:09 +00:00
foobar 1f34bc0f10 touch 2004-02-03 15:50:21 +00:00
Zeev Suraski 3be75ceda2 Remove more garbage - valid bit was not really necessary 2004-02-03 15:49:15 +00:00
Zeev Suraski c5a7b668cd - Clean garbage (delete was nuked a long time ago) 2004-02-03 15:37:37 +00:00
Ilia Alshanetsky 871d8bdb57 More unneeded code removed. 2004-02-03 14:33:32 +00:00
Zeev Suraski 60bb89c505 Abort on parse error in an include file (patch by Ilia) 2004-02-03 14:32:02 +00:00
Zeev Suraski e1bf9cc4c2 Remove redundant code 2004-02-03 14:31:07 +00:00
Antony Dovgal f1c40a4a22 -remove obsolete types
-changes in config.m4 to make oci8 to compile with Oracle 10g
(thanks to cjbj at hotmail dot com for reporting both problems)
2004-02-03 14:21:09 +00:00
Stanislav Malyshev 3fd027c5ac fix bug #27120 and bug #25975 - preserve is_ref when bound
objects are serialized
2004-02-03 14:12:59 +00:00
Zeev Suraski 8013d5fa39 Fix try/catch block logic 2004-02-03 13:42:41 +00:00
Zeev Suraski 848d4aed8a Perform a bitwise copy of the object even when __clone() is defined.
__clone() is back to not requiring any arguments, as $that is no longer
needed ($this already contains a copy of the original object, by the time
we __clone() is executed).
Calling the parent clone is done using parent::__clone()
2004-02-03 12:36:13 +00:00
Zeev Suraski 9e60cb553f Rewrote exception support. Fixes a few limitations and bugs in the old
implementation, and allows exceptions to 'fire' much earlier than before.

Instructions on how to use the new mechanism will follow on internals@
shortly...

Note - this (most probably) breaks the current implementation of
set_exception_handler()
2004-02-03 12:17:09 +00:00
Stig Bakken 330d9f6352 SQLITE_ENCODING should be UTF8 rather than UTF-8 2004-02-03 08:38:22 +00:00
Martin Kraemer 3470ddc089 Prevent cvsclean from being removed on interrupts 2004-02-03 08:23:40 +00:00
foobar 1c593b7646 order 2004-02-03 06:44:45 +00:00
Vlad Krupin 66ebc334d6 This should allow us to read dictionary locations from the win32 registry when we use a custom config.
Not doing so when I added win32 support was an oversight.
Now all pspell_new_* functions should be usable on win32.
2004-02-03 05:40:25 +00:00
Ilia Alshanetsky 6dca37c50c Fixed possible overflow. 2004-02-03 03:10:28 +00:00
538d5199ea ChangeLog update 2004-02-03 01:32:21 +00:00
Andrey Hristov ab43b68476 typo fix 2004-02-02 22:41:56 +00:00
Marcus Boerger b1c77fcce3 TSRM fixes 2004-02-02 21:27:13 +00:00
Marcus Boerger 391494c0ef Tests are executed with E_STRICT 2004-02-02 19:26:52 +00:00
Dmitry Stogov a70a620a01 fix: proper handling of SOAP 1.1 href and unresolved attributes references 2004-02-02 17:39:10 +00:00
Dmitry Stogov 862bf61de9 *** empty log message *** 2004-02-02 16:21:09 +00:00
Dmitry Stogov 840526f1d3 Server-part support for SOAP Headers was implemented (incomplete) 2004-02-02 16:19:39 +00:00
Ard Biesheuvel c9941f9d20 Interbase news 2004-02-02 15:44:03 +00:00
Ard Biesheuvel 1db65dfa93 Use correct flag for repair options 2004-02-02 14:57:20 +00:00
Ard Biesheuvel f7e1724096 Fix Win32 build 2004-02-02 14:01:41 +00:00
Ard Biesheuvel 80e3384756 Use php_ prefix for header files
Added nearly complete implementation of service API
2004-02-02 13:49:48 +00:00
Ard Biesheuvel 2430a27d7f Use php_ prefix for header files. 2004-02-02 13:47:56 +00:00
Zeev Suraski 8e30d96ad8 Redesign the clone() feature to fix some fundamental flaws in the previous
implementation.

Using clone directly is now done using
$replica = clone $src;

Clone methods must now be declared as follows:
function __clone($that)
{
}

Clone methods in derived classes can call the __clone method of their parent
classes using parent::__clone($that)
2004-02-02 12:28:19 +00:00
Antony Dovgal c7699856fc add missing alias for ocifreecursor() 2004-02-02 08:26:15 +00:00
foobar 7ad385b109 CS fix (functions should not be available if they are not available :) 2004-02-02 08:10:31 +00:00
Antony Dovgal fec01159b1 fix yet another possible segfault 2004-02-02 08:09:53 +00:00
59369e08ab ChangeLog update 2004-02-02 01:32:08 +00:00
Ilia Alshanetsky 25053ba01b Fixed possible overflows. 2004-02-02 00:06:17 +00:00
Ard Biesheuvel 1932317844 No explicit inline (fixes Win32 linkage issue) 2004-02-01 18:42:47 +00:00
Ard Biesheuvel 52578bc37f Whoops line endings 2004-02-01 17:54:56 +00:00
Ard Biesheuvel 7b606b98d4 Remove extension internals from php_interbase.h 2004-02-01 17:52:36 +00:00
Ard Biesheuvel 254eb0f05d Test for Interbase version 6 API in 'configure'
# Always enable in Win32 for the time being
2004-02-01 17:42:26 +00:00
Ard Biesheuvel 69d53a7676 Added backup/restore functions
Split interbase.c into several files
# It was becoming too big to handle
2004-02-01 16:13:07 +00:00
Sebastian Bergmann e4ad9209ed ZTS fix. 2004-02-01 08:34:47 +00:00
Moriyoshi Koizumi 65e22c3316 - Forgot to add test case. 2004-02-01 03:03:15 +00:00
Moriyoshi Koizumi 5d9495dfe7 - Binary compatibility stuff, for safety. 2004-02-01 03:02:47 +00:00
343d4314b4 ChangeLog update 2004-02-01 01:32:26 +00:00
Greg Beaver 20c8e629a4 make pear run-tests work with PEAR core tests, allow it to work for Windows users as well 2004-01-31 22:39:25 +00:00
Moriyoshi Koizumi 0330fb2cbf - Fix bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into octets). 2004-01-31 22:36:33 +00:00
Moriyoshi Koizumi 8e44a6ba0a - POSIX / ISOX compliancy. This is needed to correctly handle UTF-8 characters. 2004-01-31 21:56:42 +00:00
Marcus Boerger 46be4c2626 Throw an exception in case a reflection object cannot be found and do not
override the exception from constructors in static method calls.
2004-01-31 12:20:20 +00:00
Georg Richter cccb92b233 Corrected binding:
if column has type DECIMAL it will converted to string now.
  Thanks to Brian Aker for pointing this out.
2004-01-31 07:51:03 +00:00
5eb038002e ChangeLog update 2004-01-31 01:31:58 +00:00
Georg Richter 1baf3d3478 added nuw_rows property for statement object 2004-01-30 22:45:19 +00:00
Dmitry Stogov 4b74d4fbba Server part support for "document" style encoding was implemented 2004-01-30 16:32:53 +00:00
Dmitry Stogov 92aa602af0 Some tests from official SOAP 1.2 specification was added 2004-01-30 15:08:52 +00:00
Dmitry Stogov b81645edd3 SOAP 1.2 specification conformity was improved 2004-01-30 15:07:19 +00:00
Wez Furlong 356e8f9b7d word fix 2004-01-30 10:15:24 +00:00
Dmitry Stogov 134faf074c Support for https:// through proxy was implemented 2004-01-30 09:26:56 +00:00
foobar 47f2943d0e order 2004-01-30 09:21:05 +00:00
Marcus Boerger bfed0430fa Include Sascha's indendation hint 2004-01-30 07:53:12 +00:00
Marcus Boerger 9a3355608d Newer compilers don't need this so many people don't know. Hence we make
it a coding standard.
2004-01-30 07:01:25 +00:00
Ilia Alshanetsky b4e882d013 Apply the same parse error handling to (include|require)_once as the one for
their non-once counterparts.
2004-01-30 02:22:17 +00:00
41c43230da ChangeLog update 2004-01-30 01:32:51 +00:00
Sara Golemon 18588497d7 Fix potential bug in http:// proxy support.
Some proxy servers require entire URI be sent in request string.

Add context option "http"/"request_fulluri" to allow this behavior.
2004-01-30 00:24:18 +00:00
Dmitry Stogov 26cb17718c *** empty log message *** 2004-01-29 17:24:03 +00:00
Ilia Alshanetsky 4b1fadbf1c Proper configure switch for sqlite. 2004-01-29 17:21:16 +00:00
Dmitry Stogov 05114460ba Rollback: persistent PHP streams (dont work with "kafka") 2004-01-29 15:32:06 +00:00
Ilia Alshanetsky dfaa06dbd7 Apache 2 portion of the fix for bug #25753. 2004-01-29 15:18:26 +00:00
Dmitry Stogov c33d480386 PHP4 support
HTTP proxy support for PHP4
Using persistent PHP streams for HTTP connections
2004-01-29 15:11:16 +00:00
Dmitry Stogov e439a1af7f fix: "Authors" corrected 2004-01-29 11:51:11 +00:00
Dmitry Stogov 5ab77a9268 Support for HTTP proxies was implemented 2004-01-29 11:26:52 +00:00
Derick Rethans 9d2f84e411 - Add our standard header 2004-01-29 09:27:06 +00:00
Dmitry Stogov 49b9c59518 Support for nonWSDL mode was improved (SoapVal,SoapVar,SOAPAction...) 2004-01-29 09:03:28 +00:00
Dmitry Stogov c7cfe9f8e3 fix: possible crash was fixed 2004-01-29 06:37:51 +00:00
Ilia Alshanetsky 194509f093 Fixed bug #27007 (missing connection closure when connect fails in pgsql). 2004-01-29 02:54:30 +00:00
Ilia Alshanetsky 7d31f3772c Fixed bug #27037 (fixed possible crash in apache2handler output code). 2004-01-29 02:16:47 +00:00
580c439c6e ChangeLog update 2004-01-29 01:32:20 +00:00
Rob Richards 109ea54871 fix corruption when cloneDocument is not defined 2004-01-29 00:33:20 +00:00
Marcus Boerger 37cf05d1b8 Update 2004-01-29 00:10:33 +00:00
Sara Golemon a172481869 This should not have been an INI_ALL directive. 2004-01-29 00:08:21 +00:00
Marcus Boerger 760e43e373 removed experimental status 2004-01-28 23:00:31 +00:00
Marcus Boerger 390ae1a8b8 - Fix second issue with #27042
- Little improvement
- Update test
2004-01-28 22:59:03 +00:00
Georg Richter 7782a4b425 removed experimental status
fixed bug in mysqli_data_seek (thx to Andrey "Effendi" Hristov)
various prototype fixes
moved some methods to properties which are part of mysql struct
added function mysqli_get_server_version
2004-01-28 22:51:54 +00:00
Sara Golemon c603f3112e FTP dirstream_read should not leave whitespace/newlines on dirents 2004-01-28 22:50:12 +00:00
Zeev Suraski d45541b4fb Tweak checks to detect some additional cases.
Reorder checks to make more sense.
2004-01-28 22:27:39 +00:00
Sara Golemon 6d10371ec6 'Bug Fix': scandir, being a new function in PHP5 should have always been wrapper aware. 2004-01-28 22:21:54 +00:00
Ilia Alshanetsky e691cbd4ee Fixed bug #27011 (64bit int/long confusion in preg_match*() functions). 2004-01-28 21:47:36 +00:00
Andrey Hristov eaab3ef8cd this should not belong to HEAD 2004-01-28 20:25:30 +00:00
Rasmus Lerdorf a61c2d667c Fix applies to apache_hooks sapi as well. See bug #25753 for details. 2004-01-28 17:59:07 +00:00
Rasmus Lerdorf 44df89f00d MFB - see bug #25753 for details 2004-01-28 17:49:49 +00:00
Dmitry Stogov 6cf3c8586e Error reoprting improved by prefix
New 'HTTP' fault code
Source cleanup
2004-01-28 16:47:49 +00:00
Martin Kraemer 01c6257c5c Bug fix: Images would be broken on big-endian machines because the putc
function wrote the first (instead of "the low order") byte. That resulted
in unexpected zero bytes.
2004-01-28 16:25:12 +00:00
Dmitry Stogov 381d4e4ffa Source cleanup 2004-01-28 13:36:31 +00:00
Dmitry Stogov 84f259b448 Test suite for XML Schema and SOAP encoding/decoding 2004-01-28 13:33:48 +00:00
Dmitry Stogov 43f0131ea1 Source cleanup 2004-01-28 13:31:28 +00:00
Dmitry Stogov 2238e4b9f0 Add namespaces to <Envelope> (not ot subnodes) 2004-01-28 13:30:21 +00:00
Zeev Suraski be7d41b905 - Error message fix
- Prevent inheritance of the same constant from two interfaces
2004-01-28 11:53:52 +00:00
Zeev Suraski a7ff369cac Fixlets 2004-01-28 10:52:27 +00:00
Zeev Suraski 2adaa11f2f Prevent classes from implementing interfaces that have the same function 2004-01-28 10:25:45 +00:00
Zeev Suraski ae0e9e62dd Whitespace 2004-01-28 10:24:57 +00:00
Zeev Suraski 673e6e23e7 Code relayout 2004-01-28 09:13:41 +00:00
Zeev Suraski c15d4ddb2b Forward-port fix for timeouts under Windows 2004-01-28 09:07:02 +00:00
Antony Dovgal fab593566e two fixes:
-oci_lob_load shouldn't reset LOB's length to zero
-Oracle feels bad, but reports no error, when trying to erase LOB with offset bigger than LOB
2004-01-28 07:15:55 +00:00
Ilia Alshanetsky 7bbe518f8b Fixed bug #27058 (crash in sybase_connect() with 2 arguments). 2004-01-28 01:43:45 +00:00
Ilia Alshanetsky 472a3a2446 Fixed bug #27056 (ints used instead of longs inside some GD functions). 2004-01-28 01:36:53 +00:00
1c347eccf8 ChangeLog update 2004-01-28 01:32:12 +00:00
Andrey Hristov 463f510796 message about that mysql_list_tables() is deprecated 2004-01-27 23:14:42 +00:00
Wez Furlong e1ae61802b Fix segfault for scripts like this:
<?php
pfsockopen("foo");
pfsockopen("foo");
?>
Where the transport fails to connect (since args are bogus);
the problem was that the persistent stream entry was not
correctly freed.
2004-01-27 22:40:44 +00:00
Dmitry Stogov 4af9e35316 fix: HTTP keep-alive 2004-01-27 16:19:22 +00:00
Dmitry Stogov c10038a9ee enabling HTTP status code 100 (used by Delphi SOAP) 2004-01-27 16:07:58 +00:00
Dmitry Stogov a6c94a8bf9 SOAP Fault uses HTTP status code 500 2004-01-27 15:49:34 +00:00
Dmitry Stogov 1b6f176281 Support for relative path in WSDL and XML Schema <import> 2004-01-27 15:48:19 +00:00
Georg Richter 692726cdd3 changed prototype mysql_dataseek from void to bool
add check for specified offset
2004-01-27 13:56:03 +00:00
Georg Richter 429aa55248 prototype fixes
removed method field_tell (which is already property current_field)
2004-01-27 13:23:54 +00:00
Dmitry Stogov 5294a539e2 Allow <element>s with same names 2004-01-27 12:07:57 +00:00
Dmitry Stogov 6eeec41c4d fix: error handling 2004-01-27 10:24:48 +00:00
Dmitry Stogov 3787c94c2a XML Schema support was improved
support for <attribite> default and fixed values
	support for encoding of list elements
2004-01-27 10:23:20 +00:00
Dmitry Stogov b0b60d945f Proper handling of SOAPAction in SOAP 1.1 and SOAP 1.2 2004-01-27 06:54:14 +00:00
Ilia Alshanetsky 4cc62a06f6 Removed unused variable. 2004-01-27 03:20:35 +00:00
69038b6d18 ChangeLog update 2004-01-27 01:32:27 +00:00
Marcus Boerger a43693eaf0 Must use zval* here 2004-01-26 23:59:50 +00:00
Marcus Boerger 617b8df6c0 Remove test code 2004-01-26 23:20:00 +00:00
Marcus Boerger 6186617571 - Export struct zend_user_iterator
- Ad 'it' to function prefix to prevent naming clashes
- Export zend_user_it_free_current
2004-01-26 22:33:52 +00:00
Marcus Boerger 5ac404eb64 Fixed bug #27042 (SPL: SeekableIterator seek() broken). 2004-01-26 22:30:25 +00:00
Georg Richter c139c48a99 fixed compiler warning (thx to Marcus Boerger) 2004-01-26 20:08:16 +00:00
Dmitry Stogov d23a557d9d <Fault> encoding was changed 2004-01-26 17:14:32 +00:00
Dmitry Stogov c25df9d8c6 fix 2004-01-26 17:14:07 +00:00
Dmitry Stogov 1e5ebeb95d Support for SOAP 1.2 Fault/Code/Value and Fault/Reason/Text 2004-01-26 17:11:05 +00:00
Dmitry Stogov fd773c92cb fix: memory leaks 2004-01-26 16:20:19 +00:00
Dmitry Stogov 9387d78fd0 SOAP 1.2 Fault support (Code,Reason,Datail instead of faultcode,faultstring,...) 2004-01-26 16:19:29 +00:00
Antony Dovgal 6fe26e966d change to use different allocator (Sascha, thanks =) ) 2004-01-26 15:42:24 +00:00
Antony Dovgal 83a1eaf75a fix this annoying notice about limited range 2004-01-26 15:25:32 +00:00
Antony Dovgal f64928bdce improve debug messages 2004-01-26 15:21:52 +00:00
Dmitry Stogov fbead642ad Support for SOAP 1.2 RPC binding (<rpc:result>) 2004-01-26 15:13:45 +00:00
Dmitry Stogov adb3562d8e XML Schema support was improved
support for unsignedLong standard type was fixed
  restrictions checking was disabled
  support for standard list types (IDREFS, IDS, NOTATIONS)
2004-01-26 15:12:34 +00:00
Antony Dovgal 9fcb1dd2c9 oops =(
forgot these brackets..
2004-01-26 14:02:08 +00:00
Antony Dovgal 15f22a5796 fix oci_field_type_raw's proto
oci_collection_element_get should return FALSE only if there is no such element and NULL, if it's null
2004-01-26 13:59:42 +00:00
Adam Dickmeiss 79d42d1e91 New function yaz_es that creates Z39.50 Extended Service Package to
facilitate record update, database create, database drop.
2004-01-26 13:40:52 +00:00
Georg Richter 5066f521db proto fixes
removed mysqli_read_query_result (will be removed in libmysql)
2004-01-26 13:38:13 +00:00
Sebastian Bergmann 29fa2036ef Update URL. 2004-01-26 12:37:48 +00:00
Dmitry Stogov 6309dd4c26 Apache namespace was removed 2004-01-26 09:51:45 +00:00
Dmitry Stogov e3cfa02b4e XML Schema support (decoding of xsi:nil with attributes)
Source Cleanup
2004-01-26 09:51:07 +00:00
Marcus Boerger 7e6b108a96 Add README 2004-01-26 08:37:23 +00:00
Marcus Boerger ed650274eb We are in c not c++ 2004-01-26 07:52:52 +00:00
Georg Richter 85510ff3a1 more prototype fixes.
fixed a bug in mysqli_send_long_data
2004-01-26 07:39:57 +00:00
foobar f869e198e8 - Fixed compile problem with CURLOPT_HTTPAUTH 2004-01-26 04:59:59 +00:00
foobar dbff3d8b97 test for bug #26900 2004-01-26 04:37:50 +00:00
foobar e3c80d52da - Remove gpc_order since it doesn't serve any purpose. 2004-01-26 04:15:08 +00:00
Pierre Joye 3507f04062 - "Fix" the command name in the usage text 2004-01-26 01:59:14 +00:00
Pierre Joye e3af7958a5 - # 521 entry 2004-01-26 01:36:51 +00:00
48a98f78ee ChangeLog update 2004-01-26 01:33:25 +00:00
Pierre Joye f9bfd58bd7 - Remove useless property 2004-01-26 00:57:30 +00:00
Pierre Joye 477de56f71 - Fix #521, incorrect filename in CS warnings 2004-01-26 00:49:16 +00:00
Moriyoshi Koizumi b2402396a9 - Suppress a compiler warning by a rather useless typecasting. 2004-01-26 00:27:24 +00:00
Moriyoshi Koizumi e226ed0e21 - Fix bug #26699 (mbstring encoding types does not include "binary"). 2004-01-26 00:19:25 +00:00
foobar 03e4695d3d - Fixed bug #27040 (passing an array of form-fields to CURLOPT_POSTFIELDS does not work). 2004-01-26 00:16:16 +00:00
Ilia Alshanetsky 0cb89236a3 Fixed bug #26814 (On parse error include included file, terminate
execution script).
2004-01-25 23:54:12 +00:00
Pierre Joye 48fb978f72 - Use is_a 2004-01-25 23:53:13 +00:00
Pierre Joye 2b88a7b667 WS 2004-01-25 23:36:28 +00:00
Pierre Joye bff0e9df23 - Update Mail, HTTP and DB. Adding new archives 2004-01-25 23:09:05 +00:00
Pierre Joye 8fad852352 - Update HTTP, DB and Mail packages 2004-01-25 23:08:09 +00:00
Timm Friebe 426c34b355 - Initial release 2004-01-25 20:04:24 +00:00
Timm Friebe 64ef58f483 - Added test for case when incorrect argument type is
passed to sybase_set_message_handler()
2004-01-25 20:04:08 +00:00
Timm Friebe 35409efd9a @- Added ability to define a message handler not only globally, but also
@  per connection (Timm)
@- Made sybct.login_timeout changeable at runtime (Timm)
@- Added ini option sybct.packet_size which lets you control the packet
@  size (Timm)
2004-01-25 20:03:10 +00:00
Marcus Boerger 0711fdcede Show supported classes & interfaces in -i and phpinfo() 2004-01-25 17:30:19 +00:00
Ard Biesheuvel e0c0c9f620 MySQL is no longer built in by default 2004-01-25 15:18:02 +00:00
Ard Biesheuvel 86fe4ab6a1 CS 2004-01-25 15:08:31 +00:00
Andrey Hristov ca3001faf8 entrt about feature request #24258 2004-01-25 14:00:59 +00:00
Marcus Boerger d51218f221 BFN 2004-01-25 13:33:43 +00:00
Marcus Boerger 6e2cf148a4 Respect proeprty visibility in foreach 2004-01-25 13:32:02 +00:00
Marcus Boerger db86475367 Update test 2004-01-25 13:19:16 +00:00
Marcus Boerger bec76cab71 Update examples 2004-01-25 13:03:24 +00:00
Ard Biesheuvel eb7aca4ea8 Check for both Firebird 1+ and Interbase/FB1 2004-01-25 12:03:24 +00:00
Georg Richter a2380e901b prototype fix for mysqli_fetch 2004-01-25 12:01:36 +00:00
Marcus Boerger 386310ea02 BFN 2004-01-25 11:54:28 +00:00
foobar 2a05750281 Fixed bug #27020 (Compile failure; sys/select.h: No such file or directory) 2004-01-25 06:09:36 +00:00
733e2dae08 ChangeLog update 2004-01-25 01:32:26 +00:00
Ard Biesheuvel 6b8c406481 Changed prototypes to allow parsing of string literals and constant strings
Minor CS/WS
2004-01-25 00:30:50 +00:00
Marcus Boerger 8045b9c6fd TSRM fix 2004-01-24 17:07:50 +00:00
Marcus Boerger 3ca44539a1 Switch from ZEND_ACC_DYNAMIC to ZEND_ACC_ALLOW_STATIC and disallow calling
internal non-static methods statically.
# As discussed with Zeev:
# - For BC standard userspace methods allow this with an E_STRICT message.
# - If you want to implement an internal method taht can be called both
#   statically and non-statically then use flag ZEND_ACC_ALLOW_STATIC.
# - Magic user space methods __*() cannot and __construct, __destruct,
# __clone can never be called statically.
2004-01-24 16:59:24 +00:00
Timm Friebe e36cfeb0a9 - Added test on char type 2004-01-24 15:18:52 +00:00
Georg Richter ed135edbda prototype fixes 2004-01-24 14:38:16 +00:00
Sebastian Bergmann 1e902b696d Change message as proposed by Jon. 2004-01-24 04:59:47 +00:00
Timm Friebe c5df5b7507 - Initial release 2004-01-24 02:54:33 +00:00
Timm Friebe 96b80f86a1 - Initial release 2004-01-24 02:42:26 +00:00
Timm Friebe 095e82fe28 - Initial release 2004-01-24 02:18:13 +00:00
Timm Friebe 4cb85d4bc1 @- Fixed bug #22403 "PHP crashes when executing a sql procedure without
@  parameters" (Timm)
@- Fixed memory leak in sybase_set_message_handler() (Timm)
# Fixed bug with large numerics correctly (initial fix in r. 1.76 failed
# for MAX_LONG + 1, for example)
2004-01-24 02:17:42 +00:00
6b7e6992a2 ChangeLog update 2004-01-24 01:32:18 +00:00
Marcus Boerger d39bd31291 This is a definitive 'must' 2004-01-24 00:42:40 +00:00
Andrey Hristov 9957fc6305 Added third parameter (optional) to array_keys for strictness. It behaves
like the "strict" parameter of in_array().
#Closing feature request #24258
2004-01-24 00:25:58 +00:00
Andrey Hristov 85de35e470 Adding note about declaration first use after that for classes.
#I had no time recently to add this but since a user complained on
#internals....
2004-01-24 00:14:43 +00:00
Marcus Boerger eff2006e4e Fix this example 2004-01-23 22:33:45 +00:00
Marcus Boerger 6020ffd007 Simplify detection of methods that must be called dynamic (with object) 2004-01-23 22:04:42 +00:00
Marcus Boerger 4c0b1fddab Builtin recursion protection (by disallow to follow links by default). 2004-01-23 21:33:56 +00:00
Marcus Boerger bd294582c3 Fix. Found by adam 2004-01-23 21:03:20 +00:00
Marcus Boerger 79e7145cc7 Disallow calling __clone/__construct/__destruct static
Send an E_STRICT when calling a non static method static
2004-01-23 20:58:23 +00:00
Marcus Boerger 7c2e02d380 Disallow static declaration of clone 2004-01-23 20:52:39 +00:00
Dmitry Stogov 3eb16bc3a9 fix 2004-01-23 15:34:52 +00:00
Dmitry Stogov 2a5593dd0d disabling import if file was already loaded 2004-01-23 15:29:59 +00:00
Dmitry Stogov 695436b709 XML Schema support was improved
support for type extension
	support for attribute encoding/decoding
	support for SOAP 1.2 array encoding/decoding
2004-01-23 14:43:15 +00:00
Dmitry Stogov 6277204a35 XML Schema support was improved
suport for type extension
2004-01-23 09:15:58 +00:00
foobar ad1ccd68eb typofix (thanks to Mehdi Achour for noticing this) 2004-01-23 07:02:15 +00:00
foobar 6a1d0114a7 Silence some compile warnings 2004-01-23 03:28:59 +00:00
ddfe5648fe ChangeLog update 2004-01-23 01:32:09 +00:00
Rob Richards b5e7a6dae0 update test 2004-01-22 22:12:21 +00:00
Marcus Boerger 95c15b024a Add new test 2004-01-22 21:55:09 +00:00
Marcus Boerger 66ed0a49fa Update tests 2004-01-22 21:47:54 +00:00
Rob Richards bc2521b662 Fix bug #27010: segfault after returning nodes with children()
Fix segfault in match_ns when matching prefix and node without ns
some general cleanup and code consilidation
better write handling - engine support dependent
better isset handling - engine support dependent
namespace fixes for reading/writing
2004-01-22 21:30:14 +00:00
Rob Richards 7e619b7f5f update constructors so they cant be called statically 2004-01-22 21:16:05 +00:00
Marcus Boerger c4c6d5213a Fix internal access to exception properties 2004-01-22 19:53:09 +00:00
Dmitry Stogov ec2950854a XML Schema support was improved
support for content model (<sequence>,<all>,<choice>)
	support for top-level <group>
	support for <group> 'ref' attribute
	support for content model encoding/decoding (incomplete)
	support for attribute encoding/decoding (incomplete)
	support for <attribute> with inline anonymous <simpleType>
2004-01-22 15:58:03 +00:00
Pierre Joye 0dd6bd1d9f - Update examples to studlyCaps syntax 2004-01-22 15:45:50 +00:00
Antony Dovgal a729ce0434 add collections support to win32 build 2004-01-22 14:42:17 +00:00
Antony Dovgal dbb29baefe add missing protos
and some minor changes
2004-01-22 08:39:50 +00:00
Antony Dovgal 261726099c MFB
oci_lob_save() should be removed indeed, but we're already in feature freeze =(
2004-01-22 08:05:14 +00:00
cd96ff5496 ChangeLog update 2004-01-22 01:32:08 +00:00
foobar 8cd863f738 test case for bug #26938 2004-01-21 22:48:28 +00:00
Marcus Boerger a3a19e915a Change to correct syntax.
# The test will still fail though.
2004-01-21 22:36:49 +00:00
Marcus Boerger 2a8300e03d All technical reasons that prevented us from studlyCaps are solved
and all current extensions as well as the whole PEAR framework follow
this rule. So for consistency i readd it.
# Also we had the discussion onece and decided for this.
# Lookup the archieves
2004-01-21 20:18:09 +00:00
Ilia Alshanetsky 17d420e5f7 Fixed bug #26938 (exec() has problems reading long lines). 2004-01-21 16:57:13 +00:00
Antony Dovgal 02ded9766a *change constant name, coz it doesn't comply with others
*add constant's alias, coz others do have aliases
*change protos (oops =))
*add notices to collection functions
*change coll_element_get & coll_assign to inform user, that this type of element is not supported yet.
2004-01-21 16:18:58 +00:00
Dmitry Stogov abeaffbde6 Source cleanup 2004-01-21 16:04:37 +00:00
Rob Richards a4c2f31751 Fix namespace regression bug
Read attributes correctly
Update sxe_prop_dim_exists logic
Update profile
2004-01-21 14:04:47 +00:00
Dmitry Stogov a592b7ef0a XML Schema support was improved
xml tree cleanup (save memory and parsing time)
	support for <inclide> and <import>
	support for top-level <attribute>
	support for <attribute> 'ref' attribute
	support for top-level <attributeGroup>
	support for <attributeGroup> 'ref' attribute
2004-01-21 14:00:55 +00:00
Antony Dovgal c375c68073 fix potential segfault in oci_lob_write()
change oci_lob_trim() - truncate length should be 0 by default.
2004-01-21 12:30:05 +00:00
Rob Richards 500fa86c1b Fix Bug #26976 (Can not access array elements using array indices)
return index 0 as non iterable object
update test
2004-01-21 11:32:30 +00:00
Ard Biesheuvel 8992afd3dc MFB 2004-01-21 10:22:04 +00:00
Hartmut Holzgraefe c280629023 News update on new streams method 2004-01-21 10:20:45 +00:00
John Coggeshall 1bad08a80f Moving the OO syntax to studlyCaps.
I am *not* changing this back :)
2004-01-21 10:19:56 +00:00
Hartmut Holzgraefe 234e8a76c4 stream_lock() method added to userspace streams wrapper 2004-01-21 10:17:12 +00:00
Jon Parise 9dd817bbd6 Adding dependencies on sqlite.h for the rest of the source files in the
libsqlite distribution.
2004-01-21 08:51:28 +00:00
foobar 6fa3a49e6f Last php4 occurances.. 2004-01-21 07:47:11 +00:00
Marcus Boerger b77413bdd0 Fix TSRM 2004-01-21 07:07:34 +00:00
foobar e23a1b8a5c Break out the test with first hit. 2004-01-21 05:04:30 +00:00
Sara Golemon 1fb629de8a Typo 2004-01-21 04:08:10 +00:00
foobar 56373e08d6 - Fixed bug #26973 (*printf() + modifier broken) 2004-01-21 04:00:07 +00:00
foobar 6f56bc3b8d extend a bit 2004-01-21 03:58:30 +00:00
foobar d7a54202d8 test case for bug #26973 2004-01-21 03:49:15 +00:00
foobar 21d5052f70 typo fix 2004-01-21 03:18:13 +00:00
foobar 4716c724d2 test for bug #26976 2004-01-21 03:17:07 +00:00
Ilia Alshanetsky eb3ff409b0 Fixed bug #26974 (rename() doesn't check the destination file
against safe_mode/open_basedir).
2004-01-21 02:28:50 +00:00
e36f5fb08b ChangeLog update 2004-01-21 01:32:05 +00:00
foobar bdd3b13c53 Goto targets should not be indented (some compilers choke on this, iirc) 2004-01-21 01:09:41 +00:00
Marcus Boerger 3b207ccb12 Add cvs tags 2004-01-20 20:59:45 +00:00
Marcus Boerger fe03687b00 Fix a warning 2004-01-20 20:16:30 +00:00
Marcus Boerger b0320c6032 Prevent shared builds under windows too 2004-01-20 19:49:21 +00:00
Wez Furlong 8691f86cb8 default to compiled in to match unix. 2004-01-20 17:18:41 +00:00
Dmitry Stogov 67886b8321 XML Schema support
- support for <element> 'ref' attibute was implemented
  - support for inline types
  - support for <list> and <union> (incompleate)
2004-01-20 16:30:38 +00:00
Rob Richards a4815f7c8e Warn when empty string supplied to load methods (by Pierre-Alain)
Fix refcount on xpath iterators
xpath_query should return nodelist even when empty
2004-01-20 11:35:32 +00:00
Wez Furlong 42110742b7 update todo part of readme 2004-01-20 11:01:16 +00:00
Marcus Boerger 920358a0cc Fix warning (and possible problem) 2004-01-20 07:27:47 +00:00
Sterling Hughes bd306c8b52 - 2004-01-20 05:31:50 +00:00
495860928a ChangeLog update 2004-01-20 01:32:06 +00:00
foobar d2e8751f86 - Fixed Bug #26969 (shared openssl build fails) 2004-01-20 01:11:04 +00:00
foobar 5908334ea3 BfN 2004-01-20 00:26:23 +00:00
foobar a5ad026469 test case for bug #26696 2004-01-20 00:25:30 +00:00
Frank M. Kromann 0d6fcd02cb Fix compilation of simplexml when spl is build as shared object 2004-01-19 23:44:03 +00:00
Frank M. Kromann 25cb3d01d5 Fix compilation of spl as shared object 2004-01-19 23:43:03 +00:00
Christian Stocker 6b70f9d1b3 Fix leaks in dom_xpath_query (create retval only if requiered) by Pierre-Alain 2004-01-19 21:08:29 +00:00
Christian Stocker 00af01bb94 fixes segfault, if file doesn't exist (by Pierre-Alain) 2004-01-19 20:54:40 +00:00
foobar dde4c166c9 - Make sure srand() / mt_srand() are really called. 2004-01-19 19:01:17 +00:00
Ilia Alshanetsky 39b62f26cf Fixed bug #26967 (make various file operations return FALSE on error). 2004-01-19 18:40:39 +00:00
Christian Stocker ab26ac118d really fix this test... 2004-01-19 17:38:47 +00:00
Christian Stocker efed27ae1b fix test 2004-01-19 17:35:38 +00:00
Christian Stocker 37cc0df732 added missing dots.. 2004-01-19 17:30:35 +00:00
Christian Stocker d4488ccf2d Cosmetics and NEWS entry 2004-01-19 17:27:22 +00:00
Moriyoshi Koizumi e4d90e60fc - Turn off mbstring.func_overload as this test uses plain strlen() for
comparison.
2004-01-19 16:53:34 +00:00
Dmitry Stogov 039d88ac99 XML Schema support was impoved 2004-01-19 16:40:37 +00:00
Christian Stocker 23b30e9a30 @- added XsltProcessor->registerPhpFunctions() (Christian)
without that method call, it is not allowed to call php functions from
xslt stylesheets for security reasons.
2004-01-19 15:07:08 +00:00
Christian Stocker c0a1f294e9 adjust test 2004-01-19 15:00:59 +00:00
Martin Jansen 36137aefe0 * CS 2004-01-19 13:57:38 +00:00
Andi Gutmans 21f09643ec - Hopefully fix bug #26696.
- Please let me know if hell-breaks loose
2004-01-19 12:22:02 +00:00
Christian Stocker 04c2e1e8c4 fix typo 2004-01-19 11:07:19 +00:00
Marcus Boerger 6b8f137905 Must be buitin 2004-01-19 08:48:30 +00:00
Marcus Boerger 10d48448a4 Add spl_sxe to prackage 2004-01-19 08:32:58 +00:00
Derick Rethans ff86abeab6 - Being picky :) 2004-01-19 08:32:26 +00:00
Sebastian Bergmann 32f7ba2bd6 Add spl_sxe.c. 2004-01-19 08:31:16 +00:00
Derick Rethans 067dfa7029 - SPL lives now in ext/ 2004-01-19 08:28:15 +00:00
Dmitry Stogov a68777e954 XML Scheam support 2004-01-19 07:22:53 +00:00
Ilia Alshanetsky 608db4728b Added fgetcsv() tests. 2004-01-19 03:55:29 +00:00
Greg Beaver b0494146b6 fix -m argument to mkDir(). Conversion to octal was not being made,
and a string should never be passed into mkdir().

Thanks to Alex Hayes
2004-01-19 03:32:12 +00:00
foobar e0782e2519 - Moved php_srand() call into php_rand().
# Makes shuffle() and str_shuffle() to be random without having to
# call srand() in scripts.
# They don't internally call php_srand() at all and it would be silly
# to start adding php_srand() calls all over the place..
2004-01-19 03:14:58 +00:00
foobar dce4e4c4b2 BFN 2004-01-19 02:43:25 +00:00
foobar c7f8c84f36 - Fixed bug #26949 (rand(min,max) always returns min when ZTS enabled) 2004-01-19 02:30:54 +00:00
8ee117f877 ChangeLog update 2004-01-19 01:32:11 +00:00
Marcus Boerger 805dfab890 Add zend_get_module_started() to quickly check whether a module is present
and its MINIT function has been called.
2004-01-19 00:39:29 +00:00
Marcus Boerger 3ee59febe7 Fix test by adding expectations 2004-01-19 00:27:06 +00:00
Marcus Boerger a5d11dc943 Fix refcounting in ZE2 2004-01-19 00:26:33 +00:00
Marcus Boerger ba4c4cddc2 Fix some warnings 2004-01-19 00:10:41 +00:00
Marcus Boerger 3df0288490 Improove debug capabilities 2004-01-18 23:47:10 +00:00
Marcus Boerger b0620b27be Rename header to prevent name clashes with external files 2004-01-18 23:35:13 +00:00
Marcus Boerger a7974a876e Fix memory corruption 2004-01-18 23:22:20 +00:00
Marcus Boerger 00325e3271 Add .cvsignore 2004-01-18 23:20:10 +00:00
Marcus Boerger f0aacc09d2 Fix a warning 2004-01-18 23:19:36 +00:00
Marcus Boerger 517c5f5fc5 Necessary as long as SPL is shared/dll 2004-01-18 22:20:54 +00:00
Marcus Boerger c7c9c72d49 Update, id_l is unique 2004-01-18 21:11:55 +00:00
Marcus Boerger 90515ee22a Add spl interaction test. 2004-01-18 20:57:42 +00:00
Moriyoshi Koizumi abfda09eda Fix fgetcsv() to reflect the change on 4.3.5 behaviour. 2004-01-18 20:29:34 +00:00
Marcus Boerger c1df34cae0 Update 2004-01-18 19:55:50 +00:00
Derick Rethans a3adb776ad - This define is not used anymore 2004-01-18 19:21:23 +00:00
Marcus Boerger 43ee98f9fa Not needed 2004-01-18 19:17:50 +00:00
Marcus Boerger 94e64e3d8b Fix problems with manual iteration 2004-01-18 16:25:26 +00:00
Timm Friebe 348abec29d - Fixed compiler warnings (int format, long int arg) 2004-01-18 16:01:02 +00:00
Marcus Boerger 309f54384d Add class SimpleXMLIterator 2004-01-18 15:33:38 +00:00
Marcus Boerger 913f5ce8ec Fix Warning 2004-01-18 15:21:49 +00:00
Marcus Boerger 8f4e9d9e42 Enable inherited classes inside SPL and respect order of module init. 2004-01-18 15:16:26 +00:00
Marcus Boerger bb678c07b5 Use external files only in 001.phpt & tests for bugs 2004-01-18 15:14:03 +00:00
Marcus Boerger 9d5ef0070f Export access to class_entry by function. 2004-01-18 13:19:41 +00:00
Christian Stocker 743a830102 - fix for bug #26947 Crash by using DomDocument::getElementById() 2004-01-18 12:56:23 +00:00
Christian Stocker c9bd0195a3 -test for more than one argument (this segfaulted before) 2004-01-18 12:30:52 +00:00
Marcus Boerger 0a210d7976 Fix some casing issues 2004-01-18 10:45:36 +00:00
2d5b7f7c27 ChangeLog update 2004-01-18 01:35:28 +00:00
Sterling Hughes 6bd7c45f74 update the tests proper-like 2004-01-17 21:47:43 +00:00
Sterling Hughes 594f6433af update the examples 2004-01-17 21:44:22 +00:00
Sterling Hughes cb7e90119f namespace accesses are now soley URI based as opposed to prefix based. 2004-01-17 21:22:26 +00:00
Jon Parise e91fdf570f Make the compilation of vdbeaux.c dependent on the generation of sqlite.h.
An incremental 'make -j' build will now complete successfully.
2004-01-17 21:03:26 +00:00
Andrey Hristov 0fa195d29e use Rasmus' words 2004-01-17 20:28:09 +00:00
Derick Rethans c74bb58721 - Fix typoes 2004-01-17 20:20:18 +00:00
Jon Parise c303c352d0 Spell 'element' correctly. 2004-01-17 20:02:01 +00:00
Andrey Hristov 1a5599242f adding info about $argc and $argv in CLI mode 2004-01-17 19:45:25 +00:00
Marcus Boerger 9e29f17493 Major bugfix for consistency.
# After long discussions we came to a conclusion on how to make this
# extension consistent in itself.
# Thanks to Rob for all the work
2004-01-17 19:41:32 +00:00
Andrey Hristov d5d2d9ef49 Clarification about phpDoc comments. Spotted by Greag Beaver. 2004-01-17 19:14:46 +00:00
Marcus Boerger 1ee90db6e6 No longer needed
# Found by Andrey
2004-01-17 18:04:06 +00:00
Andrey Hristov 8b763f14b7 HEAD is bundled with ZE2 2004-01-17 17:44:27 +00:00
Marcus Boerger 4ee7ba05bc Drop the external xml files no longer needed 2004-01-17 17:34:22 +00:00
Andrey Hristov 9e5df0c666 HEAD is now bundled only with ZE2 2004-01-17 17:33:11 +00:00
Marcus Boerger c28af3a660 No external xml files 2004-01-17 17:33:10 +00:00
Marcus Boerger 253c97fbfe Don't use external xml files 2004-01-17 17:24:58 +00:00
Greg Beaver a440ed6935 fix Bug #594 PEAR_Common::analyzeSourceCode fails on string with $var and {
also fixes SOAP packaging error
2004-01-17 17:20:36 +00:00
Marcus Boerger 64c7645009 #where has my bracket been gone? 2004-01-17 16:50:54 +00:00
Sterling Hughes d022278068 remove the parser errors here, so they accurately reflect what should happen. 2004-01-17 16:39:52 +00:00
Marcus Boerger 3edabd01bb Fix inheritance rule for interface Traversable 2004-01-17 16:38:25 +00:00
Marcus Boerger 665a834a76 Fix parameter list and protos 2004-01-17 16:36:04 +00:00
Marcus Boerger 9c2e37e89a Add test for inherited simplexml classes 2004-01-17 15:57:06 +00:00
Marcus Boerger 9df72efb7c Make inherited sxe classes work 2004-01-17 15:56:29 +00:00
foobar f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
Tim Toohey b851f37123 (gdImageSetPixel) Tidied 'normal' blending effect
# libgd-2.0.12 fixed the problem with alpha-blending on semi-transparent backgrounds so
# gdFullAlphaBlend() and friends are no longer needed
2004-01-17 09:19:14 +00:00
foobar f584b9e168 typofix 2004-01-17 06:18:09 +00:00
92f9989ad8 ChangeLog update 2004-01-17 01:32:11 +00:00
Ilia Alshanetsky 0a8a950fcf Expose zend_std_call_user_call(), needed for implementation of things like
__call handlers.
2004-01-17 00:39:28 +00:00
foobar 796938ec7f Nuke compile warning by using the LANG_SCNG macro instead 2004-01-17 00:26:12 +00:00
foobar 2c71464b40 Fixed bug #26923 (ext/imap: pam and crypt libraries missing when build as shared) 2004-01-17 00:00:11 +00:00
Wez Furlong a017b4c5e6 update file for win32 build 2004-01-16 23:48:39 +00:00
Sterling Hughes a895106606 update the profile of how namespaces should work after discussions with
shane and rob richards.  there were a lot of race conditions with regards
to the way namespaces have been handled in XML documents so far, this new
method removes the race conditions, and gives me a real reason to add the
children() and attributes() methods.
2004-01-16 22:26:09 +00:00
foobar b6b3443d0a - Fixed bug #26640 (__autoload() not invoked by Reflection classes)
# Also removed double call of reflection_register_implement() on
# reflection_extension_ptr.
# Fixed also case-insensitive lookup of property names,
# now Reflection_Property('Classname', 'FooBar'); works too.
2004-01-16 21:11:58 +00:00
Sterling Hughes 7f5b508f26 Add a "profile" of simplexml's expected behaviour in the form of tests.
This will be expanded as issues arise and will be a formal definition
(in code) of simplexml's behaviour.
2004-01-16 20:50:29 +00:00
foobar 69e6b296e0 Kill warning (bug #26937) 2004-01-16 19:11:33 +00:00
foobar 07cf808861 Added test case for bug #26640 2004-01-16 18:24:31 +00:00
Ilia Alshanetsky d8d76f0fcc Update TODO 2004-01-16 17:50:02 +00:00
Ilia Alshanetsky b779a27852 Added Antony Dovgal as OCI8 maintainer. 2004-01-16 16:46:48 +00:00
Ilia Alshanetsky a0664d54d1 Fixed division by zero warning. 2004-01-16 15:17:37 +00:00
Ilia Alshanetsky 1d86ea8851 Added missing skip condition. 2004-01-16 15:16:26 +00:00
Dmitry Stogov 4add085d23 fix 2004-01-16 15:06:23 +00:00
Dmitry Stogov 1dcf2467cf WSDL support was improved
support for message/part element attribute was implemented
 support for portType operation input/output name attribute was implemented
2004-01-16 12:31:10 +00:00
foobar 88b2348f9f BFN 2004-01-16 11:18:37 +00:00
foobar 99bc88b7c0 Fix the mime_magic.debug option init 2004-01-16 11:15:13 +00:00
Antony Dovgal 88ccaf664e Add myself at last =) 2004-01-16 10:03:27 +00:00
Dmitry Stogov 9bf8d5bfe9 faultcode/faultstring mismatch was fixed 2004-01-16 07:55:27 +00:00
Dmitry Stogov 7e19a67247 Support for SOAP 1.2 HTTP binding namespase was added 2004-01-16 07:54:48 +00:00
Dmitry Stogov 501ac09f08 Tests where updated. 2004-01-16 07:12:23 +00:00
Dmitry Stogov ad648d82e5 SOAP 1.2: enc:id & enc:ref attributes support and fault codes (Sender/Receiver) where implemented 2004-01-16 07:11:59 +00:00
Ilia Alshanetsky 0715651785 Fixed Bug #26927 (preg_quote() does not escape \0). 2004-01-16 02:29:50 +00:00
c1ac285760 ChangeLog update 2004-01-16 01:32:07 +00:00
Marcus Boerger a19a36551b Fix shutdown 2004-01-15 21:30:31 +00:00
Pierre Joye 5ecbbf0a8d - Fix the php dependency
(wide copy/paste is not that good no? ;) )
2004-01-15 19:33:10 +00:00
Dmitry Stogov d0f5bd0b68 SOAP 1.2 support was improved 2004-01-15 16:56:29 +00:00
Zeev Suraski 32007b19d8 Nice patch Christian, but it wasn't at all enabled? :)
Fix bug #26883
2004-01-15 16:47:32 +00:00
Antony Dovgal 649b844c3c Fix bug #26892, ORA-21301 in ocinewcollection() call.
pEnv should be initialized in object mode too.
2004-01-15 15:06:57 +00:00
Alex Leigh 036e3663f0 Changed to mixed-case response header codes. This is in keeping with
the changes to >= Continuity mk4 mod1.
2004-01-15 15:04:59 +00:00
Dmitry Stogov 7c01c773b0 Support for SOAP 1.2 array encoding/decoding was implemented 2004-01-15 13:20:58 +00:00
Dmitry Stogov ef9e734593 SOAP 1.2 support was improved 2004-01-15 10:59:24 +00:00
Marcus Boerger 43b0a9e96b Drop userspace iteration correctly.
# People if you do such things then please fix the class tree.
2004-01-15 09:28:01 +00:00
Dmitry Stogov fb52edb194 SOAP 1.2 support was improved 2004-01-15 08:38:14 +00:00
foobar ad11617f29 Fix typo 2004-01-15 06:30:23 +00:00
foobar 124e6c8b6d - Fixed bug #26844 (ext/mime_magic: magic file validation broken). 2004-01-15 06:09:16 +00:00
97a741e578 ChangeLog update 2004-01-15 01:32:13 +00:00
Ilia Alshanetsky 827a79ad8d Fixed bug #26909 (crash in imap_mime_header_decode() when no encoding is
used).
2004-01-15 00:35:04 +00:00
Greg Beaver 7dc2bf3605 fix get_class() case-sensitive incompatibility in PHP5 2004-01-14 22:43:12 +00:00
Marcus Boerger 6915f5a2f5 This is no longer usefull in any way. 2004-01-14 22:07:28 +00:00
Ilia Alshanetsky b3853af0b7 MFH: Fixed bug #26911 (crash in sqlite extension when fetching data from
empty queries).
2004-01-14 21:17:09 +00:00
Rob Richards 8a40a946de test user define namespace aliases 2004-01-14 19:00:16 +00:00
Ilia Alshanetsky 02ea3938be touch generated parser. 2004-01-14 17:53:07 +00:00
Ilia Alshanetsky 6e350b553b Upgraded bundled libsqlite to 2.8.11 (fixed critical bug of *NIX systems). 2004-01-14 17:08:27 +00:00
Dmitry Stogov 49b698c67e WSDL: restrictions support (whiteSpace, minLength, maxLength, length) 2004-01-14 16:24:09 +00:00
Dmitry Stogov 51cbc1f84f array/object encoding 2004-01-14 15:36:01 +00:00
Dmitry Stogov fc69cc8ccf SOAP message must not contain a Document Type Declaration 2004-01-14 15:35:27 +00:00
Wez Furlong 09fb5dc1e6 Remove stale code from flock();
spotted by Hartmut.
2004-01-14 14:37:38 +00:00
Wez Furlong cd4262eedd Fix #26772: fgets returns NULL instead of FALSE. 2004-01-14 14:25:01 +00:00
Zeev Suraski 59d168eda7 Don't allow interfaces to implement anything 2004-01-14 14:00:11 +00:00
Dmitry Stogov 8f0ea19fcb WSDL: encoding rpc/document and encoded/literal 2004-01-14 12:49:02 +00:00
Wez Furlong 39ac35b083 touch 2004-01-14 12:47:04 +00:00
Wez Furlong c69945961f fix crash when throwing an exception 2004-01-14 12:19:17 +00:00
Pierre Joye bbc746c29c - Fix package.xml file 2004-01-14 10:24:26 +00:00
Andi Gutmans 0458bf10e4 - Remove bogus macros 2004-01-14 08:50:17 +00:00
Andi Gutmans 3286cb35bd - Remove use of bogus macro 2004-01-14 08:50:02 +00:00
John Coggeshall f3932751d8 Apparently MSVC is not C99 compatible making variable marco arguments
in the TIDY_THROW() marco broken in (at least) Win32. This provides a suitable
workaround for non-C99 compatible compilers.
2004-01-14 08:15:57 +00:00
John Coggeshall 0878fa901f Doh.. snuck by me! 2004-01-14 06:57:51 +00:00
John Coggeshall a06377c32d Forgot to add these tests 2004-01-14 06:57:23 +00:00
Wez Furlong 31f7699a85 Add optional php-win.exe variation of the CLI sapi.
php-win.exe runs in the windows GUI subsystem, and thus
has no console; stdio handles are effectively set to /dev/null
and no "dos box" will appear on screen when running scripts
using this sapi (php-gtk people will be familiar with this concept).

Aside from those differences, php-win.exe is 100% identical to
regular CLI
2004-01-14 03:14:18 +00:00
John Coggeshall 6048907029 With the approval of Andi, changing the Tidy API to reduce the possible
amount of confusion when setting Tidy configuration options. All
configuration must now be done pre-parsing of the document. Removed
references to the tidy_attr class, as it is no longer used (since tidy 2.0)
and made tidy throw exceptions for all truly non-fatal errors.
2004-01-14 02:43:33 +00:00
bc9cbe2715 ChangeLog update 2004-01-14 01:32:09 +00:00
Ilia Alshanetsky 43becc02f1 Fixed bug #26878 (problem with multiple references to the same variable
with different types).
2004-01-13 23:11:31 +00:00
Rob Richards ad47abf0f6 add support for $foo["a:bar"]
fix xsearch to only return values for text,element and attribute nodes
fix getChildren and return array
remove most methods
update test
2004-01-13 21:28:41 +00:00
foobar 5b59254761 - Fixed bug #26896 (ext/ftp does not work as shared extension) 2004-01-13 18:58:23 +00:00
foobar c2785ecbf9 BFN 2004-01-13 18:06:31 +00:00
Dmitry Stogov c708524676 FIX: memory leak 2004-01-13 17:43:09 +00:00
Dmitry Stogov bee92aa395 WSDL: support for "http://schemas.xmlsoap.org/wsdl/soap12/" binding was added 2004-01-13 17:25:47 +00:00
Dmitry Stogov 86d0b7a1ed bugfix 2004-01-13 17:20:10 +00:00
Wez Furlong d4deb460bd Don't treat strings containing : as potential constant names in
the .ini parser.
This fixes Bug #26893
2004-01-13 17:00:10 +00:00
Wez Furlong c205153a0a reinstate this ifdef for people without .Net SDK 2004-01-13 16:05:38 +00:00
Wez Furlong bba1ded0b2 Fix refcount on these return values to avoid a leak and allow object dtor's to be called.
This in turn prevents a massive slow-down in CoUninitialize which would have to
forcibly destroy the COM objects in request shutdown.
2004-01-13 16:02:56 +00:00
Dmitry Stogov 3961fec217 Source ceanup 2004-01-13 15:58:01 +00:00
Rob Richards 38f8ed0e0a fix getElementsByTagName and getElementsByTagNameNS - allow * 2004-01-13 14:13:21 +00:00
Dmitry Stogov 98ff80dba9 WSDL: support for multiple services/ports/bindings was implemented 2004-01-13 13:50:09 +00:00
Wez Furlong 4573a562a3 Fix leaking constructors.
Implement a cache for method signatures and DISPID's to
greatly improve performance when repeatedly accessing
members with the same names.
2004-01-13 13:38:11 +00:00
Dmitry Stogov 5ebcab9da3 Check for "<?xml" header was removed 2004-01-13 10:27:13 +00:00
Dmitry Stogov ccd3f39e98 WSDL support: using types before declaration was fixed 2004-01-13 10:26:44 +00:00
Dmitry Stogov fceb95f12a XML parsing warnings and notices were disabled. 2004-01-13 09:31:50 +00:00
Dmitry Stogov 51c86ab73f Support for WSDL <operation> without <input> message 2004-01-13 07:59:13 +00:00
Dmitry Stogov 964d9c586d HTTP Cookies support (see interop round2 base kafka) 2004-01-13 07:57:29 +00:00
Sara Golemon af4f949483 Don't even define this. 2004-01-13 05:30:53 +00:00
John Coggeshall 646389a1ff Whoops... Ilia forgot a ')' 2004-01-13 05:23:07 +00:00
Wez Furlong 848684fa96 make usleep actually work properly 2004-01-13 02:07:04 +00:00
24f5ca6ab5 ChangeLog update 2004-01-13 01:32:17 +00:00
Wez Furlong b7d0b397bc Support automatic handling of byref parameters 2004-01-13 00:40:14 +00:00
Ilia Alshanetsky 47dddfa4ff Fixed a bug that would cause the sqlite session database to grow endlessly. 2004-01-12 22:48:58 +00:00
Ard Biesheuvel fad3a6e42f More handsome solution for previous fix 2004-01-12 20:03:49 +00:00
Ard Biesheuvel 961f398db5 Added sanity check on ibase_[p]connect() dialect argument (fixes obscure unregistered bug) 2004-01-12 19:47:28 +00:00
Martin Kraemer a116666bc4 Avoid duplicate symbols; definition is in bz2.c 2004-01-12 16:30:55 +00:00
Dmitry Stogov ebc3266327 fix 2004-01-12 16:15:37 +00:00
Dmitry Stogov 6285b174c1 fix 2004-01-12 16:08:24 +00:00
Dmitry Stogov 3afeac3627 Date comparsion was fixed to compare dates with different time zones. 2004-01-12 15:18:13 +00:00
Dmitry Stogov d32ef43c3a Timezone support 2004-01-12 15:15:48 +00:00
Dmitry Stogov a02de43dbb Small error reporting fixes 2004-01-12 15:15:26 +00:00
Dmitry Stogov 6b32938b20 WSDL support: schema import 2004-01-12 12:54:22 +00:00
Dmitry Stogov 29fe458872 WSDL support: support for wsdl import 2004-01-12 11:46:01 +00:00
John Coggeshall 9116f27504 This was way out of date. 2004-01-12 10:02:04 +00:00
Dmitry Stogov 2b0ed79607 WSDL support: use of type before declaration (see interop round2 base OpenLink echoStructArray) 2004-01-12 08:48:00 +00:00
Andi Gutmans 92eb129bd9 - Return the PHP 4 behavior of not allowing class declerations within
- class declerations. This happened when declaring a class within a
- method.
class A {
	function foo() {
		class B {
		}
	}
}
2004-01-12 07:15:55 +00:00
Marcus Boerger 3fb99f62e0 Synch mysql_fetch_object with mysqli, sqlite and pgsql 2004-01-12 02:34:55 +00:00
Marcus Boerger d129242ad5 Add some tests 2004-01-12 02:31:08 +00:00
ac8b58603b ChangeLog update 2004-01-12 01:31:59 +00:00
Marcus Boerger 635e3b1980 Proto fix 2004-01-12 00:34:37 +00:00
Marcus Boerger 9c41d8e7b5 No longer needed 2004-01-12 00:21:14 +00:00
Marcus Boerger 61fc2a9209 Add missing macro
# by popular demand, more and more exts need this
2004-01-12 00:19:40 +00:00
Wez Furlong 910e20064a TSRMLS fix 2004-01-11 21:39:40 +00:00
Ilia Alshanetsky 3b7da77480 Fixed bug #26864 (pg_(update|delete) ignore PGSQL_DML_EXEC option). 2004-01-11 21:18:19 +00:00
Andi Gutmans ac5d5c7f35 - Re-allow conditional class declerations. Needless to say that I also
- think it's not great coding.. Use polymorphism instead :)
2004-01-11 19:37:15 +00:00
Andi Gutmans e69f4f6f25 - This should fix the problem of conditional function decleration on the
- same line of code not to work. You should re-evaluate your coding style
- if you really code this way :)
2004-01-11 19:27:13 +00:00
foobar 028fcd7ec3 oops.. 2004-01-11 14:06:37 +00:00
foobar a201e10c9b BFN 2004-01-11 14:06:16 +00:00
foobar fcf131ce23 add test case for bug #26869 2004-01-11 13:59:48 +00:00
Andrey Hristov 4b2a32b701 fixing test 2004-01-11 11:55:33 +00:00
Rui Hirokawa de07b4bbc1 added utf8 support option for sqlite >= 2.8.9. 2004-01-11 02:07:46 +00:00
a4872e0c31 ChangeLog update 2004-01-11 01:32:20 +00:00
Tal Peer a3dc201d1e typos 2004-01-10 23:49:26 +00:00
Andrey Hristov 9ca6b7448d fixing tests after last Derick's commit that changed the behaviour of
var_export() :)
2004-01-10 23:38:45 +00:00
Ilia Alshanetsky 0e32fbb4dd Do not run test if session extension is not avaliable. 2004-01-10 18:32:46 +00:00
Marcus Boerger cc5773e775 Update attribute tests.
# There is a memory leak with += when accessing the attributes directly
# But yet ->elem[$n] is not fails in the engine
2004-01-10 13:45:10 +00:00
Marcus Boerger fffdd96865 - Cleanup class_entry
- allow derived classes
- fix new SimpleXML_Element()
2004-01-10 13:25:31 +00:00
Marcus Boerger c66c9e7102 Fix memory corruption with libxml's error handling. 2004-01-10 13:23:58 +00:00
Zeev Suraski f5e9ca64b1 Remove conflict 2004-01-10 12:48:04 +00:00
Rob Richards 840979858c Update tests 2004-01-10 11:50:49 +00:00
Rob Richards 394bf2ba5b XPath query returns nodelist object rather than array 2004-01-10 11:50:25 +00:00
Zeev Suraski a72c1ab93b Added error mask to set_error_handler()
Patch by Christian Schneider <cschneid@cschneid.com>
2004-01-10 11:43:42 +00:00
Dmitry Stogov 170476d9ea BUGFIX: server006.phpt 2004-01-10 09:27:52 +00:00
Dmitry Stogov 1101a375c3 *** empty log message *** 2004-01-10 08:36:45 +00:00
b04960746d ChangeLog update 2004-01-10 01:33:36 +00:00
Wez Furlong 4a7577e4ab include PECL targets in snap build... 2004-01-10 01:11:42 +00:00
Wez Furlong 57e2ef89e4 support for building asm in the unix buildsys.
Also, when ZEND_ACCONFIG_H_NO_C_PROTOS is defined,
omit the C prototypes from the configuration header
so that it can be included into asm files.
2004-01-09 23:37:29 +00:00
Marcus Boerger 686281d087 this one is declined 2004-01-09 18:55:49 +00:00
Marcus Boerger b460ae868e Use pg_config if it can be found. 2004-01-09 18:44:33 +00:00
Dmitry Stogov 9a3cdc6491 Source cleanup. 2004-01-09 18:22:03 +00:00
Wez Furlong e3baf1a07d must be extern to avoid problems with some compilers 2004-01-09 18:09:51 +00:00
Dmitry Stogov 9f8d30f215 BUGFIX: WSDL support (complexType/complexContent/restiction/atttibute) 2004-01-09 16:36:13 +00:00
Dmitry Stogov d9328fb38e BUGFIX: close string with smart_str_0() 2004-01-09 16:35:04 +00:00
Wez Furlong 5e57f973cc let soap build with php5 2004-01-09 15:31:09 +00:00
Wez Furlong 6ac364048b export tsrm id for session globals. 2004-01-09 15:30:07 +00:00
Wez Furlong 143ca63846 let informix build 2004-01-09 15:11:31 +00:00
Dmitry Stogov 6af0639c92 Tests were improved (https:// support) 2004-01-09 14:56:24 +00:00
Stanislav Malyshev b9052251e7 fix expect 2004-01-09 14:32:32 +00:00
Ilia Alshanetsky caf47aee99 Fixed test 2004-01-09 14:27:14 +00:00
Ilia Alshanetsky 577439e975 Fixed build. 2004-01-09 14:23:35 +00:00
Dmitry Stogov 792b0e8f0b SOAP Encoding/Decoding were improved. 2004-01-09 14:16:30 +00:00
Edin Kadribasic cf7afb8f18 Fix ZTS build 2004-01-09 14:13:46 +00:00
Dmitry Stogov 498254e17a Support for persistent HTTP connections was implemented (keep-alive) 2004-01-09 14:11:34 +00:00
Stanislav Malyshev c4b6a637e5 Bug #25816 - disallow arrays in class constants 2004-01-09 14:02:33 +00:00
Stanislav Malyshev 209497cfdf add test 2004-01-09 13:55:02 +00:00
Stanislav Malyshev e321eba06b Fix Bug #26077 - memory leak when new() result is not assigned
and no constructor defined
2004-01-09 13:52:19 +00:00
Wez Furlong 9e229aa09d let mhash build 2004-01-09 13:42:14 +00:00
Wez Furlong fc1d460a99 add a rule to clean pecl things; split up the command line into 3 to
try to avoid possible problems with line-length under VC6
2004-01-09 13:32:20 +00:00
Wez Furlong 2aa33945fc Separate pecl extensions and sapi into their own target, and have mkdist.php
create a separate pecl dir and zip when building a win32 snapshot.
2004-01-09 13:17:58 +00:00
Wez Furlong af1522ad2d fix PHP_SPL problem when you don't have a pecl checkout. 2004-01-09 11:19:40 +00:00
Sterling Hughes 5ca7c382c9 Remove these initializers as they are unused. 2004-01-09 06:12:29 +00:00
foobar bbd9449e6b - Fix build 2004-01-09 04:22:42 +00:00
Ilia Alshanetsky f4828675eb sqlite news 2004-01-09 01:38:13 +00:00
Ilia Alshanetsky 2736c55e3e Fixed bug #26847 (memory leak in mail() when to/subject contain only spaces) 2004-01-09 01:35:44 +00:00
47c81de40f ChangeLog update 2004-01-09 01:32:33 +00:00
Ilia Alshanetsky f5a3f25159 Fixed compile failure of session extension is not present. 2004-01-09 01:05:01 +00:00
Sterling Hughes 406c2156d1 Fix dumping, when dumping a text element, for example:
<?php
$doc = simplexml_load_string('<?xml version="1.0"?>
<namelist>
 <name>
  <first>helly</first>
 </name>
 <name>
  <first>sterling</first>
 </name>
</namelist>');
var_dump($doc->name[0]->first);

Used to not display the node's content, now it does.
2004-01-08 22:40:08 +00:00
Wez Furlong 510dd7cca5 add optional dep on spl for simplexml.
Fix dep handling in buildconf
2004-01-08 21:53:48 +00:00
Marcus Boerger 3fc4dc44ae Add some minimalistic documentation 2004-01-08 21:14:38 +00:00
Marcus Boerger 526c6bd09c Fix windows build issue 2004-01-08 20:27:35 +00:00
Marcus Boerger fb38ee26a4 Cannot use shared SPL 2004-01-08 19:30:37 +00:00
Marcus Boerger 6e798706e3 There's no more interaction with SPL 2004-01-08 19:28:55 +00:00
foobar 4293b03948 touch generated files 2004-01-08 19:17:50 +00:00
foobar 6ae12f1aa8 touch to make build work without lemon.. 2004-01-08 18:23:52 +00:00
Marcus Boerger 37d23de6d6 Fix dependancy 2004-01-08 18:23:03 +00:00
Marcus Boerger 0e5b87c5a2 Update copyright 2004-01-08 18:17:39 +00:00
Dmitry Stogov 807d4bebc6 Handling of "position" and "offset" array attributes was implemented 2004-01-08 17:42:32 +00:00
foobar ccfc46b0aa - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Wez Furlong f83b27face fix tests for win32 2004-01-08 16:55:37 +00:00
foobar 17fd860e5e correct header 2004-01-08 16:47:18 +00:00
foobar bcbc4ab0e0 Happy new year! 2004-01-08 16:46:52 +00:00
Wez Furlong 5294ef06c8 add new files to .dsp 2004-01-08 16:23:47 +00:00
Wez Furlong 2f6c4ce81d Update win32 build for new version of libsqlite 2004-01-08 16:18:38 +00:00
Dmitry Stogov dd5ce0c4d7 SOAP versioning model was implemented (support for SOAP 1.1 and SOAP 1.2) 2004-01-08 15:27:50 +00:00
Ilia Alshanetsky a4ea8eb44e Upgrade bundled libsqlite to 2.8.9 2004-01-08 14:25:01 +00:00
Dmitry Stogov 2cf3cb6407 Support for "xsd:anyType" was implemented 2004-01-08 12:32:28 +00:00
Wez Furlong 611c69b816 update copyright year in win32 resource template 2004-01-08 10:58:27 +00:00
Wez Furlong 7b40de6fd0 fix fastcgi build 2004-01-08 10:56:39 +00:00
Dmitry Stogov ecbad181b9 HTTP Authentication was implemented 2004-01-08 09:56:49 +00:00
John Coggeshall 962edd2d2e tidy_repair_string/file() don't get called from an existing tidy resource. 2004-01-08 09:21:05 +00:00
Andi Gutmans 6b87194bd9 - - A belated happy holidays (by two years) 2004-01-08 08:23:23 +00:00
Andi Gutmans dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
foobar 8d236fc234 - remove non-existing project 2004-01-08 01:46:13 +00:00
cfca1234a4 ChangeLog update 2004-01-08 01:31:55 +00:00
foobar fa82c2afc4 Added missing constants (bug #26831) 2004-01-08 01:01:39 +00:00
Wez Furlong 4a17522353 Change ordering of CFLAGS for built sources, so that extension specific include dirs
occur before more global include dirs.
This avoids problems when building a bundled lib and you have headers from an
external version of that lib in your global include dir.
2004-01-08 00:25:48 +00:00
Frank M. Kromann b4fab399f7 Adding new com_dotnet source files to project 2004-01-08 00:22:20 +00:00
Frank M. Kromann 64e404229b Fix ZTS build 2004-01-08 00:03:54 +00:00
foobar 4db2d84efa BFN 2004-01-07 23:53:48 +00:00
Wez Furlong 772875537f win32 build:
gd should build shared by default
don't use php.ini when running mkdist.php
2004-01-07 23:36:36 +00:00
Wez Furlong f5e4590fd5 tweak snap build 2004-01-07 23:11:54 +00:00
Wez Furlong 86f7fad719 Make activescript SAPI build under php5.
Untested...!
2004-01-07 21:01:13 +00:00
Wez Furlong e10c206dac Port other major parts of PHP 4 COM extension into PHP 5 com_dotnet
extension.
This enables:
- iteration of SafeArray types via foreach()
- proxying of multi-dimensional SafeArray types so that multi-dimension
  array accesses work (untested!)
- Fix COM exceptions, and expose them as their own class of exception
  "com_exception"
- auto typelib file import (com.typelib_file ini option)
- event sinking
- wrapper to map PHP objects to COM
- fix mapping of variant values to PHP values

# Could someone please add com_saproxy.c and com_wrapper.c to the .dsp
# file?
2004-01-07 21:00:07 +00:00
Wez Furlong 48b96c10d2 glob-ify lib checks; this simplifies writing of config.w32 files a little. 2004-01-07 20:06:32 +00:00
Rob Richards 6e65e1d821 Fix bug #26815 (foreach (DOM) childnodes causes error using Xinclude)
update xinclude test
2004-01-07 15:33:25 +00:00
Ard Biesheuvel ee8f019b68 Let DB handle NULL params, fixes bug #26777 2004-01-07 09:43:55 +00:00
0204ac5a27 ChangeLog update 2004-01-07 01:32:03 +00:00
Marcus Boerger 1d2b4bcc48 Reimplement part of Bug #24608 that was reverted too 2004-01-07 00:24:58 +00:00
Marcus Boerger 82f0c9e7aa Revert patch that allowed to call sttaic methods via $method() 2004-01-07 00:02:04 +00:00
Ilia Alshanetsky 68a096f84e Check if realloc() succeeds or not. (Noticed by Andrey) 2004-01-06 22:44:40 +00:00
foobar 03c09f200c no need for double #include of same header file 2004-01-06 22:23:36 +00:00
Zeev Suraski 215c3275de Fix C++ style declaration 2004-01-06 20:38:00 +00:00
Ilia Alshanetsky d4c19ed2d2 Fixed bug #26819 (http_build_query() crashes on NULL output).
Fixed bug #26817 (http_build_query() does not handle private & protected
object properties correctly).
2004-01-06 20:07:07 +00:00
John Coggeshall d900d73763 Added an optional array parameter to tidy_parse_file/string to
fix a bug. Apparently some libtidy config options must be set
prior to parsing in order to work properly.
2004-01-06 18:24:17 +00:00
Dmitry Stogov 107a87ca85 WSDL support was improved 2004-01-06 17:14:30 +00:00
Dmitry Stogov ea2f4b7ac0 https:// support was implemented for PHP5 2004-01-06 17:12:52 +00:00
Ilia Alshanetsky d2b89ae32b Revert proto 'fix'. 2004-01-06 15:45:52 +00:00
Moriyoshi Koizumi 06232e4818 Prevent a character from being wrongly doubled in the buffer. 2004-01-06 14:22:54 +00:00
Ilia Alshanetsky 10889a3084 Proto fixes. 2004-01-06 03:55:57 +00:00
6b27ed4d8d ChangeLog update 2004-01-06 01:31:55 +00:00
Marcus Boerger 6118a91849 Update 2004-01-06 00:51:43 +00:00
Marcus Boerger 18ea05b746 Fixed bug #26802 2004-01-05 22:45:11 +00:00
Marcus Boerger f16aed2d7a Fix test 2004-01-05 22:40:24 +00:00
Marcus Boerger 780b420797 Add new test 2004-01-05 22:17:14 +00:00
Dmitry Stogov de6184edee PHP5 support, better encoding and WSDL support, interop round 2 base and groupB 2004-01-05 16:44:01 +00:00
foobar 2e2d5d78f0 BFN 2004-01-05 14:31:48 +00:00
Marcus Boerger b5e5c845bf Update test 2004-01-05 14:01:09 +00:00
Stanislav Malyshev bced21b357 Fix bug #26543 - check parent:: and self:: in class names 2004-01-05 12:10:35 +00:00
Stanislav Malyshev 1e11e7401c Bug #24608 - fix interaction between __accessors and get_property_ptr 2004-01-05 11:45:46 +00:00
Andrey Hristov 7baf31fc83 another example 2004-01-05 05:54:12 +00:00
6485ed84b5 ChangeLog update 2004-01-05 01:31:52 +00:00
Moriyoshi Koizumi 27f47eb173 "seq" isn't available for all platforms. 2004-01-04 03:06:11 +00:00
69b6c15158 ChangeLog update 2004-01-04 01:32:43 +00:00
Jan Lehnardt 84b8ffd491 - remove unneeded subroutine call 2004-01-03 14:03:46 +00:00
Derick Rethans 16eb6ece84 - Added test results to .cvsignore file 2004-01-03 13:51:55 +00:00
Derick Rethans 6923a16c26 - Fixed var_export() to show public, protected and private modifiers properly.
- Exported (un)mangle_property_name.
2004-01-03 13:51:02 +00:00
Derick Rethans 22843351bf - Show the API numbers again while phpizing. 2004-01-03 13:45:12 +00:00
John Coggeshall 4ddb3d194d Added examples for tidy v2.0 (in PHP5) and a few more tests.. 2004-01-03 05:23:24 +00:00
f37c9932ba ChangeLog update 2004-01-03 01:32:06 +00:00
Ilia Alshanetsky 939a70a86d s/then/than/ Thanks Jani & Andi 2004-01-03 00:48:55 +00:00
Edin Kadribasic d2317fc110 Disable output buffering in CLI overriding php.ini setting.
Fixes #26755.
2004-01-02 22:31:32 +00:00
Andrei Zmievski 85f62caad2 Do not show exception message if it's empty.
# Is there a way to preserve the case of the exception class here?
2004-01-02 19:27:02 +00:00
foobar 0eead3672c ws + cs 2004-01-02 15:32:09 +00:00
foobar 2cf5871377 another ZTS fix 2004-01-02 14:09:49 +00:00
Marcus Boerger 5d58aff217 BFN 2004-01-02 03:27:43 +00:00
Marcus Boerger 0cd13bf423 Bugfix #26762 unserialize() produces lowercase classnames 2004-01-02 03:27:32 +00:00
Marcus Boerger 3ab7b87143 Add new test 2004-01-02 03:24:38 +00:00
foobar 926504978b dotdotdot.. 2004-01-02 02:34:53 +00:00
foobar 3c73c91e7a fix ZTS build 2004-01-02 02:21:44 +00:00
988ee78f90 ChangeLog update 2004-01-02 01:31:53 +00:00
Ilia Alshanetsky 6f7fe1dfa0 Fixed bug #26752 (Silent unterminated loop when length parameter for
fgets(), fread() and fgetss() is 0).
2004-01-02 00:57:23 +00:00
Marcus Boerger 6bfa014748 Fix ZTS build 2004-01-01 19:25:02 +00:00
Georg Richter 27319233e5 fixed bug(s) in macro call for statement properties 2004-01-01 15:46:39 +00:00
Georg Richter 1733557ac8 Added Macro for longlong values
added property stmt->affected_rows
2004-01-01 14:04:35 +00:00
Derick Rethans e754721692 - Compress 2003 changelog 2004-01-01 11:41:18 +00:00
06a60f2949 ChangeLog update 2004-01-01 01:32:07 +00:00
Ilia Alshanetsky b658a26874 emalloc() -> safe_emalloc() 2003-12-31 19:45:46 +00:00
Andrei Zmievski 87c2ba22f1 Make default message look better. 2003-12-31 19:44:41 +00:00
Frank M. Kromann 0b91485ed5 Make sure zlib.lib is found 2003-12-31 19:28:31 +00:00
Marcus Boerger 865738238f BFN 2003-12-31 12:21:02 +00:00
Derick Rethans 0cfadb914c - Fixed bug #26751 (PHP can't find the MySQL socket on a case sensitive file
system).
2003-12-31 11:27:52 +00:00
Andrey Hristov 2e474e90c3 proto fix 2003-12-31 10:56:32 +00:00
Georg Richter 9285d613f5 fixed problems with longlong values in mysqli 2003-12-31 08:57:09 +00:00
Georg Richter c10072d067 fixed memleak and segfault when constructor call failed 2003-12-31 08:34:02 +00:00
cd9342fb84 ChangeLog update 2003-12-31 01:33:06 +00:00
foobar 4a94097986 cleanup 2003-12-31 01:27:35 +00:00
Ilia Alshanetsky f4a07dd9a5 Replace regular malloc with safe_emalloc in several places. 2003-12-31 01:01:44 +00:00
Georg Richter 51fc89e49c fixed a bug in mysqli_num_rows (added support for longlong values) 2003-12-30 19:19:13 +00:00
Georg Richter 17f6ef5106 fixed a bug in insert_id property 2003-12-30 19:08:33 +00:00
foobar 2b06ad1389 Fix the include path for Zend 2003-12-30 15:40:23 +00:00
Andi Gutmans fc835b4a46 - Fix typos 2003-12-30 13:28:31 +00:00
Marcus Boerger 5e9279bb44 Update 2003-12-30 13:14:14 +00:00
b8f3838753 ChangeLog update 2003-12-30 01:31:58 +00:00
Ilia Alshanetsky f0fa1781ee Added test case for bug #26696. 2003-12-30 00:23:28 +00:00
Marcus Boerger 2fc7a07e62 Use __tostring() in all printing functions. 2003-12-29 22:26:48 +00:00
Marcus Boerger c6755e8394 No Notices here 2003-12-29 22:24:01 +00:00
Marcus Boerger a572d79e0a Fix data source 2003-12-29 22:18:40 +00:00
Marcus Boerger 046859493e Fix (string) conversion 2003-12-29 22:01:47 +00:00
Marcus Boerger c0b8e35997 Add missing notice 2003-12-29 21:58:03 +00:00
Rob Richards db9af58184 BFN 2003-12-29 16:45:59 +00:00
Rob Richards 66c68da22b Fixed bug #26743 (getElementsByTagName doesn't work properly) 2003-12-29 16:44:47 +00:00
Marcus Boerger d001928aa2 Align output if one section shows 100% and display percentages when not
counting skipped tests.
2003-12-29 16:07:08 +00:00
Ilia Alshanetsky fae56fca30 Removed a useless define. 2003-12-29 15:58:01 +00:00
Marcus Boerger 2788bb8a15 BFN 2003-12-29 12:39:07 +00:00
Marcus Boerger 23191fb208 Add some __autoload() tests. 2003-12-29 12:36:31 +00:00
Marcus Boerger 03e039b19d Fix __autoload() with derived classes 2003-12-29 12:35:44 +00:00
049fda207d ChangeLog update 2003-12-29 01:32:05 +00:00
Georg Richter 703921ab36 updated todo list (removed finished tasks) 2003-12-29 00:11:14 +00:00
Georg Richter 36b65c4ed0 fixed prototype for mysqli_bind_result 2003-12-28 22:26:59 +00:00
Derick Rethans 287834a5af - Fix typo 2003-12-28 21:56:15 +00:00
Ilia Alshanetsky 8ec2fd0c54 Last bit of CS fixes. 2003-12-28 21:08:46 +00:00
Ilia Alshanetsky 36db28c8db CS fixes. 2003-12-28 20:11:08 +00:00
Marcus Boerger e29f589d46 Add more tests. 2003-12-28 18:03:05 +00:00
Marcus Boerger 442c2b4eec Add a test 2003-12-28 16:26:21 +00:00
Marcus Boerger 1a48fd929d Fix a memleak
Improve error messages
2003-12-28 16:26:04 +00:00
Marcus Boerger 2a6ec5ccb4 WS 2003-12-28 16:20:06 +00:00
Marcus Boerger 15964bb35d Fix order of class_entry member initialization (needed for example for DOM)
# You need to completley rebuild PHP after this patch.
2003-12-28 15:18:05 +00:00
Rui Hirokawa 05c78af854 revert my previous patch because utf-8 support is still in experimental status. 2003-12-28 14:38:28 +00:00
Rui Hirokawa 585a12d3be added warning message. 2003-12-28 14:26:57 +00:00
Rui Hirokawa af9b015afc added a option to select character encoding for sqlite. 2003-12-28 14:07:33 +00:00
Georg Richter 95bda90038 fixed bug in properties for longlong values 2003-12-28 09:18:51 +00:00
af3e587d1e ChangeLog update 2003-12-28 01:31:59 +00:00
Sara Golemon 4af0ba44d9 Test additional wrapper methods [unlink, rename, mkdir, rmdir, url_stat] 2003-12-28 01:06:38 +00:00
Moriyoshi Koizumi 3d618a2f00 Just laugh at me :) 2003-12-27 23:07:47 +00:00
Moriyoshi Koizumi 07469af0d9 - Add missing sanity check. 2003-12-27 23:05:23 +00:00
Marcus Boerger 7980195d7c BFN 2003-12-27 23:01:04 +00:00
Marcus Boerger 885eafac61 Fixed bug #26065 (Crash when nesting classes) 2003-12-27 22:59:49 +00:00
Marcus Boerger 01b255f0ef Correct in order 2003-12-27 22:16:13 +00:00
Marcus Boerger a876c54d1c Bugfix #25329 2003-12-27 22:11:48 +00:00
Marcus Boerger fd7fca402b Not needed 2003-12-27 21:57:16 +00:00
Marcus Boerger da29458469 Add new test related to bug #25329. 2003-12-27 21:45:50 +00:00
Marcus Boerger a84f8156ff Bugfix #25038 (call_user_func issues warning if function throws exception) 2003-12-27 21:10:34 +00:00
Marcus Boerger c49b657084 Add new test 2003-12-27 20:45:36 +00:00
Marcus Boerger e20f534ee5 Simplify 2003-12-27 20:33:14 +00:00
Marcus Boerger db36fd0200 Fix __tostring() and concatenation 2003-12-27 20:16:49 +00:00
Rob Richards c7e945888b fix libxml mem leak 2003-12-27 12:39:10 +00:00
Rob Richards 563be668b8 Fixed bug #26723 2003-12-27 10:33:26 +00:00
Rob Richards 84b90f639d Fixed bug #26723 (domNode::appendChild() changes child node namespace)
apply fix to insertBefore and replaceChild
2003-12-27 10:29:52 +00:00
20a59f9759 ChangeLog update 2003-12-26 01:31:54 +00:00
Ilia Alshanetsky 8d6cfb797b Synchronized bundled GD library with GD 2.0.17
. GD is now thread-safe thanks to wrappers around freetype library
 . Significant optimization to png writing code.
 . Miscellaneous fixes.
Fixed memory leak inside php_imagettftext_common()
Make ext/gd compile with GD 2.0.17+ (gdFreeFontCache() is not avaliable)
2003-12-25 22:12:12 +00:00
Marcus Boerger 1dec2d85d6 Fix warning 2003-12-25 20:08:22 +00:00
Marcus Boerger d28d247c4a Fix warning 2003-12-25 19:59:38 +00:00
Ilia Alshanetsky 0688205940 Fixed Bug #26703 (Certain characters inside strings incorrectly treated as
keywords). Original patch by vrana@php.net.
2003-12-25 18:57:26 +00:00
Antony Dovgal 12c7ae9f55 workaround for possible ORA-22280 warning if buffers were not flushed 2003-12-25 13:54:50 +00:00
6d8a0a89f3 ChangeLog update 2003-12-25 01:31:50 +00:00
Moriyoshi Koizumi 93cc95e9db - fixes for compatibility. now fgetcsv() treats a null line to be a single
null component.
2003-12-24 21:30:43 +00:00
Ilia Alshanetsky be5670af2b Fixed bug #26707 (Incorrect error for disabled functions/classes). 2003-12-24 16:38:22 +00:00
Antony Dovgal f95db00d6c separate oci_lob_flush() to use it in oci_lob_append() etc. in the future 2003-12-24 15:01:54 +00:00
Moriyoshi Koizumi 529dd348b6 - Supply some comments. Hope those help when you have to debug this dead beef.
- Fix iconv_mime_decode() to correctly handle "malformed" headers :)
- Fix iconv_mime_decode() bug, that the result is mangled when
  ICONV_MIME_CONTINUE_ON_ERROR is enabled and the function encounters an
  unconvertable encoded chunk.
2003-12-24 02:36:21 +00:00
6d50eca0db ChangeLog update 2003-12-24 01:31:55 +00:00
Wez Furlong cb6e4c5e13 Fix segfault in ZTS mode 2003-12-23 20:12:55 +00:00
Ilia Alshanetsky bdc30961d0 Properly detect bundled libtool when PHP is built in a separate directory.
Detect version of system libtool, which is used by phpize.
2003-12-23 18:20:46 +00:00
Ilia Alshanetsky 20d64aa24e Make test work with PostgreSQL 7.4 2003-12-23 17:33:06 +00:00
Wez Furlong 9720a31bd6 A more general check for dirs under Release or Debug. 2003-12-23 17:20:50 +00:00
Moriyoshi Koizumi 3b7dcf5e65 Those are not structures :-) 2003-12-23 17:10:54 +00:00
Ilia Alshanetsky 39df1011f1 Compiler warning fixes. 2003-12-23 17:08:44 +00:00
Ilia Alshanetsky cf40d9243d Fixed compiler warnings. 2003-12-23 17:05:43 +00:00
Antony Dovgal 107221252c add oci_fetch_assoc(), oci_fetch_object(), oci_fetch_array() & oci_fetch_row()
change ocifetchinto() to use php_oci_fetch_row()
2003-12-23 16:02:53 +00:00
Wez Furlong 5d5f2619b3 Proper check for resolv.lib 2003-12-23 16:01:41 +00:00
Antony Dovgal 7aac9069d4 huge patch
change almost all func names to match naming conventions
keep ocifetchinto & *buffering for awhile - they will be rewritten soon
old names are kept as aliases
2003-12-23 15:45:36 +00:00
Wez Furlong 03d426f6a6 implement our own tiny little dependcy tracker and use
it to build distros.
2003-12-23 15:33:13 +00:00
Wez Furlong 46c4147ab7 enable inifile handler under new win32 build too 2003-12-23 14:05:33 +00:00
Wez Furlong 8f3f09f315 Attempt to work around apparent problems with WshShell.CurrentDirectory.
# Andi, please try this now
2003-12-23 13:10:54 +00:00
Wez Furlong b8978cad26 Better implementation of the prefix thing 2003-12-23 12:40:41 +00:00
Andi Gutmans 3eadb12f7e - Commit fixes to PHP man page 2003-12-23 11:06:50 +00:00
Marcus Boerger c6cb00fe59 Fixed bug #26697 (calling class_exists on a nonexistent class in __autoload
results in segfault).
2003-12-23 10:45:10 +00:00
Antony Dovgal cf45beedb5 do not delete connection ids, we need them 2003-12-23 09:21:14 +00:00
Georg Richter bbae05b957 #fixed bug #26680 2003-12-23 06:28:12 +00:00
Frank M. Kromann 835f6beab8 Adding install target that follows the prefix 2003-12-23 05:43:19 +00:00
Wez Furlong 9b80e46e45 Now that it has matured somewhat, don't discourage questions about it
quite so strongly.
Add note about snapshot building.
# If you are building "official" snapshots, you need Edin's treasure-trove
# of libraries/headers and the snapshot template
2003-12-23 02:51:18 +00:00
Wez Furlong 8d011cba6d fix API exports 2003-12-23 01:57:26 +00:00
Wez Furlong 475821225d Implement a glob() function for use by win32 configure. 2003-12-23 01:55:33 +00:00
Wez Furlong 482ae86d1f win32 buildconf now honours extension dependencies and will
try its best to ensure that the config.w32 files are amalgamated
in such a way that modules are processed before their dependents.
2003-12-23 01:54:07 +00:00
3fc3d625e5 ChangeLog update 2003-12-23 01:31:50 +00:00
Frank M. Kromann 86c302f590 Use a variable name so this actually works. 2003-12-23 00:36:32 +00:00
Frank M. Kromann 3a6a3dd816 Fix build when both a path and the keyword shared is given
Now works for both <path>,shared and shared,<path>
2003-12-23 00:17:15 +00:00
Marcus Boerger 8a072165f5 Typos found by Petras Kudaras. 2003-12-22 23:45:53 +00:00
Frank M. Kromann 3aad8267a8 No need for these trick when linking with a correct cclient.lib 2003-12-22 23:30:20 +00:00
Marcus Boerger 68251516ad Fix test 2003-12-22 23:23:06 +00:00
Marcus Boerger 45277ec5d7 Preserve casing 2003-12-22 23:17:17 +00:00
Marcus Boerger b89ce361fc Fix test 2003-12-22 23:15:34 +00:00
Marcus Boerger 4e24057380 Update 2003-12-22 22:59:44 +00:00
Marcus Boerger 717604ea70 Add more tests 2003-12-22 22:53:48 +00:00
Marcus Boerger 26a0abbd0c Fix tests now that class names are shown in correct casing 2003-12-22 22:50:02 +00:00
Wez Furlong 4b76493f1e Don't annoy people building snaps/dists using VC6 2003-12-22 22:48:29 +00:00
Wez Furlong d163ec27af Allow FrontBase to build against my local version of the headers 2003-12-22 22:41:59 +00:00
Wez Furlong 719d659e89 Proper header check for yaz. 2003-12-22 22:39:57 +00:00
Marcus Boerger 50888a100c Preserve class name casing. 2003-12-22 22:34:28 +00:00
Marcus Boerger 37d9a9f150 BFN 2003-12-22 22:33:45 +00:00
Wez Furlong fc292fc259 For GD, build the extension as php_gd2.dll instead of php_gd.dll.
Thanks again Frank :-)
2003-12-22 22:33:43 +00:00
Wez Furlong f936f2983d It seems that making the NewAPIs.h header globally visible causes
problems when compiling the com_dotnet extension, so I'm moving
it to be visible only to the VCWD code.
Thanks Frank :-)
2003-12-22 22:30:50 +00:00
Marcus Boerger b58d371927 Fixed bug #26695 (Reflection API does not recognize mixed-case class hints)
# The exception part
2003-12-22 20:03:01 +00:00
Frank M. Kromann e6f386df9f Convert to windows line endings 2003-12-22 18:23:39 +00:00
Georg Richter 5bf9b63c5b beautifying :) 2003-12-22 17:00:54 +00:00
Georg Richter ba7d400fa1 fixed bug #26680 2003-12-22 16:56:14 +00:00
Rob Richards ab29ed006c rollback to previouos version
bug #26690 fixed in libxml.c
2003-12-22 16:49:54 +00:00
Rob Richards 620cb2e2eb only test url_stat in read mode 2003-12-22 16:46:26 +00:00
Ilia Alshanetsky a8c58f1d79 Fixed bug #26690 (make xsltProcessor->transformToUri use streams wrappers). 2003-12-22 16:32:29 +00:00
Marcus Boerger 06788f0438 Fixed bug #26675 (Segfault on ArrayAccess use)
Update NEWS
2003-12-22 16:27:14 +00:00
Ilia Alshanetsky 1a53f3c5e0 Define INADDR_NONE for systems that don't have it (apparently solaris). 2003-12-22 16:00:52 +00:00
Ilia Alshanetsky 57b7eb9dc3 Missing bit for bug #26625. 2003-12-22 15:56:51 +00:00
Wez Furlong 4534d0d0c4 Verify that new build system works with Pi3Web 2.0.2 2003-12-22 15:32:11 +00:00
Wez Furlong 42ed91f94c Fix bug #26692; Could not find GetLongPathNameA under NT4.
This fix relies on you having the Platform SDK headers.
Using the new build system, the NewAPIs.h header will be detected
automatically, however, for people building using .dsp files,
you will need to add /DHAVE_NEWAPIS_H=1 to the TSRM project
if you have those newer headers.
2003-12-22 15:01:05 +00:00
Wez Furlong 3b450ec431 Add dependencies for these extensions 2003-12-22 13:16:43 +00:00
Wez Furlong 113165bd95 Add --enable-snapshot-build configure option for win32 build.
Using it will attempt to switch on any configure options that
were left to their default value of "no".

Add a "snap" target to the makefile which will run a sub-process
to make each SAPI and EXT independently, so that the whole process
does not bail out if a particular extension is broken.

Add a way to specify dependencies between extensions in the
config.w32 files so that the makefile will include appropriate rules
and linkage.
2003-12-22 13:13:39 +00:00
Wez Furlong 273c19334b export these symbols for use by SPL as a shared extension 2003-12-22 13:09:15 +00:00
Wez Furlong d756e1db23 add win32 configure option for CLI to switch on CRT heap debugging 2003-12-22 13:08:04 +00:00
Jon Parise 85735c23c6 Correcting the description field. 2003-12-22 06:19:01 +00:00
1dc6e59dcc ChangeLog update 2003-12-22 01:31:56 +00:00
Moriyoshi Koizumi 1b239fc970 - Fix multibyte handling errors in iconv_mime_encode() when quoted-printable
encoding scheme is used.
- Fix segfault that occurs in iconv_mime_encode() when input_charset or
  output_charset parameter is not specified in the associative array.
2003-12-22 01:30:00 +00:00
Derick Rethans 0041a5798b - Fix version number so that people are not mistaking our development
version for RC1.
2003-12-21 18:57:59 +00:00
Ilia Alshanetsky c8de14b375 Corrected argument parsing. 2003-12-21 18:46:15 +00:00
Zeev Suraski 6ac233f975 B3 here we go (away) 2003-12-21 18:30:57 +00:00
Zeev Suraski 86e776470c Update date 2003-12-21 18:30:31 +00:00
Zeev Suraski bb531436c8 B3 here we come 2003-12-21 18:26:29 +00:00
Ilia Alshanetsky 72da689340 Compiler warning fixes. 2003-12-21 18:22:14 +00:00
Ilia Alshanetsky cba426ca13 Fixed uninitialized usage of mdtype when unknown signature algorithm is
found.
2003-12-21 18:17:20 +00:00
ebeedaf6f5 ChangeLog update 2003-12-21 01:31:46 +00:00
Andi Gutmans d53caa9618 - Make the world a better place.
- Will roll b3 tomorrow.
2003-12-20 21:27:49 +00:00
Wez Furlong ab11c8c5ba MFB fix for #25597 2003-12-20 20:25:55 +00:00
Wez Furlong 76828b3024 new win32 build tweaks 2003-12-20 01:44:53 +00:00
d8f6bb7efa ChangeLog update 2003-12-20 01:31:55 +00:00
Wez Furlong deb3bff21a Forgot to add embed config.w32, and tweak version resource when CREDITS file is missing. 2003-12-19 23:19:19 +00:00
Wez Furlong 4084ed9edf Export flock for win32 2003-12-19 23:18:14 +00:00
Wez Furlong 331dc79254 More things for the new build system.
Pi3Web and aolserver build untested (no headers and libs for those here)
2003-12-19 20:39:04 +00:00
Wez Furlong 7930ddce0a Make apache2handler build with new build system.
Perhaps also make it build with .dsp system too...
2003-12-19 18:28:56 +00:00
Wez Furlong 1402825b3d Moved ext/notes to PECL.
(win32 only, and doesn't build on snaps.php.net)
2003-12-19 17:13:20 +00:00
Antony Dovgal f5bd0b73cf add tests to HEAD 2003-12-19 17:03:12 +00:00
Wez Furlong 51c342efae Make these build with new win32 build system. 2003-12-19 17:00:14 +00:00
Wez Furlong 836e786ddd Make xmlrpc build using our expat compat functions.
Would be good if someone could verify that it actually
works in this configuration.
2003-12-19 16:59:37 +00:00
Wez Furlong 19c8a69148 add config.w32 for ext/yaz
Edin: we need to update the yaz stuff in php-win32-dev
so that this extension will build.
2003-12-19 16:59:09 +00:00
Wez Furlong 06f448cf61 Export expat compat functions.
"Implement" XML_GetCurrentByteCount(); probably not 100%
correct, but the only usage of it is by xmlrpc extension when
reporting an error; it should be safe.
2003-12-19 16:57:36 +00:00
Wez Furlong 9ecd238b6b don't overwrite internal_functions.c if the content did not change;
this saves re-linking php*.dll when you add shared extensions to
your config.
2003-12-19 16:55:59 +00:00
Derick Rethans 4845b205fc - Test commit 2003-12-19 15:29:34 +00:00
Derick Rethans 9dd1d8bfc8 - Test 3 2003-12-19 15:26:47 +00:00
Derick Rethans cd46b43506 - test 2 2003-12-19 15:22:43 +00:00
Dmitry Stogov f06cbb764c Using INI section. 2003-12-19 15:09:40 +00:00
Dmitry Stogov df76eba657 New tests for memory leaks 2003-12-19 15:08:56 +00:00
Wez Furlong 0c126e1233 make these build with new win32 build system.
mcve untested (I don't have those libs/headers)
2003-12-19 15:04:31 +00:00
Derick Rethans da4a9eea92 - Test new commit info file 2003-12-19 15:02:15 +00:00
Andi Gutmans 535653ee8e - Nuke another rule (thanks to Jan for noticing this) 2003-12-19 14:39:17 +00:00
Ilia Alshanetsky 90a5af75f6 Fixed memory leak in tidy_getopt() when fetching string values.
Removed unnecessary check in tidy_diagnose().
2003-12-19 14:24:59 +00:00
Ilia Alshanetsky 9f50065edd Fixed tidy tests. 2003-12-19 14:24:04 +00:00
Dmitry Stogov 02a9316731 Bug #25547 (error_handler and array index with function call) was fixed
tests/lang/bug25547.phpt
2003-12-19 14:08:22 +00:00
Jan Lehnardt 1e1e3436f3 - restructured phpize
- added -v and --version to print out API numbers
 - discussed with Jani and Andi
2003-12-19 14:01:24 +00:00
Pierre Joye 5f16e61f05 - date==today() 2003-12-19 13:56:11 +00:00
Ilia Alshanetsky c6b04cb48a Check correction (Thanks Andi). 2003-12-19 13:49:59 +00:00
Pierre Joye fbfde0fc0e - prepare 1.3b5 2003-12-19 13:39:40 +00:00
Andi Gutmans a43d420f0a - Update date 2003-12-19 13:37:39 +00:00
Andi Gutmans e7bdc15148 - Prepare for RC2 2003-12-19 13:36:38 +00:00
Andi Gutmans f9f19c99b3 - Nuke unused code 2003-12-19 13:35:42 +00:00
Ilia Alshanetsky c9a9dee298 Fixed bug #26667 (Added safety checks to ip2long()). 2003-12-19 13:33:51 +00:00
Wez Furlong 95c48c740c don't enable by default; causes simplexml build to fail 2003-12-19 13:02:57 +00:00
Wez Furlong 8da99a195e we only use zlib.lib 2003-12-19 12:54:49 +00:00
Wez Furlong a599438a73 detect c-client headers correctly using Edin's php-win32-dev layout 2003-12-19 12:53:41 +00:00
Wez Furlong 441181e9c2 copy-n-paste error 2003-12-19 12:52:39 +00:00
Wez Furlong 6fd8bd2367 Explicitly depend on oleaut32.lib 2003-12-19 12:52:08 +00:00
Wez Furlong ee44dd3d79 "Real" cvsclean, works as the unix version does 2003-12-19 12:51:19 +00:00
Wez Furlong a3075773ee Refinements for new build system:
- Add major + minor version to .dll and .exe headers during linking
- Handle pecl build dir correctly when pecl is a sibling of php-src
- try and guess where your cygwin utils are installed (if you have them)
  so that we can detect bison, flex etc.
- other little refinements
2003-12-19 12:50:11 +00:00
Wez Furlong 7027baee22 this should be an int 2003-12-19 12:44:22 +00:00
Wez Furlong 2ad5943282 add prototype 2003-12-19 12:43:39 +00:00
Wez Furlong d408ae3abd ignore .tmp files created by tests 2003-12-19 12:42:59 +00:00
Wez Furlong 085ceca8e1 be slightly nicer when defining R_OK 2003-12-19 12:41:24 +00:00
Dmitry Stogov 7c39ab9374 Memory limit overflow was fixed 2003-12-19 11:29:27 +00:00
Dmitry Stogov 5adf502a69 Error reporting on unset string offset was added (Bug #24773 Zend/tests/bug24773.phpt) 2003-12-19 11:26:52 +00:00
Dmitry Stogov 25a811da65 Assign_op operators (+=) were fixed for elements of overloaded objects 2003-12-19 11:22:13 +00:00
Marcus Boerger e515b246cb Fix test 2003-12-19 10:23:05 +00:00
Marcus Boerger 06aad2d22d Add test for foreach visibility 2003-12-19 10:16:08 +00:00
fbebdb4685 ChangeLog update 2003-12-19 01:31:43 +00:00
Andi Gutmans 38beff5c92 - Nuke C++ comment 2003-12-18 23:30:22 +00:00
Andi Gutmans 3546d86052 - Revert patch 1.566 2003-12-18 23:28:15 +00:00
Andrey Hristov df4e15b153 test case for array_sum 2003-12-18 22:12:29 +00:00
Stig Bakken 9fd18029a9 * PHP 4 fix for the E_STRICT check 2003-12-18 22:09:17 +00:00
Ilia Alshanetsky 79848fa885 Added sqlite_fetch_column_types() function. 2003-12-18 21:28:00 +00:00
Marcus Boerger 3203957864 Add this file too 2003-12-18 20:32:39 +00:00
Marcus Boerger c69fb4133d dded qdbm handler (http://qdbm.sourceforge.net). 2003-12-18 20:25:21 +00:00
Marcus Boerger 0283b50316 Centralize ability to drop APPEND flag. This probably fixes some ini file
issues.
2003-12-18 20:14:15 +00:00
Marcus Boerger a6dd097484 Improve dba tests: check in both modes external and database locking. 2003-12-18 20:10:24 +00:00
Marcus Boerger 49efcd4f27 Fixed bug #24837 Incorrect behaviour of PPP using foreach. 2003-12-18 20:07:30 +00:00
foobar 48200cbee6 ws & cs 2003-12-18 19:59:58 +00:00
Moriyoshi Koizumi 63ae8079ea "a" 2003-12-18 19:54:28 +00:00
Greg Beaver cab4d7137b fix #449: XML_SVG and VFS fail to install properly using PEAR command
fix #455: PEAR_Downloader does not set $ui
2003-12-18 18:09:13 +00:00
Greg Beaver b1362a53ab remove retarded use of numbers (REALLY bad idea) for error handling, add check for E_STRICT and ignore all of those errors 2003-12-18 17:48:54 +00:00
Marcus Boerger b766beaac9 Update tests to see where they fail now exactly 2003-12-18 13:35:39 +00:00
Dmitry Stogov eb973da1d3 two new methods were added
$node->count($subnode_name) - returns count of subnodes with specified name
  $node->attributes() - returns array of attributes
2003-12-18 13:28:00 +00:00
Wez Furlong 33ed73cb51 make it totally safe again 2003-12-18 11:32:19 +00:00
Wez Furlong 12b0501f55 Counteract brain-death in Apache headers
(they #define strtoul to something that will break compilation,
and it successfully breaks the win32 IPv6 headers)
2003-12-18 11:26:00 +00:00
Wez Furlong 09907c6b93 Fix use of the CorRuntimeHost; once it has been stopped for a process, it cannot be restarted, so we keep it alive for the duration of the process, and instead close down the application domain in
request shutdown.
2003-12-18 11:23:21 +00:00
Wez Furlong 48a2b2a3d3 ZTS build and speling fix 2003-12-18 11:20:19 +00:00
Wez Furlong b978ec134f add news about tidy 2003-12-18 11:18:51 +00:00
Wez Furlong 8959c7bc0d make sure this is initialized to NULL as we don't check the return
value of the FormatMessage function; we could end up using a stale
pointer.
2003-12-18 11:16:16 +00:00
Marcus Boerger e649692565 Leak for b3 and find a better solution until RC1 2003-12-18 11:05:20 +00:00
Moriyoshi Koizumi b8ea4e6fd2 Fix bug #26639 (mb_convert_variables() clutters variables beyond the references) 2003-12-18 09:50:20 +00:00
Rasmus Lerdorf 749cf47ef7 Fix remaining gd build issue 2003-12-18 08:17:45 +00:00
John Coggeshall 6abf31f09c Adding the tidy.default_config and tidy.clean_output options to the .ini
files
2003-12-18 02:06:00 +00:00
893fa6c137 ChangeLog update 2003-12-18 01:32:36 +00:00
Rasmus Lerdorf 0f6cafa7e6 MFB compile fix 2003-12-17 22:47:02 +00:00
Andrey Hristov f083d42581 proto fix 2003-12-17 22:21:05 +00:00
Andrey Hristov 4b5caaa04a entry for microtime()'s new clothes 2003-12-17 22:17:15 +00:00
Marcus Boerger 73b895ca5f Add new test 2003-12-17 22:14:59 +00:00
Andi Gutmans 1e8ed7889b - Update NEWS for tomorrow morning so that I don't forget when I'm sleepy 2003-12-17 22:13:57 +00:00
Andrey Hristov a0e930cff4 Added optional parameter to microtime so now it can return float if it
the user wants. This prevents from getting string representation exploding
it and then creating a float.
2003-12-17 22:03:33 +00:00
Andi Gutmans 3573c13552 Roll RC1 of B3 2003-12-17 20:20:34 +00:00
Rob Richards d1b8a0f2a9 no longer need to cleanup temp var 2003-12-17 18:59:05 +00:00
Ilia Alshanetsky fec7c2997a Update test. 2003-12-17 17:25:00 +00:00
Zeev Suraski 24298e523f This part of the if was necessary after all.
Refix bug #22510
2003-12-17 17:06:34 +00:00
Ilia Alshanetsky 664268b037 Always user Zend memory allocation wrappers. 2003-12-17 16:34:10 +00:00
Dmitry Stogov ae4a09b239 *** empty log message *** 2003-12-17 15:08:13 +00:00
Dmitry Stogov 4fd476ee43 accessing singular subnode as array 2003-12-17 15:06:40 +00:00
Dmitry Stogov 1292337356 *** empty log message *** 2003-12-17 14:49:10 +00:00
Dmitry Stogov 3c4cfd3ec8 Dynamic function call from object's property was fixed
(See "tests/lang/bug24926.phpt" and "tests/lang/bug25652.phpt")
2003-12-17 14:45:59 +00:00
Dmitry Stogov 20f73cd267 Access to globals/autoglobals from class __destructor was fixed.
(see "tests/lang/bug24908.phpt" and "tests/classes/destructor_and_globals.phpt")
2003-12-17 14:25:12 +00:00
Marcus Boerger 490fd0eaf2 Fix a memleak: A second call to *nix version of dlerror() frees the error
string. This behavior is also adapted to the win build so that the buffer
returned by FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER) can be freed too.
2003-12-17 11:20:35 +00:00
Rob Richards 094861db8c free nodes correctly to clear node proxies 2003-12-17 10:28:29 +00:00
Marcus Boerger a841334860 Fix warning 2003-12-17 09:07:11 +00:00
Marcus Boerger fb37c4306a Fix warnings 2003-12-17 08:50:50 +00:00
00c012804e ChangeLog update 2003-12-17 01:31:48 +00:00
Derick Rethans e7fd0bdf03 - Added 'c' modifier to date() which returns the date in ISO 8601 format. 2003-12-16 22:52:48 +00:00
Andrei Zmievski 9fc9e4b2cf MFB 2003-12-16 22:20:30 +00:00
Andrei Zmievski e9fb9a7fa7 *** empty log message *** 2003-12-16 21:53:27 +00:00
Marcus Boerger b4e4d81777 Add inifile 2003-12-16 21:50:03 +00:00
Marcus Boerger 42ad99b62f Fix winbuild 2003-12-16 21:40:19 +00:00
Marcus Boerger 9e29f2dfcf Not needed here (copy'n'paste) 2003-12-16 21:02:54 +00:00
foobar bb8b077ce7 Fix some compile warnings (patch by Joe Orton) 2003-12-16 21:00:21 +00:00
Marcus Boerger 23bab357de Add missing .cvsignore 2003-12-16 20:55:41 +00:00
Marcus Boerger 5b712c890c Add a test to check split text content collecting 2003-12-16 20:50:20 +00:00
Marcus Boerger a08a37dda3 Better comment 2003-12-16 20:40:24 +00:00
foobar f0c110d4bf nuke unused code 2003-12-16 20:39:40 +00:00
Marcus Boerger 1f60a44563 Add myself 2003-12-16 20:36:46 +00:00
Marcus Boerger 4dd4bcdbb5 Add error handling for element/attribute creation/changing 2003-12-16 20:34:19 +00:00
Marcus Boerger 7ef8b1226e Add test for string conversion capabilities when used with echo/print. 2003-12-16 19:49:33 +00:00
Sara Golemon d516184885 Fail loudly, silence bogus bugs. 2003-12-16 19:41:26 +00:00
Ilia Alshanetsky 45cd627569 ZTS fix. 2003-12-16 17:23:15 +00:00
Ilia Alshanetsky bf36e351ba Removed duplicate php_libxml_(init|shutdown) they are already done by
ext/libxml.
2003-12-16 17:14:06 +00:00
Antony Dovgal c002553d7c fix bug #26133 (thanks to Harald)
rename constant and add library check to config.m4
add info lines to see if Collection & Temp Lob support enabled or not
add OCI_THREADED to use thread safe OCI mode with ZTS (should fix bug #26558)
2003-12-16 15:58:10 +00:00
Antony Dovgal c0e519e6ea fix warning, concerned to second _oci_close_server() call 2003-12-16 15:48:20 +00:00
Derick Rethans f7b3e30fe1 - Remove debug info :) 2003-12-16 15:00:24 +00:00
Derick Rethans 76ec811b35 - Added %e modifier which gets replaced by the current value of
DIRECTORY_SEPARATOR.
2003-12-16 14:53:43 +00:00
Sebastian Bergmann 9c909f41fd Sync: Export externally used functions. 2003-12-16 11:44:19 +00:00
Dmitry Stogov fca9c0c669 Incorrect test file was fixed. (Use pattern insted of absolute filename) 2003-12-16 11:19:20 +00:00
Harald Radi e0a0e9d831 fix non-zts build errors 2003-12-16 11:15:55 +00:00
Stanislav Malyshev 6d5eb809be export class initialization function 2003-12-16 10:51:51 +00:00
Stanislav Malyshev 052032f5ec export externally used functions 2003-12-16 10:51:21 +00:00
Stanislav Malyshev d22fcfbc03 export function 2003-12-16 10:50:52 +00:00
Dmitry Stogov c0fbcc0bf7 Improper test file was fixed. 2003-12-16 10:41:40 +00:00
Harald Radi 85b4b63a47 @- fixed #20006, #22674 and #24531 (harald)
@- added ZTS connection pooling support to the oci extension
@  connections will now be pooled per process and not
@  per thread anymore. the number of persistent and active
@  connections is now also shown in the phpinfo() output (harald)
2003-12-16 10:29:11 +00:00
Harald Radi b2f953768c add myself 2003-12-16 10:28:00 +00:00
Harald Radi 39e8a904e9 fix include path 2003-12-16 10:27:48 +00:00
Georg Richter 317e4b0d90 added properties
- insert_id
	- server_status
fixed bug in mysqli_execute (report func)
2003-12-16 08:18:31 +00:00
foobar 04611c1287 BFN 2003-12-16 08:06:09 +00:00
Sebastian Bergmann aaeb8f4394 Fix ZTS build. 2003-12-16 06:29:01 +00:00
Greg Beaver e353289cfc remove optional dep on xmlrpc, not really useful at this point
add required dep on pcre, as it is used without reservation in PEAR_Config, and other places
2003-12-16 02:12:55 +00:00
39d19a5b0f ChangeLog update 2003-12-16 01:31:45 +00:00
Ilia Alshanetsky 82ec523a75 Fixed Bug #26625 (pg_convert sets NULL incorrectly for character data
types).
2003-12-16 01:00:34 +00:00
Marcus Boerger 4911e83bec Check validity of seeks.
WS/CS
2003-12-15 22:47:37 +00:00
Ilia Alshanetsky b6a3f48d86 Always set panic call handler, allows us to address critical libtidy errors
from inside PHP.
When memory_limit is enabled use e* memory allocation macros to control
memory usage.
2003-12-15 21:56:55 +00:00
Ilia Alshanetsky e440d4fbea Fixed bug #26635 (fixed look up for fonts in the current directory w/ZTS) 2003-12-15 20:34:48 +00:00
Marcus Boerger d4f64f88ba Reenable __tostring() magic for print,echo,concatenation,function naming...
but not for other internal things.
# As discussed with Andi
2003-12-15 16:59:21 +00:00
Antony Dovgal 18096396d2 add new functions:
ocitelllob(); [ OCI_Lob->tell(); ] - ftell(); analogue for Lobs
ociwritelob(); [ OCI_Lob->write(); ] - fwrite(); analogue for Lobs
ocitruncatelob(); [ OCI_Lob->truncate(); ] - ftruncate(); analogue for Lobs
ocieraselob(); [ OCI_Lob->erase(); ] - erases specified part of a Lob (for BLOBs it means zero-filling, for CLOBs - space-filling)
ociflushlob(); [ OCI_Lob->flush(); ] - flushes Lob buffer (if buffering was enabled before)
ocisetbufferinglob(); [ OCI_Lob->setBuffering(); ] - turns on/off buffering for the current Lob
ocigetbufferinglob(); [ OCI_Lob->getBuffering(); ] - gets buffering' current state
ocirewindlob(); [ OCI_Lob->rewind(); ] - rewind(); analogue for Lobs
ocireadlob(); [ OCI_Lob->read(); ] - fread(); analogue for Lobs
ocieoflob(); [ OCI_Lob->eof(); ] - feof(); analogue for Lobs
ociseeklob(); [ OCI_Lob->seek(); ] - fseek(); analogue for Lobs
ocilobgetlength(); [ OCI_Lob->getLength(); ] - filesize(); analogue for Lobs

ociappendlob(); - appends data from a Lob to another Lob
ocicopylob(); - copies data from a Lob to another Lob
ociisequallob(); - compares 2 Lobs and checks if they are equal

TODO cleanup
and other minor fixes
2003-12-15 13:53:01 +00:00
foobar a1a69ae16b ws + cs (no c++ comments in c code) 2003-12-15 13:20:53 +00:00
Dmitry Stogov ceb7c536d5 Bug #24773 was fixed (Zend/tests/bug24773.phpt)
Assign_op operators (+=) were fixed for elements of overloaded objects
Memory leaks during accessing ptoperies/elements of overloaded objects were fixed
2003-12-15 07:22:09 +00:00
Dmitry Stogov 2d9281352b Memory corruptions were fixed in zend_str_tolower_copy() 2003-12-15 07:17:27 +00:00
Sara Golemon e90f85e45d Scan for : in host:port pair from right instead of left.
This will allow handling of http://[fe80::1]:443/foo.html
IPv6 Numeric addressing with port number to parse correctly.
2003-12-15 06:54:31 +00:00
Ilia Alshanetsky c3043fb2e4 Removed unused variable. 2003-12-15 03:15:50 +00:00
John Coggeshall 39e56b5ff6 Applying some minor fixes / CS changes by ilia 2003-12-15 01:43:45 +00:00
fa4726e3b3 ChangeLog update 2003-12-15 01:31:56 +00:00
foobar 1139f1b525 lalalaa.. 2003-12-15 00:43:28 +00:00
Ilia Alshanetsky 5264d34578 Update test to reflect new functionality. 2003-12-14 23:27:32 +00:00
Ilia Alshanetsky d3639b1aa7 Fixed bug #24693 (Allow session.use_trans_sid to be enabled/disabled from
inside the script).
2003-12-14 23:24:50 +00:00
Marcus Boerger 661b203e89 Change to more complicated 'c' more 2003-12-14 22:09:28 +00:00
Marcus Boerger 43d06f50e0 - Fix Bug #26304 Unexpected data loss when opening dba file
- Correct handling for flatfile handler
2003-12-14 22:08:18 +00:00
Marcus Boerger 620bf0c37f Not needed 2003-12-14 22:07:29 +00:00
Moriyoshi Koizumi 61e6cd2a1a Reorganization. 2003-12-14 20:00:15 +00:00
Moriyoshi Koizumi 5ce35b8253 Note about Apache2 SAPI change. 2003-12-14 19:02:14 +00:00
Ilia Alshanetsky bebaa5b00f Do not mangle column names. 2003-12-14 18:45:37 +00:00
Ilia Alshanetsky 097ed939a6 Fixed test. 2003-12-14 18:25:13 +00:00
Ilia Alshanetsky 1128955aa4 Fixed compiler warnings. 2003-12-14 18:23:15 +00:00
Marcus Boerger 1e2349a1f1 Fix test 2003-12-14 17:42:57 +00:00
Zeev Suraski 3a42babad6 Fix behavior of return-by-reference functions. Remove erroneous warnings,
add E_STRICT warnings in case you return something by reference that you're
not supposed to (anything that's not a variable, or a return-value of a
function that returned by reference).
2003-12-14 16:09:07 +00:00
Marcus Boerger c1e905dfc1 Removed doubled loop from wrongly applied patch 2003-12-14 15:41:50 +00:00
Zeev Suraski cb0fe5786e Cleanup 2003-12-14 12:32:35 +00:00
Zeev Suraski e94e3e1775 Some cleanup 2003-12-14 12:32:02 +00:00
Zeev Suraski 3788ddb383 Fix from Michael Sisolak (destructors weren't always properly called) 2003-12-14 09:36:23 +00:00
John Coggeshall 95cb88e5d0 Modified package.xml to reflect 2.0's beta status 2003-12-14 06:04:51 +00:00
John Coggeshall 3ab2935250 Tons of changes for Tidy 2.0 -- output buffering, multiple documents,
dual nature ($a->parse_file() and $a = tidy_parse_file()), etc.
2003-12-14 06:02:33 +00:00
4c8eb214fd ChangeLog update 2003-12-14 01:31:56 +00:00
Sara Golemon 822ea95785 Export STREAM_MKDIR_RECURSIVE constant 2003-12-13 23:13:51 +00:00
Moriyoshi Koizumi 033bc12d86 Fixes for POSIX compliancy. 2003-12-13 19:28:30 +00:00
Derick Rethans 112f424f70 - Fixed bug #26615 (patch by runekl at opoint dot com) 2003-12-13 18:55:53 +00:00
Sebastian Bergmann cd73a63655 Add shortcut for 'nmake /I clean'. 2003-12-13 18:50:38 +00:00
Sara Golemon a67bf6ecc9 Fix Win32 Build. mkdir/rmdir are macros 2003-12-13 18:48:39 +00:00
Georg Richter ec5b38fae9 minor fixes for embedded 2003-12-13 16:08:13 +00:00
Hartmut Holzgraefe 47a32a57e8 test case for BC bug 26614 2003-12-13 15:42:39 +00:00
Marcus Boerger 70ca95aa0e Revert: need a PHP4.3 solution.
# This solution cannot be backported to PHP 4.3 -- damn!
2003-12-13 15:00:04 +00:00
Marcus Boerger d1a6deb785 - Fixed bug #26304 (Unexpected data loss when opening dba file). 2003-12-13 14:50:06 +00:00
Marcus Boerger 9a98ff3ab5 Add standard file info functions to DirectoryIterator 2003-12-13 14:40:56 +00:00
Marcus Boerger afc15ffde9 Show classname 2003-12-13 14:40:06 +00:00
Marcus Boerger 04d0d99b11 ZTS fixes 2003-12-13 13:44:56 +00:00
Andrey Hristov 32f41d172d add an example for illegal string offset. the example is stolen from Marcus
and Markus should be now satisfied :). Currently this code segfaults with
PHP_4_3.
2003-12-13 12:33:14 +00:00
Georg Richter ec7ddff5c7 removed old profiler stuff for embedded server 2003-12-13 10:15:45 +00:00
f076fea779 ChangeLog update 2003-12-13 04:08:11 +00:00
Sara Golemon c56647833b Route mkdir()/rmdir() via wrapper ops.
Move current rmdir()/rmdir() code to plain_wrappers.c
Implement mkdir()/rmdir() in ftp:// wrapper
2003-12-13 04:07:18 +00:00
Georg Richter bef6368dee removed profiler stuff 2003-12-13 00:46:48 +00:00
Georg Richter 8b3b1c192b removed profiler
added mysqli_report
	- better support for errors
	- support for no_index_used and bad_index_used
typos and prototype fixes
2003-12-13 00:28:21 +00:00
Sara Golemon b1f8236b63 Route rename() via wrapper ops.
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
2003-12-12 23:06:42 +00:00
Andrey Hristov 23afd9b166 added entry about mysqli_fetch functions 2003-12-12 20:50:12 +00:00
Ilia Alshanetsky 1628eb1074 Fixed bug #26604 (Apache2 SAPIs implicitly disable Keep-Alive). (Ilia) 2003-12-12 17:19:11 +00:00
Uwe Schindler 844d63081c remove revision tag from module version entry 2003-12-12 16:21:28 +00:00
Rob Richards 6dfd1c190c use error handling from libxml ext 2003-12-12 13:54:52 +00:00
Rob Richards 4dd0dbfd79 consolidate error handling 2003-12-12 13:54:06 +00:00
Marcus Boerger a251361849 Free is needed in non ZTS too 2003-12-12 11:14:44 +00:00
Marcus Boerger 8fb5ea3081 Fix memleaks in ZTS mode 2003-12-12 10:50:23 +00:00
Marcus Boerger f96427a044 Actually register the class 2003-12-12 08:45:51 +00:00
Marcus Boerger a54c7dcb20 Fix memleaks 2003-12-12 08:25:58 +00:00
Marcus Boerger 2f9be5d518 Do not use before they are initialized. 2003-12-12 08:25:22 +00:00
Marcus Boerger 2c7c86bc60 Add some comments here 2003-12-12 07:59:46 +00:00
Marcus Boerger fc5c73897d BFN 2003-12-12 06:34:06 +00:00
foobar c3ea5b122e Fixed bug #26461 (-lssl missing from LIBS) 2003-12-12 05:19:30 +00:00
fb7f1aa71e ChangeLog update 2003-12-12 01:31:49 +00:00
Ilia Alshanetsky f341b2f381 Fixed extra byte allocation in constant creation code. 2003-12-12 00:23:15 +00:00
Ilia Alshanetsky 7f9d1a1f6b Do not copy extra byte. 2003-12-12 00:16:58 +00:00
Greg Beaver af2f43c75e update notes 2003-12-12 00:02:32 +00:00
Greg Beaver ad747ba2e3 MFB 2003-12-11 23:57:15 +00:00
Ilia Alshanetsky a643675b43 Fixed extra byte allocation for STD* constants and replace magic numbers
with sizeof().
2003-12-11 23:51:24 +00:00
Ilia Alshanetsky e2012609d6 Fixed extra byte allocation for TRUE/FALSE/ZEND_THREAD_SAFE/NULL constants. 2003-12-11 23:50:13 +00:00
Greg Beaver 0134c5c3ab add missing not relation 2003-12-11 23:30:52 +00:00
Andrei Zmievski f25486922f MFB 2003-12-11 19:37:03 +00:00
Marcus Boerger 39544e1c7f Bugfix: #26591 [NEW]: "__autoload threw an exception" during an uncaught
Exception
2003-12-11 18:18:52 +00:00
Greg Beaver 2272c11d80 fix #391, PHP 5 reference fix 2003-12-11 16:07:01 +00:00
Greg Beaver 117698b4c6 add failure test for non-existing file 2003-12-11 15:59:08 +00:00
Greg Beaver 541ebbeaeb new unit test for PEAR_Packager 2003-12-11 15:56:08 +00:00
Dmitry Stogov 70c9d3332a Dir seaparator "\" was removed. 2003-12-11 13:36:42 +00:00
Edin Kadribasic c7ad4d1e4d MFB: Use standard header locations 2003-12-11 11:19:15 +00:00
Andi Gutmans 5ba810ee46 - Refix bug #24773 2003-12-11 10:21:16 +00:00
Marcus Boerger 904373a830 Handle getter failure and allow to bypass thrown exceptions. 2003-12-11 09:56:06 +00:00
Marcus Boerger b8afd8343a read_dimension() handler might return 0, handle this. 2003-12-11 09:52:33 +00:00
Greg Beaver ab3afbfdf5 since nobody has taken any action, fix Console_Getopt to be BC, and update the PEAR core to take advantage of the new way. Use 1.2 to avoid any problems with versioning.
The core passes all unit tests with these changes, so they should work.

Andrei: feel free to change anything you don't like, this is just a make it work fix.
2003-12-11 05:54:35 +00:00
Greg Beaver 3cd16913a8 update test cases for new error messages 2003-12-11 05:49:37 +00:00
Greg Beaver fa07b7a09c new test case for directory tree deletion on uninstall 2003-12-11 05:30:57 +00:00
a36a6a4b6e ChangeLog update 2003-12-11 01:36:11 +00:00
Christian Stocker 87bd1f4d02 fix crashes when you call php:functionString() with a
non-string handler (by adam)
2003-12-10 22:32:36 +00:00
Ilia Alshanetsky 56f046a67a Fixed ZTS build. 2003-12-10 21:23:35 +00:00
Derick Rethans d78e453c36 - Test before commit - test before commit 2003-12-10 21:02:33 +00:00
Moriyoshi Koizumi cb33fc2c1c oops. 2003-12-10 19:02:34 +00:00
Moriyoshi Koizumi 1338978d3b NFN 2003-12-10 19:01:52 +00:00
Ilia Alshanetsky 9165dc414e The changes() method should be that of the database object not that of
a result.
Added a test case for this bug.
2003-12-10 18:56:05 +00:00
Derick Rethans 009e8498c3 - Added support for MacRoman encoding to htmlentities(). (Marcus Bointon) 2003-12-10 18:17:23 +00:00
Moriyoshi Koizumi c77302fd04 Eliminate compiler warnings. 2003-12-10 17:38:45 +00:00
Moriyoshi Koizumi 698ab70ae4 Remove leftover 2003-12-10 17:09:14 +00:00
foobar 6f4cc5c1c9 Fixed bug #26565 (strtotime("this month") resolving to the wrong month) 2003-12-10 14:08:06 +00:00
Marcus Boerger 310d6c567a Do not double copy the string 2003-12-10 10:24:35 +00:00
Marcus Boerger 47012601af Make these inline 2003-12-10 10:21:24 +00:00
Marcus Boerger c212ddd5ec Fix a (single) leak
# -> iterators cannot keep current data as zval**, only zval * is possible.
2003-12-10 10:19:43 +00:00
Georg Richter 1be7176c7b freeing result and stmt properties in MSHUTDOWN 2003-12-10 10:06:07 +00:00
Moriyoshi Koizumi b2cd08f33d Fix bug #26574 (basename() doesn't work properly with multibyte characters) 2003-12-10 07:15:28 +00:00
Moriyoshi Koizumi 35c3a7f525 Expose the macro globally 2003-12-10 06:08:39 +00:00
Moriyoshi Koizumi c4c586a652 Fix typo. 2003-12-10 06:04:15 +00:00
1ecf87238f ChangeLog update 2003-12-10 01:32:01 +00:00
Ilia Alshanetsky 06b528aa54 Fixed a crash in SQLite when fetching data using sqlite_fetch_object() in
a loop.
2003-12-10 01:02:20 +00:00
Wez Furlong bfdc1fcac0 consistency with unix build.... 2003-12-10 00:47:02 +00:00
foobar a08c1e4dce - Brought ext/bcmath to the new millennium
# consistency..
2003-12-09 23:59:33 +00:00
Greg Beaver 398ab9756a remove references to global variables in validatePackageInfo, remove extraneous summary that is never reached in the switch 2003-12-09 23:43:58 +00:00
Rob Richards 4756b5e05f fix possible mem leak when element has children 2003-12-09 21:56:42 +00:00
Rob Richards 1f33239c91 buffer error messages until newline is hit 2003-12-09 21:55:02 +00:00
Pierre Joye 85ce95847f - MFB (fix pecl install) 2003-12-09 20:54:58 +00:00
foobar e4c1ae0e67 Fixed bug #26564 (ncurses5 has headers in PREFIX/include/ncurses) 2003-12-09 20:33:08 +00:00
Wez Furlong a35a82ddcd allow assignment to $node->nodeValue to work for more
objects and in situations where the rvalue is not a string.
(Fixes a segfault in that case)
2003-12-09 20:19:44 +00:00
Rob Richards 49494dee00 fix issues when passing in mulitple arguments 2003-12-09 20:12:39 +00:00
foobar f02936c683 Fix the configure output.. 2003-12-09 20:10:22 +00:00
foobar 8b73ca2c60 Removed unnecessary outputs 2003-12-09 20:04:17 +00:00
Marcus Boerger d4a55f1ace Add missing dtor call. 2003-12-09 19:03:38 +00:00
Marcus Boerger 5b7d1623ae - Initialize for refcounting.
- Simplify.
2003-12-09 19:02:34 +00:00
foobar 6291a7f995 - Update credits. 2003-12-09 16:33:05 +00:00
foobar 218a3a3f16 correct credits 2003-12-09 16:32:14 +00:00
foobar 63df219b31 - Update header + added missing Id tags. 2003-12-09 16:29:54 +00:00
foobar abea022255 Correct header.. 2003-12-09 16:24:03 +00:00
Andi Gutmans d0d7badfb9 - Fix overallocation (thanks to Ilia) 2003-12-09 08:56:04 +00:00
Ilia Alshanetsky 1393ad9a35 Kill unused variables. 2003-12-09 01:54:56 +00:00
fd6270d515 ChangeLog update 2003-12-09 01:34:47 +00:00
Hartmut Holzgraefe 0141080ff5 reduce/reduce conflicts resolved 2003-12-08 22:22:57 +00:00
Frank M. Kromann 34a596b051 Adding config file for win32. This allows to build with c-client 2002e 2003-12-08 22:15:20 +00:00
Frank M. Kromann 819b2e56f9 Exporting symbols used in the imap extension 2003-12-08 22:10:42 +00:00
foobar 3c0eb788fa ws 2003-12-08 18:57:09 +00:00
Alex Leigh b3db0ed516 Removed extraneous php4_close() function and Windows compile checks. 2003-12-08 18:18:03 +00:00
Rob Richards 3084e72ef1 fix getElementsByTagname iteration 2003-12-08 17:08:10 +00:00
Alex Leigh 862a7e589d New SAPI module for Continuity HTTP server (ashpool.com) 2003-12-08 16:54:18 +00:00
Derick Rethans 03f8baa87e - Make it compile again 2003-12-08 13:26:03 +00:00
Rob Richards c821c5b189 export libxml2 and iconv symbols
extensions no longer link against either of those
2003-12-08 12:56:47 +00:00
foobar 8fa4e39eda typofix 2003-12-08 10:12:42 +00:00
Marcus Boerger f3a3990ca8 Implement CahingIterator and CachingRecursiveIterator as C-code.
#Script examples/directorytree.php has a few memleaks though but besides
#that all works fine.
2003-12-08 08:39:18 +00:00
Marcus Boerger 1c13018702 Use better name for the constant 2003-12-08 08:31:08 +00:00
Marcus Boerger 3aa3f744f1 Update examples to new parameter handling 2003-12-08 08:28:18 +00:00
Sergey Kartashoff 1a898490ae - A bug in Udm_Hash32 function was fixed. 2003-12-08 08:12:34 +00:00
Moriyoshi Koizumi ed2fd39d0a Avoid using non-portable test syntax. This was causing problems on
Solaris. (Reported by Uwe Schindler. Thanks!)
2003-12-08 07:18:20 +00:00
Moriyoshi Koizumi cbddbca787 NULL pointers can be passed to free_fcn. This is the correct behaviour. 2003-12-08 07:15:32 +00:00
9ad6aaea63 ChangeLog update 2003-12-08 01:30:07 +00:00
Moriyoshi Koizumi dcbc570649 Fix iconv stream filter to properly handle multibyte characters that
span at the alignment of a hunk.
2003-12-08 00:38:00 +00:00
Moriyoshi Koizumi b6c0003ffd Fix a convert filters bug that occurs when multiple buckets are coming in. 2003-12-08 00:22:22 +00:00
Andrey Hristov 79ad7aeb6d entries for get_declared_interfaces/get_declared_classes 2003-12-07 22:24:22 +00:00
Stanislav Malyshev dc6a849a2f Apply Andrey Hristov's patch adding get_declared_interfaces() 2003-12-07 18:54:31 +00:00
Ilia Alshanetsky 669b421c11 Removed unused variable. 2003-12-07 18:39:09 +00:00
foobar 36b255fa66 ws 2003-12-07 18:19:30 +00:00
foobar fddacedfa0 BFN 2003-12-07 16:59:32 +00:00
foobar bade2e7df6 Remove unnecessary #include 2003-12-07 16:56:51 +00:00
foobar ea77adf1e5 bfn reorder 2003-12-07 16:54:09 +00:00
foobar 67070c47bd The correct (tm) way. 2003-12-07 16:16:02 +00:00
Marcus Boerger 923d0bcfb4 revert here too 2003-12-07 15:59:13 +00:00
foobar 2e8b1c01fe revert, not needed 2003-12-07 15:41:50 +00:00
Marcus Boerger b88ad57b73 Revert this part, too 2003-12-07 15:39:56 +00:00
foobar b03cb681f6 Fix logic 2003-12-07 15:33:19 +00:00
Marcus Boerger d57004274b Revert, not needed here 2003-12-07 15:26:09 +00:00
Marcus Boerger 1765271499 Use a single bit field for the flags here 2003-12-07 15:03:11 +00:00
Derick Rethans 8eb22d7b8d - Add comment, I put this ina week ago and it already confused me :) 2003-12-07 14:47:35 +00:00
Derick Rethans 71f9227cc5 - Fixed bug #26548 (Malformed HTTP dates in headers). 2003-12-07 14:29:43 +00:00
Marcus Boerger cca2a74462 Update examples 2003-12-07 13:21:47 +00:00
Stanislav Malyshev facea7fb70 fix potential buffer overrun 2003-12-07 12:59:54 +00:00
Wez Furlong a98892900b allow $node['not_yet_existing_attribute'] = $value; to work 2003-12-07 11:32:40 +00:00
Rob Richards 44f59d6d7f fix warning for shared debug
fix test bug26384 - WS issue
2003-12-07 11:11:47 +00:00
Wez Furlong 72f73b7785 tweak build so that it mirrors the source filesystem layout under the build dir. This allows GD extension to build. 2003-12-07 02:58:56 +00:00
Edin Kadribasic 96a745f2e2 First attemt at win32 build with the new build system.
#No workie yet, the build sys needs tweaking
2003-12-07 01:59:28 +00:00
Marcus Boerger 1ee7d70b9e Enable shared build 2003-12-07 01:58:54 +00:00
e7bad9e272 ChangeLog update 2003-12-07 01:32:57 +00:00
Edin Kadribasic a256705044 Added filepro to the new win32 build. Works both as shared
and built-in extension on windows.
2003-12-07 00:59:35 +00:00
Edin Kadribasic 10b53557db Fixed win32 build (no such include on windows). 2003-12-07 00:59:16 +00:00
Edin Kadribasic ee47ad0c2a Added fdf to the new win32 build. Works both as shared
and built-in extension on windows.
2003-12-07 00:49:25 +00:00
Greg Beaver 06ef18bed9 fix #279 2003-12-07 00:29:46 +00:00
Edin Kadribasic 6a847a797e Added dbx to the new win32 build. Works both as shared
and built-in extension on windows.
2003-12-07 00:23:18 +00:00
Marcus Boerger 9c8678eb7b Fix enabling shared builds. 2003-12-07 00:21:47 +00:00
Greg Beaver 3148e2e9be fix #205, wider column names for pear list 2003-12-07 00:10:40 +00:00
Edin Kadribasic fbe2b4bbc3 Added dbase to the new win32 build. Works both as shared
and built-in extension on windows.
2003-12-07 00:09:48 +00:00
Greg Beaver bd766fc7e5 fix #167 2003-12-07 00:02:34 +00:00
Greg Beaver 8161b2f742 MFB 2003-12-06 23:45:36 +00:00
Edin Kadribasic a05a42c8ea Added dba to the new win32 build. Works both as shared
and built-in extension on windows.
2003-12-06 23:39:07 +00:00
Greg Beaver cfb05861b9 CS 2003-12-06 23:37:30 +00:00
Greg Beaver 59b98030bc (try again)
fix 2 bugs

- optional dependencies not supported
- incorrect index determination
2003-12-06 23:32:30 +00:00
Greg Beaver 8425c2a16b fix 3 bugs
- optional dependencies not supported
- PHP 5 references (#362)
- incorrect index determination
2003-12-06 23:07:52 +00:00
Greg Beaver 5e0b0b147b finished unit test for _processDependency failure test 2003-12-06 22:33:53 +00:00
Greg Beaver 68c7403a13 stupid me - this was a circular reference, removing 2003-12-06 22:17:22 +00:00
Greg Beaver d9f4fd0757 slightly clearer error messages 2003-12-06 22:14:11 +00:00
Greg Beaver fc3cb93064 fix arg parsing to work with Console_Getopt 2.0 2003-12-06 22:07:49 +00:00
Greg Beaver 9e361c0278 remove unnecessary experimental code 2003-12-06 21:52:20 +00:00
Greg Beaver 107d75d86b getting ready for both packages to be released 2003-12-06 21:47:53 +00:00
Marcus Boerger 4b9a4509c4 MFB: PHP_PQ_ERROR() change 2003-12-06 21:36:21 +00:00
Greg Beaver 8cd5e9ec6e fix for Console_GetOpt 2.0 (what was 1.1 - re-release being negotiated) 2003-12-06 21:35:02 +00:00
Marcus Boerger 37bcfda978 #args, reinsert skipif for extension check 2003-12-06 20:41:07 +00:00
Marcus Boerger 4a66bd9394 Do not dynamically load the extension in skipif 2003-12-06 20:35:41 +00:00
Marcus Boerger 7046afb542 Implement SeekableIterator and LimitIterator as C code. 2003-12-06 19:21:02 +00:00
Marcus Boerger 8e188f9d03 Update examples 2003-12-06 19:03:17 +00:00
Marcus Boerger 8a8deee8a0 This test is against interfaces not abstract classes. 2003-12-06 19:02:12 +00:00
Marcus Boerger 30af3ba523 Show the exception message again after __toString() magic has been dropped. 2003-12-06 18:12:26 +00:00
Wez Furlong 59823eca66 com_create_guid() returns... 2003-12-06 17:31:40 +00:00
Andrey Hristov df137ad240 ups, i forgot this entry 2003-12-06 16:49:13 +00:00
Andrey Hristov 1fa7458687 A small start for so called "not-yet-written faq" about small changes that
may make someone's life a nightmare for some time. It will be good when a
change is made a line in this file to be written and then it will be easier
for the doc team to write comprehensive and pretty FAQ for the end users.
2003-12-06 16:46:29 +00:00
foobar 6743861b0c There is no maintainer atm. 2003-12-06 16:27:44 +00:00
Wez Furlong 3be2b8d7e4 Add dist target to makefile that will generate the file layout for
a win32 binary distro under build_dir/_dist_.
This isn't finalized yet, and you need Edin's distro template.
2003-12-06 16:14:03 +00:00
Wez Furlong bf033aa5a8 Fix ftp build when openssl is built as a shared extension. 2003-12-06 16:12:10 +00:00
Wez Furlong fcdda2e8f8 Fix a problem resolving the php.ini path under win32 terminal services environment.
Remove config-file-path option from configure under win32; it is not used except to display what might have been chosen, so lets default to the getenv() thingy.
2003-12-06 16:04:34 +00:00
Wez Furlong 45eb5a8d03 use quotes if the user specifies a path, but don't otherwise (since we don't want the getenv calls quoted). 2003-12-06 15:16:17 +00:00
Moriyoshi Koizumi a682e0a5c6 Add missing iconv_close() call 2003-12-06 11:10:13 +00:00
foobar c28a7bd7da fix proto 2003-12-06 10:48:56 +00:00
Wez Furlong 6b679cd6ef fix ipv6 stuff under vc6 2003-12-06 10:32:35 +00:00
Wez Furlong 54dd8d2bbf bah 2003-12-06 10:31:02 +00:00
Greg Beaver bb861773a9 forgot to have it delete the directory it creates 2003-12-06 06:56:55 +00:00
Greg Beaver 61bd893e0d update phpdoc comment 2003-12-06 06:08:56 +00:00
Greg Beaver 33aa36fb8d add todo for known issue that isn't yet critical but will be 2003-12-06 06:06:50 +00:00
Greg Beaver c46abac9bd new test case - test invalid download conditions
TODO:
- tests for _processDependency
2003-12-06 06:05:04 +00:00
Greg Beaver 29df86f2d1 improve error message, it was both terrible grammar and unclear. 2003-12-06 05:59:25 +00:00
Greg Beaver d1770cc57f fix error message - was printing an empty preferred state 2003-12-06 05:35:52 +00:00
Greg Beaver 49a2893adb simple fix for core bug #362 - raiseError() doesn't return a reference, why should throwError()? 2003-12-06 02:00:33 +00:00
6ae1f19387 ChangeLog update 2003-12-06 01:31:45 +00:00
Wez Furlong 62d3cccfc9 make it build under win32 2003-12-06 00:09:55 +00:00
Wez Furlong dbb152b96a Detect and enable IPv6 support under win32.
The ws2tcpip.h header links to IPv6 functions dynamically
and the generated binary will run on win98 and later.
2003-12-06 00:00:31 +00:00
Wez Furlong 190d8e85b5 2003, not 2002. 2003-12-05 23:13:57 +00:00
Wez Furlong 43b0ae0a04 openssl support for the new build 2003-12-05 23:13:30 +00:00
Andrei Zmievski a3d2fd336c MFB 2003-12-05 22:02:48 +00:00
Rob Richards 2f9e039c53 Fix the xsl warnings 2003-12-05 21:24:48 +00:00
Wez Furlong 08218f5082 Tweak xml related build.
Still some warnings for ext/xsl, but I'll leave that to someone else for now.
2003-12-05 21:16:47 +00:00
Wez Furlong 7a9cf22ed1 Probable fix for #26534 2003-12-05 20:25:14 +00:00
Wez Furlong 952e0db997 Use Rob's static libxml+libiconv library; new build no longer
requires libxml2.dll or iconv.dll at runtime.
Since we have iconv built in, enable iconv extension by
default too.
2003-12-05 20:17:47 +00:00
Frank M. Kromann 29e47dc7e4 Move the echo off statement to the top of the file. This removes commens from the final def file 2003-12-05 19:51:52 +00:00
Rob Richards 44bd3bf47a libxml2 and iconv export file 2003-12-05 19:26:05 +00:00
Moriyoshi Koizumi 3980fd822e A trivial implement for dos-like platforms 2003-12-05 18:39:04 +00:00
Moriyoshi Koizumi fe20585443 Add regression test for iconv stream filters 2003-12-05 18:35:17 +00:00
Wez Furlong c191a40ba4 dos line endings 2003-12-05 17:46:04 +00:00
Wez Furlong 9ec9ffece8 convert to DOS line endings to solve win98 issues 2003-12-05 17:45:15 +00:00
Wez Furlong a6ed27afe6 rewrite 2003-12-05 17:44:37 +00:00
Andi Gutmans f4d6a5c7cf - Remove two unneeded convert_to_string() (found by Marcus)
- Change illegal use of string offset to E_ERROR
2003-12-05 16:28:54 +00:00
Christian Stocker a016546e4c fix test 2003-12-05 14:52:51 +00:00
Wez Furlong c29b17b81e fix unix build.... 2003-12-05 13:48:40 +00:00
Wez Furlong c92a2219ef Add optional array argument to proc_open() to specify additional
options for the child process.
The first option is "suppress_errors" which will disable any
dialog boxes that arise from missing DLL's and suppress the
GPF dialog.
Use this new feature in the test suite, so that crashing tests don't block the test run; useful for un-attended execution.
2003-12-05 13:45:00 +00:00
Wez Furlong 98f1021dd8 Make these tests work under win32 2003-12-05 13:42:04 +00:00
Wez Furlong ab0029cabf Be smarter about which systems should register unix transports.
Fix skip conditions in these network tests
2003-12-05 13:41:02 +00:00
Wez Furlong c976456071 fix uninitialized variable 2003-12-05 13:39:24 +00:00
Sebastian Bergmann ef9dfc00ff Fix for the problem I posted to internals@. 2003-12-05 11:32:24 +00:00
Moriyoshi Koizumi 657b7e08d0 xmlCtxtSetOptions() isn't available in the versions up to 2.6.x
# Thanks Rob
2003-12-05 10:53:59 +00:00
Moriyoshi Koizumi 50dad38cd4 Fix libexpat build.
Improve replaceEntities patch.
2003-12-05 10:11:06 +00:00
Moriyoshi Koizumi f9470dafe0 Add a missing marker 2003-12-05 09:35:21 +00:00
Marcus Boerger 5ee54820de Update test 2003-12-05 08:07:14 +00:00
Frank M. Kromann 075ee21165 Include exif in the new win32 build system 2003-12-05 07:17:11 +00:00
Sebastian Bergmann dea716a4e1 Support for new Win32 build bliss. 2003-12-05 06:09:29 +00:00
Wez Furlong 1982ae6246 fix zts build 2003-12-05 03:14:54 +00:00
Wez Furlong 24e54d43e6 check for .net headers 2003-12-05 02:58:31 +00:00
Wez Furlong 6201a56070 use /Ox flag for release build (all optimizations on).
If no php_build dir is specified, then look for either of the two
"standard" things in reasonable locations.
Allow CHECK_LIB to search for the "same" library using a ; separated
list of alternatives.
Tweak nsapi config and remove redundant or unused flags.
Add ZTS checks for both isapi and nsapi configs.
2003-12-05 02:41:00 +00:00
Edin Kadribasic b842917d84 Made test work on windows 2003-12-05 02:12:21 +00:00
Ilia Alshanetsky aa1b20614b Fixed crash demonstrated with ext/dom/tests/dom003.phpt test case. 2003-12-05 01:44:45 +00:00
036e8dea10 ChangeLog update 2003-12-05 01:31:47 +00:00
Ilia Alshanetsky ce0b3dec4c Fixed bug #26528 (HTML entities are not being decoded by
xml_parse()/xml_parse_into_struct()).
2003-12-05 01:16:16 +00:00
Edin Kadribasic 32eb4f78c2 Get rid of PHPAPI usage.
Enable shared build in the new php5 build system
Check for the correct header.
2003-12-05 01:03:35 +00:00
Uwe Schindler 6abf2179c1 First version... Wez: can you check this... 2003-12-05 00:00:31 +00:00
Moriyoshi Koizumi 4f14ee67fb Type-punning is evil. 2003-12-04 23:46:53 +00:00
Moriyoshi Koizumi b4f1f652b2 NFN 2003-12-04 23:32:22 +00:00
Moriyoshi Koizumi 6fc73dda11 Add iconv stream filter.
# a quick synopsis:
#
# <?php
#     stream_filter_append(STDIN, 'convert.iconv.UTF-8/ISO-8859-15');
#
#     fpassthru(STDIN);
# ?>
#
2003-12-04 23:31:31 +00:00
Moriyoshi Koizumi 7d3e351383 This part is accidentially left on the previous commit. 2003-12-04 22:53:16 +00:00
Moriyoshi Koizumi 0d2c100a4f It'd be a bad idea to make subpackages dependent on the php build system. 2003-12-04 22:49:46 +00:00
Wez Furlong 40a573445c Work around a bug in putenv() in the VS.Net C run time library (MSVCRT71) where it will double free a string. 2003-12-04 22:38:22 +00:00
Marcus Boerger 5ae70cc44a Update __toString() issues 2003-12-04 20:56:32 +00:00
Marcus Boerger dc6f211967 __toString() must be called explicitly now 2003-12-04 20:24:06 +00:00
Marcus Boerger d79ca1c853 Update 2003-12-04 20:01:46 +00:00
Marcus Boerger aaa81ea211 Add package file 2003-12-04 19:53:33 +00:00
Marcus Boerger 707681218b No longer true 2003-12-04 19:47:10 +00:00
Marcus Boerger f679b5c935 Update documentation 2003-12-04 19:39:46 +00:00
Marcus Boerger 2216eb4511 Update 2003-12-04 17:45:36 +00:00
Moriyoshi Koizumi 4a38020ddd Revert crap. 2003-12-04 17:38:21 +00:00
Marcus Boerger 320a87e4f9 No longer needed 2003-12-04 17:33:08 +00:00
Wez Furlong a93d20b443 Avoid killing files that we didn't generate when making clean. 2003-12-04 17:28:08 +00:00
Frank M. Kromann d0624948ff fix remaining ext/ 2003-12-04 17:03:20 +00:00
Wez Furlong 9a1ddeae65 Fix Andi's GetLongPathName code so that virtual_file_ex doesn't
fail if the file does not exist.
2003-12-04 17:02:09 +00:00
foobar e13e315a10 - Only add 'install-modules' into install targets when there are such
modules to install.
2003-12-04 15:57:55 +00:00
Wez Furlong 9555db802d Make this build using new build system 2003-12-04 15:32:31 +00:00
foobar 2438b43eff - remove non-existing files 2003-12-04 15:14:03 +00:00
foobar e095ae8629 - remove non-existing files 2003-12-04 15:02:48 +00:00
foobar 518f6a849b - Update after moving extensions to PECL 2003-12-04 15:01:10 +00:00
foobar f1bf598edb - remove non-existing modules 2003-12-04 14:53:27 +00:00
foobar bdfb58f6c6 - Fixed "make install" when INSTALL_IT is empty, like when configured
with "./configure --disable-cgi" (CLI has it's own build target)
2003-12-04 13:41:48 +00:00
Wez Furlong a5cf836260 Fix libxml to use static lib if found.
Disable apache and isapi by default.
Add some smarts so that we can really build extensions and SAPI found in php-src/pecl and/or php-src/../pecl.
Only include a logo in the resources if we are building an .exe.
2003-12-04 13:38:47 +00:00
Moriyoshi Koizumi bcbc036ac1 Raise error in case dereference is performed on a scalar value. 2003-12-04 13:38:30 +00:00
Rob Richards c09003a910 test for dom extension 2003-12-04 13:32:22 +00:00
Rob Richards 2fb978a773 correct test 2003-12-04 12:46:20 +00:00
Rob Richards d5e9e09515 Add xsl config for new win build 2003-12-04 12:37:04 +00:00
Rob Richards c561f2f722 return status of have so extra libs return correct status 2003-12-04 12:34:29 +00:00
foobar c389f67e91 - Moved ext/crack and ext/mcal to PECL. 2003-12-04 12:05:57 +00:00
Uwe Schindler ae4e11d861 MFB 2003-12-04 09:00:24 +00:00
foobar a07650e78d stylepolizei 2003-12-04 06:40:08 +00:00
Wez Furlong 39305a50d6 allow these extensions to build with new system 2003-12-04 03:46:12 +00:00
Wez Furlong 213f528aad Fixup bz2 extension so it builds as shared and static under win32 2003-12-04 02:58:33 +00:00
Wez Furlong 1635a2bdf5 put PHPDLL objects into BUILD_DIR/php so that it is a little
easier to see the main outputs (sapi and extensions)
2003-12-04 02:24:23 +00:00
Wez Furlong 7e73ae1b5e fix a couple of buglets and set version number on DLLs to whatever the PHP major version is. 2003-12-04 02:12:36 +00:00
Greg Beaver 5252f3faa9 merge downloader code into HEAD - it works
fix bug found in uninstall
2003-12-04 02:11:40 +00:00
Greg Beaver d2ad2841bd unit test for new code - proves it works 2003-12-04 02:01:46 +00:00
Greg Beaver 07a0281d00 add helper methods needed - now it is 100% unit tested 2003-12-04 02:00:39 +00:00
Wez Furlong 90fe3fbf7f be safe... 2003-12-04 01:59:46 +00:00
Wez Furlong 35117fdf1b default install path is c:/php5 for PHP 5 2003-12-04 01:40:59 +00:00
Wez Furlong fb84259217 Search for pecl extensions under php-src/pecl as a convenience for
pecl developers.
Add automatic version info resource generation for SAPI and extension
modules, based on PHP version numbers and info found in the CREDITS file.
As a nice side effect, this lets us add a logo icon to .exe files.
2003-12-04 01:37:52 +00:00
Greg Beaver e8468911ed fixed minor bug 2003-12-04 01:35:45 +00:00
Greg Beaver ad9629d2bf finished unit test 2003-12-04 01:35:27 +00:00
ab5066008f ChangeLog update 2003-12-04 01:31:59 +00:00
Greg Beaver 1558f748e3 fix bugs found in unit-testing, one BC issue also 2003-12-04 01:22:50 +00:00
Greg Beaver 2ab2d8263c fix notice 2003-12-04 01:22:12 +00:00
Greg Beaver dba21314ce another segment working 2003-12-04 01:22:00 +00:00
Frank M. Kromann 27e3d27565 add error message when libs and headers are missing 2003-12-04 01:04:36 +00:00
Ilia Alshanetsky 9947a3e7ce Fixed typo (thanks Frank) 2003-12-04 00:14:39 +00:00
Frank M. Kromann ca6502866b copy and paste error 2003-12-03 23:48:02 +00:00
Greg Beaver 172bf25830 another test case, small fix for XML_RPC caching borking working tests 2003-12-03 23:46:10 +00:00
Greg Beaver ed3167eada another tgz for test case comparison 2003-12-03 23:36:00 +00:00
Greg Beaver 604dcdd256 add part of a test case 2003-12-03 23:24:47 +00:00
Ilia Alshanetsky 54a73a6c06 Test case for bug #24773. 2003-12-03 23:00:30 +00:00
Greg Beaver 577cf36f91 remove unnecessary notice generator in certain cases 2003-12-03 23:00:05 +00:00
Wez Furlong 4ffdb4253a This should solve a few problems with static vs. shared builds for extensions (such as mssql) that require certain CFLAGS to be defined, but not pull in other flags that would affect DLL linkage.
Also fix the iconv file; MSVC doesn't seem to like the #include SYMBOL syntax.
2003-12-03 22:59:48 +00:00
Greg Beaver 4e5e628637 new unit test for downloader - incomplete.
WARNING: this test requires a fully functional pearweb server at address pear.Chiara, with several packages available for download.  This one will fail until Martin has time to set up test.pear.php.net as the server.
2003-12-03 22:53:58 +00:00
Ilia Alshanetsky 81e41e3cb9 Remove unnecessary casts. 2003-12-03 22:51:51 +00:00
Greg Beaver 35bdc2f7eb duhhh... 2003-12-03 22:39:55 +00:00
Christian Stocker e969b7897e fix test to the changes made regarding __toString() 2003-12-03 22:18:49 +00:00
Andi Gutmans 54996089f3 - Add news about include_once fix for Windows 2003-12-03 22:13:11 +00:00
Moriyoshi Koizumi 5fe26e76eb This kind of error should be caught. (suggested by Andi, thanks) 2003-12-03 22:08:58 +00:00
Rob Richards 198c09f775 fix notations - forgot to create iterator 2003-12-03 21:27:01 +00:00
Moriyoshi Koizumi 247f991443 Possible fix for bug #26391 (parse_url() destroys strings that contain
a character in range of \x80-\xff))
2003-12-03 20:58:12 +00:00
Moriyoshi Koizumi 110044b5f1 Add a win32 build script. Not tested, but should work :) 2003-12-03 19:46:27 +00:00
Moriyoshi Koizumi 7ac854e710 Fix bug #24773 (unset()ing string offsets crashes PHP) 2003-12-03 19:10:38 +00:00
Wez Furlong 883815a9ec VC stores lib path in LIB not LIBS.
Add --with-extra-includes and --with-extra-libs to be able to specify
general additions to those paths from the environment.
2003-12-03 18:31:04 +00:00
Wez Furlong 03afe54c44 avoid breaking paths with spaces when we generate the makefile, and ensure that libs found in the default path are added to the link line 2003-12-03 17:04:30 +00:00
Wez Furlong c2bd62fcd7 add rule for parsedate 2003-12-03 16:51:23 +00:00
Ilia Alshanetsky 22142c392c Fixed compiler warning due to unused variables. 2003-12-03 15:50:27 +00:00
Derick Rethans 611219208c - Remove newline from error message 2003-12-03 15:01:04 +00:00
Wez Furlong 1653fbfff6 fix typo 2003-12-03 14:58:05 +00:00
Wez Furlong 93bce45485 Propogate LDFLAGS from extensions to PHPDLL when building them statically.
Move ZendEngine2 to Zend while running buildconf
2003-12-03 14:55:03 +00:00
Wez Furlong ad84dfa937 Build adjustments. 2003-12-03 14:29:45 +00:00
Wez Furlong f7a86e5b5e Explicitly include this header for SHFILEINFO.
# no need to MFH
2003-12-03 14:26:41 +00:00
Derick Rethans 61e8ab4e8d - I am sure I reverted this before 2003-12-03 09:12:38 +00:00
Frank M. Kromann 1dd6e3ab61 Adding missing defines and lib/include paths 2003-12-03 06:50:19 +00:00
Frank M. Kromann 26768fdff6 look for FrontBase files in the default location 2003-12-03 06:42:16 +00:00
Sara Golemon 5ad67a9215 Add http proxy support via context option. 2003-12-03 05:30:16 +00:00
Jon Parise 20658020bd Removing the DB extension warning message. The DB extension is no longer
included in the PHP distribution.
2003-12-03 05:06:04 +00:00
Wez Furlong 34df2ae239 some tweaks for Frank 2003-12-03 02:47:45 +00:00
4dce55f28b ChangeLog update 2003-12-03 01:32:23 +00:00
Sara Golemon feee37a17a Optimize strrpos/strripos for single char strings and fix offset to report correctly 2003-12-03 01:31:56 +00:00
Sara Golemon 3d6fcddfd2 Restore ability to use strrpos/strripos with an ordinal needle 2003-12-03 01:11:36 +00:00
Wez Furlong 86c8a87283 avoid vs.net specific option for now 2003-12-03 01:10:03 +00:00
Wez Furlong 68f77f37ba Avoid death when wrapping null/undefined values 2003-12-03 00:56:14 +00:00
Wez Furlong 5b7e8bb4f6 make help more useful 2003-12-03 00:46:40 +00:00
Wez Furlong ccb682b652 add win32 build readme 2003-12-03 00:32:25 +00:00
Ilia Alshanetsky 4e483f9d35 Adding shmop config file for the new build system 2003-12-03 00:32:19 +00:00
Frank M. Kromann a829089e25 Adding FrontBase config file for the new build system 2003-12-03 00:30:54 +00:00
Wez Furlong 0e0f78df63 Fix build if you don't have apache headers and want to disable apache... 2003-12-03 00:27:44 +00:00
Frank M. Kromann 305d2a3948 oops. this should be with and not enable 2003-12-03 00:22:40 +00:00
Frank M. Kromann de96d34adb Adding mssql config file for the new build system 2003-12-03 00:17:04 +00:00
Wez Furlong 2d0eaa3989 Clarify a little. 2003-12-03 00:15:10 +00:00
Wez Furlong 05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Wez Furlong 30b631d9f6 Export this so that shared session modules can use it under win32. 2003-12-02 23:14:31 +00:00
Wez Furlong 5e4eac57bd Export these so that ftp extension can be build as shared ext. 2003-12-02 23:13:43 +00:00
Marcus Boerger ff57d33fe2 Remove automatic call to __toString() since it is supposed to cause too
much trouble. See discussion on the mailing list.
2003-12-02 22:08:51 +00:00
Andi Gutmans 5620f21dd5 - Uncomment my code which improves Windows behavior of TSRM file paths.
- This will now not work on Windows 95 anymore.
2003-12-02 21:12:17 +00:00
Andi Gutmans 23b231d0eb - Revert the revert of these patches. This overloading can only be used
- by C extensions such as SimpleXML and *NOT* PHP code. Reasons given
- on the mailing list and problem with reentrancy inside the opcodes.
2003-12-02 21:09:24 +00:00
Sara Golemon dacb3a68fe Register url_stat flag constants in userspace 2003-12-02 20:06:40 +00:00
Sara Golemon 1aaf7da2ce Populate userstream objects with context property 2003-12-02 19:14:31 +00:00
Sara Golemon 88ccc6a630 Update userspace/url_stat proto 2003-12-02 18:52:58 +00:00
Frank M. Kromann a7e2f95247 set freed pointer to null to avoid reuse 2003-12-02 18:38:30 +00:00
Jon Parise 4f51656de9 Improving the wording of the "don't use the DB extension" warning. 2003-12-02 16:50:02 +00:00
Wez Furlong da9093be3a this can't be persistent 2003-12-02 16:35:19 +00:00
Rob Richards 6fa6d3c470 check node type for ->attributes and ->childNodes 2003-12-02 15:17:02 +00:00
foobar 49af06e7b4 - Updated credits 2003-12-02 14:50:37 +00:00
foobar 0377c1fab2 removed some non-existing extensions/sapis 2003-12-02 14:48:22 +00:00
foobar c7b3a02c85 Moved qtdom to PECL 2003-12-02 13:55:27 +00:00
Andi Gutmans d7f839cce7 - Fix for bug #26182 2003-12-02 12:06:03 +00:00
Andi Gutmans 393376d936 - Don't include E_STRICT in E_ALL. 2003-12-02 09:14:18 +00:00
Wez Furlong e68b2fa5fe Fix MBSTRING_API for non-shared win32 builds 2003-12-02 08:54:39 +00:00
foobar e4c614285f Revert undiscussed / undecided patch 2003-12-02 08:00:23 +00:00
Moriyoshi Koizumi 9fd1395546 Fix test so it fits the expected behaviour 2003-12-02 07:38:11 +00:00
Moriyoshi Koizumi 3c02eb1ffe all '_' (underscores) should be replaced by '\x20' (whitespaces)
in encoding.
# should I bump API version?
2003-12-02 07:36:42 +00:00
Marcus Boerger e9f7e14460 Remove debug code 2003-12-02 07:19:31 +00:00
Marcus Boerger 37d7555f98 Add classes from examples: FilterIterator, ParentIterator 2003-12-02 07:18:05 +00:00
Marcus Boerger a7217431be Move object struct to header. 2003-12-02 07:13:53 +00:00
Marcus Boerger 32927a9ffb Free the zval container only if it should be freed and was not copied. 2003-12-02 07:09:46 +00:00
2d3800bdd7 ChangeLog update 2003-12-02 01:31:57 +00:00
Sara Golemon dbfe62117b CS 2003-12-02 01:04:14 +00:00
Moriyoshi Koizumi 0bd11e2a05 Add regression test for iconv_mime_decode_headers() 2003-12-02 00:05:54 +00:00
Moriyoshi Koizumi ca2aaeee5e Loosen error check. There's no reason to forbid a single '=' occurrence
in an unencoded string.
Fix white space handing. Meaningful spaces have got stripped wrongly
before this patch.
2003-12-01 23:49:20 +00:00
Moriyoshi Koizumi 1b8dd3ba21 Allow iconv_mime_decode_headers() to handle multiple occurence of a header. 2003-12-01 23:25:06 +00:00
Ilia Alshanetsky 5a4dda42e3 Optimize substr_replace (this makes it 3-8 times faster depending on the
string length).
2003-12-01 23:17:22 +00:00
Moriyoshi Koizumi 36f5926434 Update test. 2003-12-01 22:59:28 +00:00
Moriyoshi Koizumi 344c29e0c7 Forgot about this one 2003-12-01 22:47:03 +00:00
Moriyoshi Koizumi 869493d4e6 Add iconv_mime_decode_headers() to parse multiple MIME headers.
A few trivial fixes.
2003-12-01 22:46:45 +00:00
Ilia Alshanetsky 089aa3639d Remove debug code. 2003-12-01 22:10:46 +00:00
Moriyoshi Koizumi 93e0d690ee More RFC2047 conformance. Add ability to forcefully continue processing
on error.
2003-12-01 21:47:19 +00:00
Ilia Alshanetsky 6bb5ff7137 The least intrusive way to 'import' PECL extensions into the main tree.
For the moment this deals with tidy, further extensions can be added at a
later point.
2003-12-01 21:37:35 +00:00
Andi Gutmans 16002532b7 - Fix indentation 2003-12-01 20:18:55 +00:00
Sara Golemon 681d18effd Move safemode/basedir checks for url_stat to plain_wrapper. 2003-12-01 19:47:05 +00:00
Derick Rethans 74eed61504 - Fix the default SAPI filter too; all weird problems should be gone again. 2003-12-01 19:25:07 +00:00
foobar e05fbfa253 WS fix 2003-12-01 16:37:11 +00:00
foobar 45ac4a7141 - Fixed bug #26488 (Missing declaration of CRTSCTS in ext/dio/dio.c) 2003-12-01 16:36:00 +00:00
foobar e01ab8c9cf - Made --program-prefix and --program-suffix work. (See bug #23030) 2003-12-01 15:17:13 +00:00
foobar 73b276ad76 missing config.h include 2003-12-01 14:01:38 +00:00
Andi Gutmans 98e1a3dbcb - Change to E_STRICT so as not to break existing scripts.
- Thanks Edin
2003-12-01 12:35:46 +00:00
foobar c6c4c4fbc4 - Nuke property_exists() calls
- Fix the test. (this is BUG in PHP 5, works in PHP 4)
2003-12-01 12:07:36 +00:00
Andi Gutmans 709060e161 - Nuke property_exists(). We need to fix isset() and this is already
- supported in reflection API. In any case, it's best not to add new
- functions in the general namespace except for keeping engine consistency
(which would have been true in this case)
2003-12-01 11:53:42 +00:00
Andi Gutmans ee64b61e94 - Revert auto-conversion in parameter API 2003-12-01 11:50:57 +00:00
Andi Gutmans a411d608fa - Don't automatically call __toString() in convert_to_string_ex().
- use __toString() in your code.
- Keep the auto-case in make_printable_zval.
2003-12-01 11:47:52 +00:00
foobar 91b7cc2079 - Moved ext/db to PECL.
# Derick copied the sources in CVS repository to preserve CVS log.
2003-12-01 10:47:08 +00:00
Christian Stocker 80d552496c Fix Bug, if parser input is not a filename (By Adam) 2003-12-01 08:18:35 +00:00
Greg Beaver 036ac99eef new test case and supporting files - incomplete, but works as it is 2003-12-01 04:51:21 +00:00
Greg Beaver cd4baaf654 potential major booboo in unit test, probably won't affect this one 2003-12-01 04:04:07 +00:00
42f04fbd43 ChangeLog update 2003-12-01 01:31:51 +00:00
Greg Beaver cde3509868 2 bugs found here, added deprecation warning for those who have written their own PEAR application 2003-12-01 01:02:40 +00:00
Greg Beaver 3e60df640e 2 bugs found here 2003-12-01 01:00:57 +00:00
Greg Beaver 1b95c31c77 2 bugs found 2003-12-01 00:59:14 +00:00
Greg Beaver b27f71ca58 fclose() might be needed 2003-12-01 00:43:34 +00:00
Greg Beaver 87365b0149 new unit test 2003-12-01 00:36:47 +00:00
Greg Beaver 2939c3539d fix bug found by unit testing in package ordering 2003-12-01 00:15:53 +00:00
Greg Beaver 21714261a6 fix unit test 2003-12-01 00:14:37 +00:00
Greg Beaver 3db2e9bdcc minor booboo 2003-12-01 00:14:16 +00:00
Greg Beaver df5317e336 new unit test - test works, but there is a serious bug in sortPkgDeps to be fixed, as unearthed by this test 2003-11-30 23:43:19 +00:00
Greg Beaver bfc02f7223 finish unit test with non-working download test with callback 2003-11-30 22:51:17 +00:00
Greg Beaver 398dec718a add in skip condition for internet offline, and callback test 2003-11-30 22:49:33 +00:00
Greg Beaver 685e7a365a first unsuccessful test works 2003-11-30 22:39:24 +00:00
Greg Beaver 2276704637 first successful download test works :) 2003-11-30 22:37:47 +00:00
Greg Beaver a7d7f311f0 beginning framework for PEAR_Common::downloadHttp test - binary test file 2003-11-30 22:31:35 +00:00
Greg Beaver 5c60fe3a0e beginning framework for PEAR_Common::downloadHttp test 2003-11-30 22:31:00 +00:00
Greg Beaver 44e2b42692 tweak tests 2003-11-30 22:24:14 +00:00
Greg Beaver 0b24e0a404 remove old holdover code that has no purpose 2003-11-30 22:01:22 +00:00
Greg Beaver 76e83f576c ...and with these changes, 100% BC is maintained. 2003-11-30 22:00:59 +00:00
Derick Rethans c73641afd7 - And fix the README too. 2003-11-30 20:13:03 +00:00
Derick Rethans 630e1692d6 - Fixed standard wrapper for input filter. 2003-11-30 20:07:58 +00:00
Ilia Alshanetsky d9edc99fbe MFB: Fix for possible uninitialized usage of subject_r. 2003-11-30 19:56:30 +00:00
Ilia Alshanetsky c344754d48 Removed unused variables. 2003-11-30 19:43:30 +00:00
Marcus Boerger 34a3019acd Fix macros 2003-11-30 17:05:10 +00:00
Marcus Boerger 8ef69cf369 Update 2003-11-30 16:31:35 +00:00
Marcus Boerger c5fba4c957 Require inner iterator to be RecursiveIterator 2003-11-30 16:20:03 +00:00
Marcus Boerger 01f5277002 Remove old files 2003-11-30 16:14:56 +00:00
Marcus Boerger c3fddcab62 Fix tests for E_STRICT and check for E_STRICT in run-tests.php. 2003-11-30 13:57:20 +00:00
Marcus Boerger 0091b5ca1d Check return value of exception::__tostring() 2003-11-30 13:53:19 +00:00
Marcus Boerger 71ec2db198 Fix tests 2003-11-30 13:20:26 +00:00
Marcus Boerger e0946d9609 Fix test 2003-11-30 13:18:56 +00:00
Rob Richards 2a5092c03a remove call to xmlMemoryDump 2003-11-30 12:30:29 +00:00
Christian Stocker fbc8f35778 fixed typos 2003-11-30 11:13:00 +00:00
Christian Stocker 8b315dddd4 output of uncaught exception changed 2003-11-30 10:58:18 +00:00
Georg Richter 10b60148c9 prototype fix for mysqli_ssl_set 2003-11-30 10:56:55 +00:00
foobar 4eff99ad4b New funcs 2003-11-30 09:41:32 +00:00
Greg Beaver c7c5d7689d experimental code shuffling, moved download() into a new class, PEAR_Downloader.
Reasons:
- 7 parameters for a method with lots of pass by reference
  implies the need to save state, i.e. use an object
- cleaner code.  download() can be easily split into 4 separate but related methods
- Installer.php is now exclusively used for installation
- future extensibility: switching to channels or local package repositories from
  using PEAR_Remote is easy.  Simply extend the API for PEAR_Downloader:
  no changes needed to the installer at all

to install for testing purposes, use

pear upgrade --force package-PEAR-new-Downloader.xml

to uninstall, use

pear upgrade --force package-PEAR.xml
2003-11-30 05:39:02 +00:00
6dd2f536a4 ChangeLog update 2003-11-30 01:31:13 +00:00
Greg Beaver cc27a3f03d got it - the pattern ONLY needs addslashes for windows paths 2003-11-30 00:14:22 +00:00
Greg Beaver 6f1625d29b fix one part - can't get the ereg() to match on windows, will fix when I figure out why 2003-11-29 23:37:56 +00:00
Greg Beaver 2c4e1f1d4a fix up unit tests - registry was ridiculously out of date. Guess nobody ever runs these... 2003-11-29 23:36:46 +00:00
Wez Furlong 7a7713eaeb Fix build for new usleep implementation.
NB: we now depend on windows 98 and later;
windows 95 does not have these timing functions.
2003-11-29 22:59:33 +00:00
Wez Furlong dd60413c61 implement usleep for win32 2003-11-29 22:48:42 +00:00
Wez Furlong 37f135ceef Add stream_socket_sendto and stream_socket_recvfrom which work very much
like sendto() and recvfrom() syscalls.
2003-11-29 21:46:50 +00:00
Sebastian Bergmann fe93c2ac09 Add dom_iterators.c to project. 2003-11-29 20:55:18 +00:00
Greg Beaver e882ab4817 new test case 2003-11-29 20:45:09 +00:00
Rob Richards 8293923841 guess this file should be added too :) 2003-11-29 20:41:41 +00:00
Rob Richards 8c700ad546 fix ZTS build 2003-11-29 20:40:54 +00:00
Rob Richards 6ac34646ac implement namednodemap and nodelist
fix xsl/dom integration under windows
update tests and examples
2003-11-29 20:40:18 +00:00
Greg Beaver 154db581ae finish unit test 2003-11-29 20:35:43 +00:00
Sara Golemon e9a1d12f71 Add in missing stat element and fix win32 build 2003-11-29 20:01:00 +00:00
Greg Beaver e39e452e30 add in environment variable for easy non-skipping 2003-11-29 19:43:05 +00:00
Greg Beaver 24409dc035 fix some bugs found in the unit test 2003-11-29 19:42:19 +00:00
Greg Beaver 595b433b25 start on a new unit test 2003-11-29 19:39:51 +00:00
Marcus Boerger 056c654f4f Fix memleak 2003-11-29 19:26:41 +00:00
Ilia Alshanetsky 99dec6927c Fixed bug #26463 (Incorrect handling of semicolons after heredoc) 2003-11-29 19:05:14 +00:00
Marcus Boerger bfa36a8ea7 Caanot use REPLACE_ZVAL_VALUE here. 2003-11-29 18:31:24 +00:00
Marcus Boerger 6344f662a5 This takes the address of a zval ptr 2003-11-29 18:23:35 +00:00
Ilia Alshanetsky 9e195d1040 Fixed a memory leak when tokenizing scripts with heredoc. 2003-11-29 18:22:44 +00:00
Marcus Boerger fd7b38d752 Fix return value. 2003-11-29 18:16:03 +00:00
Marcus Boerger c7d27ad938 Add macros to return values of other zvals.
This is needed because one cannot use REPLACE_ZVAL_VALUE with return_value.
2003-11-29 18:15:11 +00:00
Greg Beaver 56908214ab add dependency on xml extension - we need it for every installation/package function 2003-11-29 17:56:36 +00:00
Marcus Boerger 68e218e85c Remove test code 2003-11-29 17:48:44 +00:00
Ilia Alshanetsky cf196ac625 Restore original patch for bug #26281.
# Andi if you have a time & interest please see if perhaps a better
# solution can be implemented. Thanks.
2003-11-29 17:33:25 +00:00
Sara Golemon 9defdab180 Finish off ftp://'s url_stat support 2003-11-29 17:16:58 +00:00
Marcus Boerger af5489d91b Revert accidential commit until decision 2003-11-29 17:05:17 +00:00
Marcus Boerger 9ffd44e94a Make exception code more robust:
- Fix error in calculation of trace-string length
- Allow to overload __strostring() and make it work for uncaught exceptions
- Show exception thrown while displaying exceptions
2003-11-29 17:03:45 +00:00
Ilia Alshanetsky b761414540 The removed NEWS entry is already in 4.X news file. 2003-11-29 17:00:53 +00:00
Christian Stocker 0d6ccfbe69 a dot too many 2003-11-29 16:44:12 +00:00
Christian Stocker f8356270c8 Some news from ext/xsl 2003-11-29 16:41:59 +00:00
Christian Stocker 146e88ac02 testcase for bug26384 2003-11-29 16:38:09 +00:00
Christian Stocker 5c039bbad9 Fixed for Bug #26384 (domxslt->process causes segfault with xsl:key) 2003-11-29 16:37:37 +00:00
Greg Beaver e57b75eff4 fix Bug #324 pear -G gives Fatal Error (PHP-GTK not installed, but error is at engine level) 2003-11-29 16:33:54 +00:00
Wez Furlong c31d958d5a typofix 2003-11-29 15:54:07 +00:00
Derick Rethans 350d755e33 - Update NEWS and README for input_filters 2003-11-29 15:30:50 +00:00
Derick Rethans 750b0338bf - Fix sapi_input_filter patch. Returning 1 from the filter handler should
make PHP register the variable, returning 0 shouldn't. The new length of
  the variables being filtered is now returned in the new_val_len argument
  of the function.
2003-11-29 15:24:35 +00:00
foobar f7830195c0 - Fixed bug #26462 (phpize + ext/bcmath -> compile error) 2003-11-29 13:33:34 +00:00
Christian Stocker df63bcddda follow coding standards. 2003-11-29 13:31:51 +00:00
Christian Stocker d699569f5a it's now possible to return a DomNode from userland functions back to the xsl-processor 2003-11-29 13:07:20 +00:00
foobar 647741c8d0 missing .cvsignore 2003-11-29 13:05:22 +00:00
Christian Stocker 38b12e7f97 fixed wrong check 2003-11-29 13:01:19 +00:00
Christian Stocker 2ff82ae2ed move some definitions to xml_common.h 2003-11-29 13:00:54 +00:00
Marcus Boerger af3f48b7e1 Research reveals that the error text depends on the tools and their
versions used to create the language parser.
2003-11-29 12:51:37 +00:00
foobar b0d921697d test for bug #24908 2003-11-29 07:54:19 +00:00
foobar d0f9ba8955 - Fix expected output. 2003-11-29 07:29:42 +00:00
foobar 3e7dd7eb29 oops.. 2003-11-29 07:16:58 +00:00
foobar 5ff5a9fbb3 test for bug #25652 2003-11-29 07:15:31 +00:00
foobar ee50f6034e - remove non-existing servlet entry 2003-11-29 05:12:23 +00:00
Ilia Alshanetsky 91052eb93b Fixed bug #26458 (var_dump(), var_export(), debug_zval_dump() not binary
safe for array keys).
2003-11-29 04:43:06 +00:00
Sara Golemon ef9949ff37 Update php.ini-* with E_STRICT error reporting level. -dist excludes E_STRICT, -recommended includes it. 2003-11-29 02:49:57 +00:00
foobar e34b689ef3 news for xslt 2003-11-29 02:49:03 +00:00
foobar 5faa087a0e test for bug #24926 2003-11-29 02:28:49 +00:00
Sara Golemon ad868f447a Handle dirty script exit. 2003-11-29 02:04:37 +00:00
55775e5273 ChangeLog update 2003-11-29 01:32:19 +00:00
Sara Golemon 026d4c9e4c Route php_stat() via streams/url_stat API (php_stream_stat_path).
This enables fopen-wrappers support on stat() and related family calls.
2003-11-28 23:25:28 +00:00
Wez Furlong 6d86bb9e40 (sort of) MFB, feof fix for sockets. 2003-11-28 23:20:23 +00:00
Christian Stocker 3f07e4364c @- Added possibility to call php functions as XSLT-functions (chregu)
- Added possibility to call php functions as XSLT-functions
  eg: <xsl:value-of select="php:function('date','r')"/>
  Namespace is http://php.net/functions
2003-11-28 22:08:16 +00:00
Christian Stocker 29a46b2ff6 changing dom_object_get_data to php_dom_object_get_data and PHP_DOM_EXPORT it
(by Rob Richards)
2003-11-28 21:55:59 +00:00
Ilia Alshanetsky e1bdc33d18 More memory leak fixes for stream contexts. 2003-11-28 18:33:14 +00:00
Ilia Alshanetsky 9b526291e4 Bug fixing news. 2003-11-28 18:17:13 +00:00
Wez Furlong cab6d93bdd Fix #25664 - COM crashes when calling a Delphi implementations of ITypeInfo.
Problem was that our extension assumes that the first param to ITypeInfo::Invoke was a reference to the COM object; this is not necessarily true and caused a crash in this instance.
Problem solved by removing the ITypeInfo::Invoke call, as it doesn't buy us anything anyway.
2003-11-28 17:11:16 +00:00
Wez Furlong 28277f1d00 fix #26001; serialize crashes when accessing an overloaded
object that has no properties (NULL hashtable).
2003-11-28 15:42:58 +00:00
Wez Furlong 440c4d983f fix memleak 2003-11-28 15:41:45 +00:00
Ilia Alshanetsky 7203684680 Add removed lcname, it is still needed. 2003-11-28 14:42:25 +00:00
9870f005e1 ChangeLog update 2003-11-28 01:31:59 +00:00
Ilia Alshanetsky baced1d63d Fixed a memory leak. 2003-11-28 00:00:28 +00:00
foobar e4323fa6ea - Fixed bug #26438 (error in thttpd SAPI installation) 2003-11-27 23:04:10 +00:00
Ilia Alshanetsky e898ae955e Added image_type_to_extension() function. 2003-11-27 22:03:35 +00:00
Marcus Boerger 1586f714fe Convert objects to string if string is required by newer parameter parsing
since we do this for older parameter parsing does so too.
2003-11-27 19:24:38 +00:00
Marcus Boerger 87577dd881 The macro REPLACE_ZVAL_VALUE cannot be used since we only have zval *
writeobj. to allow it the api needs to be changed to zval **writeobj.
2003-11-27 19:08:28 +00:00
Wez Furlong 2a9d2d5f73 re-implement the win32 select code.
The old code implicitly set any sockets into non-blocking mode,
and since there is no way to probe a socket to determine its
blocking status using the win32 API, this was a real pain in the ass.

The New implementation will hand off any sockets to winsock and
use the WaitForObject API in win32 to probe other types of handle.
2003-11-27 18:01:12 +00:00
Wez Furlong 6c0584d8f1 fix win32 build - thanks Sebastian. 2003-11-27 17:58:58 +00:00
Wez Furlong eaf0942c8b Port liveness and SSL CA validation from 4.3 branch.
Make stream_select() work on ssl-enabled sockets again.
2003-11-27 17:40:16 +00:00
Wez Furlong 3ee72aa5be port "liveness" checks and a couple of other things from the 4.3 branch.
Liveness checks are used to validate persistent socket connects when they
are re-used.
2003-11-27 17:39:01 +00:00
Wez Furlong 43698d6dbb initialize this one to be safe 2003-11-27 17:37:35 +00:00
Marcus Boerger 3be27ecc78 Add a support function to check for property existance which is different
from checking a property from being empty/set.
Update test #26182.
2003-11-27 17:06:26 +00:00
Marcus Boerger 7850dddf7c Remove problematic configure option 2003-11-27 16:06:58 +00:00
Marcus Boerger c41dc8864b - Fix requirements for older systems.
- Fix rpm build directory for the major distributions.
- Fix config dir.
- Rename package to php.
- Add gd extension.
- Support building of shared extensions.
- Build CLI only once.
2003-11-27 13:51:25 +00:00
Uwe Steinmann 6b81317509 - set precision to 0 unless the field is of type N or I 2003-11-27 11:32:05 +00:00
Uwe Steinmann 3977fdd7b0 - fixed indenting 2003-11-27 10:15:20 +00:00
95078ae354 ChangeLog update 2003-11-27 01:31:47 +00:00
Ilia Alshanetsky cd482c502c Removed dead code. 2003-11-27 01:08:42 +00:00
Marcus Boerger 0f2f745393 Cleanup 2003-11-26 23:28:35 +00:00
Greg Beaver 6c9fa67eca fix Bug #293 [Patch] PEAR_Error not calling static method callbacks for error-handler 2003-11-26 15:08:42 +00:00
Derick Rethans 370dfd39a9 - Prevent registration of the variable when a zero-length is returned
from the sapi_input_filter.
2003-11-26 09:53:22 +00:00
Marcus Boerger 7780cbc9f3 In PHP5 this will create an implicit public property 2003-11-26 08:47:58 +00:00
Marcus Boerger f40ecad640 Errro message has changed 2003-11-26 08:45:42 +00:00
Marcus Boerger 06cdd3e4cc Remove interfaces implemented in engine now 2003-11-26 08:18:26 +00:00
a537eadf4a ChangeLog update 2003-11-26 01:31:41 +00:00
foobar 78cb38105d style fix 2003-11-25 20:02:22 +00:00
Sebastian Bergmann 8dd6cded76 'Fix' for bison 1.875. 2003-11-25 15:36:38 +00:00
foobar f280bc3735 test case for bug #26182 2003-11-25 09:20:56 +00:00
foobar 7a3ad4172f - Fixed bug #26376 (typo in ext/odbc/config.m4: DBMaker test fails) 2003-11-25 08:07:35 +00:00
47bbc0de9f ChangeLog update 2003-11-25 01:31:49 +00:00
Marcus Boerger 4dba05d9cc Add new interface ArrayAccess to use objects as Arrays 2003-11-24 20:57:54 +00:00
Andi Gutmans bc4d0082d6 - Fix newly introduced bug which stopped class constants from working.
- Thanks to Jan Lehnardt for reporting it.
2003-11-24 20:47:53 +00:00
foobar 77297a2b01 fixed -> fixed section, added -> added section..etc. 2003-11-24 19:01:45 +00:00
Sebastian Bergmann e712007972 No longer needed. 2003-11-24 18:31:47 +00:00
Ilia Alshanetsky d1a04493bb Make sure zend stuff is built first. 2003-11-24 18:23:36 +00:00
Andi Gutmans a319c41bb1 - Now we're getting closer to an RC we should start giving more detail
- about engine changes in NEWS.
2003-11-24 18:22:55 +00:00
Andi Gutmans d344648b07 - Fix __autoload() to preserve class case.
- Heads up, this patch might break stuff so please let me know if you
- bump into any problems.
2003-11-24 18:13:29 +00:00
foobar 83650e4e67 Fix the build for other than x86 archs. 2003-11-24 16:09:45 +00:00
Georg Richter e664af1943 added/fixed write property 2003-11-24 11:31:26 +00:00
Rob Richards be974aff6e Fix bug #26159 - SimpleXML XPath support (patch by Adam Trachtenberg)
a few fixes to memory corruption
2003-11-24 11:24:40 +00:00
Moriyoshi Koizumi 4b439176da Partial fix for bug #25803 (xml_get_current_byte_index() always returns 0) 2003-11-24 06:04:39 +00:00
Ilia Alshanetsky c722ab91ee Fixed bug #26355 (flock() doesn't initialize the wouldblock argument) 2003-11-24 01:42:43 +00:00
0c5c01ad9d ChangeLog update 2003-11-24 01:32:05 +00:00
Ilia Alshanetsky b03d3fa5b7 Added php_strip_whitespace() and php_check_syntax() functions. 2003-11-24 01:17:27 +00:00
Sara Golemon 0831f2b03a Fix for file:// wrapper parsing.
(Cristiano Duarte <cunha17@uol.com.br>)
2003-11-23 17:35:00 +00:00
Marcus Boerger a7a9ec079a Add new test 2003-11-23 16:22:11 +00:00
Marcus Boerger fc117add30 Several improvements to the simplexml_element object:
- Allow to use it as an instance of Iterator
- Prepareto use it as a normal object, including spcialization
2003-11-23 16:20:58 +00:00
Andi Gutmans ceaddf238b - Allocation optimizations by Timm Friebe 2003-11-23 12:55:22 +00:00
Georg Richter fee99f6b29 fixed mem leak in constructor 2003-11-23 07:50:04 +00:00
432bf1ab81 ChangeLog update 2003-11-23 01:31:45 +00:00
Georg Richter 230b207849 - Added multiquery support:
mysqli_multi_query
	mysqli_more_results
	mysqli_next_results

- added read-only properties (and removed methods)
	object mysql
		affected_rows
		client_flags
		client_version
		errno, error,
		host, host_info, info
		server_capabilities, server_version
		sqlstate, port, protocol_version,
		server_language
		thread_id, user, warning_count

	object result
		current_field, field_count,
		lengths, num_rows, type

	object stmt
		query, param_count, field_count,
		id, errno, error, sqlstate


- added constructor

- minor fixes, prototypes
2003-11-22 21:20:07 +00:00
Stefan Esser 28b6c35d80 On error do not leave content_type_dup unitialised. 2003-11-22 21:10:47 +00:00
Marcus Boerger 95c0c36525 Add missing files 2003-11-22 20:52:06 +00:00
Marcus Boerger 3d9ec63384 Update examples 2003-11-22 20:51:15 +00:00
Marcus Boerger eca139ec52 - rename getLevel() to getDepth()
- make parameter to getSubIterator() optinal
- refcount fix
2003-11-22 20:49:15 +00:00
Marcus Boerger 9ed350cf67 - current() returns self
- add __toString() casting
2003-11-22 20:46:46 +00:00
Marcus Boerger e3cbda9789 Disable interfaces ArrayRead and ArrayAccess 2003-11-22 20:44:44 +00:00
Moriyoshi Koizumi fd28ad3e8c Fixed bug #26194 (iconv() not properly defined with libiconv).
# Thank you Steph and Frank!
2003-11-22 13:36:55 +00:00
4508d7dcce ChangeLog update 2003-11-22 01:31:47 +00:00
Christian Stocker 6f8746a14d added test for exslt support 2003-11-21 12:22:48 +00:00
Christian Stocker 44ae81871b - Added $proc->hasExsltSupport() 2003-11-21 12:21:35 +00:00
Ilia Alshanetsky 44a03df926 Cleaner patch for bug #26281. 2003-11-21 04:45:43 +00:00
7ed1525cf3 ChangeLog update 2003-11-21 01:31:47 +00:00
Hartmut Holzgraefe ead7c2388d debug mode no longer needed 2003-11-20 19:01:33 +00:00
Andi Gutmans fea31127ec - Fix Windows build 2003-11-20 09:14:51 +00:00
foobar 6f6df4f9a4 Removed entries which no longer have no function 2003-11-20 07:46:46 +00:00
eda457fe19 ChangeLog update 2003-11-20 01:32:12 +00:00
Sara Golemon 0101c27823 New function: headers_list(). Ennumerate headers sent to SAPI engine 2003-11-19 21:10:33 +00:00
Hartmut Holzgraefe f992fbfa2c proto fix 2003-11-19 20:13:49 +00:00
Hartmut Holzgraefe 7eb2471565 XSchema stuff finally done right ... (at least i hope so ...) 2003-11-19 19:55:13 +00:00
Hartmut Holzgraefe 8053a324aa typo fix 2003-11-19 17:38:42 +00:00
Hartmut Holzgraefe 47ee4d5e88 regression test for bug # 26320
"strtotime() does not understand ISO6801 datetime format as used in XMLSchema"
2003-11-19 16:37:50 +00:00
Hartmut Holzgraefe 5339f9134f Testcase done right ... 2003-11-19 16:19:28 +00:00
Hartmut Holzgraefe 8cc9c96cef regression test for http://bugs.php.net/bug.php?id=26317
"military timezones and strtotime()"
2003-11-19 16:01:25 +00:00
Ilia Alshanetsky 44e180b286 Fixed bug #26309 (Fixed argument parsing for imageftbbox()). 2003-11-19 15:49:55 +00:00
Ilia Alshanetsky 2b7b909e16 Fixed bug #26285 (escapeshellarg() uses wrong quotes on windows). 2003-11-19 15:34:30 +00:00
Christian Stocker b63803a06c added exslt support 2003-11-19 12:07:59 +00:00
Andi Gutmans 2fefe6148b - Commit patch by standards 2003-11-19 06:11:47 +00:00
foobar 398b9048dd ws fix 2003-11-19 05:00:56 +00:00
foobar 56ca2bb6c1 - Fixed bug #26267 (gmp_random() leaks memory and does not produce random numbers)
# ..and mpz_random() is obsolete according to the GNU MP manual.
2003-11-19 04:44:06 +00:00
55b83c36e3 ChangeLog update 2003-11-19 01:36:15 +00:00
Ilia Alshanetsky fdd902f0dd Possible fix for bug #26281 & test case. 2003-11-19 00:41:14 +00:00
Marcus Boerger a16ca5a1c2 Dont't stop if directory can't be openedbecause of user rights etc 2003-11-19 00:18:30 +00:00
foobar 9964911cb7 Fix build 2003-11-19 00:09:45 +00:00
Marcus Boerger e9d0b04588 Must use hasNext() here 2003-11-18 22:34:51 +00:00
Marcus Boerger 43d4079590 update directory examples 2003-11-18 22:18:38 +00:00
Marcus Boerger dc42ce8cf2 - Rename DirectoryTreeIterator to RecursiveDirectoryiterator (what it
effectively is).
- Add DirectoryIterator::__toString ->getFilename
- Add RecursiveDirecetoryIterator::__toString ->getPathname
- Add RecursiveIteratorIterator::getSubIterator.
2003-11-18 22:14:19 +00:00
Marcus Boerger c21d597426 Add method alias macro 2003-11-18 19:18:54 +00:00
foobar 97886632ad - Fix the parameter setting. (this function has 1 optional parameter) 2003-11-18 10:28:13 +00:00
Andi Gutmans c0df450203 - Add E_STRICT, to be used to warn purists (like Jani :) 2003-11-18 09:25:04 +00:00
Uwe Schindler 26b5772455 change names to php5_xxx in NSAPI 2003-11-18 09:04:31 +00:00
Marcus Boerger cf1a6108eb Add new iterator test inspired by bug #26527 2003-11-18 07:33:30 +00:00
Marcus Boerger 1eaf126a7a Backpatch the correct opcode for list(), property overloading needs more
opcodes (Bugfix #26257).
2003-11-18 07:19:55 +00:00
Hartmut Holzgraefe 45a07a546f the military time zone offsets where pointing in the wrong direction 2003-11-18 06:46:07 +00:00
Hartmut Holzgraefe f4d669d712 make strtotime() understand the datetime format used with XML Schema 2003-11-18 06:45:01 +00:00
Ilia Alshanetsky 2a58fb80e7 Fixed Bug #25694 (round() and number_format() give inconsistent results). 2003-11-18 02:50:41 +00:00
875695f680 ChangeLog update 2003-11-18 01:34:41 +00:00
Marcus Boerger c978cc2ae8 Use correct order 2003-11-18 00:18:48 +00:00
foobar ee997ddbfa fix the docs 2003-11-18 00:06:37 +00:00
Marcus Boerger b29834a5be Use correct macro/function 2003-11-18 00:01:34 +00:00
Frank M. Kromann 02ea233faa MFB: Fix for bug #25817
Check for a return value from a stored procedure right after fetching rows
Replace code with some Z_ macros
2003-11-17 20:56:53 +00:00
foobar d240eea0d8 - Fixed bug #26253 (ext/tokenizer: build as shared extension fails) 2003-11-17 19:31:17 +00:00
Sebastian Bergmann a10f238cb3 SAPI/Servlet has been moved to PECL. 2003-11-17 16:48:43 +00:00
Martin Jansen 6ff584e2fb * Fix potential warning 2003-11-17 09:15:28 +00:00
Greg Beaver 137adbb708 necessary refinement 2003-11-17 06:07:15 +00:00
Greg Beaver 82bd0915f5 fix bug #248, --force does not work as expected 2003-11-17 05:56:50 +00:00
Greg Beaver c05dfddda4 fix bug #249 2003-11-17 05:45:49 +00:00
Marcus Boerger 5757ae3d24 Rename ArrayClass to ArrayObject 2003-11-17 05:32:43 +00:00
Marcus Boerger b904d296c9 Fix ArrayClass and provide missing has_dimension handler. 2003-11-17 05:25:47 +00:00
Ilia Alshanetsky ace83a8262 Silence warning. 2003-11-17 04:54:27 +00:00
Stig Bakken c67848319a * "chmod +x" when extracting archived executable files 2003-11-17 02:27:23 +00:00
1dbb879bdc ChangeLog update 2003-11-17 01:31:45 +00:00
Marcus Boerger 54352a63ad Fix RecursiveIteratorIterator 2003-11-17 00:57:01 +00:00
Marcus Boerger 3bfa497254 WS 2003-11-17 00:56:15 +00:00
Marcus Boerger 883777623a Make it an interface with an code example as comment 2003-11-17 00:55:37 +00:00
Marcus Boerger 39df192788 Correct destruction 2003-11-17 00:36:41 +00:00
Ilia Alshanetsky 8845a0300f Added myself to credits. 2003-11-16 20:43:57 +00:00
8711f1ca1f ChangeLog update 2003-11-16 01:32:53 +00:00
Frank M. Kromann 4394ccf358 Fix win32 compilation. This will import the core_globals_id 2003-11-15 05:42:57 +00:00
9ae0d49814 ChangeLog update 2003-11-15 01:31:51 +00:00
Frank M. Kromann 72297f444b Adding missing class init's for new ming 0.3a functions 2003-11-15 00:53:39 +00:00
Ilia Alshanetsky c53b53f926 Rename nanosleep() to time_nanosleep(). 2003-11-14 22:55:54 +00:00
Moriyoshi Koizumi 6b7bd4be8f ctime (#10) may differ on several filesystems.
# I confirmed it on Darwin
2003-11-14 08:59:30 +00:00
Marcus Boerger 86676d4d12 Adjust to latest conversion cast changes 2003-11-14 07:41:05 +00:00
foobar 8fec4cc3ec Missing "confdefs.h" in the cleanup-files-list 2003-11-14 03:21:00 +00:00
4d16f8f4bc ChangeLog update 2003-11-14 01:31:43 +00:00
Ilia Alshanetsky 64bc9176e1 Fixed bug #26235 (yp_first/yp_next do not specify correct key length). 2003-11-14 00:32:25 +00:00
Marcus Boerger 3733cf409e Fix testcase name 2003-11-13 21:16:57 +00:00
Rasmus Lerdorf 8afe759fa8 proto fix 2003-11-13 20:55:00 +00:00
Moriyoshi Koizumi 47c38dcd55 BFN 2003-11-13 20:54:25 +00:00
Moriyoshi Koizumi 138b1c7be3 Bugfix #26156 (REPLACE_ZVAL_VALUE works on uninit stack-based zvals) 2003-11-13 20:53:55 +00:00
Marcus Boerger 2b35596d7f Fix classname, CDATA handling (semantically identical to text) and
iterators (Return sub elements as objects, converted to string you get
the text).
2003-11-13 20:32:38 +00:00
Marcus Boerger 2bed6c2b8a Proto fixes (Friedhelm Betz <holliwell|gmx.net>) 2003-11-13 19:08:41 +00:00
John Coggeshall 365f0638fc Releasing 1.0.... 2003-11-13 17:50:39 +00:00
foobar 4eab4158cd - Fixed build of shared extensions which require openssl and when you only
have static openssl libraries.
2003-11-13 14:17:47 +00:00
Edin Kadribasic 45f12cc61f Windows compile fix (patch by sfox@php.net). 2003-11-13 10:32:05 +00:00
Marcus Boerger a18bd05f32 Bugfix #25794: Cannot open existing hash db3 file with write 2003-11-13 08:59:02 +00:00
Marcus Boerger 58246412a7 IteratorAggregate::getIterator() cannot return anythingy else than objects 2003-11-13 08:23:49 +00:00
Marcus Boerger 4d752bd78e Pass eof 2003-11-13 07:53:15 +00:00
Andi Gutmans db2a1f4590 - Make sure internal clasess are malloced 2003-11-13 06:40:34 +00:00
bfd79169c2 ChangeLog update 2003-11-13 01:31:49 +00:00
Ilia Alshanetsky 127ed194b7 Added configure check for nanosleep() availability. 2003-11-12 23:43:46 +00:00
foobar 32b5a41941 - Fixed bug #26072 (--disable-libxml does not work). 2003-11-12 23:42:38 +00:00
Marcus Boerger 81d1a19d0b Bugfix #26216: ("getimagesize(): stream does not support seeking" when
using remote files)
2003-11-12 22:51:22 +00:00
Stefan Esser befbd6d793 Fix odd increments to repair the boundary checks. 2003-11-12 22:34:58 +00:00
Ilia Alshanetsky 3691ab699c Added nanosleep(), in addition to allowing setting of very short states.
This function is signal safe.
2003-11-12 22:02:37 +00:00
Jay Smith 544fe688c5 Plugged a small memleak when errstr isn't efree()'d. 2003-11-12 22:01:02 +00:00
Marcus Boerger 9e865e4fb4 Update 2003-11-12 21:48:19 +00:00
Marcus Boerger daaef88047 Add helper function that splits inifile keys into an array which again
can be used in dba_fetch calls.
2003-11-12 21:43:03 +00:00
Ard Biesheuvel 2dd35c0e8f Added new ibase array handling (was already present in b2) 2003-11-12 11:29:25 +00:00
Marcus Boerger 038cb2dc9a Compiler fixes for older ming versions 2003-11-12 09:12:51 +00:00
Sergey Kartashoff 228918223e - A bug in WORDINFO calculation in mnogosearch extension was fixed. 2003-11-12 07:40:17 +00:00
Ilia Alshanetsky 770a111a43 Fixed bug #26198 (strtotime() handling of M/F Y date format). 2003-11-12 02:55:03 +00:00
3d8028d985 ChangeLog update 2003-11-12 01:31:46 +00:00
Ilia Alshanetsky d2564b401e Compiler warning fix (patch by Joe Orton). 2003-11-11 20:04:09 +00:00
Marcus Boerger e480d10021 Fix this 2003-11-11 18:33:34 +00:00
Marcus Boerger 91ab36096e Add shortcut interface SeekableIterator to LimitIterator 2003-11-11 18:31:50 +00:00
Moriyoshi Koizumi f8e6e5dad3 Compiler warning fix (patch by Joe Orton) 2003-11-11 17:35:32 +00:00
Ilia Alshanetsky beffc71b3f Fix ZTS build. 2003-11-11 01:51:22 +00:00
66f5f3371f ChangeLog update 2003-11-11 01:31:39 +00:00
Marcus Boerger ab05faf5b1 Implement different recursion modes as statemachine and have an optional
parameter to choose the mode in the constructor.
2003-11-11 00:25:26 +00:00
Marcus Boerger bdc339d30d Don't use zend_class_entry indirection 2003-11-10 22:06:26 +00:00
Marcus Boerger 7cc93e121b Bugfix #26010 (Bug on get_object_vars() function) 2003-11-10 21:03:04 +00:00
Marcus Boerger e7365f316c Correct default handlers 2003-11-10 20:44:50 +00:00
Marcus Boerger bfb73676de Split into element=property and attribute=dimension overloading. 2003-11-10 20:27:16 +00:00
Marcus Boerger ec9ea44f59 Update test expectations 2003-11-10 18:09:07 +00:00
Marcus Boerger ea3eec9133 Need to update iterators handler table too. 2003-11-10 18:05:02 +00:00
Marcus Boerger 48d249de46 Fix those warnings 2003-11-10 16:23:12 +00:00
Marcus Boerger 296529b886 Split isset/isempty for object property and object dimension hooking. 2003-11-10 16:14:44 +00:00
Marcus Boerger da6d68d919 Little iterator improvement: ability to store index in iterator 2003-11-10 16:13:38 +00:00
Ilia Alshanetsky 099adae29c Fixed bug #26168 (shtool availability check in phpize). 2003-11-10 04:33:49 +00:00
Ilia Alshanetsky 7fe481c9d0 Fixed bug #26176 (Fixed handling of numeric keys in INI files). 2003-11-10 04:12:38 +00:00
a21ab978fb ChangeLog update 2003-11-10 01:31:47 +00:00
Marcus Boerger c300480441 Synch exposed functions with c-level iterator functions 2003-11-09 23:00:50 +00:00
Marcus Boerger 159c538bcf Major update:
- Remove all overloading hooks -> array_read/array_access must be rewritten
- Remove all basic iterators
- Remove all 'spl_' prefixing exposed to user level
- Add RecursiveIterator, RecursiveIteratorIterator
- Add DirectoryIterator, DirectoryTreeIterator
- Add some examples
2003-11-09 14:05:36 +00:00
44dc9eb3e4 ChangeLog update 2003-11-09 01:32:00 +00:00
Marcus Boerger e72339284f Add method reflection_class::implementsInterface()
Allow string & reflection_class in isSubclassOf()
2003-11-08 21:41:42 +00:00
Marcus Boerger ab6b1adf0b Fix reflection_class::isSubclassOf() 2003-11-08 21:02:21 +00:00
Sergey Kartashoff 899b960ed1 - Mnogosearch Extension was updated to include mnogosearch-3.2.16 features 2003-11-08 14:36:32 +00:00
Marcus Boerger 316854323d Handle exceptions in casting more gracefully.
This fixes bug #26166
2003-11-08 14:06:08 +00:00
Moriyoshi Koizumi ed45157047 Remove NEWS entry since the fix went to the branch as well. 2003-11-08 04:44:26 +00:00
a245f3b7a2 ChangeLog update 2003-11-08 01:32:13 +00:00
Ilia Alshanetsky 44c09f8401 Bug fixing news. 2003-11-07 19:19:15 +00:00
Ilia Alshanetsky 2016ac0a73 Fixed write support. 2003-11-07 19:12:46 +00:00
Ilia Alshanetsky d9bf51b17c 10-18% optimization of fetch_array(), when both number & string indexes are
created.

# Do we want to MFH the change (for ext/mysql) into 4.3.X?
2003-11-07 17:20:49 +00:00
Marcus Boerger f3d385a587 Make __autoload() faster 2003-11-07 11:47:50 +00:00
Marcus Boerger 5112a4ae24 Update Iterators: Call next at the correct point in time. 2003-11-07 10:47:47 +00:00
Marcus Boerger 77923b0eb1 Add missing initialization. 2003-11-07 10:22:16 +00:00
Marcus Boerger 1e44370536 Make these class entries available for inheriting classes 2003-11-07 09:33:06 +00:00
Marcus Boerger 220e41a421 Move typedef to where it is needed now. 2003-11-07 09:26:18 +00:00
Marcus Boerger ccb6311406 Make php_stat() available for extensions. 2003-11-07 09:16:16 +00:00
23d16aa99b ChangeLog update 2003-11-07 01:32:20 +00:00
Ilia Alshanetsky 648a1e0d78 Added mandatory safe_mode & open_basedir checks. 2003-11-07 01:17:32 +00:00
Ilia Alshanetsky c258f9c8a2 Fixed bug #26148 (Print the notice before modifying variable on type
mismatch).

# This only crashes in ZE1, however logic dictates that it may also crash
# in ZE2 because variable does not have a correct type.

Patch by: morten-bugs dot php dot net at afdelingp dot dk
2003-11-06 20:33:47 +00:00
Frank M. Kromann f68114414b Getting rid of c++ style comments 2003-11-06 16:50:40 +00:00
Sascha Schumann db56268231 WS 2003-11-06 14:31:33 +00:00
Sascha Schumann 5a32c21f46 Fix a format string
Nuke a sprintf (slooow)

And embed the charset as part of the hashed details (persistent conn key),
because the function otherwise happily returns incompatible connections.
(e.g. US7ASCII vs. UTF8; the client-side charset is not alterable once a
 connection has been established.)
2003-11-06 14:29:09 +00:00
Frank M. Kromann 2c3edcea09 MFB: Adding new features from ming 0.3a. 2003-11-06 07:29:38 +00:00
9ebc91b513 ChangeLog update 2003-11-06 01:31:42 +00:00
Ilia Alshanetsky f884a5b437 Kill unused variables. 2003-11-05 23:44:09 +00:00
Rui Hirokawa 744212ab45 added buffer reallocation for filename. 2003-11-05 23:27:41 +00:00
Uwe Schindler 614fec8dbb remove unix crap 2003-11-05 08:33:46 +00:00
c3b9e5811c ChangeLog update 2003-11-05 01:32:23 +00:00
Marcus Boerger f9d13098e7 Prevent some SEGV's when Exceptions are thorown inside iterators. 2003-11-04 22:07:59 +00:00
Marcus Boerger e912635f82 Removedouble efree call 2003-11-04 22:01:37 +00:00
Ilia Alshanetsky 046904f2b1 Fixed bug #26113 (remove leftover local file when ftp_get/ftp_nb_get fails) 2003-11-04 20:56:47 +00:00
Moriyoshi Koizumi 68bab385cb __tostring() handler should be binary-safe 2003-11-04 17:34:56 +00:00
Moriyoshi Koizumi aef5f793b8 Fix one more test 2003-11-04 17:14:07 +00:00
Moriyoshi Koizumi 668e8a87e6 Fix tests 2003-11-04 16:18:21 +00:00
Moriyoshi Koizumi f0725828f0 Add XML_SAX_IMPL constant to determine which implementation (libxml / expat)
is selected for SAX interface.
2003-11-04 16:15:52 +00:00
Moriyoshi Koizumi 595426ac8d BFN 2003-11-04 16:09:16 +00:00
Moriyoshi Koizumi bb6f3a115e Fixed bug #24394 (serializing cross-referenced objects causes segfault) 2003-11-04 16:08:10 +00:00
Stanislav Malyshev e69aaa8b05 add zend_iterators.c zend_interfaces.c to make 2003-11-04 15:27:08 +00:00
Uwe Steinmann 89f7e98f8f ignore some files 2003-11-04 09:16:40 +00:00
Uwe Steinmann e0c99ce247 - added more files 2003-11-04 09:15:47 +00:00
Uwe Schindler c22ddad21e SunONE servers 2003-11-04 09:02:56 +00:00
foobar 5b4e619cdd - Moved all the mime_magic.c specific stuff into their own header file
to prevent possible compile failures.

# Should fix bug #26103
2003-11-04 05:15:19 +00:00
Ilia Alshanetsky b520c9d42c Fixed bug #26097 (gdImageColorClosestAlpha() returns incorrect results). 2003-11-04 01:55:50 +00:00
6d5ddf6b78 ChangeLog update 2003-11-04 01:32:36 +00:00
foobar 84e18a6f68 Missing file 2003-11-03 23:36:05 +00:00
Moriyoshi Koizumi 8572fc2af5 Add regression test for XPath support 2003-11-03 22:49:24 +00:00
Moriyoshi Koizumi 2a3e05e865 Fix test 2003-11-03 22:42:56 +00:00
John Coggeshall 5d0f70a004 Should've added a few more cases to that bugfix switch. 2003-11-03 22:34:44 +00:00
John Coggeshall 8a36e954f0 Fixed a bug -- Nodes of certain types don't actually have ID values and PHP
would segv trying to read one.
2003-11-03 16:35:58 +00:00
Derick Rethans 3ab8d263b8 - Always store the URI path in the streams structure, and expose it with
stream_get_meta_data().
2003-11-03 14:12:46 +00:00
Sterling Hughes 040d945fb7 make this macro safe 2003-11-03 13:55:19 +00:00
Sterling Hughes 6ab221b3f6 remove attributes from this check 2003-11-03 13:50:43 +00:00
Sterling Hughes e963f0b168 - Stop a crash in xpath
- Remove the ability to access attributes via the -> operator, attributes
are accessed via the array indicators
2003-11-03 13:36:23 +00:00
Stefan Esser b763dd42c3 Fixed possible crashbug. 2003-11-03 11:46:33 +00:00
Marc Boeren 22872bb8fa Make life for the doc-team easier, without causing harm ;-) 2003-11-03 11:15:23 +00:00
Stefan Esser f670f9c683 It is usually a good idea to write only into allocated bufferspace. 2003-11-03 09:16:24 +00:00
ab676c88dc ChangeLog update 2003-11-03 01:34:42 +00:00
Moriyoshi Koizumi 8e1bbd9aea Proto fix 2003-11-02 18:54:08 +00:00
8abeb68cbb ChangeLog update 2003-11-02 01:31:52 +00:00
Greg Beaver 997db6551a checkExtension() was a complete disaster, can't believe it didn't cause any problems before. 2003-11-01 05:06:27 +00:00
Greg Beaver 1e2a437c0c new unit test 2003-11-01 05:05:34 +00:00
Greg Beaver 43d1ad8372 new unit test 2003-11-01 03:32:15 +00:00
Greg Beaver 48bca64444 fix bug found by unit test 2003-11-01 03:31:52 +00:00
05dfdf1961 ChangeLog update 2003-11-01 01:31:52 +00:00
Greg Beaver 014d039459 add optional dependencies to test 2003-10-31 22:53:31 +00:00
Greg Beaver 6d0360204d better error messages, fix potential problems in the future 2003-10-31 22:53:20 +00:00
Greg Beaver 5d0cc08805 fix warning 2003-10-31 22:52:33 +00:00
Greg Beaver 70a852ebdc fix test 2003-10-31 22:51:43 +00:00
Greg Beaver d4150d6095 add fancy SKIPIF code, fix test 2003-10-31 22:46:57 +00:00
Greg Beaver 6c403c7794 add fancy SKIPIF code 2003-10-31 22:39:43 +00:00
Greg Beaver f51b3c0cb1 fix test 1, add in nifty SKIPIF code 2003-10-31 22:30:37 +00:00
Greg Beaver 5754cfe68c deleted code says it all 2003-10-31 22:22:17 +00:00
Greg Beaver 3caf118763 add in skip to match other tests 2003-10-31 17:41:57 +00:00
Greg Beaver 4da5da699e new test case 2003-10-31 17:39:59 +00:00
Uwe Schindler d3d94ff2f3 fix header handler 2003-10-31 17:31:46 +00:00
Greg Beaver 25e1f920d1 major bug - "not" dependency check would completely fail. Guess nobody ever tried it before :) 2003-10-31 17:22:15 +00:00
Moriyoshi Koizumi 2f27fe3574 Add test case for bug #26010 2003-10-31 17:12:16 +00:00
Greg Beaver f3102f9d6b was checking the wrong parameter for a v. - should be checking version 2003-10-31 17:01:39 +00:00
Greg Beaver 8c77fbe743 phpdoc fix 2003-10-31 16:50:56 +00:00
Moriyoshi Koizumi 06d541a63a SKIP tests if compress.zlib wrapper is not available. 2003-10-31 16:12:27 +00:00
foobar 2c9f29b9b6 cosmetics 2003-10-31 13:48:34 +00:00
Uwe Schindler 4dca199a98 Send correct default content type from php.ini not static text/html (important for other charsets than iso-8859-1) 2003-10-31 12:20:33 +00:00
Marcus Boerger 91b3f34874 Make this work again 2003-10-31 07:41:53 +00:00
Greg Beaver 899432fac8 finished unit test 2003-10-31 05:14:32 +00:00
Greg Beaver 9ed1956bfa bump to 1.3b4, add note about fix for #171 2003-10-31 04:56:08 +00:00
Greg Beaver 5c76e88d0e fix #171, --alldeps with a rel="eq" should install the required version, if possible 2003-10-31 04:52:00 +00:00
Ilia Alshanetsky 00635d0807 Fixed bug #26042 (memory leak if mcrypt_generic_deinit() is not called
after every mcrypt_generic_init() call).

# This will be MFHed into 4.3.X tree after release.
2003-10-31 04:33:51 +00:00
4adbd1dbf6 ChangeLog update 2003-10-31 01:32:21 +00:00
foobar b4c05a5068 MFB 2003-10-31 01:29:59 +00:00
Greg Beaver 76d66203f4 add some error control to analyzeSourceCode() for really rare cases - invalid PHP 2003-10-31 01:17:47 +00:00
Greg Beaver f244e77f6b start on unit test for PEAR_Common 2003-10-31 01:17:04 +00:00
foobar 9e0da5e741 Next is beta3.. 2003-10-30 15:14:31 +00:00
Zak Greant 8802c3ad8c Ensure that INI entries are unregistered on shutdown 2003-10-30 13:32:18 +00:00
Georg Richter 8f1f9b2f6d changed return value from long to boolean for mysql_execute 2003-10-30 12:35:16 +00:00
Stanislav Malyshev 44c3f0066b make CATCH opcode use "class" T like other opcodes do - via IS_CONST 2003-10-30 11:11:48 +00:00
Andi Gutmans 42a2bc6e6c - Typo 2003-10-30 10:15:59 +00:00
Andi Gutmans 0b3fe78906 - Beta 2 2003-10-30 10:07:26 +00:00
Christian Stocker 038a7c4831 make test work with libxml2 2.6.x and lower
(I used lowercase html again in the EXPECT part, as this is now the default
behaviour for newer libxml2 releases)
2003-10-30 10:06:00 +00:00
Andi Gutmans b72364ccc1 - Beta 2 2003-10-30 10:00:44 +00:00
Andi Gutmans bb12ffe41f - Move uuencode to the right place (ext/standard) 2003-10-30 09:58:52 +00:00
Andi Gutmans db38966aba - Don't fix include_once() case sensitivity problem for beta 2.
- I suggest discussing to stop supporting win95 and NT 4 in our binary
- distributions and change the code to #ifdef.
2003-10-30 09:58:17 +00:00
Andi Gutmans 9e007de0c2 - Go with beta 2 2003-10-30 09:57:10 +00:00
3a65317f79 ChangeLog update 2003-10-30 01:33:04 +00:00
foobar 572396fe33 fixes are fixes.. 2003-10-30 01:12:40 +00:00
foobar 61bee15852 Remove bogus entry 2003-10-30 01:08:43 +00:00
Ilia Alshanetsky ab7ee13670 Added substr_compare(). 2003-10-30 00:49:33 +00:00
Moriyoshi Koizumi e6feb47f00 Some clean-ups 2003-10-29 22:25:57 +00:00
Moriyoshi Koizumi bb68e18622 Add BFN entry to HEAD, as this bug is not likely to be fixed in 4.3.x. 2003-10-29 22:18:24 +00:00
Moriyoshi Koizumi cca80292fe This check's always necessary. 2003-10-29 21:50:15 +00:00
Andi Gutmans 78cb1bfe67 - This should work. 2003-10-29 21:33:05 +00:00
Dan Kalowsky e33e8b1f01 Added in NEWS entries for the Panther updates 2003-10-29 21:32:28 +00:00
Andi Gutmans 1428850762 - Allow for case-insensitivity of include_once()/require_once() on
- Windows
2003-10-29 21:14:17 +00:00
Georg Richter 73be3af983 added functions for embedded server 2003-10-29 20:52:25 +00:00
Georg Richter 8caae993a3 added support for embedded MySQL Server
some prototype fixes
2003-10-29 20:48:47 +00:00
Moriyoshi Koizumi 28369f6e86 Add test case for bug #26003 2003-10-29 19:45:38 +00:00
Moriyoshi Koizumi 13f16d5690 MFB(r-1.109.2.12): A possible fix for bug #26026 2003-10-29 18:48:37 +00:00
Moriyoshi Koizumi 9547ac2dde Oops. 2003-10-29 18:04:24 +00:00
Moriyoshi Koizumi 088acb6efb Update test for an additional check to ensure the variable used for an
index would not be modified during deference.
2003-10-29 17:58:40 +00:00
Moriyoshi Koizumi 734254513c Do not use convert_to_*_ex() for ordinary zval pointers. 2003-10-29 17:50:56 +00:00
Moriyoshi Koizumi 973f606067 Use pretty macro instead. 2003-10-29 17:45:56 +00:00
Marcus Boerger 6b57bb1675 Add simplexml array handlers that allow to explicitly work with attributes. 2003-10-29 12:06:52 +00:00
Frank M. Kromann c26303c789 On win32 extensions starts with php_ 2003-10-29 05:42:26 +00:00
Frank M. Kromann aefb8fe2f8 Fix typo in parameter 2003-10-29 05:34:00 +00:00
Ilia Alshanetsky e0a943dcdb Fixed test. 2003-10-29 05:04:40 +00:00
e05a4acc8f ChangeLog update 2003-10-29 01:32:08 +00:00
Sara Golemon 70f4a0c9ec Allow userspace filters to use wildcards 2003-10-29 00:19:57 +00:00
Sara Golemon 735b24a727 Allow userfilter instantiation to programmatically fail by returning false.
Equivalent of Cspace filter "failure" by returning NULL.
2003-10-28 23:56:57 +00:00
Andi Gutmans 530789987f - Head up! I'm reverting the patch which allows for expressions in constant
- declerations. Allowing the access of other constants in this code is
- flawed. We are reverting back to PHP 4's static scalars.
- Don't worry if you get the following msg when compiling:
- "zend_language_parser.y contains 3 useless nonterminals and 22 useless rules"
- I didn't nuke the code in case we have some brilliant ideas after beta 2
2003-10-28 23:44:23 +00:00
Sara Golemon 495fd01ca4 Stop looking once we've found a matching filter. 2003-10-28 23:29:16 +00:00
Sara Golemon c9b49af990 Extend Filter matching to check wildcards at multiple levels.
Ex:  foo.bar.baz.bomb
Searches:
     foo.bar.baz.bomb itself,
     foo.bar.baz.*,
     foo.bar.*, and
     foo.*

Also changed tempvar "char wildcard[128];" to an estrdup() to
deal with potential filternames longer than 127 bytes.
2003-10-28 21:52:59 +00:00
George Schlossnagle b6f605a65e note pcntl_wait() 2003-10-28 19:04:38 +00:00
Marcus Boerger 851a02e87f Give some freedon to c iterators but not in userspace. 2003-10-28 18:46:37 +00:00
George Schlossnagle 797ac80e7c Added pcntl_wait, a wraspper around wait()/wait3() 2003-10-28 17:08:18 +00:00
foobar 11754f587c config.h is static here 2003-10-28 15:24:02 +00:00
Shane Caraveo 4bde74c3be fix crash in do_implement_interface when compiling
pear/PHPUnit/Framework/TestCase.php line 63
while only interface_gets_implemented is the issue in this instance, both
these vars were unitialized, causing potential other issues
2003-10-28 05:24:46 +00:00
Ilia Alshanetsky a4eebd74a6 Fixed compiler warning. 2003-10-28 04:22:12 +00:00
Shane Caraveo 4e283ed686 fix win32 build 2003-10-28 04:21:29 +00:00
Ilia Alshanetsky 8f6b374d1d By popular demand renaming uu(encode/decode) to convert_uu(encode/decode). 2003-10-28 04:02:11 +00:00
b5f6cda2e9 ChangeLog update 2003-10-28 01:32:07 +00:00
Moriyoshi Koizumi 1085c08aa5 Add missing reinitialization call 2003-10-27 22:45:58 +00:00
Moriyoshi Koizumi 69dcdcb7c1 Fixed bug #26003 (fgetcsv() not binary-safe on null bytes) 2003-10-27 22:36:44 +00:00
Christian Stocker 9e5bc9509e use php_error_docref 2003-10-27 19:52:50 +00:00
foobar d77ae5b571 - Fix win32 build. 2003-10-27 19:05:01 +00:00
Christian Stocker 901153b441 extending of domDocument class test 2003-10-27 17:51:55 +00:00
Christian Stocker e735e44f52 added html test 2003-10-27 17:36:44 +00:00
Andi Gutmans b29686a6e5 - Add uuencode.c to the project 2003-10-27 15:49:11 +00:00
Christian Stocker 0d59b3dda6 xinclude test 2003-10-27 15:32:44 +00:00
Christian Stocker 3cd8d4a865 xinclude support readded to ext/dom 2003-10-27 15:32:22 +00:00
Christian Stocker df7799762a streams test 2003-10-27 15:13:12 +00:00
Christian Stocker 1d40b25f68 - streams test 2003-10-27 15:12:20 +00:00
foobar f360f32a35 hrm 2003-10-27 15:04:01 +00:00
Christian Stocker e311179b72 exception/try/catch test 2003-10-27 12:52:37 +00:00
Christian Stocker c07a013345 forgot one file 2003-10-27 12:17:28 +00:00
Christian Stocker 45614453cd fix for test Nr 3 bug (not freeing all params) 2003-10-27 12:16:35 +00:00
Christian Stocker 11a63934d4 added interop test 2003-10-27 11:34:45 +00:00
Christian Stocker d8f6f9d763 added SKIPIF extension is not loaded checks 2003-10-27 11:28:43 +00:00
Christian Stocker a8063d776c interop test 2003-10-27 11:24:30 +00:00
Christian Stocker 9caf3e1253 totally wrong expected output... 2003-10-27 08:49:11 +00:00
Christian Stocker acd5eb24db some tests (test #3 is currently broken due to memleak, fix is on the way) 2003-10-27 08:46:55 +00:00
Marcus Boerger dcc060382a Add another test 2003-10-27 08:43:52 +00:00
Marcus Boerger da9ce6380c Rename test 2003-10-27 08:43:25 +00:00
Stig Bakken 5b89e67334 * array_merge is more ticklish in php5 2003-10-27 06:52:14 +00:00
Ilia Alshanetsky 17b9b2dc85 Added uuencode() & uudecode() functions. 2003-10-27 05:35:41 +00:00
ebf35bae35 ChangeLog update 2003-10-27 01:32:11 +00:00
Rob Richards a807b34427 cannot import nodes without document 2003-10-27 01:12:53 +00:00
Christian Stocker eb2104d17c remove unneeded variables 2003-10-27 00:03:28 +00:00
Christian Stocker e5bd8fdd0d - Make distinction in error-reporting between Warnings and Errors from libxml2
- Use internal error_handlers during html-parsing as well
2003-10-27 00:01:39 +00:00
Christian Stocker 70f75fff89 fix test (validation returns a warning, if xml is not valid) 2003-10-26 19:35:08 +00:00
Christian Stocker 4e5d4006fd - added interop between DOM and SimpleXML example
- added xpath example
2003-10-26 19:15:52 +00:00
Christian Stocker 1e46a26f0f fix example for saving to file 2003-10-26 18:56:03 +00:00
Rob Richards 5191cd3e99 add interop with dom - simplexml_import_dom
change write behavior on elements to change actual contents
change clone method to clone node and not document
fix a few libxml mem leaks
2003-10-26 16:00:58 +00:00
Rob Richards 09c09f4279 use common structures from php_libxml.h 2003-10-26 15:57:31 +00:00
Rob Richards 207dc90924 add interop with simplexml - dom_import_simplexml
fix cloneNode with elements
2003-10-26 15:57:02 +00:00
Rob Richards d29fb55bbb common functions for interoperability 2003-10-26 15:53:20 +00:00
Marcus Boerger 7e90647611 Add attribute test 2003-10-26 13:27:26 +00:00
Marcus Boerger 14911a136f Fix memory corruption 2003-10-26 13:27:03 +00:00
Marcus Boerger c7995af071 Add foreach test 2003-10-26 13:18:59 +00:00
Marcus Boerger 6131454cca Add iterator to make foreach work 2003-10-26 13:11:56 +00:00
Marcus Boerger 869ce07c96 And get the last thing working 2003-10-26 01:17:51 +00:00
Marcus Boerger ad172161e0 Add test 2003-10-26 01:04:25 +00:00
Marcus Boerger 2318a83e81 Fix tests 2003-10-26 01:03:21 +00:00
Sebastian Bergmann b2f860ce6d Patch by Steph to sanitize ssize_t typedef on Windows. 2003-10-26 00:42:42 +00:00
Marcus Boerger 0d95b23a51 Fix casting (the question is when & what should be freed here). 2003-10-26 00:39:48 +00:00
Marcus Boerger 2befd022b1 Fix test 2003-10-26 00:35:56 +00:00
38f336d464 ChangeLog update 2003-10-26 00:32:26 +00:00
Marcus Boerger 37f6618c64 Allow static methods being called from sqlite sql. Notice by Stphane Mariel 2003-10-25 23:17:15 +00:00
Marcus Boerger 07d94c2410 Fix test 4 with the help of Rob 2003-10-25 23:06:23 +00:00
Marcus Boerger 26bfe3f83a Add zend_make_callable() which allows to make zval's callable zval's.
At the moment this function only converts strings of the form class::method
to an array(class,method).
2003-10-25 22:58:06 +00:00
Marcus Boerger 46251fa3f8 Show if Schemas are supported 2003-10-25 21:28:01 +00:00
Marcus Boerger 873bcefa52 Fix memleaks 2003-10-25 21:08:33 +00:00
Marcus Boerger 0197d5b916 More testing 2003-10-25 21:07:37 +00:00
Marcus Boerger 0a68fb0222 Fix warning 2003-10-25 20:28:39 +00:00
Marcus Boerger 168f2ac787 Fix test 2003-10-25 20:27:48 +00:00
Marcus Boerger f67510a0d8 Add some testing 2003-10-25 20:00:04 +00:00
Marcus Boerger da8ce17f7a This forces a better error message for non working clone calls. 2003-10-25 19:28:31 +00:00
Marcus Boerger cad49f1fb0 And use things to throw an exception here 2003-10-25 19:13:06 +00:00
Marcus Boerger 4625529abe You shall not clone Exception instances 2003-10-25 19:07:09 +00:00
Marcus Boerger fe3db4c7e9 You shall not clone reflection_xx instances 2003-10-25 19:06:35 +00:00
Marcus Boerger 6c05957aa2 Update 2003-10-25 15:11:49 +00:00
Marcus Boerger 52d2f8f579 Update 2003-10-25 14:54:10 +00:00
Marcus Boerger ee0f709e4b - Fixed bug #25581 (getimagesize () return incorrect values on bitmap
(os2) files)
2003-10-25 14:06:29 +00:00
Rui Hirokawa c4b163de88 encoding detection shouldn't be performed if mbstring.http_input is set to auto or any valid encoding. 2003-10-25 10:29:07 +00:00
Sebastian Bergmann e1fd9aed8f Fugbix typo. 2003-10-25 09:20:47 +00:00
Sebastian Bergmann 8bb30308f8 s/Throwable/Printable: Exception has become an internal class since I initially documented interfaces. 2003-10-25 09:18:23 +00:00
a82b296aa7 ChangeLog update 2003-10-25 00:32:55 +00:00
Andi Gutmans 23c00b0d5d - Fix typo 2003-10-24 22:13:00 +00:00
Adam Dickmeiss dca01635d5 For YAZ, RSHUTDOWN closes persistent connections that have been idle
more than yaz.keepalive seconds. Default value for config yaz.keepalive
is 120 seconds. The shutdown prevents many sockets in CLOSE_WAIT state.
2003-10-24 19:32:09 +00:00
Marcus Boerger eabcb173b1 Revert accidential commit 2003-10-24 18:44:40 +00:00
Marcus Boerger b28db6a2d3 Revert accidental commit 2003-10-24 18:42:00 +00:00
Marcus Boerger 071eaf8576 Zend/ZEND_CHANGES 2003-10-24 18:24:28 +00:00
Marko Karppinen 074ca45399 Workaround for bug #25955
Generalized a Darwin check in dns.c to a check for inet_pton() (kalowsky)
2003-10-24 17:09:36 +00:00
Greg Beaver 663b12796b add #25174 note 2003-10-24 05:34:59 +00:00
Greg Beaver 01a3fdbb3a fixed #25174 Wrong handling of readlink() in OS/Guess.php 2003-10-24 05:33:37 +00:00
Ilia Alshanetsky 4d349926ff Fixed some test names.
Removed extraneous \r from a number of tests.
2003-10-24 03:31:57 +00:00
c32c3264ae ChangeLog update 2003-10-24 00:34:04 +00:00
Gabor Hojtsy 6345a7aa7b The web server user name starts with IUSR_ and not ISUR_,
and some clarifications from Phil Driscoll
2003-10-23 09:53:31 +00:00
Marcus Boerger a3d6fb043d Update tests 2003-10-23 07:14:50 +00:00
Marcus Boerger 000e01e5d3 Update 2003-10-23 07:09:04 +00:00
Sebastian Bergmann 60f7896634 Add zend_interfaces.{c|h}. 2003-10-23 04:41:09 +00:00
a6210d2d75 ChangeLog update 2003-10-23 00:33:10 +00:00
Ilia Alshanetsky 5dac0007f3 Fixed bug #25922 (Crash in error handler when 5th argument is modified). 2003-10-22 23:42:55 +00:00
Ilia Alshanetsky 6fa9efaf4c Don't forget to compile zend_interfaces.c 2003-10-22 21:43:39 +00:00
Marcus Boerger 8abb3bd448 Impement userspace iterator interfaces and tests. See tests for details
on the names.
2003-10-22 20:04:48 +00:00
Marcus Boerger 3c62b3b5ac Expand Interface C API.
In short: zend_class_entry->interface_gets_implemented()  allows to modify
the class entry of a class when an interface gets implemented.
2003-10-22 19:59:58 +00:00
Marcus Boerger 0bb59f337b The string conversion method should be named __toString() 2003-10-22 19:00:42 +00:00
Rui Hirokawa 0ce637835a name/value in multipart/form-date will be converted into internal encoding when mbstring.encoding_translation is On. 2003-10-22 14:14:05 +00:00
Ilia Alshanetsky 980c3b2b4c Fixed compile warnings. 2003-10-22 02:38:47 +00:00
5148ffdf90 ChangeLog update 2003-10-22 00:32:20 +00:00
foobar 4dfbc210db Fixed bug #25768 2003-10-21 11:48:31 +00:00
Marcus Boerger de8847fc74 We don't have this yet 2003-10-21 08:29:22 +00:00
Marcus Boerger 2c454d7a1f Bugfix #25930 Can't compile snprintf.c 2003-10-21 07:36:43 +00:00
Marcus Boerger 91099f3f4f Make this clear 2003-10-21 06:41:26 +00:00
Moriyoshi Koizumi 48fbe0af2a Add a test case for getElementsByTagName() / getElementsByTagNameNS() 2003-10-21 02:43:24 +00:00
Moriyoshi Koizumi bde1fe4d81 Missing '&' in the result of get_html_translation_table() 2003-10-21 01:46:54 +00:00
06370c9132 ChangeLog update 2003-10-21 00:33:44 +00:00
Andi Gutmans 28957fd536 - Add comment from Timm 2003-10-20 22:02:10 +00:00
Rob Richards 44164170f3 implement namespace nodes
fix getElementsByTagName
fixes to attribute namespaces
remove safemode stuff as its handled in streams
2003-10-20 15:50:34 +00:00
Moriyoshi Koizumi 5dac05638f Fix typo 2003-10-20 15:45:01 +00:00
Moriyoshi Koizumi 3929cf22d8 Fix compiler warnings 2003-10-20 15:41:53 +00:00
Tomas V.V.Cox f811341773 go with 1.3b3 (will shipped with PHP4.3.4RC2) 2003-10-20 15:33:54 +00:00
Moriyoshi Koizumi 569309765c Fix compiler warnings 2003-10-20 15:33:40 +00:00
Ilia Alshanetsky 30cc4dc8c9 Fixed bug #25918 (Possible crash in mime_content_type()). 2003-10-20 14:36:51 +00:00
Ilia Alshanetsky 21fceae7d6 Fixed bug #25923 (mail() modifies the to & subject arguments). 2003-10-20 14:22:01 +00:00
Marcus Boerger c92b0202c7 Update 2003-10-20 10:26:03 +00:00
Marcus Boerger 445aa744e7 Update 2003-10-20 10:06:31 +00:00
foobar 8f4ed0bfa1 Missing .cvsignore 2003-10-20 05:37:33 +00:00
Kai Schroeder 3d4586e965 Fixed typo 2003-10-20 04:49:18 +00:00
Shane Caraveo c55f987230 fix the stat check in stream open
addref to the stream context
2003-10-20 03:11:45 +00:00
Ilia Alshanetsky 24793840b2 Fixed unused variable warning on *nix. 2003-10-20 02:21:25 +00:00
Ilia Alshanetsky 26f7af25ba Fixed bug #25895 (Incorrect detection of safe_mode limited ini options) 2003-10-20 01:59:35 +00:00
634d8aa5ed ChangeLog update 2003-10-20 00:34:48 +00:00
Rob Richards 56ce4a84e7 add generic default error handling rather than the default stderr 2003-10-19 23:34:39 +00:00
Rob Richards 33004a01ee unescape filepath which libxml excapes 2003-10-19 23:25:48 +00:00
Shane Caraveo 052f9378b2 add global init/shutdown functions for libxml. this is required as
shutdown is not safe to call multiple times, and to make streams work
correctly some init stuff has to happen in a specific order
2003-10-19 23:17:56 +00:00
Shane Caraveo 399095e7a5 Add libxml extension for common code that is needed to be shared between
various xml extensions.  currently the only implemented support is the
addition of the streams support for libxml.  One new function,
libxml_set_streams_context, which allows a streams context to bet set
prior to loading or writing documents.  This works transparently with any
extension that uses libxml.  All ini settings that effect streams will
also now effect the loading and writing of xml documents.

TODO: linux support, not sure if config.m4 will work right.
2003-10-19 21:48:46 +00:00
Shane Caraveo 3a6ff32e2b finish file uri support, this stuff was unecessary. 2003-10-19 21:19:54 +00:00
Shane Caraveo 2a41429472 A simpler patch to add file uri support 2003-10-19 20:59:12 +00:00
Shane Caraveo 0029a45795 revert file: support in preparation for simpler patch 2003-10-19 20:57:20 +00:00
Shane Caraveo e5103d764a make file uri's work with streams 2003-10-19 20:04:33 +00:00
Shane Caraveo 4505a611ba make parse_url work correctly for file uri's on windows, such as
file:///c:/somepath/somefile.txt
2003-10-19 20:00:51 +00:00
Stanislav Malyshev e8e0c6fb41 fix wrong string length for registry values 2003-10-19 13:47:35 +00:00
Stanislav Malyshev 06aae4bd9c Enable setting php.ini path via the registry 2003-10-19 10:39:27 +00:00
Stanislav Malyshev 405361f7ea fix compilation 2003-10-19 10:36:36 +00:00
Stanislav Malyshev 3e828db413 Add function for getting php.ini path from registry 2003-10-19 10:22:21 +00:00
Andi Gutmans df033b58a0 - Nuke const in function parameters. I just can't remember why this exists
- and it seems no one else remembers either. It has no semantic meaning.
2003-10-19 08:38:48 +00:00
d9a61412c1 ChangeLog update 2003-10-19 00:32:44 +00:00
Marcus Boerger b0b82541e8 Fix class/iterator relationship & handling 2003-10-18 18:43:31 +00:00
Marcus Boerger 15bfbc7619 Fallback to old behavior until we have a default iterator that respects
visibility we do the array trick.
2003-10-18 18:20:42 +00:00
Wez Furlong 0577d9310b bah. does it really make any difference where rewind lives in the struct!? 2003-10-18 15:56:16 +00:00
Marcus Boerger ac262baf19 Change order: Optional rewind() to end of structure 2003-10-18 14:56:47 +00:00
ba21b244b5 ChangeLog update 2003-10-18 00:32:33 +00:00
Uwe Schindler d3656eff45 new SunONE server 2003-10-17 21:58:26 +00:00
Wez Furlong 398f032203 fix cruft from previous incarnation of the iterators 2003-10-17 21:03:01 +00:00
Wez Furlong d8d1ca3f3b add com iterator support 2003-10-17 20:52:18 +00:00
Marcus Boerger 65657103ad WS 2003-10-17 18:47:49 +00:00
Marcus Boerger 641a55a4dd Show if a class/object is iterateable 2003-10-17 17:51:01 +00:00
Marcus Boerger 9fbaa7aca5 - Make use of engine iterators 2003-10-17 17:21:56 +00:00
Marcus Boerger 25aa8b715e Added c-api for iterators
# After 4 Month work and endless discussions...
2003-10-17 17:19:44 +00:00
Marcus Boerger 08d1c991cf The sqlite classes need to be final 2003-10-17 08:17:09 +00:00
Marcus Boerger 43a948379a Fix showing final/abstract for classes 2003-10-17 08:15:48 +00:00
Marcus Boerger 4943cae926 pre/hasprev have nothing to do with iteration 2003-10-17 08:01:49 +00:00
Ilia Alshanetsky a2e95e4b91 Fixed formatting issue. 2003-10-17 02:47:44 +00:00
Ilia Alshanetsky c66bcc7b74 Fixed if() condition. 2003-10-17 02:29:06 +00:00
Ilia Alshanetsky 4c4d5a02b9 Fixed formatting issues (patch by: Joe Orton) 2003-10-17 02:21:27 +00:00
fd211a82d7 ChangeLog update 2003-10-17 00:34:02 +00:00
Pierre Joye 64e499aaef - Fix RPC call without proxy (silence warnings&notices)
nota bene: the proxy codes should be cleaned, one day ;)
2003-10-16 18:16:38 +00:00
Ilia Alshanetsky 1459361c3e Do not strip trailing spaces. 2003-10-16 04:24:07 +00:00
3a6ea5b696 ChangeLog update 2003-10-16 00:34:03 +00:00
Marcus Boerger 4073a08488 Add oo support function zend_class_implements() 2003-10-15 06:24:17 +00:00
Marcus Boerger d148ff770f Fix cast function 2003-10-15 06:23:07 +00:00
Ilia Alshanetsky fff7c6098b Fixed bug #25777 (Do not rtrim() of text fields fetched from mssql) 2003-10-15 03:31:29 +00:00
6c317f5ad9 ChangeLog update 2003-10-15 00:34:01 +00:00
Wez Furlong 54d1769653 MFB Fix for #25825 2003-10-15 00:18:53 +00:00
George Schlossnagle 54a31f5a88 fix for dereferncing null pointer (mfladischer@gmx.net) 2003-10-15 00:15:23 +00:00
Andi Gutmans 8e2a3ec24b - Argh, the suffering copy&paste can cause 2003-10-14 18:13:55 +00:00
Andi Gutmans a24df5cf55 - Fix compile problem. 2003-10-14 17:26:36 +00:00
Andi Gutmans 01ba151cc3 - Fix the fix by making sure the new block is in the right free list. 2003-10-14 14:44:19 +00:00
Stanislav Malyshev 6a71c1d33f The freed one is a hashtable - may matter if Hashtables are allocated
differently
2003-10-14 14:36:23 +00:00
Andi Gutmans 1a6f1e8c6a - Support merging free block which was created by reallocing to smaller
- size. This should fix some performance issues. This code is still not
- thoroughly tested.
2003-10-14 14:23:12 +00:00
Sascha Schumann a26c1e1da1 Embed date of last modification 2003-10-14 08:11:37 +00:00
Uwe Steinmann 84d156ae15 - limit writing of field data to field len + 1
This fixed many memory overrun errors which appeared
	in several scripts when writing a record.
2003-10-14 07:49:34 +00:00
Ilia Alshanetsky 3c84c0eefc Fixed bug #25836 (last key of multi-dimensional array passed via GPC
not being escaped when magic_quotes_gpc is on).
2003-10-14 03:49:13 +00:00
b6e65f0d37 ChangeLog update 2003-10-14 00:33:26 +00:00
Wez Furlong c35810c203 unintialized variable.
Patch by Joe Orton
2003-10-13 11:46:36 +00:00
Wez Furlong 42ae98d7a2 Fix unintialized variable.
Patch by Joe Orton.
2003-10-13 11:43:14 +00:00
Derick Rethans c3b21fc55c - Email address change 2003-10-13 09:33:00 +00:00
Ilia Alshanetsky a9b20a6abf Fixed bug #25800 (parse_url() could not parse urls with empty port). 2003-10-13 04:27:23 +00:00
Ilia Alshanetsky 3158ff714e Remove sendmail patch check. 2003-10-13 04:15:09 +00:00
Wez Furlong f27387c68c Fix possible segfault (this one came up when a method could not be found).
Add a couple of headers used by another file that is not yet ready to
commit.
2003-10-13 01:29:39 +00:00
7ca3d7cf7c ChangeLog update 2003-10-13 00:33:43 +00:00
Vlad Krupin db0a175bcb rolling back fix for 23463. The "fix" broke more than it fixed (see bug 25558) 2003-10-12 01:07:59 +00:00
7299119f13 ChangeLog update 2003-10-11 00:32:31 +00:00
Tomas V.V.Cox 32bf69ea7a Fix Bug #23221 Pear installer - extension re-install segfault 2003-10-10 17:13:37 +00:00
Tomas V.V.Cox 0e128d52bc Partial rewrite of dowload() method:
- Full error checking and reporting
- Avoid downloads as possible
- Made the "force" option work correctly

# Please report any problem with pear install/upgrade
2003-10-10 16:55:38 +00:00
Tomas V.V.Cox 5ab54854a1 avoid chdir() calls
remove duplicated validation checks
(fix bug #66 contributed by Roman)
2003-10-10 12:22:59 +00:00
22c54d7ec0 ChangeLog update 2003-10-10 00:33:53 +00:00
Zeev Suraski 2ab30d7133 Allow foo::$bar() 2003-10-09 13:44:44 +00:00
Andrey Hristov 2827b962d9 typo 2003-10-09 11:26:40 +00:00
foobar 45adf7ec96 cleanup 2003-10-09 11:05:21 +00:00
Andrey Hristov 638b940307 New array functions for doing intersection of arrays that are complementary
to array_*diff* family of functions. Namely array_uintersect(), array_uintersect_assoc(),
array_intersect_uassoc() and array_uintersect_uassoc(). Test case is also included.
#docs and news entry later.
2003-10-09 08:10:39 +00:00
Andrey Hristov fab21a4ade new functions NEWS entry 2003-10-09 07:35:18 +00:00
Shane Caraveo 31b7b3a2b2 add the valid xml test 2003-10-09 05:47:38 +00:00
Shane Caraveo d0cf1ec40d add a DTD example 2003-10-09 05:46:03 +00:00
Ilia Alshanetsky 639216a4aa Fixed bug #25746 (Do not bail out when unable to chdir original dir on
systems with broken getcwd()).
2003-10-09 02:58:34 +00:00
ff0e8eee5d ChangeLog update 2003-10-09 00:33:42 +00:00
Wez Furlong e087da60dc And this EOF flag... 2003-10-08 11:23:47 +00:00
foobar d65297c750 BFN 2003-10-08 11:16:54 +00:00
Wez Furlong 590b3ccc79 Set the EOF indicator after each read attempt.
This prevents it getting stuck in the on position.
2003-10-08 10:55:51 +00:00
foobar e85a4cdbd2 - Fixed bug #25780 (ext/session: invalid session.cookie_lifetime causes crash in win32). 2003-10-08 10:22:51 +00:00
Wez Furlong 628afb40b6 Implement stream_get_contents, which is somewhat akin to file_get_contents,
except that it works on an already opened stream.
2003-10-08 10:07:25 +00:00
Moriyoshi Koizumi ed40a56c6c Oops.. 2003-10-08 01:51:32 +00:00
Moriyoshi Koizumi f4595d18af Better fix for bug #25758 2003-10-08 01:49:31 +00:00
Ilia Alshanetsky 6f8b8ade45 Fixed bug #25758 (var_export does not escape ' & \ inside array keys) 2003-10-08 01:16:44 +00:00
foobar 1ab64f5cda BFN 2003-10-08 00:54:29 +00:00
71191d67cf ChangeLog update 2003-10-08 00:33:46 +00:00
Rasmus Lerdorf 9a88c2d62c MFB bison configure test fix 2003-10-07 22:39:54 +00:00
Wez Furlong 18bfcc8897 A much better fix for moniker based COM object creation.
We now support binding monikers to remote machines.
However, MSDN docs indicate that this isn't yet implemented
as of Win2000.
2003-10-07 18:50:07 +00:00
Zeev Suraski 146ba0e875 Fix bug #17997 (Warning when switch & reference are combined) 2003-10-07 16:04:08 +00:00
Zeev Suraski 2cc9511cc7 Fix cast callbacks 2003-10-07 15:47:25 +00:00
Zeev Suraski d16d25b136 Fix the fix :)
Not thoroughly tested, but appears to work fine
2003-10-07 10:05:10 +00:00
Marcus Boerger f57043e093 Fix version test 2003-10-07 09:40:39 +00:00
Marcus Boerger 2c2af7c7ef Bugfix #25770 Segfault with PHP and bison 1.875 2003-10-07 09:33:20 +00:00
Corne' Cornelius 5eb3a1dfdd - Fixed bug #18534 (ifx_close() leaves open session)
- (ifx_do_close) Added
2003-10-07 09:29:58 +00:00
Stanislav Malyshev dd7bdcf4b1 Fix $_SERVER['argv'] and $_SERVER['argc'] 2003-10-07 08:46:16 +00:00
Ilia Alshanetsky 90100e5c90 Cleaned up previous patch. 2003-10-07 00:36:31 +00:00
520f2839a5 ChangeLog update 2003-10-07 00:33:18 +00:00
foobar 47484ce5d3 - Fixed bug #25764 (ldap_get_option() crashes when called with unbinded ldap link) 2003-10-06 23:33:00 +00:00
Rob Richards 6c9bbe70bf some namespace fixes
fix compiler warning
2003-10-06 21:28:01 +00:00
Tomas V.V.Cox 164b593d23 better version checks (contributed by Roman) 2003-10-06 15:15:56 +00:00
Wez Furlong a1b5c341a2 potential fix for #25759, although it will need further review. 2003-10-06 15:10:38 +00:00
Moriyoshi Koizumi 2158617d3a BFN 2003-10-06 01:07:15 +00:00
Moriyoshi Koizumi 506136f9c6 Forgot about this one 2003-10-06 01:04:49 +00:00
Moriyoshi Koizumi 503d74aa29 Fixed bug #25756 (SimpleXML's validate_schema_file() broken) 2003-10-06 01:02:28 +00:00
6e97d2fff2 ChangeLog update 2003-10-06 00:33:56 +00:00
Shane Caraveo e12aafca6b fix crash building nodeName 2003-10-05 21:53:08 +00:00
Shane Caraveo 4fbf5a0733 fix crash accessing tagName without namespace 2003-10-05 21:49:47 +00:00
Shane Caraveo 87bd7d57c6 Add schema and relaxNG validation support
domdocument->schemaValidate(string filename)
domdocument->schemaValidateSource(string xml)
domdocument->relaxNGValidate(string filename)
domdocument->relaxNGValidateSource(string xml)

also fix domelement->setAttributeNS
2003-10-05 20:45:27 +00:00
Ilia Alshanetsky 31a3c87159 Fixed clobbering of the source array, when merging complex
multi-dimensional arrays. Bug reported by Lukas Smith.
2003-10-05 19:37:02 +00:00
Tomas V.V.Cox f46b5641b7 use realpath instead of chdir
(Roman Neuhauser <neuhauser@bellavista.cz>)
2003-10-05 19:10:56 +00:00
Martin Jansen dd66cd587f * Fixing #64 2003-10-05 16:42:18 +00:00
Shane Caraveo a05dbd3a28 remove a debug printf 2003-10-05 16:37:50 +00:00
Tomas V.V.Cox 4da2fbe6f0 Don't reapply the error_message_prefix if an error
object is passed to raiseError()
2003-10-05 15:22:21 +00:00
Moriyoshi Koizumi 2c95c42404 Fix the macro to prevent it from falling over in a mess 2003-10-05 13:59:15 +00:00
Moriyoshi Koizumi 30d64ecc3e Fix test to make sure it can find the external xml file relatively to
the script file.
2003-10-05 13:53:16 +00:00
Rob Richards 8f489130bf fix segfault if xpath expression string is invalid 2003-10-05 13:14:21 +00:00
Rob Richards c21e78ddf2 implement isDefaultNameSpace and baseURI
nodeName and tagName return qualified names
fix removeAttributeNode - takes domAttr as parameter
better uri and file handling for document load method
fix possible segfault when document is freed
set get_property_ptr_ptr handler to NULL
2003-10-05 11:52:22 +00:00
Zeev Suraski 4de32429f5 Remove unused callback 2003-10-05 08:27:31 +00:00
Zeev Suraski c6c240a455 Sync with new API 2003-10-05 08:08:49 +00:00
Zeev Suraski 3f5acc73a5 Remove redundant callback, simplify API 2003-10-05 07:52:28 +00:00
Shane Caraveo 05152d3845 this little piggy broke lots of things...eg. _function_check_flag in reflection api. 2003-10-05 01:54:46 +00:00
d8a6874bf1 ChangeLog update 2003-10-05 00:32:02 +00:00
Moriyoshi Koizumi c4ecb0459b NFN 2003-10-04 21:09:38 +00:00
Moriyoshi Koizumi 80edbeba2f Change fgetcsv() so that the second parameter is also optional. 2003-10-04 21:06:29 +00:00
Tomas V.V.Cox 0c9f669cc5 Better fix #61 2003-10-04 17:16:35 +00:00
Tomas V.V.Cox 7630f962f1 Fix: #61 [NEW]: error with pear install in pear 1.3b1
by outputting a full error message plus some help
2003-10-04 16:17:31 +00:00
Tomas V.V.Cox 82e655537e notes++
Bug #25413 Add local installed packages to list-all
  (thanks to Christian DickMann)
2003-10-04 13:02:58 +00:00
Tomas V.V.Cox 349c8a5581 Bug #25413 Add local installed packages to list-all
(thanks to Christian DickMann)
2003-10-04 12:57:34 +00:00
Moriyoshi Koizumi 10961114ad Fix autoconf(2.13) build 2003-10-04 12:23:11 +00:00
Sergey Kartashoff 069e311c60 - Updated README for mnogosearch extension 2003-10-04 08:27:37 +00:00
Greg Beaver 77c0beb143 fix warning in rare case (file doesn't exist in package.xml) 2003-10-04 03:58:00 +00:00
Moriyoshi Koizumi 6a25171285 New feature news. 2003-10-04 03:18:48 +00:00
Moriyoshi Koizumi 921e5b47c5 Fix fgetcsv() to correctly support international characters
# note: mblen() is not a mbstring function, but is part of the ANSI standard
# which is even supported by Microsoft's libc.
2003-10-04 02:51:19 +00:00
foobar 96e0010f13 - Fixed bug #25752 (ext/ncurses: ncurses.h instead of curses.h with BSD). 2003-10-04 01:04:31 +00:00
foobar 708dee922c ws 2003-10-04 00:43:06 +00:00
ddbc673eb3 ChangeLog update 2003-10-04 00:32:39 +00:00
Moriyoshi Koizumi 59b8f2eba0 BFN 2003-10-03 22:42:38 +00:00
Moriyoshi Koizumi 4859431fc1 Fixed bug #24766 (strange result array from unpack()) 2003-10-03 22:41:43 +00:00
Moriyoshi Koizumi 149f786025 Bug #25738 (alloca() related problems on the Darwin platform) 2003-10-03 22:02:55 +00:00
Ilia Alshanetsky df11d7079c More ZTS stuff. 2003-10-03 18:05:42 +00:00
Moriyoshi Koizumi 7e9a54990c Add regression test for bug #25745 2003-10-03 16:59:44 +00:00
Moriyoshi Koizumi be5cbf9999 Ensure lval to have a *boolean* value. 2003-10-03 16:57:41 +00:00
Moriyoshi Koizumi 0d2b8c68df Bug #25745 (ctype functions don't deal with non-ascii characters properly) 2003-10-03 15:50:01 +00:00
Ilia Alshanetsky afc48dc8f2 Fixed bug #25744 (make ZTS build of ext/sybase compile) 2003-10-03 13:03:40 +00:00
foobar f3f9f8db7f - Added test for bug #24766
# This bug is caused by the HANDLE_NUMERIC() change in ZE2 vs ZE1
2003-10-03 05:47:07 +00:00
foobar db50cd251e Aligned configure help texts. 2003-10-03 05:24:33 +00:00
foobar 09b8fdc2bb Really fixed bug #25719.
(basically reverted to the original style of openssl checks found in 4.3.3)
2003-10-03 04:29:13 +00:00
Moriyoshi Koizumi 5fee3a3ce1 Alignment fix 2003-10-03 01:13:44 +00:00
Ilia Alshanetsky 763b39cc1d Fixed compile warnings. 2003-10-03 01:07:35 +00:00
e53b9a6a6f ChangeLog update 2003-10-03 00:31:49 +00:00
Moriyoshi Koizumi 76ae064883 Add a test case for bug #25708 2003-10-02 22:50:28 +00:00
Moriyoshi Koizumi 75bb36ed09 Fixed bug #25708 (extract($GLOBALS, EXTR_REFS) mangles $GLOBALS) 2003-10-02 22:20:48 +00:00
Moriyoshi Koizumi d7398813c3 A temporary voodoo hack to avoid memory leaks.
# Stuff of this kind must be removed if any neater way is out there.
2003-10-02 19:45:05 +00:00
Moriyoshi Koizumi 6745000c37 Fix for the fix for #25707 2003-10-02 19:23:00 +00:00
Moriyoshi Koizumi 04bcd89277 Add support for hexadecimal-style numeric entities (&#x..;) 2003-10-02 19:07:59 +00:00
Moriyoshi Koizumi edd18bae09 Drop multibyte character support in html_entity_decode().
# This has never worked as expected.
2003-10-02 19:06:44 +00:00
Frank M. Kromann 20315a3c5d FrontBase uses ws2_win32 lib now 2003-10-02 18:49:30 +00:00
Frank M. Kromann 7c5bd1e180 Fixing type cast 2003-10-02 18:49:18 +00:00
Marcus Boerger 3cb67f1719 This check is no longer needed (Andrei) 2003-10-02 18:11:10 +00:00
foobar d0422ea0bc fix skipif for these tests 2003-10-02 14:55:49 +00:00
Tomas V.V.Cox faa5ab3f2b starting b3 (hope this could be 1.3 final) 2003-10-02 11:58:29 +00:00
Tomas V.V.Cox 8d1dcefc3d Go with 1.3b2 2003-10-02 11:54:00 +00:00
Moriyoshi Koizumi a5422685fb Remove leftovers 2003-10-02 11:02:54 +00:00
Moriyoshi Koizumi daf7528d90 Alignment fix 2003-10-02 10:47:12 +00:00
Moriyoshi Koizumi f2b36ec52b Fix php_regex_encoding() so it can handle two additional encoding names
mbfilter supports by default.
2003-10-02 07:49:14 +00:00
Moriyoshi Koizumi 647408978e Fixed bug #25707 (html_entity_decode over-decodes &amp;lt;) 2003-10-02 06:57:21 +00:00
Ilia Alshanetsky ffb57ad555 Fixed bug #25701 (On flush() set headers_sent in apache2handler) 2003-10-02 03:24:36 +00:00
foobar 8ba1bcb252 Should fix bug #25719 2003-10-02 00:35:09 +00:00
b6380d5832 ChangeLog update 2003-10-02 00:32:43 +00:00
Andrei Zmievski b3920d5012 Made the $argc and $argv always available as globals in CLI, and not as
$_SERVER vars which depended on variables_order anyway. No more
silliness.
2003-10-01 23:11:59 +00:00
foobar dc080a5db6 - Always look into /usr/local before /usr
- Added breaks to make sure the preferred value is used.
2003-10-01 02:53:23 +00:00
5b17050a79 ChangeLog update 2003-10-01 00:32:39 +00:00
Ilia Alshanetsky 526a3d9ce2 Always prefer user specified paths over the default /usr /usr/local.
This may fix compilation problems with on systems with multiple copies of
the same library.
2003-09-30 22:36:43 +00:00
foobar 3f415b2c4b Fixed bug #25703 (openssl checks failed) 2003-09-30 18:08:12 +00:00
Tomas V.V.Cox 8b6d6cdc6e Give more info about release states in list-upgrades 2003-09-30 15:22:42 +00:00
Andrey Hristov 26aba89a43 Move the test to new file. 2003-09-30 15:22:33 +00:00
Andrey Hristov a11645dda8 fix 2003-09-30 15:06:05 +00:00
Andrey Hristov 40088d0bbc smash a segmentation fault 2003-09-30 15:00:36 +00:00
Andrey Hristov 02827c46be Memory leak fixed (no need of MFH since this is code specific to PHP5) 2003-09-30 12:43:58 +00:00
Stanislav Malyshev e21669502b MF4: allow realpath() for win32 non-ZTS 2003-09-30 09:52:11 +00:00
Stanislav Malyshev 646e83e57f MF4: Have realpath now 2003-09-30 09:49:40 +00:00
Stanislav Malyshev 1a773f17d3 MF4: add realpath function for win32 2003-09-30 09:48:53 +00:00
Greg Beaver e898d7c25a better fix for #45.
Now, it will install the newest version that is preferred_state or stabler.
to request a specific state, append -state like pear install Net_NNTP-beta
2003-09-30 02:56:42 +00:00
Moriyoshi Koizumi 77726c734e Add regression test for bug #25666 2003-09-30 01:31:06 +00:00
40802a7584 ChangeLog update 2003-09-30 00:34:01 +00:00
Moriyoshi Koizumi ddd49b34c8 Remove redundant '\n' 2003-09-30 00:32:41 +00:00
Moriyoshi Koizumi 5d3b5cd1c2 Fixed bug #25669 (eregi() with non-ascii characters) 2003-09-30 00:26:03 +00:00
Ilia Alshanetsky 6ac36d1a00 More NaN & INF handling fixes. 2003-09-29 23:44:07 +00:00
Tomas V.V.Cox 86bf200e92 preparing 1.3b2 2003-09-29 19:39:18 +00:00
Greg Beaver dbbc1d2c8c " => &quot;, take 2 2003-09-29 17:44:20 +00:00
Greg Beaver 8ba1dea0ab noted fixed #45, also " => &quot; 2003-09-29 17:42:16 +00:00
Greg Beaver f688e33454 Bug #45 preferred_state works incorrectly 2003-09-29 17:36:00 +00:00
Tomas V.V.Cox 2a82a826ac Ready for 1.3b1
Removed Changelog
2003-09-29 13:18:48 +00:00
Rob Richards b437ac77bc add property_get_ptr handler
fix possible segfault in xpath
add wide character support for characterdata
2003-09-29 11:43:26 +00:00
Rob Richards 5fa23c593b fix for bug #25666 (XML namespaces broken in PHP5) 2003-09-29 11:35:39 +00:00
Moriyoshi Koizumi 103b3c6626 Simplification. 2003-09-29 02:23:40 +00:00
Ilia Alshanetsky 7356a9b312 Fixed Bug #25665 (var_dump() hangs on Nan and INF). 2003-09-29 01:07:55 +00:00
7cdbfb90a3 ChangeLog update 2003-09-29 00:32:24 +00:00
Tal Peer aa5f0bdfd2 Fix buildconf for systems using coreutils-5.0 2003-09-28 10:32:13 +00:00
Greg Beaver 0c9a167bea fixed #39 commands that need LOCK_SH fail as non-root 2003-09-28 05:07:27 +00:00
361c32aa4e ChangeLog update 2003-09-28 00:32:47 +00:00
foobar 06616ccdce Bundled GD has this function 2003-09-27 20:53:50 +00:00
Sara Golemon 2acca5d015 Test for Bug 25671 2003-09-27 18:48:48 +00:00
c88a26881e ChangeLog update 2003-09-27 00:33:03 +00:00
Sara Golemon ef7905a188 Bug Fix#25671 Corruption in subarrays in subject when using str_replace 2003-09-26 17:57:13 +00:00
Moriyoshi Koizumi 07a021f477 Add test cases for the regex probles 2003-09-26 17:44:06 +00:00
Moriyoshi Koizumi 83609e0874 Repatch fixes for the problem that was reported at php-dev@php.gr.jp (#884) 2003-09-26 17:43:39 +00:00
Moriyoshi Koizumi 7e4a886971 Forgot to commit this one. 2003-09-26 17:41:52 +00:00
Moriyoshi Koizumi 91bf8e5dc9 Explicitly specify mbstring.language. 2003-09-26 14:42:37 +00:00
Moriyoshi Koizumi b82679412c Fix some incompatibilities with the pre-libmbfl behaviour regarding encoding detection. 2003-09-26 14:42:14 +00:00
Moriyoshi Koizumi 96cdea35c1 Specify full path to cat for mb_send_mail() tests 2003-09-26 11:08:54 +00:00
Ard Biesheuvel c40234b47e Let client library pick its own transaction param defaults 2003-09-26 10:06:22 +00:00
Hartmut Holzgraefe fbc1386eac stupid typo fix 2003-09-26 10:02:06 +00:00
foobar 3462761d2b typo 2003-09-26 09:56:24 +00:00
foobar ef1c2d59a4 Test case for bug #25665 2003-09-26 09:55:56 +00:00
Hartmut Holzgraefe 075e66cc08 signed/unsigned compiler warning fixes 2003-09-26 08:09:56 +00:00
Hartmut Holzgraefe 0a46866d8f silenced a compiler warning 2003-09-26 07:51:52 +00:00
Hartmut Holzgraefe 3735d2f8bd error message was missing an argument 2003-09-26 07:50:02 +00:00
Hartmut Holzgraefe ee922e3085 compiler warning fixes, one of them a potential crash bug 2003-09-26 07:47:01 +00:00
Ilia Alshanetsky 6966350013 Fixed typo. 2003-09-26 00:40:32 +00:00
22c6591674 ChangeLog update 2003-09-26 00:32:52 +00:00
Georg Richter 47f6dc77c5 fixed compiler warning
removed dead code
2003-09-25 15:54:17 +00:00
Georg Richter 664078c100 changed ulong to long to avoid compiler warnings (comparison between signed and unsigned) 2003-09-25 15:38:35 +00:00
foobar 72de75c99a This is only needed for Windows. 2003-09-25 14:53:41 +00:00
Georg Richter 340d891b3e mysqli_prepare_result -> mysqli_get_metadata 2003-09-25 11:19:58 +00:00
Georg Richter 49823c5edb mysql_prepare_result -> mysqli_get_metadata
This function was renamed in libmysql (changeset 1.607 by monty)
2003-09-25 11:19:25 +00:00
John Coggeshall bca08dabb4 Fixed a --enable-maintainer-zts glitch where TSRMLS_DC was being used
unnecessarily.
2003-09-25 09:32:55 +00:00
33061ef1b9 ChangeLog update 2003-09-25 00:32:19 +00:00
Ilia Alshanetsky 569bd005d2 Fixed bug #25070 (Don't forget to unlock session files on win32 before
closing them).

Regions should be locked only briefly and should be unlocked before
closing a file or exiting the program. On Win32 locked files that are
closed without being explicitly unlocked will be unlocked only when "system
resources become avaliable".
2003-09-24 23:39:14 +00:00
Ilia Alshanetsky 102a5cadfd Fixed bug #25293 (Output correct EOL to error_log) 2003-09-24 23:20:48 +00:00
foobar 54a2a2ad2e ws 2003-09-24 14:24:18 +00:00
foobar 4c31afd23b - Fixed some compile failures with e.g. RH9 + openssl by
making use of pkg-config
2003-09-24 14:22:57 +00:00
Greg Beaver b1094807f8 remove dependency on PHP 5 - it works just fine in PHP 4.3 2003-09-24 13:11:52 +00:00
Rob Richards f9640d5fad fix preserveWhiteSpace on document load 2003-09-24 12:56:37 +00:00
Wez Furlong f7d32e30b0 Fix 2003-09-24 10:35:20 +00:00
Ilia Alshanetsky ff4d200772 Specify full path for cat utility used by the test. 2003-09-24 02:27:43 +00:00
foobar 258d5838bb - Fixed bug #24402 (Compile failure with gettext 0.12.x) 2003-09-24 02:07:04 +00:00
431e5cf5b8 ChangeLog update 2003-09-24 00:32:10 +00:00
Ard Biesheuvel 50911d0904 Always return long from ibase_gen_id() on IB < 6 2003-09-23 23:08:59 +00:00
foobar afdc20a094 ws fix 2003-09-23 22:17:40 +00:00
Ard Biesheuvel 13dc2d253e Added ibase_gen_id() 2003-09-23 21:17:16 +00:00
Ard Biesheuvel f48f725348 Added ibase_gen_id()
# Lightweight shortcut to SELECT GEN_ID() ... function
2003-09-23 20:58:14 +00:00
Moriyoshi Koizumi 1ee441613d Remove useless mutex code due to the switch to oniguruma. 2003-09-23 20:11:05 +00:00
foobar 08effa1b04 Fixed typo. 2003-09-23 19:29:34 +00:00
Ilia Alshanetsky b9823393ea Fixed bug #25636 (SNMP Session not closed on success).
Patch by: nesslage[at]mwsc[dot]edu
2003-09-23 18:26:02 +00:00
Andrey Hristov a7ac568486 New test cases for the new 4 functions :
- array_udiff()
- array_udiff_assoc()
- array_diff_uassoc()
- array_udiff_uassoc()
2003-09-23 17:40:34 +00:00
Andrey Hristov 3579f212df 4 new functions :
array_udiff()
array_udiff_assoc()
array_diff_uassoc()
array_udiff_uassoc()
They work like array_diff() or array_diff_assoc() but callback function(s)
can be used to perform the comparisons. For example array_udiff_uassoc()
expects 2 callbacks are last 2 parameters one is used to compare the values
of the entries in the arrays the second to compare the keys.
Class methods are also valid callbacks. Even when the data that should be
used in the comparison is private or protected then a static method of a
class should be used (this behaviour can be seen in the regression test -
007.phpt).
2003-09-23 17:37:29 +00:00
Wez Furlong fce7b92891 MFB 25614 "fix" 2003-09-23 16:05:52 +00:00
foobar 04a575389f Removed unnecessary ssl.h include 2003-09-23 16:04:03 +00:00
Moriyoshi Koizumi aa36f5bbdb Oops 2003-09-23 13:23:30 +00:00
Moriyoshi Koizumi a89d00bb6c Remove unused variable 2003-09-23 13:21:01 +00:00
foobar 30c3155d12 add as binary.. 2003-09-23 10:06:19 +00:00
foobar 4d02a9379c remove corrupt file 2003-09-23 10:05:48 +00:00
foobar 9fea9fec53 Added simple test for gettext 2003-09-23 10:00:23 +00:00
foobar a299e943f8 - Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build) 2003-09-23 08:15:49 +00:00
Rui Hirokawa ce66e1eb8d fixed wrong string length in mbregex. 2003-09-23 02:47:06 +00:00
Rui Hirokawa b6b761ca84 revert a patch. 2003-09-23 02:43:49 +00:00
Rui Hirokawa 25bb0d16a9 fixed win32-build and update e-mail address in mbstring. 2003-09-23 02:43:04 +00:00
c8db2e0455 ChangeLog update 2003-09-23 00:32:08 +00:00
Ilia Alshanetsky 4aaa2becbe String format stuff. 2003-09-22 23:27:51 +00:00
Andrey Hristov 63d7df3e2f improve the fix for #25494. If more then one bad parameter is passed
an warning for all will be emitted.
2003-09-22 23:19:17 +00:00
Rob Richards cb4db32030 set consistent pathing for libxml
set document url when loaded from memory to set base href
2003-09-22 19:11:35 +00:00
Rob Richards bd2511af40 set base href for copied, imported doc
set environment for imported stylesheet
add optional clone parameter for data to transform
2003-09-22 19:07:52 +00:00
Rob Richards 8569ee1c1e move hash.h for libxml 2.6 compatibility 2003-09-22 19:04:49 +00:00
John Coggeshall 8cd08f7e9d Forgot package.xml 2003-09-22 18:45:46 +00:00
John Coggeshall d8eeb8e286 Updated test cases and examples and cleaned up the new OO code so it will
be easier to maintain.
2003-09-22 18:40:38 +00:00
John Coggeshall 6b567f80c7 Completely re-wrote the ZE2 OO stuff to do it the proper way. It is not
considerably more stable, cleaner, and looks as if it works well :) This
probably is going to break any scripts which used it before, but oh well.
2003-09-22 17:06:45 +00:00
Hartmut Holzgraefe 55d9ec0f6f proto thiko fix 2003-09-22 06:54:29 +00:00
Ilia Alshanetsky 10def9a8ae Added missing format. 2003-09-22 04:21:44 +00:00
Ilia Alshanetsky e2caa6eaf9 String formatting stuff. 2003-09-22 04:18:24 +00:00
43f53cafcd ChangeLog update 2003-09-22 00:32:21 +00:00
John Coggeshall a7b75e2054 Complete refactoring of the OO support in tidy. Although currently
incomplete, it is a good start.
2003-09-22 00:12:54 +00:00
Ilia Alshanetsky 5927b50869 Fix ZTS build. 2003-09-21 20:24:39 +00:00
Ilia Alshanetsky d14df17390 Added a note & fix for a memory leak in libtidy.
This will be removed once the libtidy developers release a patched version
of their library (or we start bundling the patched version).
2003-09-21 20:21:39 +00:00
Marcus Boerger 36655400cb - return correct hash constants
- check for 'memory' in sqlite_factory() too (noticed by John Coggeshal)
2003-09-21 19:36:40 +00:00
Ilia Alshanetsky 4f6874b3ff Added tidy_repair_string() & tidy_repair_file() that allow for quick repair
of files & strings.
Modified tidy_parse_file() to accept include_path parameter.
Fixed a few bugs that may have allowed configurations directives loaded via
a file to carry over across requests.
2003-09-21 19:22:19 +00:00
Wez Furlong ad93053ec4 Merge remaining code from 4.3 to fix #22238 in HEAD. 2003-09-21 18:02:08 +00:00
Uwe Steinmann eea84f787b - fixed typo in error message 2003-09-21 13:17:20 +00:00
Sascha Schumann 394d3b82b0 Alias session_commit to session_write_close, a more intuitive name
for the functionality.
2003-09-21 11:53:12 +00:00
b5d828f92d ChangeLog update 2003-09-21 00:32:02 +00:00
Ilia Alshanetsky 4cd101abed Tidy Hijacked! Read all about it ;)
* No more tidy resources, it's now persistent and internal. This helps speed
  quite a bit, since the tidy resource only needs to be initialized once.
* Replace common code with macros.
* Added necessary safe_mode & open_basedir checks when working with files.
* Added ini option to allow loading of config file on startup.
* Show current configuration in phpinfo();
* Coding Style Cleanup
* Added tidy_get_config(), returns an associated array with all configuration
  values.
* Added tidy_reset_config(), it restores tidy configuration to default values.
* Fixed a possible crash inside tidy_setopt().
* Added myself to the credits.

More changes to follow.
2003-09-20 19:45:32 +00:00
Sascha Schumann 36ac7a5bb0 MFB Avoid zero-length keys which result in a spinning process 2003-09-20 16:10:49 +00:00
Marcus Boerger 0266efb8b5 Add public array Reflection_Class::getDefaultProperties() 2003-09-20 14:22:48 +00:00
Marcus Boerger 6433226749 Explicit cwqasting is now necessary 2003-09-20 12:51:20 +00:00
Sascha Schumann 5e3de075fb Fix potential buffer overrun 2003-09-20 12:45:05 +00:00
foobar 8c52344418 Nuke compile warnings 2003-09-20 03:22:36 +00:00
Ilia Alshanetsky 0917a7f62f Fixed bug #25583 (Incorrect handling of paths starting with / on win32
inside glob() function).
2003-09-20 02:51:20 +00:00
Ilia Alshanetsky e010d8ac9b Revert patch r1.40, bug is in glob() not IS_ABSOLUTE_PATH() 2003-09-20 02:06:42 +00:00
Ilia Alshanetsky 142c325f23 Fixed bug #25583 (Incorrect handling of absolute path without drive). 2003-09-20 01:39:55 +00:00
1e97cb938e ChangeLog update 2003-09-20 00:32:02 +00:00
Tomas V.V.Cox 926cfa307c RFC about PECL binary creation and distribution 2003-09-19 16:50:17 +00:00
Ilia Alshanetsky ace85c9015 MFB: Add myself to credits 2003-09-19 12:24:51 +00:00
Derick Rethans a4f4e9aed4 - Fixed typo 2003-09-19 12:24:06 +00:00
foobar a853d30c26 Is the version 5 now? :) 2003-09-19 09:02:14 +00:00
foobar 55dfa3722d MFB 2003-09-19 05:35:50 +00:00
Ilia Alshanetsky 2998eeaf0d Fixed bug #25570 (Possible crash in apache2handler when zend_bailout called
outside of zend_try {} block).
2003-09-19 00:44:50 +00:00
42758e6ebd ChangeLog update 2003-09-19 00:33:52 +00:00
Sara Golemon 0a3bc21c5c Manageability 2003-09-18 17:51:55 +00:00
Sara Golemon 17c3560d33 Added ftp_alloc() 2003-09-18 17:37:23 +00:00
Sara Golemon c553af47e0 Add ftp_alloc() for servers which require client to predeclare filesize to be sent. 2003-09-18 17:36:08 +00:00
Marcus Boerger 3efe102a48 Nuke vars no longer needed 2003-09-18 17:13:59 +00:00
Marcus Boerger cd021cfb3a Go with studlyCaps 2003-09-18 16:26:29 +00:00
Marcus Boerger 7b3e84871e Go with studlyCaps 2003-09-18 16:20:42 +00:00
Marcus Boerger 5b3bb16530 Go with studlyCaps 2003-09-18 12:09:55 +00:00
Marcus Boerger f8a376fe8e Change tostring() into __toString() to match method name used in casting. 2003-09-18 11:55:57 +00:00
Marcus Boerger 71ba442768 Fallback to default behaviour for unsupported object type conversions 2003-09-18 11:50:05 +00:00
Marcus Boerger d7fdf15a41 - Allow partial type conversion support for objects.
- Add support for object to string conversion from userspace by method
  __toString() and add a test.
2003-09-18 11:38:33 +00:00
Marcus Boerger 87045df4ce Add missing check 2003-09-18 10:21:38 +00:00
Greg Beaver 1433d789a5 add rollback for installed_as 2003-09-18 04:32:56 +00:00
Greg Beaver d560e49713 add rollback test for installed_as 2003-09-18 04:32:46 +00:00
Greg Beaver c6d102bfe4 finished transaction tests 2003-09-18 04:24:25 +00:00
Greg Beaver 103bab81a3 unit testing finds another bug :)
another case that would cause an endless loop in installed_as file transaction
2003-09-18 03:59:22 +00:00
77669838d0 ChangeLog update 2003-09-18 00:32:25 +00:00
Ilia Alshanetsky 855015ecd0 When track_errors was enabled, we tried to assign value already freed char. 2003-09-18 00:04:57 +00:00
Marcus Boerger 909bd62a43 Show name of missing function as typed 2003-09-17 11:06:11 +00:00
Marcus Boerger 755c404d08 Use studlyCaps in exception class 2003-09-17 10:15:00 +00:00
Marcus Boerger 46b8801b35 Go with studlyCaps in error messages/backtrace/reflection output 2003-09-17 10:14:12 +00:00
Ilia Alshanetsky a7f2ec3cdb Fixed compile warnings. HAVE_ defines cannot work without the header that
defines them.
2003-09-17 05:42:57 +00:00
Ilia Alshanetsky d62c9f33d9 regex_t is used by both Apache & mbregex. This little check prevent compile
failure, while php is compiled as dso module & mbstring is enabled.
2003-09-17 05:42:08 +00:00
foobar 3bb2c57279 MFB 2003-09-17 05:29:31 +00:00
Greg Beaver 0e957bedc8 add rmdir test, add comment to remind me to finish installed_as test before moving on to next one 2003-09-17 03:44:25 +00:00
Greg Beaver 9a4453ee62 modify chmod test to be truly permissions-filesystem-based-specific 2003-09-17 03:31:59 +00:00
Greg Beaver 5e63a153c8 more file transaction tests 2003-09-17 03:29:55 +00:00
Greg Beaver c71d1bc43d oops - params are reversed, my bad 2003-09-17 03:22:55 +00:00
Greg Beaver 1b47706fff bug in chmod file transaction operation error message
bug in chmod file transaction test - was testing the perms to see if they were a writable file
2003-09-17 03:19:47 +00:00
Greg Beaver 15c04ee52a phpdoc error 2003-09-17 03:13:56 +00:00
Ard Biesheuvel 0cce471b0a Link to fbclient.dll if available
Add client lib name to dll version info
2003-09-17 01:25:08 +00:00
328a6b862a ChangeLog update 2003-09-17 00:31:56 +00:00
Greg Beaver e91c4067e4 cut-and-paste error 2003-09-17 00:02:45 +00:00
Greg Beaver 13bf53b658 correct typo "committed"
add error checking to commitFileTransaction()
2003-09-17 00:00:40 +00:00
Greg Beaver 7a0fcc45a8 some beginning tests for commitFileTransaction() 2003-09-17 00:00:21 +00:00
Greg Beaver 1b76db05e7 adding transaction test file (unfinished) 2003-09-16 23:43:47 +00:00
Greg Beaver a5b67714ae Document addFileOperation()
Add basic test for invalid input, since it is a public method
2003-09-16 23:42:16 +00:00
Ard Biesheuvel b9a208d821 Use isc_get_version() for client lib info if available 2003-09-16 20:28:27 +00:00
Hartmut Holzgraefe 92b237f4c3 proto fix 2003-09-16 19:45:22 +00:00
Marcus Boerger d2088841a4 - Make it clear whether it is an interface or a class
- Fix static properties
2003-09-16 19:31:45 +00:00
Ard Biesheuvel be16d129c5 Check for Firebird libfbclient.so first 2003-09-16 19:25:11 +00:00
Tomas V.V.Cox 4920ac3362 more debug code removed *sigh* 2003-09-16 16:53:11 +00:00
Tomas V.V.Cox cdcc98141e removed debug code 2003-09-16 16:49:26 +00:00
Greg Beaver f4aaa7c4f0 tweak Tomas's patch for
$ pear install Package-v.tgz

which should work for local files first before checking to see if it can be downloaded
2003-09-16 03:27:55 +00:00
Greg Beaver 4f7eb73e87 fix regexps for package detection and download - should be case-insensitive 2003-09-16 03:26:05 +00:00
Greg Beaver c65683653c fix invalid replacements - add tests for bad pear-config/package-info replacements 2003-09-16 03:17:08 +00:00
Greg Beaver 896254c71e add tests for invalid replacements 2003-09-16 03:16:46 +00:00
Greg Beaver 9850aae5f3 file transactions used - but startFileTransaction() was never used
inline docs for install() were out of date
2003-09-16 02:42:44 +00:00
596ef9704b ChangeLog update 2003-09-16 00:32:09 +00:00
Ilia Alshanetsky b871ebd8dc Fixed bug #25106 (Added more stringent checks on bzopen() mode).
In some cases bz2 may fail to open the file, but stream wrappers will still
create an empty file, remove this file.
Change virtual_filepath to virtual_filepath_ex, which allows BZ2_bzfopen()
to work without having to resort to stream wrappers.
2003-09-15 23:49:32 +00:00
Marcus Boerger 6bf04aff5b Revert - need to look for a better solution 2003-09-15 21:00:38 +00:00
Tomas V.V.Cox d8de1165f9 - Added new notes and split them
- Upgraded me as <lead>

# Greg, advice me when finish with the tests
# then we could fire 1.3b1
2003-09-15 20:32:40 +00:00
Marcus Boerger 83a48b2603 Test for bug #25547 2003-09-15 20:30:32 +00:00
Marcus Boerger 16a816b92c Bugfix #25547 2003-09-15 20:20:14 +00:00
Tomas V.V.Cox e76de52de7 * Implemented the find command (currently supported args:
-type f, -type d, -maxdepth, -name)
* Fixed recursion deep level in _dirToStruct()
2003-09-15 20:17:34 +00:00
Greg Beaver 7811c07e23 pear install net_socket will work now - before it would only work with pear install Net_socket 2003-09-15 13:11:57 +00:00
Rob Richards 7c33d55961 validate encoding against valid handlers 2003-09-15 12:29:52 +00:00
Hartmut Holzgraefe 3988db4af1 proto descriptions 2003-09-15 09:25:18 +00:00
Zeev Suraski 36133c4d0b Simplify / fix 2003-09-15 08:13:34 +00:00
Moriyoshi Koizumi 676755da54 FREETYPE_PATCH is not always defined.
# will likely fix Sebastian's build :)
2003-09-15 07:27:18 +00:00
Greg Beaver 3008135b91 Now empty directories are removed on uninstall, so uninstallation is complete and correct 2003-09-15 05:10:51 +00:00
Greg Beaver 4245451ccd mistaken include_once 'Remote.php' - not sure why it worked at all 2003-09-15 03:36:02 +00:00
Greg Beaver e4b848d766 move registration of installed location to post-commit 2003-09-15 03:29:12 +00:00
Greg Beaver 8014d0dfac add testing for baseinstalldir attribute 2003-09-15 03:14:12 +00:00
Greg Beaver 88fc290887 add testing for install-as attribute 2003-09-15 03:07:53 +00:00
def79d3754 ChangeLog update 2003-09-15 00:34:42 +00:00
Ilia Alshanetsky 67a070c151 Fixed bug #25530 (checkdate incorrectly handles floats) 2003-09-15 00:07:51 +00:00
Greg Beaver 8254b8f49e add testing for md5sum 2003-09-14 20:19:59 +00:00
Greg Beaver 8c3b78aa1c found bug in _installFile() thanks to unit testing.
- if a bad md5sum was found, and --force wasn't specified, the temporary file was never deleted
2003-09-14 20:17:24 +00:00
Greg Beaver c4e5fed89f adding test for non-existing file 2003-09-14 20:02:07 +00:00
Greg Beaver 3901da3a1d adding test for invalid role 2003-09-14 19:59:06 +00:00
Marcus Boerger 9d7f2fd9f0 Bugfix #25335 2003-09-14 19:56:37 +00:00
Greg Beaver 0225844ac1 adding replacements section for _installFile() 2003-09-14 19:53:37 +00:00
Zeev Suraski e0508c13bb Commit 64-bit fixes to the standard operators
by Ard Biesheuvel (abies@php.net)
2003-09-14 17:37:01 +00:00
Marcus Boerger a5d829f928 Remove this (part from another patch) 2003-09-14 09:54:19 +00:00
Marcus Boerger 9f329adb02 Add length modifier L 2003-09-14 09:50:36 +00:00
Marcus Boerger 9b98e42f35 - Add length modifiers(ll, j, t, h, hh)
# Still missing formats (%a, %A)
# Still missing modifier (l) in (%lc, %ls)
# Still missing modifier (L) in (%La, %LA, %Le, %LE, %Lf, %LF, %Lg, %LG)
# C99 requires any conversion to be able to produce at least 4095
# characters. Implementation only allows less then 512.
#
# Only inside ext/mbstring etc. we could use %lc and %ls. And none of the
# rest should affect us until we stay with double and avoid long double.
2003-09-14 09:12:54 +00:00
Greg Beaver cb5b1690ac new test for _installFile() - not yet complete, but what's there works 2003-09-14 04:24:21 +00:00
Greg Beaver 272c0aaec8 simplify test, split into two 2003-09-14 04:24:05 +00:00
Marcus Boerger 1c86e53204 Bugfix #25528 (by Ard Biesheuvel) 2003-09-14 01:20:25 +00:00
John Coggeshall ce38ec2b25 Moved things around and added some #ifdefs so that the extension can be used
in PHP 4 (without the ZE2 tree parsing).
2003-09-14 00:45:51 +00:00
576951c129 ChangeLog update 2003-09-14 00:31:51 +00:00
Marcus Boerger 3cf2d2f108 Show the whole message when in debug mode 2003-09-13 19:56:38 +00:00
Ard Biesheuvel eba90f7f99 WS 2003-09-13 19:49:50 +00:00
Ard Biesheuvel f940b0fe3c Pointer size fix 2003-09-13 19:43:39 +00:00
Sara Golemon 94ff3d5e7d Fix Bug #25525 ldap_explode_dn crashes when passed invalid params. 2003-09-13 17:31:07 +00:00
Marcus Boerger dc6163fe20 Fix warnings 2003-09-13 16:49:50 +00:00
Marcus Boerger af574b9699 - Fix %p to prepend '0x' as suggested by C99.
- Add 'z' prefix.
# Now you can use '%zd' in [v]spprintf() and everything that utilizes it
# like error messages BUT you still cannot rely on it in [v]s[n]printf()
# calls.
2003-09-13 16:49:24 +00:00
Ard Biesheuvel 6f37733367 Fixed for 64bit archs 2003-09-13 15:27:09 +00:00
Marcus Boerger 2a68d3c19e Make use of dedicated macro 2003-09-13 10:31:06 +00:00
5606fb2155 ChangeLog update 2003-09-13 00:32:17 +00:00
Ard Biesheuvel 95b0fc58f7 Pointer size fix 2003-09-12 21:02:43 +00:00
Marcus Boerger 7fac56c593 - Change email
- Fix warnings
2003-09-12 13:31:23 +00:00
foobar df8809650c - Fixed bug #25504 (pcre_match_all() crashes when passed only 2 parameters) 2003-09-12 01:31:54 +00:00
3a9e32d7dc ChangeLog update 2003-09-12 00:32:10 +00:00
foobar c77c0269ea - Fixed bug #25483 (ext/informix: bogus -469 error from ifx_query()) 2003-09-11 23:49:26 +00:00
Ard Biesheuvel 0208fb136f Revert f**kup CR/LF endings 2003-09-11 23:11:18 +00:00
Ard Biesheuvel 7ff3a3e4a3 Add client library info to phpinfo() function
Small inter-op fix for IB6
2003-09-11 23:08:48 +00:00
Jay Smith 6c6fd76bac Fixed bug #25494 (array_merge allowing "false" as argument (silent when
non-array is passed))
# 4.3 throws E_NOTICEs, 5 errors out on non-array args as per Ilia's
# suggestion.
2003-09-11 17:40:18 +00:00
Stanislav Malyshev 5bcc602a7c add test 2003-09-11 17:07:43 +00:00
Stanislav Malyshev b163778fee ws 2003-09-11 17:06:53 +00:00
Stanislav Malyshev 406ff728f1 Use scope from method, not from object 2003-09-11 17:04:26 +00:00
Greg Beaver dcd7f23e6c verified unit test pear2.phpt works with changes, removing old code 2003-09-11 16:45:03 +00:00
foobar 554cee42af - Fixed bug #25463 (ext/cpdf: compile failure with bundled GD) 2003-09-11 15:25:45 +00:00
Tomas V.V.Cox 7c9e926f10 "pear -v install" is now more usefull 2003-09-11 14:57:10 +00:00
Tomas V.V.Cox 7d96f7884e Be more nice when downloading files 2003-09-11 14:47:03 +00:00
Tomas V.V.Cox dfcd61cef7 Fix bug of download tries when a local file is given
to install
2003-09-11 13:36:59 +00:00
Greg Beaver a344aabb19 missed one segment to comment out 2003-09-11 13:21:07 +00:00
Greg Beaver 140ec7f354 use is_callable() - what a great function! 2003-09-11 13:16:13 +00:00
Marcus Boerger 6f78de02f0 Use type instead of constant 2003-09-11 10:26:47 +00:00
Ard Biesheuvel c5b69dcb14 Changed unsigned ISC_LONG to ISC_LONG
# Build fix for FB 1.5
2003-09-11 08:50:30 +00:00
Ilia Alshanetsky ef23b497d4 Fixed bug #25316 (Possible infinite loop inside _php_stream_write()). 2003-09-11 05:07:26 +00:00
Ilia Alshanetsky f3f3b772b2 Cleanup r1.76 patch 2003-09-11 04:46:10 +00:00
Hartmut Holzgraefe 1c30f5bcf0 check for FDFErcNoValue was in the wrong execution path,
should always be treated as 'no error' (should finally fix #22803)
2003-09-11 00:47:32 +00:00
429b5893ca ChangeLog update 2003-09-11 00:37:42 +00:00
Stefan Roehrich 2fc92e8fd8 Fix for bug #23488 zlib.output_compression overrides vary header.
It was already fixed for ob_gzhandler (#24827).
2003-09-10 08:47:37 +00:00
Greg Beaver 546663f7cd phpdoc correction (kind of serious error :) 2003-09-10 01:40:48 +00:00
Ilia Alshanetsky dfe3f32ec6 Cleanup previous patch. 2003-09-10 01:07:01 +00:00
Ilia Alshanetsky 0a3d5c9b08 Fixed bug #25429 (fix copying of stdin using copy() function) 2003-09-10 00:58:12 +00:00
9d73bd7332 ChangeLog update 2003-09-10 00:34:36 +00:00
Ilia Alshanetsky 29e829fdcf Fixed bug #14049 (realpath() w/ZTS returns invalid results for non-existent
paths)
2003-09-10 00:22:10 +00:00
Greg Beaver 1465e10781 test for checkDeps 2003-09-10 00:03:12 +00:00
Greg Beaver 79852dfa55 first step in unit testing the installer - tests the download PREG function 2003-09-09 23:40:39 +00:00
Melvyn Sopacua 50947cb155 MFB: Fix US/Eastern vs. America/New_York style tzset implementations. 2003-09-09 21:56:33 +00:00
foobar 1aa5bab89c Nuke warning 2003-09-09 21:38:31 +00:00
foobar 0c0d3a41d1 fix typo 2003-09-09 21:34:12 +00:00
foobar f04643ee4c Show the runtime version of Apache instead of compile time. 2003-09-09 21:30:48 +00:00
Sara Golemon 4e6672eadd Fix Bug #25294 LIST/NLST can cause segfault because ftp->data not cleaned properly 2003-09-09 21:12:49 +00:00
foobar 5e40faa1d6 - Fixed bug #25211 (image.c compile failure with AIX) 2003-09-09 19:25:55 +00:00
Moriyoshi Koizumi 36e89f6deb Add an phpinfo entry showing which version of freetype is linked to gd. 2003-09-09 19:08:30 +00:00
d73045166b ChangeLog update 2003-09-09 00:31:42 +00:00
Marcus Boerger 9d0506ec54 Fix property inheritance where a derived class inherits a public property
and owns it as an implicit public property already (noticed by Brad).
2003-09-08 23:25:57 +00:00
Sara Golemon 4936234fd8 MFB(r-1.74.2.13) Bug #25314 ASCII mode transfers behaving like binary when initiated from windows. 2003-09-08 22:40:12 +00:00
Ilia Alshanetsky a439221d6e Fixed bug #25333 (Possible body corruption & crash in win32 mail()). 2003-09-08 22:36:59 +00:00
foobar 8345cff1ff Revert the JIS addition, it did not fix anything 2003-09-08 22:19:39 +00:00
Moriyoshi Koizumi 303fc609a6 Fix build in VC++7.
# The line didn't reflect the above comment, helly :)
2003-09-08 20:59:36 +00:00
Ilia Alshanetsky 80fb9496b3 Re-enable sendmail binary check, now with parameter detection. 2003-09-08 20:15:35 +00:00
Rob Richards 315bf401ba move some document properties internally
add xpath namespace support (by Shane)
2003-09-08 18:28:35 +00:00
foobar 62d7073a8b - Fixed bug #25424 (ext/informix: lvarchar not supported in win32 build) 2003-09-08 15:07:21 +00:00
foobar 8fe843b9ac MFB: - Added JISX0208=1 and USE_GD_JISX0208 defines 2003-09-08 13:35:14 +00:00
foobar 7429aadf30 - Should fix bug #25295 2003-09-08 13:15:22 +00:00
foobar 6ed790685f configure.in 2003-09-08 13:14:41 +00:00
foobar ca18b631fd - Should fix some CLI build problems on some systems. 2003-09-08 13:10:10 +00:00
Marcus Boerger 62421b5201 Fix registering/derigistering of stdClass in ZTS and NON ZTS mode 2003-09-08 10:45:19 +00:00
Marc Boeren b135205d05 Fix warning and converted dos-crlf to unix line-endings. 2003-09-08 07:19:08 +00:00
Ard Biesheuvel 19f69336e2 Don't include unnecessary headers in other configuration too 2003-09-08 00:41:03 +00:00
Ard Biesheuvel e9ca738200 Don't include unnecessary headers 2003-09-08 00:32:22 +00:00
3cbdfccaa8 ChangeLog update 2003-09-08 00:31:45 +00:00
Marcus Boerger 93a07f6c68 Allow to search for section FILE with 2nd parameter (found by Derick) 2003-09-07 23:46:33 +00:00
Marcus Boerger cdc5d69ec2 Fix foreach() called with non array 2003-09-07 23:09:30 +00:00
Ard Biesheuvel 366a4b7f94 Zero-terminate strings
Add fileflags for DEBUG build
2003-09-07 20:35:09 +00:00
Ard Biesheuvel 6c0e21fc74 Add version info to Windows DLL 2003-09-07 19:59:55 +00:00
foobar 9539471c60 Fixed ming to work with new OO stuff. Patch by tony2001 at phpclub dot net 2003-09-07 16:11:41 +00:00
Stanislav Malyshev 22c6bc13c7 check for mach-o/dyld.h - needed for non-PHP ZE build 2003-09-07 13:49:15 +00:00
Marcus Boerger c0b9d55cfa ZTS fix 2003-09-07 02:37:10 +00:00
573abd7e50 ChangeLog update 2003-09-07 00:31:51 +00:00
foobar 5a7d97fab7 typo + proto fix 2003-09-07 00:00:00 +00:00
Georg Richter c836bf6036 test for helly's mysqli_fetch_object changes 2003-09-06 19:40:53 +00:00
Marcus Boerger 1ae13e543a Modify mysqli_fetch_object() to be able to instantiate a selected class and
pass parameters to the constructor.
2003-09-06 19:34:48 +00:00
Marcus Boerger f6239c33bc Modify pg_fetch_object() to be able to instantiate a selected class and pass
parameters to the constructor. Update tests and add a test for these features.
2003-09-06 18:34:55 +00:00
Stefan Roehrich 6206837929 Code cleanup:
Fixed ob_gzhandler with register_long_arrays = On.
Unified compression_coding global var (removed ob_gzip_coding).
Switched to zend_parse_parameters().
Added some tests.
2003-09-06 15:31:35 +00:00
Marcus Boerger 5d1dbdbfd2 Bugfix #25404 2003-09-06 15:30:28 +00:00
Sara Golemon f9734f810c Add missing proto 2003-09-06 14:56:36 +00:00
Sara Golemon e6fbb7baf5 http.h php_http,h rename 2003-09-06 14:52:10 +00:00
Marcus Boerger fdf3fbadf0 Disallow to changing the backtrace 2003-09-06 14:06:40 +00:00
Marcus Boerger a986b3f6a4 Add missing newline if no static methods are available 2003-09-06 13:18:12 +00:00
Marcus Boerger 10ea007e39 - Internal functions shall be static
- Fix more nesting
2003-09-06 13:11:27 +00:00
foobar f62239c444 renamed http.h -> php_http.h 2003-09-06 13:09:04 +00:00
foobar d00a14339c - Typos, CS, etc.
# Sara, add the missing description to the proto..
2003-09-06 13:07:47 +00:00
Marcus Boerger 35529e1964 Fix logic 2003-09-06 13:02:16 +00:00
foobar ed32007f58 renamed http.h -> php_http.h 2003-09-06 12:56:02 +00:00
Marcus Boerger c31fc7771a - Fix CS: {{{ / }}}
- Fix static reflection_*::export()
- Add class reflection_object which allows to show dynamic properties
2003-09-06 12:52:40 +00:00
Marcus Boerger f5b1114449 Use %s where it makes more sense 2003-09-06 10:59:07 +00:00
Sebastian Bergmann 755eca693e Add ext/standard/http.{c|h}. 2003-09-06 07:57:10 +00:00
Sara Golemon c0469ceb8d Fix Objects bug. (Objects != Arrays) 2003-09-06 07:34:58 +00:00
Sara Golemon 490e7fd6fd Fix segfault on uninitialized zval, skip NULL/Resource types, fix integer value handling, and process doubles/bools more efficiently. 2003-09-06 06:57:40 +00:00
Sara Golemon 3b63b21f37 Standard Footer 2003-09-06 05:41:48 +00:00
Sara Golemon 79ad5802a5 Prevent Recursion 2003-09-06 05:41:36 +00:00
Greg Beaver fba7705c99 make error code helpful if no releases of a package exist at all 2003-09-06 02:37:15 +00:00
Greg Beaver 639029bf25 make error code helpful if no releases of a package in preferred-state exist 2003-09-06 02:34:11 +00:00
Sara Golemon 0be65c49d3 Introducing php_url_encode_hash_ex() internal function
and http_build_query() userspace function.
2003-09-06 00:35:21 +00:00
b0aff5de7d ChangeLog update 2003-09-06 00:31:23 +00:00
Marcus Boerger d9d082072c Omitting is also possible here 2003-09-05 20:09:19 +00:00
Marcus Boerger f05525a0ef WS 2003-09-05 20:05:08 +00:00
Marcus Boerger 14ffad71d6 Fix warnings 2003-09-05 19:27:26 +00:00
Ard Biesheuvel 193f5a67db Add missing CVS Ids 2003-09-05 17:02:02 +00:00
Marcus Boerger 79a507e4eb Simplify reflection_property::__constructor() and fix property factory 2003-09-05 14:48:55 +00:00
foobar 821f517f63 - Simple test for ming 2003-09-05 14:46:38 +00:00
Marcus Boerger 9a39cd5501 - Don't use resorved words as variable names.
- Improve several exception messages.
- Fix Reflection_Property::_construct() / getDeclaringClass()
# The above does not imply that properties are fixed when returned
# by other reflection api methods.
2003-09-05 14:35:31 +00:00
Ard Biesheuvel 2815169319 Be more relaxed about dimensions of array arguments 2003-09-05 14:21:25 +00:00
foobar 48e019e589 grouped DBX stuff 2003-09-05 13:34:21 +00:00
Ard Biesheuvel c9d082ef21 Test array handling 2003-09-05 13:08:41 +00:00
Ard Biesheuvel 2802293dd3 Make the test fail if anything goes wrong :-)
Some CS
2003-09-05 12:18:03 +00:00
Marc Boeren 17da514854 Added updates to dbx module to NEWS by hand as @ doesn't work
according to Jani (since when is this?).
2003-09-05 12:14:57 +00:00
Marcus Boerger 34990374e1 Fix reflection_api::__construct() (noticed by Andrey) 2003-09-05 12:14:03 +00:00
Marcus Boerger 0e3918732e Provide string casting for exceptions by calling toString() 2003-09-05 11:40:30 +00:00
Marc Boeren e3929cc33a Added DBX_RESULT_UNBUFFERED flag for dbx_query.
Added dbx_fetch_row() function.
Added/updated tests for both.
@Added DBX_RESULT_UNBUFFERED flag for dbx_query. (Marc)
@Added dbx_fetch_row() function. (Marc)
2003-09-05 08:39:26 +00:00
79e5df27af ChangeLog update 2003-09-05 00:32:09 +00:00
Ard Biesheuvel e73be1cb4a Added support for binding arrays 2003-09-04 22:37:14 +00:00
Greg Beaver e7eb8127a8 remove debug code 2003-09-04 22:30:07 +00:00
Greg Beaver 0ad60ebf3b fix bug in --force - $options was never passed to _installFile.
add PHPDoc
2003-09-04 22:29:21 +00:00
Greg Beaver 8a70f5c01c fix bug in --force on windows 2003-09-04 22:21:33 +00:00
Ard Biesheuvel 54405317f4 Don't rely on sizeof(int) == 4 2003-09-04 21:10:03 +00:00
Marcus Boerger 95649ab260 Tests show updating consts must happen once at runtime (revert optimization).
Add tests for static properties.
2003-09-04 16:00:01 +00:00
Marcus Boerger 4e7a782f3a Add reflection_class::getstaticproerties() 2003-09-04 15:57:25 +00:00
Marcus Boerger 421e2e9275 Go with the mess 2003-09-04 14:54:53 +00:00
Marcus Boerger 0f91d8a4f6 Go with stdlyCaps 2003-09-04 14:44:55 +00:00
Ard Biesheuvel f4511d4aae Don't rely on sizeof(int) == 4 2003-09-04 14:44:34 +00:00
Marcus Boerger e5e6040efe Remove unwanted space 2003-09-04 14:43:36 +00:00
Marcus Boerger 3658ad4c3f Update necessary test INIs 2003-09-04 14:41:10 +00:00
Ard Biesheuvel cb8da7b090 Fix inter-op with IB < 6
Fixes for 64-bit archs
2003-09-04 14:18:39 +00:00
Ard Biesheuvel 6f998688b5 Fixed fetching of arrays
# Untested for multidimensional arrays
2003-09-04 11:09:46 +00:00
Jon Parise da7facc21b Register the TYPEMODEL constant from c-client's mail.h. 2003-09-04 07:47:58 +00:00
Ard Biesheuvel 912a834749 No scaling for double type
Added missing array types
Precompute scale factors
2003-09-04 01:26:36 +00:00
e2c873fa0c ChangeLog update 2003-09-04 00:32:10 +00:00
foobar edfd3e7c6a Cleanup after ourselves. 2003-09-03 22:53:21 +00:00
Marcus Boerger be8287e55c Partly revert and reintroduce hash table entries for the ctor.
# Obviously not the brightest idea i had today.
2003-09-03 21:21:18 +00:00
Marcus Boerger 430bfc6f09 Fix test 2003-09-03 21:19:22 +00:00
Marcus Boerger 5569d7fae9 Nuke unused variable, too 2003-09-03 20:28:13 +00:00
Marcus Boerger 61b96d1fe2 - Inheritance applies to __clone() too.
- No need to add additional functions for the constructor.
  The handler uses the pointer as intended and doesn't look the the name.
2003-09-03 20:26:01 +00:00
Marcus Boerger 91ff8d67e7 Cannot turn a static property into a non static one and vice versa 2003-09-03 19:28:46 +00:00
Sebastian Bergmann afdecc374d ZTS fix. 2003-09-03 18:13:11 +00:00
Marcus Boerger 7bbbd5035d Fix handling of static properties initialized to arrays 2003-09-03 18:01:22 +00:00
Ard Biesheuvel 4ff5341fb0 WS 2003-09-03 17:15:40 +00:00
foobar af06d049cf test for bug #25378 2003-09-03 16:40:52 +00:00
Marcus Boerger 1d21d48e8a Add missing error messages when violating static property inheritance rules. 2003-09-03 16:34:35 +00:00
foobar 7d57f9eddf sync 2003-09-03 16:24:24 +00:00
foobar ba6c58ad73 - Fixed bug #25378 (Invalid data passed to unserialize() causes segfault) 2003-09-03 16:24:15 +00:00
Marcus Boerger 1b39a5aa2c Fix static properties.
#
# There's only an errormessage missing which i'll wommit as soon as i find out
# how to do it best. But besides that damn message everything works now and all
# inheritance rules apply.
#
2003-09-03 16:13:40 +00:00
Ard Biesheuvel 804312c4a1 Test correct binding of 16-bit NUMERIC parameters 2003-09-03 15:24:50 +00:00
Ard Biesheuvel b3b68834b5 Fix binding of 16-bit NUMERIC parameters 2003-09-03 15:15:30 +00:00
foobar acd8096d53 - Fixed bug #25372 (sscanf() does not work with %X) 2003-09-03 11:54:35 +00:00
Marcus Boerger 1d3d396fea Allow redeclareing a protected property as public.
#
# The only known thing left at this moment is that the protected static members
# of a base class is different then the redeclared public property. I tried
# to remove both new and old static properties in the derived class and copy
# the base property with the new name. But for reasons i have to check later
# that didn't result in the expected behavior. Anyway we would need a warning
# if someone tries to change the value of a static property in a derived class.
#
2003-09-03 10:58:55 +00:00
Rob Richards fd5758781c changes to php_dom.h for last commit
replaced removed closing tags - doh
2003-09-03 10:48:02 +00:00
Rob Richards 5630dd0be2 add document HTML load/save methods
add document standalone validate method
cleanup some prototype declarations
domexception inherits from default exception
2003-09-03 10:11:53 +00:00
Zeev Suraski 93f0ee5fda Revert bogus patch
One must *never* use E_CORE_* error levels!
2003-09-03 08:39:43 +00:00
Sascha Schumann dcd0b8fc90 Update documentation, -b ip:port works 2003-09-03 08:24:37 +00:00
Sascha Schumann 45a928ef94 fix heuristic: if someone passed "-b IP:port", this check would
falsely recognize the parameter as defining only a port.
2003-09-03 08:15:09 +00:00
Sascha Schumann a283caf392 centralize cflags 2003-09-03 08:08:12 +00:00
Marcus Boerger 2f6e25da79 Clearly distinguish between Const, Static and Other members.
# Const and static props have more in common then static and dynamic/implicit.
2003-09-03 00:38:13 +00:00
3b2a06382b ChangeLog update 2003-09-03 00:31:52 +00:00
Marcus Boerger d1b74000ad Fix error messages 2003-09-02 23:12:37 +00:00
Ard Biesheuvel d674159601 Nuke far pointers
# Unfortunately, this does break compatibility with Windows 3.x :-)
2003-09-02 22:37:26 +00:00
Ard Biesheuvel f19dcfe8a3 CS fixes
# Boy, these guys are worse than -ansi -pedantic
2003-09-02 22:19:18 +00:00
Marcus Boerger 2fde9b7794 Add a shortcut 2003-09-02 21:41:01 +00:00
Marcus Boerger e569b5aee5 Allow redeclaring of protected properties as public (for internal classes).
# See http://news.php.net/article.php?group=php.zend-engine.cvs&article=1737
# for the part not fixed (e.g. property redeclaration of userland classes)
2003-09-02 20:49:42 +00:00
Sascha Schumann 7382178f73 enable re2c check for self-contained extensions 2003-09-02 19:42:17 +00:00
Sascha Schumann 64151b3796 provide RE2C to external extensions 2003-09-02 19:34:27 +00:00
Ard Biesheuvel 4545ea4666 Make ibase_{param|field}_info() return typenames that actually mean something 2003-09-02 19:30:20 +00:00
Marcus Boerger 560d3ab36a Use appropriate function for property name unmangling.
# Make Andrey happy
2003-09-02 14:46:02 +00:00
Marcus Boerger 7148cb9e73 Make these static as noticed by Andrey 2003-09-02 14:11:53 +00:00
Marcus Boerger 9702c70a35 Synch/Unify error messages related to function/method calls 2003-09-02 14:08:59 +00:00
Ard Biesheuvel 3d6426ee14 Fix use of EXTERN_C macros 2003-09-02 13:34:23 +00:00
Marcus Boerger 469b746b4d Fix error level 2003-09-02 13:28:34 +00:00
Marcus Boerger 0f3374615b Currently we cannot support static ctor/dtor 2003-09-02 13:26:25 +00:00
Ard Biesheuvel 0f1b506f20 Can't ignore variadic DEBUG macro for compilers
that don't support them. Revert.
2003-09-02 13:17:56 +00:00
Marcus Boerger bd86aff005 These are implicit properties as denoted by the flag. Dynamic properties only
exist in one single object and currently reflection api is not capable of
showing those.
2003-09-02 13:12:47 +00:00
Ard Biesheuvel e6ea5ca9c3 Fix use of EXTERN_C macros 2003-09-02 13:07:17 +00:00
Ard Biesheuvel dbdd5b415d Changed some formatting/macro/debugging/variadic stuff 2003-09-02 12:46:42 +00:00
Marcus Boerger e69028346a Error message clean up part IV: spprintf/estrndup don't return on 'out of mem'
Error message clean up part V: Show PHP Startup/Shutdown
2003-09-02 12:12:05 +00:00
Greg Beaver 92341f79be if a package.xml is passed to InfoFrom*(), and the package version is invalid, current CVS causes a whole bunch of xml parser warnings and craps out without telling the user why. Now it exits gracefully. 2003-09-02 03:15:27 +00:00
Greg Beaver e472325918 fixes rather obvious problem. Try this with CVS before:
pear install package-PEAR.xml

It attempts to split on the - as if PEAR.xml were a version and package were the package name.  Now, it doesn't do that if the $pkgfile is a local filename.
2003-09-02 03:10:57 +00:00
foobar 71676e37bf - Fixed bug #25348 ("make install" fails with --enable-short-tags). 2003-09-02 01:29:21 +00:00
foobar 62d2810cfc - Fixed bug #25343 (is_dir() gives warning on FreeBSD). 2003-09-02 01:22:02 +00:00
Marcus Boerger a383ff01e6 Error message clean up part III: Fix ini setting logic & respect docref_root 2003-09-02 00:35:51 +00:00
Marcus Boerger 107a59ae72 Error message clean up part II: Don't show params where none apply. 2003-09-01 23:32:28 +00:00
Marcus Boerger 4e049f9fc9 Error message clean up part I: always show 'Unknown' instead of empty names. 2003-09-01 22:55:40 +00:00
Sara Golemon 29664d9322 MFB: Plug leak when invalid domain name provided. 2003-09-01 22:38:40 +00:00
Marcus Boerger f03801bdd6 Don't loose information if no parameters were shown.
# Noticed by Sebatian Bergmann
2003-09-01 21:40:58 +00:00
Marcus Boerger bca0019d43 Fix initial buffer size 2003-09-01 21:14:09 +00:00
Marcus Boerger 2b19c5435e Fix class handling of invoke 2003-09-01 21:11:38 +00:00
Marcus Boerger d7fa986db8 Show {main} and prevent showing empty stack traces 2003-09-01 20:54:48 +00:00
Marcus Boerger 0036ed9064 Clearify this 2003-09-01 20:02:47 +00:00
Marcus Boerger bef3e13caf Add missing '}' 2003-09-01 19:47:34 +00:00
Marcus Boerger 28f14424a2 WS/CS
# Let's see if i can overcome those annoying "^M"s
2003-09-01 19:28:38 +00:00
Sebastian Bergmann 07ef05adb5 Revert what I think is an accidental commit by Marcus that slipped in at revision 1.23. Declaring getMessage() as final is a PITA, so I hope it will not come to that. 2003-09-01 17:26:57 +00:00
foobar 2bbd11e6b5 "fixed" bug #25344 (regular domain "localhost.com" used in php.ini) 2003-09-01 16:25:07 +00:00
Marcus Boerger cbd08869f2 Add static reflector::export() and its implementations.
#
# This makes the main reflection use a lot easier.
#
2003-09-01 16:13:24 +00:00
Marcus Boerger a389286b99 Set the params in the struct 2003-09-01 15:09:57 +00:00
Marcus Boerger c7f1c2f74f Invalidate exception in this case too 2003-09-01 13:05:50 +00:00
Marcus Boerger 1257b407a6 WS 2003-09-01 13:04:55 +00:00
Stanislav Malyshev 90f7a474ac The sendmail_path executable check breaks setups that use parameters
for sendmail - including the default setup - so I'm disabling it for now.
2003-09-01 08:20:17 +00:00
Sebastian Bergmann 4d06f166c4 Add xsl. 2003-09-01 06:14:24 +00:00
foobar bd09eb171a libxml 2.5.10 or greater required from now on 2003-09-01 04:48:40 +00:00
ff647c501f ChangeLog update 2003-09-01 00:31:37 +00:00
Ilia Alshanetsky 07f864d06b Make sure that ftp->data is nulled after it's freed. This may fix bug
#25294 & bug #25296.
2003-08-31 21:07:01 +00:00
Ilia Alshanetsky 9c82b1fa75 Fixed compiler warnings. 2003-08-31 20:45:51 +00:00
Greg Beaver ceff58fb5e typo 2003-08-31 18:54:38 +00:00
Greg Beaver 1cc2e637b2 Tomas say:
"I think you'd have to let the user still install the package with
--force."

I say, OK :)
2003-08-31 16:41:27 +00:00
foobar c952ea0bb3 - Fix win32 debug build 2003-08-31 16:28:19 +00:00
foobar 46e47ec0db - Fix the win32 build.
# mbregex is still not build, that onigurama stuff didn't compile
2003-08-31 16:08:46 +00:00
Marcus Boerger 4506d4ea24 Don't repeat first const count(consts) time 2003-08-31 15:47:48 +00:00
Marcus Boerger 660c14e74a Beautify output 2003-08-31 15:30:13 +00:00
Marcus Boerger 4af0621036 Add reflection_parameters, patch by Timm Friebe 2003-08-31 15:06:54 +00:00
Marcus Boerger 47d1e8ac77 Fix formatting specifier 2003-08-31 14:38:25 +00:00
Marcus Boerger 733e90bf0a No dots at the end of error messages 2003-08-31 14:35:10 +00:00
Marcus Boerger 2a744ccb90 Fix format specifiers 2003-08-31 14:33:17 +00:00
Zeev Suraski 8767205afa Fix Win32 linkage problems 2003-08-31 12:41:53 +00:00
Marcus Boerger f9ee319152 Excluded chars < 32 when displaying string parameters that would obliterate output. 2003-08-31 12:40:29 +00:00
Zeev Suraski f1b80b9210 Attempt at fixing the linkage problem in Win32 2003-08-31 12:38:50 +00:00
Marcus Boerger fb4a63a07d Synch error message with other one to fix tests 2003-08-31 11:38:31 +00:00
Marcus Boerger 8376b7eff7 Check whether we may access tat union 2003-08-31 11:21:30 +00:00
Marcus Boerger 63dacec1d4 Revert commit by accident, sorry 2003-08-31 11:03:05 +00:00
foobar 9a47ae68ef - Single header files installation. 2003-08-31 10:54:16 +00:00
Marcus Boerger d15ad4609d Revisited: Replace the non portable code by spprintf 2003-08-31 10:52:23 +00:00
Marcus Boerger ade319ac54 Using zend_spprintf should be faster here 2003-08-31 10:06:13 +00:00
Marcus Boerger d45fd8a1b1 Make vspprintf available as zend utility function. Use it in exception output. 2003-08-31 09:35:54 +00:00
Sergey Kartashoff c4b0b8c262 - a new UDM_PARAM_SEARCH_RESULTS mnogosearch API command added to limit
maximum number of search results
2003-08-31 07:00:29 +00:00
Greg Beaver 39105b9927 This patch should fix all unintended upgrading/installation of packages less stable than preferred state 2003-08-31 06:53:46 +00:00
Greg Beaver 0e6f284a62 fix #25322 2003-08-31 06:08:41 +00:00
Wez Furlong b0d74a9485 install sqlite headers with the rest of php.
We only really need sqlite.h, but our build system doesn't provide for
installation of a single header file
(at least not that I can see)
2003-08-31 01:44:45 +00:00
c9a69abe25 ChangeLog update 2003-08-31 00:31:46 +00:00
Marcus Boerger 00fddc9b83 Actually fetch the parameter 2003-08-30 23:55:04 +00:00
Marcus Boerger f1c92fa4c5 - Calling abstract methods should be a error for consistency reason.
- So in reflection_api we use the reflection_exception again.
2003-08-30 23:51:42 +00:00
foobar c803e4643d No need to enable by default. Derick got confused. :) 2003-08-30 22:09:27 +00:00
foobar 4d788fc1e2 libmbfl is required always 2003-08-30 21:57:29 +00:00
foobar c57ecb0e9a ws 2003-08-30 21:32:10 +00:00
Andi Gutmans 944544f013 - PLEASE stop commiting ^M's 2003-08-30 19:04:26 +00:00
Marcus Boerger 80c0cdf7f7 Even though it is ignored this should be correct 2003-08-30 19:01:10 +00:00
Marcus Boerger 655f2dc572 Add frame numer and finally display stack trace in the message.
#
# And voila - nice useable and helpfull exceptions in PHP.
# Now we need to tell ppl 'anyway don't use them if possible'.
#
2003-08-30 18:58:40 +00:00
Marcus Boerger c80eb4573f Add exception::traceAsString() and exception::toString() 2003-08-30 18:28:24 +00:00
Greg Beaver b9c71c7754 CS fix 2003-08-30 15:59:50 +00:00
Marcus Boerger 6c69b28790 fci.function_table & fci.function_name are not needed since we use zend_fcall_info_cache 2003-08-30 13:47:27 +00:00
Marcus Boerger e679504861 Be precise 2003-08-30 13:38:23 +00:00
Marcus Boerger 49a538d054 Actually using fcc would be a good idea 2003-08-30 12:58:35 +00:00
Marcus Boerger f7f49e4584 - The compiler can't detect all abstract function calls so we need to check.
# In this case throwing a dedicated exception is better than the error we
# show when the compiler can detect the abstract call because its run-time.
2003-08-30 11:40:37 +00:00
Marcus Boerger ad31a021bc Make those final (see comment) 2003-08-30 11:33:41 +00:00
foobar 49ff8e7866 Add note about version requirement 2003-08-30 11:01:25 +00:00
foobar 97b151ee3e Added version checking and --with-openssl-dir option 2003-08-30 10:57:42 +00:00
foobar d1adaf65d1 stupid windows 2003-08-30 10:51:02 +00:00
Sascha Schumann e090d2ddb9 Never overwrite .c files when re2c does not exist. 2003-08-30 07:27:05 +00:00
707accd337 ChangeLog update 2003-08-30 00:31:40 +00:00
Marcus Boerger c3f7ea3510 Fix property inheritance by using dedicated new function 2003-08-29 23:30:03 +00:00
Marcus Boerger 047a574e6c - Add zend_merge_properties() which is designed to serve *_fetch_object().
- Explain drawbacks of object_and_properties_init and zend_merge_properties.
#
# I guess we can live with the purity problem of potentially calling __set()
# of an object which wasn't already ctored.
#
2003-08-29 23:27:22 +00:00
Marcus Boerger 50040c8ae9 - Use zend_fcall_info_cache in invoke() to improve speed.
# This also fixes the problem with calling static methods.
2003-08-29 21:46:12 +00:00
Marcus Boerger 0cb983885d Throw exception if user wants to pass arguments to an non existing constructor 2003-08-29 21:33:24 +00:00
Marcus Boerger adaf6429a7 Throw exception if user wants to pass arguments to an non existing constructor 2003-08-29 21:32:25 +00:00
Greg Beaver f3fd882aa4 One more fix for spaces in paths 2003-08-29 21:21:27 +00:00
Marcus Boerger eb8d89c363 Allow to pass arguments to the constructor 2003-08-29 21:13:50 +00:00
Greg Beaver dce4268282 fix optional dependencies in Dependency.php, remove ugly hack in Installer, add note about Cox's cool addition to pear install, remove noise of who did what from package.xml, fix #25008 2003-08-29 20:50:36 +00:00
Tomas V.V.Cox e18e3a6edd This patch allows:
pear install DB-1.2     -> specific version
pear install DB-stable  -> latest stable version
                           (stable, beta, alpha, ..)
pear install DB-1.2.tar -> download in tar format

Currently only "install" and "upgrade" support this
more will come shortly.
2003-08-29 18:23:31 +00:00
Tomas V.V.Cox 26c90cc965 snapshot < devel (betterStates()) 2003-08-29 14:02:20 +00:00
Sergey Kartashoff 1795915b32 - A mnogosearch extension is updated to work with mnogosearch-3.2.15+ 2003-08-29 13:35:26 +00:00
Sascha Schumann a3c89a2e8f Fix a segfault which occured when using a storage format not capable
of expressing references (e.g. WDDX) and deserializing a session variable
whose name conflicted with an existing symbol in the global scope.

PR: #25307
Submitted by: Jani Taskinen
Speling fixes: me
2003-08-29 12:33:47 +00:00
foobar a256170d66 - skip with CLI 2003-08-29 09:09:18 +00:00
foobar b78f146f7f - Skip with CLI 2003-08-29 09:05:11 +00:00
Zeev Suraski aaa1cdca31 Fix a problem in implicit public properties and inheritance 2003-08-29 08:51:43 +00:00
Sascha Schumann 5b09f342fe improve format string 2003-08-29 07:34:47 +00:00
Sascha Schumann dcfb7638bc improve a number of zend_debug format strings 2003-08-29 07:34:37 +00:00
Greg Beaver b251177ebf add note about fix for spaces in paths for an installation into a directory with spaces 2003-08-29 05:44:59 +00:00
Greg Beaver 1511accc7e fix spaces in paths for an installation into a directory with spaces 2003-08-29 05:40:50 +00:00
foobar 192666b184 MFB 2003-08-29 00:53:46 +00:00
a92363f694 ChangeLog update 2003-08-29 00:31:41 +00:00
Marcus Boerger ab22461262 Add define to reset error handling more easily 2003-08-29 00:22:36 +00:00
Marcus Boerger bdd2d4aacf Need to tell zend_fetch_debug_backtrace() whether to skip top function or not.
# And i wondered why the trace wasn't rally accurate.
2003-08-29 00:16:00 +00:00
Marcus Boerger b3f3ddd1b5 Add public read access to protected 2003-08-28 23:43:56 +00:00
Marcus Boerger b75133c0c6 Need to check if we got any value before destroying it 2003-08-28 23:36:46 +00:00
Marcus Boerger 257223bdcc Match expected class and instantiated class 2003-08-28 23:30:16 +00:00
Marcus Boerger 90561350f9 Add sqlite_fetch_object() 2003-08-28 23:19:51 +00:00
Marcus Boerger 07789ebd0e Error messages show the class now 2003-08-28 23:18:38 +00:00
Marcus Boerger d2f39fc11e format string fix and number of arguments 2003-08-28 23:04:27 +00:00
Marcus Boerger fa70708d15 Add zend_throw_exception_ex() which allows to format exception messages.
#
# Since we don't have any portable way of printing into a dynamic buffer i
# used a stack buffer of 1K (just like the error printing) and used a dynamic
# buffer in case the necessary function is available.
#
2003-08-28 22:56:41 +00:00
Marcus Boerger 12376a2270 Classe tables work this way 2003-08-28 22:53:24 +00:00
Ard Biesheuvel 6ee5a0db28 Prototype fixes
Return number of affected rows by ibase_query() and ibase_execute() if > 0
# Second change was actually introduced in 1.149, but never
# mentioned in the CVS log
2003-08-28 22:12:06 +00:00
Andrey Hristov 189e2d8862 this is the right parameter 2003-08-28 21:06:44 +00:00
Andrey Hristov b2eb454171 format string fixes 2003-08-28 21:00:24 +00:00
Andrey Hristov acb65b7c0a misplaced quote 2003-08-28 20:51:18 +00:00
Andrey Hristov 20383f9080 \n at the end of the message is not needed 2003-08-28 20:43:18 +00:00
Marcus Boerger 8d3620aea8 - Split debug_backtrace() into lowlevel c function and php function wrapper
- Add trace property to default method based on new zend_fetch_debug_backtrace
# Unforunatley the handler for uncaught exception can't show this backtrace
# simply because there is currently no way to do it. If i can think of a
# solution i'll add it. Until them i am open to any ideas/help.
2003-08-28 20:35:54 +00:00
Ilia Alshanetsky 9d9727aac5 Fixed compiler warnings. 2003-08-28 19:17:34 +00:00
Ilia Alshanetsky 4f2e9bbc45 Fixed format error. 2003-08-28 17:56:41 +00:00
Ilia Alshanetsky 21d5061038 Fixed format bug 2003-08-28 17:48:58 +00:00
Sascha Schumann 237da469d7 format string fix 2003-08-28 17:34:33 +00:00
Sascha Schumann 744c68e447 older gccs don't understand attribute((format)) on function pointers 2003-08-28 17:31:31 +00:00
foobar a1adc61939 - added mcve to the modules workspace 2003-08-28 17:25:34 +00:00
Sascha Schumann b9a67764d5 Fix error message 2003-08-28 17:09:44 +00:00
Sascha Schumann af8e15b8db kill warnings 2003-08-28 17:07:40 +00:00
Sascha Schumann 83bd1f4398 ZEND_GCC_VERSION should always be defined to a number so we can use
simple comparisons all the time.
2003-08-28 17:04:16 +00:00
Sascha Schumann 436a07176c fix format strings 2003-08-28 16:49:57 +00:00
Sascha Schumann 341b7b5df1 add format attribute where appropiate 2003-08-28 16:49:43 +00:00
Ard Biesheuvel 50006652ae Fixed some format strings 2003-08-28 16:48:22 +00:00
Sascha Schumann 2e36578cfd Add format attribute to a number of functions
Kill a few warnings
2003-08-28 16:41:20 +00:00
foobar 04bbd9a2f7 Revert the patch per Dan\´s request 2003-08-28 16:35:32 +00:00
Sascha Schumann 6a7dde29e7 kill warnings 2003-08-28 16:28:33 +00:00
foobar 2811f9293d MFB 2003-08-28 16:19:08 +00:00
Stefan Roehrich dd8aadedf5 Remove NEWS entry because fix was committed to 4.3 branch. 2003-08-28 16:06:49 +00:00
Sascha Schumann 96ad1c8bcb fix format string (long port) 2003-08-28 15:16:20 +00:00
foobar b26dcef54f MFB 2003-08-28 14:58:02 +00:00
Sascha Schumann 258d958d4f Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC 2003-08-28 14:53:36 +00:00
Sascha Schumann 169d43e5fa cleanup & centralize ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC so that
they can be used by downstream applications
2003-08-28 14:53:02 +00:00
Andrey Hristov 367880b2c1 proto fix 2003-08-28 12:18:51 +00:00
Sascha Schumann f065aba3ba Enable attribute((malloc)) for GCC 2.96 2003-08-28 11:55:39 +00:00
Stanislav Malyshev 06273c5637 MF4: -m fix for premature extension unloading 2003-08-28 11:50:32 +00:00
foobar 29b9d26223 typofix 2003-08-28 09:55:11 +00:00
Sascha Schumann 6d7e56a0c8 GCC 2 does not know about malloc yet. 2003-08-28 06:17:05 +00:00
Moriyoshi Koizumi 86e2c16d9c Add further check for "#include MACRO" style syntax 2003-08-28 06:04:48 +00:00
Sascha Schumann cf1f6e3c4c provide attribute((malloc)) where appropiate 2003-08-28 05:50:15 +00:00
Sascha Schumann 5ef7cc4cb6 Let GCC check format arguments 2003-08-28 05:23:08 +00:00
Greg Beaver 095efa09af * added --alldeps --onlyreqdeps options for pear install/upgrade.
* added automatic dependency sorting, so the order of packages on command-line is unimportant for both install/uninstall
* added one more spaces in paths fix that was missed in PEAR_Common
2003-08-28 03:42:21 +00:00
8a00475722 ChangeLog update 2003-08-28 00:32:00 +00:00
Ilia Alshanetsky bf82857475 Fixed bug #25109 (Possible crash when fetching field name) 2003-08-28 00:31:36 +00:00
Ilia Alshanetsky e5879a5060 Fixed tests that failed in ZTS due to incorrect file paths.
Fixed test that failed due to new array dimension property being fetched.
2003-08-28 00:29:44 +00:00
Ard Biesheuvel c78169086b Test multiple execution of a prepared EXEC PROCEDURE statement 2003-08-28 00:18:27 +00:00
Ard Biesheuvel 36716c2525 Test for BLOB ID survival of close()/connect() 2003-08-28 00:17:25 +00:00
Ard Biesheuvel fd89b9a783 Removed TSRMLS_FETCH from _php_ibase_module_error() 2003-08-28 00:11:16 +00:00
Ilia Alshanetsky 32b5df0bc7 Prevent abrupt script execution when sendmail_path contains invalid
executable.
Add more detail to the warnings regarding execution of sendmail binary.
2003-08-27 23:53:15 +00:00
Ard Biesheuvel 2db5c7de85 Do not reuse data structure for ibase_execute() results.
Invalidate the results whose statement handle has been invalidated.
# EXEC PROCEDURE results don't need a statement handle, so
# the result doesn't have to be invalidated.
Fixed some add_{index|assoc}_*() bogosity
2003-08-27 22:55:06 +00:00
Marcus Boerger 43836e97c5 Nuke unused variable
# I should have taken Timm's patch
2003-08-27 20:48:41 +00:00
Marcus Boerger 7f5196953c Fix reflection_class::newInstance() 2003-08-27 20:45:34 +00:00
Greg Beaver 3c87b23aa1 adding betterStates() for usage in automatic dependency resolution 2003-08-27 19:27:45 +00:00
Dan Kalowsky 0347ca91f4 Committing a patch for IBM DB2 BLOB support submitted by Clara Liu
(clara@zealworks.com).
# I haven't had time to completely test this patch, a few users have stated
# that it works well for them and a few others want to test with windows
# builds, hence the submission.
2003-08-27 18:21:52 +00:00
foobar d14eba3407 - Use the shtool in $builddir/build instead 2003-08-27 18:00:06 +00:00
Sascha Schumann d1d823b0a3 Use INSTALL to install build files 2003-08-27 13:58:44 +00:00
Ilia Alshanetsky a326bde2e8 Prevent a crash when expand_filepath() fails. 2003-08-27 01:10:10 +00:00
Sara Golemon 3560cd83c0 Squelch warning "Variable may be used uninitialized."
This would never occur anyway because of the logic of the function,
but gcc isn't quite smart enough to realize this.
2003-08-27 00:43:54 +00:00
b04e0a8884 ChangeLog update 2003-08-27 00:32:00 +00:00
Ilia Alshanetsky 249e8d5fa8 Fixed bug #22243 (make pg_meta_data fetch array dimentions)
m-lesser[at]better-com.de
2003-08-27 00:04:19 +00:00
foobar e4677c014a - Fixed bug #25166 (WDDX serializer handler missing in win32). (Jani) 2003-08-26 02:50:39 +00:00
foobar 625600af30 - Prevent crash if non-existing save/serializer handler is tried to be used
- Added the registered serializers information to MINFO.
2003-08-26 02:03:41 +00:00
e01eddf01d ChangeLog update 2003-08-26 00:32:02 +00:00
Sascha Schumann 0ad5fa63c9 Use $(INSTALL_DATA) instead of cp 2003-08-26 00:04:25 +00:00
foobar 28447d62da - Fixed bug #25240 (spaces before pre-processor directives) 2003-08-25 23:24:29 +00:00
Sara Golemon a76f0dc8ae Bugfix#25239 Closing control stream while data stream is open violates RFC959 section 2.3 2003-08-25 22:25:33 +00:00
Marcus Boerger 92e321294c Update 2003-08-25 22:07:28 +00:00
Marcus Boerger ba4178189b - Fix compile
- Building still not possible
2003-08-25 21:54:26 +00:00
Marcus Boerger 0bd1567fe1 Update exception code 2003-08-25 20:55:14 +00:00
Marcus Boerger b7d325991d Exceptions work now 2003-08-25 20:54:37 +00:00
Marcus Boerger 3b7d5781de - Simplify php_error_cb()
- Make errors show the class where possible
2003-08-25 20:51:40 +00:00
Rob Richards 2fea999468 fix debug build. use libxml dynamic linking until it can re-export symbols 2003-08-25 10:11:26 +00:00
Greg Beaver c33ec7ca12 adding me as helper, adding dependency on XML_RPC 1.0.4 and optional dependency on xmlrpc extension - this will change to dependency on XML_RPC 1.0.5 if all of Marshall's ideas are implemented 2003-08-25 06:34:46 +00:00
Greg Beaver cd0a8b057b my fault - forgot to fix this 2003-08-25 06:16:39 +00:00
foobar 6b7cb7c570 Some minor fixes so that this works with autoconf 2.13 too 2003-08-25 04:08:29 +00:00
Moriyoshi Koizumi e49c59038c Sync with original 2003-08-25 01:44:17 +00:00
15592ba096 ChangeLog update 2003-08-25 00:32:07 +00:00
Moriyoshi Koizumi 39ae479942 Allow usage of external libmbfl 2003-08-24 22:46:13 +00:00
Marcus Boerger f9cebab0cb Add missing check 2003-08-24 22:45:59 +00:00
Moriyoshi Koizumi 7fe12aaa17 Integrate allocator code into mbstring.c 2003-08-24 22:15:49 +00:00
Moriyoshi Koizumi ebcdf6f299 Sync with the original 2003-08-24 20:07:13 +00:00
Marcus Boerger 9603e44eb6 Fix memory source of string duplication for non internal properties 2003-08-24 18:47:11 +00:00
Marcus Boerger 19ec7a09fc - Provide appropriate way to destroy internal zval's.
- Allow internal zval's of type string and disallow complex types.
- Define the default string for extensions at class level instead of ctor.
2003-08-24 17:32:47 +00:00
Marcus Boerger cec053f707 Don't identify alias'ed functions 2003-08-24 16:35:58 +00:00
Zeev Suraski ea36fc4143 Use ""'s if you want empty strings. We want to crash on errors. 2003-08-24 16:27:01 +00:00
Zeev Suraski a9107e2be1 Use pemalloc() 2003-08-24 16:17:45 +00:00
Marcus Boerger b84e9db3b8 Allow NULL, too 2003-08-24 16:13:23 +00:00
Zeev Suraski 4ac6913801 Get rid of more ^M's - Marcus, please check your CVS client! 2003-08-24 16:09:49 +00:00
Zeev Suraski 8c0c44365a Get rid of more ^M's 2003-08-24 16:09:12 +00:00
Zeev Suraski cf1750c469 line endings fix 2003-08-24 16:01:57 +00:00
Zeev Suraski 0ac5bbd780 Never, ever, overwrite the refcount element of a connected zval! 2003-08-24 15:59:19 +00:00
Marcus Boerger e44d0f526c Add dedicated reflection_exception 2003-08-24 15:07:54 +00:00
Marcus Boerger 4e5e7502b8 Allow to throw instances of classes derived from exception 2003-08-24 15:07:00 +00:00
Stefan Roehrich aa632187cd Fixed bug #25218 ("deflate" compressed pages had a gzip header, which
should only be sent with "gzip" compressed pages).
2003-08-24 13:59:34 +00:00
Stefan Roehrich 8828e17a44 Fixed zlib.output_compression without register_long_vars set. 2003-08-24 13:32:50 +00:00
Marcus Boerger d3473d1f58 - Provide a unified way to display uncaught exceptions, which shows
file/line/message info if possible.
- Add zend_eval_string_ex() to be able to handle exceptions in eval'd code.
- Use above function to fix memleaks in CLI.
2003-08-24 13:10:03 +00:00
Marcus Boerger 669603f69d Make invoke() work 2003-08-24 12:07:13 +00:00
Marcus Boerger 96d4ac7a3f zend_parse_parameters 'O' works the way we need here 2003-08-24 11:34:01 +00:00
Marcus Boerger 418a7f980c Not needed 2003-08-24 11:28:53 +00:00
Marcus Boerger d4cf96c524 Make use method macros 2003-08-24 11:25:08 +00:00
Marcus Boerger eef1b7b1e8 One of PPP is needed, too 2003-08-24 11:24:10 +00:00
Marcus Boerger bd07968bef - Add Reflection_Function::isAlias
- Use ZEND_ME/ZEND_METHOD
- Fix static entries
2003-08-24 11:11:55 +00:00
Marcus Boerger 1c2512ddea - Add fn_flag ZEND_ACC_ALIAS
- Unify way of function_entry generation by new macro ZEND_FENTRY
2003-08-24 11:09:45 +00:00
Marcus Boerger 3605be8a29 Fix fn_flags handling 2003-08-24 11:07:30 +00:00
Rob Richards b196c0551e implement stricterrorcheck
fix clonenode
cleanup error routines
forgot these files
2003-08-24 10:24:22 +00:00
Rob Richards 09481c642b implement stricterrorcheck
fix clonenode
cleanup error routines
2003-08-24 10:23:43 +00:00
Rob Richards ea1b33438a remove document pointer references as doc is now copied 2003-08-24 10:18:08 +00:00
Marcus Boerger 38805f2809 Add property read code and use that in default exception class 2003-08-24 00:36:53 +00:00
b8799ff085 ChangeLog update 2003-08-24 00:32:03 +00:00
Marcus Boerger c3d60fd7ff Allow zend_throw_exception() to also set the exception code 2003-08-23 19:48:52 +00:00
Marcus Boerger 96fa63d6bf Exception has 4 protected default properties (message,code,file,line).
They are all initialized at c-level constructor correctly.
2003-08-23 19:41:22 +00:00
Marcus Boerger baaa4c903d Internal classes can now have default properties. 2003-08-23 19:37:39 +00:00
Marcus Boerger 5e77dc44dc Show ctor/dtor information and those don't return anything 2003-08-23 15:47:23 +00:00
Marcus Boerger fbda310a41 - Flag ctor/dtor methods
- Use this to prevent memleaks when an exception gets thrown in ctors.
# I added the dtor flags for consistency, atm a compareable check in
# isn't necessary for destruction. But anyway i'll use this for the
# Relection API too.
2003-08-23 15:38:58 +00:00
Marcus Boerger 43334207ab Make exception code more robust 2003-08-23 14:22:28 +00:00
Rui Hirokawa 6b92fbdef9 revert previous patch. 2003-08-23 10:04:43 +00:00
Rui Hirokawa d2f002eed9 changed for ZTS mode. 2003-08-23 08:59:47 +00:00
Rui Hirokawa 697ce0776f revert my patch. 2003-08-23 08:27:46 +00:00
Rui Hirokawa c8b525859d strcasecmp macro moved to mbfl_compat.h. 2003-08-23 08:26:46 +00:00
Rui Hirokawa e4f5e1da6d remove unnessesary files. 2003-08-23 06:51:16 +00:00
Rui Hirokawa 48d8c3fba7 removed mbstring/*/config.h. 2003-08-23 06:27:06 +00:00
Rui Hirokawa a05608dd7b added .cvsignore and README. 2003-08-23 06:20:59 +00:00
Rui Hirokawa 5a80df26f3 @mbfilter is changed to bundled version of libmbfl to prevent LGPL licence problem. mbregex is changed to oniguruma. 2003-08-23 06:18:44 +00:00
d696f1267a ChangeLog update 2003-08-23 00:31:15 +00:00
Wez Furlong a2a8be88d5 ignore this generated file 2003-08-22 21:47:28 +00:00
Wez Furlong ec8a5e7b8d provide general hook for exporting symbols from php4ts.dll 2003-08-22 21:45:58 +00:00
Ilia Alshanetsky d52172ad89 Fixed bug #25127 (reset memory_limit before terminating the request) 2003-08-22 20:01:53 +00:00
Ilia Alshanetsky f94b536bc8 Replace *magic number* with a much nicer define. 2003-08-22 18:50:12 +00:00
Brian France ab2ebdb49b Updated PHP_API_VERSION to 20030820 for the php_setcookie api change 2003-08-22 16:43:29 +00:00
Wez Furlong 21329c5e0c allow building without libxml2 under win32 2003-08-22 15:04:29 +00:00
Ilia Alshanetsky c29e30d3af Set 2147483647 as the module number of user defined constants
Fixed a few bugs and cleaned up get_defined_constants().
2003-08-22 02:08:10 +00:00
Ilia Alshanetsky bccc247a97 Set module id 0 (internal) for constants registered by php_cli in C. 2003-08-22 01:50:02 +00:00
d963f8fea3 ChangeLog update 2003-08-22 00:31:48 +00:00
foobar 384dfde5e5 english is funny 2003-08-22 00:14:21 +00:00
Marcus Boerger 0e32aaa8c6 Add function 'zend_throw_exception(char *message, int duplicate TSRMLS_DC);'
to provide an easy way to throw exceptions for extension developers.
2003-08-21 23:32:13 +00:00
Sara Golemon 1b1d077472 ftp:// wrapper context option: resume_pos 2003-08-21 20:48:34 +00:00
Marcus Boerger fda38bf2ff If ce not given than any object would do 2003-08-21 15:24:33 +00:00
Marcus Boerger 80b3498839 Paramspec 'O' / zend_parse_method_params(): only if given check the class type 2003-08-21 14:39:17 +00:00
Marcus Boerger 304f37fb80 Fix parameter spec 2003-08-21 14:34:07 +00:00
Jon Parise 34821ed474 Under FreeBSD, statfs(2) requires both <sys/mount.h> _and_ <sys/param.h>.
The autoconf check for <sys/mount.h> was failing because <sys/param.h>
wasn't being universally included.

This gets disk_total_space() and disk_free_space() working again under
FreeBSD.
2003-08-21 06:24:17 +00:00
foobar bf06717b13 - Proper place, correct formatting.
# Why is this called 'setrawcookie()'? It's not following our naming style..
2003-08-21 04:54:53 +00:00
a060bc75c7 ChangeLog update 2003-08-21 00:31:53 +00:00
Marcus Boerger 1cf91a7ac5 Extensions that do opcode hooking must provide the removed functions/macros
themselves now.
2003-08-21 00:10:49 +00:00
Brian France bef97f89a3 - Added new setrawcookie function (bfrance) 2003-08-20 23:28:30 +00:00
Zeev Suraski 1e70f45112 adhere to silence 2003-08-20 23:27:04 +00:00
Zeev Suraski 7b4ec88d76 No need for those code blocks anymore... 2003-08-20 23:00:08 +00:00
Ard Biesheuvel 84f995903b Fix false warning on zero-size BLOB fetch 2003-08-20 22:59:33 +00:00
Marcus Boerger 56e8757d77 Fix counting number of leaks 2003-08-20 22:15:01 +00:00
Sara Golemon 6f88d49d6c Add resume_pos (resume position) context option for restarting file downloads. 2003-08-20 21:59:29 +00:00
Brian France d50e0bf4de Added a parameter to php_setcookie to toggle URL encoding of the cookie data
Added the function setrawcookie that turns off URL encoding of the cookie data
Changed setcookie to turn on the URL encoding of the cookie data
2003-08-20 20:51:10 +00:00
Ard Biesheuvel 27582c4862 Reuse result data structure and resource id for consecutive executions
of a prepared query
# As previous resources are invalidated anyway because their statement
# handle is reused, we don't have to allocate a new result for every
# execution of a prepared query
2003-08-20 19:47:00 +00:00
Brad House f0bf9dd62d allow destructor to clean up connection data 2003-08-20 19:45:07 +00:00
Rob Richards d7e6bdaa0f fix infinite loop in normalize 2003-08-20 18:58:03 +00:00
Rob Richards 20a878dc60 doc must be copied when importing stylesheet
libxslt uses the _private for processing
2003-08-20 17:58:55 +00:00
Ilia Alshanetsky ece0a731e9 Fixed bug #25170 (Problem with generation of random numbers on solaris) 2003-08-20 16:40:22 +00:00
Ard Biesheuvel d70f744a63 Moved transaction defaults to header file 2003-08-20 16:13:51 +00:00
Ard Biesheuvel 8f869998b5 Cleaned up _php_ibase_var_zval() 2003-08-20 13:02:26 +00:00
Ard Biesheuvel 551526812b Fix Win32 build 2003-08-20 12:40:59 +00:00
Ard Biesheuvel 1b8e0440d2 Moved some local vars to stack 2003-08-20 12:40:05 +00:00
Ard Biesheuvel d7c734edb9 Nuke link handle from BLOB id
# Now BLOB ids can survive disconnect/reconnect
Added link argument to ibase_blob_{open|info|echo}()
2003-08-20 12:22:58 +00:00
foobar 498685fb2f Fix phpize build 2003-08-20 08:14:24 +00:00
foobar 0985b0726f - Fixed bug #25163 (OSX: phpize has to use glibtoolize instead) 2003-08-20 08:13:41 +00:00
Jon Parise 5649b2ca2a Explicitly declare the dependencies on the generated sqlite.h file. This
allows the libsqlite source tree (and php-src, as a whole) to be built
using 'make -j' once again.
2003-08-20 07:41:42 +00:00
90150d8625 ChangeLog update 2003-08-20 00:31:10 +00:00
Marcus Boerger 96d7f06e37 Add test for #25145 2003-08-19 22:47:30 +00:00
Ilia Alshanetsky ef088c9d16 Fixed bug #25155 (Possible namespace conflict between mime-magic & mssql) 2003-08-19 22:13:01 +00:00
Moriyoshi Koizumi 9bb299eb42 More accurate fix for bug #25140 2003-08-19 14:48:33 +00:00
foobar 8b14a91ecf Lets put this here when we really know its gonna be only in PHP 5 2003-08-19 08:41:01 +00:00
Derick Rethans 9cd7b9d3c3 - Fix for bug #25140 (mb_convert_encoding returns FALSE when it tries to
convert empty string)
2003-08-19 08:29:57 +00:00
Derick Rethans 5e1062fe7c - Back out Ilia's not-yet-ready patch. 2003-08-19 06:34:46 +00:00
Wez Furlong b61e6e24c3 Unify TSRMLS_FETCH() usage.
Fix release build: two instances of } were placed inside #ifdef ZEND_DEBUG
2003-08-19 03:25:00 +00:00
Sascha Schumann 1bda95753a dummy commit 2003-08-19 01:47:15 +00:00
Wez Furlong 9ada9e5767 fix build 2003-08-19 01:30:27 +00:00
Sascha Schumann 1205b6473e dummy commit 2003-08-19 01:27:55 +00:00
Sascha Schumann efba6a9145 dummy commit 2003-08-19 01:27:02 +00:00
Sascha Schumann 6293539580 dummy commit 2003-08-19 01:20:48 +00:00
Wez Furlong 1a40feb965 fix build 2003-08-19 01:15:47 +00:00
81ec251619 ChangeLog update 2003-08-19 00:30:59 +00:00
Wez Furlong bedccec85b Update credits
# re-ordering of some of the lines is due to case-insensitive
# win32 filesystem
2003-08-18 23:31:14 +00:00
Wez Furlong 42a8c536de 5 sir 2003-08-18 23:26:31 +00:00
Wez Furlong ef498a27b8 linkage for C++ 2003-08-18 23:19:27 +00:00
Zeev Suraski 391c027da6 Get rid of PZVAL_UNLOCK() - fix untested 2003-08-18 23:13:25 +00:00
Zeev Suraski 6ab9c1a336 Prevent access to internal engine functionality 2003-08-18 23:11:58 +00:00
Ilia Alshanetsky c23609efa7 Fixed paths in various tests. In certain conditions usage of partial file
paths results in test failures.
2003-08-18 22:57:49 +00:00
Zeev Suraski ed21ddd4f3 Fix a gazillion leaks in SimpleXML. One gazillion to go ;) 2003-08-18 22:33:15 +00:00
Zeev Suraski 642e331309 Improve tracking 2003-08-18 22:31:29 +00:00
Zeev Suraski 49c4866a47 - Improve tracking
- Fix several overloading issues
2003-08-18 22:31:11 +00:00
Zeev Suraski 0dba58c373 Improve tracking 2003-08-18 21:17:26 +00:00
Zeev Suraski e404e1d0fe Fix leak - non persistent hashes cannot be used in MINIT! 2003-08-18 20:45:00 +00:00
Zeev Suraski 76aaeebdf0 Improve tracking 2003-08-18 20:44:12 +00:00
Zeev Suraski b5786d4220 ws 2003-08-18 20:43:09 +00:00
Greg Beaver 12f7e9eb4d fix #25131, OS_Guess warnings 2003-08-18 16:43:46 +00:00
Zeev Suraski 1fb9d4896a WTF was that doing here? :)
Fix crash
2003-08-18 11:26:12 +00:00
Ilia Alshanetsky 06da1b95db Fixed typo. 2003-08-18 11:18:41 +00:00
Ilia Alshanetsky 741014089e emalloc -> safe_emalloc 2003-08-18 04:41:48 +00:00
4863dd5323 ChangeLog update 2003-08-18 00:31:11 +00:00
Ard Biesheuvel f96efcbf90 Nuke bogus BLOB ids
# User-space BLOB id no longer contains transaction handle, so BLOB ids
# now remain valid throughout multiple transactions.
# Oh, and they look better too :-)
2003-08-18 00:14:53 +00:00
Marcus Boerger 744dd20520 Fix warnings 2003-08-17 19:14:30 +00:00
Marcus Boerger 717b5afe1d Fix warnings 2003-08-17 18:56:54 +00:00
Marcus Boerger cbb011da2d Fix interactive mode 2003-08-17 18:36:27 +00:00
Greg Beaver fbfd812a9f fixing invalid version number for Pierre :) 2003-08-17 18:34:55 +00:00
Marcus Boerger ae2c7b9b4f Fix warnings 2003-08-17 18:21:35 +00:00
Greg Beaver d05514c794 reverting accidental commit of my fix for #25008 - we'll let Tomas review the patch I submitted (oops). The other stuff was good. 2003-08-17 18:12:43 +00:00
Greg Beaver d1511aca30 fixed #25117, updated package-PEAR.xml to the current release level 2003-08-17 18:01:39 +00:00
Sara Golemon f80f66a5a0 No more vectors 2003-08-17 17:52:20 +00:00
Marcus Boerger ddf4ad5744 Fix warning 2003-08-17 17:14:11 +00:00
Ard Biesheuvel a4bb353f2b Simplify previous fix 2003-08-17 16:30:15 +00:00
Ard Biesheuvel 91e3344eec Test immediate BLOB inserts 2003-08-17 16:14:29 +00:00
Ard Biesheuvel 008115b9ed Fixed leak in _php_ibase_bind() 2003-08-17 16:13:52 +00:00
Marcus Boerger 0d5ee859dd Fix warnings 2003-08-17 15:43:41 +00:00
Sascha Schumann 2405caf32e kill some warnings 2003-08-17 15:04:57 +00:00
Ard Biesheuvel e5bae36a1a Test fetching BLOBs >64k 2003-08-17 14:58:33 +00:00
Sascha Schumann feb1ccc6b8 Use explicit rule to create parsedate.c 2003-08-17 14:16:03 +00:00
Sascha Schumann 26863c9928 Use %p to display a pointer value 2003-08-17 14:01:17 +00:00
Sascha Schumann 3a81e99c1f The first element of the array seems to store the members count
Add a cast to (long) to quiet the compiler
2003-08-17 13:59:59 +00:00
Sascha Schumann e6b45266d2 The integer timeout is cast to a void *, passed to this function, and
cast back.

Add a cast to (long) to quiet the compiler
2003-08-17 13:57:53 +00:00
Sascha Schumann 1f722edd1c Fix sizeof(void *) > sizeof(int) issue.
n should be ptrdiff_t.
2003-08-17 13:53:57 +00:00
Sascha Schumann 602d1b0045 One bit fields need to be unsigned, otherwise there is no storage for
the sign bit

"A signed bit field has a length of 1 bit."
2003-08-17 13:49:52 +00:00
Sascha Schumann c7d9be97ca explicitly cast size_t to zend_uint to avoid warnings on 64 bit platforms. 2003-08-17 13:45:51 +00:00
Ard Biesheuvel 0e69444021 Fix possible leak in _php_ibase_fetch_hash() 2003-08-17 13:16:54 +00:00
Marcus Boerger 6dbc0bdc35 Remove unnecessary if 2003-08-17 12:38:27 +00:00
Ard Biesheuvel 1967ceeda4 Apply fix for ibase_blob_get() to ibase_fetch_*()
Apply fix for ibase_blob_add() to ibase_query()/ibase_execute()
2003-08-17 12:31:55 +00:00
Marcus Boerger 1e17ebe047 Put the code where it belongs - fixes a warning and confusion 2003-08-17 12:27:33 +00:00
Marcus Boerger 9c68f33b51 Implement a TBD: JMP to the end of foreach 2003-08-17 12:17:34 +00:00
Marcus Boerger f2d4e4ca48 WS 2003-08-17 12:16:10 +00:00
Marcus Boerger 2f51c2acf4 Once is enough 2003-08-17 12:13:26 +00:00
Derick Rethans fe7bb97737 - Fix the comment too 2003-08-17 11:49:18 +00:00
Derick Rethans cd2540373f - This parser contains 17 reduce conflicts 2003-08-17 11:48:29 +00:00
David Croft 2a216c1f36 #typo 2003-08-17 09:57:21 +00:00
Marcus Boerger 82050ae8bc - Show class names in error messages when dealing with methods
- Mark class as abstract if it gets an abstract method
2003-08-17 00:57:35 +00:00
eca2582760 ChangeLog update 2003-08-17 00:31:43 +00:00
Derick Rethans 77729f89dd - Fixed bug #17988: strtotime fails to parse timestamp from postgresql
#- This is actually a feature request
2003-08-16 20:55:28 +00:00
Marcus Boerger fe1a086d19 Simplify abstract method declaration 2003-08-16 20:46:22 +00:00
Marcus Boerger c346aad91a spl_call_method returns the zval* if used 2003-08-16 20:27:29 +00:00
Marcus Boerger 7a12eb8a2d WS 2003-08-16 20:12:01 +00:00
Ard Biesheuvel 812758b73e Fix failure on accidental fread() of 0 bytes 2003-08-16 20:04:41 +00:00
Ard Biesheuvel 841983fea0 Always fill entire buffer in ibase_blob_get() 2003-08-16 19:48:32 +00:00
Marcus Boerger 61f52becec Add some debug help 2003-08-16 18:28:20 +00:00
Ard Biesheuvel 254f827c4b Fixed bug #18744 2003-08-16 16:09:24 +00:00
Ard Biesheuvel 6561a0546b Some general cleaning up
Some preliminary changes for extensions to array functions
2003-08-16 15:31:06 +00:00
Ard Biesheuvel b3058675c1 Fixed bug #24224
Some general cleaning up
Some preliminary changes for extensions to array functions
2003-08-16 15:30:22 +00:00
Ard Biesheuvel 69c8bac05e Test for bug #24224 2003-08-16 15:22:36 +00:00
Marcus Boerger 0c7c8f4857 Simplify 2003-08-16 10:37:14 +00:00
Jason Greene 90289924c0 Remove all vector based functions for the following reasons:
- This solves alot of platform compatibility problems
- The possible security issue of allocating an incredibly large vector
pool is prevented
- They are of little to no benefit in a high level language
- 99% of all things done with these functions can be done using
sendto/recvfrom
2003-08-16 06:34:36 +00:00
Ard Biesheuvel 78a3fe8fca Removed ibase_num_rows()
Converted some MACRO-isms
2003-08-16 01:58:29 +00:00
foobar 4eb7695bcd Removed ibase_num_rows() (requested by Ard) 2003-08-16 01:34:45 +00:00
Ard Biesheuvel 654aa13c76 Added comment about ibase_num_rows() 2003-08-16 00:58:24 +00:00
beb51466d5 ChangeLog update 2003-08-16 00:31:07 +00:00
Sascha Schumann b29b4441db Restrict scope of inline functions to compile unit
Submitted by: Jason Greene <jason@inetgurus.net>
2003-08-15 21:02:35 +00:00
Marcus Boerger ae46dc1517 It is maintained now by Ard 2003-08-15 19:37:03 +00:00
foobar 1ba3e3a6dc MFB 2003-08-15 18:47:23 +00:00
foobar 1212c2e3e1 group those ibase entries a bit + added ibase_free_event_handler() too 2003-08-15 16:32:42 +00:00
Ard Biesheuvel dfbed2aa24 Added ibase_free_event_handler() 2003-08-15 16:13:51 +00:00
foobar a2e91e3268 new functions in ext/interbase 2003-08-15 16:11:26 +00:00
Andrey Hristov e8a3e059f0 2 proto fixes (Mehdi Achour) 2003-08-15 12:08:15 +00:00
John Coggeshall fbff369efc Updating TODO 2003-08-15 06:10:36 +00:00
21bed41873 ChangeLog update 2003-08-15 00:30:58 +00:00
Ard Biesheuvel d348c64326 Moved TRMLS_FETCH to correct scope 2003-08-15 00:16:58 +00:00
Ard Biesheuvel d5de1ad41c Added ibase_set_event_handler() 2003-08-15 00:06:07 +00:00
Marcus Boerger 33cae26946 Upds 2003-08-14 21:44:38 +00:00
Marcus Boerger 175c25c2a8 Add 'graphical' tree mode 2003-08-14 21:14:04 +00:00
Wez Furlong 29c434b4b7 update for com_dotnet 2003-08-14 20:57:49 +00:00
Wez Furlong cb7f8881ea add credits 2003-08-14 20:48:06 +00:00
Wez Furlong 799da1bc46 add news about COM 2003-08-14 20:47:29 +00:00
Wez Furlong 61313924a4 fix .net build 2003-08-14 20:31:38 +00:00
Derick Rethans b5cb1cbadb MFB: - Fix library path problems 2003-08-14 20:14:34 +00:00
Wez Furlong 7881c6e0b6 Might help to have the COM stuff actually build... 2003-08-14 17:58:58 +00:00
Ilia Alshanetsky 38a98c55f7 Fixed bug #25093 (Various leaks due to non-freed queries) 2003-08-14 17:49:08 +00:00
Marcus Boerger bf759e9609 Don't test other functionality than wddx here. 2003-08-14 17:25:05 +00:00
Wez Furlong 6e6a793bb9 fix this stuff 2003-08-14 17:06:43 +00:00
Wez Furlong 6df5d5ba20 Add new COM (and .Net) extension for php5.
Not yet complete, but should work for most people.
2003-08-14 16:49:56 +00:00
Ilia Alshanetsky e6b916cb15 Fixed bug #25081 (odbc_fetch_array() may mangle numeric fields). 2003-08-14 14:36:38 +00:00
Ard Biesheuvel 970371efa2 Added ibase_wait_event() 2003-08-14 10:55:02 +00:00
Ilia Alshanetsky b9b75991e3 Fixed bug #25084 (Make refer check not dependant on register_globals) 2003-08-14 01:30:06 +00:00
Ilia Alshanetsky 5eb23bf01e Added missing skip condition 2003-08-14 00:54:28 +00:00
Ilia Alshanetsky 64345cdd6e Fixed a possible crash due to invalid handling of assert ini options. 2003-08-14 00:37:42 +00:00
5eb3bb00db ChangeLog update 2003-08-14 00:31:18 +00:00
foobar 98c6a4fec0 MFB 2003-08-13 23:45:42 +00:00
31a0a30d9d ChangeLog update 2003-08-13 23:27:30 +00:00
ea2632506d ChangeLog update 2003-08-13 23:27:28 +00:00
808e49fea0 ChangeLog update 2003-08-13 23:24:59 +00:00
4713ec290a ChangeLog update 2003-08-13 23:20:59 +00:00
Edin Kadribasic 07ed14a907 MFB: standard location for the include files 2003-08-13 23:04:08 +00:00
Wez Furlong 1e679b02fe It's boolean, not long.
# fixes a warning under vc7
2003-08-13 22:31:22 +00:00
Greg Beaver f126c0df6a fixed include, verified that it indeed works, and PEAR.php passes the test :) 2003-08-13 22:05:23 +00:00
Greg Beaver baba5432c9 fix uninstall for optional dependencies, bug #25080 2003-08-13 21:16:31 +00:00
Greg Beaver f7a70ccc13 fix optional dependencies in reading, validating, and writing of package.xml 2003-08-13 21:12:15 +00:00
Vlad Krupin a90d56f52c this comment makes no sense after the previous commit 2003-08-13 21:01:04 +00:00
Greg Beaver f2c05e87af updating for release 2003-08-13 20:38:44 +00:00
Greg Beaver 0901d5e3b7 fix for Bug #21845 $this in static calls 2003-08-13 20:36:54 +00:00
Greg Beaver 6366483f1b tests for pear error handling 2003-08-13 20:34:48 +00:00
Vlad Krupin 3aaff90725 changes to accomodate win32 build
# I am not sure whether reading from registry, like I do now is a good
# idea, but nobody on php-dev has offered any opinion for or against that
2003-08-13 18:59:44 +00:00
Vlad Krupin 5b6e35851d win32 build is now possible Credit is due to Jan Gehring <gehring@egotec.de> for figuring that out 2003-08-13 18:57:19 +00:00
Moriyoshi Koizumi fd8411635e Slight improvement. Hope this will make some difference. 2003-08-13 18:21:06 +00:00
foobar e7820af9f8 fix test 2003-08-13 10:40:28 +00:00
foobar e86d532430 Disable the debugging to prevent the tests from failing. 2003-08-13 10:35:14 +00:00
foobar 604b06e4ca Fix the test. (this was mixed test with bug #24159) 2003-08-13 09:48:20 +00:00
foobar dc82ca11b4 more informix stuff 2003-08-13 08:59:53 +00:00
Marc Boeren c0dcd3647b Remove special-case from test for SQLite persistent connections. 2003-08-13 07:54:31 +00:00
Marcus Boerger ca9c03b504 Add missing entry 2003-08-13 07:17:16 +00:00
Marcus Boerger e08aedf5ff - Show classes in case of methods
- Using sprintf here was a bad idea
2003-08-13 07:02:44 +00:00
Ard Biesheuvel 05db087834 Allow the use of EXECUTE PROCEDURE statements 2003-08-13 02:19:14 +00:00
Ilia Alshanetsky f6290bfbfd Don't forget to flush() buffers for -w -s 2003-08-13 02:01:46 +00:00
foobar 8733d2dacb revert that, it did not fix anything 2003-08-13 01:37:31 +00:00
Ilia Alshanetsky 98d998b7ee Fixed bug #20896 (-s -w modes with php-cli cause php to hang). 2003-08-13 01:29:51 +00:00
foobar 0ee19d47d9 Fix external builds (configure run outside srcdir) 2003-08-13 01:24:27 +00:00
Sara Golemon cc28589156 Prevent carryover when max-min > signed int max 2003-08-13 00:49:22 +00:00
e58a46c2ae ChangeLog update 2003-08-13 00:30:30 +00:00
Marcus Boerger fb1288d067 # Wez, your whish is my command 2003-08-12 21:29:28 +00:00
Marcus Boerger ab9198e396 Bugfix #25056 2003-08-12 21:15:16 +00:00
Ard Biesheuvel b220a551f6 .... and again 2003-08-12 18:08:13 +00:00
Ard Biesheuvel c552c34b76 Re-commit of failed patch 2003-08-12 18:01:59 +00:00
foobar 72000ab8a5 Revert previous patch. 2003-08-12 17:41:37 +00:00
Ard Biesheuvel b58fa703b4 Allow prepared execution of any non-query statement except CREATE DB
(fixes bug #7014)
2003-08-12 17:33:54 +00:00
Ard Biesheuvel 5a30b61eba Fixed bug #23936 (fail to select and fetch) 2003-08-12 13:19:36 +00:00
Andrey Hristov 9ac579c2c0 proto fixes(Mehdi Achour) 2003-08-12 11:37:40 +00:00
Ard Biesheuvel dd5b49796c Added comment in code :-) 2003-08-12 11:35:26 +00:00
Ard Biesheuvel 9e445746e5 Revert ugly workaround for erroneous results of ibase_num_rows() (see comment in code) 2003-08-12 11:27:03 +00:00
Ard Biesheuvel d6477e1b6d Fix for missing errmsg in test 005 2003-08-12 10:02:25 +00:00
Ard Biesheuvel cba7a31245 Tiny fix 2003-08-12 09:57:57 +00:00
Ard Biesheuvel 8d34c2b4ba Changed to reflect corrected ibase_trans() behaviour 2003-08-12 09:57:17 +00:00
Zeev Suraski d2971e506c Remove bogus patch - the number of elements is unrelated 2003-08-12 06:21:02 +00:00
Ilia Alshanetsky 025c35a58b Fix compiler warnings. 2003-08-12 04:19:06 +00:00
Ard Biesheuvel feb8bb7dfc Fix for failed tests except 005 2003-08-12 02:16:40 +00:00
foobar b2ef50391b fix build 2003-08-12 02:11:41 +00:00
foobar 83595f1f5c fix test 2003-08-12 02:05:21 +00:00
Ilia Alshanetsky 93bcd55eaf emalloc -> safe_emalloc 2003-08-12 00:58:52 +00:00
Ilia Alshanetsky 3652ab6032 Fixed bugs in various tests. 2003-08-12 00:44:05 +00:00
dc36db0715 ChangeLog update 2003-08-12 00:30:27 +00:00
foobar 24b26ec546 Fix the test results (negative indices are not strings anymore) 2003-08-11 23:55:46 +00:00
Ilia Alshanetsky ed40ae2650 emalloc -> safe_emalloc 2003-08-11 23:16:54 +00:00
Marcus Boerger f77f977d0e Bugfix 21918 2003-08-11 20:14:25 +00:00
Moriyoshi Koizumi 8fe4a53877 Ensure CGI binary works like CLI.
# This kind of mess should be removed if other better way is found.
2003-08-11 20:02:05 +00:00
Moriyoshi Koizumi a5c6b9127e (format fix) replace a tab with a single space 2003-08-11 19:52:38 +00:00
Marcus Boerger c60d2a312e Bugfix #25044 2003-08-11 19:36:26 +00:00
Ilia Alshanetsky 22c3346967 Fixed bug #22245 (References inside $_SESSION not being handled). 2003-08-11 19:20:44 +00:00
Marcus Boerger 0e82bb17e9 Add Ard as interbase maintainer 2003-08-11 18:53:55 +00:00
Ilia Alshanetsky 5790626881 Fixed bug #22947 (Ack() inside win32/sendmail.c may stall in certain
situations).
2003-08-11 18:03:24 +00:00
Ilia Alshanetsky 6d8305a2d3 Fixed bug #25037 (Possible infinite loop inside SendText()) 2003-08-11 16:37:32 +00:00
Andrey Hristov 6825993fcc proto fix (thanks to Mehdi Achour for notifying) 2003-08-11 11:27:27 +00:00
Masaki Fujimoto ab9dcec292 - added script encoding support to Zend Engine 2.
this enables ZE2 to gracefully parse scripts written in UTF-8 (with BOM),
  UTF-16, UTF-32, Shift_JIS, ISO-2022-JP etc... (when configured with
  '--enable-zend-multibyte' and '--enable-mbstring')
2003-08-11 05:24:42 +00:00
Ilia Alshanetsky 4320c6994f Fixed bug #21957 (serialize() mangles objects with __sleep). 2003-08-11 03:22:24 +00:00
foobar da30777de5 Simplify a bit 2003-08-11 02:32:17 +00:00
foobar 7f5dc67bb0 Fix compile warning 2003-08-11 02:03:40 +00:00
foobar e9eb29011c Nuke unused variable 2003-08-11 01:56:43 +00:00
foobar b5184a6fb0 Fix the compile warnings properly 2003-08-11 01:54:45 +00:00
Sara Golemon 530f502198 Collection of tests for stream_socket_(client|server)(). TCP/UDP (AF_INET & AF_INET6) and UNIX/UDG 2003-08-11 01:30:55 +00:00
foobar 84ea1e59d8 Added the interbase NEWS entries 2003-08-11 01:22:37 +00:00
foobar ebec2bb859 Moved the RINIT(crypt) stuff into crypt() itself. 2003-08-11 00:49:19 +00:00
Ard Biesheuvel e1accb81c0 Added myself 2003-08-11 00:49:08 +00:00
foobar 9a2a0aa5e1 - Fixed bug #25007 (rand() & mt_rand() seed RNG every call).
# Also cleaned up the code a bit with this fix.
2003-08-11 00:42:29 +00:00
ad29f2f006 ChangeLog update 2003-08-11 00:30:22 +00:00
Marcus Boerger f427dc4f8e Add destructor inheritance test (bug #24637) 2003-08-11 00:02:32 +00:00
Marcus Boerger 2bbf4ad261 Bugfix #24637 __destruct not called 2003-08-10 23:59:35 +00:00
Marcus Boerger 3466a48add Initialize this variable to 0 as suggested by sara 2003-08-10 21:30:36 +00:00
Ard Biesheuvel 69252c3c77 Added ibase_num_params() and ibase_param_info()
@- Added function ibase_num_params() (Ard)
@- Added function ibase_param_info() (Ard)
2003-08-10 20:53:19 +00:00
Marcus Boerger d2ea062ef0 Fix warnings 2003-08-10 20:39:58 +00:00
Marcus Boerger 9274d2c203 Nuke unused vars 2003-08-10 20:39:19 +00:00
Marcus Boerger a28b0fdbb4 Nuke unused vars 2003-08-10 20:13:38 +00:00
Ard Biesheuvel 9972e05ca1 Win32 fixes 2003-08-10 17:24:51 +00:00
Ard Biesheuvel 9510d999dc Added ibase_affected_rows() and ibase_num_rows()
Fix for ibase_fetch_*() error after exhaustion of result
@- Added ibase_affected_row() (Ard)
@- Added ibase_num_rows() (Ard)
2003-08-10 16:21:26 +00:00
Marcus Boerger 74fdac04fe This is a void funtion 2003-08-10 15:05:14 +00:00
Ard Biesheuvel b676e9533b Changed ibase_query() to free transaction resource if SQL is COMMIT or
ROLLBACK
2003-08-10 13:20:38 +00:00
Marcus Boerger 142c79d653 Add foreach/continue test 2003-08-10 13:17:02 +00:00
Marcus Boerger 2a13d3f9f7 Simplify 2003-08-10 11:46:03 +00:00
foobar 726eb46767 CS fix 2003-08-10 04:23:02 +00:00
ae4b25fe88 ChangeLog update 2003-08-10 00:30:29 +00:00
Ilia Alshanetsky c99e16d14a Timeout fix. 2003-08-09 23:15:40 +00:00
Ilia Alshanetsky c6134c346c Use getenv() rather then $_ENV, the latter is not always avaliable. 2003-08-09 21:00:42 +00:00
Ilia Alshanetsky e5b7d5ccb4 Fixed bug #24897 (inconsistent behavior of shuffle() & array_multisort()) 2003-08-09 20:49:00 +00:00
Marcus Boerger 30a68c8d84 Fix exif_thumbnail 2003-08-09 20:43:06 +00:00
Ilia Alshanetsky 073e282b38 <? -> <?php 2003-08-09 20:13:44 +00:00
Marcus Boerger c05b329c6c Add testcase for complicated reference scenarios with objects. 2003-08-09 20:09:09 +00:00
Marcus Boerger e62926dd5b Better diffing 2003-08-09 20:02:02 +00:00
Moriyoshi Koizumi fe489dcb4f Fix segfault when a referenced parameter is specified with typehint.
Result of the node will never be used because verify_instanceof handler has
been eliminated.
2003-08-09 19:29:38 +00:00
Marcus Boerger 42cf1f8b97 Fix refcounting for $var = $obj[$idx] = $value; 2003-08-09 19:24:11 +00:00
Moriyoshi Koizumi 6be14c6636 Fix test so it matches the new error message. 2003-08-09 19:19:14 +00:00
foobar a6b7a911bd Cosmetic note 2003-08-09 18:43:45 +00:00
Ilia Alshanetsky caf80ad788 Correct test to work with later versions of GNU Aspell (more common). 2003-08-09 18:40:40 +00:00
Marcus Boerger 06b089d63b Complain about borked tests instead of spitting out errors 2003-08-09 17:21:19 +00:00
Ilia Alshanetsky ac41c5db23 Added/improved tests for bugs 24142, 24063, 24951, 24980 2003-08-09 16:44:33 +00:00
Ilia Alshanetsky e49964fe99 Do not assume array contains numeric values. 2003-08-09 16:43:28 +00:00
foobar c6f90cde63 Added missing ?> so this test can be run without run-tests 2003-08-09 15:46:36 +00:00
Marcus Boerger ffd6f29ef8 Prefix all engine 2 tests 2003-08-09 14:48:47 +00:00
Marcus Boerger dfd85e88d2 Reenable, works as expected 2003-08-09 14:34:44 +00:00
Marcus Boerger d4aa155d25 Precise destructor errors 2003-08-09 14:32:33 +00:00
foobar 3c1cb7431e MFB 2003-08-09 14:27:16 +00:00
Marcus Boerger fe37ce8f66 Don't show matching regex as different 2003-08-09 11:57:02 +00:00
Derick Rethans e491d75df3 - Fix memleak (this strndup is totally unnecessary) 2003-08-09 11:20:38 +00:00
Marcus Boerger 66b910e87c Bugfix #24142, part 2 2003-08-09 01:12:41 +00:00
Ilia Alshanetsky a2873880f6 Fixed bug #24980 (array_reduce() uses first element as default running
total).
Fixed memory leak that can be replicated using the function example on
http://www.php.net/array_reduce
2003-08-08 23:50:36 +00:00
Ilia Alshanetsky 5e9a18a5c0 Fixed bug #24951 (ob_flush() needlessly destroys output handler). 2003-08-08 23:43:45 +00:00
Ilia Alshanetsky 370ea1c82f Avoid a round() bug that occurs due to over optimization of C code by gcc.
This bug was confirmed across multiple systems with gcc 2.95.3 & 3.X+
2003-08-08 23:40:44 +00:00
Marcus Boerger 4ea2599301 Clearify 2003-08-08 19:48:33 +00:00
Marcus Boerger 2ede480de2 Bugfix #24063 (marcus/ilia) 2003-08-08 19:47:30 +00:00
Ard Biesheuvel b1db823ad1 Changes ibase_query() to support SET TRANSACTION statements
@- Added support for SET TRANSACTION statements in ibase_query() (Ard)
2003-08-08 13:47:20 +00:00
Ilia Alshanetsky 5c6ee17a9e Fixed bug #24977 (Revert mysql_select_db optimization) 2003-08-08 13:36:28 +00:00
Ilia Alshanetsky 6f2df21136 Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris) 2003-08-08 13:34:38 +00:00
Edin Kadribasic 5c9b6bf0ca It builds much better when linked to the right lib 2003-08-08 12:15:17 +00:00
Edin Kadribasic 43a69b480f Windows build file (doesn't build yet) 2003-08-08 11:55:34 +00:00
Ard Biesheuvel 870ba56375 Changed the names of some struct members for readability
Added function ibase_errcode()
@- Added function ibase_errcode() (Ard)
2003-08-08 11:04:12 +00:00
Moriyoshi Koizumi fb02fdf306 Fix test as the "expected result" was totally pointless in the first place. 2003-08-08 10:53:54 +00:00
Moriyoshi Koizumi de02912ef2 Fix the test which should have been fixed long ago. 2003-08-08 10:52:50 +00:00
Moriyoshi Koizumi 68120caddc Add test case for the bug 2003-08-08 10:35:53 +00:00
Moriyoshi Koizumi 5e343ad110 Eliminate redundant assignment 2003-08-08 09:51:28 +00:00
Moriyoshi Koizumi de9d52c4e9 Real fix for the problem addressed in the last commit message. 2003-08-08 09:40:58 +00:00
Sara Golemon 1a0bd6e903 Plug leak in ftp_url_stat 2003-08-08 06:18:25 +00:00
Ard Biesheuvel f9ad8f236e Changed _php_ibase_trans_end() to allow committing of default transaction
of a non-default link
2003-08-08 01:42:09 +00:00
2d8509fe20 ChangeLog update 2003-08-08 00:30:25 +00:00
Marcus Boerger 6da189d1e8 Once ago this was used 2003-08-07 22:50:46 +00:00
Marcus Boerger 0040355af8 - Reduce number of c-functions/macros involved in function invocation
- Unify names of remaining c-function/macro names
2003-08-07 22:43:01 +00:00
Marcus Boerger 47a80fee58 Switch to use zend_call_function() what shortens spl code 2003-08-07 22:19:50 +00:00
Rob Richards 6fae803c12 fix bug #24957 (var_dump of object segfaults) 2003-08-07 21:39:00 +00:00
Moriyoshi Koizumi 12ac36ca8d Move shutdown code to better place 2003-08-07 19:53:31 +00:00
Moriyoshi Koizumi a12601456a Fix wrong behaviour under ZTS that was inconsistent with non-ZTS.
# This patch really needs MFH
2003-08-07 19:45:26 +00:00
Moriyoshi Koizumi 35ffd45c26 Add missing right parensis 2003-08-07 19:36:13 +00:00
Rob Richards 036b93c4e2 fix segfault when importing multiple documents 2003-08-07 18:38:39 +00:00
John Coggeshall a123efb6ed Whitespace fixes. 2003-08-07 17:53:48 +00:00
Moriyoshi Koizumi 3bf0b26218 Tru64 requires TZ values be POSIX styled.
# See http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN3/0247____.HTM for detail.
2003-08-07 17:46:18 +00:00
Zeev Suraski 9db05a36a5 Remove 'proto' from internal functions 2003-08-07 16:46:11 +00:00
Zeev Suraski 23f08b9a2f fix another broken prototype 2003-08-07 16:03:17 +00:00
Zeev Suraski 2e869c7cb3 Fix prototype 2003-08-07 16:02:28 +00:00
Zeev Suraski 522bcba0a8 Fix docline 2003-08-07 15:51:05 +00:00
Ilia Alshanetsky e06311c091 Fixed bug #24839 (& -> &amp; in php credits) 2003-08-07 15:41:24 +00:00
Ilia Alshanetsky 63fcd301e9 Fixed bug #21958 (workaround for unusual realpath() on AIX & Tru64). 2003-08-07 15:32:18 +00:00
foobar 296f6f3340 dlfcn.h was not found on Solaris when using forte cc 2003-08-07 12:04:27 +00:00
Zeev Suraski 5b312b571e Clarify use of original_function_state_ptr 2003-08-07 07:37:19 +00:00
Marcus Boerger e9a4c91ca4 - Fix warnings
- Fix code
2003-08-07 07:17:34 +00:00
Ard Biesheuvel 712d7d561b Fixed crash in _php_ibase_error() after request shutdown 2003-08-07 01:00:22 +00:00
0f94f538ff ChangeLog update 2003-08-07 00:30:30 +00:00
Ard Biesheuvel fdb039dbef K&R cosmetics
# Summary of the changes in recent revisions for the NEWS file
@- Changes to Interbase extension: (Ard)
@  . Support in ibase_trans() for multiple databases
@  . New functions ibase_commit_ret() and ibase_rollback_ret(), which retain
@    the transaction context after execution
@  . Support in ibase_query() for CREATE DATABASE statements
@  . New function ibase_drop_db()
@  . New function ibase_name_result(), which assigns a name to a result for use
@    with SELECT ... FOR UPDATE statements
2003-08-07 00:00:19 +00:00
Ilia Alshanetsky 10aae5e671 Fixed bug #24958 (Incorrect handling of 404s) 2003-08-06 22:33:18 +00:00
Moriyoshi Koizumi c7a29109a8 MFB(1.142.2.22): add missing NLS entry for German. 2003-08-06 22:01:23 +00:00
John Coggeshall a8356a0dc6 Keeping up with ZE changes to the function struct, fixed tests 2003-08-06 21:32:46 +00:00
John Coggeshall fb2b65e5fd PEAR packaging details 2003-08-06 20:17:10 +00:00
Vlad Krupin 5636f96147 Fix for bug 23463. Dbase2 is not supported.
AFAICT, no newer versions of dbase, even those use
version byte as a bitmask will ever have it <3.
2003-08-06 19:06:24 +00:00
Ard Biesheuvel 00d42286ec Added three new user functions
ibase_{commit|rollback}_ret()
Commit or rollback a transaction without losing the transaction context.

ibase_name_result()
Assign a name to a result so {UPDATE|DELETE} ... WHERE CURRENT OF <name>
statements can be used.
2003-08-06 17:51:46 +00:00
Ard Biesheuvel 9f46081ca2 ibase_query() now returns a link resource if a CREATE DB was issued 2003-08-06 15:27:16 +00:00
Brian France 589d0f1423 MFB: added include config.h so shared extensions builds work correctly 2003-08-06 15:16:46 +00:00
foobar d06a572fc9 php_xslt.dll -> php_xsl.dll, removed non-existing php_domxml.dll (bug #24960) 2003-08-06 13:28:59 +00:00
Ard Biesheuvel 966663d3a0 Minor Win32 fixes/cleanups 2003-08-06 12:09:30 +00:00
Pierre Joye ccfa0b4f46 - restore Mail 1.1.0 2003-08-06 07:56:20 +00:00
Pierre Joye d914b860a6 - Mail 1.1.1 has bugs, back to 1.1 2003-08-06 07:55:44 +00:00
Zeev Suraski 0a83ebfd56 clarify :) 2003-08-06 07:38:56 +00:00
26b85413ea ChangeLog update 2003-08-06 00:30:27 +00:00
John Coggeshall 4c282bee86 ZTS fixes. 2003-08-06 00:19:31 +00:00
John Coggeshall ea72aabfe2 Fix memory leaks 2003-08-06 00:01:22 +00:00
foobar cc011660e7 Fix the build 2003-08-05 23:50:59 +00:00
Ard Biesheuvel 3ef8d3663d Changed ibase_trans() to allow multi-DB transactions with distinct
trans_args for each connection.
2003-08-05 23:40:30 +00:00
Pierre Joye 79fb038c42 - Add it again 2003-08-05 23:24:41 +00:00
Pierre Joye 6b046a2afc - seems to failed 2003-08-05 23:24:14 +00:00
Pierre Joye 814b372c55 - Update Mail (to 1.1.1), HTTP archive (to 1.2.1) 2003-08-05 23:22:08 +00:00
Pierre Joye 827e482224 - Fix download with uncompress option
Nota Bene, we should think to use the same name for pearweb and pear cmd
2003-08-05 23:17:40 +00:00
Ilia Alshanetsky 02e0e08958 Fixed bug #18291 (escapeshellcmd() can now handle quoted arguments). 2003-08-05 20:15:53 +00:00
Ilia Alshanetsky 5ead9d369e Fixed bug #17414 (pthreads bug work around)
Patch by timo.teras[at]iki.fi
2003-08-05 20:03:54 +00:00
Tomas V.V.Cox 217184483a go with 1.2b5 2003-08-05 16:31:19 +00:00
foobar 605619baa9 Fix CS/WS 2003-08-05 16:30:47 +00:00
foobar c3c6f6d5d7 Adding -lcrypt here is not necessary 2003-08-05 16:30:32 +00:00
foobar cc96ff7ffb Fix some more typos 2003-08-05 16:02:12 +00:00
Tomas V.V.Cox b1ece0fb89 Avoid notice in bundle 2003-08-05 15:36:07 +00:00
Tomas V.V.Cox dececbdb4c Other fix to ws in path names fix 2003-08-05 15:35:17 +00:00
Tomas V.V.Cox 6c93b30165 Pass raw data to frontend (Christian Dickmann) 2003-08-05 14:38:29 +00:00
Tomas V.V.Cox d3600ea63f Better install report for C extensions 2003-08-05 14:31:15 +00:00
Tomas V.V.Cox 38ad5ff8d7 Better error handling on invalid .tgz packages 2003-08-05 13:51:33 +00:00
Ard Biesheuvel f98251f307 Significant changes to layout of internal data structures
in order to accomodate and carry out the following changes:
* Removal of arbitrary 'transactions-per-link' limit,
* Transactions over multiple databases.

Leak fixes in ibase_query() and ibase_execute() by replacing
emalloc() with do_alloca()

Changes to ibase_query() to enable the use of CREATE DATABASE ...

Added ibase_drop_db()
2003-08-05 13:17:16 +00:00
foobar 6d6ac93241 - Fixed bug #21611 (version_compare() does not support "p" suffix) 2003-08-05 12:34:31 +00:00
Moriyoshi Koizumi 0ff21d0370 putenv() should be put here as well. 2003-08-05 12:29:26 +00:00
Tomas V.V.Cox 139cc3e2af Fix the fix (Greg) 2003-08-05 12:28:57 +00:00
foobar 96e9ed33b3 The last 4 args are by ref.. 2003-08-05 11:54:01 +00:00
foobar f8202e134d $host_* vars are used in extension config.m4s too. 2003-08-05 11:19:13 +00:00
foobar 22dba46f2d - Fixed bug #24936 (ext/fdf is not linked properly when compiled as shared extension). (Jani) 2003-08-05 11:17:01 +00:00
Zeev Suraski 90b29aa076 Replace fast_call_user_function() with zend_call_function() 2003-08-05 10:29:03 +00:00
Zeev Suraski 92b4013e8d Try to put an end to the endless number of call_user_function variants.
zend_call_function() now takes a structure that should contain all of the
necessary information.  If further information is necessary in the future,
then we'll be able to add it without having to introduce a new function.

As for caching - the 2nd, optional argument is a struct that can hold all
of the information that's necessary to invoke the function, including its
handler, scope and object it operates on (if any).  Note that you may only
use a cache if the arguments you provide to zend_call_function() are
identical to the ones of the last call, except for the argument and return
value information.


The recently introduced fast_call_user_function() was removed

I fixed most of the places that used fast_call_user_function() to use caching
but there are still some that need to be fixed (XML and reflection)
2003-08-05 10:24:40 +00:00
Stanislav Malyshev 97c2522128 syncronize 2003-08-05 09:23:17 +00:00
Stanislav Malyshev d113d32314 Don't try to __sleep incomplete classes 2003-08-05 09:19:38 +00:00
Stanislav Malyshev 53bbeedc89 don't try to wakeup incomplete classes 2003-08-05 09:15:31 +00:00
Stanislav Malyshev f9bc33e78f pass trsm via parameters 2003-08-05 09:07:49 +00:00
Stanislav Malyshev 6afa320667 fix incomplete class for ZE2 2003-08-05 09:06:02 +00:00
Zeev Suraski 1a13e1d4bd Disable prolebmatic test 2003-08-05 08:49:56 +00:00
Zeev Suraski 9ff7dff10d Shorten output to prevent messup 2003-08-05 08:39:01 +00:00
Zeev Suraski fec3fc9331 Remove non-standard vim6 option 2003-08-05 08:32:58 +00:00
Zeev Suraski 0770772385 Display the currently running test 2003-08-05 08:31:56 +00:00
Stanislav Malyshev 8547de3f16 fix syntax 2003-08-05 08:03:26 +00:00
Stanislav Malyshev f572897dea remove stack clean - it makes trouble 2003-08-05 07:56:49 +00:00
Tomas V.V.Cox 7e5a2dd2a5 go with 1.2b4 2003-08-05 03:25:34 +00:00
abd7612009 ChangeLog update 2003-08-05 00:30:17 +00:00
Marcus Boerger 1716669a27 You shall not Copy'n'Paste after midnight without checking 3 times 2003-08-04 23:21:27 +00:00
Marcus Boerger 2e945483d2 Ups 2003-08-04 23:16:45 +00:00
Marcus Boerger d23bfc0512 Update documentation in source, reflection and docu itself, part II 2003-08-04 23:15:56 +00:00
Marcus Boerger 28dd8fcff2 Update documentation in source, reflection and docu itself 2003-08-04 23:00:57 +00:00
Marcus Boerger b099670127 - Unset support for spl_array_access by method set($index)
- Parameter names for array interface methods
2003-08-04 21:56:05 +00:00
Marcus Boerger c80e7329bd Fix comment 2003-08-04 20:25:41 +00:00
Marcus Boerger 91a882478f Unset support for spl_array 2003-08-04 20:17:53 +00:00
Marcus Boerger de32c1de56 Fix ZTS 2003-08-04 19:57:53 +00:00
Marcus Boerger 65557ef672 Nuke unused variables 2003-08-04 19:56:12 +00:00
Marcus Boerger 3597704c64 Add function/method parameter reflection 2003-08-04 19:37:08 +00:00
Sascha Schumann f622240a0e MFB don't overwrite 2003-08-04 19:05:20 +00:00
Ilia Alshanetsky 1007b0a826 Fixed bug #23104 (hash position of static arrays not being reset) 2003-08-04 17:10:52 +00:00
foobar 1345027597 Fixed couple of typo(s) (which caused compile failures) 2003-08-04 14:34:54 +00:00
Tomas V.V.Cox a4b4de6766 Show the correct configure error line number (Greg) 2003-08-04 13:34:25 +00:00
Tomas V.V.Cox b4f1077403 More space in path name fixes (Greg) 2003-08-04 13:31:35 +00:00
Uwe Schindler 294fcddc0e Give user the chance to support nsapi_virtual() in newer servers by adding parameter server_lib to php5_init (windows only) 2003-08-04 12:46:03 +00:00
Tomas V.V.Cox d4e50ffba7 Fix proxy detection with the xmlrpc C extension 2003-08-04 11:18:26 +00:00
Stanislav Malyshev 2884e8a715 oops. forgot function 2003-08-04 11:03:38 +00:00
Stanislav Malyshev 7cb1730293 fix crash #24842 2003-08-04 11:02:53 +00:00
Stanislav Malyshev b6ff804cfe fix leaks: bug #24831 2003-08-04 10:40:05 +00:00
Tomas V.V.Cox 4fbae9a7d7 Another $fp test fix (thanks Jan) 2003-08-04 10:38:18 +00:00
Tomas V.V.Cox ba2a7d4250 <license> is valid inside <changelog>, support it 2003-08-04 10:32:11 +00:00
Stanislav Malyshev a3dc90d8d0 use get_obj_zval_ptr 2003-08-04 10:30:42 +00:00
Tomas V.V.Cox 4d57ab6d99 - Typo in cache file creation
- Do not create the cache dir in getCache()
2003-08-04 10:15:34 +00:00
Stanislav Malyshev 3586a6a43b add test 2003-08-04 09:31:58 +00:00
Stanislav Malyshev 4d51526350 Fix #24884 - clone $this 2003-08-04 09:10:52 +00:00
Zeev Suraski fd8c67e644 Fix library linkage 2003-08-04 08:55:44 +00:00
Zeev Suraski 76e26c8e99 Add missing library path 2003-08-04 08:54:40 +00:00
Zeev Suraski b894f06f49 Add a test 2003-08-04 08:42:36 +00:00
Zeev Suraski 2547b6f6f6 Fix bug #24652 - Sterling, do you begin to think that maybe it wasn't such
a good idea?
2003-08-04 08:38:24 +00:00
Zeev Suraski 1959133fb3 Simplify code using XOR 2003-08-04 07:53:09 +00:00
Zeev Suraski fe9b5870af Add logical XOR, proves to be quite useful lately 2003-08-04 07:52:36 +00:00
Zeev Suraski 6f53e48bb9 This check shouldn't be necessary 2003-08-04 07:52:09 +00:00
f1d8c1c448 ChangeLog update 2003-08-04 00:30:32 +00:00
Marcus Boerger 3b4f9d7b58 Latest zend updates 2003-08-03 22:29:20 +00:00
Marcus Boerger 1f8fd69e78 Fix crash 2003-08-03 22:28:14 +00:00
Marcus Boerger 538aad24e3 Fix test and add missing initialization 2003-08-03 22:03:52 +00:00
Zeev Suraski ef5a79bfed Ensure functions have a valid access level 2003-08-03 21:06:23 +00:00
Zeev Suraski e3f4147931 Default to public 2003-08-03 21:04:39 +00:00
Marcus Boerger 8c614ddda4 Not needed, will be copied from ptr->flags later 2003-08-03 20:49:27 +00:00
Tomas V.V.Cox e58a4ede81 let's go with b3x 2003-08-03 19:43:45 +00:00
Tomas V.V.Cox 029a94ffba +* Made package dependency checking back to work
+* Added support for spaces in path names (Greg)
2003-08-03 19:36:14 +00:00
Tomas V.V.Cox 7d67054891 Added support for spaces in path names (thanks Greg!) 2003-08-03 19:32:07 +00:00
Uwe Schindler ea12731b4e TSRM issue in windows compiling 2003-08-03 19:31:56 +00:00
Marcus Boerger bdf84d4e12 Add missing arg info 2003-08-03 19:25:03 +00:00
Tomas V.V.Cox 6d6af07be9 Don't let the shell escape quotes 2003-08-03 19:21:34 +00:00
Moriyoshi Koizumi fb6300dd6c Style & WS fixes 2003-08-03 19:20:45 +00:00
Marcus Boerger 55f947aa13 Fix build 2003-08-03 18:55:51 +00:00
Marcus Boerger 0626fff0c1 Fix warning 2003-08-03 18:52:09 +00:00
Marcus Boerger 21503e723e Reallow build 2003-08-03 18:46:34 +00:00
Zeev Suraski 538d58dd5f Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Zeev Suraski 4e796a7080 Remove unnecessary macro 2003-08-03 17:42:01 +00:00
Zeev Suraski f8bbafd604 ntroduce infrastructure for supplying information about arguments,
including:

- Whether or not to pass by ref (replaces the old arg_types, with arg_info)
- Argument name (for future use, maybe introspection)
- Class/Interface name (for type hints)
- If a class/interface name is available, whether to allow a null instance

Both user and builtin functions share the same data structures.

To declare a builtin function that expects its first arg to be an instance
of class 'Person', its second argument as a regular arg, and its third by
reference, use:

ZEND_BEGIN_ARG_INFO(my_func_arg_info, 0)
    ZEND_ARG_OBJ_INFO(0, someone, Person, 1)
    ZEND_ARG_PASS_INFO(0)
    ZEND_ARG_PASS_INFO(1)
ZEND_END_ARG_INFO();

and use my_func_arg_info as the arg_info parameter to the ZEND_FE() family
of macros.

The first arg to each ZEND_ARG_*() macro is whether or not to pass by ref.

The boolean arg to ZEND_BEGIN_ARG_INFO() tells the engine whether to treat
the arguments for which there's no explicit information as pass by reference
or not.
The boolean argument to ZEND_ARG_OBJ_INFO() (4th arg) is whether or not to allownull values.
2003-08-03 17:40:44 +00:00
Moriyoshi Koizumi f05452fbcd Disable the test temporarily because "-d" flags in the command line doesn't
take effect under CGI mode. (See the relevant portion of cgi_main.c
that begins at line 996)
2003-08-03 13:58:20 +00:00
Tomas V.V.Cox 7c58f22aaf Made package dep checking to work again
(Seems that this line got lost at some point)
2003-08-03 13:44:36 +00:00
Uwe Schindler 52da23faf4 Fix Win32 Build because of missint TSRM stuff 2003-08-03 11:22:53 +00:00
Zeev Suraski 7112d3a3f8 No need for this initialization - this function initializes all of the
elements of zend_internal_function
2003-08-03 10:32:40 +00:00
Zeev Suraski 8b4bd4a8ec Clean up. extended_value can only contain either ZEND_UNSET_DIM or
ZEND_UNSET_OBJ.
2003-08-03 08:23:25 +00:00
Zeev Suraski 9d7122fb53 Generalize fetch_class 2003-08-03 08:21:08 +00:00
973b85672b ChangeLog update 2003-08-03 00:30:27 +00:00
Marcus Boerger 4f1e331c4d Initialize all struct members: Necessary for reflection 2003-08-02 19:03:14 +00:00
Ilia Alshanetsky d2bf1c1338 Fixed bug #24177 (Status not set correctly after flush() in Apache 2) 2003-08-02 18:29:30 +00:00
Tomas V.V.Cox ede834c8b1 fix invalid $fp check (by nicox@php.net) 2003-08-02 15:34:19 +00:00
Tomas V.V.Cox ad9875b877 upgrade-all back to work 2003-08-02 14:59:44 +00:00
Tomas V.V.Cox 6aa44378f3 trailing ws 2003-08-02 14:57:59 +00:00
Marcus Boerger 04c90c8738 Show interfaces 2003-08-02 14:22:18 +00:00
Marcus Boerger 54df2e14b4 Use correct macro 2003-08-02 13:49:12 +00:00
Wez Furlong 0b6f7bddf4 fix usage of instanceof here too 2003-08-02 11:43:55 +00:00
Marcus Boerger 4fa6eac1f8 Fix warning 2003-08-02 11:39:15 +00:00
be9986eb8e ChangeLog update 2003-08-02 00:30:27 +00:00
Ilia Alshanetsky 2b768e8bdc Fixed bug #22072 (Apache2 sapis do not detect aborted connections). 2003-08-01 20:20:11 +00:00
Wez Furlong 5c4de2664c better fix... 2003-08-01 17:51:56 +00:00
Ilia Alshanetsky 3253746c26 Preserve exit status for non-php execution modes. 2003-08-01 16:52:49 +00:00
Wez Furlong ad12b3da82 Fix "O" format for zend_parse_parameters 2003-08-01 16:48:11 +00:00
Ilia Alshanetsky 68616d764c Fixed bug #23509 (exit code lost when exit() called from
register_shutdown_function())
2003-08-01 12:26:28 +00:00
Andrey Hristov a0ad4f949e Removed the unnecessary check of array_init() return value. 2003-08-01 11:09:11 +00:00
Edin Kadribasic e6adc8fa15 Add missing .cvsignore files. 2003-08-01 09:48:57 +00:00
John Coggeshall ac08f881e7 Segfault fix. 2003-08-01 09:48:06 +00:00
John Coggeshall b724930c06 Fixed a number of memleaks and cleaned up the code a bit. 2003-08-01 09:12:35 +00:00
6e49dd99c8 ChangeLog update 2003-08-01 00:30:42 +00:00
John Coggeshall 2fb97cdf95 Adding the tidy extension to PECL 2003-08-01 00:22:43 +00:00
Ilia Alshanetsky de7f7658cf Only register server variables when needed. 2003-07-31 22:56:57 +00:00
Ilia Alshanetsky 0eb76eb2ec Fixed bug #24883 (variables created through register_globals, ignore
gpc_order and variables_order).
Prevent multiple registration of ENV & SERVER variables when more then one
is specified.
Prevent multiple addition of GET/POST/COOKIE variables when building
_REQUEST.
2003-07-31 22:29:32 +00:00
Ilia Alshanetsky ecbcd7f59f Fixed bug #22154 (Possible crash when memory_limit is reached and
output buffering in addition to session.use_trans_sid is used).
2003-07-31 19:46:03 +00:00
foobar 88cbc175ea - Removed the unnecessary check of array_init() return value. 2003-07-31 18:28:47 +00:00
Zeev Suraski 4f6b315211 Use instanceof_function() 2003-07-31 16:30:15 +00:00
Zeev Suraski accd6b623b Finish the array overloading patch 2003-07-31 09:06:11 +00:00
Zeev Suraski d95a6916de Cleanup 2003-07-31 08:24:55 +00:00
Andi Gutmans 7055fda013 - Fix logic. It was the wrong way around. 2003-07-31 05:08:59 +00:00
8d75e7082d ChangeLog update 2003-07-31 00:30:27 +00:00
foobar 57ca69c014 Revert the fix for now 2003-07-30 21:56:45 +00:00
Andi Gutmans 8264eedc48 - Fix problem with hash when updating same bucket with data of different
sizes one after another.
- Fix number of arguments to read_dimension.
2003-07-30 19:47:39 +00:00
Ilia Alshanetsky 9ba651c692 Fixed bug #24873 (incorrect handling of / inside open_basedir) 2003-07-30 17:55:06 +00:00
Zeev Suraski 68fa4e50f8 Get rid of an opcode 2003-07-30 17:49:27 +00:00
Zeev Suraski f41f62c2ff Support overloading of $foo["bar"] += "baz" 2003-07-30 17:40:54 +00:00
Ilia Alshanetsky c7a45fc9da Fixed bug #23792 (8 bit graphics don't rotate properly)
Patch by: pajoye@php.net
2003-07-30 17:34:11 +00:00
Zeev Suraski c0b46739ca Improve array overloading - support unset($foo["bar"]) 2003-07-30 17:12:06 +00:00
Zeev Suraski 4839ce5952 Remove garbage 2003-07-30 17:02:41 +00:00
Zeev Suraski 0d77cf2a33 Call exec_finished() 2003-07-30 16:15:03 +00:00
Zeev Suraski 2fd4ffce17 Add exec_finished() callback for modules - this is the last place where the
modules may touch the symbol table reliably
2003-07-30 16:13:52 +00:00
foobar 81c5e49a68 Fix build on certain platforms which do not accept #include FOOBAR 2003-07-30 14:09:42 +00:00
Adam Dickmeiss 72aa064016 Fix yaz_record, type array to return bibliographic record part 2003-07-30 09:53:39 +00:00
815be4e5c6 ChangeLog update 2003-07-30 00:30:26 +00:00
Ilia Alshanetsky 4d98e9ec97 Finalize the closing process of persistent streams. The current
behavior/API is as follows:

1) To close a persistent use php_stream_pclose(), it will close the stream
and remove it from the persistent list.

2) Inside PHP code only explicit fclose() will close persistent streams,
all other actions such as unset() or assigning a value to stream handle
will not.

3) Regular streams can still be closed by either fclose(), unset() or an
assignment of a value to the stream handler.
2003-07-29 18:26:34 +00:00
Ilia Alshanetsky 7b18132dba Test case for bug #22836. 2003-07-29 17:56:50 +00:00
Rob Richards a5a859361b increment refcount for arrays passed to xml_set_handler 2003-07-29 13:34:50 +00:00
foobar c50fbaf69a Remove the obfuscation caused by the double "#ifdef ZTS" 2003-07-29 01:30:59 +00:00
Ilia Alshanetsky 37ee0e57cc Fixed a double free bug when freeing persistent streams. 2003-07-28 18:57:28 +00:00
Ilia Alshanetsky abe2afcf6e Make pclose() respect references. 2003-07-28 14:42:42 +00:00
foobar 082f49a27b Fixed bug #24839 (missing </div>) 2003-07-28 10:44:19 +00:00
foobar 4babf66753 ws fix 2003-07-28 10:23:36 +00:00
Ilia Alshanetsky f9cf39bd30 Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format) 2003-07-28 04:01:32 +00:00
8aef486417 ChangeLog update 2003-07-28 00:30:27 +00:00
Rob Richards 4d31aa4444 Fix bug #24801 (xml_call_handler() causes segmentation fault) 2003-07-27 20:32:55 +00:00
Rob Richards 7ba3cb8c1e remove xml debug code 2003-07-27 20:21:36 +00:00
Ilia Alshanetsky cd4a281364 Fixed bug #24557 (make fclose() respect refcount on the resource). 2003-07-27 18:45:02 +00:00
Ilia Alshanetsky 308df2af54 Fixed bug #24827 (ob_gzhandler overrides Vary header) 2003-07-27 18:16:06 +00:00
Rob Richards 43bc2f0b6d reworking xml namespace support
add node lookupNamespaceURI and lookupPrefix
add attr isId
2003-07-27 17:57:06 +00:00
Marcus Boerger b156ac9703 #damn 2003-07-27 17:44:20 +00:00
Marcus Boerger dbc6519b1a In protocol version < 3 we cannot test transaction status and do unconditional ROLLBACK; 2003-07-27 17:05:56 +00:00
Marcus Boerger f5f60e6fea Added new function pg_parameter_status() 2003-07-27 16:47:36 +00:00
Marcus Boerger ab36d72c16 Needed function detection 2003-07-27 16:46:40 +00:00
Marcus Boerger e5d492a3df New smart connect/shutdown for persistent connections.
Behavior for old libs/servers is "BEGIN;ROLLBACK;" in request shutdown.
For new libs a "RESET ALL;" is done in connect and "ROLLBACK;" is only done
where appropriate.
2003-07-27 16:45:10 +00:00
Stanislav Malyshev 57b12285de fix compare 2003-07-27 16:43:05 +00:00
Stanislav Malyshev 7b1bbc85bc use zend_binary_strncasecmp 2003-07-27 16:39:35 +00:00
Stanislav Malyshev 47fef22bc5 change shutdown order so that dtors would coexist with object error handlers 2003-07-27 15:59:37 +00:00
Stanislav Malyshev 1cc89effdb clean the right one 2003-07-27 14:02:46 +00:00
Stanislav Malyshev 5bfd386bc3 make shutdown more granular so in case some dtor goes ape we still
can shut down cleanly
2003-07-27 13:47:58 +00:00
Stanislav Malyshev 9fa2d52310 make clone and throw coexist peacefully 2003-07-27 13:20:31 +00:00
Stanislav Malyshev 6bea4ca1b0 add test 2003-07-27 12:50:56 +00:00
Stanislav Malyshev c3c136ea4b fix #24635: clean hash before putting into cache 2003-07-27 12:46:14 +00:00
Stanislav Malyshev 399db3c846 fix crash #24550 2003-07-27 12:25:50 +00:00
Stanislav Malyshev 91b4bca976 add test 2003-07-27 12:07:23 +00:00
Stanislav Malyshev 5724c7a66c fix leaks with class constants (bug #24699) 2003-07-27 12:03:54 +00:00
Stanislav Malyshev 78f8ca6e55 make __clone call case insensitive, just as other calls are 2003-07-27 11:42:21 +00:00
Rob Richards 618d6c904d doctype and namespace fix
memory leak fix
2003-07-25 17:25:50 +00:00
Tomas V.V.Cox 9b38350af4 Made avaible the "download-all" command 2003-07-25 17:08:19 +00:00
foobar 8e80be016e Fix typo (and debug build) 2003-07-25 12:15:33 +00:00
Edin Kadribasic 37cbc7cbb5 Partial MDB 2003-07-25 11:41:33 +00:00
Moriyoshi Koizumi 9fe5094d77 Fix run-test.php so it can correctly handle skip conditions. 2003-07-25 05:51:57 +00:00
Ilia Alshanetsky ee3e4f79df Removed unused variable. 2003-07-25 03:03:26 +00:00
Sara Golemon 3caa0d0aa9 Fix Bug#24784 single character search keys not respecting case sensitivity/replace count parameters. 2003-07-25 01:03:39 +00:00
29df7213cb ChangeLog update 2003-07-25 00:30:31 +00:00
Harrie Hazewinkel 4d2229d6a3 Bug 24760 fix, in which the port number when non-default is not handled
correctly and ends up as the default port. This seems to be caused by
some buffer overflow where the port number is assign zero, even though
it it is not assigned to the port variable.
FIx was reported and a fix proposed by "chuck+php at 2003 dot snew dot com"
2003-07-24 21:48:55 +00:00
Marcus Boerger d7b37fa96b Update due to Zeev's latest engine changes 2003-07-24 20:28:15 +00:00
Uwe Schindler 870610d679 put $ID:...$ in readme 2003-07-24 17:46:36 +00:00
Ilia Alshanetsky 64d6421885 When encountering a test that users GET/POST make run-tests.php use CGI
sapi if it is avaliable.
If CLI sapi is not avaliable print a clear error when make test is executed.
2003-07-24 17:44:16 +00:00
Uwe Schindler 3fbe69f49a Possibility to use php5_execute to display server error pages or directory listing pages 2003-07-24 17:40:40 +00:00
foobar e03b0dea7d cleanup (CS+ws) 2003-07-24 17:07:40 +00:00
Zeev Suraski 0e0936fa59 Fix expectations :) 2003-07-24 17:00:17 +00:00
Zeev Suraski b54ae17904 Fix logic and comments in ASSIGN_DIM 2003-07-24 16:51:35 +00:00
Zeev Suraski 95eaf55aa6 Add foreach() test with references 2003-07-24 13:21:54 +00:00
Rob Richards d326b80998 add xpath.c to DOM source files 2003-07-24 13:20:59 +00:00
Rob Richards e8a87e5430 initial xpath implementation
make dom_object generic
2003-07-24 13:18:40 +00:00
Zeev Suraski 55097d1dcf Fix another HANDLE_NUMERIC bug. Looks like you opened Pandora's box, Sterling ;) 2003-07-24 13:14:57 +00:00
Zeev Suraski 4f3e52ac1b Add test for binary safety of each() 2003-07-24 13:08:35 +00:00
Zeev Suraski 2109ab3438 Fix each() binary safety for keys 2003-07-24 13:06:25 +00:00
Zeev Suraski 0610515703 Fix assignments to numeric array indices 2003-07-24 12:56:05 +00:00
Zeev Suraski 7928e763d2 Remove useless code 2003-07-24 12:51:07 +00:00
Zeev Suraski 03b6af07eb Support references in foreach()
Syntax:
  foreach ($arr as &$val)
  foreach ($arr as $key => &$val)
2003-07-24 12:38:33 +00:00
foobar 8514398dfc Fix the test.. 2003-07-24 10:41:47 +00:00
foobar d8e5bd97c1 fix the test 2003-07-24 10:37:57 +00:00
foobar dcfe901015 test for bug 24783 (foreach() key not binary safe) 2003-07-24 10:25:15 +00:00
foobar 760fe8e923 test for bug #14580 (key() not binary safe) 2003-07-24 10:13:17 +00:00
Zeev Suraski e25d5e7f7a Fix binary safety in foreach() keys (fixes bug #24783) 2003-07-24 08:36:39 +00:00
Zeev Suraski 9b13202723 Make print_r() binary safe with keys 2003-07-24 08:24:07 +00:00
Zeev Suraski 0fe21a3a29 Fix bug #19613 2003-07-24 08:02:08 +00:00
foobar 4a04fa1ced Missing entries (Thies&Marcus), some style fixes 2003-07-24 02:11:30 +00:00
005fc4eddd ChangeLog update 2003-07-24 00:30:26 +00:00
Ilia Alshanetsky 402edee1a6 gztell() is not necessary, the return value of gzseek() represents the
new position. With zlib 1.1.4 gztell() alse returns 0 when working
on non-zlib files (test ext/zlib/tests/gzreadgzwriteplain.phpt).
2003-07-24 00:03:42 +00:00
Ilia Alshanetsky 0bd1e86d4c Fixed GLOB_ONLYDIR to work on GNU libc based system. 2003-07-23 21:41:44 +00:00
Ilia Alshanetsky 3a9e5400c6 Removed unused variables. 2003-07-23 16:54:34 +00:00
Ilia Alshanetsky 1a1826903b Fixed bug #24752 (Unhandled "uniqueidentifier" field type)
Original Patch By: s.sonnenberg[at]coolspot.de
2003-07-23 16:53:26 +00:00
Ilia Alshanetsky 9826911139 Fixed bug #23798 (Spaces were not being stripped from Bcc header)
Fixed bug #24663 (\n. sequences were not being escaped)
2003-07-23 16:03:10 +00:00
Stanislav Malyshev 237116aa27 Remove namespace leftovers 2003-07-23 08:58:46 +00:00
Zeev Suraski e89977f9d9 Go back to ZE1-like code 2003-07-23 08:56:34 +00:00
Zeev Suraski 785130c09c Fix interface 2003-07-23 08:53:23 +00:00
Sebastian Bergmann 786afb48cb Fix segfault. Patch by Timm Friebe <thekid@thekid.de>. 2003-07-23 04:02:26 +00:00
a480901c9f ChangeLog update 2003-07-23 00:30:29 +00:00
Pierre Joye dc0606f041 - Fix leak when no fill is done (ilia) 2003-07-23 00:23:21 +00:00
Pierre Joye 28bc693d3a - Remove imagepng, not used in test 2003-07-23 00:17:29 +00:00
Pierre Joye 768468257c - imagefill tests 2003-07-23 00:11:33 +00:00
Pierre Joye 74c2027573 - Fix #bug24594
Rewrite the imagefill function (non recursive, uses of connected points
  algorithm)
2003-07-23 00:08:57 +00:00
Marcus Boerger 7a85edd370 Added pg_version() which returns an associative array of client/protocol/server
version.
@Added pg_version() function. (Marcus)
2003-07-22 23:05:17 +00:00
Marcus Boerger ec9ae45e2f Add reson 2003-07-22 23:01:24 +00:00
Marcus Boerger bc90ce7818 The value might be a null pointer 2003-07-22 22:05:46 +00:00
Marcus Boerger dd781dcdc9 Postgres decision on this 2003-07-22 21:12:32 +00:00
Marcus Boerger 6079d4dc1b Fix for the moment 2003-07-22 20:53:56 +00:00
Zeev Suraski 0a49c033d0 - Use the new infrastructure of zend_symtable_*() (fixes bug #24565)
- Fix bogus use of get_current_key()
2003-07-22 16:08:50 +00:00
Zeev Suraski cf90932a05 Improve infrastructure of numeric handling of elements in symbol tables.
When you want to work with a symbol table, and you don't know whether you
have a numeric ("string that looks like a number") or a string element in
your hands, use zend_symtable_*() functions, in place of zend_hash_*()
functions.
2003-07-22 16:06:07 +00:00
Ilia Alshanetsky 5fcff2d872 * Fixed bug #24535 (Crash when retrieving data from unbuffered result after
the original connection has been changed).
* Fixed a crash when trying to fetch an unbuffered result after
mysql_close() has been called.
* Added a check to make sure no unbuffered results are inside the buffer
when calling functions that internally execute a query. Affected functions
are: mysql_select_db(), mysql_list_dbs(), mysql_list_tables(),
mysql_list_processes(), mysql_list_fields(), mysql_stat() and mysql_ping().
* Do not re-select a database if the database to be selected is the same.
2003-07-22 16:05:32 +00:00
Zeev Suraski 4ec05c508b Add test 2003-07-22 13:54:45 +00:00
Zeev Suraski 6c24e1577c API update 2003-07-22 13:50:00 +00:00
Zeev Suraski 6a50660cfe Fix isset()/empty() for non-trivial object elements
(API change - read_property now accepts an extra element)
Fixes bug #24436
2003-07-22 13:49:33 +00:00
Edin Kadribasic ccff468774 MFB 2003-07-22 12:36:59 +00:00
Thies C. Arntzen eef52f549f @ - Added optional Parameter to OCIWriteTemporaryLob which allows to
@   specify the type of LOB you want to be written (OCI_TEMP_CLOB, OCI_TEMP_BLOB)
@   (Patch by Novicky Marek <novicky@aarongroup.cz>) (Thies)
2003-07-22 10:38:34 +00:00
Jason Greene 7eea6525a7 Fix EINVAL errors for OS's (Solaris + BSD) that do not appreciate microseconds >= 1 second
Patch submitted from meebery@php.net
2003-07-22 07:20:55 +00:00
Ilia Alshanetsky 1e92b5e7a3 Make php_check_safe_mode_include_dir check independent of unrelated
open_basedir directive and make it properly handle undefined/empty
safe_mode_include_dir directive when safe_mode is enabled.
2003-07-22 01:32:01 +00:00
Sascha Schumann 5978734f30 MFB proper fix for #24592 2003-07-22 01:11:07 +00:00
3437e2ef41 ChangeLog update 2003-07-22 00:30:54 +00:00
Ilia Alshanetsky f9a8fc0c09 Fixed bug #24592 (Possible crash in session extnsion, with NULL values) 2003-07-21 21:47:52 +00:00
Marcus Boerger 6175f0a4c9 Reset vars when reusing a persistent connection as requested from postgres developers 2003-07-21 20:53:00 +00:00
Marcus Boerger c89ade3b66 Go without #24499 hint sneaked in by accident 2003-07-21 20:49:47 +00:00
Zeev Suraski 023c8a7d95 Fix register_globals 2003-07-21 17:42:24 +00:00
Zeev Suraski f4ae16519c Remove old code 2003-07-21 17:41:42 +00:00
Uwe Schindler 17c02dd9d4 some code cleanups 2003-07-21 14:20:47 +00:00
Ilia Alshanetsky 7825a1864c Fixed bug #24560 (parse_url() incorrectly handling certain file:// based
schemas).
2003-07-21 13:36:23 +00:00
Zeev Suraski 7e72d8e826 Fix bug #24499 2003-07-21 12:13:16 +00:00
Zeev Suraski 9bbf5577dd Add a couple of tests 2003-07-21 11:48:37 +00:00
foobar eede10964f Missing .cvsignore 2003-07-21 08:27:23 +00:00
foobar b9b123a9dd some style fixes 2003-07-21 08:20:48 +00:00
Zeev Suraski 754529920d Revert fix for #24729, and refix 2003-07-21 07:42:15 +00:00
Marcus Boerger 98963e3c75 Go with a better fix for #24729 2003-07-21 07:13:26 +00:00
George Schlossnagle 0229aad042 reverted at Andi's request. replaced with more generic wrapper. 2003-07-21 06:05:58 +00:00
ada5008f9a ChangeLog update 2003-07-21 00:30:29 +00:00
Marcus Boerger 82293c2a54 Unify 2003-07-20 22:03:28 +00:00
Marcus Boerger 9710546578 BFN 2003-07-20 21:57:50 +00:00
Marcus Boerger 3287b80015 BFN 2003-07-20 20:48:54 +00:00
Marcus Boerger 8ac334289a Bugfix #24729 = new ; causes crash when is not set 2003-07-20 20:45:59 +00:00
Marcus Boerger db86597e88 Add test for bug #24499 2003-07-20 20:27:43 +00:00
George Schlossnagle 600f72f7b4 should nt here 2003-07-20 20:16:07 +00:00
Marcus Boerger cfe2eda4f6 Fix warnings and whitespace in output 2003-07-20 19:57:02 +00:00
Marcus Boerger 23da3057b9 Add support for instances in Reflection_Class.
# Thanks to Timm for the fast patch contained reply to my help request :-)))
2003-07-20 18:58:34 +00:00
George Schlossnagle 7c7de5eb3c removed references to smart_str, replaced with private string management
function.  When snprintf is integrated into the engine, string_printf
should be altered to use that.
2003-07-20 18:45:40 +00:00
Marcus Boerger 08f725fa24 Remove this then, too 2003-07-20 18:05:03 +00:00
Marcus Boerger 7dd6f48f45 SQLite objects are not cloneable. Maybe we allow this later for sqlite_db. 2003-07-20 18:00:54 +00:00
Marcus Boerger c9c1fcc026 More informative errors here and these are real core errors 2003-07-20 17:50:23 +00:00
Marcus Boerger 7bbe6080f2 Fix uncloneable objetcs 2003-07-20 17:46:21 +00:00
Marcus Boerger c766e9a503 Use only one line per error message and don't terminate with a dot as everywhere else. 2003-07-20 16:00:40 +00:00
George Schlossnagle 84f5e4870e more of Timm's implementation. 2003-07-20 15:42:42 +00:00
Marcus Boerger 8a2e76d72c Update docu 2003-07-20 12:30:05 +00:00
Marcus Boerger 184118d9a9 Make it a macro 2003-07-20 12:23:46 +00:00
foobar afdc3e9530 Missing headers 2003-07-20 10:53:22 +00:00
Marcus Boerger a68cb5129c - Add class spl_array_it which is the iterator returned by spl_array.
This class can also be used alone without spl_array but doesn't allow
  recursive foreach usage.
- Fix protos to new proto system.
- Add test for spl_array_it.
2003-07-20 01:22:03 +00:00
01d8fea855 ChangeLog update 2003-07-20 00:30:10 +00:00
Marcus Boerger c038d88769 Add test for class spl_array 2003-07-19 21:04:16 +00:00
Marcus Boerger 173cb1436f Add class spl_array which is an array wrapper 2003-07-19 20:54:22 +00:00
Marcus Boerger 9556c6c27e This is meant to be used in for(;has_more;next)
# Probably the name of such functions should be eol (End-Of-List).
2003-07-19 20:04:51 +00:00
Andrey Hristov 5fcc682ebc proto fixes 2003-07-19 19:23:34 +00:00
Andrey Hristov 71990112b7 Id tag added.
Proto fixes
2003-07-19 19:11:01 +00:00
Marcus Boerger b1f96b77fb Revert stuid patch 2003-07-19 19:04:35 +00:00
Marcus Boerger 9efcbe1e75 Fix clone 2003-07-19 18:53:10 +00:00
Andrey Hristov a76745a6a2 Id tag added 2003-07-19 18:52:49 +00:00
Andrey Hristov 66bcb6529b Id tags added 2003-07-19 18:32:04 +00:00
Rob Richards d85845a64b fix for Bug #24715 segfault in dom_document_create_element
removed xmlmemorydump debug code
2003-07-19 14:59:29 +00:00
Marcus Boerger 892c1fbbe7 Add missing function to ease implementations 2003-07-19 14:19:04 +00:00
foobar aad797691b Fix the HPUX alloca fix as suggested by Sascha 2003-07-19 13:10:24 +00:00
foobar 82af3ff733 OS_UNIX/OS_WIN are set in the bundled libsqlite sources. 2003-07-19 12:44:46 +00:00
Sebastian Bergmann aeefb55a6a Cleanup, as suggested by Andi. 2003-07-19 11:00:17 +00:00
Marcus Boerger 59d6d4ab18 Move filter functionality to dedicated function 2003-07-19 09:50:18 +00:00
Marcus Boerger 2432baee40 Add clone support 2003-07-19 09:49:28 +00:00
Marcus Boerger 7cdc2d1f39 Shuffle code to ease writing clone handlers 2003-07-19 09:47:00 +00:00
Andi Gutmans 99d0a5c86e - Don't use alloca on HP-UX (Moriyoshi Koizumi <moriyoshi@at.wakwak.com>) 2003-07-19 07:19:21 +00:00
Rob Richards 1344b5d9b9 fix invalid node pointers 2003-07-18 12:41:35 +00:00
foobar a00e3f6f1e Added test case for bug #24573 2003-07-18 12:24:49 +00:00
Sascha Schumann 94756ffb8b Add short notice regarding unbundled client lib 2003-07-18 09:53:04 +00:00
Sergey Kartashoff 936b36ce4a - UDM_PARAM_SORT_ORDER has been added in Udm_Set_Agent_Param while
using with mnogosearch-3.2.14+ to set order of search results.
2003-07-18 09:14:25 +00:00
Sergey Kartashoff 76a6eae91a - Coredump in Udm_Find was fixed. 2003-07-18 08:37:18 +00:00
Georg Richter 13966fdf3e added new functions:
mysqli_connect_error
  mysqli_connect_errno

  which return possible errors for the last connect
2003-07-18 06:17:39 +00:00
Marcus Boerger 244795a4df Fix text output of numbers with absolute exponent greater than or equal 80.
#
# Probably not last conclusion on wisdom. But i looked up current apache
# sources and they have the same error and so this must do the trick.
#
2003-07-17 21:26:25 +00:00
Marcus Boerger 4e2b88255c Add test for bug #24640 2003-07-17 21:02:44 +00:00
Moriyoshi Koizumi 02c55f6c63 Added test case for bug #24658 2003-07-17 18:50:56 +00:00
Tomas V.V.Cox d462d93836 PEAR binaries go where the php bin goes 2003-07-17 06:30:21 +00:00
e4625963aa ChangeLog update 2003-07-17 00:30:28 +00:00
Marcus Boerger 7f1cf60331 Remove bogus comment (noticed by Zak) 2003-07-16 22:55:02 +00:00
Marcus Boerger d8943e513c Update examples 2003-07-16 21:52:03 +00:00
Marcus Boerger a86eff2162 Fix handling of empty settings 2003-07-16 20:53:17 +00:00
Marcus Boerger 49277b2ac6 More examples 2003-07-16 20:18:33 +00:00
Marcus Boerger 1131d43b0b Update examples 2003-07-16 20:17:34 +00:00
Marcus Boerger 5e1606b882 Add tree example 2003-07-16 18:47:26 +00:00
Marcus Boerger 3a49606d9d Add directory iterator class 2003-07-16 15:13:23 +00:00
Zak Greant 8178d87d25 Created shorter/sensible key names for dbase_get_header_info
* 'decimal places' becomes 'precision'
 * 'printf format' becomes 'format'
 * 'record offset' becomes 'offset'

 BTW No docs have been committed for this function yet, nor is it part of any
 release. This change should affect no users.
2003-07-16 11:08:03 +00:00
Marcus Boerger aa9bde9a34 Make array write stuff work again correct and fix tests 2003-07-16 10:41:43 +00:00
Marcus Boerger 15097151f4 Update and remove parts no longer possible 2003-07-16 09:48:36 +00:00
foobar c03bd010c3 heat wave 2003-07-16 09:30:56 +00:00
foobar 704a7e5653 - Added snmp_read_mib() which reads a MIB file into the active MIB tree. 2003-07-16 09:28:47 +00:00
Zeev Suraski e10dbc607c Fix bug in the verification of interface-function implementation 2003-07-16 09:13:47 +00:00
Zeev Suraski 3a898f6d4e More cleanup for assign-op handling of objects 2003-07-16 08:57:08 +00:00
Zeev Suraski 1c385fc742 Fix warning 2003-07-16 08:48:22 +00:00
Marcus Boerger bdfed34ef6 Bugfix #22690 2003-07-16 08:36:04 +00:00
Sebastian Bergmann d2e72bc134 Add /libpath directives for zlib. 2003-07-16 08:13:14 +00:00
foobar 82701d48c2 - Fixes some problems (debug mode only). (bug #23051 and bug #23685) 2003-07-16 06:03:46 +00:00
foobar 5553b6827b - Use the correct paths to apu-config / apr-config 2003-07-16 05:46:36 +00:00
foobar 9887afad9c Remove extra proto. (copy/paste error?) 2003-07-16 05:10:29 +00:00
foobar 6676e6f2e9 Fixed bug #22529 (object_id parameter in all snmp*() functions broken.) 2003-07-16 04:54:40 +00:00
foobar 7fe8f6cf94 Added test case for bug #22690 2003-07-16 00:38:54 +00:00
Uwe Schindler 72aa28d0c3 safe mode fix 2003-07-15 22:19:00 +00:00
Zak Greant c0bd985ad9 Added function dbase_get_header_info
* Passed a handle for an open dbase database, it returns an array of
   associative arrays. Each associative array contains information on a
   single column, including name, column type, length, precision, ...
2003-07-15 18:19:51 +00:00
Uwe Schindler e3a55ba297 Make virtual() an alias for nsapi_virtual() -- better for docs/naming in future 2003-07-15 17:30:33 +00:00
Hartmut Holzgraefe b0a4e1a2d2 whitespace 2003-07-15 17:28:41 +00:00
Hartmut Holzgraefe 2f5a3b4c63 #1 $_ENV is not always set, use getenv() instead
#2 bail out after 1000 loop iterations to avoid hanging tests
2003-07-15 16:55:44 +00:00
Georg Richter db398787e6 added new function mysqli_stmt_data_seek 2003-07-15 14:00:19 +00:00
Georg Richter 5c09a9e42f test for bind + sql_mode=PIPES_AS_CONCAT 2003-07-15 13:13:59 +00:00
Georg Richter b6bed54bbd added support for rebind 2003-07-15 10:37:19 +00:00
Georg Richter 4457876554 additional test for multi-bind 2003-07-15 10:36:18 +00:00
foobar 94a19d1bc6 Make this test work regardless of safe_mode setting (bug #24654) 2003-07-15 07:06:42 +00:00
Edin Kadribasic fdf3019eca MFB: fix for #24249 2003-07-14 23:23:01 +00:00
Rui Hirokawa ac91b2dbba MFH 2003-07-14 23:09:46 +00:00
Rob Richards e4d73c22ad fix setting new encoding 2003-07-14 21:51:28 +00:00
Wez Furlong 5cf5248b00 Fix for mips compiler. 2003-07-14 19:38:13 +00:00
Harrie Hazewinkel 83063e7445 Updating the SNMP credits in ext/standard/credits_ext.h 2003-07-14 18:59:18 +00:00
Harrie Hazewinkel ecef612862 Applying the correct format of the CREDITS. 2003-07-14 18:55:35 +00:00
Harrie Hazewinkel 68a7ce29d1 Updating the CREDITS with those who are indicated as authors in the code. 2003-07-14 18:19:34 +00:00
Harrie Hazewinkel a8d156177f Adding an SNMP GETNEXT.
This is a basic SNMP operation that retrieves the next value as the
one provided to the command.
NOTE: snmpgetnext does not follow the official naming convetions of
functions, but now it is equal to it version 1 equivalents snmpget
and snmpset.
I also would like to reserve the snmp_getnext for a function to
which a session can be given instead of the multiple values to
create the session internally. (Work in progress).
2003-07-14 18:10:22 +00:00
Harrie Hazewinkel fa910bd2b0 (RE applying)
Cleaning up some very old definitions of version 3.3.1 until 3.5.3.
Those versions are that old that people better upgrade the SNMP libraries.
2003-07-14 17:34:56 +00:00
Harrie Hazewinkel 6dd04c368e (RE-)Applying the contributed patch of Johan Hanne to the main tree.
The patch enables control on the way the values are returned
into the PHP script, instaed of always strings. Also the
type of the value is now returned when configured to do so.
This enables better management scripts to do more automatic
processing and value calculations.
(By default the values are returned as strings, as was before)
2003-07-14 17:11:04 +00:00
foobar e209272db1 CS & WS fixes 2003-07-14 16:23:14 +00:00
foobar d862a8ee90 WS fix 2003-07-14 16:11:38 +00:00
Sebastian Bergmann 83bf4599b7 ZTS fix. 2003-07-14 05:52:57 +00:00
foobar 9933944e01 Added comment 2003-07-14 03:58:31 +00:00
foobar c2b21f7098 Move the macosx fix to proper place. 2003-07-14 03:57:57 +00:00
Stefan Roehrich 750635d131 Allow setting of the serial number. 2003-07-13 09:54:42 +00:00
Wez Furlong 78e236da26 Add sqlite_has_prev, and sqlite_prev.
Patch by Jan Lehnardt <jan@php.net>
2003-07-13 09:38:33 +00:00
Stefan Roehrich 80ee75f11e Fixed certificate version (counting begins with 0, so 2 means version 3). 2003-07-13 09:38:32 +00:00
Wez Furlong ce2a4d9121 MFB better popen fix 2003-07-13 09:20:40 +00:00
Wez Furlong e17043c248 Fix bug #24575 (sqlite_popen did not request a new resource id when persistent
handles were re-used within a request).
2003-07-13 08:48:43 +00:00
Rui Hirokawa 0b0962eb8e added strict encoding detection mode to fix #24309 2003-07-13 08:20:01 +00:00
Moriyoshi Koizumi d33ffb78aa Added regression test for proc_open() 2003-07-13 08:03:46 +00:00
ed9c700d9b ChangeLog update 2003-07-13 00:30:23 +00:00
Rob Richards d75618e780 implement read only exceptions
implement notation nodes
changes for spec conformance
2003-07-12 17:29:20 +00:00
Rob Richards a04b2c8724 fix loading off of interface 2003-07-12 17:23:05 +00:00
Martin Jansen 6249a7dac1 * Update the DTD path 2003-07-12 15:15:38 +00:00
Andi Gutmans af1254e458 - WS 2003-07-12 14:54:53 +00:00
Tomas V.V.Cox 17573ddf0b +* Added proxy support for remote commands using the
xmlrcp C ext (Adam Ashley)
2003-07-12 14:27:27 +00:00
Tomas V.V.Cox 4e268d9270 Added proxy support for remote commands using the xmlrcp C ext
(contribution by Adam Ashley <aashley@optimiser.com>)
2003-07-12 14:25:06 +00:00
Moriyoshi Koizumi 4b07cb98b1 Fixed bug #24556 2003-07-12 09:33:31 +00:00
Moriyoshi Koizumi 4c8230696c Add folding markers 2003-07-12 07:01:30 +00:00
Moriyoshi Koizumi 77ae01ac72 Oops, this is not needed though. 2003-07-12 06:54:03 +00:00
Moriyoshi Koizumi cd52986a5c Fixed leaks that occurs if the third parameter already contains a valid value. 2003-07-12 06:50:32 +00:00
f9551bc554 ChangeLog update 2003-07-12 00:30:21 +00:00
foobar c751ba0cc8 Remove un-used code. 2003-07-11 15:56:23 +00:00
Rob Richards d1c41150c6 fix compile issue - TSRMLS_FETCH is only temporary until errors handled 2003-07-11 14:19:05 +00:00
Dan Kalowsky a1d8121bda Fix for bug #22897 2003-07-11 13:13:32 +00:00
Dan Kalowsky bc2086b11e Patch for bug #24183 2003-07-11 13:08:45 +00:00
Andi Gutmans 939ab68637 - Add support for Z in zend_parse_parameters(). It will allow the extension
- to retreive the zval **, thus allowing it to use the convert_to_*_ex()
- family of functions to do type conversions without effecting the value in
- the engine itself. (Josh Fuhs <fuhs@purdue.edu>)
2003-07-11 10:21:39 +00:00
foobar 2deb3c224d - CS/WS fixes
- Updated CREDITS
- Added some kind of version check for ming..
- Fixed some possible BC issues.
2003-07-11 07:48:13 +00:00
foobar 5afd8cbf07 update credits. 2003-07-11 07:44:56 +00:00
Frank M. Kromann 5baaa6aee1 Allow the use of both ming 0.2a and 0.3a (API\s changed) 2003-07-11 05:55:13 +00:00
foobar d6430ab79f - Fixed bug #21074 (Apache2: "ErrorDocument xxx /error.php" broken). (Jani) 2003-07-11 04:23:34 +00:00
foobar 5aeedb4c88 Fixed bug #17291 (mssql_query does not update get_last_message) (patch by: mgruetzner at rw3 dot com) 2003-07-11 02:08:14 +00:00
foobar d3bde360a7 Use the proper way to get the max requests per child. 2003-07-10 22:45:06 +00:00
foobar 253dc38445 Fixed bug #24563 (preg_match() crashes PHP under Apache2) 2003-07-10 16:08:56 +00:00
Tomas V.V.Cox 8c7c27b93a Expose PHP errors on error callback function 2003-07-10 11:35:37 +00:00
Rob Richards 16fb3e91c0 remove global error handling - use of libxml globals is a bad thing
add domDocument properties for parsing options:
validateOnParse, resolveExternals, preserveWhiteSpace, substituteEntities
implement custom parsing to avoid use of globals
implement local errors while parsing
errors displayed until error objects implemented
2003-07-10 11:17:25 +00:00
Marc Boeren 98b74781a5 WS 2003-07-10 08:34:03 +00:00
Marc Boeren 76aba9b755 Add -2003 to copyright line (Marc). 2003-07-10 08:25:58 +00:00
Frank M. Kromann 4b70683464 Adding missing compression paramters to output functions 2003-07-10 05:07:07 +00:00
foobar 676d4fca3c Revert bad fix. 2003-07-10 01:40:01 +00:00
Tomas V.V.Cox c7e2c03b53 Made the install of the config honors $INSTALL_ROOT 2003-07-10 01:34:46 +00:00
foobar 3396cb340a Fix crashes in certain situations (whenever there is an error, basically..) 2003-07-10 01:17:34 +00:00
foobar b645c60bd5 - Fixed bug #11924 (ibase_query() and ibase_execute() mangled passed
parameter variables)
2003-07-10 00:17:09 +00:00
Pierre Joye bf7f45601d - wrong patch applied for #23792, fixed 2003-07-10 00:09:23 +00:00
Frank M. Kromann f078959207 oops. fix spelling 2003-07-09 22:38:46 +00:00
Frank M. Kromann fe04bd50e8 Adding missing MSSQL Server ini settings 2003-07-09 22:36:18 +00:00
Marcus Boerger 959f7784e0 Don't use class_implements() for the moment 2003-07-09 17:05:09 +00:00
Marcus Boerger bd752698cf Use --EXPECTF-- for errors 2003-07-09 17:02:42 +00:00
Marcus Boerger ae19eb5334 Add oo version of test 2003-07-09 16:55:07 +00:00
Marc Boeren 60d1776b31 Add SQLite support to DBX (Marc).
@Add SQLite support to DBX (Marc).
2003-07-09 16:31:40 +00:00
Marcus Boerger 52e3aa1f8e Update the info and collect XML extensions 2003-07-09 14:55:14 +00:00
Brad House 6995520e20 fix typecasting errors, especially for new constants. Don't assume long and int are the same size, as on 64bit architectures, they are normally not 2003-07-09 13:45:21 +00:00
Pierre Joye 6da86c7e93 - Fix a possible crash when invalid color index are given as background
in imagerotate, only when palette based image is used as src
2003-07-09 10:36:07 +00:00
Pierre Joye e1f163b053 - "Fix" #23792, imagerotate returns always truecolor images now
(the destination image is a truecolor, no more limited palette problems)
- Clean the cast in gdImageCopyMerge
2003-07-09 10:15:13 +00:00
Sterling Hughes 8fcd71dccf boom bam bing 2003-07-09 03:14:41 +00:00
Jason Greene ae3101c5f1 Convert C++ comments to C (violates C99, and breaks several compilers) 2003-07-09 02:48:25 +00:00
b868cb62b2 ChangeLog update 2003-07-09 00:30:34 +00:00
Marcus Boerger f31df5693e Currently we're presented all properties with foreach() 2003-07-08 23:25:18 +00:00
Marcus Boerger 79ac007d20 Fix configure options 2003-07-08 23:11:36 +00:00
Marcus Boerger d9de39ec16 Add some comments 2003-07-08 23:11:14 +00:00
Marcus Boerger af3be899e6 fix this stupid error 2003-07-08 23:10:01 +00:00
Marcus Boerger 139852d3ff Fix bug #24540 2003-07-08 18:57:28 +00:00
Marcus Boerger 2ef1935c83 Add test for sqlite_seek() 2003-07-08 18:56:14 +00:00
Rob Richards 7de2784bd3 fix getElementsByTagName 2003-07-08 17:00:49 +00:00
foobar a952a4383a fix typo (most likely fixes #24533 too) 2003-07-08 14:46:32 +00:00
foobar 471eaadffd apache2filter does not require 2.0.44 2003-07-08 14:12:56 +00:00
Sergey Kartashoff 502d59ea01 - Output of UDM_PARAM_WORDINFO_ALL was fixed 2003-07-08 14:00:20 +00:00
foobar 64cad72284 - Fixed bug #24537 (apache2 compile missing include directories) 2003-07-08 13:53:34 +00:00
Sergey Kartashoff 79d1a39b48 - Udm_Find function is fixed to be compatible with mnogosearch-3.2.13 2003-07-08 13:28:17 +00:00
Zeev Suraski d9fb6b672a initial refactoring for assign-op handling of objects 2003-07-08 11:52:21 +00:00
Tomas V.V.Cox 67999408db Go with b3 2003-07-08 10:53:33 +00:00
Tomas V.V.Cox 287363df63 Detect enable_dl off or safe_mode on PEAR::loadExtension() 2003-07-08 10:52:23 +00:00
Tomas V.V.Cox d633b92fe0 Check dependencies on uninstall 2003-07-08 10:33:38 +00:00
Tomas V.V.Cox 0304ec19ff Added checkPackageUninstall() 2003-07-08 10:32:23 +00:00
Derick Rethans dc0426652e - Fixed email address 2003-07-08 09:43:39 +00:00
Wez Furlong 495255470d MFB extensions info 2003-07-08 09:13:05 +00:00
Sascha Schumann 3290685fda grep -E -> egrep 2003-07-08 05:37:06 +00:00
Sara Golemon 6cb8ce2880 gethostbyname2() not thread safe. Use getaddrinfo() or nothing at all. 2003-07-08 05:00:13 +00:00
Sara Golemon 010f5a12c7 Make php_set_inet6_addr happy with any environment. Use getaddrinfo() if available, gethostbyname2() if not, and simply fail if neither is present. 2003-07-08 03:38:00 +00:00
Brad House 61b47cdaf0 sync functionality with libmcve 3.2 2003-07-08 02:59:51 +00:00
0bef1de448 ChangeLog update 2003-07-08 00:30:24 +00:00
foobar e922164a31 Little update 2003-07-07 22:36:31 +00:00
Sara Golemon acc587fdfa Fix non-GNU build. Use getaddrinfo() rather than gethostbyname2() 2003-07-07 22:27:32 +00:00
Rob Richards 3b2507b910 changed to studlyCaps naming convention 2003-07-07 19:45:24 +00:00
Rob Richards 4cd06845f9 implement node proxies: next phase of interop 2003-07-07 19:37:32 +00:00
Zeev Suraski 134338522f Rework zend_do_declare_property and related code into one code base 2003-07-07 16:22:56 +00:00
Zeev Suraski 376c7a1771 Fix bug 2003-07-07 16:04:42 +00:00
Tomas V.V.Cox e07220ad03 Experimental dependencies database handling functions
(not yet in production)
2003-07-07 15:44:07 +00:00
Tomas V.V.Cox 01795e2ae1 Moved dependecy db code to its own file 2003-07-07 15:42:58 +00:00
Derick Rethans 6d563b3bdc - Commiting conversion to zend_parse_parameters (leftovers from debugging). 2003-07-07 13:21:10 +00:00
Zeev Suraski d6320007e0 Add missing elements 2003-07-07 12:07:02 +00:00
foobar f55b83cb18 ws + missing fold tag 2003-07-07 11:43:34 +00:00
foobar ae2b733e14 Added missing .cvsignore file 2003-07-07 11:40:12 +00:00
Zeev Suraski 3cfa6a68f4 Add get_dim callback 2003-07-07 10:53:27 +00:00
Zeev Suraski ed97b9fb6e Fix naming convention 2003-07-07 10:47:25 +00:00
Derick Rethans d16f0a6333 - Help Zeev fixing ghosts :) 2003-07-07 10:16:05 +00:00
Zeev Suraski ae6a1e7e4e whitespace 2003-07-07 09:12:15 +00:00
Zeev Suraski 65f8bafb29 Fix & whitespace 2003-07-07 09:08:33 +00:00
Zeev Suraski 765f349ecd fixlet 2003-07-07 09:01:22 +00:00
Zeev Suraski 938c0fbc19 Initial support for overloading of array syntax for objects (very initial) 2003-07-07 09:00:36 +00:00
54271f5187 ChangeLog update 2003-07-07 00:30:19 +00:00
Moriyoshi Koizumi e661d9e22a Updated test so it won't fail if the extension has been built with libiconv. 2003-07-06 21:44:44 +00:00
Moriyoshi Koizumi 80a8ff3a43 Fixed segfault due to reference to the already free'd block :) 2003-07-06 21:30:23 +00:00
Moriyoshi Koizumi 9fbd2f44ec Modified the test so it reflects the change to iconv_mime_decode() 2003-07-06 21:19:38 +00:00
Moriyoshi Koizumi 8d850b4c3a Improved iconv_mime_encode() interface 2003-07-06 21:19:08 +00:00
Moriyoshi Koizumi c5e123f584 oops 2003-07-06 21:10:02 +00:00
Moriyoshi Koizumi 716a34a4d0 Avoid miscellaneous conflicts between glibc's iconv and libiconv. 2003-07-06 21:08:50 +00:00
Sebastian Bergmann 81543d043e COMPILE_DL_MYSQL_MYSQL -> COMPILE_DL_MYSQL 2003-07-06 20:38:56 +00:00
George Schlossnagle daf3ac65ea add convenience functions or adding class properties. Ok'd for commit by Andi. 2003-07-06 19:55:20 +00:00
Moriyoshi Koizumi f4b24b82f2 Added missing includes 2003-07-06 17:52:42 +00:00
Moriyoshi Koizumi 6b4a5bfd8c Simplified config scripts 2003-07-06 17:51:46 +00:00
Pierre Joye c8a14f4ad1 - Fix bug #24512 2003-07-06 14:17:58 +00:00
Rob Richards 1688895f6b use common doc with ref counting rather than copy 2003-07-05 23:43:10 +00:00
Marcus Boerger f145b163a8 - In function sqlite_field_name the index parameter is not optional.
- Fix all the protos.
2003-07-05 20:02:40 +00:00
Wez Furlong fa342d2404 MFB: binary mode by default under win32. 2003-07-05 08:25:25 +00:00
Derick Rethans a952e28c73 - Fixed bug #24504: T_INTERFACE and T_IMPLEMENTS not defined in tokenizer
extension
2003-07-05 06:49:57 +00:00
Sterling Hughes 73d98824d7 not a temp var unless its a singular var 2003-07-05 00:33:13 +00:00
772f666998 ChangeLog update 2003-07-05 00:30:12 +00:00
Sterling Hughes e0347ab2c4 "real" fix 2003-07-04 22:21:23 +00:00
Sterling Hughes 2935efb446 fix memory cverrun when accessing an empty xml element.
guess how many lines it took me to write a basic WSDL parser + API?  20 using
curl + simplexml
2003-07-04 21:58:09 +00:00
Adam Dickmeiss a0c7a95ba1 On Windows, handle YAZ versions that don't export yaz_version. 2003-07-04 19:17:09 +00:00
Sterling Hughes 9a29929029 avoid external conflicts in apache 2003-07-04 18:19:02 +00:00
Andi Gutmans 84f4588726 - Add heap to memory manager. This should improve performance.
- Enabling it by default so that it gets tested. We should decide before
beta 2 if we want to revert back to malloc or not.
- Thanks to Sebastian for benchmarking it
2003-07-04 15:38:12 +00:00
Hartmut Holzgraefe de6a6ed6d7 skip test if glob() is not available at all 2003-07-04 15:07:11 +00:00
Hartmut Holzgraefe 3c34e4edaf regression test for #24482 GLOB_ONLYDIR is not working (on BSD) 2003-07-04 14:38:07 +00:00
Hartmut Holzgraefe f49b1d2da0 make sure operator precedence is not playing tricks on us
(it worked before on gcc3.2/Linux and with VC++ 6, but not
 with gcc3.1/MacOSX)
2003-07-04 13:24:47 +00:00
Sebastian Bergmann c86b4d13e6 2 * TSRMLS_FETCH() -> 1 * TSRMLS_DC 2003-07-04 10:31:41 +00:00
George Schlossnagle 96b71d7f87 ws fix 2003-07-04 03:26:37 +00:00
99b41db6c1 ChangeLog update 2003-07-04 00:30:27 +00:00
Sascha Schumann 320a86b7a5 MFB quoting of ) 2003-07-03 22:54:57 +00:00
Marcus Boerger 4f0b480f78 More __clone testing 2003-07-03 19:53:01 +00:00
Frank M. Kromann d77e8393cd Change fetch functions and protos so they make more sense.
fetch_row or fetch_assoc should  not take the optional parameter
2003-07-03 16:53:04 +00:00
Marcus Boerger d7e14ad8a3 Allow final private methods
#
# Declaring a method private and final would only be an error for an abstract
# class. But at the moment the method is defined and it's modifiers are checked
# we do not know whether or not we have an abstract class. It could already be
# abstract but it also become abstract later.
#
# Since i made the mistake in first place i remove the check now.
#
# Providing the correct test would slow down the compiler becuase we'd have to
# iterate through all methods on all abstract classes and check for this. I
# guess we can live without. Or does anybody wants this to be implemented ?
2003-07-03 16:45:37 +00:00
Moriyoshi Koizumi dd710f4dc0 Added missing protos 2003-07-03 15:30:14 +00:00
Moriyoshi Koizumi fd9d9dea1c Fix build 2003-07-03 15:26:12 +00:00
Hartmut Holzgraefe 00fbf2af67 VCWD awareness and (hopefully) windows compile fix 2003-07-03 14:54:03 +00:00
Hartmut Holzgraefe a7edbe04ad PHP glob() will now emulate GLOB_ONLYDIR on non-GNU systems 2003-07-03 14:34:02 +00:00
George Schlossnagle edf78b2141 win build fixes (Rob Richards) 2003-07-03 14:11:31 +00:00
Marcus Boerger 5b1a6f7be0 Accessing globals from a destructor causes memory corruption 2003-07-03 14:06:51 +00:00
George Schlossnagle 6a4c48be6f can't forget Andrei 2003-07-03 14:00:17 +00:00
Stanislav Malyshev 8f0234160a enable Classname() constructor to be called via parent::__constructor() 2003-07-03 12:03:11 +00:00
Marcus Boerger bc16d962a6 Fix open mode (noticed by FutureQuest, Inc.) 2003-07-03 11:17:34 +00:00
Marcus Boerger 2044fbf59e Check private redeclare behavior 2003-07-03 10:05:01 +00:00
Stanislav Malyshev 3f0d60f749 add test for Bug #19859 2003-07-03 09:22:35 +00:00
Stanislav Malyshev 5a7b07701b Fix bug #19859 - allow fast_call_user_function to support __call 2003-07-03 09:18:41 +00:00
Stanislav Malyshev 2f96c161df fix the get_parent_class fix 2003-07-03 08:00:10 +00:00
Sterling Hughes 62ea4ebd92 fix these tests 2003-07-03 07:18:41 +00:00
Tomas V.V.Cox 14f70bb1b7 Store verbose=1 in config file 2003-07-03 07:08:21 +00:00
Tomas V.V.Cox a136105e34 Atm php5 doesn't support this:
function foo(&$a) {
	return new Bar;
}
2003-07-03 06:54:26 +00:00
Tomas V.V.Cox 6ca92fbaa6 Write the PEAR system config file while installing 2003-07-03 06:45:49 +00:00
Tomas V.V.Cox 6f14374b3b Added tha ability to store custom data in a layer
Added method getConfFile()
Better layer removing in removeLayer()
2003-07-03 06:43:31 +00:00
George Schlossnagle 3d7283b94f more of Timm's patches, and mod authors line to give credit where credit is due. 2003-07-03 05:33:23 +00:00
Tomas V.V.Cox 0ba644f3f7 typo, need the complete file name not the basenamed one 2003-07-03 05:09:36 +00:00
Jon Parise 9b31c51d66 Update documentation for PHP 5. 2003-07-03 04:14:42 +00:00
foobar 50d3650a92 Cut the long line a bit for readability.. 2003-07-03 02:59:04 +00:00
Ilia Alshanetsky a96aa89ae3 Compiler warning fix. 2003-07-03 00:55:20 +00:00
30b5cbd151 ChangeLog update 2003-07-03 00:30:19 +00:00
Marcus Boerger 5b54322dc7 Temporairy solution to overcome shutdown propbelms with objects that have
hidden destructors.
#
# If we set the error level to E_ERROR what we must to to be correct and an
# object needs to be automatically destructed in shutdown process then the
# exit would cause memory corruption and a SEGV.
2003-07-02 23:58:47 +00:00
Marcus Boerger 669016c724 Reorganize this a bit to ensure the object memory is destructed before
showing the error.
2003-07-02 23:53:53 +00:00
Uwe Schindler 948476bd45 rename functions to php5_* 2003-07-02 22:39:37 +00:00
Sara Golemon 444615e74c Introduce connection pooling API. I'll use these in http/ftp fopen wrappers soon. 2003-07-02 22:18:59 +00:00
Marcus Boerger d007a6ce5e Bug #24399: is_subclass_of(): fix memleak, too 2003-07-02 21:57:57 +00:00
Marcus Boerger a5588b4c7a funny fixes 2003-07-02 21:40:54 +00:00
Marcus Boerger 019d70e67a ZTS fix 2003-07-02 21:37:46 +00:00
Wez Furlong 49228bd5e2 more size_t -> socklen_t.
Noticed by tychay@php.net
2003-07-02 21:11:35 +00:00
Sterling Hughes e158cd285e Not really the best way to solve this. But it doesn't give a segfault on
self-referential structures, which is always a bonus
2003-07-02 20:05:13 +00:00
Zeev Suraski eab449ded0 Another test case 2003-07-02 18:05:45 +00:00
Derick Rethans dab62fcf60 - use <?php in testcases 2003-07-02 18:00:51 +00:00
Zeev Suraski 60152a0db8 Add test case 2003-07-02 17:51:15 +00:00
Zeev Suraski eb224d4a5f Throughly fix scoping change. Fixes, among other things, bug #24403 2003-07-02 17:48:18 +00:00
Moriyoshi Koizumi d0679bf9c8 Changed line break characters from CRLF to LF. 2003-07-02 17:13:27 +00:00
Moriyoshi Koizumi 181508a837 s/cvs/csv/ 2003-07-02 17:07:56 +00:00
Andi Gutmans 02c7aacf83 - Nuke CG(in_clone_method) 2003-07-02 16:52:07 +00:00
Moriyoshi Koizumi 1379c46d9e Fixed a leak that occurs with "R" reference variable specifier. 2003-07-02 16:19:57 +00:00
Moriyoshi Koizumi 31431193ca Now this should make sense. 2003-07-02 15:47:24 +00:00
Moriyoshi Koizumi ed033faaec s/cvs/csv/ :) 2003-07-02 15:43:44 +00:00
Moriyoshi Koizumi 928d6ac769 Adjust test.
# This was also fixed by the Zeev's patch for bug #22367.
2003-07-02 15:38:51 +00:00
Zeev Suraski cb38a9227e Adjust expectations :) 2003-07-02 15:08:11 +00:00
Zeev Suraski d245c52e0c Fix for bug #22367.
Heads up - this will break syntactical compatiblity, return($foo) will
not work with functions that return references - return $foo should be used
instead.  It never worked well before, and caused all sorts of odd bugs.
It *might* be possible to support this specifically, albeit unlikely
2003-07-02 15:06:10 +00:00
Sterling Hughes 92e9e0ca7e optimize the case where the object is really a class name, as we don't need
to set EX(object) here.
2003-07-02 14:44:41 +00:00
Sterling Hughes 3fc83023b6 Timm Friebe points out that object detection should be done regardless of
the function pointer
2003-07-02 14:33:41 +00:00
Uwe Schindler 2f280dcd55 prevent user from making nested PHP requests using virtual() 2003-07-02 13:39:41 +00:00
Pierre Joye 119175c943 - tabs 2003-07-02 11:36:17 +00:00
Pierre Joye 19f3c5b5fa - Fix #23808 2003-07-02 11:23:56 +00:00
Pierre Joye b7c2a33f30 - MFH 2003-07-02 10:08:17 +00:00
Marcus Boerger 74a0f6c8ab Finally fix property cloning and fix the tests accordingly.
# The default behaviour is to copy all properties with all current values
# from the old object. But if __clone is overwritten then only the default
# properties are cloned with their correct default values. So we keep
# the type system intact and also allow real __clone overwriting now.
2003-07-02 07:24:11 +00:00
Marcus Boerger 43e74fc8b1 Fix test name 2003-07-02 06:40:34 +00:00
Sterling Hughes 7da8fbd7ef fix this test when using a save_handler other than files... 2003-07-02 04:34:18 +00:00
Sterling Hughes c491b0a672 Fix bug #24445 2003-07-02 04:31:33 +00:00
Sterling Hughes dc22926f49 add a test for get_parent_class() bug 2003-07-02 04:30:45 +00:00
Sterling Hughes e724e4cbdb further improve the performance and clean up 2003-07-02 03:12:06 +00:00
Sascha Schumann 4239cc4256 MFB PHP_CHECK_LIBRARY fix 2003-07-02 03:04:35 +00:00
foobar eb8c8f94a9 *** empty log message *** 2003-07-02 02:38:47 +00:00
Ilia Alshanetsky 46d834aad2 Fixed a crash when text is added before a font is specified. 2003-07-02 02:04:00 +00:00
Wez Furlong 989500b347 socklen_t needs this.
We might need some more magic to ensure that socklen_t gets defined in
the correct places; lets see if any more problems arise...
2003-07-02 01:35:39 +00:00
Sascha Schumann 1b50ca4df6 Fix install-sapi dependency - it should depend on OVERALL_TARGET, of course. 2003-07-02 01:08:26 +00:00
Sterling Hughes 6084487822 not necessary, already assumed binary safe (it has to be under the current
session architecture), and anything else is fair play
2003-07-02 00:56:32 +00:00
Sascha Schumann 566ce10664 This file has moved for your years ago into TSRM. Delete it. 2003-07-02 00:52:35 +00:00
Sterling Hughes 960ab9bd8d ws fix 2003-07-02 00:45:15 +00:00
Sterling Hughes 6129ddce1e set synching to off
cleanup some silly code
2003-07-02 00:43:00 +00:00
ed96d7bff0 ChangeLog update 2003-07-02 00:30:25 +00:00
Sterling Hughes 8a77e2b3db no c++ style comments 2003-07-02 00:04:58 +00:00
Sascha Schumann ae03f44694 Sync PHP_CHECK_LIBRARY change 2003-07-02 00:04:12 +00:00
Sterling Hughes bd4601ea28 make this actually work. 2003-07-02 00:03:41 +00:00
Marcus Boerger 30b7f39d07 Add more clone testing 2003-07-01 23:57:27 +00:00
Marcus Boerger 47a881f01c Check handling of private class members 2003-07-01 23:50:01 +00:00
Marcus Boerger 5500287432 Fix __clone().
# This is somewhat discussable. I copied all properties from the old to the
# new object. But for type correctness we only need to copy the properties
# declared in the class and its parents.
#
# Also someone might want to take care about static and const members.
2003-07-01 23:29:36 +00:00
Marcus Boerger 5dd671e3cc ups (2nd) 2003-07-01 23:20:48 +00:00
Marcus Boerger e0a68b1ee0 Use both destructor and shutdown 2003-07-01 23:06:40 +00:00
Marcus Boerger bef4696d3e small bugfix 2003-07-01 22:47:41 +00:00
Marcus Boerger 2c72deee2c Rename test to correct extension 2003-07-01 21:59:46 +00:00
Marcus Boerger 40dd3f4f88 __clone might not be defined 2003-07-01 21:30:21 +00:00
Marcus Boerger 11e5c08d39 ups 2003-07-01 21:28:15 +00:00
Marcus Boerger e92b88a8c5 Add more clone testing 2003-07-01 21:27:59 +00:00
Marcus Boerger 38e5f7b18e Fix test (damn copy'n'paste) 2003-07-01 21:05:02 +00:00
Marcus Boerger a04cba504f Fix __clone visibility 2003-07-01 20:02:27 +00:00
Marcus Boerger 0e300b7f77 Add tests for __clone visibility 2003-07-01 19:59:50 +00:00
Wez Furlong 17cbf83404 size_t -> socklen_t
fixes warnings under macosx
2003-07-01 19:51:06 +00:00
Rob Richards ee9ca6ee9d fix load() and loadxml() when used with uninstantiated object 2003-07-01 19:28:30 +00:00
Marcus Boerger 35c40932e8 Fix destructor visibility 2003-07-01 19:13:50 +00:00
Derick Rethans d2b1b6c700 - Added test for bug #24436 2003-07-01 19:12:56 +00:00
Marcus Boerger 26d0753804 Add tests for static members 2003-07-01 19:12:23 +00:00
Derick Rethans 7d6d146a02 - Fixing this test, this is the correct behavior 2003-07-01 19:06:04 +00:00
George Schlossnagle c36a59cfd9 Timm Friebe's patches for code celanup and additional functions. 2003-07-01 18:41:42 +00:00
Marcus Boerger c31e49e4cb Add tests for static members 2003-07-01 18:34:42 +00:00
Marcus Boerger d531dee390 Fix warnings and allow builds without ext/session 2003-07-01 17:55:32 +00:00
foobar e5af63a7d5 - Separate CGI build from regular SAPI build
# Creating the libphp5.a lib is not necessary for CGI build.
#
# btw. It would be quite easy to build CGI, CLI and for example Apache SAPI
# the same time.. :)
2003-07-01 17:01:21 +00:00
foobar f6cafd6041 Fix previous commit. (never do 2 things same time :) 2003-07-01 16:20:32 +00:00
foobar 82194d2766 Missing .cvsignore, broken test, renamed zend2.php -> zend2.php.txt 2003-07-01 15:56:07 +00:00
foobar 063e4e251e Added --help to phpize 2003-07-01 15:55:09 +00:00
foobar e7ff808fb8 Add .cvsignore here too. 2003-07-01 13:42:03 +00:00
foobar 1829d7468e ws fix 2003-07-01 13:31:14 +00:00
Corne' Cornelius 294cabb35f - MFB: 1.69.2.18 2003-07-01 13:27:04 +00:00
Wez Furlong 090328fd32 silence warning under win32
(maybe!)
2003-07-01 13:26:49 +00:00
Edin Kadribasic 9c717b33a6 Add sqlite session handler to win32 build 2003-07-01 13:26:02 +00:00
Wez Furlong a8f74b14f1 WS 2003-07-01 13:09:57 +00:00
Wez Furlong 607b6501ed Add sqlite session handler.
Modified (quite a bit!) patch from John Coggeshall.
It compiles, but it otherwise untested.
session.save_path == path to actual database file for the session.

eg: session.save_path=/tmp/mysite-session.db
2003-07-01 13:07:37 +00:00
Corne' Cornelius 8cbc0eae75 - MFB: 1.69.2.17 2003-07-01 11:09:11 +00:00
Edin Kadribasic dda902d56d Fix shared win32 build 2003-07-01 09:44:14 +00:00
Edin Kadribasic c1550b6d6c Some more files to ignore 2003-07-01 09:43:53 +00:00
Zeev Suraski 77037dcea4 Add missing sqlite references 2003-07-01 08:19:11 +00:00
Sascha Schumann 6dcf9c22b5 properly restart syscalls 2003-07-01 05:29:17 +00:00
Sebastian Bergmann fff7ef2f6c ZTS fixes. 2003-07-01 04:25:29 +00:00
George Schlossnagle 4edd9505fe more incremental changes. add anything that needs a class factory. 2003-07-01 04:10:57 +00:00
Ilia Alshanetsky 4634554976 Fix up test 2003-07-01 03:11:09 +00:00
Jason Greene b8a5d84dba Prevent lines following the version output from confusing the version test 2003-07-01 03:08:16 +00:00
George Schlossnagle 9c26571b37 all the easy parts of Reflection_Class 2003-07-01 02:31:21 +00:00
Marcus Boerger a6d0972c05 Fix warnings 2003-07-01 00:49:25 +00:00
d699324624 ChangeLog update 2003-07-01 00:30:09 +00:00
foobar d215b040b7 - Changed 'grep -E' back to 'egrep'.
#
# whatever some posix standard says, there's no use to change this in
# two places and possibly break stuff, like said in bug #22604.
#
# Grep for 'egrep' in autoconf 2.13 generated configure to find
# several hundred 'egrep's..
#
2003-07-01 00:16:23 +00:00
foobar b9fcb34625 Fixed bug #24025 (Can not build with shared ldap support) 2003-07-01 00:02:13 +00:00
Marcus Boerger e4f67f3545 Make --disable-spl work 2003-06-30 23:24:12 +00:00
Edin Kadribasic 59e96375c3 MySQL is back as a shared extension. 2003-06-30 20:36:38 +00:00
Shane Caraveo 5efc65f910 this fixes including this header in a c++ file (vs6) 2003-06-30 20:33:02 +00:00
Shane Caraveo d6ee8bab7f fix a crash I run into on occasion 2003-06-30 20:31:57 +00:00
Derick Rethans a62928a3e8 - Fix win32 install instructions 2003-06-30 20:29:52 +00:00
Sterling Hughes 778d8c8bf1 nuke "main" as a reserved keyword 2003-06-30 20:24:26 +00:00
Andi Gutmans 288dacca0c - ZE coding style requires if ( instead of if( 2003-06-30 20:22:35 +00:00
Sebastian Bergmann 5ee72bb478 ZTS fixes. Remove unused local variables. 2003-06-30 20:17:01 +00:00
George Schlossnagle 9995daebd2 add support for end_reflection_api.c 2003-06-30 20:04:39 +00:00
George Schlossnagle aa96d17022 added support for Reflection_Function, the first part of
the reflection api
2003-06-30 20:03:56 +00:00
Sterling Hughes f6d84a10ea set precision properly.. test passes here 2003-06-30 20:03:17 +00:00
Sterling Hughes 1d70191ab1 move the check down a little so it catches all cases 2003-06-30 19:52:47 +00:00
Sterling Hughes 223584a138 this is the correct result 2003-06-30 19:50:18 +00:00
Sterling Hughes c6876a53df test for bug #24399, segfault in is_subclass_of() 2003-06-30 19:40:48 +00:00
Derick Rethans 7a4ed00603 - Rename test and update title 2003-06-30 19:16:41 +00:00
Sterling Hughes f27571134b its not a bug - its a feature. No longer allowed in ze2. 2003-06-30 19:16:36 +00:00
Sterling Hughes d0bd54ce6a Fix bug #24399 from an excellent test case by edin 2003-06-30 19:11:01 +00:00
Rasmus Lerdorf 832ffd1970 Fix 3 tests that didn't adequately specify the .ini settings they rely on 2003-06-30 18:22:53 +00:00
Sterling Hughes 00c83984a3 add a test for shane's bug #24392 2003-06-30 18:09:11 +00:00
Marcus Boerger f970724d79 Do not test postgres settings 2003-06-30 18:00:30 +00:00
foobar b377225d4f Added test case for bug #24396 2003-06-30 17:30:16 +00:00
foobar f3ac60d4a4 - Cleanup, simplifying, etc. 2003-06-30 17:23:52 +00:00
Sergey Kartashoff e5e58c80ef - Memory leaks in UdmCatPath and UdmCatList functions have been fixed. 2003-06-30 17:12:18 +00:00
foobar 8dca948cf9 - Moved the PEAR check after the extensions.
. added checks for the dependancies PEAR has.
- Moved PHP_REGEX checks to ext/standard/config.m4

# If someone knows the reason for PHP_REGEX macro being where it was,
# please tell..
2003-06-30 16:33:50 +00:00
Zeev Suraski 53acb1814e Semantically it's a refcount increase, not a lock... 2003-06-30 13:51:48 +00:00
Zeev Suraski 6f9d0da2e5 Fix 'global' implementation (fixes, at least, bug #24396 2003-06-30 13:47:12 +00:00
foobar dcaf0ee650 no need to tell news twice 2003-06-30 13:37:18 +00:00
Andrei Zmievski a841b74ee3 *** empty log message *** 2003-06-30 13:29:06 +00:00
Tomas V.V.Cox 4513d36892 Added local version installed in "list-upgrades"
(http://bugs.php.net/bug.php?id=24298)
2003-06-30 13:12:50 +00:00
Zeev Suraski 8dd84b7b98 Conform to the sqlite.dsp updates 2003-06-30 11:43:14 +00:00
Zeev Suraski b31570f03e Remove Release_TSinline (it's not necessary)
Add Release_TSDbg
Change directories to be consistent with our other modules...
2003-06-30 11:41:25 +00:00
Zeev Suraski a6d06bea94 Remove unnecessary elements, internationalize 2003-06-30 11:27:03 +00:00
Tomas V.V.Cox 8a00ccf039 Added "\nRunning on: ".php_uname(); to pear -V 2003-06-30 10:43:57 +00:00
Tomas V.V.Cox 1ca5fc5f0a Fix for http://bugs.php.net/bug.php?id=21994 2003-06-30 10:09:44 +00:00
Sterling Hughes 0422e0d475 fix by Elfyn, use = not == 2003-06-30 05:01:18 +00:00
Sterling Hughes 57e1c829aa and my first user doesn't even like goto's. sniffle 2003-06-30 03:11:03 +00:00
Sterling Hughes 2505cf7c2c satisfy my very first user :) 2003-06-30 03:08:48 +00:00
Sterling Hughes dae3fefd10 revert back the optimization for now. 2003-06-30 01:41:15 +00:00
Ilia Alshanetsky 8cb5c9c6ba Fixed bug #24063 (*printf() did not handle scientific notation correctly) 2003-06-30 01:03:21 +00:00
68749958ab ChangeLog update 2003-06-30 00:30:21 +00:00
Ilia Alshanetsky 9754535255 Fixed bug #24279 (__get() crash when no value is returned) 2003-06-29 23:41:49 +00:00
foobar 7f952adc09 update 2003-06-29 23:14:47 +00:00
foobar 5971df8fa2 cleanup 2003-06-29 22:48:46 +00:00
Tomas V.V.Cox f945e2c251 typo 2003-06-29 20:50:05 +00:00
Tomas V.V.Cox d5e365ac54 Use the --with-pear=DIR, --prefix && --layout
# Will continue with the TODO in next time
2003-06-29 20:49:09 +00:00
Shane Caraveo 42165c12b0 renable -b option (removed when longopts were added)
dissable -b on windows due to fastcgi lib bug
close stdin on linux when using socket server (bug 23664)
2003-06-29 20:45:38 +00:00
Shane Caraveo 97ffab21a6 fix bug http://bugs.php.net/bug.php?id=24009
also do not use APPL_PHYSICAL_PATH as DOCUMENT_ROOT under IIS, it's
different depending on IIS configuration.  Code works fine without it, that
was just an attempt at a shortcut.
2003-06-29 20:09:36 +00:00
Sterling Hughes 9b20c06a0c add <![CDATA[ ]]> fixes 2003-06-29 19:42:29 +00:00
Sterling Hughes bd4cd4355c update to beta 2003-06-29 19:41:39 +00:00
Pierre Joye e0f9f0eb9e - Update DB to 1.5RC1 (final will be in 4.3.3) 2003-06-29 19:40:13 +00:00
Sterling Hughes 681d6bfaeb fix libxml2 when dealing with character data 2003-06-29 18:26:23 +00:00
Tomas V.V.Cox 994c70ef20 - Workarround to the PEAR_INSTALL_DIR empty constant
- Remove the layer in $reg->layers too
2003-06-29 17:44:29 +00:00
Hartmut Holzgraefe f355c4c5bb ok, re-adding this mostly un-maintained awk/sed/sh nightmare for now ... 2003-06-29 16:07:18 +00:00
Derick Rethans 913cec6551 - Remove register_globals warning, and "built-in MySQL lib" warning 2003-06-29 15:07:03 +00:00
Hartmut Holzgraefe 7218a70ff6 ext_skel is no more, and ext_skel_ng is moving to PEAR::PECL_Gen 2003-06-29 12:21:58 +00:00
Sebastian Bergmann 4aa81c9d72 Remove namespace references. 2003-06-29 09:40:23 +00:00
Sebastian Bergmann b851992902 Add zlib directory. 2003-06-29 06:15:06 +00:00
foobar 6e9c28e1a2 Fixed bug #24363 (plain "./configure && make install" failed) 2003-06-29 05:59:29 +00:00
Sterling Hughes f605f0b708 Very simple, but very effective optimization. Provides a signifigant speed
improvement to matches done via '=='.  This checks that the lengths of two
strings are equal before performing a memcmp() on them.
2003-06-29 01:49:10 +00:00
Andrei Zmievski 505fd434ac MFB 2003-06-29 00:09:41 +00:00
Rui Hirokawa 2b44c63d50 Fixed corruption of multibyte character including 0x5c as second
byte in multipart/form-data.
2003-06-28 23:37:18 +00:00
Sterling Hughes aacd3d2f1b what's a php5? 2003-06-28 23:32:04 +00:00
2782 changed files with 235487 additions and 103397 deletions

No files matched your search

+12 -1
View File
@@ -273,6 +273,18 @@ document printzops
dump operands of the current opline
end
define zbacktrace
____executor_globals
dump_bt $eg.current_execute_data
end
document zbacktrace
prints backtrace.
This command is almost a short cut for
> (gdb) ____executor_globals
> (gdb) dump_bt $eg.current_execute_data
end
define zmemcheck
set $p = alloc_globals.head
set $stat = "?"
@@ -345,4 +357,3 @@ document zmemcheck
usage: zmemcheck [ptr].
if ptr is 0, all blocks will be listed.
end
+5 -1
View File
@@ -183,7 +183,7 @@ Syntax and indentation
indentation and comment styles and up to function declaration
syntax.
(see also http://www.tuxedo.org/~esr/jargon/html/entry/indent-style.html)
(see also http://www.catb.org/~esr/jargon/html/I/indent-style.html)
[3] Be generous with whitespace and braces. Always prefer:
@@ -204,6 +204,10 @@ Syntax and indentation
four spaces. It is important to maintain consistency in indenture so
that definitions, comments, and control structures line up correctly.
[5] Preprocessor statements (#if and such) MUST start at column one. To
indent preprocessor directives you should put the # at the beginning
of a line, followed by any number of whitespace.
Documentation and Folding Hooks
-------------------------------
+12969 -17163
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
+104 -140
View File
@@ -26,6 +26,11 @@ Status legend
== Server APIs ==
-------------------------------------------------------------------------------
EXTENSION: activescript
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
MAINTENANCE: Odd Fixes
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: aolserver
MAINTENANCE: Unknown
@@ -36,27 +41,46 @@ PRIMARY MAINTAINER: Rasmus Lerdorf <rasmus@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: apache2
EXTENSION: apache2handler / apache2filter
PRIMARY MAINTAINER: Aaron Bannert <aaron@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: apache_hooks
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: caudium
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: cgi
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: fhttpd
MAINTENANCE: Unknown
STATUS: Unknown
EXTENSION: cli
MAINTENANCE: Marcus Boerger <helly@php.net>, Edin Kadribasic <edink@php.net>
STATUS: Working
SINCE: 4.3.0
-------------------------------------------------------------------------------
EXTENSION: embed
PRIMARY MAINTAINER: Edin Kadribasic <edink@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: isapi
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: nsapi
EXTENSION: milter
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: nsapi
PRIMARY MAINTAINER: Uwe Schindler <thetaphi@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: phttpd
MAINTENANCE: Unknown
STATUS: Unknown
@@ -69,12 +93,12 @@ EXTENSION: roxen
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: servlet
PRIMARY MAINTAINER: Sam Ruby <rubys@us.ibm.com>
MAINTENANCE: Maintained
EXTENSION: thttpd
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Odd fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: thttpd
EXTENSION: tux
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
@@ -92,10 +116,10 @@ EXTENSION: dba
PRIMARY MAINTAINER: Marcus Börger <helly@php.net>
MAINTENANCE: Maintained
STATUS: Working
COMMENT: DBM abstraction for db2, db3, db4, dbm, ndbm, gdbm, ini
-------------------------------------------------------------------------------
EXTENSION: dbase
PRIMARY MAINTAINER: Jim Winstead <jimw@php.net>
MAINTENANCE: Odd Fixes
MAINTENANCE: Orphaned
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: dbx
@@ -109,10 +133,10 @@ EXTENSION: filepro
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: hyperwave
EXTENSION: hwapi
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Maintained
STATUS: Working
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: informix
PRIMARY MAINTAINER: Danny Heijl <Danny.Heijl@cevi.be>
@@ -126,20 +150,14 @@ STATUS: Experimental
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: interbase
PRIMARY MAINTAINER: Jouni Ahto <jouni.ahto@exdec.fi>
MAINTENANCE: Odd Fixes
PRIMARY MAINTAINER: Ard Biesheuvel <ard@ard.nu>, Jouni Ahto <jouni.ahto@exdec.fi>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: msql
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: msession
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: mssql
PRIMARY MAINTAINER: Frank M. Kromann <fmk@swwwing.com>
MAINTENANCE: Maintained
@@ -151,12 +169,25 @@ PRIMARY MAINTAINER: Zak Greant <zak@mysql.com>, Georg Richter <georg@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mysqli
PRIMARY MAINTAINER: Georg Richter <georg@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: pgsql
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>, Yasuo Ohgaki <yohgaki@php.net>
MAINTENANCE: Maintained
STATUS: Working
COMMENT: Use PostgreSQL 7.0.x or later. PostgreSQL 6.5.3 or less have fatal bug.
-------------------------------------------------------------------------------
EXTENSION: sqlite
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>, Wez Furlong <wez@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 5.0 (Since 4.3.2 in PECL)
COMMENT: Integrates SQLite embeddable SQL database engine.
-------------------------------------------------------------------------------
EXTENSION: sybase
MAINTENANCE: Unknown
STATUS: Not Working
@@ -166,7 +197,7 @@ MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: oci8
PRIMARY MAINTAINER: Thies C. Arntzen <thies@thieso.net>
PRIMARY MAINTAINER: Antony Dovgal <tony2001@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
@@ -177,20 +208,52 @@ STATUS: Working
COMMENT: Working
-------------------------------------------------------------------------------
EXTENSION: oracle
PRIMARY MAINTAINER: Thies C. Arntzen <thies@thieso.net>
MAINTENANCE: Maintained
MAINTENANCE: Orphaned
STATUS: Working
COMMENT: Using the new OCI8 driver is encouraged where possible.
-------------------------------------------------------------------------------
== Other extensions ==
== XML extensions ==
-------------------------------------------------------------------------------
EXTENSION: aspell
MAINTENANCE: Unknown
EXTENSION: dom
PRIMARY MAINTAINER: Christian Stocker <chregu@php.net>, Rob Richards <rrichards@php.net>, Marcus Boerger <helly@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: simplexml
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: wddx
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
STATUS: Working
COMMENT: For aspell .27 and greater, check out the pspell extension
-------------------------------------------------------------------------------
EXTENSION: xml
PRIMARY MAINTAINER: Thies C. Arntzen <thies@thieso.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xmlrpc
PRIMARY MAINTAINER: Dan Libby
MAINTENANCE: UNKNOWN
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: xsl
PRIMARY MAINTAINER: Christian Stocker <chregu@php.net>, Rob Richards <rrichards@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 5.0
-------------------------------------------------------------------------------
== Other extensions ==
-------------------------------------------------------------------------------
EXTENSION: bcmath
MAINTENANCE: Unknown
@@ -203,13 +266,6 @@ STATUS: Working
SINCE: 4.0.3
-------------------------------------------------------------------------------
EXTENSION: dio
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Orphaned
STATUS: Working
SINCE: 4.0.6
-------------------------------------------------------------------------------
EXTENSION: cyrus
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Orphaned
STATUS: Working
SINCE: 4.0.6
@@ -219,21 +275,17 @@ PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
MAINTENANCE: Odd Fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: com
PRIMARY MAINTAINER: Harald Radi <h.radi@nme.at>
EXTENSION: com_dotnet
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
MAINTENANCE: Maintained
STATUS: Working
STATUS: Windows
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: cpdf
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: crack
MAINTENANCE: Unknown
STATUS: Experimental
SINCE: 4.0.5
-------------------------------------------------------------------------------
EXTENSION: ctype
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
MAINTENANCE: Maintained
@@ -245,21 +297,6 @@ MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: cybercash
PRIMARY MAINTAINER: Evan Klinger <evan715@sirius.com>
MAINTENANCE: Maintained
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: domxml
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: dotnet
PRIMARY MAINTAINER: Sam Ruby <rubys@us.ibm.com>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: exif
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>
MAINTENANCE: Maintained
@@ -290,10 +327,6 @@ MAINTENANCE: Unknown
STATUS: Unknown
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: icap
MAINTENANCE: Unknown
STATUS: Obsolete
-------------------------------------------------------------------------------
EXTENSION: iconv
PRIMARY MAINTAINER: Moriyoshi Koizumi <moriyoshi@php.net>
MAINTENANCE: Maintained
@@ -304,11 +337,6 @@ PRIMARY MAINTAINER: Chuck Hagenbuch <chuck@horde.org>
MAINTENANCE: Odd Fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: java
PRIMARY MAINTAINER: Sam Ruby <rubys@us.ibm.com>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ldap
PRIMARY MAINTAINER: Stig Venaas <venaas@php.net>
MAINTENANCE: Maintained
@@ -319,13 +347,8 @@ PRIMARY MAINTAINER: Rui Hirokawa <hirokawa@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mcal
PRIMARY MAINTAINER: Chuck Hagenbuch <chuck@horde.org>
MAINTENANCE: Odd Fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mcrypt
PRIMARY MAINTAINER: Derick Rethans <d.rethans@jdimedia.nl>
PRIMARY MAINTAINER: Derick Rethans <derick@derickrethans.nl>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
@@ -334,12 +357,11 @@ PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: muscat
PRIMARY MAINTAINER: Sam Liddicott <sam@ananova.com>
EXTENSION: msession
PRIMARY MAINTAINER Mark L. Woodward mlwmohawk@mohawksoft.com
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.5
COMMENT: Not tested against windows, only core API completed, rest under development
STATUS: Working/Experimental
COMMENT: Tested on Linux, should work on other UNIX platforms. Backend server code can compile under Windows.
-------------------------------------------------------------------------------
EXTENSION: openssl
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
@@ -347,11 +369,6 @@ MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: overload
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: pcre
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
@@ -373,24 +390,12 @@ PRIMARY MAINTAINER: Kristian K
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: printer
PRIMARY MAINTAINER: Daniel Beulshausen <daniel@php4win.de>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.4
COMMENT: Only for Win32
-------------------------------------------------------------------------------
EXTENSION: pspell
PRIMARY MAINTAINER: Vlad Krupin <phpdevel@echospace.com>
MAINTENANCE: Unknown
STATUS: Unknown
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: qtdom
MAINTENANCE: Unknown
STATUS: Experimental
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: readline
MAINTENANCE: Unknown
STATUS: Unknown
@@ -400,18 +405,6 @@ PRIMARY MAINTAINER: Kristian K
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: sablot
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Obsolete
STATUS: Experimental
SINCE: 4.0.3
-------------------------------------------------------------------------------
EXTENSION: satellite
PRIMARY MAINTAINER: David Eriksson <eriksson@php.net>
MAINTENANCE: Odd Fixes
STATUS: Experimental
SINCE: 4.0.3
-------------------------------------------------------------------------------
EXTENSION: session
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Maintained
@@ -434,11 +427,9 @@ MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: swf
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Orphaned
STATUS: Deprecated (Use the ming swf extension instead)
COMMENT: Only for Unix (won't change)
EXTENSION: sysvmsg
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: sysvsem
MAINTENANCE: Unknown
@@ -448,26 +439,6 @@ EXTENSION: sysvshm
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: vpopmail
MAINTENANCE: Unknown
STATUS: Experimental
SINCE: 4.0.5
-------------------------------------------------------------------------------
EXTENSION: wddx
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xml
PRIMARY MAINTAINER: Thies C. Arntzen <thies@thieso.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xslt
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
MAINTENANCE: Odd Fixes
STATUS: Working (mostly)
-------------------------------------------------------------------------------
EXTENSION: yaz
PRIMARY MAINTAINER: Adam Dickmeiss <adam@indexdata.dk>
MAINTENANCE: Maintained
@@ -483,10 +454,3 @@ PRIMARY MAINTAINER: Stefan Roehrich <sr@linux.de>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: zziplib
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
MAINTENANCE: Odd Fixes
STATUS: Working
SINCE: 4.0.5
-------------------------------------------------------------------------------
# iptc?
+17 -17
View File
@@ -1,4 +1,4 @@
Installation Instructions for PHP 4
Installation Instructions for PHP 5
-----------------------------------
STOP!
@@ -8,7 +8,7 @@ up to date instructions in the online manual, located here:
http://www.php.net/manual/en/install.apache.php
For Apache 2, instructions and up-to-date information regarding it's
For Apache 2, instructions and up-to-date information regarding its
support status, is available here:
http://www.php.net/manual/en/install.apache2.php
@@ -108,8 +108,8 @@ $ make
$ make install
$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
$ ./configure --prefix=/www --activate-module=src/modules/php5/libphp5.a
(The above line is correct! Yes, we know libphp5.a does not exist at this
stage. It isn't supposed to. It will be created.)
$ make
(you should now have an httpd binary which you can copy to your Apache bin dir if
@@ -226,7 +226,7 @@ Installing PHP can be done in four simple steps:
3b. Static Module Installation
For the Apache module version this will copy the appropriate files
to the src/modules/php4 directory in your Apache distribution if
to the src/modules/php5 directory in your Apache distribution if
you are using Apache 1.3.x. If you are still running Apache 1.2.x
these files will be copied directly to the main src directory.
@@ -235,7 +235,7 @@ Installing PHP can be done in four simple steps:
cd apache_1.3.x
./configure --prefix=/<path>/apache \
--activate-module=src/modules/php4/libphp4.a
--activate-module=src/modules/php5/libphp5.a
make
make install
@@ -248,29 +248,29 @@ Installing PHP can be done in four simple steps:
For Apache 1.3.x add:
AddModule modules/php4/libphp4.a
AddModule modules/php5/libphp5.a
For Apache 1.3.x don't do anything else. Just add this line and then
run "./Configure" followed by "make".
For Apache 1.2.x add:
Module php4_module mod_php4.o
Module php5_module mod_php5.o
For Apache 1.2.x you will also have to look in the libphp4.module file,
For Apache 1.2.x you will also have to look in the libphp5.module file,
which was copied to the src directory. The EXTRA_LIBS line in the Apache
Configuration file needs to be set to use the same libs as specified on
the LIBS line in libphp4.module. You also need to make sure to add
the LIBS line in libphp5.module. You also need to make sure to add
"-L." to the beginning of the EXTRA_LIBS line.
So, as an example, your EXTRA_LIBS line might look like:
EXTRA_LIBS=-L. -lphp4 -lgdbm -ldb -L/usr/local/mysql/lib -lmysqlclient
EXTRA_LIBS=-L. -lphp5 -lgdbm -ldb -L/usr/local/mysql/lib -lmysqlclient
NOTE: You should not enclose the EXTRA_LIBS line in double-quotes, as it
is in the libphp4.module file.
is in the libphp5.module file.
Also, look at the RULE_WANTHSREGEX setting in the libphp4.module file
Also, look at the RULE_WANTHSREGEX setting in the libphp5.module file
and set the WANTHSREGEX directive accordingly in your Configuration file.
This last step applies to versions of Apache prior to 1.3b3.
@@ -291,17 +291,17 @@ Installing PHP can be done in four simple steps:
enable the dynamic PHP module. To verify this, look for a line that
looks like this:
LoadModule php4_module libexec/libphp4.so
LoadModule php5_module libexec/libphp5.so
The actual path before the libphp4.so part might differ slightly. This
The actual path before the libphp5.so part might differ slightly. This
is likely fine. If you are paranoid you can examine the output from the
make install step to see where the libphp4.so file was actually put and
make install step to see where the libphp5.so file was actually put and
place the full path to this file on this LoadModule line.
If somewhere in your httpd.conf file you have a ClearModuleList line
then you also need this line:
AddModule mod_php4.c
AddModule mod_php5.c
And finally you need to tell Apache which file extension should trigger
PHP. You do this by creating a special mime type and associating it
+17 -13
View File
@@ -16,15 +16,15 @@ build-modules: $(PHP_MODULES)
libphp5.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
-@$(LIBTOOL) --silent --mode=install cp libphp5.la $(phptempdir)/libphp5.la >/dev/null 2>&1
libs/libphp5.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp5.so
install: $(install_targets)
install: $(all_targets) $(install_targets)
install-sapi: libphp5.la
@echo "Installing PHP SAPI module"
-@$(LIBTOOL) --silent --mode=install cp libphp5.la $(phptempdir)/libphp5.la >/dev/null 2>&1
install-sapi: $(OVERALL_TARGET)
@echo "Installing PHP SAPI module: $(PHP_SAPI)"
-@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
-@if test ! -r $(phptempdir)/libphp5.$(SHLIB_SUFFIX_NAME); then \
for i in 0.0.0 0.0 0; do \
@@ -38,10 +38,10 @@ install-sapi: libphp5.la
install-modules: build-modules
@test -d modules && \
$(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) && \
echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" && \
rm -f modules/*.la && \
$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) >/dev/null 2>&1 || true
$(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
@echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/"
@rm -f modules/*.la >/dev/null 2>&1
@$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
install-tester:
@echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
@@ -50,11 +50,15 @@ install-tester:
install-su: install-pear install-tester
test: $(SAPI_CLI_PATH)
@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)
test:
-@if test -x $(SAPI_CLI_PATH) && test ! -z $(SAPI_CLI_PATH); then \
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); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
clean:
find . -name \*.lo -o -name \*.o | xargs rm -f
+452 -39
View File
@@ -1,42 +1,463 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
? ? ??? 200?, Version 5.0.0
?? Jul 2004, PHP 5.0.0
- Updated PCRE to provide better error handling in certain cases. (Andrei)
- Changed doc comments to require a single white space after '/**'. (Marcus)
- Fixed bug #29019 (Database not closing). (Marcus)
- Fixed bug #29008 (array_combine() does not handle non-numeric/string keys).
(Ilia)
- Fixed bug #28999 (fixed behaviour of exec() to work as it did in 4.X). (Ilia)
- Fixed bug #28895 (ReflectionClass::isAbstract always returns false). (Marcus)
- Fixed bug #28868 (Internal filter registry not thread safe). (Sara)
- Fixed bug #28851 (call_user_func_array has typo in error message). (Marcus)
- Fixed bug #28831 (ArrayObject::offsetGet() does the work of offsetUnset()).
(Marcus)
- Fixed bug #28822 (ArrayObject::offsetExists() works inverted). (Marcus)
- Fixed bug #28789 (ReflectionProperty getValue() fails on public static
members). (Marcus)
- Fixed bug #28771 (Segfault when using xslt and clone). (Rob)
- Fixed bug #28751 (SoapServer does not call _autoload()). (Dmitry)
- Fixed bug #28739 (array_*diff() and array_*intersect() not clearing the fci
cache before work). (Andrey)
- Fixed bug #28721 (appendChild() and insertBefore() unset DOMText).(Rob)
- Fixed bug #28702 (SOAP does not parse WSDL service address correctly). (Dmitry)
- Fixed bug #28699 (Reflection api bugs). (Marcus)
- Fixed bug #28694 (ReflectionExtension::getFunctions() crashes PHP). (Marcus)
- Fixed bug #28512 (Allocate enough space to store MSSQL data). (Frank)
- Fixed bug #28325 (Circular references not properly serialised). (Moriyoshi)
- Fixed strip_tags() to correctly handle '\0' characters. (Stefan)
? ? ??? 2003, PHP 5 Beta 1
7 Jun 2004, PHP 5 Release Candidate 3
- Moved the PDFLib extension to PECL. (Wez)
- Added MySQL 4.1.2-alpha and 4.1.3-beta support to MySQLI extension. (Georg)
- Added support for dumping private/protected properties to var_dump().
(Andrey)
- Added count() support for COM arrays. (Wez)
- Added Firebird/InterBase UDF source that allows PHP functions to be called
from SQL (Ard)
- Removed Firebird/Interbase function ibase_timefmt() (Ard)
- Changed user error handler mechanism to relay to built-in error handler if it
returns false. (Andrei)
- Changed class type hints for function parameters to not allow the passing of
NULL values. (Andi)
- Changed tidy_node to tidyNode and removed tidy_exception. (John)
- Fixed ip2long() to return FALSE if an IP address passed to this function
is not valid. (Derick)
- Fixed memory leak in memory manager. (Andi)
- Fixed problem with exceptions returning from include(). (Dmitry)
- Fixed bug #28641 (Instance of Interface). (Marcus)
- Fixed bug #28430 (Extending mysqli class). (Georg)
- Fixed bug #28311 (Transparency detection code is off by 1).
(Ilia, pikeman at pikeman dot sytes dot net)
- Fixed bug #28304 (Missing bounds check inside imagefilter()). (Ilia)
- Fixed bug #28300 (Userspace stream/filter names forced to lowercase). (Sara)
- Fixed bug #28287 (stream_*_register() not calling __autoload()). (Sara)
- Fixed bug #28267 (php_image_filter_contrast calls gdImageBrightness). (Ilia)
- Fixed bug #28239 (No results returned on SOAP call, no error given). (Dmitry)
- Fixed bug #28205 (num_rows property for statement object). (Georg)
- Fixed bug #28161 (COM: Array style properties could not be accessed). (Wez)
- Fixed bug #28125 (ArrayObject leaks when accessing elements). (Marcus)
- Fixed bug #28100 (NULL parameter support for mysqli_ssl_set). (Georg)
- Fixed bug #28099 (ArrayObject doesn't implement ArrayAccess). (Marcus)
- Fixed bug #27929 (SPL: change visibility of ArrayIterator::__construct).
(Marcus)
- Fixed bug #27640 (memory leak of registered_zend_ini_directives). (Dmitry)
- Fixed bug #27063 (SPL: ArrayObject does not handle PPP correctly). (Marcus)
- Switch to using Zend Engine 2, which includes numerous engine level
improvements. A full list is available at
http://www.php.net/zend-engine-2.php.
25 Apr 2004, PHP 5 Release Candidate 2
- Implementing an interface/abstract method with the wrong prototype is now
a fatal error. (Zeev)
- Reimplemented zend.ze1_compatibility_mode to have better PHP 4 compliance.
(Dmitry, Andi)
- Under CLI, fclose() on php://stdin, php://stdout and php://stderr will now
close the real stream. Please update your CLI scripts to use STDIN, STDOUT
and STDERR constants instead of fopen()/fclose(). (Wez)
- Moved yaz extension to PECL. (Wez)
- Added pty support to proc_open(). (Wez)
- Added possibility to check in which extension an internal class was defined
in using reflection API. (Marcus)
- Changed tidy error handling to no longer use exceptions and
renamed the "error_buf" property to errorBuffer. (John)
- Changed class and method names to use studlyCaps convention. (Marcus)
- Changed language parser to throw errors when a non-empty signature is used in
a destructor definition. (Marcus)
- Changed HTTP file uploads not to throw E_WARNINGs and E_NOTICEs. The error
value in the $_FILES global should be used for error handling. (Derick)
- Changed __construct() to always take precedence over old style constructor.
(Dmitry)
- Fixed handling of return values from storred procedures in mssql_execute()
with multiple result sets returned. (Frank)
- Fixed bug #28096 (stream_socket_accept() doesn't work with ssl). (Wez)
- Fixed bug #28007 (compile mssql extension with old versions of FreeTDS
fails). (Frank)
- Fixed bug #27997 (SPL: Crash with getInnerIterator()). (Marcus)
- Fixed bug #27974 (COM doesn't pass array parameters). (Wez)
- Fixed bug #27928 (sqlite incorrectly handles invalid filenames). (Ilia)
- Fixed bug $27923 (in some cases using foreach() to iterate over values
led to a false error message about the key being a reference). (Adam)
- Fixed bug #27865 (STDIN, STDOUT, STDERR are dup()d under CLI). (Wez)
- Fixed bug #27821 (xml_parse() segfaults when xml_set_object() is called from
class method). (Andi, Rob)
- Fixed bug #27742 (WDSL SOAP Parsing Schema bug). (Dmitry)
- Fixed bug #27722 (Segfault on schema without targetNamespace). (Dmitry)
- Fixed bug #27719 (mktime issues on and around DST changeover). (Rasmus)
- Fixed bug #27681 (soap extension fails without HAVE_TM_GMTOFF). (Dmitry)
- Fixed bug #27641 (Object cloning in ze1_compatibility_mode was reimplemented)
(Dmitry, Andi)
- Fixed bug #27628 (Simplify the process of making a POST request via stream
context). (Ilia)
- Fixed bug #27619 (filters not applied to pre-buffered stream data). (Sara)
- Fixed bug #27519 (Reflection_Function constructor crashes with non-existant
function's name). (Marcus)
- Fixed bug #27469 (serialize() objects of incomplete class). (Dmitry)
- Fixed bug #27457 (handling of numeric indexes in strtr()). (Dmitry)
- Fixed bug #27397 (debug_backtrace() not showing function arguments). (Zeev)
- Fixed bug #27283 (The last catch statement was sometimes skipped). (Andi)
- Fixed bug #26441 (When __set() returned a value it corrupted it). (Andi)
- Fixed bug #19749 (shouldn't mmap() files larger than memory_limit). (Wez)
- The SQLite (http://www.hwaci.com/sw/sqlite/) extension is now bundled and
enabled by default. (Wez, Marcus, Tal)
18 March 2004, PHP 5 Release Candidate 1
- Fixed numerous bugs with the just-in-time auto-global initialization, that
could cause $_SERVER, $argv/$argc and other variables not to work properly.
(Zeev)
- Fixed data corruption with constant assignments to object properties. (Zeev)
- Changed __toString() to be called automatically only with print and echo
statements. (Andi)
- Replaced the exec_finished hook by the zend_post_deactive hook for
extensions. The new hook will be run after the symbol table and destructors
are run. (Derick)
- Fixed possible crash when internal get_method() is not defined. (Andi)
- Fixed calling methods using call_user_func() in conjunction with
the array("Class","Method") syntax to use the scope of the PHP user function.
(Dmitry)
- Fixed php-cgi to not ignore command-line switches when run in a web context.
This fixes our test cases allowing INI with GET sections to work. (Rasmus)
- Fixed getopt() so it works without $_SERVER. (Rasmus, bfrance)
- Added support for PHP 4 style object comparisons which is enabled in
ze1_compatiblity_mode. (Andi)
- Added support for PHP 4 style object conversion to long, double, and boolean
values which is enabled in ze1_compatibility_mode. (Andi, Stas)
- Allow object oriented extensions to overload comparison functions and other
operations. Solves problems using SimpleXML values. (Andi, Zeev)
- Fixed crash when accessing a class constant with a value which in turn is
also a constant. (Dmitry)
- Fixed object's truth value conversion. It is always true unless
ze1_compatibility_mode is on in which it behaves like in PHP 4. (Stas)
- Improved out of memory handling in new memory manager. (Stas)
- Fixed crash when an object references itself during destructor call. (Andi)
- Fixed crash in foreach() when iterating over object properties or a method's
return values. (Andi)
- Fixed crash when an exception is thrown in a destructor. Such exceptions are
now ignored as destruction happens out of context at no definite time. (Andi)
- Fixed crashes in exception handling. (Dmitry, Andi)
- Changed prototype checks so that they aren't done on constructors. (Andi)
- Changed prototype checks to output an E_STRICT message instead of
an E_COMPILE_ERROR. (Andi)
- Changed Iterator::has_more() to Iterator::valid(). (Marcus)
- Upgraded bundled oniguruma library to version 2.2.2. (Rui, Moriyoshi)
- Added mb_list_encoding() to return an array with all mbstring supported
encodings. (Derick)
- Added support for more ISO8601 datetime formats in strtotime(). (Moriyoshi)
. Timezone specifier (ex. "20040301T02:00:00+19:00")
. Week specifier (ex. "1997W021")
- Renamed php.ini option "zend2.implicit_clone" to
"zend.ze1_compatibility_mode" as it doesn't only affect implicit cloning.
(Andi, Zeev)
- Methods that override parent methods are now subject to prototype checking,
and have to be compatible with the method they're overriding - this check is
disabled in compatibility mode. (Andi, Zeev)
- Fixed crash in php_ini_scanned_files() when no additional INI files were
actually parsed. (Jon)
- Fixed bug in gdImageFilledRectangle in the bundled GD library, that required
x1 < x2 and y1 < y2 for coordinates. (Derick)
- Fixed crash with foreach() and temporary objects($obj->method()->a ...) where
method returns a non-referenced object. (Andi, Zeev)
- Fixed problem preventing startup errors from being displayed. (Marcus)
- Fixed start-up problem if both SPL and SimpleXML were enabled. The double
initialization of apache 1.3 was causing problems here. (Marcus, Derick)
- Fixed bug #27606 (Expression must be a modifiable lvalue compiler error).
(Derick)
- Fixed bug #27597 (pg_fetch_array not returning false). (Marcus)
- Fixed bug #27586 (ArrayObject::getIterator crashes with [] assignment).
(Marcus)
- Fixed bug #27537 (Objects pointing to each other segfaults). (Dmitry)
- Fixed bug #27535 (Problem with object freeing mechanism). (Dmitry)
- Fixed bug #27504 (Visibility bugs in call_user_function()). (Dmitry)
- Fixed bug #27338 (memory leak inside tsrm_virtual_cwd.c on win32). (Ilia)
- Fixed bug #27291 (get_browser matches browscap.ini patterns incorrectly).
(Jay)
- Fixed bug #27287 (wddx segfaults during deserialization). (Moriyoshi)
- Fixed bug #27263 (session extension crashes when unserializing referenced
values / objects). (Moriyoshi)
- Fixed bug #27237 (Working with simplexml crashes apache2). (Rob)
- Fixed bug #27227 (Mixed case class names causes Fatal Error in Constructor
call). (Marcus)
- Fixed bug #27125 (strval() doesn't work for objects with __toString()).
(Marcus)
- Fixed bug #27123 (Fix crash caused by bug in get_object_vars()). (Andi)
- Fixed bug #26677 (mbstring compile errors with IRIX compiler).
(K.Kosako <kosako at sofnec dot co dot jp>, Rui, Moriyoshi)
- Fixed bug #26206 (register_long_arrays breaks superglobals). (Zeev)
- Fixed bug #25724 (argv and argc not defined). (Zeev)
- Improved the speed of internal functions that use callbacks by 40% due to a
new internal fast_call_user_function() function. (Sterling)
12 Feb 2004, PHP 5 Beta 4
- Changed exceptions so that they must now inherit from the built-in Exception
class. This allows for a general catch(Exception $e) statement to catch all
exceptions. (Andi, Zeev)
- Added SPL extension. (Marcus, Derick)
- Added checks for invalid characters in a cookie name and cookie data
into set[raw]cookie(). (Brian)
- Added support for ++ and += (and similar) to SimpleXML. (Andi, Zeev)
- Added infrastructure for ++ and += (and similar) to object overloading
modules. (Andi, Zeev)
- Added error message when trying to re-assign to $this variable. (Zeev, Andi)
- Added support for an interface to extend another interface. (Zeev)
- Added new pspell functions: (Brian)
. pspell_config_dict_dir()
. pspell_config_data_dir()
- Added new Interbase functions: (Ard)
. ibase_service_attach() and ibase_service_detach().
. ibase_backup() and ibase_restore().
. ibase_maintain_db(), ibase_db_info() and ibase_server_info().
- Added context option "http"/"request_fulluri" to send entire URI in request
which is required format for some proxies. (Sara)
- Added optional third parameter 'strict' to array_keys(). (Andrey)
- Added stream_lock() method to userspace streams interface. (Hartmut, Wez)
- Added xsltprocessor->registerPHPFunctions(). (Christian)
- Readded support for using classes before they are declared according to
the behavior in PHP 4. This won't work with classes who are using PHP 5
features such as interfaces. (Zeev, Andi)
- Completely overhauled SimpleXML extension. (Marcus, Rob, Sterling)
- Upgraded bundled SQLite library to version 2.8.11. (Ilia, Wez)
- Improved destructor implementation to always call destructors on clean
shutdown. An order of destruction is not guaranteed. (Zeev, Andi)
- Redesigned exception support. This fixes many bugs in the previous design
such as nested try's and problems with overloaded extensions. (Zeev, Andi)
- Redesigned clone by adding a clone keyword (clone $obj) and copying all
properties before __clone() is called. Also allows calling parent __clone
function by using parent::__clone(). (Zeev, Andi)
- Fixed interfaces to check for function return-by-reference equality when
inheriting and implementing interfaces. (Andi, Zeev)
- Fixed foreach() to respect property visibility. (Marcus)
- Fixed problem with parse error in include() file not stopping PHP's
execution. (Ilia)
- Fixed var_export() to show public, protected and private modifiers properly.
(Derick)
- Fixed problems with longlong values in mysqli. (Georg)
- Fixed class name case preserving of user defined classes. (Marcus)
- Fixed bug #27145 (Unmangle private/protected property names before printing
them inside error messages). (Ilia)
- Fixed bug #27103 (preg_split('//u') incorrectly splits UTF-8 strings into
octets). (Moriyoshi)
- Fixed bug #27042 (SPL: SeekableIterator seek() broken). (Marcus)
- Fixed bug #27008 (Every class method can be called as static). (Marcus)
- Fixed bug #26938 (exec() has problems reading long lines).
(Ilia, runekl[at]opoint[dot]com
- Fixed bug #26947 (ext/dom: Crash when using DomDocument::getElementById()).
(Christian)
- Fixed bug #26911 (crash in sqlite extension when fetching data from empty
queries). (Ilia)
- Fixed bug #26844 (ext/mime_magic: magic file validation broken). (Jani)
- Fixed bug #26819 (http_build_query() crashes on NULL output). (Ilia)
- Fixed bug #26817 (http_build_query() does not handle private & protected
object properties correctly). (Ilia)
- Fixed bug #26815 (foreach of (DOM) childnodes crashes when Xinclude is used).
(Rob)
- Fixed bug #26796 (SQLite causes crashes with other extensions *connect()
calls). (Marcus)
- Fixed bug #26762 (unserialize() produces lowercase classnames). (Marcus)
- Fixed bug #26743 (getElementsByTagName doesn't work properly). (Rob)
- Fixed bug #26736 (__autoload not invoked for parent classes). (Marcus)
- Fixed bug #26723 (domNode::appendChild() changes child node namespace). (Rob)
- Fixed bug #26697 (calling class_exists() on a nonexistent class in __autoload
results in segfault). (Marcus)
- Fixed bug #26696 (string index in a switch() crashes with multiple matches).
(Andi)
- Fixed bug #26695 (Reflection API does not recognize mixed-case class hints).
(Marcus)
- Fixed bug #26690 (make xsltProcessor->transformToUri use streams wrappers).
(Ilia)
- Fixed bug #26680 (Added version check in mysqli_report_index). (Georg)
- Fixed bug #26675 (Segfault on ArrayAccess use). (Marcus)
- Fixed bug #26640 (__autoload() not invoked by Reflection classes). (Jani)
- Fixed bug #26543 (call_user_func() broken for self, parent). (Stanislav)
- Fixed bug #26077 (memory leak when new() result is not assigned and no
constructor is defined). (Stanislav)
- Fixed bug #26065 (Crash when nesting classes). (Marcus)
- Fixed bug #25816 (disallow arrays in class constants). (Stanislav)
- Fixed bug #25329 (sqlite_create_function with method and reference to $this).
(Marcus)
- Fixed bug #25038 (call_user_func() issues a warning if function throws an
exception). (Marcus)
- Fixed bug #24608 (__set not triggered when overloading with array).
(Stanislav)
- Fixed bug #24243 (enabling browscap causes segfault). (Wez)
- Completely Overhauled XML support
. Brand new simplexml extension (Sterling)
. New DOM extension (Rob, Chregu, Marcus)
. New XSL extension (Chregu, Rob)
. Moved the old DOM-XML and XSLT extensions to PECL (James, Sterling)
. ext/xml can now use both libxml2 and expat to parse XML (Sterling)
. Removed bundled expat (Jani)
21 Dec 2003, PHP 5 Beta 3
- Bundled new tidy extension (John, Wez)
- Upgraded PCRE library to version 4.5. (Andrei)
- Dropped Windows 95 support. (Andi)
- Moved extensions to PECL:
. ext/crack (Jani, Derick)
. ext/db (Jani, Derick)
. ext/mcal (Jani, Derick)
. ext/qtdom (Jani, Derick)
. ext/notes (Wez)
- Added 'c' modifier to date() which returns the date in the ISO 8601 format.
(Derick, Manuzhai)
- Added an optional parameter to microtime() to get the time as float. (Andrey)
- Added MacRoman encoding support to htmlentities(). (Derick, Marcus Bointon)
- Added possibility to call PHP functions as XSLT-functions. (Christian)
- Added possibility to prevent PHP from registering variables when input filter
support is used. (Derick)
- Added iconv stream filter (convert.iconv.*). (Moriyoshi)
- Added EXSLT support in ext/xsl. (Christian)
- Added qdbm handler for dba extension. (mg at iceni dot pl, Marcus)
- Added new functions:
. dba_key_split() to split inifile keys in an array. (Marcus)
. time_nanosleep() signal safe sleep (Magnus, Ilia)
. headers_list(). (Sara)
. php_strip_whitespace(). strip whitespace & comments from a script. (Ilia)
. php_check_syntax(). check php script for parse errors. (Ilia)
. image_type_to_extension(). return extension based on image type. (Ilia)
. stream_socket_sendto() and stream_socket_recvfrom(). (Wez)
. iconv_mime_decode_headers(). (Moriyoshi)
. get_declared_interfaces(). (Andrey, Marcus)
. sqlite_fetch_column_types(). (Ilia)
- Added proxy support to http:// wrapper. (Sara)
- Added rename(), rmdir() and mkdir() support to userstreams. (Sara)
- Added rename(), rmdir() and mkdir() support to ftp:// wrapper. (Sara)
- Changed rename(), rmdir() and mkdir() to be routed via streams API. (Sara)
- Changed stat() and family to be routed via streams API. (Sara)
- Fixed include_once() / require_once() on Windows to honor case-insensitivity
of files. (Andi)
- Fixed get_declared_classes() to return only classes. (Andrey, Marcus)
- Fixed __autoload() to preserve case of the passed class name. (Andi)
- Fixed bug #26615 () (runekl at opoint dot com, Derick)
- Fixed bug #26591 ("__autoload threw an exception" during an uncaught).
(Marcus)
- Fixed bug #26534 (stream_get_meta_data() -> Access Violation). (Wez)
- Fixed bug #26528 (HTML entities are not being decoded by
xml_parse()/xml_parse_into_struct()). (Ilia)
- Fixed bug #26182 (Object properties created redundantly). (Andi)
- Fixed bug #26156 (REPLACE_ZVAL_VALUE works on uninit stack-based zvals).
(Moriyoshi)
- Fixed bug #26083 (Non-working write support in ext/dom). (Ilia)
- Fixed bug #26072 (--disable-libxml does not work). (Jani)
- Fixed bug #26001 (serialize crashes when accessing an overloaded object that
has no properties (NULL hashtable)). (Wez)
- Fixed bug #25664 (COM crashes when calling a Delphi implementations of
ITypeInfo). (Wez)
- Fixed bug #24837 (Incorrect behaviour of PPP using foreach). (Marcus)
- Fixed bug #24693 (Allow session.use_trans_sid to be enabled/disabled from
inside the script). (Ilia)
- Fixed bug #24394 (Serializing cross-referenced objects causes segfault).
(Moriyoshi)
30 Oct 2003, PHP 5 Beta 2
- Lots and lots of changes in the Zend Engine 2 since beta 1:
. Added Iterators
. Improved memory manager
. Added Reflection API
. Removed the not so working namespaces support
. Removed support for expressions within constant declarations.
. You can read about most changes in ZEND_CHANGES under the Zend directory.
- Improved the DBX extension: (Marc)
. Added DBX_RESULT_UNBUFFERED flag for dbx_query().
. Added dbx_fetch_row()
. Added SQLite support.
- Improved the Interbase extension: (Ard Biesheuvel)
. Added support for multiple databases into ibase_trans()
. Added support for CREATE DATABASE, SET TRANSACTION and EXECUTE PROCEDURE
statements into ibase_query()
. Added ability to bind PHP arrays to native Interbase arrays
. Added ibase_commit_ret() and ibase_rollback_ret()
. Added ibase_drop_db()
. Added ibase_gen_id()
. Added ibase_name_result()
. Added ibase_errcode()
. Added ibase_affected_rows() and ibase_num_params()
. Added ibase_param_info()
. Added ibase_wait_event()
. Added ibase_set_event_handler() and ibase_free_event_handler()
- Added new COM extension with integrated .Net support. (Wez)
- Added new functions:
. setrawcookie(). (Brian)
. pg_version(). (Marcus)
. dbase_get_header_info(). (Zak)
. snmp_read_mib(). (Jani)
. http_build_query(). (Sara)
. ftp_alloc(). (Sara)
. array_udiff(). (Andrey)
. array_udiff_assoc(). (Andrey)
. array_udiff_uassoc(). (Andrey)
. array_diff_uassoc(). (Andrey)
. convert_uuencode(). (Ilia)
. convert_uudecode(). (Ilia)
. substr_compare(). (Ilia)
. pcntl_wait(). (GeorgeS)
- Added "resume_pos" context option to "ftp://" wrapper. (Sara)
- Added optional parameter to OCIWriteTemporaryLob() to specify the type of LOB
(Patch by Novicky Marek <novicky@aarongroup.cz>). (Thies)
- Added reflection API. (Andrei, George, Timm)
- Changed length parameter in fgetcsv() to be optional. (Moriyoshi)
- Fixed IPv6 support in MacOSX Panther. (Dan, Marko)
- Fixed fgetcsv() to correctly handle international (non-ascii) characters.
(Moriyoshi)
- Fixed support for <![CDATA[]]> fields within XML documents in ext/xml.
(Sterling)
- Fixed visibility of __construct and __clone. (Marcus)
- Fixed bug #25756 (SimpleXML's validate_schema_file() broken). (Moriyoshi)
- Fixed bug #25581 (getimagesize() returns incorrect values on bitmap (os2)
files). (Marcus)
- Fixed bug #25494 (array_merge*() allows non-arrays as argument). (Jay)
- Fixed bug #24766 (strange result array from unpack()). (Moriyoshi)
- Fixed bug #24729 ($obj = new $className; causes crash when $className is not
set). (Marcus)
- Fixed bug #24565 (cannot read array elements received via $_REQUEST). (Zeev)
- Fixed bug #24445 (get_parent_class() returns different values).
(Sterling, Stanislav)
- Fixed bug #24403 (preg_replace() problem: Using $this when not in object
context). (Zeev)
- Fixed bug #24399 (PEAR DB isError crash [instanceof_function fault?]).
(Sterling, Marcus)
- Fixed bug #24396 (foreach ($k=>$v), the key $k is missing). (Zeev)
- Fixed bug #24279 (__get() crash when no value is returned). (Ilia)
- Fixed bug #22367 (undefined variable has a value). (Zeev)
- Fixed bug #19859 (allow fast_call_user_function to support __call).
(Stanislav)
- Fixed bug #17997 (Warning when switch() and reference are combined). (Zeev)
- Fixed bug #17988 (strtotime failed to parse postgresql timestamp). (Derick)
29 Jun 2003, PHP 5 Beta 1
- Removed the bundled MySQL client library. (Sterling)
- Switched to Zend Engine 2, which includes numerous engine level improvements.
A full list is available at http://www.php.net/zend-engine-2.php.
- Added SQLite (http://www.hwaci.com/sw/sqlite/) extension: (Wez, Marcus, Tal)
. Includes bundled SQLite library
. Enabled by default
- Completely Overhauled XML support:
. New simplexml extension. (Sterling)
. New DOM extension. (Rob, Chregu, Marcus)
. New XSL extension. (Chregu, Rob)
. Moved the old DOM-XML and XSLT extensions to PECL. (James, Sterling)
. ext/xml can now use either libxml2 or expat to parse XML. (Sterling)
. Removed bundled expat library. (Jani)
- New php.ini options:
. "session.hash_function" and "session.hash_bits_per_character". (Sascha)
. "mail.force_extra_paramaters". (Derick)
. "register_long_arrays". (Zeev)
- Improved the speed of internal functions that use callbacks by 40% due to a
new internal fast_call_user_function() function. (Sterling)
- Improved the streams support: (Wez)
. Improved performance of readfile(), fpassthru() and some internal streams
operations under Win32.
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept a client connection.
. stream_socket_get_name() - Get local or remote name of socket.
. stream_copy_to_stream()
. stream_get_line() - Reads either the specified number of bytes or until
. stream_get_line() - Reads either the specified number of bytes or until
the ending string is found. (Ilia)
. Added context property to userspace streams object. (Sara)
. Added generic crypto interface for streams.
@@ -46,23 +467,20 @@ PHP NEWS
all platforms.
. Added 'string.base64' stream filter. (Moriyoshi)
. Renamed stream_register_wrapper() to stream_wrapper_register(). (Derick)
- Improved the GD extension: (Pierre-Alain Joye, Ilia)
. imagefilter() - Apply different filters to image.
(Only available with bundled GD library)
. Antialiased drawing support:
o imageantialias() - (de)active antialias
o imageline() and imagepolygon() antialias support
- Changed the length parameter in fgetss() to be optional. (Moriyoshi)
- Changed ini parser to allow for handling of quoted multi-line values. (Ilia)
- Changed get_extension_funcs() to return list of the built-in Zend Engine
- Changed get_extension_funcs() to return list of the built-in Zend Engine
functions if "zend" is specified as the module name. (Ilia)
- Changed array_search() to accept also objects as a needle. (Moriyoshi)
- Changed ext/mcrypt to require libmcrypt version 2.5.6 or greater. (Derick)
- Changed uniqid() parameters to be optional and allow any prefix length.
(Marcus)
- Added new iconv functions. (Moriyoshi)
. iconv_strlen()
. iconv_substr()
@@ -70,7 +488,6 @@ PHP NEWS
. iconv_strrpos()
. iconv_mime_decode()
. iconv_mime_encode()
- Added misc. new functions:
. ldap_sasl_bind(). (peter_c60@hotmail.com, Jani)
. imap_getacl(). (Dan, Holger Burbach)
@@ -81,11 +498,10 @@ PHP NEWS
. strpbrk() - Searches a string for a list of characters. (Ilia)
. get_headers() - Returns headers sent by the server of the specified URL.
(Ilia)
. str_split() - Breaks down a string into an array of elements based on
. str_split() - Breaks down a string into an array of elements based on
length. (Ilia)
. array_walk_recursive(). (Ilia)
. array_combine(). (Andrey)
- Added optional parameter to get_browser() to make it return an array. (Jay)
- Added optional parameter to openssl_sign() to specify the hashing algorithm.
(scott@planetscott.ca, Derick)
@@ -95,27 +511,24 @@ PHP NEWS
(Ilia)
- Added optional parameter to file() which makes the result array not contain
the line endings and to skip empty lines. (Ilia)
- Added new range() functionality: (Ilia)
. Support for float modifier.
. Detection of numeric values inside strings passed as high & low.
. Proper handle the situations where high == low.
- Added new range() functionality:
. Support for float modifier. (Ilia)
. Detection of numeric values inside strings passed as high & low. (Ilia)
. Proper handle the situations where high == low. (Ilia)
. Added an optional step parameter. (Jon)
- Added encoding detection feature for expat XML parser.
(Adam Dickmeiss, Moriyoshi)
- Added missing multibyte (unicode) support and numeric entity support to
html_entity_decode(). (Moriyoshi)
- Added IPv6 support to ext/sockets. (Sara)
- Added "ftp://" wrapper support to opendir(), stat() and unlink(). (Sara)
- Added context options 'method', 'header' and 'content' for "http://" fopen
- Added context options 'method', 'header' and 'content' for "http://" fopen
wrapper. (Sara)
- Added input filter support. See README.input_filter for more info. (Rasmus)
- Added a replace count for str_[i]replace(), see bug #8218. (Sara)
- Fixed is_executable() to be available also on Windows. (Shane)
- Fixed dirname() and strip_tags() to be binary-safe. (Moriyoshi)
- Fixed bug #24098 (crash in pathinfo()). (Ilia)
- Fixed bug #21985 and #22064 (various mb_send_mail() issues). (Moriyoshi)
- Fixed bug #21600 (Assign by reference function call changes variable
- Fixed bug #21600 (Assign by reference function call changes variable
contents). (Zeev)
### Add everything that MIGHT get merged to some PHP 4 branch
### (before PHP 5.0.0 is released), below.
+4 -3
View File
@@ -1,6 +1,7 @@
(NOTE: you may also want to take a look at scripts/ext_skel_ng,
a PHP-only alternative for this script thats supposed
to replace it completely in the long run ...)
(NOTE: you may also want to take a look at the pear package
PECL_Gen, a PHP-only alternative for this script that
supports way more extension writing tasks and is
supposed to replace ext_skel completely in the long run ...)
WHAT IT IS
+107
View File
@@ -0,0 +1,107 @@
1. strrpos() and strripos() now use the entire string as a needle. Be aware
that the existing scripts may no longer work as you expect.
EX :
<?php
var_dump(strrpos("ABCDEF","DEF"));
var_dump(strrpos("ABCDEF","DAF"));
?>
Will give you different results. The former returns 3 while the latter
returns false rather than the position of the last occurrence of 'D'.
The same applies to strripos().
2. Illegal use of string offsets causes E_ERROR instead of E_WARNING.
EX :
<?php
$a = "foo";
unset($a[0][1][2]);
?>
Fatal error: Cannot use string offset as an array in ... on line 1
3. array_merge() was changed to accept only arrays. If a non-array variable is
passed, a E_WARNING will be thrown for every such parameter. Be careful
because your code may start emitting E_WARNING out of the blue.
4. Be careful when porting from ext/mysql to ext/mysqli. The following
functions return NULL when no more data is available in the result set
(ext/mysql's functions return FALSE).
- mysqli_fetch_row()
- mysqli_fetch_array()
- mysqli_fetch_assoc()
5. PATH_TRANSLATED server variable is no longer set implicitly under
Apache2 SAPI in contrast to the situation in PHP 4, where it is set to the
same value as the SCRIPT_FILENAME server variable when it is not populated
by Apache. This change was made to comply with the CGI specification.
Please refer to bug #23610 for further information.
6. Starting PHP 5.0.0 the T_ML_CONSTANT constant is no longer defined by the
ext/tokenizer extension. If error_reporting is set to E_ALL notices will
be produced. Instead of T_ML_CONSTANT for /* */ the T_COMMENT constant
is used, thus both // and /* */ are resolved as the T_COMMENT constant.
However the PHPDoc style comments /** */ ,which starting PHP 5 are parsed
by PHP, are recongnized as T_DOC_COMMENT.
7. $_SERVER should be populated with argc and argv if variables_order
includes "S". If you have specifically configured your system to not
create $_SERVER, then of course it shouldn't be there. The change was to
always make argc and argv available in the CLI version regardless of the
variables_order setting. As in, the CLI version will now always populate
the global $argc and $argv variables.
8. In some cases classes must be declared before used. It only happens only
if some of the new features of PHP 5 are used. Otherwise the behaviour is
the old.
Example 1 (works with no errors):
<?php
$a = new a();
class a {
}
?>
Example 2 (throws an error):
<?php
$a = new a();
interface b{
}
class a implements b {
}
?>
Output (example 2) :
Fatal error: Class 'a' not found in /tmp/cl.php on line 2
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.
Example :
<?php
class FooBar {
}
$a = new FooBar();
var_dump(get_class($a));
?>
Output (PHP 4):
string(6) "foobar"
Output (PHP 5):
string(6) "FooBar"
----------------------------------------------------------------------
Example code that will break :
//....
function someMethod($p) {
if (get_class($p) != 'helpingclass') {
return FALSE;
}
//...
}
//...
Possible solution is to search for get_class() in all your scripts and
use strtolower().
+4 -4
View File
@@ -37,7 +37,7 @@ Note though that you might get little response, if your patch is
too hard to review.
If you would like change/add many lines, it is better to ask module
maintainer and/or php-dev@lists.php.net, or pear-dev@lists.php.net if
maintainer and/or internals@lists.php.net, or pear-dev@lists.php.net if
you are patching PEAR. Official module maintainers can be found in
EXTENSIONS file in PHP source.
@@ -79,7 +79,7 @@ Check list for submitting patch
Where to send your patch?
-------------------------
If you are patching C source, send the patch to php-dev@lists.php.net.
If you are patching C source, send the patch to internals@lists.php.net.
If you are patching a module, you should also send the patch to the
maintainer. Official module maintainers are listed in EXTENSION file
in source.
@@ -90,7 +90,7 @@ Please add the prefix "[PATCH]" to your email subject and make sure
to include the patch as a MIME attachment even if it is short.
NOTE: only MIME attachments of type 'text/*' are accepted. The
easiest way to acclomplish this, is to make the extension
easiest way to accomplish this, is to make the extension
'.txt'.
Test scripts should be included in the same email.
@@ -100,7 +100,7 @@ Finally, add the bug Id(s) which can be closed by your patch, if any.
What happens after you submit your patch
--------------------------------------
----------------------------------------
If your patch is easy to review and has obviously no side-effects,
it might take up to a few hours until someone commits it.
+12 -3
View File
@@ -1,11 +1,20 @@
[IMPORTANT NOTICE]
------------------
Please do not ask developers why some or all tests are failing in
your environment! Let us know if you find why it fails. Thank you.
Failed tests usualy indicate a problem with your local system setup
and not within PHP itself (at least for official PHP release versions).
You may decide to automaticaly submit a test summary to our QA workflow
at the end of a test run.
Please do *not* submit a failed test as a bug or ask for help on why
it failed on your system without providing substantial backup information
on *why* the test failed on your special setup. Thank you :-)
[Testing Basics]
----------------
The easiest way to test your PHP build is to run "make test" from the
command line after successfully compiling. This will run the complete
tests for all enabled functionalities and extensions using the PHP
CLI binary.
To execute test scripts, you must build PHP with some SAPI, then you
type "make test" to execute all or some test scripts saved under
"tests" directory under source root directory.
@@ -108,7 +117,7 @@ Example script to be run by cron(1):
========== qa-test.sh =============
#!/bin/sh
CO_DIR=$HOME/cvs/php4
CO_DIR=$HOME/cvs/php5
MYMAIL=qa-test@domain.com
TMPDIR=/var/tmp
TODAY=`date +"%Y%m%d"`
+1 -1
View File
@@ -108,7 +108,7 @@ module, program, etc).
For example for APXS:
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php4.c php_apache.c)
PHP_SELECT_SAPI(apache, shared, sapi_apache.c mod_php5.c php_apache.c)
+174
View File
@@ -0,0 +1,174 @@
The Win32 Build System.
$Id$
Wez Furlong <wez@thebrainroom.com>
If you need help with the build system, send mail to
internals@lists.php.net; please don't email me directly.
===========================================================
Contents:
1. How to build PHP under windows
a. Requirements
b. Opening a command prompt
c. Generating configure.js
d. Configuring
e. Building
f. Cleaning up
g. Running the test suite
h. snapshot building
2. How to write config.w32 files
x. to be written.
===========================================================
1. How to build PHP under windows
a. Requirements
You need:
- Windows Scripting Host (cscript.exe)
- Microsoft Build Tools from:
Microsoft Visual Studio (VC6) or later
You also need:
- bindlib_w32 [http://www.php.net/extra/bindlib_w32.zip]
- win32build [http://www.php.net/extra/win32build.zip]
b. Opening the Build Environment Command Prompt:
- Using Visual Studio (VC6)
1. Install it
2. If you have a VC++ Command Prompt icon on your start menu,
click on it to get a Command Prompt with the env vars
set up correctly.
If not, create a new shortcut and set the Target to:
%comspec% /k "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
You might also want to set the prompt to start in
a convenient location (such as the root of your
PHP source checkout).
- Using Visual Studio .Net
1. Install it.
2. Under the Visual Studio .Net Tools sub menu of your start
menu, you should have a Visual Studio .Net Command Prompt
icon. If not, create a new shortcut and set the Target to:
%comspec% /k "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat"
You might also want to set the prompt to start in
a convenient location (such as the root of your
PHP source checkout).
- Using the Platform SDK tools
1. Download the Platform SDK:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
- You need the Core SDK, which is approx 200MB to download
and requires approx 500MB of disk space.
- The other components of the SDK are not required by PHP
- You might be able to reduce the download size by downloading
the installer control component first and then selecting
only the Build Environment (around 30MB), but I haven't
tried this.
** Note: it seems that MS don't include the 32 bit
build tools in the platform SDK any longer, so
you will probably have very limited luck if you
don't also have VC++ or VS.Net already installed.
2. Once installed, you will have an icon on your start menu
that will launch the build environment; the latest SDK's
install a number of different versions of this; you probably
want to choose the Windows 2000 Retail build environment.
Clicking on this will open a command prompt with its Path,
Include and Lib env vars set to point to the build tools
and win32 headers.
c. Generating configure
Change directory to where you have your PHP 5 sources.
Run buildconf.bat.
d. Configuring
cscript /nologo configure.js --help
Will give you a list of configuration options; these will
have the form:
--enable-foo or --disable-foo or --with-foo or --without-foo.
--enable-foo will turn something on, and is equivalent to
specifying --enable-foo=yes
--disable-foo will turn something off, and is equivalent to
specifying --enable-foo=no
--enable-foo=shared will attempt to build that feature as
a shared, dynamically loadable module.
Sometimes a configure option needs additional information
about where to find headers and libraries; quite often
you can specify --enable-foo=option where option could be
the path to where to find those files. If you want to
specify a parameter and build it as shared, you can use
this syntax instead: --enable-foo=shared,option
The same rules all apply to --with-foo and --without-foo;
the only difference is the way the options are named;
the convention is that --enable-foo means that you are
switching on something that comes with PHP, whereas
--with-foo means that you want to build in something
external to PHP.
e. Building
Once you have successfully configured your build (make
sure you read the output from the command to make sure
it worked correctly), you can build the code; simply type
"nmake" at the command prompt, and it will build everthing
you asked for.
Once the build has completed, you will find your binaries
in the build dir determined by configure; this is typically
Release_TS for release builds or Debug_TS for debug builds.
If you build a non-thread-safe build, it will use Release
or Debug to store the files. Also in this build dir you
will find sub directories for each module that went into
your PHP build. The files you'll want to keep are the
.exe and .dll files directly in your build dir.
f. Cleaning Up
You can automatically delete everything that was built
by running "nmake clean". This will delete everything
that was put there when you ran nmake, including the
.exe and .dll files.
g. Running the test suite
You can verify that your build is working well by running
the regression test suite. You do this by typing
"nmake test". You can specify the tests you want to run
by defing the TESTS variable - if you wanted to run the
sqlite test suite only, you would type
"nmake /D TESTS=ext/sqlite/tests test"
h. Snapshot Building
If you want to set up an automated build that will tolerate
breakages in some of the modules, you can use the
--enable-snapshot-build configure option to generate a
makefile optimized for that purpose. A snapshot build will
switch the argument parser so that the default option for
configure switches that your don't specify will be set
to "shared". The effect of this is to turn on all options
unless you explicitly disable them. When you have configured
your snapshot build, you can use "nmake build-snap" to build
everything, ignoring build errors in individual extensions
or SAPI.
vim:tw=78:sw=1:ts=1:et
+1 -1
View File
@@ -1,4 +1,4 @@
Using PHP4 with the Zeus Web Server
Using PHP 5 with the Zeus Web Server
-----------------------------------
Zeus fully supports running PHP in combination with our
+11 -6
View File
@@ -1,12 +1,12 @@
Input Filter Support in PHP5
----------------------------
Input Filter Support in PHP 5
-----------------------------
XSS (Cross Site Scripting) hacks are becoming more and more prevalent,
and can be quite difficult to prevent. Whenever you accept user data
and somehow display this data back to users, you are likely vulnerable
to XSS hacks.
The Input Filter support in PHP5 is aimed at providing the framework
The Input Filter support in PHP 5 is aimed at providing the framework
through which a company-wide or site-wide security policy can be
enforced. It is implemented as a SAPI hook and is called from the
treat_data and post handler functions. To implement your own security
@@ -89,7 +89,11 @@ PHP_MINFO_FUNCTION(my_input_filter)
php_info_print_table_end();
}
unsigned int my_sapi_input_filter(int arg, char *var, char **val, unsigned int val_len)
/* The filter handler. If you return 1 from it, then PHP also registers the
* (modified) variable. Returning 0 prevents PHP from registering the variable;
* you can use this if your filter already registers the variable under a
* different name, or if you just don't want the variable registered at all. */
SAPI_INPUT_FILTER_FUNC(my_sapi_input_filter)
{
zval new_var;
zval *array_ptr = NULL;
@@ -137,7 +141,8 @@ unsigned int my_sapi_input_filter(int arg, char *var, char **val, unsigned int
php_strip_tags(*val, val_len, NULL, NULL, 0);
return strlen(*val);
*new_val_len = strlen(*val);
return 1;
}
PHP_FUNCTION(my_get_raw)
@@ -150,7 +155,7 @@ PHP_FUNCTION(my_get_raw)
HashTable *hash_ptr;
char *raw_var;
if(zend_parse_parameters(2 TSRMLS_CC, "ls|l", &arg, &var, &var_len) == FAILURE) {
if(zend_parse_parameters(2 TSRMLS_CC, "ls", &arg, &var, &var_len) == FAILURE) {
return;
}
-8
View File
@@ -7,13 +7,9 @@ Zend
dimensional arrays.
* Look at replacing c-lib call tolower().
* Make hash API functions work with HASH_OF() to save time.
* Allow to set a default value for call-by-reference-parameters.
eg: function hello (&$pallo = NULL) {}
* 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?)
* Allow foreach ($array as $k => &$val) syntax. right now we cannot
traverse an array without copying each element.
* 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
@@ -133,10 +129,6 @@ ext/session
* Provide a callback facility which is executed upon encountering
an unknown class name during deserialization
ext/sockets
-----------
* Review/Fix vectors
ext/standard
------------
* Add a version number to data serialized via serialize().
+17
View File
@@ -0,0 +1,17 @@
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
----------------
- Implement new time/date parsing and handling functions. (Derick)
-102
View File
@@ -16,83 +16,6 @@ Responsibility: Andi, Stig?
Time frame: ?
Component: Introspection
get_function_definition(<is_callable> [field]) =>
array(
file => filename
line_start =>
line_end =>
parameters => array( name, byref, default )
static_variables => array( name, value/default )
scope => 'namespace' | 'class' | null
namespace => classname | namespacename | 'main'
protection => protection_flags
phpdoc => pre-scanned-phpdoc-string
type => 'internal' | 'user'
)
get_class_definition(<class> [field]) =>
array(
type => 'internal' | 'user'
file => filename
line_start =>
line_end =>
name => pretty-name
parent => classname | namespace | null
flags => bitfield (ABSTRACT)
methods => array( array( name, phpdoc ) )
default_properties => array( array( name, value, phpdoc ) )
private_properties => array( array( name, value, phpdoc ) )
protected_properties => array( array( name, value, phpdoc ) )
public_properties => array( array( name, value, phpdoc ) )
static_members => array( array( name, value, phpdoc ) )
constants => array( array( name, value, phpdoc ) )
classes => array( array( name, phpdoc ) )
phpdoc => pre-scanned-phpdoc-string
)
get_constant_definition(<constant> [field]) =>
array(
file => filename
line_start =>
line_end =>
name =>
value =>
phpdoc =>
)
get_global_variable_defintion(<name> [field]) =>
array(
file =>
line_start =>
line_end =>
name =>
phpdoc =>
)
We tried to take into account the implementation of each piece of
information, and there are some that are problematic, especially those
regarding constants and global variables (where do we store the extra
information?)
With "pre-scanned-phpdoc-string" we mean converting:
/**
* Blah blah blah
* @param foo ...
*/
to:
Blah blah blah
@param foo
The rest of the phpdoc handling should be left to an extension.
Responsibility: Stig, Andrei, Harald
Time frame: ?
Component: Redesign of API Versioning
Responsibility: ?
Time frame: 1 month
@@ -172,31 +95,6 @@ Responsibility: Sterling, Harald
Time frame: ?
Component: MySQL Extension
Complete rewrite, leveraging the new MySQL 4 / MySQL 5
features.
Responsibility: Georg Richter, Zak Greant
Timeframe: ?
Component: XML
- Rewrite DOMXML and incorporate all (or most of) W3C-DOM2.
- Use the new ZE2 features (Exceptions, setter/getter).
- Add SAX(2), XML Schema.
- XSLT, HTML, XPath, XPointer, DTD Validation will still be
supported, have to find a meaningful API for it.
- Break BC, warn users now.
- Look at the libxml2 patch by lukas schröder and see if we can prevent
memory leaks with it (anyway, getting rid of mem-leaks and intelligent
memory management is on top prio...)
- In the longer term, domxml (or another name, as with todays features
domxml is a little bit misleading) shall be the main xml-class, which
covers most of what's needed for decent XML support in PHP ;)
But there is certainly place for others like Sablotron etc.
Responsibility: Christian Stocker
Timeframe: ?
Component: Test Suite
Extending the test suite with atleast a test for every
function in an extension that doesn't require external
+55 -7
View File
@@ -34,6 +34,9 @@ typedef struct {
size_t size;
ts_allocate_ctor ctor;
ts_allocate_dtor dtor;
#ifdef MBO_0
int done;
#endif
} tsrm_resource_type;
@@ -157,11 +160,15 @@ TSRM_API void tsrm_shutdown(void)
int j;
next_p = p->next;
for (j=0; j<id_count; j++) {
if (resource_types_table && resource_types_table[j].dtor) {
resource_types_table[j].dtor(p->storage[j], &p->storage);
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]);
}
free(p->storage[j]);
}
free(p->storage);
free(p);
@@ -184,6 +191,7 @@ TSRM_API void tsrm_shutdown(void)
#if defined(GNUPTH)
pth_kill();
#elif defined(PTHREADS)
pthread_setspecific(tls_key, 0);
pthread_key_delete(tls_key);
#elif defined(TSRM_WIN32)
TlsFree(tls_key);
@@ -218,6 +226,9 @@ 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++) {
@@ -272,9 +283,16 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_
tsrm_new_thread_begin_handler(thread_id, &((*thread_resources_ptr)->storage));
}
for (i=0; i<id_count; i++) {
(*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size);
if (resource_types_table[i].ctor) {
resource_types_table[i].ctor((*thread_resources_ptr)->storage[i], &(*thread_resources_ptr)->storage);
#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) {
resource_types_table[i].ctor((*thread_resources_ptr)->storage[i], &(*thread_resources_ptr)->storage);
}
}
}
@@ -419,6 +437,36 @@ 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);
tsrm_mutex_lock(tsmm_mutex);
TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Freeing resource id %d", id));
if (tsrm_tls_table) {
for (i=0; i<tsrm_tls_table_size; i++) {
tsrm_tls_entry *p = tsrm_tls_table[i];
while (p) {
if (p->count > j && p->storage[j]) {
if (resource_types_table && resource_types_table[j].dtor) {
resource_types_table[j].dtor(p->storage[j], &p->storage);
}
free(p->storage[j]);
p->storage[j] = NULL;
}
p = p->next;
}
}
}
resource_types_table[j].done = 1;
tsrm_mutex_unlock(tsmm_mutex);
TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully freed resource id %d", id));
#endif
}
+1
View File
@@ -41,6 +41,7 @@
# define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
# include <shellapi.h>
#elif defined(NETWARE)
# include <nks/thread.h>
#ifdef USE_MPK
+10
View File
@@ -0,0 +1,10 @@
// vim:ft=javascript
// $Id$
if (CHECK_HEADER_ADD_INCLUDE("NewAPIs.h", "CFLAGS_PHP", php_usual_include_suspects)) {
// Need to add the flag directly, since TSRM doesn't include the config
// header
ADD_FLAG("CFLAGS_PHP", "/DHAVE_NEWAPIS_H=1");
}
ADD_SOURCES("TSRM", "TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c tsrm_win32.c");
+3 -2
View File
@@ -95,14 +95,15 @@ 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.],[
[ --with-tsrm-pth[=pth-config]
Use GNU Pth.],[
TSRM_PTH=$withval
],[
TSRM_PTH=no
])
AC_ARG_WITH(tsrm-st,
[ --with-tsrm-st],[
[ --with-tsrm-st Use SGI's State Threads],[
TSRM_ST=$withval
],[
TSRM_ST=no
+1
View File
@@ -3,6 +3,7 @@
#define HAVE_UTIME 1
#define HAVE_ALLOCA 1
#define HAVE_REALPATH 1
#include <malloc.h>
#include <stdlib.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#ifndef __GNUC__
# ifndef HAVE_ALLOCA_H
# ifdef _AIX
#pragma alloca
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
# ifndef NETWARE
+2 -2
View File
@@ -1,8 +1,8 @@
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+2 -2
View File
@@ -1,8 +1,8 @@
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+37 -3
View File
@@ -1,8 +1,8 @@
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -34,6 +34,11 @@
#ifdef TSRM_WIN32
#include <io.h>
#include "tsrm_win32.h"
# if HAVE_NEWAPIS_H
# define WANT_GETLONGPATHNAME_WRAPPER
# define COMPILE_NEWAPIS_STUBS
# include <NewAPIs.h>
# endif
#endif
#ifdef NETWARE
@@ -297,6 +302,8 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
unsigned char is_absolute = 0;
#ifndef TSRM_WIN32
char resolved_path[MAXPATHLEN];
#else
char *new_path;
#endif
if (path_length == 0)
@@ -331,6 +338,29 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
}
free(tmp);
}
#endif
#if defined(TSRM_WIN32)
{
char *dummy = NULL;
int new_path_length;
new_path_length = GetLongPathName(path, dummy, 0) + 1;
if (new_path_length == 0) {
return 1;
}
new_path = (char *) malloc(new_path_length);
if (!new_path) {
return 1;
}
if (GetLongPathName(path, new_path, new_path_length) != 0) {
path = new_path;
path_length = new_path_length;
} else {
free(new_path);
new_path = NULL;
}
}
#endif
free_path = path_copy = tsrm_strndup(path, path_length);
@@ -435,7 +465,11 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
}
free(old_state);
#ifdef TSRM_WIN32
if (new_path) {
free(new_path);
}
#endif
free(free_path);
#if VIRTUAL_CWD_DEBUG
fprintf (stderr, "virtual_file_ex() = %s\n",state->cwd);
+29 -2
View File
@@ -1,8 +1,8 @@
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -41,6 +41,10 @@
#include <unistd.h>
#endif
#if defined(__osf__) || defined(_AIX)
#include <errno.h>
#endif
#ifdef TSRM_WIN32
#include "readdir.h"
#include <sys/utime.h>
@@ -167,6 +171,25 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC);
#endif
#endif
/* On AIX & Tru64 when a file does not exist realpath() returns
* NULL, and sets errno to ENOENT. Unlike in other libc implementations
* the destination is not filled and remains undefined. Therefor, we
* must populate it manually using strcpy as done on systems with no
* realpath() function.
*/
#if defined(__osf__) || defined(_AIX)
static char *php_realpath_hack(char *src, char *dest)
{
char *ret;
if ((ret = realpath(src, dest)) == NULL && errno == ENOENT) {
return strcpy(dest, src);
} else {
return ret;
}
}
#endif
#if HAVE_UTIME
CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC);
#endif
@@ -248,7 +271,11 @@ typedef struct _virtual_cwd_globals {
#endif
#ifdef HAVE_REALPATH
#if defined(__osf__) || defined(_AIX)
#define VCWD_REALPATH(path, real_path) php_realpath_hack(path, real_path)
#else
#define VCWD_REALPATH(path, real_path) realpath(path, real_path)
#endif
#else
#define VCWD_REALPATH(path, real_path) strcpy(real_path, path)
#endif
+13 -2
View File
@@ -1,8 +1,8 @@
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -29,6 +29,7 @@
#include "TSRM.h"
#ifdef TSRM_WIN32
#include "tsrm_win32.h"
#ifdef ZTS
@@ -374,4 +375,14 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) {
return -1;
}
}
TSRM_API char *realpath(char *orig_path, char *buffer)
{
int ret = GetFullPathName(orig_path, _MAX_PATH, buffer, NULL);
if(!ret || ret > _MAX_PATH) {
return NULL;
}
return buffer;
}
#endif
+4 -3
View File
@@ -1,8 +1,8 @@
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -102,4 +102,5 @@ TSRM_API void *shmat(int key, const void *shmaddr, int flags);
TSRM_API int shmdt(const void *shmaddr);
TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
#endif
TSRM_API char *realpath(char *orig_path, char *buffer);
#endif
+4816
View File
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -14,7 +14,9 @@ libZend_la_SOURCES=\
zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
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_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
libZend_la_LDFLAGS =
libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
+1 -1
View File
@@ -51,7 +51,7 @@ write_property is used to directly write object's property by
name. This handler is used to assign property variables or to change them
in operations like += or ++ (unless get_property_zval_ptr is also set).
get_property_zval_ptr is used to obtain pointer to modifyable zval for
get_property_zval_ptr is used to obtain pointer to modifiable zval for
operations like += or ++. This should be used only if your object model
stores properties as real zval's that can be modified from outside.
Otherwise this handler should be NULL and the engine will use
+1 -1
View File
@@ -1,6 +1,6 @@
Title: Zend 2.0 Namespaces
Version: $Revision$
Status: draft
Status: declined
Maintainer: Stig S. Bakken <ssb@php.net>
Created: 2001-09-08
Modified: 2001-09-08
-107
View File
@@ -1,107 +0,0 @@
Title: Delegation
(a/k/a. Object-Based Inheritance)
Version: $Revision$
Status: draft
Maintainer: Sebastian Bergmann <sb@sebastian-bergmann.de>
Dynamic Delegation
Syntax / Example
<?php
class aDelegatee {
function doSomething() {
echo 'hubu';
}
}
class anotherDelegatee {
function doSomething() {
echo 'tubu';
}
}
class Foo {
delegatee $bar;
function setDelegatee($delegatee) {
$this->delegatee = $delegatee;
}
}
$foo = new Foo;
$foo->setDelegatee(new aDelegatee);
$foo->doSomething(); /* prints "hubu" */
$foo->setDelegatee(new anotherDelegatee);
$foo->doSomething(); /* prints "tubu" */
?>
Semantics / Synopsis
The "Foo" class may use all methods available in "$bar" as if they
where locally defined or inherited from a superclass. The essential
difference is that by assigning another object to "$bar" it is
possible to dynamically switch between different implementations for
these methods.
Fixed Delegation
Syntax / Example
<?php
class aDelegatee {
function doSomething() {
echo 'hubu';
}
}
class Foo {
final delegatee $bar = new aDelegatee;
}
$foo = new Foo;
$foo->doSomething(); /* prints "hubu" */
?>
Semantics / Synopsis
The "Foo" class may use all methods available in "$bar" as if they
where locally defined or inherited from a superclass. The difference
to the dynamic delegation is that once the delegatee object is set,
it cannot be changed.
Default Delegation
Syntax / Example
<?php
class Foo {
function __delegate($name, $parameters = array()) {
echo $name;
}
}
$foo = new Foo;
$foo->bar(); /* prints "bar" */
?>
Semantics / Synopsis
If a class has a __delegate() method, it is called whenever a
method on an object of this class is called that is
* Not defined in the class.
* Not provided by a delegatee object.
The __delegate() method is called with the name and parameters
of the method call.
This supersedes / obsoletes similar functionality introduced in
Zend Engine 1 by ext/overload.
+445 -122
View File
@@ -19,11 +19,43 @@ Changes in the Zend Engine 2.0
the box or after a very small amount of modifications would be
high.
* $this
Unlike in Zend Engine 1 the pseudo variable $this cannot be
exchanged in Zend Engine 2. You can of course modify or work with
an object by using $this but you cannot replace $this with another
object to change the original object.
Example:
<?php
class Foo {
function replace($other)
{
$this = $other;
}
}
$object = new Foo;
$object->prop = 'Hello';
$other = new Foo;
$other->prop = 'Bye';
$object->replace($other);
print $object->prop; // still shows 'Hello'
?>
Zend Engine 2.0 will issue a compile error, if an assignment
to $this is found.
* Private and Protected Members.
The Zend Engine 2.0 introduces private and protected member
variables. Note that for performance reasons no error message is
emitted in case of an illegal access to a private or protectecd
The Zend Engine 2.0 introduces private and protected member
variables. Note that for performance reasons no error message is
emitted in case of an illegal access to a private or protectecd
member variable.
Example:
@@ -43,7 +75,7 @@ Changes in the Zend Engine 2.0
class MyClass2 extends MyClass {
protected $Foo;
function printHello() {
MyClass::printHello(); /* Should print */
print "MyClass2::printHello() " . $this->Hello; /* Shouldn't print out anything */
@@ -64,9 +96,9 @@ Changes in the Zend Engine 2.0
print $obj->Foo; /* Shouldn't print out anything */
$obj->printHello();
?>
Protected member variables can be accessed in classes extending the
class they are declared in, whereas private member variables can
Protected member variables can be accessed in classes extending the
class they are declared in, whereas private member variables can
only be accessed by the class they belong to.
* Private and protected methods.
@@ -98,14 +130,14 @@ Changes in the Zend Engine 2.0
$o->aPublicMethod();
?>
Old code that has no user-defined classes or functions named
Old code that has no user-defined classes or functions named
'public', 'protected' or 'private' should run without modifications.
* Abstract Classes and Methods.
The Zend Engine 2.0 introduces abstract classes and methods. An
abstract method only declares the method's signature and does not
provide an implementation. A class that contains abstract methods
The Zend Engine 2.0 introduces abstract classes and methods. An
abstract method only declares the method's signature and does not
provide an implementation. A class that contains abstract methods
needs to be declared abstract.
Example:
@@ -125,9 +157,10 @@ Changes in the Zend Engine 2.0
$o->test();
?>
Abstract classes cannot be instantiated.
Classes that do not have abstract methods can be declared abstract
to prevent them from being instantiated.
Old code that has no user-defined classes or functions named
Old code that has no user-defined classes or functions named
'abstract' should run without modifications.
* Interfaces.
@@ -138,24 +171,58 @@ Changes in the Zend Engine 2.0
Example:
<?php
interface Throwable {
public function getMessage();
interface Printable {
public function dump();
}
class Exception implements Throwable {
public function getMessage() {
class PrintableExample implements Printable {
public function dump() {
// ...
}
}
?>
Old code that has no user-defined classes or functions named
Old code that has no user-defined classes or functions named
'interface' or 'implements' should run without modifications.
An interface may extend one or more base interfaces (but not
implement them). Neither a class nor an interface can inherit
methods of the same name from different root interfaces.
Interfaces may contain abstract static methods.
Example:
<?php
interface Printable {
function dump();
}
interface Streamable extends Printable {
function writeToStream();
static function readFromStream();
}
class PrintableExample implements Streamable {
public function dump() {
// ...
}
function writeToStream() {
// ...
}
static function readFromStream() {
// ...
}
}
?>
A class that does not implement all interface methods must be
declared as an abstract class.
* Class Type Hints.
While remaining loosely typed the Zend Engine 2.0 introduces the
ability to use class type hints to declare the expected class of
While remaining loosely typed the Zend Engine 2.0 introduces the
ability to use class type hints to declare the expected class of
objects that are passed as parameters to a method.
Example:
@@ -205,11 +272,10 @@ Changes in the Zend Engine 2.0
This syntax only applies to objects/classes, not built-in types.
* final.
* Final methods and classes.
The Zend Engine 2.0 introduces the "final" keyword to declare
final members and methods. Those cannot be overridden by
sub-classes.
final methods. Those cannot be overridden by sub-classes.
Example:
@@ -221,7 +287,24 @@ Changes in the Zend Engine 2.0
}
?>
Old code that has no user-defined classes or functions named
It is furthermore possible to make a class final. Doing this
prevents a class from being specialized (it cannot be inherited
by another class). There's no need to declare the methods of
a final class themselves as final.
Example:
<?php
final class Foo {
// class definition
}
// the next line is impossible
// class Bork extends Foo {}
?>
Properties cannot be final. See per-class constants below.
Old code that has no user-defined classes or functions named
'final' should run without modifications.
* Object Cloning.
@@ -242,13 +325,12 @@ Changes in the Zend Engine 2.0
replicate the parent object you want to create a new instance of
this other object so that the replica has its own separate copy.
An object copy is created by calling the object's __clone()
method.
An object copy is created by using the clone operator.
Example:
<?php
$copy_of_object = $object->__clone();
$copy_of_object = clone $object;
?>
When the developer asks to create a new copy of an object, the
@@ -257,90 +339,42 @@ Changes in the Zend Engine 2.0
all of the object's properties. If a __clone() method is
defined, then it will be responsible to set the necessary
properties in the created object. For convenience, the engine
will supply a function that imports all of the properties from
the source object, so that they can start with a by-value
replica of the source object, and only override properties that
need to be changed. [The function hasn't been implemented yet]
ensures, that the clone will be initialized with all of the
properties from the source object, so that developers can start
with a by-value replica of the source object, and only override
properties that need to be changed.
Example:
<?php
class MyCloneable {
static $id = 0;
static $id = 0;
function MyCloneable() {
$this->id = self::$id++;
}
function MyCloneable() {
$this->id = self::$id++;
}
function __clone() {
$this->name = $that->name;
$this->address = 'New York';
$this->id = self::$id++;
}
function __clone() {
$this->address = 'New York';
$this->id = self::$id++;
}
}
$obj = new MyCloneable();
$obj->name = 'Hello';
$obj->name = 'Hello';
$obj->address = 'Tel-Aviv';
print $obj->id . "\n";
$obj = $obj->__clone();
$obj_clone = clone $obj;
print $obj->id . "\n";
print $obj->name . "\n";
print $obj->address . "\n";
print $obj_clone->id . "\n";
print $obj_clone->name . "\n";
print $obj_clone->address . "\n";
?>
* Namespaces.
The Zend Engine 1.0 provided only three scopes: the global
scope, the class scope and the function scope. All scopes but
classes could contain variables, only the class and global
scopes could contain functions, while only the global scope
could contain constants and classes. This means that all of the
Zend Engine 1.0's scoping methods were inherently limited for
solving symbol name collision problems.
The Zend Engine 2.0 introduces the concept of namespaces
to solve the symbol collision problem by making it possible to
define multiple symbol tables able to contain all types of
symbols.
A namespace may contain classes, constants, functions and variables.
The member of a namespace is accessed by prefixing its name with the
name of the namespace followed by '::'.
Example:
<?php
namespace Foo {
class Bar {}
const aConstant = 'someValue';
function aFunction() {}
var $aVariable;
}
$o = new Foo::Bar;
echo Foo::aConstant;
Foo::aFunction();
Foo::$aVariable = 'someValue';
?>
A namespace's name may contain colons to denote "sub-namespaces".
This is pure syntactic sugar, the Zend Engine will not see, for
instance, the namespaces "Package", "Package:Subpackage" and
"Package:Subpackage:Subsubpackage" as related.
Namespaces can be neither nested nor instantiated.
To avoid ambiguities in the '::' resolution there may be no
global class and namespace with the same name.
Old code that has no user-defined classes or functions named
'namespace' should run without modifications.
* Unified Constructors.
The Zend Engine allows developers to declare constructor methods
@@ -428,8 +462,7 @@ Changes in the Zend Engine 2.0
* Constants.
The Zend Engine 2.0 introduces per-class and per-namespace
constants.
The Zend Engine 2.0 introduces per-class constants.
Example:
@@ -441,24 +474,27 @@ Changes in the Zend Engine 2.0
echo 'Foo::constant = ' . Foo::constant . "\n";
?>
The Zend Engine 2.0 allows for expressions within constants:
<?php
class Bar {
const a = 1<<0;
const b = 1<<1;
const c = a | b;
}
?>
Old code that has no user-defined classes or functions
Old code that has no user-defined classes or functions
named 'const' will run without modifications.
* Exceptions.
The Zend Engine 1.0 had no exception handling. The Zend Engine 2.0
introduces a exception model similar to that of other programming
languages.
languages. But there is no catch all and no finally clause.
Old code that has no user-defined classes or functions 'catch',
'throw' and 'try' will run without modifications.
Exceptions can be rethrown in catch blocks. Also it is possible to
have multiple catch blocks. In that case the caught exception is
compared with the classtype of each catch block from top to bottom
and the first block that has a 'instanceof' match gets executed.
When the catch block finishes execution continues at the end of
the last catch block. If no catch block has a 'instanceof' match
then the next try/catch block is searched until no more try/catch
blocks are available. In that case the exception is an uncaught
exception and the program terminates with showing the exception.
Example:
@@ -486,14 +522,106 @@ Changes in the Zend Engine 2.0
try {
throw new MyExceptionFoo('Hello');
}
catch (MyException $exception) {
$exception->Display();
}
catch (Exception $exception) {
echo $exception;
}
?>
Old code that has no user-defined classes or functions 'catch',
'throw' and 'try' will run without modifications.
Even though the above example shows that it is possible to define
exception classes that don't inherit from Exception it is best to
do so. This is because the internal Exception class can gather a
lot of information otherwise not available. The PHP code emulation
code would look something like shown below. The comments show the
meaning of each property. As the code shows it is possible to read
any available information by using the getter methods. But since
some of the methods are used internally they are marked final. All
in all the class is very restrictive because it must be ensured
that anything used internally always works as expected.
Emulating class Exception:
<?php
class Exception {
function __construct(string $message=NULL, int $code=0) {
if (func_num_args()) {
$this->message = $message;
}
$this->code = $code;
$this->file = __FILE__; // of throw clause
$this->line = __LINE__; // of throw clause
$this->trace = debug_backtrace();
$this->string = StringFormat($this);
}
protected $message = 'Unknown exception'; // exception message
protected $code = 0; // user defined exception code
protected $file; // source filename of exception
protected $line; // source line of exception
private $trace; // backtrace of exception
private $string; // internal only!!
final function getMessage() {
return $this->message;
}
final function getCode() {
return $this->code;
}
final function getFile() {
return $this->file;
}
final function getTrace() {
return $this->trace;
}
final function getTraceAsString() {
return self::TraceFormat($this);
}
function _toString() {
return $this->string;
}
static private function StringFormat(Exception $exception) {
// ... a function not available in PHP scripts
// that returns all relevant information as a string
}
static private function TraceFormat(Exception $exception) {
// ... a function not available in PHP scripts
// that returns the backtrace as a string
}
}
?>
If you derive your exception classes from this Exception base class
your exceptions will be nicely shown in the builtin handler for
uncaught exceptions.
Note: The method getMessage() is a final read only access method to
the private proeprty message that is set in the constructor. If you
feel a need to overwrite the exception display then overload method
__toString() in your derived class or implement your own extneral
exception display function to accomplish your desired formatting.
Example:
<?php
function display_exception(Exception $ex)
{
echo 'Exception: ' . $ex->getMessage() . 'with backtrace: <pre>';
echo $ex->getTrace();
echo '</pre>';
}
try
{
// your code here
}
catch (Exception $ex)
{
display_exeption($ex);
}
?>
* Dereferencing objects returned from functions.
@@ -523,17 +651,21 @@ Changes in the Zend Engine 2.0
ShapeFactoryMethod('Square')->draw();
?>
* Static member variables of static classes can now be
initialized.
* Member variables of classes can now be initialized.
Example:
<?php
class foo {
static $my_static = 5;
public $my_prop = 'bla';
}
print foo::$my_static;
$obj = foo;
print $obj->my_prop;
?>
* Static Methods.
@@ -556,14 +688,22 @@ Changes in the Zend Engine 2.0
The pseudo variable $this is not available inside a method that
has been declared static.
* instanceof (TBD)
* instanceof.
New support for an instanceof operator which checks if an object
is of a certain class or interface type.
* Static function variables.
Example:
Statics are now treated at compile-time which allows developers
to assign variables to statics by reference. This change also
greatly improves their performance but means that indirect
references to statics will not work anymore.
<?php
class Foo {
}
$obj = new Foo();
if ($obj instanceof Foo) {
print "Yay!\n";
}
?>
* Parameters that are passed by reference to a function
may now have default values.
@@ -580,10 +720,11 @@ Changes in the Zend Engine 2.0
* __autoload().
The __autoload() interceptor function will be automatically called
when an undeclared class is to be instantiated. The name of that
class will be passed to the __autoload() interceptor function as its
only argument.
The __autoload() interceptor function will be automatically called
when an undeclared class is to be instantiated. The name of that
class will be passed to the __autoload() interceptor function as its
only argument. __autoload() must succeed in loading the class. If it
doesn't then an E_ERROR is emitted.
Example:
@@ -655,6 +796,188 @@ Changes in the Zend Engine 2.0
var_dump($a);
?>
* Iteration
Objects may be iterated in an overloaded way when used with
foreach. The default behavior is to iterate over all properties
with respect to property visibility.
Example:
<?php
class Foo {
var $x = 1;
var $y = 2;
}
$obj = new Foo;
foreach ($obj as $prp_name => $prop_value) {
// using the property
}
?>
Each class whose instances can be iterated with foreach should
implement the empty interface 'Traversable'. Hence any object
that says it implements 'Traversable' can be used with foreach.
The interfaces 'IteratorAggregate' and 'Iterator' allow to specify
how class objects are iterated in PHP code. The first of them simply
has a method 'getIterator' which must return an object that either
implements the interface 'Iterator' or is instantiated from an
internal class that can be iterated.
Example:
<?php
class ObjectIterator implements Iterator {
private $obj;
private $num;
function __construct($obj) {
$this->obj = $obj;
}
function rewind() {
$this->num = 0;
}
function valid() {
return $this->num < $this->obj->max;
}
function key() {
return $this->num;
}
function current() {
switch($this->num) {
case 0: return "1st";
case 1: return "2nd";
case 2: return "3rd";
default: return $this->num."th";
}
}
function next() {
$this->num++;
}
}
class Object implements IteratorAggregate {
public $max = 3;
function getIterator() {
return new ObjectIterator($this);
}
}
$obj = new Object;
// this foreach ...
foreach($obj as $key => $val) {
echo "$key = $val\n";
}
// matches the following 7 lines with the for directive.
$it = $obj->getIterator();
for($it->rewind(); $it->valid(); $it->next()) {
$key = $it->key();
$val = $it->current();
echo "$key = $val\n";
}
unset($it);
?>
The matching for directive is very intersting here since it shows
the use of all abstract methods declared in the interfaces Iterator
and IteratorAggregate respectively.
* __METHOD__
The pseudo constant __METHOD__ shows the current class and method
when used inside a method and the function when used outside of a
class.
Example:
<?php
class Foo {
function Show() {
echo __FILE__ . '(' . __LINE__ . ')' . __METHOD__;
}
}
function Test() {
echo __FILE__ . '(' . __LINE__ . ')' . __METHOD__;
}
?>
* __toString()
The magic method __toString() allows to overload the object to
string conversion. This conversion is only done automatically for
the printing functions (echo, print) but not for other functions
that expect strings. Also the function __toString is not used in
places where objects are not allowed but strings are like array
indices. Note that specialized objects may be converted to a string
in any place but without calling __toString().
Example:
<?php
class Foo {
function __toString() {
return "What ever";
}
}
$obj = new Foo;
$str = (string) $obj; // call __toString()
echo $obj; // call __toString()
$ar = array();
$ar[(string)$obj]; // this works
$ar[$obj]; // this is not allowed
?>
* Reflection API
PHP 5 comes with a complete Reflection API that adds the ability to
reverse-engineer classes, interfaces, functions and methods as well
as extensions.
The Reflection API also offers ways of getting doc comments for
functions, classes and methods.
Nearly all aspects of object oriented code can be reflected by
using the Reflection API which is documented separately:
http://sitten-polizei.de/php/reflection_api/docs/language.reflection.html
Example:
<?php
class Foo {
public $prop;
function Func($name) {
echo "Hello $name";
}
}
ReflectionClass::export('Foo');
ReflectionObject::export(new Foo);
ReflectionMethod::export('Foo', 'func');
ReflectionProperty::export('Foo', 'prop');
ReflectionExtension::export('standard');
?>
* New memory manager
The Zend Engine has a new memory manager which allows it to run efficiently
in multi-threaded environments as it doesn't need to use mutexes to lock
and unlock during allocation/deallocation.
* Others
Probably other changes which we forgot to list. This list will be kept up-to-date
as much as possible.
Changes in the Zend Engine 1.0
+16
View File
@@ -135,6 +135,10 @@ 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
@@ -223,6 +227,10 @@ SOURCE=.\zend_qsort.c
# End Source File
# Begin Source File
SOURCE=.\zend_reflection_api.c
# End Source File
# Begin Source File
SOURCE=.\zend_sprintf.c
# End Source File
# Begin Source File
@@ -283,6 +291,10 @@ 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
@@ -391,6 +403,10 @@ SOURCE=.\zend_qsort.h
# End Source File
# Begin Source File
SOURCE=.\zend_reflection_api.h
# End Source File
# Begin Source File
SOURCE=.\zend_stack.h
# End Source File
# Begin Source File
+19 -5
View File
@@ -10,7 +10,7 @@ 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/\./ /'`
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
@@ -52,6 +52,7 @@ sys/time.h \
signal.h \
unix.h \
stdlib.h \
mach-o/dyld.h \
dlfcn.h)
AC_TYPE_SIZE_T
@@ -97,7 +98,7 @@ ZEND_FP_EXCEPT
AC_DEFUN(LIBZEND_ENABLE_DEBUG,[
AC_ARG_ENABLE(debug,
[ --enable-debug Compile with debugging symbols],[
[ --enable-debug Compile with debugging symbols],[
ZEND_DEBUG=$enableval
],[
ZEND_DEBUG=no
@@ -108,15 +109,15 @@ AC_ARG_ENABLE(debug,
AC_DEFUN(LIBZEND_OTHER_CHECKS,[
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
])
AC_ARG_ENABLE(inline-optimization,
[ --disable-inline-optimization If building zend_execute.lo fails, try
this switch.],[
[ --disable-inline-optimization
If building zend_execute.lo fails, try this switch.],[
ZEND_INLINE_OPTIMIZATION=$enableval
],[
ZEND_INLINE_OPTIMIZATION=yes
@@ -129,6 +130,13 @@ AC_ARG_ENABLE(memory-limit,
ZEND_MEMORY_LIMIT=no
])
AC_ARG_ENABLE(zend-multibyte,
[ --enable-zend-multibyte Compile with zend multibyte support. ], [
ZEND_MULTIBYTE=$enableval
],[
ZEND_MULTIBYTE=no
])
AC_MSG_CHECKING(whether to enable thread-safety)
AC_MSG_RESULT($ZEND_MAINTAINER_ZTS)
@@ -140,6 +148,9 @@ AC_MSG_RESULT($ZEND_MEMORY_LIMIT)
AC_MSG_CHECKING(whether to enable Zend debugging)
AC_MSG_RESULT($ZEND_DEBUG)
AC_MSG_CHECKING(whether to enable Zend multibyte)
AC_MSG_RESULT($ZEND_MULTIBYTE)
if test "$ZEND_DEBUG" = "yes"; then
AC_DEFINE(ZEND_DEBUG,1,[ ])
@@ -168,6 +179,9 @@ else
AC_DEFINE(MEMORY_LIMIT, 0, [Memory limit])
fi
if test "$ZEND_MULTIBYTE" = "yes"; then
AC_DEFINE(ZEND_MULTIBYTE, 1, [ ])
fi
changequote({,})
if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
+41 -13
View File
@@ -7,21 +7,21 @@
CFG=ZendTS - Win32 Release_TSDbg
!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 "ZendTS.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 "ZendTS.mak" CFG="ZendTS - Win32 Release_TSDbg"
!MESSAGE
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE
!MESSAGE "ZendTS - Win32 Release_TS" (based on "Win32 (x86) Static Library")
!MESSAGE "ZendTS - Win32 Debug_TS" (based on "Win32 (x86) Static Library")
!MESSAGE "ZendTS - Win32 Release_TS_inline" (based on "Win32 (x86) Static Library")
!MESSAGE "ZendTS - Win32 Release_TSDbg" (based on "Win32 (x86) Static Library")
!MESSAGE
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
@@ -119,7 +119,7 @@ LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
!ENDIF
# Begin Target
@@ -164,6 +164,10 @@ SOURCE=.\zend_dynamic_array.c
# End Source File
# Begin Source File
SOURCE=.\zend_exceptions.c
# End Source File
# Begin Source File
SOURCE=.\zend_execute.c
# End Source File
# Begin Source File
@@ -200,6 +204,14 @@ SOURCE=.\zend_ini_scanner.c
# End Source File
# Begin Source File
SOURCE=.\zend_interfaces.c
# End Source File
# Begin Source File
SOURCE=.\zend_iterators.c
# End Source File
# Begin Source File
SOURCE=".\zend_language_parser.c"
# End Source File
# Begin Source File
@@ -248,6 +260,10 @@ SOURCE=.\zend_qsort.c
# End Source File
# Begin Source File
SOURCE=.\zend_reflection_api.c
# End Source File
# Begin Source File
SOURCE=.\zend_sprintf.c
# End Source File
# Begin Source File
@@ -316,11 +332,11 @@ SOURCE=.\zend_errors.h
# End Source File
# Begin Source File
SOURCE=.\zend_execute.h
SOURCE=.\zend_exceptions.h
# End Source File
# Begin Source File
SOURCE=.\zend_execute_locks.h
SOURCE=.\zend_execute.h
# End Source File
# Begin Source File
@@ -364,10 +380,18 @@ 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
SOURCE=.\zend_iterators.h
# End Source File
# Begin Source File
SOURCE=".\zend_language_parser.h"
# End Source File
# Begin Source File
@@ -416,6 +440,10 @@ SOURCE=.\zend_qsort.h
# End Source File
# Begin Source File
SOURCE=.\zend_reflection_api.h
# End Source File
# Begin Source File
SOURCE=.\zend_stack.h
# End Source File
# Begin Source File
@@ -502,7 +530,7 @@ BuildCmds= \
$(BuildCmds)
# End Custom Build
!ENDIF
!ENDIF
# End Source File
# Begin Source File
@@ -573,7 +601,7 @@ BuildCmds= \
$(BuildCmds)
# End Custom Build
!ENDIF
!ENDIF
# End Source File
# End Group
@@ -628,7 +656,7 @@ InputPath=.\zend_ini_scanner.l
# End Custom Build
!ENDIF
!ENDIF
# End Source File
# Begin Source File
@@ -675,7 +703,7 @@ InputPath=".\zend_language_scanner.l"
# End Custom Build
!ENDIF
!ENDIF
# End Source File
# End Group
+5 -3
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -37,6 +37,8 @@
@BOTTOM@
#endif
#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
@@ -66,8 +68,6 @@ int zend_sprintf(char *buffer, const char *format, ...);
#ifndef zend_isnan
#ifdef HAVE_ISNAN
#define zend_isnan(a) isnan(a)
#elif defined(NAN)
#define zend_isnan(a) (((a)==NAN)?1:0)
#elif defined(HAVE_FPCLASS)
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
#else
@@ -96,6 +96,8 @@ int zend_sprintf(char *buffer, const char *format, ...);
#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
#endif
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
/*
* Local variables:
* tab-width: 4
+8 -3
View File
@@ -440,12 +440,17 @@ YY_MALLOC_DECL
#define ECHO /* There is no output */
#endif
#define YY_INPUT(buf, result, max_size) \
#ifdef ZEND_MULTIBYTE
# define YY_INPUT(buf, result, max_size) \
if ( ((result = zend_multibyte_yyinput(yyin, buf, max_size TSRMLS_CC)) == 0) \
&& zend_stream_ferror( yyin TSRMLS_CC) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#else
# define YY_INPUT(buf, result, max_size) \
if ( ((result = zend_stream_read(yyin, buf, max_size TSRMLS_CC)) == 0) \
&& zend_stream_ferror( yyin TSRMLS_CC) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#endif
#ifndef ECHO
%- Standard (non-C++) definition
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #19859 (__call() does not catch call_user_func_array() calls)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--FILE--
<?php
class test
{
function __call($method,$args)
{
print "test::__call invoked for method '$method'\n";
}
}
$x = new test;
$x->fake(1);
call_user_func_array(array($x,'fake'),array(1));
call_user_func(array($x,'fake'),2);
?>
--EXPECT--
test::__call invoked for method 'fake'
test::__call invoked for method 'fake'
test::__call invoked for method 'fake'
+9 -4
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #20240 order of destructor calls
Bug #20240 (order of destructor calls)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--FILE--
@@ -7,7 +7,7 @@ Bug #20240 order of destructor calls
class test
{
var $member;
public $member;
function test() {
$this->member = 1;
@@ -15,7 +15,11 @@ class test
}
function destructor() {
print $this->member;
print __METHOD__ . "\n";
}
function __destruct() {
print __METHOD__ . "\n";
}
function add() {
@@ -35,4 +39,5 @@ echo "Done\n";
2
3
Done
3
test::destructor
test::__destruct
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #20242 Method call in front of class definition)
Bug #20242 (Method call in front of class definition)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '>=')) die('skip ZendEngine 2 does not support this'); ?>
--FILE--
+5 -4
View File
@@ -1,9 +1,9 @@
--TEST--
Bug #21478 Zend/zend_alloc.c :: shutdown_memory_manager produces segfault
Bug #21478 (Zend/zend_alloc.c :: shutdown_memory_manager produces segfault)
--SKIPIF--
<?php
if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed');
if (!function_exists('stream_filter_register') die('skip stream_filter_register() not available');
if (!function_exists('stream_filter_register')) die('skip stream_filter_register() not available');
?>
--FILE--
<?php
@@ -20,7 +20,7 @@ class debugfilter extends php_user_filter {
stream_filter_register("myfilter","debugfilter");
$fp = fopen(dirname(__FILE__)."test.txt","w");
$fp = fopen(dirname(__FILE__)."/test.txt","w");
stream_filter_append($fp, "myfilter");
stream_filter_append($fp, "myfilter");
stream_filter_append($fp, "myfilter");
@@ -29,7 +29,8 @@ print "Done.\n";
fclose($fp);
// Uncommenting the following 'print' line causes the segfault to stop occuring
// print "2\n";
readfile(dirname(__FILE__)."test.txt");
readfile(dirname(__FILE__)."/test.txt");
unlink(dirname(__FILE__)."/test.txt");
?>
--EXPECT--
Done.
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #21888 protected property and protected method of the same name
Bug #21888 (protected property and protected method of the same name)
--SKIPIF--
<?php
if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed');
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
A derived class can call a parent's protected method that calls a private method
bug #22725 (A derived class can call a parent's protected method that calls a private method)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
+74
View File
@@ -0,0 +1,74 @@
--TEST--
Bug #22836 (returning references to NULL)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--FILE--
<?php
function &f()
{
$x = "foo";
var_dump($x);
print "'$x'\n";
return ($a);
}
for ($i = 0; $i < 8; $i++) {
$h =& f();
}
?>
--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
View File
@@ -0,0 +1,12 @@
--TEST--
Bug #23104 (Hash position not reset for constant arrays)
--FILE--
<?php
function foo($bar = array("a", "b", "c"))
{
var_dump(current($bar));
}
foo();
?>
--EXPECT--
string(1) "a"
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #24436 (isset()/empty() produce errors with non-existent variables in classes)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--INI--
error_reporting=2047
--FILE--
<?php
class test {
function __construct() {
if (empty($this->test[0][0])) { print "test1\n";}
if (!isset($this->test[0][0])) { print "test2\n";}
if (empty($this->test)) { print "test1\n";}
if (!isset($this->test)) { print "test2\n";}
}
}
$test1 = new test();
?>
--EXPECT--
test1
test2
test1
test2
+30
View File
@@ -0,0 +1,30 @@
--TEST--
Bug #24635 (crash on dtor calling other functions)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--FILE--
<?php
class SiteClass {
function __construct() { $this->page = new PageClass(); }
}
class PageClass {
function Display() {
$section = new SectionClass("PageClass::Display");
}
}
class SectionClass {
function __construct($comment) {
$this->Comment = $comment;
}
function __destruct() {
out($this->Comment); // this line doesn't crash PHP
out("\n<!-- End Section: " . $this->Comment . "-->"); // this line
}
}
function out($code) { return; }
$site = new SiteClass();
$site->page->Display();
echo "OK\n";
?>
--EXPECT--
OK
+13
View File
@@ -0,0 +1,13 @@
--TEST--
Bug #24699 (Memory Leak with per-class constants)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--FILE--
<?php
class TEST { const FOO = SEEK_CUR; };
class TEST2 { const FOO = 1; };
class TEST3 { const FOO = PHP_VERSION; };
print TEST::FOO."\n";
?>
--EXPECT--
1
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Bug #24773 (unset() of integers treated as arrays causes a crash)
--FILE--
<?php
$array = 'test';
unset($array["lvl1"]["lvl2"]["b"]);
?>
--EXPECTF--
Fatal error: Cannot unset string offsets in %s on line %d
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #24884 (calling $this->__clone(); crashes php)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
class Test {
function __copy()
{
$string = PHP_VERSION;
$version = $string{0};
if($string < 5)
{
return $this;
}
else
{
return clone $this;
}
}
}
$test = new Test();
$test2 = $test->__copy();
var_dump($test2);
?>
--EXPECT--
object(Test)#2 (0) {
}
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #26010 (private / protected variables get exposed by get_object_vars())
--FILE--
<?php
class foo {
private $private = 'private';
protected $protected = 'protected';
public $public = 'public';
}
$data = new foo();
$obj_vars = get_object_vars($data);
var_dump($obj_vars);
?>
--EXPECT--
array(1) {
["public"]=>
string(6) "public"
}
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Bug #26077 Memory leaks when creating an instance of an object
--FILE--
<?php
class foo {} new foo();
?>
===DONE===
--EXPECT--
===DONE===
+67
View File
@@ -0,0 +1,67 @@
--TEST--
Bug #26166 (__toString() crash when no values returned)
--FILE--
<?php
class Foo
{
function __toString()
{
return "Hello World!\n";
}
}
class Bar
{
private $obj;
function __construct()
{
$this->obj = new Foo();
}
function __toString()
{
return $this->obj->__toString();
}
}
$o = new Bar;
echo $o;
echo "===THROW===\n";
class Error
{
function __toString() {
throw new Exception("This is an error!");
}
}
$o = new Error;
try {
echo $o;
}
catch (Exception $e) {
echo "Got the exception\n";
}
echo "===NONE===\n";
class None
{
function __toString() {
}
}
$o = new None;
echo $o;
?>
===DONE===
--EXPECTF--
Hello World!
===THROW===
Got the exception
===NONE===
Fatal error: Method None::__toString() must return a string value in %sbug26166.php on line %d
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Bug #26229 (getIterator() segfaults when it returns arrays or scalars)
--FILE--
<?php
class array_iterator implements IteratorAggregate {
public function getIterator() {
return array('foo', 'bar');
}
}
$obj = new array_iterator;
foreach ($obj as $property => $value) {
var_dump($value);
}
?>
===DONE===
--EXPECTF--
Warning: Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator in %sbug26229.php on line %d
===DONE===
+13
View File
@@ -0,0 +1,13 @@
--TEST--
Bug #26281 (switch() crash when condition is a string offset)
--FILE--
<?php
$x = 'abc';
switch ($x{0}) {
case 'a':
echo "no crash\n";
break;
}
?>
--EXPECT--
no crash
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #26696 (crash in switch() when string index is used)
--FILE--
<?php
$str = 'asdd/?';
$len = strlen($str);
for ($i = 0; $i < $len; $i++) {
switch ($str[$i]) {
case '?':
echo "?+\n";
break;
default:
echo $str[$i].'-';
break;
}
}
?>
===DONE===
--EXPECT--
a-s-d-d-/-?+
===DONE===
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #26697 (calling class_exists on a nonexistent class in __autoload results in segfault)
--SKIPIF--
<?php if (function_exists('__autoload')) die('skip __autoload() declared in auto_prepend_file');?>
--FILE--
<?php
function __autoload($name)
{
echo __METHOD__ . "($name)\n";
var_dump(class_exists('NotExistingClass'));
echo __METHOD__ . "($name), done\n";
}
var_dump(class_exists('NotExistingClass'));
?>
===DONE===
--EXPECTF--
__autoload(NotExistingClass)
bool(false)
__autoload(NotExistingClass), done
bool(false)
===DONE===
+73
View File
@@ -0,0 +1,73 @@
--TEST--
Bug #26698 (Thrown exceptions while evaluting argument to pass as parameter crash PHP)
--FILE--
<?php
ini_set("report_memleaks", 0); // the exception thrown in this test results in a memory leak, which is fine
class Object
{
function getNone()
{
throw new Exception('NONE');
}
}
class Proxy
{
function three($a, $b, $c)
{
}
function callOne()
{
try
{
$res = new Object();
$this->three($res->getNone());
}
catch(Exception $e)
{
echo 'Caught: '.$e->getMessage()."\n";
}
}
function callTwo()
{
try
{
$res = new Object();
$this->three(1, $res->getNone());
}
catch(Exception $e)
{
echo 'Caught: '.$e->getMessage()."\n";
}
}
function callThree()
{
try
{
$res = new Object();
$this->three(1, 2, $res->getNone());
}
catch(Exception $e)
{
echo 'Caught: '.$e->getMessage()."\n";
}
}
}
$p = new Proxy();
$p->callOne();
$p->callTwo();
$p->callThree();
?>
===DONE===
--EXPECT--
Caught: NONE
Caught: NONE
Caught: NONE
===DONE===
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #26801 (switch ($a{0}) crash)
--FILE--
<?php
$a = '11';
$b = $a{0};
switch ($b) {
case '-':
break;
}
$a = '22';
switch ($a{0}) {
case '-':
break;
}
?>
===DONE===
--EXPECT--
===DONE===
+37
View File
@@ -0,0 +1,37 @@
--TEST--
Bug #26802 (Can't call static method using a variable)
--FILE--
<?php
function global_func()
{
echo __METHOD__ . "\n";
}
$function = 'global_func';
$function();
class foo
{
static $method = 'global_func';
static public function foo_func()
{
echo __METHOD__ . "\n";
}
}
/* The following is a BC break with PHP 4 where it would
* call foo::fail. In PHP 5 we first evaluate static class
* properties and then do the function call.
*/
$method = 'foo_func';
foo::$method();
?>
===DONE===
--EXPECT--
global_func
foo::foo_func
===DONE===
+13
View File
@@ -0,0 +1,13 @@
--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
+42
View File
@@ -0,0 +1,42 @@
--TEST--
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'); ?>
--FILE--
<?php
class A {
public $a = "Default for A";
public $b = "Default for B";
function __construct($a, $b) {
$this->a = $a;
$this->b = $b;
}
function A() {
$args = func_get_args();
call_user_func_array(Array(&$this, '__construct'), $args);
}
}
$t = new A("New A", "New B");
print_r($t);
print_r(get_class_vars(get_class($t)));
print_r(get_object_vars($t));
?>
--EXPECTF--
Strict Standards: Redefining already defined constructor for class A in %sbug27641.php on line %d
A Object
(
[a] => New A
[b] => New B
)
Array
(
[a] => Default for A
[b] => Default for B
)
Array
(
[a] => New A
[b] => New B
)
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Bug #27731 (error_reporing() call inside @ block does not work correctly)
--FILE--
<?php
error_reporting(E_ALL ^ E_NOTICE);
@error_reporting(E_WARNING);
var_dump(error_reporting());
?>
--EXPECT--
int(2)
+34
View File
@@ -0,0 +1,34 @@
--TEST--
Scoping in destructor call
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
class T
{
private $var = array();
public function add($a)
{
array_push($this->var, $a);
}
public function __destruct()
{
print_r($this->var);
}
}
class TT extends T
{
}
$t = new TT();
$t->add("Hello");
$t->add("World");
?>
--EXPECT--
Array
(
[0] => Hello
[1] => World
)
File renamed without changes.
+12
View File
@@ -0,0 +1,12 @@
--TEST--
Operator precedence
--FILE--
<?php /* $Id$ */
var_dump((object)1 instanceof stdClass);
var_dump(! (object)1 instanceof Exception);
?>
--EXPECT--
bool(true)
bool(true)
+122 -87
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -25,7 +25,7 @@
#include "zend_constants.h"
#include "zend_list.h"
#include "zend_API.h"
#include "zend_default_classes.h"
#include "zend_exceptions.h"
#include "zend_builtin_functions.h"
#include "zend_ini.h"
@@ -54,6 +54,7 @@ ZEND_API void (*zend_block_interruptions)(void);
ZEND_API void (*zend_unblock_interruptions)(void);
ZEND_API void (*zend_ticks_function)(int ticks);
ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
int (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
void (*zend_on_timeout)(int seconds TSRMLS_DC);
@@ -64,7 +65,7 @@ static int (*zend_get_configuration_directive_p)(char *name, uint name_length, z
static ZEND_INI_MH(OnUpdateErrorReporting)
{
if (!new_value) {
EG(error_reporting) = E_ALL & ~E_NOTICE;
EG(error_reporting) = E_ALL & ~E_NOTICE & ~E_STRICT;
} else {
EG(error_reporting) = atoi(new_value);
}
@@ -72,20 +73,9 @@ static ZEND_INI_MH(OnUpdateErrorReporting)
}
static ZEND_INI_MH(OnUpdateImplicitClone)
{
if (!new_value) {
EG(implicit_clone) = 0;
} else {
EG(implicit_clone) = atoi(new_value) ? 1 : 0;
}
return SUCCESS;
}
ZEND_INI_BEGIN()
ZEND_INI_ENTRY("error_reporting", NULL, ZEND_INI_ALL, OnUpdateErrorReporting)
ZEND_INI_ENTRY("zend2.implicit_clone", NULL, ZEND_INI_ALL, OnUpdateImplicitClone)
ZEND_INI_ENTRY("error_reporting", NULL, ZEND_INI_ALL, OnUpdateErrorReporting)
STD_ZEND_INI_BOOLEAN("zend.ze1_compatibility_mode", "0", ZEND_INI_ALL, OnUpdateBool, ze1_compatibility_mode, zend_executor_globals, executor_globals)
ZEND_INI_END()
@@ -107,7 +97,7 @@ ZEND_API zval zval_used_for_init; /* True global variable */
/* version information */
static char *zend_version_info;
static uint zend_version_info_length;
#define ZEND_CORE_VERSION_INFO "Zend Engine v" ZEND_VERSION ", Copyright (c) 1998-2003 Zend Technologies\n"
#define ZEND_CORE_VERSION_INFO "Zend Engine v" ZEND_VERSION ", Copyright (c) 1998-2004 Zend Technologies\n"
#define PRINT_ZVAL_INDENT 4
@@ -137,7 +127,7 @@ static void print_hash(HashTable *ht, int indent, zend_bool is_object TSRMLS_DC)
if (is_object) {
char *prop_name, *class_name;
unmangle_property_name(string_key, &class_name, &prop_name);
zend_unmangle_property_name(string_key, &class_name, &prop_name);
ZEND_PUTS(prop_name);
if (class_name) {
if (class_name[0]=='*') {
@@ -147,7 +137,7 @@ static void print_hash(HashTable *ht, int indent, zend_bool is_object TSRMLS_DC)
}
}
} else {
ZEND_PUTS(string_key);
ZEND_WRITE(string_key, str_len-1);
}
break;
case HASH_KEY_IS_LONG:
@@ -224,18 +214,40 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop
expr_copy->value.str.val = estrndup("Array", expr_copy->value.str.len);
break;
case IS_OBJECT:
if (expr->value.obj.handlers->cast_object) {
{
TSRMLS_FETCH();
expr->value.obj.handlers->cast_object(expr, expr_copy, IS_STRING, 0 TSRMLS_CC);
} else {
expr_copy->value.str.val = (char *) emalloc(sizeof("Object id #")-1 + MAX_LENGTH_OF_LONG);
expr_copy->value.str.len = sprintf(expr_copy->value.str.val, "Object id #%ld", (long)expr->value.obj.handle);
}
#if 0
/* FIXME: This might break BC for some people */
expr_copy->value.str.len = sizeof("Object")-1;
expr_copy->value.str.val = estrndup("Object", expr_copy->value.str.len);
/* Standard PHP objects */
if (Z_OBJ_HT_P(expr) == &std_object_handlers || !Z_OBJ_HT_P(expr)->cast_object) {
if (zend_std_cast_object_tostring(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) {
break;
}
zend_error(E_NOTICE, "Object of class %s could not be converted to string", Z_OBJCE_P(expr)->name);
}
#endif
if (Z_OBJ_HANDLER_P(expr, cast_object)) {
if(Z_OBJ_HANDLER_P(expr, cast_object)(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) {
break;
}
} else {
if(Z_OBJ_HANDLER_P(expr, get)) {
zval *z = Z_OBJ_HANDLER_P(expr, get)(expr TSRMLS_CC);
if(Z_TYPE_P(z) != IS_OBJECT) {
zend_make_printable_zval(z, expr_copy, use_copy);
FREE_ZVAL(z);
return;
}
}
}
if (EG(exception)) {
zval_dtor(expr_copy);
expr_copy->value.str.len = 0;
expr_copy->value.str.val = empty_string;
break;
}
}
expr_copy->value.str.val = (char *) emalloc(sizeof("Object id #")-1 + MAX_LENGTH_OF_LONG);
expr_copy->value.str.len = sprintf(expr_copy->value.str.val, "Object id #%ld", (long)expr->value.obj.handle);
break;
case IS_DOUBLE:
*expr_copy = *expr;
@@ -305,7 +317,7 @@ ZEND_API void zend_print_flat_zval_r(zval *expr TSRMLS_DC)
Z_OBJ_HANDLER_P(expr, get_class_name)(expr, &class_name, &clen, 0 TSRMLS_CC);
}
zend_printf("%s Object (", class_name?class_name:"Unknown Class");
if(class_name) {
if (class_name) {
efree(class_name);
}
if (Z_OBJ_HANDLER_P(expr, get_properties)) {
@@ -358,7 +370,7 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int
Z_OBJ_HANDLER_P(expr, get_class_name)(expr, &class_name, &clen, 0 TSRMLS_CC);
}
zend_printf("%s Object\n", class_name?class_name:"Unknown Class");
if(class_name) {
if (class_name) {
efree(class_name);
}
if (Z_OBJ_HANDLER_P(expr, get_properties)) {
@@ -393,23 +405,16 @@ static FILE *zend_fopen_wrapper(const char *filename, char **opened_path)
static void register_standard_class(TSRMLS_D)
{
zend_standard_class_def = malloc(sizeof(zend_class_entry));
zend_standard_class_def = calloc(1, sizeof(zend_class_entry));
zend_standard_class_def->type = ZEND_INTERNAL_CLASS;
zend_standard_class_def->name_length = sizeof("stdClass") - 1;
zend_standard_class_def->name = zend_strndup("stdClass", zend_standard_class_def->name_length);
zend_initialize_class_data(zend_standard_class_def, 1 TSRMLS_CC);
zend_hash_add(GLOBAL_CLASS_TABLE, "stdclass", sizeof("stdclass"), &zend_standard_class_def, sizeof(zend_class_entry *), NULL);
zend_hash_add(CG(class_table), "stdclass", sizeof("stdclass"), &zend_standard_class_def, sizeof(zend_class_entry *), NULL);
}
#ifdef ZTS
static void unregister_standard_class()
{
destroy_zend_class(&zend_standard_class_def);
}
#endif
static void zend_set_default_compile_time_values(TSRMLS_D)
{
/* default compile-time values */
@@ -424,7 +429,7 @@ static void zend_set_default_compile_time_values(TSRMLS_D)
static void compiler_globals_ctor(zend_compiler_globals *compiler_globals TSRMLS_DC)
{
zend_function tmp_func;
zend_class_entry tmp_class;
zend_class_entry *tmp_class;
compiler_globals->compiled_filename = NULL;
@@ -434,7 +439,7 @@ static void compiler_globals_ctor(zend_compiler_globals *compiler_globals TSRMLS
compiler_globals->class_table = (HashTable *) malloc(sizeof(HashTable));
zend_hash_init_ex(compiler_globals->class_table, 10, NULL, ZEND_CLASS_DTOR, 1, 0);
zend_hash_copy(compiler_globals->class_table, global_class_table, (copy_ctor_func_t) zend_class_add_ref, &tmp_class, sizeof(zend_class_entry));
zend_hash_copy(compiler_globals->class_table, global_class_table, (copy_ctor_func_t) zend_class_add_ref, &tmp_class, sizeof(zend_class_entry *));
zend_set_default_compile_time_values(TSRMLS_C);
@@ -450,11 +455,13 @@ static void compiler_globals_dtor(zend_compiler_globals *compiler_globals TSRMLS
{
if (compiler_globals->function_table != GLOBAL_FUNCTION_TABLE) {
zend_hash_destroy(compiler_globals->function_table);
free(compiler_globals->function_table);
}
if (compiler_globals->class_table != GLOBAL_CLASS_TABLE) {
zend_hash_destroy(compiler_globals->class_table);
free(compiler_globals->class_table);
}
if (compiler_globals->auto_globals != global_auto_globals_table) {
if (compiler_globals->auto_globals != GLOBAL_AUTO_GLOBALS_TABLE) {
zend_hash_destroy(compiler_globals->auto_globals);
free(compiler_globals->auto_globals);
}
@@ -470,7 +477,9 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals TSRMLS
EG(user_error_handler) = NULL;
EG(user_exception_handler) = NULL;
EG(in_execution) = 0;
EG(in_autoload) = NULL;
EG(current_execute_data) = NULL;
EG(current_module) = NULL;
}
@@ -503,8 +512,8 @@ static void alloc_globals_dtor(zend_alloc_globals *alloc_globals_p TSRMLS_DC)
#endif
#ifdef __FreeBSD__
/* FreeBSD floating point precision fix */
#if defined(__FreeBSD__) || defined(__DragonFly__)
/* FreeBSD and DragonFly floating point precision fix */
#include <floatingpoint.h>
#endif
@@ -532,7 +541,6 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
zend_compiler_globals *compiler_globals;
zend_executor_globals *executor_globals;
void ***tsrm_ls;
#ifdef ZTS
extern ZEND_API ts_rsrc_id ini_scanner_globals_id;
extern ZEND_API ts_rsrc_id language_scanner_globals_id;
#else
@@ -540,13 +548,14 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
extern zend_scanner_globals language_scanner_globals;
#endif
#ifdef ZTS
ts_allocate_id(&alloc_globals_id, sizeof(zend_alloc_globals), (ts_allocate_ctor) alloc_globals_ctor, (ts_allocate_dtor) alloc_globals_dtor);
#else
alloc_globals_ctor(&alloc_globals TSRMLS_CC);
#endif
#ifdef __FreeBSD__
/* FreeBSD floating point precision fix */
#if defined(__FreeBSD__) || defined(__DragonFly__)
/* FreeBSD and DragonFly floating point precision fix */
fpsetmask(0);
#endif
@@ -567,10 +576,12 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
zend_get_configuration_directive_p = utility_functions->get_configuration_directive;
zend_ticks_function = utility_functions->ticks_function;
zend_on_timeout = utility_functions->on_timeout;
zend_vspprintf = utility_functions->vspprintf_function;
zend_compile_file = compile_file;
zend_execute = execute;
zend_execute_internal = NULL;
zend_throw_exception_hook = NULL;
zend_init_opcodes_handlers();
@@ -607,7 +618,11 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
executor_globals = ts_resource(executor_globals_id);
tsrm_ls = ts_resource_ex(0, NULL);
compiler_globals_dtor(compiler_globals, tsrm_ls);
compiler_globals_dtor(compiler_globals TSRMLS_CC);
compiler_globals->in_compilation = 0;
compiler_globals->function_table = (HashTable *) malloc(sizeof(HashTable));
compiler_globals->class_table = (HashTable *) malloc(sizeof(HashTable));
*compiler_globals->function_table = *GLOBAL_FUNCTION_TABLE;
*compiler_globals->class_table = *GLOBAL_CLASS_TABLE;
compiler_globals->auto_globals = GLOBAL_AUTO_GLOBALS_TABLE;
@@ -634,7 +649,6 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
if (start_builtin_functions) {
zend_startup_builtin_functions(TSRMLS_C);
}
zend_register_default_classes(TSRMLS_C);
zend_ini_startup(TSRMLS_C);
@@ -667,8 +681,12 @@ void zend_post_startup(TSRMLS_D)
*GLOBAL_CLASS_TABLE = *compiler_globals->class_table;
*GLOBAL_CONSTANTS_TABLE = *executor_globals->zend_constants;
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
free(compiler_globals->function_table);
free(compiler_globals->class_table);
compiler_globals_ctor(compiler_globals, tsrm_ls);
free(EG(zend_constants));
executor_globals_ctor(executor_globals, tsrm_ls);
zend_new_thread_end_handler(tsrm_thread_id() TSRMLS_CC);
}
#endif
@@ -682,7 +700,6 @@ void zend_shutdown(TSRMLS_D)
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
#endif
zend_hash_graceful_reverse_destroy(&module_registry);
zend_destroy_rsrc_list_dtors();
zend_hash_destroy(GLOBAL_FUNCTION_TABLE);
zend_hash_destroy(GLOBAL_CLASS_TABLE);
@@ -693,10 +710,17 @@ void zend_shutdown(TSRMLS_D)
free(zend_version_info);
zend_shutdown_constants(TSRMLS_C);
free(GLOBAL_FUNCTION_TABLE);
free(GLOBAL_CLASS_TABLE);
#ifdef ZTS
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
zend_hash_destroy(GLOBAL_CONSTANTS_TABLE);
unregister_standard_class();
free(GLOBAL_CONSTANTS_TABLE);
GLOBAL_FUNCTION_TABLE = NULL;
GLOBAL_CLASS_TABLE = NULL;
GLOBAL_AUTO_GLOBALS_TABLE = NULL;
#endif
zend_destroy_rsrc_list_dtors();
}
@@ -710,7 +734,7 @@ void zend_set_utility_values(zend_utility_values *utility_values)
/* this should be compatible with the standard zenderror */
void zenderror(char *error)
{
zend_error(E_PARSE, error);
zend_error(E_PARSE, "%s", error);
}
@@ -804,6 +828,21 @@ void zend_deactivate(TSRMLS_D)
}
static int exec_done_cb(zend_module_entry *module TSRMLS_DC)
{
if (module->post_deactivate_func) {
module->post_deactivate_func();
}
return 0;
}
void zend_post_deactivate_modules(TSRMLS_D)
{
zend_hash_apply(&module_registry, (apply_func_t) exec_done_cb TSRMLS_CC);
}
BEGIN_EXTERN_C()
ZEND_API void zend_message_dispatcher(long message, void *data)
{
@@ -824,8 +863,6 @@ ZEND_API int zend_get_configuration_directive(char *name, uint name_length, zval
}
#define ZEND_ERROR_BUFFER_SIZE 1024
ZEND_API void zend_error(int type, const char *format, ...)
{
va_list args;
@@ -835,6 +872,8 @@ ZEND_API void zend_error(int type, const char *format, ...)
char *error_filename;
uint error_lineno;
zval *orig_user_error_handler;
zval *orig_garbage[2];
int orig_garbage_ptr;
TSRMLS_FETCH();
/* Obtain relevant filename and lineno */
@@ -849,6 +888,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
case E_COMPILE_WARNING:
case E_ERROR:
case E_NOTICE:
case E_STRICT:
case E_WARNING:
case E_USER_ERROR:
case E_USER_WARNING:
@@ -873,11 +913,11 @@ ZEND_API void zend_error(int type, const char *format, ...)
error_filename = "Unknown";
}
va_start(args, format);
/* if we don't have a user defined error handler */
if (!EG(user_error_handler)) {
if (!EG(user_error_handler)
|| !(EG(user_error_handler_error_reporting) & type)) {
zend_error_cb(type, error_filename, error_lineno, format, args);
} else switch (type) {
case E_ERROR:
@@ -896,22 +936,8 @@ ZEND_API void zend_error(int type, const char *format, ...)
ALLOC_INIT_ZVAL(z_error_filename);
ALLOC_INIT_ZVAL(z_error_lineno);
ALLOC_INIT_ZVAL(z_context);
z_error_message->value.str.val = (char *) emalloc(ZEND_ERROR_BUFFER_SIZE);
#ifdef HAVE_VSNPRINTF
vsnprintf(z_error_message->value.str.val, ZEND_ERROR_BUFFER_SIZE, format, args);
/* this MUST be revisited, but for now handle ALL implementation
* out there correct. Since this is inside an error handler the
* performance loss by strlne is irrelevant. */
z_error_message->value.str.val[ZEND_ERROR_BUFFER_SIZE - 1] = '\0';
z_error_message->value.str.len = strlen(z_error_message->value.str.val);
#else
strncpy(z_error_message->value.str.val, format, ZEND_ERROR_BUFFER_SIZE);
z_error_message->value.str.val[ZEND_ERROR_BUFFER_SIZE - 1] = '\0';
z_error_message->value.str.len = strlen(z_error_message->value.str.val);
/* This is risky... */
/* z_error_message->value.str.len = vsprintf(z_error_message->value.str.val, format, args); */
#endif
z_error_message->value.str.len = zend_vspprintf(&z_error_message->value.str.val, 0, format, args);
z_error_message->type = IS_STRING;
z_error_type->value.lval = type;
@@ -928,8 +954,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
z_context->value.ht = EG(active_symbol_table);
z_context->type = IS_ARRAY;
z_context->is_ref = 1;
z_context->refcount = 2; /* we don't want this one to be freed */
ZVAL_ADDREF(z_context); /* we don't want this one to be freed */
params = (zval ***) emalloc(sizeof(zval **)*5);
params[0] = &z_error_type;
@@ -940,14 +965,33 @@ ZEND_API void zend_error(int type, const char *format, ...)
orig_user_error_handler = EG(user_error_handler);
EG(user_error_handler) = NULL;
orig_garbage_ptr = EG(garbage_ptr);
EG(garbage_ptr) = 0;
if (orig_garbage_ptr > 0) {
memcpy(&orig_garbage, &EG(garbage), sizeof(zval*)*orig_garbage_ptr);
}
if (call_user_function_ex(CG(function_table), NULL, orig_user_error_handler, &retval, 5, params, 1, NULL TSRMLS_CC)==SUCCESS) {
if (retval) {
if (Z_TYPE_P(retval) == IS_BOOL && Z_LVAL_P(retval) == 0) {
zend_error_cb(type, error_filename, error_lineno, format, args);
}
zval_ptr_dtor(&retval);
}
} else {
/* The user error handler failed, use built-in error handler */
zend_error_cb(type, error_filename, error_lineno, format, args);
}
if (orig_garbage_ptr > 0) {
while (EG(garbage_ptr)) {
zval_ptr_dtor(&EG(garbage)[--EG(garbage_ptr)]);
}
EG(garbage_ptr) = orig_garbage_ptr;
memcpy(&EG(garbage), &orig_garbage, sizeof(zval*)*orig_garbage_ptr);
}
EG(user_error_handler) = orig_user_error_handler;
efree(params);
@@ -1017,13 +1061,12 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
zend_execute(EG(active_op_array) TSRMLS_CC);
if (EG(exception)) {
char ex_class_name[128];
if(Z_TYPE_P(EG(exception)) == IS_OBJECT) {
if (Z_TYPE_P(EG(exception)) == IS_OBJECT) {
strncpy(ex_class_name, Z_OBJ_CLASS_NAME_P(EG(exception)), 127);
ex_class_name[127] = '\0';
} else {
strcpy(ex_class_name, "Unknown Exception");
}
#if 1 /* support set_exception_handler() */
if (EG(user_exception_handler)) {
zval *orig_user_exception_handler;
zval ***params, *retval2, *old_exception;
@@ -1037,30 +1080,22 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
zval_ptr_dtor(&retval2);
}
} else {
zval_ptr_dtor(&EG(exception));
EG(exception) = NULL;
zend_error(E_ERROR, "Uncaught exception '%s'!", ex_class_name);
zend_exception_error(EG(exception) TSRMLS_CC);
}
efree(params);
zval_ptr_dtor(&old_exception);
if(EG(exception)) {
if (EG(exception)) {
zval_ptr_dtor(&EG(exception));
EG(exception) = NULL;
}
} else {
zval_ptr_dtor(&EG(exception));
EG(exception) = NULL;
zend_error(E_ERROR, "Uncaught exception '%s'!", ex_class_name);
zend_exception_error(EG(exception) TSRMLS_CC);
}
if (retval == NULL && *EG(return_value_ptr_ptr) != NULL) {
zval_ptr_dtor(EG(return_value_ptr_ptr));
local_retval = NULL;
}
#else
zval_ptr_dtor(&EG(exception));
zend_error(E_ERROR, "Uncaught exception '%s'!", ex_class_name);
#endif
} else if (!retval) {
} else if (!retval && *EG(return_value_ptr_ptr)) {
zval_ptr_dtor(EG(return_value_ptr_ptr));
local_retval = NULL;
}
+68 -56
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -101,7 +101,11 @@ const char *zend_mh_bundle_error(void);
# define RTLD_GLOBAL 0
# endif
# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
# if defined(RTLD_GROUP) && defined(RTLD_WORLD) && defined(RTLD_PARENT)
# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL | RTLD_GROUP | RTLD_WORLD | RTLD_PARENT)
# else
# define DL_LOAD(libname) dlopen(libname, RTLD_LAZY | RTLD_GLOBAL)
# endif
# define DL_UNLOAD dlclose
# if defined(DLSYM_NEEDS_UNDERSCORE)
# define DL_FETCH_SYMBOL(h,s) dlsym((h), "_" s)
@@ -137,7 +141,7 @@ const char *zend_mh_bundle_error(void);
#ifndef __GNUC__
# ifndef HAVE_ALLOCA_H
# ifdef _AIX
#pragma alloca
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
@@ -146,7 +150,33 @@ char *alloca ();
# endif
#endif
#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE))
/* GCC x.y.z supplies __GNUC__ = x and __GNUC_MINOR__ = y */
#ifdef __GNUC__
# define ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
#else
# define ZEND_GCC_VERSION 0
#endif
#if ZEND_GCC_VERSION >= 2096
# define ZEND_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
#else
# define ZEND_ATTRIBUTE_MALLOC
#endif
#if ZEND_GCC_VERSION >= 2007
# define ZEND_ATTRIBUTE_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first)))
#else
# define ZEND_ATTRIBUTE_FORMAT(type, idx, first)
#endif
#if ZEND_GCC_VERSION >= 3001
# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first)))
#else
# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first)
#endif
#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__)
# define do_alloca(p) alloca(p)
# define free_alloca(p)
#else
@@ -228,8 +258,8 @@ typedef struct _zend_class_entry zend_class_entry;
typedef struct _zend_object {
zend_class_entry *ce;
HashTable *properties;
int in_get:1;
int in_set:1;
unsigned int in_get:1;
unsigned int in_set:1;
} zend_object;
typedef unsigned int zend_object_handle;
@@ -262,27 +292,6 @@ struct _zval_struct {
zend_uchar is_ref;
};
struct _zend_op_array;
typedef struct _zend_function_entry {
char *fname;
void (*handler)(INTERNAL_FUNCTION_PARAMETERS);
unsigned char *func_arg_types;
} zend_function_entry;
typedef struct _zend_property_reference {
int type; /* read, write or r/w */
zval *object;
zend_llist *elements_list;
} zend_property_reference;
typedef struct _zend_overloaded_element {
int type; /* array offset or object proprety */
zval element;
} zend_overloaded_element;
/* excpt.h on Digital Unix 4.0 defines function_table */
#undef function_table
@@ -290,7 +299,7 @@ typedef struct _zend_overloaded_element {
/* A lot of stuff needs shifiting around in order to include zend_compile.h here */
union _zend_function;
#define ZEND_CE_ABSTRACT ZEND_ACC_ABSTRACT /* same as ZEND_ACC_ABSTRACT */
#include "zend_iterators.h"
struct _zend_class_entry {
char type;
@@ -304,10 +313,9 @@ struct _zend_class_entry {
HashTable function_table;
HashTable default_properties;
HashTable properties_info;
HashTable class_table;
HashTable *static_members;
HashTable constants_table;
zend_function_entry *builtin_functions;
struct _zend_function_entry *builtin_functions;
union _zend_function *constructor;
union _zend_function *destructor;
@@ -316,9 +324,12 @@ struct _zend_class_entry {
union _zend_function *__set;
union _zend_function *__call;
zend_class_iterator_funcs iterator_funcs;
/* handlers */
zend_object_value (*create_object)(zend_class_entry *class_type TSRMLS_DC);
zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object TSRMLS_DC);
int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type TSRMLS_DC); /* a class implements this interface */
zend_class_entry **interfaces;
zend_uint num_interfaces;
@@ -328,19 +339,14 @@ struct _zend_class_entry {
zend_uint line_end;
char *doc_comment;
zend_uint doc_comment_len;
/* old handlers */
#if 0
void (*handle_function_call)(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference);
zval (*handle_property_get)(zend_property_reference *property_reference);
int (*handle_property_set)(zend_property_reference *property_reference, zval *value);
#endif
struct _zend_module_entry *module;
};
#include "zend_stream.h"
typedef struct _zend_utility_functions {
void (*error_function)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
int (*printf_function)(const char *format, ...);
void (*error_function)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0);
int (*printf_function)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
int (*write_function)(const char *str, uint str_length);
FILE *(*fopen_function)(const char *filename, char **opened_path);
void (*message_handler)(long message, void *data);
@@ -350,6 +356,7 @@ typedef struct _zend_utility_functions {
void (*ticks_function)(int ticks);
void (*on_timeout)(int seconds TSRMLS_DC);
int (*stream_open_function)(const char *filename, zend_file_handle *handle TSRMLS_DC);
int (*vspprintf_function)(char **pbuf, size_t max_len, const char *format, va_list ap);
} zend_utility_functions;
@@ -368,9 +375,12 @@ typedef int (*zend_write_func_t)(const char *str, uint str_length);
#define MAX(a, b) (((a)>(b))?(a):(b))
#define MIN(a, b) (((a)<(b))?(a):(b))
#define ZEND_STRL(str) (str), (sizeof(str)-1)
#define ZEND_STRS(str) (str), (sizeof(str))
#define ZEND_STRS(str) (str), (sizeof(str)-1)
#define ZEND_NORMALIZE_BOOL(n) \
((n) ? (((n)>0) ? 1 : -1) : 0)
#define ZEND_TRUTH(x) ((x) ? 1 : 0)
#define ZEND_LOG_XOR(a, b) (ZEND_TRUTH(a) ^ ZEND_TRUTH(b))
/* data types */
@@ -385,9 +395,6 @@ typedef int (*zend_write_func_t)(const char *str, uint str_length);
#define IS_CONSTANT 8
#define IS_CONSTANT_ARRAY 9
/* Special data type to temporarily mark large numbers */
#define FLAG_IS_BC 10 /* for parser internal use only */
/* Ugly hack to support constants as static array indices */
#define IS_CONSTANT_INDEX 0x80
@@ -398,12 +405,6 @@ typedef int (*zend_write_func_t)(const char *str, uint str_length);
#define OE_IS_METHOD (1<<2)
/* Argument passing types */
#define BYREF_NONE 0
#define BYREF_FORCE 1
#define BYREF_ALLOW 2
#define BYREF_FORCE_REST 3
int zend_startup(zend_utility_functions *utility_functions, char **extensions, int start_builtin_functions);
void zend_shutdown(TSRMLS_D);
void zend_register_standard_ini_entries(TSRMLS_D);
@@ -436,6 +437,7 @@ END_EXTERN_C()
}
#define zend_first_try EG(bailout_set)=0; zend_try
BEGIN_EXTERN_C()
ZEND_API char *get_zend_version(void);
ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_copy);
ZEND_API int zend_print_zval(zval *expr, int indent);
@@ -443,7 +445,14 @@ ZEND_API int zend_print_zval_ex(zend_write_func_t write_func, zval *expr, int in
ZEND_API void zend_print_zval_r(zval *expr, int indent TSRMLS_DC);
ZEND_API void zend_print_flat_zval_r(zval *expr TSRMLS_DC);
ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int indent TSRMLS_DC);
ZEND_API void zend_output_debug_string(zend_bool trigger_break, char *format, ...);
ZEND_API void zend_output_debug_string(zend_bool trigger_break, char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
END_EXTERN_C()
void zend_activate(TSRMLS_D);
void zend_deactivate(TSRMLS_D);
void zend_activate_modules(TSRMLS_D);
void zend_deactivate_modules(TSRMLS_D);
void zend_post_deactivate_modules(TSRMLS_D);
#if ZEND_DEBUG
#define Z_DBG(expr) (expr)
@@ -453,8 +462,9 @@ ZEND_API void zend_output_debug_string(zend_bool trigger_break, char *format, ..
ZEND_API extern char *empty_string;
BEGIN_EXTERN_C()
ZEND_API void free_estring(char **str_p);
END_EXTERN_C()
#define STR_FREE(ptr) if (ptr && ptr!=empty_string) { efree(ptr); }
#define STR_FREE_REL(ptr) if (ptr && ptr!=empty_string) { efree_rel(ptr); }
@@ -474,18 +484,19 @@ ZEND_API void free_estring(char **str_p);
BEGIN_EXTERN_C()
extern ZEND_API int (*zend_printf)(const char *format, ...);
extern ZEND_API int (*zend_printf)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
extern ZEND_API zend_write_func_t zend_write;
extern ZEND_API FILE *(*zend_fopen)(const char *filename, char **opened_path);
extern ZEND_API void (*zend_block_interruptions)(void);
extern ZEND_API void (*zend_unblock_interruptions)(void);
extern ZEND_API void (*zend_ticks_function)(int ticks);
extern ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args);
extern ZEND_API void (*zend_error_cb)(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0);
extern void (*zend_on_timeout)(int seconds TSRMLS_DC);
extern ZEND_API int (*zend_stream_open_function)(const char *filename, zend_file_handle *handle TSRMLS_DC);
extern int (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
ZEND_API void zend_error(int type, const char *format, ...);
ZEND_API void zend_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
void zenderror(char *error);
@@ -505,9 +516,9 @@ END_EXTERN_C()
BEGIN_EXTERN_C()
ZEND_API void zend_message_dispatcher(long message, void *data);
END_EXTERN_C()
ZEND_API int zend_get_configuration_directive(char *name, uint name_length, zval *contents);
END_EXTERN_C()
/* Messages for applications of Zend */
@@ -517,6 +528,7 @@ ZEND_API int zend_get_configuration_directive(char *name, uint name_length, zval
#define ZMSG_MEMORY_LEAK_DETECTED 4L
#define ZMSG_MEMORY_LEAK_REPEATED 5L
#define ZMSG_LOG_SCRIPT_NAME 6L
#define ZMSG_MEMORY_LEAKS_GRAND_TOTAL 7L
#define ZVAL_ADDREF(pz) (++(pz)->refcount)
+529 -130
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -209,22 +209,6 @@ ZEND_API zend_class_entry *zend_get_class_entry(zval *zobject TSRMLS_DC)
}
}
static int zend_check_class(zval *obj, zend_class_entry *expected_ce TSRMLS_DC)
{
zend_class_entry *ce;
if (Z_TYPE_P(obj) != IS_OBJECT) {
return 0;
}
for (ce = Z_OBJCE_P(obj); ce != NULL; ce = ce->parent) {
if (ce == expected_ce) {
return 1;
}
}
return 0;
}
static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC)
{
@@ -331,9 +315,16 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC)
*p = Z_STRVAL_PP(arg);
*pl = Z_STRLEN_PP(arg);
break;
case IS_OBJECT: {
if (Z_OBJ_HANDLER_PP(arg, cast_object)
&& Z_OBJ_HANDLER_PP(arg, cast_object)(*arg, *arg, IS_STRING, 0 TSRMLS_CC) == SUCCESS) {
*pl = Z_STRLEN_PP(arg);
*p = Z_STRVAL_PP(arg);
break;
}
}
case IS_ARRAY:
case IS_OBJECT:
case IS_RESOURCE:
default:
return "string";
@@ -409,14 +400,17 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC)
{
zval **p = va_arg(*va, zval **);
zend_class_entry *ce = va_arg(*va, zend_class_entry *);
if (!zend_check_class(*arg, ce TSRMLS_CC)) {
if (Z_TYPE_PP(arg) == IS_OBJECT &&
(!ce || instanceof_function(Z_OBJCE_PP(arg), ce TSRMLS_CC))) {
*p = *arg;
} else {
if (Z_TYPE_PP(arg) == IS_NULL && return_null) {
*p = NULL;
} else {
return ce->name;
return ce ? ce->name : "object";
}
} else
*p = *arg;
}
}
break;
@@ -430,7 +424,16 @@ static char *zend_parse_arg_impl(zval **arg, va_list *va, char **spec TSRMLS_DC)
}
}
break;
case 'Z':
{
zval ***p = va_arg(*va, zval ***);
if (Z_TYPE_PP(arg) == IS_NULL && return_null) {
*p = NULL;
} else {
*p = arg;
}
}
break;
default:
return "unknown";
}
@@ -460,7 +463,6 @@ static int zend_parse_arg(int arg_num, zval **arg, va_list *va, char **spec, int
static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int flags TSRMLS_DC)
{
char *spec_walk;
char buf[1024];
int c, i;
int min_num_args = -1;
int max_num_args = 0;
@@ -476,7 +478,7 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
case 's': case 'b':
case 'r': case 'a':
case 'o': case 'O':
case 'z':
case 'z': case 'Z':
max_num_args++;
break;
@@ -491,7 +493,12 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
default:
if (!quiet) {
zend_error(E_WARNING, "%s(): bad type specifier while parsing parameters", get_active_function_name(TSRMLS_C));
zend_function *active_function = EG(function_state_ptr)->function;
char *class_name = active_function->common.scope ? active_function->common.scope->name : "";
zend_error(E_WARNING, "%s%s%s(): bad type specifier while parsing parameters",
class_name,
class_name[0] ? "::" : "",
get_active_function_name(TSRMLS_C));
}
return FAILURE;
}
@@ -503,13 +510,16 @@ static int zend_parse_va_args(int num_args, char *type_spec, va_list *va, int fl
if (num_args < min_num_args || num_args > max_num_args) {
if (!quiet) {
sprintf(buf, "%s() expects %s %d parameter%s, %d given",
zend_function *active_function = EG(function_state_ptr)->function;
char *class_name = active_function->common.scope ? active_function->common.scope->name : "";
zend_error(E_WARNING, "%s%s%s() expects %s %d parameter%s, %d given",
class_name,
class_name[0] ? "::" : "",
get_active_function_name(TSRMLS_C),
min_num_args == max_num_args ? "exactly" : num_args < min_num_args ? "at least" : "at most",
num_args < min_num_args ? min_num_args : max_num_args,
(num_args < min_num_args ? min_num_args : max_num_args) == 1 ? "" : "s",
num_args);
zend_error(E_WARNING, buf);
}
return FAILURE;
}
@@ -574,14 +584,17 @@ ZEND_API int zend_parse_method_parameters(int num_args TSRMLS_DC, zval *this_ptr
va_start(va, type_spec);
retval = zend_parse_va_args(num_args, type_spec, &va, 0 TSRMLS_CC);
va_end(va);
}
else {
} else {
p++;
va_start(va, type_spec);
object = va_arg(va, zval **);
ce = va_arg(va, zend_class_entry *);
*object = this_ptr;
if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce TSRMLS_CC)) {
zend_error(E_CORE_ERROR, "%s::%s() must be derived from %s::%s",
ce->name, get_active_function_name(TSRMLS_C), Z_OBJCE_P(this_ptr)->name, get_active_function_name(TSRMLS_C));
}
retval = zend_parse_va_args(num_args, p, &va, 0 TSRMLS_CC);
va_end(va);
@@ -589,51 +602,42 @@ ZEND_API int zend_parse_method_parameters(int num_args TSRMLS_DC, zval *this_ptr
return retval;
}
ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC, zval *this_ptr, char *type_spec, zend_class_entry *ce, void **object, ...)
ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC, zval *this_ptr, char *type_spec, ...)
{
void **arg_stack = EG(argument_stack).top_element;
va_list va;
int retval;
char *p = type_spec;
zval **object;
zend_class_entry *ce;
int quiet = flags & ZEND_PARSE_PARAMS_QUIET;
*object = this_ptr;
if (!this_ptr) {
va_start(va, type_spec);
retval = zend_parse_va_args(num_args, type_spec, &va, 0 TSRMLS_CC);
va_end(va);
} else {
p++;
va_start(va, type_spec);
if (!*object) {
zval **parameter;
if (zend_get_parameters_ex(1, &parameter) != SUCCESS) {
object = va_arg(va, zval **);
ce = va_arg(va, zend_class_entry *);
*object = this_ptr;
if (ce && !instanceof_function(Z_OBJCE_P(this_ptr), ce TSRMLS_CC)) {
if (!quiet) {
zend_error(E_WARNING, "%s() expects an object of class %s as first parameter, none was given",
get_active_function_name(TSRMLS_C), ce->name);
zend_error(E_CORE_ERROR, "%s::%s() must be derived from %s::%s",
ce->name, get_active_function_name(TSRMLS_C), Z_OBJCE_P(this_ptr)->name, get_active_function_name(TSRMLS_C));
}
return FAILURE;
} else {
if (!zend_check_class(*parameter, ce TSRMLS_CC)) {
if (!quiet) {
zend_error(E_WARNING, "%s() expects parameter 1 to be %s, %s given",
get_active_function_name(TSRMLS_C), ce->name,
zend_zval_type_name(*parameter));
}
return FAILURE;
} else {
*object = *parameter;
}
EG(argument_stack).top_element++;
}
retval = zend_parse_va_args(num_args, p, &va, flags TSRMLS_CC);
va_end(va);
}
va_start(va, object);
retval = zend_parse_va_args(num_args, type_spec, &va, flags TSRMLS_CC);
va_end(va);
EG(argument_stack).top_element = arg_stack;
return retval;
}
/* Argument parsing API -- andrei */
@@ -641,17 +645,60 @@ ZEND_API int _array_init(zval *arg ZEND_FILE_LINE_DC)
{
ALLOC_HASHTABLE_REL(arg->value.ht);
zend_hash_init(arg->value.ht, 0, NULL, ZVAL_PTR_DTOR, 0);
_zend_hash_init(arg->value.ht, 0, NULL, ZVAL_PTR_DTOR, 0 ZEND_FILE_LINE_RELAY_CC);
arg->type = IS_ARRAY;
return SUCCESS;
}
static int zend_merge_property(zval **value, int num_args, va_list args, zend_hash_key *hash_key)
{
/* which name should a numeric property have ? */
if (hash_key->nKeyLength) {
zval *obj = va_arg(args, zval *);
zend_object_handlers *obj_ht = va_arg(args, zend_object_handlers *);
zval member;
TSRMLS_FETCH();
ZVAL_STRINGL(&member, hash_key->arKey, hash_key->nKeyLength-1, 0);
obj_ht->write_property(obj, &member, *value TSRMLS_CC);
}
return ZEND_HASH_APPLY_KEEP;
}
/* This function should be called after the constructor has been called
* because it may call __set from the uninitialized object otherwise. */
ZEND_API void zend_merge_properties(zval *obj, HashTable *properties, int destroy_ht TSRMLS_DC)
{
zend_object_handlers *obj_ht = Z_OBJ_HT_P(obj);
zend_class_entry *old_scope = EG(scope);
EG(scope) = Z_OBJCE_P(obj);
zend_hash_apply_with_arguments(properties, (apply_func_args_t)zend_merge_property, 2, obj, obj_ht);
EG(scope) = old_scope;
if (destroy_ht) {
zend_hash_destroy(properties);
FREE_HASHTABLE(properties);
}
}
/* This function requires 'properties' to contain all props declared in the
* class and all props being public. If only a subset is given or the class
* has protected members then you need to merge the properties seperately by
* calling zend_merge_properties(). */
ZEND_API int _object_and_properties_init(zval *arg, zend_class_entry *class_type, HashTable *properties ZEND_FILE_LINE_DC TSRMLS_DC)
{
zval *tmp;
zend_object *object;
if (class_type->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) {
char *what = class_type->ce_flags & ZEND_ACC_INTERFACE ? "interface" : "abstract class";
zend_error(E_ERROR, "Cannot instantiate %s %s", what, class_type->name);
}
if (!class_type->constants_updated) {
zend_hash_apply_with_argument(&class_type->default_properties, (apply_func_arg_t) zval_update_constant, (void *) 1 TSRMLS_CC);
zend_hash_apply_with_argument(class_type->static_members, (apply_func_arg_t) zval_update_constant, (void *) 1 TSRMLS_CC);
@@ -699,7 +746,7 @@ ZEND_API int add_assoc_long_ex(zval *arg, char *key, uint key_len, long n)
MAKE_STD_ZVAL(tmp);
ZVAL_LONG(tmp, n);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
}
ZEND_API int add_assoc_null_ex(zval *arg, char *key, uint key_len)
@@ -709,7 +756,7 @@ ZEND_API int add_assoc_null_ex(zval *arg, char *key, uint key_len)
MAKE_STD_ZVAL(tmp);
ZVAL_NULL(tmp);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
}
ZEND_API int add_assoc_bool_ex(zval *arg, char *key, uint key_len, int b)
@@ -719,7 +766,7 @@ ZEND_API int add_assoc_bool_ex(zval *arg, char *key, uint key_len, int b)
MAKE_STD_ZVAL(tmp);
ZVAL_BOOL(tmp, b);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
}
ZEND_API int add_assoc_resource_ex(zval *arg, char *key, uint key_len, int r)
@@ -729,7 +776,7 @@ ZEND_API int add_assoc_resource_ex(zval *arg, char *key, uint key_len, int r)
MAKE_STD_ZVAL(tmp);
ZVAL_RESOURCE(tmp, r);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
}
@@ -740,7 +787,7 @@ ZEND_API int add_assoc_double_ex(zval *arg, char *key, uint key_len, double d)
MAKE_STD_ZVAL(tmp);
ZVAL_DOUBLE(tmp, d);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
}
@@ -751,7 +798,7 @@ ZEND_API int add_assoc_string_ex(zval *arg, char *key, uint key_len, char *str,
MAKE_STD_ZVAL(tmp);
ZVAL_STRING(tmp, str, duplicate);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
}
@@ -762,12 +809,12 @@ ZEND_API int add_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *str,
MAKE_STD_ZVAL(tmp);
ZVAL_STRINGL(tmp, str, length, duplicate);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
}
ZEND_API int add_assoc_zval_ex(zval *arg, char *key, uint key_len, zval *value)
{
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &value, sizeof(zval *), NULL);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &value, sizeof(zval *), NULL);
}
@@ -943,7 +990,7 @@ ZEND_API int add_get_assoc_string_ex(zval *arg, char *key, uint key_len, char *s
MAKE_STD_ZVAL(tmp);
ZVAL_STRING(tmp, str, duplicate);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), dest);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), dest);
}
@@ -954,7 +1001,7 @@ ZEND_API int add_get_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *
MAKE_STD_ZVAL(tmp);
ZVAL_STRINGL(tmp, str, length, duplicate);
return zend_hash_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), dest);
return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), dest);
}
@@ -1116,27 +1163,62 @@ ZEND_API int add_property_zval_ex(zval *arg, char *key, uint key_len, zval *valu
return SUCCESS;
}
ZEND_API int zend_register_module_ex(zend_module_entry *module TSRMLS_DC)
{
int name_len;
char *lcname;
zend_module_entry *module_ptr;
if (!module) {
return FAILURE;
}
#if 0
zend_printf("%s: Registering module %d\n", module->name, module->module_number);
#endif
name_len = strlen(module->name);
lcname = zend_str_tolower_dup(module->name, name_len);
if (zend_hash_add(&module_registry, lcname, name_len+1, (void *)module, sizeof(zend_module_entry), (void**)&module_ptr)==FAILURE) {
zend_error(E_CORE_WARNING, "Module '%s' already loaded", module->name);
efree(lcname);
return FAILURE;
}
efree(lcname);
module = module_ptr;
if (module->functions && zend_register_functions(NULL, module->functions, NULL, module->type TSRMLS_CC)==FAILURE) {
zend_error(E_CORE_WARNING,"%s: Unable to register functions, unable to load", module->name);
return FAILURE;
}
if (!module->module_started && module->module_startup_func) {
EG(current_module) = module;
if (module->module_startup_func(module->type, module->module_number TSRMLS_CC)==FAILURE) {
zend_error(E_CORE_ERROR,"Unable to start %s module", module->name);
EG(current_module) = NULL;
return FAILURE;
}
EG(current_module) = NULL;
}
module->module_started=1;
return SUCCESS;
}
ZEND_API int zend_startup_module(zend_module_entry *module)
{
if (module) {
module->module_number = zend_next_free_module();
if (module->module_startup_func) {
TSRMLS_FETCH();
TSRMLS_FETCH();
if (module->module_startup_func(MODULE_PERSISTENT, module->module_number TSRMLS_CC)==FAILURE) {
zend_error(E_CORE_ERROR,"Unable to start %s module", module->name);
return FAILURE;
}
}
module->type = MODULE_PERSISTENT;
zend_register_module(module);
}
return SUCCESS;
module->module_number = zend_next_free_module();
module->type = MODULE_PERSISTENT;
return zend_register_module_ex(module TSRMLS_CC);
}
/* registers all functions in *library_functions in the function hash */
int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC)
ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC)
{
zend_function_entry *ptr = functions;
zend_function function, *reg_function;
@@ -1161,15 +1243,58 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
while (ptr->fname) {
internal_function->handler = ptr->handler;
internal_function->arg_types = ptr->func_arg_types;
internal_function->function_name = ptr->fname;
internal_function->scope = scope;
internal_function->fn_flags = ZEND_ACC_PUBLIC;
internal_function->prototype = NULL;
if (!internal_function->handler) {
zend_error(error_type, "Null function defined as active function");
zend_unregister_functions(functions, count, target_function_table TSRMLS_CC);
return FAILURE;
if (ptr->arg_info) {
internal_function->arg_info = ptr->arg_info+1;
internal_function->num_args = ptr->num_args;
/* Currently you cannot denote that the function can accept less arguments than num_args */
if (ptr->arg_info[0].required_num_args == -1) {
internal_function->required_num_args = ptr->num_args;
} else {
internal_function->required_num_args = ptr->arg_info[0].required_num_args;
}
internal_function->pass_rest_by_reference = ptr->arg_info[0].pass_by_reference;
internal_function->return_reference = ptr->arg_info[0].return_reference;
} else {
internal_function->arg_info = NULL;
internal_function->num_args = 0;
internal_function->required_num_args = 0;
internal_function->pass_rest_by_reference = 0;
internal_function->return_reference = 0;
}
if (ptr->flags) {
if (!(ptr->flags & ZEND_ACC_PPP_MASK)) {
zend_error(error_type, "Invalid access level for %s%s%s() - access must be exactly one of public, protected or private", scope ? scope->name : "", scope ? "::" : "", ptr->fname);
internal_function->fn_flags |= ZEND_ACC_PUBLIC;
} else {
internal_function->fn_flags = ptr->flags;
}
} else {
internal_function->fn_flags = ZEND_ACC_PUBLIC;
}
if (ptr->flags & ZEND_ACC_ABSTRACT) {
if (scope) {
/* This is a class that must be abstract itself. Here we set the check info. */
scope->ce_flags |= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS;
if (!(scope->ce_flags & ZEND_ACC_INTERFACE)) {
/* Since the class is not an interface it needs to be declared as a abstract class. */
/* Since here we are handling internal functions only we can add the keyword flag. */
/* This time we set the flag for the keyword 'abstratc'. */
scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS;
}
}
} else {
if (scope && (scope->ce_flags & ZEND_ACC_INTERFACE)) {
zend_error(error_type, "Interface %s cannot contain non abstract method %s()", scope->name, ptr->fname);
return FAILURE;
}
if (!internal_function->handler) {
zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : "", scope ? "::" : "", ptr->fname);
zend_unregister_functions(functions, count, target_function_table TSRMLS_CC);
return FAILURE;
}
}
fname_len = strlen(ptr->fname);
lowercase_name = do_alloca(fname_len+1);
@@ -1190,6 +1315,10 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
ctor = reg_function;
} else if (!strcmp(ptr->fname, ZEND_DESTRUCTOR_FUNC_NAME)) {
dtor = reg_function;
if (internal_function->num_args) {
zend_error(error_type, "Destructor %s::%s() cannot take arguments", scope->name, ptr->fname);
}
} else if (!strcmp(ptr->fname, ZEND_CLONE_FUNC_NAME)) {
clone = reg_function;
}
@@ -1212,6 +1341,27 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
scope->constructor = ctor;
scope->destructor = dtor;
scope->clone = clone;
if (ctor) {
ctor->common.fn_flags |= ZEND_ACC_CTOR;
if (ctor->common.fn_flags & ZEND_ACC_STATIC) {
zend_error(error_type, "Constructor %s::%s cannot be static", ctor->common.scope->name, ctor->common.function_name);
}
ctor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC;
}
if (dtor) {
dtor->common.fn_flags |= ZEND_ACC_DTOR;
if (dtor->common.fn_flags & ZEND_ACC_STATIC) {
zend_error(error_type, "Destructor %s::%s cannot be static", dtor->common.scope->name, dtor->common.function_name);
}
dtor->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC;
}
if (clone) {
clone->common.fn_flags |= ZEND_ACC_CLONE;
if (clone->common.fn_flags & ZEND_ACC_STATIC) {
zend_error(error_type, "Constructor %s::%s cannot be static", clone->common.scope->name, clone->common.function_name);
}
clone->common.fn_flags &= ~ZEND_ACC_ALLOW_STATIC;
}
}
return SUCCESS;
}
@@ -1219,7 +1369,7 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
/* count=-1 means erase all functions, otherwise,
* erase the first count functions
*/
void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC)
ZEND_API void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC)
{
zend_function_entry *ptr = functions;
int i=0;
@@ -1245,16 +1395,16 @@ void zend_unregister_functions(zend_function_entry *functions, int count, HashTa
ZEND_API int zend_register_module(zend_module_entry *module)
{
TSRMLS_FETCH();
return zend_register_module_ex(module TSRMLS_CC);
}
#if 0
zend_printf("%s: Registering module %d\n", module->name, module->module_number);
#endif
if (module->functions && zend_register_functions(NULL, module->functions, NULL, module->type TSRMLS_CC)==FAILURE) {
zend_error(E_CORE_WARNING,"%s: Unable to register functions, unable to load", module->name);
return FAILURE;
}
module->module_started=1;
return zend_hash_add(&module_registry, module->name, strlen(module->name)+1, (void *)module, sizeof(zend_module_entry), NULL);
ZEND_API int zend_get_module_started(char *module_name)
{
zend_module_entry *module;
return (zend_hash_find(&module_registry, module_name, strlen(module_name)+1, (void**)&module) == SUCCESS && module->module_started) ? SUCCESS : FAILURE;
}
@@ -1265,8 +1415,9 @@ void module_destructor(zend_module_entry *module)
if (module->type == MODULE_TEMPORARY) {
zend_clean_module_rsrc_dtors(module->module_number TSRMLS_CC);
clean_module_constants(module->module_number TSRMLS_CC);
if (module->request_shutdown_func)
if (module->request_shutdown_func) {
module->request_shutdown_func(module->type, module->module_number TSRMLS_CC);
}
}
if (module->module_started && module->module_shutdown_func) {
@@ -1333,6 +1484,27 @@ int zend_next_free_module(void)
return ++module_count;
}
static zend_class_entry *do_register_internal_class(zend_class_entry *orig_class_entry, zend_uint ce_flags TSRMLS_DC)
{
zend_class_entry *class_entry = malloc(sizeof(zend_class_entry));
char *lowercase_name = malloc(orig_class_entry->name_length + 1);
*class_entry = *orig_class_entry;
class_entry->type = ZEND_INTERNAL_CLASS;
zend_initialize_class_data(class_entry, 0 TSRMLS_CC);
class_entry->ce_flags = ce_flags;
class_entry->module = EG(current_module);
if (class_entry->builtin_functions) {
zend_register_functions(class_entry, class_entry->builtin_functions, &class_entry->function_table, MODULE_PERSISTENT TSRMLS_CC);
}
zend_str_tolower_copy(lowercase_name, orig_class_entry->name, class_entry->name_length);
zend_hash_update(CG(class_table), lowercase_name, class_entry->name_length+1, &class_entry, sizeof(zend_class_entry *), NULL);
free(lowercase_name);
return class_entry;
}
/* If parent_ce is not NULL then it inherits from parent_ce
* If parent_ce is NULL and parent_name isn't then it looks for the parent and inherits from it
* If both parent_ce and parent_name are NULL it does a regular class registration
@@ -1354,28 +1526,41 @@ ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *cla
register_class = zend_register_internal_class(class_entry TSRMLS_CC);
if (parent_ce) {
zend_do_inheritance(register_class, parent_ce);
zend_do_inheritance(register_class, parent_ce TSRMLS_CC);
}
return register_class;
}
ZEND_API void zend_class_implements(zend_class_entry *class_entry TSRMLS_DC, int num_interfaces, ...)
{
zend_class_entry *interface_entry;
va_list interface_list;
if (class_entry->type & ZEND_INTERNAL_CLASS) {
class_entry->interfaces = realloc(class_entry->interfaces, sizeof(zend_class_entry*) * (class_entry->num_interfaces+num_interfaces));
} else {
class_entry->interfaces = erealloc(class_entry->interfaces, sizeof(zend_class_entry*) * (class_entry->num_interfaces+num_interfaces));
}
va_start(interface_list, num_interfaces);
while (num_interfaces--) {
interface_entry = va_arg(interface_list, zend_class_entry *);
class_entry->interfaces[class_entry->num_interfaces++] = interface_entry;
zend_do_implement_interface(class_entry, interface_entry TSRMLS_CC);
}
va_end(interface_list);
}
/* A class that contains at least one abstract method automatically becomes an abstract class.
*/
ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *orig_class_entry TSRMLS_DC)
{
zend_class_entry *class_entry = malloc(sizeof(zend_class_entry));
char *lowercase_name = malloc(orig_class_entry->name_length + 1);
*class_entry = *orig_class_entry;
return do_register_internal_class(orig_class_entry, 0 TSRMLS_CC);
}
class_entry->type = ZEND_INTERNAL_CLASS;
zend_initialize_class_data(class_entry, 0 TSRMLS_CC);
if (class_entry->builtin_functions) {
zend_register_functions(class_entry, class_entry->builtin_functions, &class_entry->function_table, MODULE_PERSISTENT TSRMLS_CC);
}
zend_str_tolower_copy(lowercase_name, orig_class_entry->name, class_entry->name_length);
zend_hash_update(CG(class_table), lowercase_name, class_entry->name_length+1, &class_entry, sizeof(zend_class_entry *), NULL);
free(lowercase_name);
return class_entry;
ZEND_API zend_class_entry *zend_register_internal_interface(zend_class_entry *orig_class_entry TSRMLS_DC)
{
return do_register_internal_class(orig_class_entry, ZEND_ACC_INTERFACE TSRMLS_CC);
}
ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length,
@@ -1454,7 +1639,7 @@ ZEND_API int zend_disable_class(char *class_name, uint class_name_length TSRMLS_
return 1;
}
zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callable_name)
ZEND_API zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callable_name)
{
char *lcname;
zend_bool retval = 0;
@@ -1462,15 +1647,17 @@ zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callabl
switch (Z_TYPE_P(callable)) {
case IS_STRING:
if (callable_name)
if (callable_name) {
*callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable));
if (syntax_only)
}
if (syntax_only) {
return 1;
}
lcname = zend_str_tolower_dup(Z_STRVAL_P(callable), Z_STRLEN_P(callable));
if (zend_hash_exists(EG(function_table), lcname, Z_STRLEN_P(callable)+1))
if (zend_hash_exists(EG(function_table), lcname, Z_STRLEN_P(callable)+1)) {
retval = 1;
}
efree(lcname);
break;
@@ -1505,17 +1692,17 @@ zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callabl
lcname = zend_str_tolower_dup(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj));
if(EG(active_op_array) && strcmp(lcname, "self") == 0) {
if (EG(active_op_array) && strcmp(lcname, "self") == 0) {
ce = EG(active_op_array)->scope;
} else if(strcmp(lcname, "parent") == 0 && EG(active_op_array) && EG(active_op_array)->scope) {
} else if (strcmp(lcname, "parent") == 0 && EG(active_op_array) && EG(active_op_array)->scope) {
ce = EG(active_op_array)->scope->parent;
} else if (zend_lookup_class(lcname, Z_STRLEN_PP(obj), &pce TSRMLS_CC) == SUCCESS) {
} else if (zend_lookup_class(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj), &pce TSRMLS_CC) == SUCCESS) {
ce = *pce;
}
efree(lcname);
} else {
ce = Z_OBJCE_PP(obj); /* ??? */
ce = Z_OBJCE_PP(obj); /* TBFixed: what if it's overloaded? */
if (callable_name) {
char *ptr;
@@ -1535,12 +1722,18 @@ zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callabl
if (ce) {
lcname = zend_str_tolower_dup(Z_STRVAL_PP(method), Z_STRLEN_PP(method));
if (zend_hash_exists(&ce->function_table, lcname, Z_STRLEN_PP(method)+1))
if (zend_hash_exists(&ce->function_table, lcname, Z_STRLEN_PP(method)+1)) {
retval = 1;
}
/* check for __call too */
if (retval == 0 && ce->__call != 0) {
retval = 1;
}
efree(lcname);
}
} else if (callable_name)
} else if (callable_name) {
*callable_name = estrndup("Array", sizeof("Array")-1);
}
}
break;
@@ -1559,6 +1752,34 @@ zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callabl
return retval;
}
ZEND_API zend_bool zend_make_callable(zval *callable, char **callable_name TSRMLS_DC)
{
char *lcname, *func;
zend_bool retval = 0;
if (zend_is_callable(callable, 0, callable_name)) {
return 1;
}
switch (Z_TYPE_P(callable)) {
case IS_STRING:
lcname = zend_str_tolower_dup(Z_STRVAL_P(callable), Z_STRLEN_P(callable));
if ((func = strstr(lcname, "::")) != NULL) {
zval_dtor(callable);
array_init(callable);
add_next_index_stringl(callable, lcname, func - lcname, 1);
func += 2;
add_next_index_stringl(callable, func, strlen(func), 1);
retval = 1;
}
efree(lcname);
break;
}
return retval;
}
ZEND_API char *zend_get_module_version(char *module_name)
{
zend_module_entry *module;
@@ -1570,6 +1791,184 @@ ZEND_API char *zend_get_module_version(char *module_name)
return module->version;
}
ZEND_API int zend_declare_property(zend_class_entry *ce, char *name, int name_length, zval *property, int access_type TSRMLS_DC)
{
zend_property_info property_info;
HashTable *target_symbol_table;
if (!(access_type & ZEND_ACC_PPP_MASK)) {
access_type |= ZEND_ACC_PUBLIC;
}
if (access_type & ZEND_ACC_STATIC) {
target_symbol_table = ce->static_members;
} else {
target_symbol_table = &ce->default_properties;
}
if (ce->type & ZEND_INTERNAL_CLASS) {
switch(Z_TYPE_P(property)) {
case IS_ARRAY:
case IS_CONSTANT_ARRAY:
case IS_OBJECT:
case IS_RESOURCE:
zend_error(E_CORE_ERROR, "Internal zval's can't be arrays, objects or resources");
break;
default:
break;
}
}
switch (access_type & ZEND_ACC_PPP_MASK) {
case ZEND_ACC_PRIVATE: {
char *priv_name;
int priv_name_length;
zend_mangle_property_name(&priv_name, &priv_name_length, ce->name, ce->name_length, name, name_length, ce->type & ZEND_INTERNAL_CLASS);
zend_hash_update(target_symbol_table, priv_name, priv_name_length+1, &property, sizeof(zval *), NULL);
property_info.name = priv_name;
property_info.name_length = priv_name_length;
}
break;
case ZEND_ACC_PROTECTED: {
char *prot_name;
int prot_name_length;
zend_mangle_property_name(&prot_name, &prot_name_length, "*", 1, name, name_length, ce->type & ZEND_INTERNAL_CLASS);
zend_hash_update(target_symbol_table, prot_name, prot_name_length+1, &property, sizeof(zval *), NULL);
property_info.name = prot_name;
property_info.name_length = prot_name_length;
}
break;
case ZEND_ACC_PUBLIC:
if (ce->parent) {
char *prot_name;
int prot_name_length;
zend_mangle_property_name(&prot_name, &prot_name_length, "*", 1, name, name_length, ce->type & ZEND_INTERNAL_CLASS);
zend_hash_del(target_symbol_table, prot_name, prot_name_length+1);
pefree(prot_name, ce->type & ZEND_INTERNAL_CLASS);
}
zend_hash_update(target_symbol_table, name, name_length+1, &property, sizeof(zval *), NULL);
property_info.name = ce->type & ZEND_INTERNAL_CLASS ? zend_strndup(name, name_length) : estrndup(name, name_length);
property_info.name_length = name_length;
break;
}
property_info.flags = access_type;
property_info.h = zend_get_hash_value(property_info.name, property_info.name_length+1);
zend_hash_update(&ce->properties_info, name, name_length + 1, &property_info, sizeof(zend_property_info), NULL);
return SUCCESS;
}
ZEND_API int zend_declare_property_null(zend_class_entry *ce, char *name, int name_length, int access_type TSRMLS_DC)
{
zval *property;
if (ce->type & ZEND_INTERNAL_CLASS) {
property = malloc(sizeof(zval));
} else {
ALLOC_ZVAL(property);
}
INIT_ZVAL(*property);
return zend_declare_property(ce, name, name_length, property, access_type TSRMLS_CC);
}
ZEND_API int zend_declare_property_long(zend_class_entry *ce, char *name, int name_length, long value, int access_type TSRMLS_DC)
{
zval *property;
if (ce->type & ZEND_INTERNAL_CLASS) {
property = malloc(sizeof(zval));
} else {
ALLOC_ZVAL(property);
}
INIT_PZVAL(property);
ZVAL_LONG(property, value);
return zend_declare_property(ce, name, name_length, property, access_type TSRMLS_CC);
}
ZEND_API int zend_declare_property_string(zend_class_entry *ce, char *name, int name_length, char *value, int access_type TSRMLS_DC)
{
zval *property;
int len = strlen(value);
if (ce->type & ZEND_INTERNAL_CLASS) {
property = malloc(sizeof(zval));
ZVAL_STRINGL(property, zend_strndup(value, len), len, 0);
} else {
ALLOC_ZVAL(property);
ZVAL_STRINGL(property, value, len, 1);
}
INIT_PZVAL(property);
return zend_declare_property(ce, name, name_length, property, access_type TSRMLS_CC);
}
ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, char *name, int name_length, zval *value TSRMLS_DC)
{
zval property;
zend_class_entry *old_scope = EG(scope);
EG(scope) = scope;
if (!Z_OBJ_HT_P(object)->write_property) {
zend_error(E_CORE_ERROR, "Property %s of class %s cannot be updated", Z_OBJCE_P(object)->name, name);
}
ZVAL_STRINGL(&property, name, name_length, 0);
Z_OBJ_HT_P(object)->write_property(object, &property, value TSRMLS_CC);
EG(scope) = old_scope;
}
ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, char *name, int name_length TSRMLS_DC)
{
zval *tmp;
ALLOC_ZVAL(tmp);
tmp->is_ref = 0;
tmp->refcount = 0;
ZVAL_NULL(tmp);
zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC);
}
ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, char *name, int name_length, long value TSRMLS_DC)
{
zval *tmp;
ALLOC_ZVAL(tmp);
tmp->is_ref = 0;
tmp->refcount = 0;
ZVAL_LONG(tmp, value);
zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC);
}
ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, char *name, int name_length, char *value TSRMLS_DC)
{
zval *tmp;
ALLOC_ZVAL(tmp);
tmp->is_ref = 0;
tmp->refcount = 0;
ZVAL_STRING(tmp, value, 1);
zend_update_property(scope, object, name, name_length, tmp TSRMLS_CC);
}
ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, char *name, int name_length, zend_bool silent TSRMLS_DC)
{
zval property, *value;
zend_class_entry *old_scope = EG(scope);
EG(scope) = scope;
if (!Z_OBJ_HT_P(object)->read_property) {
zend_error(E_CORE_ERROR, "Property %s of class %s cannot be read", Z_OBJCE_P(object)->name, name);
}
ZVAL_STRINGL(&property, name, name_length, 0);
value = Z_OBJ_HT_P(object)->read_property(object, &property, silent TSRMLS_CC);
EG(scope) = old_scope;
return value;
}
/*
* Local variables:
* tab-width: 4
+123 -18
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -32,22 +32,47 @@
BEGIN_EXTERN_C()
#define ZEND_FN(name) zif_##name
#define ZEND_NAMED_FUNCTION(name) void name(INTERNAL_FUNCTION_PARAMETERS)
#define ZEND_FUNCTION(name) ZEND_NAMED_FUNCTION(ZEND_FN(name))
#define ZEND_METHOD(class, name) ZEND_NAMED_FUNCTION(ZEND_FN(class##_##name))
#define ZEND_NAMED_FE(zend_name, name, arg_types) { #zend_name, name, arg_types },
#define ZEND_FE(name, arg_types) ZEND_NAMED_FE(name, ZEND_FN(name), arg_types)
#define ZEND_FALIAS(name, alias, arg_types) ZEND_NAMED_FE(name, ZEND_FN(alias), arg_types)
#define ZEND_STATIC_FE(name, impl_name, arg_types) { name, impl_name, arg_types },
#define ZEND_ME(class, name, arg_types) ZEND_NAMED_FE(name, ZEND_FN(class##_##name), arg_types)
typedef struct _zend_function_entry {
char *fname;
void (*handler)(INTERNAL_FUNCTION_PARAMETERS);
struct _zend_arg_info *arg_info;
zend_uint num_args;
zend_uint flags;
} zend_function_entry;
#define ZEND_FN(name) zif_##name
#define ZEND_NAMED_FUNCTION(name) void name(INTERNAL_FUNCTION_PARAMETERS)
#define ZEND_FUNCTION(name) ZEND_NAMED_FUNCTION(ZEND_FN(name))
#define ZEND_METHOD(classname, name) ZEND_NAMED_FUNCTION(ZEND_FN(classname##_##name))
#define ZEND_FENTRY(zend_name, name, arg_info, flags) { #zend_name, name, arg_info, (zend_uint) (sizeof(arg_info)/sizeof(struct _zend_arg_info)-1), flags },
#define ZEND_NAMED_FE(zend_name, name, arg_info) ZEND_FENTRY(zend_name, name, arg_info, 0)
#define ZEND_FE(name, arg_info) ZEND_FENTRY(name, ZEND_FN(name), arg_info, 0)
#define ZEND_FALIAS(name, alias, arg_info) ZEND_FENTRY(name, ZEND_FN(alias), arg_info, 0)
#define ZEND_ME(classname, name, arg_info, flags) ZEND_FENTRY(name, ZEND_FN(classname##_##name), arg_info, flags)
#define ZEND_ABSTRACT_ME(classname, name, arg_info) ZEND_FENTRY(name, NULL, arg_info, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
#define ZEND_MALIAS(classname, name, alias, arg_info, flags) \
ZEND_FENTRY(name, ZEND_FN(classname##_##alias), arg_info, flags)
#define ZEND_ME_MAPPING(name, func_name, arg_types) ZEND_NAMED_FE(name, ZEND_FN(func_name), arg_types)
#define ZEND_ARG_INFO(pass_by_ref, name) { #name, sizeof(#name)-1, NULL, 0, 0, pass_by_ref, 0, 0 },
#define ZEND_ARG_PASS_INFO(pass_by_ref) { NULL, 0, NULL, 0, 0, pass_by_ref, 0, 0 },
#define ZEND_ARG_OBJ_INFO(pass_by_ref, name, classname, allow_null) { #name, sizeof(#name)-1, #classname, sizeof(#classname)-1, allow_null, pass_by_ref, 0, 0 },
#define ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, return_reference, required_num_args) \
zend_arg_info name[] = { \
{ NULL, 0, NULL, 0, 0, pass_rest_by_reference, return_reference, required_num_args },
#define ZEND_BEGIN_ARG_INFO(name, pass_rest_by_reference) \
ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_REFERENCE_AGNOSTIC, -1)
#define ZEND_END_ARG_INFO() };
/* Name macros */
#define ZEND_MODULE_STARTUP_N(module) zm_startup_##module
#define ZEND_MODULE_SHUTDOWN_N(module) zm_shutdown_##module
#define ZEND_MODULE_ACTIVATE_N(module) zm_activate_##module
#define ZEND_MODULE_DEACTIVATE_N(module) zm_deactivate_##module
#define ZEND_MODULE_POST_ZEND_DEACTIVATE_N(module) zm_post_zend_deactivate_##module
#define ZEND_MODULE_INFO_N(module) zm_info_##module
/* Declaration macros */
@@ -55,6 +80,7 @@ BEGIN_EXTERN_C()
#define ZEND_MODULE_SHUTDOWN_D(module) int ZEND_MODULE_SHUTDOWN_N(module)(SHUTDOWN_FUNC_ARGS)
#define ZEND_MODULE_ACTIVATE_D(module) int ZEND_MODULE_ACTIVATE_N(module)(INIT_FUNC_ARGS)
#define ZEND_MODULE_DEACTIVATE_D(module) int ZEND_MODULE_DEACTIVATE_N(module)(SHUTDOWN_FUNC_ARGS)
#define ZEND_MODULE_POST_ZEND_DEACTIVATE_D(module) int ZEND_MODULE_POST_ZEND_DEACTIVATE_N(module)(void)
#define ZEND_MODULE_INFO_D(module) void ZEND_MODULE_INFO_N(module)(ZEND_MODULE_INFO_FUNC_ARGS)
#define ZEND_GET_MODULE(name) \
@@ -100,14 +126,21 @@ BEGIN_EXTERN_C()
class_container.destructor = NULL; \
class_container.clone = NULL; \
class_container.create_object = NULL; \
class_container.interface_gets_implemented = NULL; \
class_container.__call = handle_fcall; \
class_container.__get = handle_propget; \
class_container.__set = handle_propset; \
class_container.num_interfaces = 0; \
class_container.parent = NULL; \
class_container.num_interfaces = 0; \
class_container.interfaces = NULL; \
class_container.get_iterator = NULL; \
class_container.iterator_funcs.funcs = NULL; \
class_container.module = NULL; \
}
int zend_next_free_module(void);
BEGIN_EXTERN_C()
ZEND_API int zend_get_parameters(int ht, int param_count, ...);
ZEND_API int _zend_get_parameters_array(int ht, int param_count, zval **argument_array TSRMLS_DC);
ZEND_API int zend_get_parameters_ex(int param_count, ...);
@@ -127,23 +160,39 @@ ZEND_API int zend_parse_parameters_ex(int flags, int num_args TSRMLS_DC, char *t
ZEND_API char *zend_zval_type_name(zval *arg);
ZEND_API int zend_parse_method_parameters(int num_args TSRMLS_DC, zval *this_ptr, char *type_spec, ...);
ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC, zval *this_ptr, char *type_spec, zend_class_entry *ce, void **object, ...);
ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC, zval *this_ptr, char *type_spec, ...);
/* End of parameter parsing API -- andrei */
int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC);
void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC);
ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC);
ZEND_API void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC);
ZEND_API int zend_register_module(zend_module_entry *module_entry);
ZEND_API int zend_register_module_ex(zend_module_entry *module TSRMLS_DC);
ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_entry TSRMLS_DC);
ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce, char *parent_name TSRMLS_DC);
ZEND_API zend_class_entry *zend_register_internal_interface(zend_class_entry *orig_class_entry TSRMLS_DC);
ZEND_API void zend_class_implements(zend_class_entry *class_entry TSRMLS_DC, int num_interfaces, ...);
ZEND_API int zend_disable_function(char *function_name, uint function_name_length TSRMLS_DC);
ZEND_API int zend_disable_class(char *class_name, uint class_name_length TSRMLS_DC);
ZEND_API void zend_wrong_param_count(TSRMLS_D);
ZEND_API zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callable_name);
ZEND_API zend_bool zend_make_callable(zval *callable, char **callable_name TSRMLS_DC);
ZEND_API char *zend_get_module_version(char *module_name);
ZEND_API int zend_get_module_started(char *module_name);
ZEND_API int zend_declare_property(zend_class_entry *ce, char *name, int name_length, zval *property, int access_type TSRMLS_DC);
ZEND_API int zend_declare_property_null(zend_class_entry *ce, char *name, int name_length, int access_type TSRMLS_DC);
ZEND_API int zend_declare_property_long(zend_class_entry *ce, char *name, int name_length, long value, int access_type TSRMLS_DC);
ZEND_API int zend_declare_property_string(zend_class_entry *ce, char *name, int name_length, char *value, int access_type TSRMLS_DC);
ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, char *name, int name_length, zval *value TSRMLS_DC);
ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, char *name, int name_length TSRMLS_DC);
ZEND_API void zend_update_property_long(zend_class_entry *scope, zval *object, char *name, int name_length, long value TSRMLS_DC);
ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, char *name, int name_length, char *value TSRMLS_DC);
ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, char *name, int name_length, zend_bool silent TSRMLS_DC);
ZEND_API zend_class_entry *zend_get_class_entry(zval *zobject TSRMLS_DC);
@@ -171,6 +220,8 @@ ZEND_API int _object_init(zval *arg ZEND_FILE_LINE_DC TSRMLS_DC);
ZEND_API int _object_init_ex(zval *arg, zend_class_entry *ce ZEND_FILE_LINE_DC TSRMLS_DC);
ZEND_API int _object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *properties ZEND_FILE_LINE_DC TSRMLS_DC);
ZEND_API void zend_merge_properties(zval *obj, HashTable *properties, int destroy_ht TSRMLS_DC);
/* no longer supported */
ZEND_API int add_assoc_function(zval *arg, char *key, void (*function_ptr)(INTERNAL_FUNCTION_PARAMETERS));
@@ -245,9 +296,35 @@ ZEND_API int add_property_zval_ex(zval *arg, char *key, uint key_len, zval *valu
#define add_property_stringl(__arg, __key, __str, __length, __duplicate) add_property_stringl_ex(__arg, __key, strlen(__key)+1, __str, __length, __duplicate TSRMLS_CC)
#define add_property_zval(__arg, __key, __value) add_property_zval_ex(__arg, __key, strlen(__key)+1, __value TSRMLS_CC)
ZEND_API int call_user_function(HashTable *function_table, zval **object_pp, zval *function_name, zval *retval_ptr, int param_count, zval *params[] TSRMLS_DC);
ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, int param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC);
ZEND_API int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, int param_count, zval **params[], int no_separation, HashTable *symbol_table, zend_function **function_pointer TSRMLS_DC);
ZEND_API int call_user_function(HashTable *function_table, zval **object_pp, zval *function_name, zval *retval_ptr, zend_uint param_count, zval *params[] TSRMLS_DC);
ZEND_API int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC);
END_EXTERN_C()
typedef struct _zend_fcall_info {
size_t size;
HashTable *function_table;
zval *function_name;
HashTable *symbol_table;
zval **retval_ptr_ptr;
zend_uint param_count;
zval ***params;
zval **object_pp;
zend_bool no_separation;
} zend_fcall_info;
typedef struct _zend_fcall_info_cache {
zend_bool initialized;
zend_function *function_handler;
zend_class_entry *calling_scope;
zval **object_pp;
} zend_fcall_info_cache;
BEGIN_EXTERN_C()
ZEND_API extern zend_fcall_info_cache empty_fcall_info_cache;
ZEND_API int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TSRMLS_DC);
ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length,
zend_bool is_ref, int num_symbol_tables, ...);
@@ -256,6 +333,7 @@ ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length,
ZEND_API ZEND_FUNCTION(display_disabled_function);
ZEND_API ZEND_FUNCTION(display_disabled_class);
END_EXTERN_C()
#if ZEND_DEBUG
#define CHECK_ZVAL_STRING(z) \
@@ -274,7 +352,7 @@ ZEND_API ZEND_FUNCTION(display_disabled_class);
#define ZVAL_BOOL(z, b) { \
(z)->type = IS_BOOL; \
(z)->value.lval = b; \
(z)->value.lval = ((b) != 0); \
}
#define ZVAL_NULL(z) { \
@@ -311,6 +389,24 @@ ZEND_API ZEND_FUNCTION(display_disabled_class);
(z)->type = IS_STRING; \
}
#define ZVAL_ZVAL(z, zv, copy, dtor) { \
int is_ref, refcount; \
is_ref = (z)->is_ref; \
refcount = (z)->refcount; \
*(z) = *(zv); \
if (copy) { \
zval_copy_ctor(z); \
} \
if (dtor) { \
if (!copy) { \
ZVAL_NULL(zv); \
} \
zval_ptr_dtor(&zv); \
} \
(z)->is_ref = is_ref; \
(z)->refcount = refcount; \
}
#define ZVAL_FALSE(z) ZVAL_BOOL(z, 0)
#define ZVAL_TRUE(z) ZVAL_BOOL(z, 1)
@@ -322,6 +418,7 @@ ZEND_API ZEND_FUNCTION(display_disabled_class);
#define RETVAL_STRING(s, duplicate) ZVAL_STRING(return_value, s, duplicate)
#define RETVAL_STRINGL(s, l, duplicate) ZVAL_STRINGL(return_value, s, l, duplicate)
#define RETVAL_EMPTY_STRING() ZVAL_EMPTY_STRING(return_value)
#define RETVAL_ZVAL(zv, copy, dtor) ZVAL_ZVAL(return_value, zv, copy, dtor)
#define RETVAL_FALSE ZVAL_BOOL(return_value, 0)
#define RETVAL_TRUE ZVAL_BOOL(return_value, 1)
@@ -333,6 +430,7 @@ ZEND_API ZEND_FUNCTION(display_disabled_class);
#define RETURN_STRING(s, duplicate) { RETVAL_STRING(s, duplicate); return; }
#define RETURN_STRINGL(s, l, duplicate) { RETVAL_STRINGL(s, l, duplicate); return; }
#define RETURN_EMPTY_STRING() { RETVAL_EMPTY_STRING(); return; }
#define RETURN_ZVAL(zv, copy, dtor) { RETVAL_ZVAL(zv, copy, dtor); return; }
#define RETURN_FALSE { RETVAL_FALSE; return; }
#define RETURN_TRUE { RETVAL_TRUE; return; }
@@ -411,6 +509,13 @@ ZEND_API ZEND_FUNCTION(display_disabled_class);
#define ZEND_SET_GLOBAL_VAR_WITH_LENGTH(name, name_length, var, _refcount, _is_ref) \
ZEND_SET_SYMBOL_WITH_LENGTH(&EG(symbol_table), name, name_length, var, _refcount, _is_ref)
#define ZEND_DEFINE_PROPERTY(class_ptr, name, value, mask) \
{ \
char *_name = (name); \
int namelen = strlen(_name); \
zend_declare_property(class_ptr, _name, namelen, value, mask TSRMLS_CC); \
}
#define HASH_OF(p) ((p)->type==IS_ARRAY ? (p)->value.ht : (((p)->type==IS_OBJECT ? Z_OBJ_HT_P(p)->get_properties((p) TSRMLS_CC) : NULL)))
#define ZVAL_IS_NULL(z) ((z)->type==IS_NULL)
+74 -70
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -38,7 +38,7 @@ ZEND_API zend_alloc_globals alloc_globals;
#ifdef ZEND_MM
#define ZEND_DISABLE_MEMORY_CACHE 1
#define ZEND_DISABLE_MEMORY_CACHE 0
#else
#define ZEND_DISABLE_MEMORY_CACHE 0
#endif
@@ -75,12 +75,12 @@ static long mem_block_end_magic = MEM_BLOCK_END_MAGIC;
#define _CHECK_MEMORY_LIMIT(s, rs, file, lineno) { AG(allocated_memory) += rs;\
if (AG(memory_limit)<AG(allocated_memory)) {\
int php_mem_limit = AG(memory_limit); \
if (AG(memory_limit)+1048576 > AG(allocated_memory) - rs) { \
if (EG(in_execution) && AG(memory_limit)+1048576 > AG(allocated_memory) - rs) { \
AG(memory_limit) = AG(allocated_memory) + 1048576; \
if (file) { \
zend_error(E_ERROR,"Allowed memory size of %d bytes exhausted (tried to allocate %d bytes)", php_mem_limit, s); \
} else { \
zend_error(E_ERROR,"Allowed memory size of %d bytes exhausted at %s:%d (tried to allocate %d bytes)", php_mem_limit, file, lineno, s); \
} else { \
zend_error(E_ERROR,"Allowed memory size of %d bytes exhausted (tried to allocate %d bytes)", php_mem_limit, s); \
} \
} else { \
if (file) { \
@@ -99,6 +99,7 @@ static long mem_block_end_magic = MEM_BLOCK_END_MAGIC;
#endif
#if ZEND_DEBUG || !defined(ZEND_MM)
#define REMOVE_POINTER_FROM_LIST(p) \
if (p==AG(head)) { \
AG(head) = p->pNext; \
@@ -108,14 +109,21 @@ static long mem_block_end_magic = MEM_BLOCK_END_MAGIC;
if (p->pNext) { \
p->pNext->pLast = p->pLast; \
}
#else
#define REMOVE_POINTER_FROM_LIST(p)
#endif
#define ADD_POINTER_TO_LIST(p) \
#if ZEND_DEBUG || !defined(ZEND_MM)
#define ADD_POINTER_TO_LIST(p) \
p->pNext = AG(head); \
if (AG(head)) { \
AG(head)->pLast = p; \
} \
AG(head) = p; \
p->pLast = (zend_mem_header *) NULL;
#else
#define ADD_POINTER_TO_LIST(p)
#endif
#define DECLARE_CACHE_VARS() \
unsigned int real_size; \
@@ -164,6 +172,12 @@ ZEND_API void *_emalloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
if (CACHE_INDEX<MAX_CACHED_MEMORY) {
AG(cache_stats)[CACHE_INDEX][0]++;
}
#endif
#if MEMORY_LIMIT
CHECK_MEMORY_LIMIT(size, SIZE);
if (AG(allocated_memory) > AG(allocated_memory_peak)) {
AG(allocated_memory_peak) = AG(allocated_memory);
}
#endif
p = (zend_mem_header *) ZEND_DO_MALLOC(sizeof(zend_mem_header) + MEM_HEADER_PADDING + SIZE + END_MAGIC_SIZE);
#if !ZEND_DISABLE_MEMORY_CACHE
@@ -183,9 +197,7 @@ ZEND_API void *_emalloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
return (void *)p;
}
p->cached = 0;
#if ZEND_DEBUG || !defined(ZEND_MM)
ADD_POINTER_TO_LIST(p);
#endif
p->size = size; /* Save real size for correct cache output */
#if ZEND_DEBUG
p->filename = __zend_filename;
@@ -199,12 +211,6 @@ ZEND_API void *_emalloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
# endif
memcpy((((char *) p) + sizeof(zend_mem_header) + MEM_HEADER_PADDING + size), &mem_block_end_magic, sizeof(long));
#endif
#if MEMORY_LIMIT
CHECK_MEMORY_LIMIT(size, SIZE);
if (AG(allocated_memory) > AG(allocated_memory_peak)) {
AG(allocated_memory_peak) = AG(allocated_memory);
}
#endif
HANDLE_UNBLOCK_INTERRUPTIONS();
return (void *)((char *)p + sizeof(zend_mem_header) + MEM_HEADER_PADDING);
@@ -228,12 +234,12 @@ ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_
ZEND_SIGNED_MULTIPLY_LONG(nmemb, size, lval, dval, use_dval);
if (!use_dval
&& lval < LONG_MAX - offset) {
&& lval < (long) (LONG_MAX - offset)) {
return emalloc_rel(lval + offset);
}
}
zend_error(E_ERROR, "Possible integer overflow in memory allocation (%ld * %ld + %ld)", nmemb, size, offset);
zend_error(E_ERROR, "Possible integer overflow in memory allocation (%zd * %zd + %zd)", nmemb, size, offset);
return 0;
}
@@ -272,9 +278,7 @@ ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
}
#endif
HANDLE_BLOCK_INTERRUPTIONS();
#if ZEND_DEBUG || !defined(ZEND_MM)
REMOVE_POINTER_FROM_LIST(p);
#endif
#if MEMORY_LIMIT
AG(allocated_memory) -= SIZE;
@@ -331,9 +335,13 @@ ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LIN
CALCULATE_REAL_SIZE_AND_CACHE_INDEX(size);
HANDLE_BLOCK_INTERRUPTIONS();
#if ZEND_DEBUG || !defined(ZEND_MM)
REMOVE_POINTER_FROM_LIST(p);
#if MEMORY_LIMIT
CHECK_MEMORY_LIMIT(size - p->size, SIZE - REAL_SIZE(p->size));
if (AG(allocated_memory) > AG(allocated_memory_peak)) {
AG(allocated_memory_peak) = AG(allocated_memory);
}
#endif
REMOVE_POINTER_FROM_LIST(p);
p = (zend_mem_header *) ZEND_DO_REALLOC(p, sizeof(zend_mem_header)+MEM_HEADER_PADDING+SIZE+END_MAGIC_SIZE);
if (!p) {
if (!allow_failure) {
@@ -344,27 +352,17 @@ ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LIN
exit(1);
#endif
}
#if ZEND_DEBUG || !defined(ZEND_MM)
ADD_POINTER_TO_LIST(orig);
#endif
HANDLE_UNBLOCK_INTERRUPTIONS();
return (void *)NULL;
}
#if ZEND_DEBUG || !defined(ZEND_MM)
ADD_POINTER_TO_LIST(p);
#endif
#if ZEND_DEBUG
p->filename = __zend_filename;
p->lineno = __zend_lineno;
p->magic = MEM_BLOCK_START_MAGIC;
memcpy((((char *) p) + sizeof(zend_mem_header) + MEM_HEADER_PADDING + size), &mem_block_end_magic, sizeof(long));
#endif
#if MEMORY_LIMIT
CHECK_MEMORY_LIMIT(size - p->size, SIZE - REAL_SIZE(p->size));
if (AG(allocated_memory) > AG(allocated_memory_peak)) {
AG(allocated_memory_peak) = AG(allocated_memory);
}
#endif
p->size = size;
@@ -468,21 +466,44 @@ ZEND_API void start_memory_manager(TSRMLS_D)
}
ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
ZEND_API void shutdown_memory_manager(int silent, int full_shutdown TSRMLS_DC)
{
#if ZEND_DEBUG || !defined(ZEND_MM)
zend_mem_header *p, *t;
#endif
#if ZEND_DEBUG
int had_leaks = 0;
zend_uint grand_total_leaks=0;
#endif
#if !ZEND_DISABLE_MEMORY_CACHE
/* Free memory cache even on partial shutdown to avoid fragmentation */
if (1 || full_shutdown) {
unsigned int i, j;
zend_mem_header *ptr;
for (i=1; i<MAX_CACHED_MEMORY; i++) {
for (j=0; j<AG(cache_count)[i]; j++) {
ptr = (zend_mem_header *) AG(cache)[i][j];
# if MEMORY_LIMIT
AG(allocated_memory) -= REAL_SIZE(ptr->size);
# endif
REMOVE_POINTER_FROM_LIST(ptr);
ZEND_DO_FREE(ptr);
}
AG(cache_count)[i] = 0;
}
}
#endif /* !ZEND_DISABLE_MEMORY_CACHE */
#if defined(ZEND_MM) && !ZEND_DEBUG
if (clean_cache) {
zend_mm_shutdown(&AG(mm_heap));
zend_mm_shutdown(&AG(mm_heap));
if (full_shutdown) {
return;
}
zend_mm_startup(&AG(mm_heap), 256*1024);
#elif defined(ZEND_WIN32) && !ZEND_DEBUG
if (clean_cache && AG(memory_heap)) {
if (full_shutdown && AG(memory_heap)) {
HeapDestroy(AG(memory_heap));
return;
}
@@ -505,36 +526,17 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
}
#endif /* ZEND_ENABLE_FAST_CACHE */
#if !ZEND_DISABLE_MEMORY_CACHE && !defined(ZEND_MM)
if (1 || clean_cache) {
unsigned int i, j;
zend_mem_header *ptr;
for (i=1; i<MAX_CACHED_MEMORY; i++) {
for (j=0; j<AG(cache_count)[i]; j++) {
ptr = (zend_mem_header *) AG(cache)[i][j];
#if MEMORY_LIMIT
AG(allocated_memory) -= REAL_SIZE(ptr->size);
#endif
REMOVE_POINTER_FROM_LIST(ptr);
ZEND_DO_FREE(ptr);
}
AG(cache_count)[i] = 0;
}
}
#endif /* !ZEND_DISABLE_MEMORY_CACHE */
#if ZEND_DEBUG || !defined(ZEND_MM)
p = AG(head);
t = AG(head);
while (t) {
if (!t->cached) {
#if ZEND_DEBUG
if (!t->cached && !t->reported) {
if (!t->reported) {
zend_mem_header *iterator;
int total_leak=0, total_leak_count=0;
had_leaks = 1;
grand_total_leaks++;
if (!silent) {
zend_message_dispatcher(ZMSG_MEMORY_LEAK_DETECTED, t);
}
@@ -551,6 +553,7 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
if (!silent && total_leak_count>0) {
zend_message_dispatcher(ZMSG_MEMORY_LEAK_REPEATED, (void *) (long) (total_leak_count));
}
grand_total_leaks += total_leak_count;
}
#endif
#if MEMORY_LIMIT
@@ -565,6 +568,12 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
}
}
#if ZEND_DEBUG
if (!silent && grand_total_leaks > 0) {
zend_message_dispatcher(ZMSG_MEMORY_LEAKS_GRAND_TOTAL, &grand_total_leaks);
}
#endif
#if MEMORY_LIMIT
AG(memory_exhausted)=0;
AG(allocated_memory_peak) = 0;
@@ -576,7 +585,7 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
zval display_memory_cache_stats;
int i, j;
if (clean_cache) {
if (full_shutdown) {
/* we're shutting down completely, don't even touch the INI subsystem */
break;
}
@@ -614,12 +623,13 @@ ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC)
#endif
#if defined(ZEND_MM) && ZEND_DEBUG
if (clean_cache) {
zend_mm_shutdown(&AG(mm_heap));
zend_mm_shutdown(&AG(mm_heap));
if (full_shutdown) {
return;
}
zend_mm_startup(&AG(mm_heap), 256*1024);
#elif defined(ZEND_WIN32) && ZEND_DEBUG
if (clean_cache && AG(memory_heap)) {
if (full_shutdown && AG(memory_heap)) {
HeapDestroy(AG(memory_heap));
return;
}
@@ -714,7 +724,7 @@ ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_
if (valid_beginning && (end_magic != MEM_BLOCK_END_MAGIC)) {
char *overflow_ptr, *magic_ptr=(char *) &mem_block_end_magic;
int overflows=0;
int i;
long i;
if (silent) {
return _mem_block_check(ptr, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
@@ -722,7 +732,7 @@ ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_
had_problems = 1;
overflow_ptr = (char *) &end_magic;
for (i=0; i<sizeof(long); i++) {
for (i=0; i<(int)sizeof(long); i++) {
if (overflow_ptr[i]!=magic_ptr[i]) {
overflows++;
}
@@ -731,7 +741,7 @@ ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_
zend_debug_alloc_output("%10s\t", "End:");
zend_debug_alloc_output("Overflown (magic=0x%0.8lX instead of 0x%0.8lX)\n", end_magic, MEM_BLOCK_END_MAGIC);
zend_debug_alloc_output("%10s\t","");
if (overflows>=sizeof(long)) {
if (overflows>=(int)sizeof(long)) {
zend_debug_alloc_output("At least %d bytes overflown\n", sizeof(long));
} else {
zend_debug_alloc_output("%d byte(s) overflown\n", overflows);
@@ -744,12 +754,6 @@ ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_
zend_debug_alloc_output("Unknown\n");
}
}
if (had_problems) {
int foo = 5;
foo += 1;
}
if (!silent) {
zend_debug_alloc_output("---------------------------------------\n");
+18 -11
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -64,10 +64,10 @@ typedef union _align_test {
#define MAX_CACHED_ENTRIES 256
#define PRE_INIT_CACHE_ENTRIES 32
#if (defined (__GNUC__) && __GNUC__ >= 2)
#define PLATFORM_ALIGNMENT (__alignof__ (align_test))
#if ZEND_GCC_VERSION >= 2000
# define PLATFORM_ALIGNMENT (__alignof__ (align_test))
#else
#define PLATFORM_ALIGNMENT (sizeof(align_test))
# define PLATFORM_ALIGNMENT (sizeof(align_test))
#endif
#define MEM_HEADER_PADDING (((PLATFORM_ALIGNMENT-sizeof(zend_mem_header))%PLATFORM_ALIGNMENT+PLATFORM_ALIGNMENT)%PLATFORM_ALIGNMENT)
@@ -75,15 +75,15 @@ typedef union _align_test {
BEGIN_EXTERN_C()
ZEND_API char *zend_strndup(const char *s, unsigned int length);
ZEND_API char *zend_strndup(const char *s, unsigned int length) ZEND_ATTRIBUTE_MALLOC;
ZEND_API void *_emalloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
ZEND_API void *_emalloc(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
ZEND_API void *_ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
ZEND_API void *_ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
ZEND_API char *_estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
ZEND_API char *_estrndup(const char *s, unsigned int length ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
ZEND_API char *_estrdup(const char *s ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
ZEND_API char *_estrndup(const char *s, unsigned int length ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
/* Standard wrapper macros */
#define emalloc(size) _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
@@ -113,13 +113,20 @@ ZEND_API char *_estrndup(const char *s, unsigned int length ZEND_FILE_LINE_DC ZE
#define perealloc_recoverable(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_recoverable((ptr), (size)))
#define pestrdup(s, persistent) ((persistent)?strdup(s):estrdup(s))
#define pemalloc_rel(size, persistent) ((persistent)?malloc(size):emalloc_rel(size))
#define pefree_rel(ptr, persistent) ((persistent)?free(ptr):efree_rel(ptr))
#define pecalloc_rel(nmemb, size, persistent) ((persistent)?calloc((nmemb), (size)):ecalloc_rel((nmemb), (size)))
#define perealloc_rel(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_rel((ptr), (size)))
#define perealloc_recoverable_rel(ptr, size, persistent) ((persistent)?realloc((ptr), (size)):erealloc_recoverable_rel((ptr), (size)))
#define pestrdup_rel(s, persistent) ((persistent)?strdup(s):estrdup_rel(s))
#define safe_estrdup(ptr) ((ptr)?(estrdup(ptr)):(empty_string))
#define safe_estrndup(ptr, len) ((ptr)?(estrndup((ptr), (len))):(empty_string))
ZEND_API int zend_set_memory_limit(unsigned int memory_limit);
ZEND_API void start_memory_manager(TSRMLS_D);
ZEND_API void shutdown_memory_manager(int silent, int clean_cache TSRMLS_DC);
ZEND_API void shutdown_memory_manager(int silent, int full_shutdown TSRMLS_DC);
#if ZEND_DEBUG
ZEND_API int _mem_block_check(void *ptr, int silent ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
+27
View File
@@ -0,0 +1,27 @@
ZEND_BEGIN_ARG_INFO(first_arg_force_ref, 0)
ZEND_ARG_PASS_INFO(1)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(second_arg_force_ref, 0)
ZEND_ARG_PASS_INFO(0)
ZEND_ARG_PASS_INFO(1)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(third_arg_force_ref, 0)
ZEND_ARG_PASS_INFO(0)
ZEND_ARG_PASS_INFO(0)
ZEND_ARG_PASS_INFO(1)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(fourth_arg_force_ref, 0)
ZEND_ARG_PASS_INFO(0)
ZEND_ARG_PASS_INFO(0)
ZEND_ARG_PASS_INFO(0)
ZEND_ARG_PASS_INFO(1)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO(all_args_by_ref, 1)
ZEND_END_ARG_INFO();
+190 -121
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -63,6 +63,7 @@ static ZEND_FUNCTION(restore_error_handler);
static ZEND_FUNCTION(set_exception_handler);
static ZEND_FUNCTION(restore_exception_handler);
static ZEND_FUNCTION(get_declared_classes);
static ZEND_FUNCTION(get_declared_interfaces);
static ZEND_FUNCTION(get_defined_functions);
static ZEND_FUNCTION(get_defined_vars);
static ZEND_FUNCTION(create_function);
@@ -80,9 +81,8 @@ static ZEND_FUNCTION(zend_thread_id);
#endif
#endif
ZEND_API unsigned char first_arg_force_ref[] = { 1, BYREF_FORCE };
ZEND_API unsigned char second_arg_force_ref[] = { 2, BYREF_NONE, BYREF_FORCE };
ZEND_API unsigned char third_arg_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE };
#include "zend_arg_defs.c"
static zend_function_entry builtin_functions[] = {
ZEND_FE(zend_version, NULL)
@@ -123,6 +123,7 @@ static zend_function_entry builtin_functions[] = {
ZEND_FE(set_exception_handler, NULL)
ZEND_FE(restore_exception_handler, NULL)
ZEND_FE(get_declared_classes, NULL)
ZEND_FE(get_declared_interfaces, NULL)
ZEND_FE(get_defined_functions, NULL)
ZEND_FE(get_defined_vars, NULL)
ZEND_FE(create_function, NULL)
@@ -217,7 +218,7 @@ ZEND_FUNCTION(func_get_arg)
arg_count = (ulong) *p;
if (requested_offset>=arg_count) {
zend_error(E_WARNING, "func_get_arg(): Argument %d not passed to function", requested_offset);
zend_error(E_WARNING, "func_get_arg(): Argument %ld not passed to function", requested_offset);
RETURN_FALSE;
}
@@ -352,6 +353,7 @@ ZEND_FUNCTION(each)
{
zval **array, *entry, **entry_ptr, *tmp;
char *string_key;
uint string_key_len;
ulong num_key;
zval **inserted_pointer;
HashTable *target_hash;
@@ -386,9 +388,9 @@ ZEND_FUNCTION(each)
entry->refcount++;
/* add the key elements */
switch (zend_hash_get_current_key(target_hash, &string_key, &num_key, 1)) {
switch (zend_hash_get_current_key_ex(target_hash, &string_key, &string_key_len, &num_key, 1, NULL)) {
case HASH_KEY_IS_STRING:
add_get_index_string(return_value, 0, string_key, (void **) &inserted_pointer, 0);
add_get_index_stringl(return_value, 0, string_key, string_key_len-1, (void **) &inserted_pointer, 0);
break;
case HASH_KEY_IS_LONG:
add_get_index_long(return_value, 0, num_key, (void **) &inserted_pointer);
@@ -480,6 +482,7 @@ ZEND_FUNCTION(define)
c.flags = case_sensitive; /* non persistent */
c.name = zend_strndup((*var)->value.str.val, (*var)->value.str.len);
c.name_len = (*var)->value.str.len+1;
c.module_number = PHP_USER_CONSTANT;
if (zend_register_constant(&c TSRMLS_CC) == SUCCESS) {
RETURN_TRUE;
} else {
@@ -503,15 +506,15 @@ ZEND_FUNCTION(defined)
convert_to_string_ex(var);
if (zend_get_constant((*var)->value.str.val, (*var)->value.str.len, &c TSRMLS_CC)) {
zval_dtor(&c);
RETURN_LONG(1);
RETURN_TRUE;
} else {
RETURN_LONG(0);
RETURN_FALSE;
}
}
/* }}} */
/* {{{ proto string get_class(object object)
/* {{{ proto string get_class([object object])
Retrieves the class name */
ZEND_FUNCTION(get_class)
{
@@ -519,6 +522,13 @@ ZEND_FUNCTION(get_class)
char *name = "";
zend_uint name_len = 0;
if (!ZEND_NUM_ARGS()) {
if (EG(scope)) {
RETURN_STRINGL(EG(scope)->name, EG(scope)->name_length, 1);
} else {
zend_error(E_ERROR, "get_class() called without object from outside a class");
}
}
if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &arg)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
}
@@ -557,20 +567,15 @@ ZEND_FUNCTION(get_parent_class)
}
if (Z_TYPE_PP(arg) == IS_OBJECT) {
if (Z_OBJ_HT_PP(arg)->get_class_name
&& Z_OBJ_HT_PP(arg)->get_class_name(*arg, &name, &name_length, 1 TSRMLS_CC) == SUCCESS) {
RETURN_STRINGL(name, name_length, 0);
} else if (Z_OBJ_HT_PP(arg)->get_class_entry && (ce = zend_get_class_entry(*arg TSRMLS_CC))) {
RETURN_STRINGL(ce->name, ce->name_length, 1);
} else {
RETURN_FALSE;
ce = zend_get_class_entry(*arg TSRMLS_CC);
}
} else if (Z_TYPE_PP(arg) == IS_STRING) {
zend_class_entry **pce;
SEPARATE_ZVAL(arg);
zend_str_tolower(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg));
if (zend_lookup_class(Z_STRVAL_PP(arg), Z_STRLEN_PP(arg), &pce TSRMLS_CC) == SUCCESS) {
ce = *pce;
}
@@ -588,7 +593,6 @@ ZEND_FUNCTION(get_parent_class)
static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
{
zval **obj, **class_name;
char *lcname;
zend_class_entry *instance_ce;
zend_class_entry **ce;
zend_bool retval;
@@ -608,10 +612,7 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
convert_to_string_ex(class_name);
lcname = zend_str_tolower_dup(Z_STRVAL_PP(class_name), Z_STRLEN_PP(class_name));
if (zend_lookup_class(lcname, Z_STRLEN_PP(class_name), &ce TSRMLS_CC) == FAILURE) {
efree(lcname);
if (zend_lookup_class(Z_STRVAL_PP(class_name), Z_STRLEN_PP(class_name), &ce TSRMLS_CC) == FAILURE) {
retval = 0;
} else {
if (only_subclass) {
@@ -620,6 +621,10 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
instance_ce = Z_OBJCE_PP(obj);
}
if (!instance_ce) {
RETURN_FALSE;
}
if (instanceof_function(instance_ce, *ce TSRMLS_CC)) {
retval = 1;
} else {
@@ -627,8 +632,6 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
}
}
efree(lcname);
RETURN_BOOL(retval);
}
@@ -646,6 +649,7 @@ ZEND_FUNCTION(is_subclass_of)
Returns true if the object is of this class or has this class as one of its parents */
ZEND_FUNCTION(is_a)
{
zend_error(E_STRICT, "is_a(): Deprecated. Please use the instanceof operator");
is_a_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
/* }}} */
@@ -656,7 +660,6 @@ ZEND_FUNCTION(is_a)
ZEND_FUNCTION(get_class_vars)
{
zval **class_name;
char *lcname;
zend_class_entry *ce, **pce;
zval *tmp;
@@ -665,14 +668,11 @@ ZEND_FUNCTION(get_class_vars)
}
convert_to_string_ex(class_name);
lcname = zend_str_tolower_dup((*class_name)->value.str.val, (*class_name)->value.str.len);
if (zend_lookup_class(lcname, Z_STRLEN_PP(class_name), &pce TSRMLS_CC) == FAILURE) {
efree(lcname);
if (zend_lookup_class(Z_STRVAL_PP(class_name), Z_STRLEN_PP(class_name), &pce TSRMLS_CC) == FAILURE) {
RETURN_FALSE;
} else {
ce = *pce;
efree(lcname);
array_init(return_value);
if (!ce->constants_updated) {
zend_hash_apply_with_argument(&ce->default_properties, (apply_func_arg_t) zval_update_constant, (void *) 1 TSRMLS_CC);
@@ -689,7 +689,12 @@ ZEND_FUNCTION(get_class_vars)
ZEND_FUNCTION(get_object_vars)
{
zval **obj;
zval *tmp;
zval **value;
HashTable *properties;
HashPosition pos;
char *key;
uint key_len;
ulong num_index;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &obj) == FAILURE) {
ZEND_WRONG_PARAM_COUNT();
@@ -703,8 +708,18 @@ ZEND_FUNCTION(get_object_vars)
}
array_init(return_value);
zend_hash_copy(return_value->value.ht, Z_OBJ_HT_PP(obj)->get_properties(*obj TSRMLS_CC),
(copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
properties = Z_OBJ_HT_PP(obj)->get_properties(*obj TSRMLS_CC);
zend_hash_internal_pointer_reset_ex(properties, &pos);
while (zend_hash_get_current_data_ex(properties, (void **) &value, &pos) == SUCCESS) {
if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_STRING && key[0]) {
/* Not separating references */
(*value)->refcount++;
add_assoc_zval_ex(return_value, key, key_len, *value);
}
zend_hash_move_forward_ex(properties, &pos);
}
}
/* }}} */
@@ -716,9 +731,8 @@ ZEND_FUNCTION(get_class_methods)
zval **class;
zval *method_name;
zend_class_entry *ce = NULL, **pce;
char *string_key;
ulong num_key;
int key_type;
HashPosition pos;
zend_function *mptr;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &class)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
@@ -731,9 +745,6 @@ ZEND_FUNCTION(get_class_methods)
}
ce = Z_OBJCE_PP(class);
} else if (Z_TYPE_PP(class) == IS_STRING) {
SEPARATE_ZVAL(class);
zend_str_tolower(Z_STRVAL_PP(class), Z_STRLEN_PP(class));
if (zend_lookup_class(Z_STRVAL_PP(class), Z_STRLEN_PP(class), &pce TSRMLS_CC) == SUCCESS) {
ce = *pce;
}
@@ -744,17 +755,17 @@ ZEND_FUNCTION(get_class_methods)
}
array_init(return_value);
zend_hash_internal_pointer_reset(&ce->function_table);
while ((key_type = zend_hash_get_current_key(&ce->function_table, &string_key, &num_key, 1)) != HASH_KEY_NON_EXISTANT) {
if (key_type == HASH_KEY_IS_STRING) {
MAKE_STD_ZVAL(method_name);
ZVAL_STRING(method_name, string_key, 0);
zend_hash_next_index_insert(return_value->value.ht, &method_name, sizeof(zval *), NULL);
}
zend_hash_move_forward(&ce->function_table);
zend_hash_internal_pointer_reset_ex(&ce->function_table, &pos);
while (zend_hash_get_current_data_ex(&ce->function_table, (void **) &mptr, &pos) == SUCCESS) {
MAKE_STD_ZVAL(method_name);
ZVAL_STRING(method_name, mptr->common.function_name, 1);
zend_hash_next_index_insert(return_value->value.ht, &method_name, sizeof(zval *), NULL);
zend_hash_move_forward_ex(&ce->function_table, &pos);
}
}
/* }}} */
\
/* {{{ proto bool method_exists(object object, string method)
@@ -788,25 +799,32 @@ ZEND_FUNCTION(method_exists)
}
/* }}} */
/* {{{ proto bool class_exists(string classname)
/* {{{ proto bool class_exists(string classname [, bool autoload])
Checks if the class exists */
ZEND_FUNCTION(class_exists)
{
zval **class_name;
char *lcname;
char *class_name, *lc_name;
zend_class_entry **ce;
int class_name_len;
zend_bool autoload = 1;
int found;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &class_name)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &class_name, &class_name_len, &autoload) == FAILURE) {
return;
}
convert_to_string_ex(class_name);
lcname = zend_str_tolower_dup((*class_name)->value.str.val, (*class_name)->value.str.len);
if (zend_lookup_class(lcname, Z_STRLEN_PP(class_name), &ce TSRMLS_CC) == SUCCESS) {
efree(lcname);
if (!autoload) {
lc_name = do_alloca(class_name_len + 1);
zend_str_tolower_copy(lc_name, class_name, class_name_len);
found = zend_hash_find(EG(class_table), lc_name, class_name_len+1, (void **) &ce);
free_alloca(lc_name);
RETURN_BOOL(found == SUCCESS);
}
if (zend_lookup_class(class_name, class_name_len, &ce TSRMLS_CC) == SUCCESS) {
RETURN_TRUE;
} else {
efree(lcname);
RETURN_FALSE;
}
}
@@ -819,7 +837,7 @@ ZEND_FUNCTION(function_exists)
{
zval **function_name;
zend_function *func;
char *lcname, *func_name_end;
char *lcname;
zend_bool retval;
if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &function_name)==FAILURE) {
@@ -828,7 +846,6 @@ ZEND_FUNCTION(function_exists)
convert_to_string_ex(function_name);
lcname = zend_str_tolower_dup((*function_name)->value.str.val, (*function_name)->value.str.len);
func_name_end = lcname + (*function_name)->value.str.len;
retval = (zend_hash_find(EG(function_table), lcname, (*function_name)->value.str.len+1, (void **)&func) == SUCCESS);
efree(lcname);
@@ -936,19 +953,20 @@ ZEND_FUNCTION(trigger_error)
/* }}} */
/* {{{ proto string set_error_handler(string error_handler)
/* {{{ proto string set_error_handler(string error_handler [, int error_types])
Sets a user-defined error handler function. Returns the previously defined error handler, or false on error */
ZEND_FUNCTION(set_error_handler)
{
zval **error_handler;
zval *error_handler;
zend_bool had_orig_error_handler=0;
char *error_handler_name = NULL;
long error_type = E_ALL | E_STRICT;
if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &error_handler)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &error_handler, &error_type) == FAILURE) {
return;
}
if (!zend_is_callable(*error_handler, 0, &error_handler_name)) {
if (!zend_is_callable(error_handler, 0, &error_handler_name)) {
zend_error(E_WARNING, "%s() expects the argument (%s) to be a valid callback",
get_active_function_name(TSRMLS_C), error_handler_name?error_handler_name:"unknown");
efree(error_handler_name);
@@ -960,17 +978,19 @@ ZEND_FUNCTION(set_error_handler)
had_orig_error_handler = 1;
*return_value = *EG(user_error_handler);
zval_copy_ctor(return_value);
zend_stack_push(&EG(user_error_handlers_error_reporting), &EG(user_error_handler_error_reporting), sizeof(EG(user_error_handler_error_reporting)));
zend_ptr_stack_push(&EG(user_error_handlers), EG(user_error_handler));
}
ALLOC_ZVAL(EG(user_error_handler));
if (!zend_is_true(*error_handler)) { /* unset user-defined handler */
if (!zend_is_true(error_handler)) { /* unset user-defined handler */
FREE_ZVAL(EG(user_error_handler));
EG(user_error_handler) = NULL;
RETURN_TRUE;
}
*EG(user_error_handler) = **error_handler;
EG(user_error_handler_error_reporting) = (int)error_type;
*EG(user_error_handler) = *error_handler;
zval_copy_ctor(EG(user_error_handler));
if (!had_orig_error_handler) {
@@ -985,11 +1005,17 @@ ZEND_FUNCTION(set_error_handler)
ZEND_FUNCTION(restore_error_handler)
{
if (EG(user_error_handler)) {
zval_ptr_dtor(&EG(user_error_handler));
zval *zeh = EG(user_error_handler);
EG(user_error_handler) = NULL;
zval_ptr_dtor(&zeh);
}
if (zend_ptr_stack_num_elements(&EG(user_error_handlers))==0) {
EG(user_error_handler) = NULL;
} else {
EG(user_error_handler_error_reporting) = zend_stack_int_top(&EG(user_error_handlers_error_reporting));
zend_stack_del_top(&EG(user_error_handlers_error_reporting));
EG(user_error_handler) = zend_ptr_stack_pop(&EG(user_error_handlers));
}
RETURN_TRUE;
@@ -997,18 +1023,26 @@ ZEND_FUNCTION(restore_error_handler)
/* }}} */
/* {{{ proto string set_exception_handler(string exception_handler)
/* {{{ proto string set_exception_handler(callable exception_handler)
Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error */
ZEND_FUNCTION(set_exception_handler)
{
zval **exception_handler;
char *exception_handler_name = NULL;
zend_bool had_orig_exception_handler=0;
if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &exception_handler)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
}
convert_to_string_ex(exception_handler);
if (!zend_is_callable(*exception_handler, 0, &exception_handler_name)) {
zend_error(E_WARNING, "%s() expects the argument (%s) to be a valid callback",
get_active_function_name(TSRMLS_C), exception_handler_name?exception_handler_name:"unknown");
efree(exception_handler_name);
return;
}
efree(exception_handler_name);
if (EG(user_exception_handler)) {
had_orig_exception_handler = 1;
*return_value = *EG(user_exception_handler);
@@ -1050,15 +1084,19 @@ ZEND_FUNCTION(restore_exception_handler)
/* }}} */
static int copy_class_name(zend_class_entry **pce, int num_args, va_list args, zend_hash_key *hash_key)
static int copy_class_or_interface_name(zend_class_entry **pce, int num_args, va_list args, zend_hash_key *hash_key)
{
zval *array = va_arg(args, zval *);
int mask = va_arg(args, int);
int comply = va_arg(args, int);
int comply_mask = (comply)? mask:0;
zend_class_entry *ce = *pce;
if (hash_key->nKeyLength==0 || hash_key->arKey[0]!=0) {
if ((hash_key->nKeyLength==0 || hash_key->arKey[0]!=0)
&& (comply_mask == (ce->ce_flags & mask))) {
add_next_index_stringl(array, ce->name, ce->name_length, 1);
}
return 0;
return ZEND_HASH_APPLY_KEEP;
}
@@ -1066,11 +1104,31 @@ static int copy_class_name(zend_class_entry **pce, int num_args, va_list args, z
Returns an array of all declared classes. */
ZEND_FUNCTION(get_declared_classes)
{
int mask = ZEND_ACC_INTERFACE;
int comply = 0;
if (ZEND_NUM_ARGS() != 0) {
ZEND_WRONG_PARAM_COUNT();
}
array_init(return_value);
zend_hash_apply_with_arguments(EG(class_table), (apply_func_args_t) copy_class_name, 1, return_value);
zend_hash_apply_with_arguments(EG(class_table), (apply_func_args_t) copy_class_or_interface_name, 3, return_value, mask, comply);
}
/* }}} */
/* {{{ proto array get_declared_interfaces()
Returns an array of all declared interfaces. */
ZEND_FUNCTION(get_declared_interfaces)
{
int mask = ZEND_ACC_INTERFACE;
int comply = 1;
if (ZEND_NUM_ARGS() != 0) {
ZEND_WRONG_PARAM_COUNT();
}
array_init(return_value);
zend_hash_apply_with_arguments(EG(class_table), (apply_func_args_t) copy_class_or_interface_name, 3, return_value, mask, comply);
}
/* }}} */
@@ -1291,60 +1349,53 @@ ZEND_FUNCTION(get_defined_constants)
if (argc) {
HashPosition pos;
zend_constant *val;
int prev_module_number = -1;
int module_number;
zval **modules;
char **module_names;
zval *module_constants = NULL;
zend_module_entry *module;
int i = 1;
modules = ecalloc(zend_hash_num_elements(&module_registry) + 2, sizeof(zval *));
module_names = emalloc((zend_hash_num_elements(&module_registry) + 2) * sizeof(char *));
module_names = emalloc((zend_hash_num_elements(&module_registry) + 1) * sizeof(char *));
module_names[0] = "internal";
zend_hash_internal_pointer_reset_ex(&module_registry, &pos);
while (zend_hash_get_current_data_ex(EG(zend_constants), (void **) &module, &pos) != FAILURE) {
while (zend_hash_get_current_data_ex(&module_registry, (void *) &module, &pos) != FAILURE) {
module_names[i++] = module->name;
zend_hash_move_forward_ex(&module_registry, &pos);
}
zend_hash_internal_pointer_reset_ex(EG(zend_constants), &pos);
module_names[i] = "user";
zend_hash_internal_pointer_reset_ex(EG(zend_constants), &pos);
while (zend_hash_get_current_data_ex(EG(zend_constants), (void **) &val, &pos) != FAILURE) {
zval *const_val;
if (val->module_number != prev_module_number) {
if (prev_module_number != -1) {
if (prev_module_number == 0) {
add_assoc_zval(return_value, "internal", module_constants);
} else if (prev_module_number <= i) {
add_assoc_zval(return_value, module_names[prev_module_number], module_constants);
} else {
add_assoc_zval(return_value, "user", module_constants);
}
}
if (val->module_number == PHP_USER_CONSTANT) {
module_number = i;
} else if (val->module_number > i || val->module_number < 0) {
/* should not happen */
goto bad_module_id;
} else {
module_number = val->module_number;
}
MAKE_STD_ZVAL(module_constants);
array_init(module_constants);
prev_module_number = val->module_number;
}
if (!modules[module_number]) {
MAKE_STD_ZVAL(modules[module_number]);
array_init(modules[module_number]);
add_assoc_zval(return_value, module_names[module_number], modules[module_number]);
}
MAKE_STD_ZVAL(const_val);
*const_val = val->value;
zval_copy_ctor(const_val);
INIT_PZVAL(const_val);
add_assoc_zval_ex(module_constants, val->name, val->name_len, const_val);
add_assoc_zval_ex(modules[module_number], val->name, val->name_len, const_val);
bad_module_id:
zend_hash_move_forward_ex(EG(zend_constants), &pos);
}
if (module_constants) {
if (prev_module_number == 0) {
add_assoc_zval(return_value, "internal", module_constants);
} else if (prev_module_number <= i) {
add_assoc_zval(return_value, module_names[prev_module_number], module_constants);
} else {
add_assoc_zval(return_value, "user", module_constants);
}
}
efree(module_names);
efree(modules);
} else {
zend_hash_apply_with_argument(EG(zend_constants), (apply_func_arg_t) add_constant_info, return_value TSRMLS_CC);
}
@@ -1352,7 +1403,8 @@ ZEND_FUNCTION(get_defined_constants)
/* }}} */
static zval *debug_backtrace_get_args(void ***curpos TSRMLS_DC) {
static zval *debug_backtrace_get_args(void ***curpos TSRMLS_DC)
{
void **p = *curpos - 2;
zval *arg_array, **arg;
int arg_count = (ulong) *p;
@@ -1409,14 +1461,14 @@ ZEND_FUNCTION(debug_print_backtrace)
ZEND_WRONG_PARAM_COUNT();
}
while (--args >= EG(argument_stack).elements) {
while (--args > EG(argument_stack).elements) {
if (*args--) {
break;
}
args -= *(ulong*)args;
frames_on_stack++;
if (args == EG(argument_stack).elements) {
if ((args-1) == EG(argument_stack).elements) {
arg_stack_consistent = 1;
break;
}
@@ -1432,11 +1484,13 @@ ZEND_FUNCTION(debug_print_backtrace)
array_init(return_value);
while (ptr) {
class_name = call_type = NULL;
if (ptr->op_array) {
filename = ptr->op_array->filename;
lineno = ptr->opline->lineno;
} else {
filename = NULL;
lineno = 0;
}
function_name = ptr->function_state.function->common.function_name;
@@ -1492,6 +1546,7 @@ ZEND_FUNCTION(debug_print_backtrace)
array_init(arg_array);
add_next_index_string(arg_array, include_filename, 1);
}
call_type = NULL;
}
zend_printf("#%-2d ", indent);
if (class_name) {
@@ -1511,9 +1566,8 @@ ZEND_FUNCTION(debug_print_backtrace)
}
/* }}} */
/* {{{ proto void debug_backtrace(void)
Prints out a backtrace */
ZEND_FUNCTION(debug_backtrace)
ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRMLS_DC)
{
zend_execute_data *ptr;
int lineno;
@@ -1528,18 +1582,14 @@ ZEND_FUNCTION(debug_backtrace)
int arg_stack_consistent = 0;
int frames_on_stack = 0;
if (ZEND_NUM_ARGS()) {
ZEND_WRONG_PARAM_COUNT();
}
while (--args >= EG(argument_stack).elements) {
while (--args > EG(argument_stack).elements) {
if (*args--) {
break;
}
args -= *(ulong*)args;
frames_on_stack++;
if (args == EG(argument_stack).elements) {
if ((args-1) == EG(argument_stack).elements) {
arg_stack_consistent = 1;
break;
}
@@ -1549,8 +1599,11 @@ ZEND_FUNCTION(debug_backtrace)
/* skip debug_backtrace() */
ptr = ptr->prev_execute_data;
cur_arg_pos -= 2;
frames_on_stack--;
if (skip_last--) {
int arg_count = *((ulong*)(cur_arg_pos - 2));
cur_arg_pos -= (arg_count + 2);
frames_on_stack--;
}
array_init(return_value);
@@ -1654,22 +1707,37 @@ ZEND_FUNCTION(debug_backtrace)
/* }}} */
/* {{{ proto array debug_backtrace(void)
Return backtrace as array */
ZEND_FUNCTION(debug_backtrace)
{
if (ZEND_NUM_ARGS()) {
ZEND_WRONG_PARAM_COUNT();
}
zend_fetch_debug_backtrace(return_value, 1 TSRMLS_CC);
}
/* }}} */
/* {{{ proto bool extension_loaded(string extension_name)
Returns true if the named extension is loaded */
ZEND_FUNCTION(extension_loaded)
{
zval **extension_name;
char *lcname;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &extension_name)) {
ZEND_WRONG_PARAM_COUNT();
}
convert_to_string_ex(extension_name);
if (zend_hash_exists(&module_registry, Z_STRVAL_PP(extension_name), Z_STRLEN_PP(extension_name)+1)) {
RETURN_TRUE;
lcname = zend_str_tolower_dup(Z_STRVAL_PP(extension_name), Z_STRLEN_PP(extension_name));
if (zend_hash_exists(&module_registry, lcname, Z_STRLEN_PP(extension_name)+1)) {
RETVAL_TRUE;
} else {
RETURN_FALSE;
RETVAL_FALSE;
}
efree(lcname);
}
/* }}} */
@@ -1709,6 +1777,7 @@ ZEND_FUNCTION(get_extension_funcs)
}
/* }}} */
/*
* Local variables:
* tab-width: 4
+5 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -24,6 +24,10 @@
int zend_startup_builtin_functions(TSRMLS_D);
BEGIN_EXTERN_C()
ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRMLS_DC);
END_EXTERN_C()
#endif /* ZEND_BUILTIN_FUNCTIONS_H */
/*
+819 -544
View File
File diff suppressed because it is too large. Load diff
+125 -75
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -52,7 +52,6 @@ typedef struct _zend_op zend_op;
typedef struct _znode {
int op_type;
zend_llist *throw_list; /* Try and save this space later on */
union {
zval constant;
@@ -69,12 +68,12 @@ typedef struct _znode {
typedef struct _zend_execute_data zend_execute_data;
#define ZEND_OPCODE_HANDLER_ARGS zend_execute_data *execute_data, zend_op_array *op_array TSRMLS_DC
#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU execute_data, op_array TSRMLS_CC
#define ZEND_OPCODE_HANDLER_ARGS zend_execute_data *execute_data, zend_op *opline, zend_op_array *op_array TSRMLS_DC
#define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU execute_data, opline, op_array TSRMLS_CC
typedef int (*opcode_handler_t) (ZEND_OPCODE_HANDLER_ARGS);
extern opcode_handler_t zend_opcode_handlers[512];
extern ZEND_API opcode_handler_t zend_opcode_handlers[512];
struct _zend_op {
opcode_handler_t handler;
@@ -94,13 +93,27 @@ typedef struct _zend_brk_cont_element {
} zend_brk_cont_element;
typedef struct _zend_try_catch_element {
zend_uint try_op;
zend_uint catch_op; /* ketchup! */
} zend_try_catch_element;
/* method flags (types) */
#define ZEND_ACC_STATIC 0x01
#define ZEND_ACC_ABSTRACT 0x02
#define ZEND_ACC_FINAL 0x04
#define ZEND_ACC_INTERFACE 0x08
#define ZEND_ACC_ABSTRACT_CLASS 0x10
#define ZEND_ACC_FINAL_CLASS 0x20
#define ZEND_ACC_IMPLEMENTED_ABSTRACT 0x08
/* class flags (types) */
/* ZEND_ACC_IMPLICIT_ABSTRACT_CLASS is used for abstract classes (since it is set by any abstract method even interfaces MAY have it set, too). */
/* ZEND_ACC_EXPLICIT_ABSTRACT_CLASS denotes that a class was explicitly defined as abstract by using the keyword. */
#define ZEND_ACC_IMPLICIT_ABSTRACT_CLASS 0x10
#define ZEND_ACC_EXPLICIT_ABSTRACT_CLASS 0x20
#define ZEND_ACC_FINAL_CLASS 0x40
#define ZEND_ACC_INTERFACE 0x80
/* method flags (visibility) */
/* The order of those must be kept - public < protected < private */
#define ZEND_ACC_PUBLIC 0x100
#define ZEND_ACC_PROTECTED 0x200
@@ -110,6 +123,14 @@ typedef struct _zend_brk_cont_element {
#define ZEND_ACC_CHANGED 0x800
#define ZEND_ACC_IMPLICIT_PUBLIC 0x1000
/* method flags (special method detection) */
#define ZEND_ACC_CTOR 0x2000
#define ZEND_ACC_DTOR 0x4000
#define ZEND_ACC_CLONE 0x8000
/* method flag (bc only), any method that has this flag can be used statically and non statically. */
#define ZEND_ACC_ALLOW_STATIC 0x10000
char *zend_visibility_string(zend_uint fn_flags);
@@ -121,14 +142,29 @@ typedef struct _zend_property_info {
} zend_property_info;
typedef struct _zend_arg_info {
char *name;
zend_uint name_len;
char *class_name;
zend_uint class_name_len;
zend_bool allow_null;
zend_bool pass_by_reference;
zend_bool return_reference;
int required_num_args;
} zend_arg_info;
struct _zend_op_array {
/* Common elements */
zend_uchar type;
zend_uchar *arg_types;
char *function_name;
zend_class_entry *scope;
zend_uint fn_flags;
union _zend_function *prototype;
zend_uint num_args;
zend_uint required_num_args;
zend_arg_info *arg_info;
zend_bool pass_rest_by_reference;
unsigned char return_reference;
/* END of common elements */
zend_uint *refcount;
@@ -142,13 +178,15 @@ struct _zend_op_array {
zend_uint last_brk_cont;
zend_uint current_brk_cont;
zend_try_catch_element *try_catch_array;
int last_try_catch;
/* static variables support */
HashTable *static_variables;
zend_op *start_op;
int backpatch_count;
zend_bool return_reference;
zend_bool done_pass_two;
zend_bool uses_this;
@@ -162,14 +200,22 @@ struct _zend_op_array {
};
#define ZEND_RETURN_VALUE 0
#define ZEND_RETURN_REFERENCE 1
#define ZEND_RETURN_REFERENCE_AGNOSTIC 2
typedef struct _zend_internal_function {
/* Common elements */
zend_uchar type;
zend_uchar *arg_types;
char *function_name;
zend_class_entry *scope;
zend_uint fn_flags;
union _zend_function *prototype;
zend_uint num_args;
zend_uint required_num_args;
zend_arg_info *arg_info;
zend_bool pass_rest_by_reference;
unsigned char return_reference;
/* END of common elements */
void (*handler)(INTERNAL_FUNCTION_PARAMETERS);
@@ -182,11 +228,15 @@ typedef union _zend_function {
struct {
zend_uchar type; /* never used */
zend_uchar *arg_types;
char *function_name;
zend_class_entry *scope;
zend_uint fn_flags;
union _zend_function *prototype;
zend_uint num_args;
zend_uint required_num_args;
zend_arg_info *arg_info;
zend_bool pass_rest_by_reference;
unsigned char return_reference;
} common;
zend_op_array op_array;
@@ -249,12 +299,6 @@ void zend_init_compiler_data_structures(TSRMLS_D);
extern ZEND_API zend_op_array *(*zend_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC);
void zend_activate(TSRMLS_D);
void zend_deactivate(TSRMLS_D);
void zend_activate_modules(TSRMLS_D);
void zend_deactivate_modules(TSRMLS_D);
ZEND_API int lex_scan(zval *zendlval TSRMLS_DC);
void startup_scanner(TSRMLS_D);
void shutdown_scanner(TSRMLS_D);
@@ -271,8 +315,6 @@ int zend_get_zendleng(TSRMLS_D);
/* parser-driven code generators */
void zend_do_fold_binary_op(zend_uchar op, znode *result, znode *op1, znode *op2 TSRMLS_DC);
void zend_do_fold_constant(znode *result, znode *constant_name TSRMLS_DC);
void zend_do_binary_op(zend_uchar op, znode *result, znode *op1, znode *op2 TSRMLS_DC);
void zend_do_unary_op(zend_uchar op, znode *result, znode *op1 TSRMLS_DC);
void zend_do_binary_assign_op(zend_uchar op, znode *result, znode *op1, znode *op2 TSRMLS_DC);
@@ -326,29 +368,31 @@ void zend_do_add_variable(znode *result, znode *op1, znode *op2 TSRMLS_DC);
int zend_do_verify_access_types(znode *current_access_type, znode *new_modifier);
void zend_do_begin_function_declaration(znode *function_token, znode *function_name, int is_method, int return_reference, znode *fn_flags_znode TSRMLS_DC);
void zend_do_end_function_declaration(znode *function_token TSRMLS_DC);
void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initialization, znode *class_type, zend_uchar pass_type TSRMLS_DC);
void zend_do_receive_arg(zend_uchar op, znode *var, znode *offset, znode *initialization, znode *class_type, znode *varname, zend_bool pass_by_reference TSRMLS_DC);
int zend_do_begin_function_call(znode *function_name TSRMLS_DC);
void zend_do_begin_method_call(znode *left_bracket TSRMLS_DC);
void zend_do_clone(znode *result, znode *expr TSRMLS_DC);
void zend_do_begin_dynamic_function_call(znode *function_name TSRMLS_DC);
void zend_do_fetch_class(znode *result, znode *class_name TSRMLS_DC);
void zend_do_fetch_class_name(znode *result, znode *class_entry, znode *class_name, zend_bool case_sensitive TSRMLS_DC);
void zend_do_fetch_class_name(znode *result, znode *class_entry, znode *class_name TSRMLS_DC);
void zend_do_begin_class_member_function_call(TSRMLS_D);
void zend_do_end_function_call(znode *function_name, znode *result, znode *argument_list, int is_method, int is_dynamic_fcall TSRMLS_DC);
void zend_do_return(znode *expr, int do_end_vparse TSRMLS_DC);
void zend_do_handle_exception(TSRMLS_D);
void zend_do_try(znode *try_token TSRMLS_DC);
void zend_do_begin_catch(znode *try_token, znode *catch_class, znode *catch_var, zend_bool first_catch TSRMLS_DC);
void zend_do_end_catch(znode *try_token TSRMLS_DC);
void zend_do_throw(znode *expr TSRMLS_DC);
ZEND_API int do_bind_function(zend_op *opline, HashTable *function_table, HashTable *class_table, int compile_time);
ZEND_API zend_class_entry *do_bind_class(zend_op *opline, HashTable *function_table, HashTable *class_table TSRMLS_DC);
ZEND_API zend_class_entry *do_bind_inherited_class(zend_op *opline, HashTable *function_table, HashTable *class_table, zend_class_entry *parent_ce TSRMLS_DC);
ZEND_API void zend_do_inherit_interfaces(zend_class_entry *ce, zend_class_entry *ce2);
ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface);
ZEND_API int do_bind_function(zend_op *opline, HashTable *function_table, zend_bool compile_time);
ZEND_API zend_class_entry *do_bind_class(zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC);
ZEND_API zend_class_entry *do_bind_inherited_class(zend_op *opline, HashTable *class_table, zend_class_entry *parent_ce, zend_bool compile_time TSRMLS_DC);
ZEND_API void zend_do_inherit_interfaces(zend_class_entry *ce, zend_class_entry *iface TSRMLS_DC);
ZEND_API void zend_do_implement_interface(zend_class_entry *ce, zend_class_entry *iface TSRMLS_DC);
void zend_do_implements_interface(znode *interface_znode TSRMLS_DC);
void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce);
void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce TSRMLS_DC);
void zend_do_early_binding(TSRMLS_D);
void zend_do_pass_param(znode *param, zend_uchar op, int offset TSRMLS_DC);
@@ -405,7 +449,7 @@ void zend_do_isset_or_isempty(int type, znode *result, znode *variable TSRMLS_DC
void zend_do_instanceof(znode *result, znode *expr, znode *class_znode, int type TSRMLS_DC);
void zend_do_foreach_begin(znode *foreach_token, znode *array, znode *open_brackets_token, znode *as_token, int variable TSRMLS_DC);
void zend_do_foreach_cont(znode *value, znode *key, znode *as_token TSRMLS_DC);
void zend_do_foreach_cont(znode *value, znode *key, znode *as_token, znode *foreach_token TSRMLS_DC);
void zend_do_foreach_end(znode *foreach_token, znode *open_brackets_token TSRMLS_DC);
void zend_do_declare_begin(TSRMLS_D);
@@ -429,10 +473,6 @@ void zend_do_extended_fcall_end(TSRMLS_D);
void zend_do_ticks(TSRMLS_D);
void zend_do_begin_import(TSRMLS_D);
void zend_do_import(int type, znode *what TSRMLS_DC);
void zend_do_end_import(znode *import_from TSRMLS_DC);
void zend_do_abstract_method(znode *function_name, znode *modifiers, znode *body TSRMLS_DC);
ZEND_API void function_add_ref(zend_function *function);
@@ -454,14 +494,14 @@ ZEND_API int zend_cleanup_class_data(zend_class_entry **pce TSRMLS_DC);
ZEND_API int zend_cleanup_function_data(zend_function *function TSRMLS_DC);
ZEND_API void destroy_zend_function(zend_function *function TSRMLS_DC);
ZEND_API void zend_function_dtor(zend_function *function);
ZEND_API void destroy_zend_class(zend_class_entry **pce);
void zend_class_add_ref(zend_class_entry **ce);
void unmangle_property_name(char *mangled_property, char **prop_name, char **class_name);
void zend_duplicate_property_info(zend_property_info *property_info);
void zend_destroy_property_info(zend_property_info *property_info);
ZEND_API void zend_mangle_property_name(char **dest, int *dest_length, char *src1, int src1_length, char *src2, int src2_length, int internal);
ZEND_API void zend_unmangle_property_name(char *mangled_property, char **prop_name, char **class_name);
#define ZEND_FUNCTION_DTOR (void (*)(void *)) destroy_zend_function
#define ZEND_FUNCTION_DTOR (void (*)(void *)) zend_function_dtor
#define ZEND_CLASS_DTOR (void (*)(void *)) destroy_zend_class
zend_op *get_next_op(zend_op_array *op_array TSRMLS_DC);
@@ -471,9 +511,13 @@ int print_class(zend_class_entry *class_entry TSRMLS_DC);
void print_op_array(zend_op_array *op_array, int optimizations);
int pass_two(zend_op_array *op_array TSRMLS_DC);
zend_brk_cont_element *get_next_brk_cont_element(zend_op_array *op_array);
void zend_do_first_catch(znode *open_parentheses TSRMLS_DC);
void zend_initialize_try_catch_element(znode *try_token TSRMLS_DC);
void zend_do_mark_last_catch(znode *first_catch, znode *last_additional_catch TSRMLS_DC);
ZEND_API zend_bool zend_is_compiling(TSRMLS_D);
ZEND_API char *zend_make_compiled_string_description(char *name TSRMLS_DC);
void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers TSRMLS_DC);
ZEND_API void zend_initialize_class_data(zend_class_entry *ce, zend_bool nullify_handlers TSRMLS_DC);
int zend_get_class_fetch_type(char *class_name, uint class_name_len);
typedef zend_bool (*zend_auto_global_callback)(char *name, uint name_len TSRMLS_DC);
typedef struct _zend_auto_global {
@@ -486,6 +530,7 @@ typedef struct _zend_auto_global {
void zend_auto_global_dtor(zend_auto_global *auto_global);
ZEND_API int zend_register_auto_global(char *name, uint name_len, zend_auto_global_callback auto_global_callback TSRMLS_DC);
ZEND_API zend_bool zend_is_auto_global(char *name, uint name_len TSRMLS_DC);
ZEND_API int zend_auto_global_disable_jit(char *varname, zend_uint varname_length TSRMLS_DC);
int zendlex(znode *zendlval TSRMLS_DC);
@@ -641,18 +686,6 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define ZEND_IMPORT_FUNCTION 116
#define ZEND_IMPORT_CLASS 117
#define ZEND_IMPORT_CONST 118
#define ZEND_ASSIGN_ADD_OBJ 121
#define ZEND_ASSIGN_SUB_OBJ 122
#define ZEND_ASSIGN_MUL_OBJ 123
#define ZEND_ASSIGN_DIV_OBJ 124
#define ZEND_ASSIGN_MOD_OBJ 125
#define ZEND_ASSIGN_SL_OBJ 126
#define ZEND_ASSIGN_SR_OBJ 127
#define ZEND_ASSIGN_CONCAT_OBJ 128
#define ZEND_ASSIGN_BW_OR_OBJ 129
#define ZEND_ASSIGN_BW_AND_OBJ 130
#define ZEND_ASSIGN_BW_XOR_OBJ 131
#define ZEND_PRE_INC_OBJ 132
#define ZEND_PRE_DEC_OBJ 133
@@ -673,9 +706,14 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define ZEND_ADD_INTERFACE 144
#define ZEND_VERIFY_INSTANCEOF 145
#define ZEND_VERIFY_ABSTRACT_CLASS 146
#define ZEND_ASSIGN_DIM 147
#define ZEND_ISSET_ISEMPTY_PROP_OBJ 148
#define ZEND_HANDLE_EXCEPTION 149
/* end of block */
/* END: OPCODES */
@@ -688,20 +726,27 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define ZEND_FETCH_STATIC 2
#define ZEND_FETCH_STATIC_MEMBER 3
/* obj/dim unsets */
#define ZEND_UNSET_DIM 1
#define ZEND_UNSET_OBJ 2
/* class fetches */
#define ZEND_FETCH_CLASS_DEFAULT 0
#define ZEND_FETCH_CLASS_SELF 1
#define ZEND_FETCH_CLASS_PARENT 2
#define ZEND_FETCH_CLASS_MAIN 3
#define ZEND_FETCH_CLASS_GLOBAL 4
#define ZEND_FETCH_CLASS_AUTO 5
/* variable parsing type (compile-time) */
#define ZEND_PARSED_MEMBER (1<<0)
#define ZEND_PARSED_METHOD_CALL (1<<1)
#define ZEND_PARSED_STATIC_MEMBER (1<<2)
#define ZEND_PARSED_FUNCTION_CALL (1<<3)
#define ZEND_PARSED_VARIABLE (1<<4)
#define ZEND_PARSED_MEMBER (1<<0)
#define ZEND_PARSED_METHOD_CALL (1<<1)
#define ZEND_PARSED_STATIC_MEMBER (1<<2)
#define ZEND_PARSED_FUNCTION_CALL (1<<3)
#define ZEND_PARSED_VARIABLE (1<<4)
#define ZEND_PARSED_REFERENCE_VARIABLE (1<<5)
/* unset types */
@@ -717,10 +762,11 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define BP_VAR_UNSET 6
#define ZEND_INTERNAL_FUNCTION 1
#define ZEND_USER_FUNCTION 2
#define ZEND_OVERLOADED_FUNCTION 3
#define ZEND_EVAL_CODE 4
#define ZEND_INTERNAL_FUNCTION 1
#define ZEND_USER_FUNCTION 2
#define ZEND_OVERLOADED_FUNCTION 3
#define ZEND_EVAL_CODE 4
#define ZEND_OVERLOADED_FUNCTION_TEMPORARY 5
#define ZEND_INTERNAL_CLASS 1
#define ZEND_USER_CLASS 2
@@ -762,26 +808,30 @@ int zendlex(znode *zendlval TSRMLS_DC);
}
/* Lost In Stupid Parentheses */
#define ARG_SHOULD_BE_SENT_BY_REF(offset, conduct_check, arg_types) \
( \
conduct_check \
&& arg_types \
&& \
( \
( \
offset<=arg_types[0] \
&& arg_types[offset]==BYREF_FORCE \
) \
|| ( \
offset>=arg_types[0] \
&& arg_types[arg_types[0]]==BYREF_FORCE_REST \
) \
) \
#define ARG_SHOULD_BE_SENT_BY_REF(zf, arg_num) \
( \
zf \
&& ((zend_function *) zf)->common.arg_info \
&& \
( \
( \
arg_num<=((zend_function *) zf)->common.num_args \
&& ((zend_function *) zf)->common.arg_info[arg_num-1].pass_by_reference \
) \
|| ( \
arg_num>((zend_function *) zf)->common.num_args \
&& ((zend_function *) zf)->common.pass_rest_by_reference \
) \
) \
)
#define ZEND_RETURN_VAL 0
#define ZEND_RETURN_REF 1
#define ZEND_RETURNS_FUNCTION 1<<0
END_EXTERN_C()
#define ZEND_CLONE_FUNC_NAME "__clone"
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
+37 -32
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -38,7 +38,7 @@ void free_zend_constant(zend_constant *c)
void copy_zend_constant(zend_constant *c)
{
c->name = zend_strndup(c->name, c->name_len);
c->name = zend_strndup(c->name, c->name_len - 1);
if (!(c->flags & CONST_PERSISTENT)) {
zval_copy_ctor(&c->value);
}
@@ -97,6 +97,7 @@ void zend_register_standard_constants(TSRMLS_D)
REGISTER_MAIN_LONG_CONSTANT("E_WARNING", E_WARNING, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("E_PARSE", E_PARSE, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("E_NOTICE", E_NOTICE, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("E_STRICT", E_STRICT, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("E_CORE_ERROR", E_CORE_ERROR, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("E_CORE_WARNING", E_CORE_WARNING, CONST_PERSISTENT | CONST_CS);
REGISTER_MAIN_LONG_CONSTANT("E_COMPILE_ERROR", E_COMPILE_ERROR, CONST_PERSISTENT | CONST_CS);
@@ -166,7 +167,7 @@ ZEND_API void zend_register_long_constant(char *name, uint name_len, long lval,
c.value.type = IS_LONG;
c.value.value.lval = lval;
c.flags = flags;
c.name = zend_strndup(name, name_len);
c.name = zend_strndup(name, name_len-1);
c.name_len = name_len;
c.module_number = module_number;
zend_register_constant(&c TSRMLS_CC);
@@ -180,7 +181,7 @@ ZEND_API void zend_register_double_constant(char *name, uint name_len, double dv
c.value.type = IS_DOUBLE;
c.value.value.dval = dval;
c.flags = flags;
c.name = zend_strndup(name, name_len);
c.name = zend_strndup(name, name_len-1);
c.name_len = name_len;
c.module_number = module_number;
zend_register_constant(&c TSRMLS_CC);
@@ -195,7 +196,7 @@ ZEND_API void zend_register_stringl_constant(char *name, uint name_len, char *st
c.value.value.str.val = strval;
c.value.value.str.len = strlen;
c.flags = flags;
c.name = zend_strndup(name, name_len);
c.name = zend_strndup(name, name_len-1);
c.name_len = name_len;
c.module_number = module_number;
zend_register_constant(&c TSRMLS_CC);
@@ -211,35 +212,35 @@ ZEND_API void zend_register_string_constant(char *name, uint name_len, char *str
ZEND_API int zend_get_constant(char *name, uint name_len, zval *result TSRMLS_DC)
{
zend_constant *c;
char *lookup_name;
int retval = 1;
char *lookup_name;
char *colon;
if((colon = memchr(name, ':', name_len)) && colon[1] == ':') {
if ((colon = memchr(name, ':', name_len)) && colon[1] == ':') {
/* class constant */
zend_class_entry **ce = NULL, *scope;
int class_name_len = colon-name;
int const_name_len = name_len - class_name_len - 2;
char *constant_name = colon+2;
zval **ret_constant;
char *class_name;
if(EG(in_execution)) {
if (EG(in_execution)) {
scope = EG(scope);
} else {
scope = CG(active_class_entry);
}
lookup_name = do_alloca(class_name_len+1);
zend_str_tolower_copy(lookup_name, name, class_name_len);
lookup_name[class_name_len] = '\0';
if(class_name_len == sizeof("self")-1 && strcmp(lookup_name, "self") == 0) {
if(scope) {
class_name = estrndup(name, class_name_len);
if (class_name_len == sizeof("self")-1 && strcmp(class_name, "self") == 0) {
if (scope) {
ce = &scope;
} else {
zend_error(E_ERROR, "Cannot access self:: when no class scope is active");
retval = 0;
}
} else if (class_name_len == sizeof("parent")-1 && strcmp(lookup_name, "parent") == 0) {
} else if (class_name_len == sizeof("parent")-1 && strcmp(class_name, "parent") == 0) {
if (!scope) {
zend_error(E_ERROR, "Cannot access parent:: when no class scope is active");
} else if (!scope->parent) {
@@ -248,12 +249,13 @@ ZEND_API int zend_get_constant(char *name, uint name_len, zval *result TSRMLS_DC
ce = &scope->parent;
}
} else {
if(zend_lookup_class(lookup_name, class_name_len, &ce TSRMLS_CC) != SUCCESS) {
if (zend_lookup_class(class_name, class_name_len, &ce TSRMLS_CC) != SUCCESS) {
retval = 0;
}
}
efree(class_name);
if(retval && ce) {
if (retval && ce) {
if (zend_hash_find(&((*ce)->constants_table), constant_name, const_name_len+1, (void **) &ret_constant) != SUCCESS) {
retval = 0;
}
@@ -261,19 +263,18 @@ ZEND_API int zend_get_constant(char *name, uint name_len, zval *result TSRMLS_DC
retval = 0;
}
if(retval) {
if (retval) {
zval_update_constant(ret_constant, (void*)1 TSRMLS_CC);
*result = **ret_constant;
zval_copy_ctor(result);
}
free_alloca(lookup_name);
return retval;
}
if (zend_hash_find(EG(zend_constants), name, name_len+1, (void **) &c) == FAILURE) {
lookup_name = do_alloca(name_len+1);
zend_str_tolower_copy(lookup_name, name, name_len);
lookup_name[name_len] = '\0';
lookup_name = estrndup(name, name_len);
zend_str_tolower(lookup_name, name_len);
if (zend_hash_find(EG(zend_constants), lookup_name, name_len+1, (void **) &c)==SUCCESS) {
if ((c->flags & CONST_CS) && memcmp(c->name, name, name_len)!=0) {
@@ -282,12 +283,14 @@ ZEND_API int zend_get_constant(char *name, uint name_len, zval *result TSRMLS_DC
} else {
retval=0;
}
free_alloca(lookup_name);
efree(lookup_name);
}
if (retval) {
*result = c->value;
zval_copy_ctor(result);
result->refcount = 1;
result->is_ref = 0;
}
return retval;
@@ -296,7 +299,8 @@ ZEND_API int zend_get_constant(char *name, uint name_len, zval *result TSRMLS_DC
ZEND_API int zend_register_constant(zend_constant *c TSRMLS_DC)
{
char *lowercase_name;
char *lowercase_name = NULL;
char *name;
int ret = SUCCESS;
#if 0
@@ -305,23 +309,24 @@ ZEND_API int zend_register_constant(zend_constant *c TSRMLS_DC)
if (!(c->flags & CONST_CS)) {
/* keep in mind that c->name_len already contains the '\0' */
lowercase_name = do_alloca(c->name_len);
zend_str_tolower_copy(lowercase_name, c->name, c->name_len - 1);
lowercase_name = estrndup(c->name, c->name_len);
zend_str_tolower(lowercase_name, c->name_len);
name = lowercase_name;
} else {
lowercase_name = do_alloca(c->name_len + 1);
memcpy(lowercase_name, c->name, c->name_len);
lowercase_name[c->name_len] = '\0';
name = c->name;
}
if (zend_hash_add(EG(zend_constants), lowercase_name, c->name_len, (void *) c, sizeof(zend_constant), NULL)==FAILURE) {
if (zend_hash_add(EG(zend_constants), name, c->name_len, (void *) c, sizeof(zend_constant), NULL)==FAILURE) {
free(c->name);
if (!(c->flags & CONST_PERSISTENT)) {
zval_dtor(&c->value);
}
zend_error(E_NOTICE,"Constant %s already defined", lowercase_name);
zend_error(E_NOTICE,"Constant %s already defined", name);
ret = FAILURE;
}
free_alloca(lowercase_name);
if (lowercase_name) {
efree(lowercase_name);
}
return ret;
}
+4 -2
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -27,6 +27,8 @@
#define CONST_CS (1<<0) /* Case Sensitive */
#define CONST_PERSISTENT (1<<1) /* Persistent */
#define PHP_USER_CONSTANT INT_MAX /* a constant defined in user space */
typedef struct _zend_constant {
zval value;
int flags;
@@ -60,7 +62,7 @@ ZEND_API void zend_register_stringl_constant(char *name, uint name_len, char *st
ZEND_API int zend_register_constant(zend_constant *c TSRMLS_DC);
void zend_copy_constants(HashTable *target, HashTable *sourc);
void copy_zend_constant(zend_constant *c);
END_EXTERN_C();
END_EXTERN_C()
#define ZEND_CONSTANT_DTOR (void (*)(void *)) free_zend_constant
+9 -105
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -13,6 +13,7 @@
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Sterling Hughes <sterling@php.net> |
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
@@ -20,115 +21,18 @@
#include "zend.h"
#include "zend_API.h"
#include "zend_reflection_api.h"
#include "zend_builtin_functions.h"
#include "zend_interfaces.h"
#include "zend_exceptions.h"
zend_class_entry *default_exception_ptr;
ZEND_FUNCTION(exception)
{
zval **message;
zval **code;
zval *tmp;
zval *object;
int argc = ZEND_NUM_ARGS();
if (zend_get_parameters_ex(argc, &message, &code) == FAILURE) {
ZEND_WRONG_PARAM_COUNT();
}
object = getThis();
if (argc > 0) {
convert_to_string_ex(message);
zval_add_ref(message);
zend_hash_update(Z_OBJPROP_P(object), "message", sizeof("message"), (void **) message, sizeof(zval *), NULL);
}
if (argc > 1) {
convert_to_long_ex(code);
zval_add_ref(code);
zend_hash_update(Z_OBJPROP_P(object), "code", sizeof("code"), (void **) code, sizeof(zval *), NULL);
}
MAKE_STD_ZVAL(tmp);
ZVAL_STRING(tmp, zend_get_executed_filename(TSRMLS_C), 1);
zend_hash_update(Z_OBJPROP_P(object), "file", sizeof("file"), (void **) &tmp, sizeof(zval *), NULL);
tmp = NULL;
MAKE_STD_ZVAL(tmp);
ZVAL_LONG(tmp, zend_get_executed_lineno(TSRMLS_C));
zend_hash_update(Z_OBJPROP_P(object), "line", sizeof("line"), (void **) &tmp, sizeof(zval *), NULL);
}
#define DEFAULT_0_PARAMS \
if (ZEND_NUM_ARGS() > 0) { \
ZEND_WRONG_PARAM_COUNT(); \
}
static void _default_exception_get_entry(zval *object, char *name, int name_len, zval *return_value TSRMLS_DC)
{
zval **value;
if (zend_hash_find(Z_OBJPROP_P(object), name, name_len, (void **) &value) == FAILURE) {
RETURN_FALSE;
}
*return_value = **value;
zval_copy_ctor(return_value);
}
ZEND_FUNCTION(getfile)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "file", sizeof("file"), return_value TSRMLS_CC);
}
ZEND_FUNCTION(getline)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "line", sizeof("line"), return_value TSRMLS_CC);
}
ZEND_FUNCTION(getmessage)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "message", sizeof("message"), return_value TSRMLS_CC);
}
ZEND_FUNCTION(getcode)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "code", sizeof("code"), return_value TSRMLS_CC);
}
static zend_function_entry default_exception_functions[] = {
ZEND_FE(exception, NULL)
ZEND_FE(getmessage, NULL)
ZEND_FE(getcode, NULL)
ZEND_FE(getfile, NULL)
ZEND_FE(getline, NULL)
{NULL, NULL, NULL}
};
static void zend_register_default_exception(TSRMLS_D)
{
zend_class_entry default_exception;
INIT_CLASS_ENTRY(default_exception, "exception", default_exception_functions);
default_exception_ptr = zend_register_internal_class(&default_exception TSRMLS_CC);
}
ZEND_API zend_class_entry *zend_exception_get_default(void)
{
return default_exception_ptr;
}
ZEND_API void zend_register_default_classes(TSRMLS_D)
{
zend_register_interfaces(TSRMLS_C);
zend_register_default_exception(TSRMLS_C);
zend_register_reflection_api(TSRMLS_C);
zend_register_iterator_wrapper(TSRMLS_C);
}
/*
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
+2 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -33,6 +33,7 @@
#define E_USER_ERROR (1<<8L)
#define E_USER_WARNING (1<<9L)
#define E_USER_NOTICE (1<<10L)
#define E_STRICT (1<<11L)
#define E_ALL (E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE)
#define E_CORE (E_CORE_ERROR | E_CORE_WARNING)
+493 -53
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -12,7 +12,10 @@
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Sterling Hughes <sterling@php.net> |
| Authors: Andi Gutmans <andi@zend.com> |
| Marcus Boerger <helly@php.net> |
| Sterling Hughes <sterling@php.net> |
| Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
@@ -20,43 +23,108 @@
#include "zend.h"
#include "zend_API.h"
#include "zend_reflection_api.h"
#include "zend_builtin_functions.h"
#include "zend_interfaces.h"
zend_class_entry *default_exception_ptr;
zend_class_entry *default_exception_ce;
static zend_object_handlers default_exception_handlers;
ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC);
ZEND_API void (*zend_throw_exception_hook)(zval *ex TSRMLS_DC);
ZEND_FUNCTION(exception)
void zend_throw_exception_internal(zval *exception TSRMLS_DC)
{
zval **message;
zval **code;
zval *tmp;
zval *object;
int argc = ZEND_NUM_ARGS();
if (exception != NULL) {
if (EG(exception)) {
/* FIXME: bail out? */
return;
}
EG(exception) = exception;
}
if (!EG(current_execute_data)) {
zend_error(E_ERROR, "Exception thrown without a stack frame");
}
if (zend_get_parameters_ex(argc, &message, &code) == FAILURE) {
ZEND_WRONG_PARAM_COUNT();
if (zend_throw_exception_hook) {
zend_throw_exception_hook(exception TSRMLS_CC);
}
if ((EG(current_execute_data)->opline+1)->opcode == ZEND_HANDLE_EXCEPTION) {
/* no need to rethrow the exception */
return;
}
EG(opline_before_exception) = EG(current_execute_data)->opline;
EG(current_execute_data)->opline = &EG(active_op_array)->opcodes[EG(active_op_array)->last-1-1];
}
ZEND_API void zend_clear_exception(TSRMLS_D)
{
if (!EG(exception)) {
return;
}
zval_ptr_dtor(&EG(exception));
EG(exception) = NULL;
EG(current_execute_data)->opline = EG(opline_before_exception);
#if ZEND_DEBUG
EG(opline_before_exception) = NULL;
#endif
}
static zend_object_value zend_default_exception_new(zend_class_entry *class_type TSRMLS_DC)
{
zval tmp, obj;
zend_object *object;
zval *trace;
obj.value.obj = zend_objects_new(&object, class_type TSRMLS_CC);
obj.value.obj.handlers = &default_exception_handlers;
ALLOC_HASHTABLE(object->properties);
zend_hash_init(object->properties, 0, NULL, ZVAL_PTR_DTOR, 0);
zend_hash_copy(object->properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
ALLOC_ZVAL(trace);
trace->is_ref = 0;
trace->refcount = 0;
zend_fetch_debug_backtrace(trace, 0 TSRMLS_CC);
zend_update_property_string(default_exception_ce, &obj, "file", sizeof("file")-1, zend_get_executed_filename(TSRMLS_C) TSRMLS_CC);
zend_update_property_long(default_exception_ce, &obj, "line", sizeof("line")-1, zend_get_executed_lineno(TSRMLS_C) TSRMLS_CC);
zend_update_property(default_exception_ce, &obj, "trace", sizeof("trace")-1, trace TSRMLS_CC);
return obj.value.obj;
}
ZEND_METHOD(exception, __clone)
{
/* Should never be executable */
zend_throw_exception(NULL, "Cannot clone object using __clone()", 0 TSRMLS_CC);
}
ZEND_METHOD(exception, __construct)
{
char *message = NULL;
long code = 0;
zval *object;
int argc = ZEND_NUM_ARGS(), message_len;
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "|sl", &message, &message_len, &code) == FAILURE) {
zend_error(E_CORE_ERROR, "Wrong parameter count for exception([string $exception [, long $code ]])");
}
object = getThis();
if (argc > 0) {
convert_to_string_ex(message);
zval_add_ref(message);
zend_hash_update(Z_OBJPROP_P(object), "message", sizeof("message"), (void **) message, sizeof(zval *), NULL);
if (message) {
zend_update_property_string(default_exception_ce, object, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (argc > 1) {
convert_to_long_ex(code);
zval_add_ref(code);
zend_hash_update(Z_OBJPROP_P(object), "code", sizeof("code"), (void **) code, sizeof(zval *), NULL);
if (code) {
zend_update_property_long(default_exception_ce, object, "code", sizeof("code")-1, code TSRMLS_CC);
}
MAKE_STD_ZVAL(tmp);
ZVAL_STRING(tmp, zend_get_executed_filename(TSRMLS_C), 1);
zend_hash_update(Z_OBJPROP_P(object), "file", sizeof("file"), (void **) &tmp, sizeof(zval *), NULL);
tmp = NULL;
MAKE_STD_ZVAL(tmp);
ZVAL_LONG(tmp, zend_get_executed_lineno(TSRMLS_C));
zend_hash_update(Z_OBJPROP_P(object), "line", sizeof("line"), (void **) &tmp, sizeof(zval *), NULL);
}
#define DEFAULT_0_PARAMS \
@@ -66,69 +134,441 @@ ZEND_FUNCTION(exception)
static void _default_exception_get_entry(zval *object, char *name, int name_len, zval *return_value TSRMLS_DC)
{
zval **value;
zval *value;
if (zend_hash_find(Z_OBJPROP_P(object), name, name_len, (void **) &value) == FAILURE) {
RETURN_FALSE;
}
value = zend_read_property(default_exception_ce, object, name, name_len, 0 TSRMLS_CC);
*return_value = **value;
*return_value = *value;
zval_copy_ctor(return_value);
}
ZEND_FUNCTION(getfile)
ZEND_METHOD(exception, getFile)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "file", sizeof("file"), return_value TSRMLS_CC);
_default_exception_get_entry(getThis(), "file", sizeof("file")-1, return_value TSRMLS_CC);
}
ZEND_FUNCTION(getline)
ZEND_METHOD(exception, getLine)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "line", sizeof("line"), return_value TSRMLS_CC);
_default_exception_get_entry(getThis(), "line", sizeof("line")-1, return_value TSRMLS_CC);
}
ZEND_FUNCTION(getmessage)
ZEND_METHOD(exception, getMessage)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "message", sizeof("message"), return_value TSRMLS_CC);
_default_exception_get_entry(getThis(), "message", sizeof("message")-1, return_value TSRMLS_CC);
}
ZEND_FUNCTION(getcode)
ZEND_METHOD(exception, getCode)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "code", sizeof("code"), return_value TSRMLS_CC);
_default_exception_get_entry(getThis(), "code", sizeof("code")-1, return_value TSRMLS_CC);
}
ZEND_METHOD(exception, getTrace)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "trace", sizeof("trace")-1, return_value TSRMLS_CC);
}
/* {{{ ZEND_METHOD(exception, gettraceasstring) */
#define TRACE_APPEND_CHR(chr) \
*str = (char*)erealloc(*str, *len + 1 + 1); \
(*str)[(*len)++] = chr
#define TRACE_APPEND_STRL(val, vallen) \
{ \
int l = vallen; \
*str = (char*)erealloc(*str, *len + l + 1); \
memcpy((*str) + *len, val, l); \
*len += l; \
}
#define TRACE_APPEND_STR(val) \
TRACE_APPEND_STRL(val, sizeof(val)-1)
#define TRACE_APPEND_KEY(key) \
if (zend_hash_find(ht, key, sizeof(key), (void**)&tmp) == SUCCESS) { \
TRACE_APPEND_STRL(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); \
}
static int _build_trace_args(zval **arg, int num_args, va_list args, zend_hash_key *hash_key)
{
char **str;
int *len;
str = va_arg(args, char**);
len = va_arg(args, int*);
/* the trivial way would be to do:
* conver_to_string_ex(arg);
* append it and kill the now tmp arg.
* but that could cause some E_NOTICE and also damn long lines.
*/
switch (Z_TYPE_PP(arg)) {
case IS_NULL:
TRACE_APPEND_STR("NULL, ");
break;
case IS_STRING: {
int l_added;
TRACE_APPEND_CHR('\'');
if (Z_STRLEN_PP(arg) > 15) {
TRACE_APPEND_STRL(Z_STRVAL_PP(arg), 15);
TRACE_APPEND_STR("...', ");
l_added = 15 + 6 + 1; /* +1 because of while (--l_added) */
} else {
l_added = Z_STRLEN_PP(arg);
TRACE_APPEND_STRL(Z_STRVAL_PP(arg), l_added);
TRACE_APPEND_STR("', ");
l_added += 3 + 1;
}
while (--l_added) {
if ((*str)[*len - l_added] < 32) {
(*str)[*len - l_added] = '?';
}
}
break;
}
case IS_BOOL:
if (Z_LVAL_PP(arg)) {
TRACE_APPEND_STR("true, ");
} else {
TRACE_APPEND_STR("false, ");
}
break;
case IS_RESOURCE:
TRACE_APPEND_STR("Resource id #");
/* break; */
case IS_LONG: {
long lval = Z_LVAL_PP(arg);
char s_tmp[MAX_LENGTH_OF_LONG + 1];
int l_tmp = zend_sprintf(s_tmp, "%ld", lval); /* SAFE */
TRACE_APPEND_STRL(s_tmp, l_tmp);
TRACE_APPEND_STR(", ");
break;
}
case IS_DOUBLE: {
double dval = Z_DVAL_PP(arg);
char *s_tmp;
int l_tmp;
TSRMLS_FETCH();
s_tmp = emalloc(MAX_LENGTH_OF_DOUBLE + EG(precision) + 1);
l_tmp = zend_sprintf(s_tmp, "%.*G", (int) EG(precision), dval); /* SAFE */
TRACE_APPEND_STRL(s_tmp, l_tmp);
/* %G already handles removing trailing zeros from the fractional part, yay */
efree(s_tmp);
TRACE_APPEND_STR(", ");
break;
}
case IS_ARRAY:
TRACE_APPEND_STR("Array, ");
break;
case IS_OBJECT: {
TSRMLS_FETCH();
TRACE_APPEND_STR("Object(");
TRACE_APPEND_STRL(Z_OBJCE_PP(arg)->name, strlen(Z_OBJCE_PP(arg)->name));
TRACE_APPEND_STR("), ");
break;
}
default:
break;
}
return ZEND_HASH_APPLY_KEEP;
}
static int _build_trace_string(zval **frame, int num_args, va_list args, zend_hash_key *hash_key)
{
char *s_tmp, **str;
int *len, *num;
long line;
HashTable *ht = Z_ARRVAL_PP(frame);
zval **file, **tmp;
str = va_arg(args, char**);
len = va_arg(args, int*);
num = va_arg(args, int*);
s_tmp = emalloc(1 + MAX_LENGTH_OF_LONG + 1 + 1);
sprintf(s_tmp, "#%d ", (*num)++);
TRACE_APPEND_STRL(s_tmp, strlen(s_tmp));
efree(s_tmp);
if (zend_hash_find(ht, "file", sizeof("file"), (void**)&file) == SUCCESS) {
if (zend_hash_find(ht, "line", sizeof("line"), (void**)&tmp) == SUCCESS) {
line = Z_LVAL_PP(tmp);
} else {
line = 0;
}
s_tmp = emalloc(Z_STRLEN_PP(file) + MAX_LENGTH_OF_LONG + 2 + 1);
sprintf(s_tmp, "%s(%ld): ", Z_STRVAL_PP(file), line);
TRACE_APPEND_STRL(s_tmp, strlen(s_tmp));
efree(s_tmp);
} else {
TRACE_APPEND_STR("[internal function]: ");
}
TRACE_APPEND_KEY("class");
TRACE_APPEND_KEY("type");
TRACE_APPEND_KEY("function");
TRACE_APPEND_CHR('(');
if (zend_hash_find(ht, "args", sizeof("args"), (void**)&tmp) == SUCCESS) {
int last_len = *len;
zend_hash_apply_with_arguments(Z_ARRVAL_PP(tmp), (apply_func_args_t)_build_trace_args, 2, str, len);
if (last_len != *len) {
*len -= 2; /* remove last ', ' */
}
}
TRACE_APPEND_STR(")\n");
return ZEND_HASH_APPLY_KEEP;
}
ZEND_METHOD(exception, getTraceAsString)
{
zval *trace;
char *res = estrdup(""), **str = &res, *s_tmp;
int res_len = 0, *len = &res_len, num = 0;
trace = zend_read_property(default_exception_ce, getThis(), "trace", sizeof("trace")-1, 1 TSRMLS_CC);
zend_hash_apply_with_arguments(Z_ARRVAL_P(trace), (apply_func_args_t)_build_trace_string, 3, str, len, &num);
s_tmp = emalloc(1 + MAX_LENGTH_OF_LONG + 7 + 1);
sprintf(s_tmp, "#%d {main}", num);
TRACE_APPEND_STRL(s_tmp, strlen(s_tmp));
efree(s_tmp);
res[res_len] = '\0';
RETURN_STRINGL(res, res_len, 0);
}
/* }}} */
static int zend_spprintf(char **message, int max_len, char *format, ...)
{
va_list arg;
int len;
va_start(arg, format);
len = zend_vspprintf(message, max_len, format, arg);
va_end(arg);
return len;
}
ZEND_METHOD(exception, __toString)
{
zval message, file, line, *trace;
char *str;
int len;
zend_fcall_info fci;
zval fname;
_default_exception_get_entry(getThis(), "message", sizeof("message")-1, &message TSRMLS_CC);
_default_exception_get_entry(getThis(), "file", sizeof("file")-1, &file TSRMLS_CC);
_default_exception_get_entry(getThis(), "line", sizeof("line")-1, &line TSRMLS_CC);
convert_to_string(&message);
convert_to_string(&file);
convert_to_long(&line);
ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 0);
fci.size = sizeof(fci);
fci.function_table = &Z_OBJCE_P(getThis())->function_table;
fci.function_name = &fname;
fci.symbol_table = NULL;
fci.object_pp = &getThis();
fci.retval_ptr_ptr = &trace;
fci.param_count = 0;
fci.params = NULL;
fci.no_separation = 1;
zend_call_function(&fci, NULL TSRMLS_CC);
if (Z_TYPE_P(trace) != IS_STRING) {
trace = NULL;
}
if (Z_STRLEN(message) > 0) {
len = zend_spprintf(&str, 0, "exception '%s' with message '%s' in %s:%ld\nStack trace:\n%s",
Z_OBJCE_P(getThis())->name, Z_STRVAL(message), Z_STRVAL(file), Z_LVAL(line),
(trace && Z_STRLEN_P(trace)) ? Z_STRVAL_P(trace) : "#0 {main}\n");
} else {
len = zend_spprintf(&str, 0, "exception '%s' in %s:%ld\nStack trace:\n%s",
Z_OBJCE_P(getThis())->name, Z_STRVAL(file), Z_LVAL(line),
(trace && Z_STRLEN_P(trace)) ? Z_STRVAL_P(trace) : "#0 {main}\n");
}
/* We store the result in the private property string so we can access
* the result in uncaught exception handlers without memleaks. */
zend_update_property_string(default_exception_ce, getThis(), "string", sizeof("string")-1, str TSRMLS_CC);
if (trace) {
zval_ptr_dtor(&trace);
}
zval_dtor(&message);
zval_dtor(&file);
zval_dtor(&line);
RETURN_STRINGL(str, len, 0);
}
/* All functions that may be used in uncaught exception handlers must be final
* and must not throw exceptions. Otherwise we would need a facility to handle
* such exceptions in that handler.
* Also all getXY() methods are final because thy serve as read only access to
* their corresponding properties, no more, no less. If after all you need to
* override somthing then it is method __toString().
* And never try to change the state of exceptions and never implement anything
* that gives the user anything to accomplish this.
*/
static zend_function_entry default_exception_functions[] = {
ZEND_FE(exception, NULL)
ZEND_FE(getmessage, NULL)
ZEND_FE(getcode, NULL)
ZEND_FE(getfile, NULL)
ZEND_FE(getline, NULL)
ZEND_ME(exception, __clone, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL)
ZEND_ME(exception, __construct, NULL, 0)
ZEND_ME(exception, getMessage, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
ZEND_ME(exception, getCode, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
ZEND_ME(exception, getFile, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
ZEND_ME(exception, getLine, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
ZEND_ME(exception, getTrace, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
ZEND_ME(exception, getTraceAsString, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
ZEND_ME(exception, __toString, NULL, 0)
{NULL, NULL, NULL}
};
static void zend_register_default_exception(TSRMLS_D)
void zend_register_default_exception(TSRMLS_D)
{
zend_class_entry default_exception;
zend_class_entry ce;
INIT_CLASS_ENTRY(default_exception, "exception", default_exception_functions);
default_exception_ptr = zend_register_internal_class(&default_exception TSRMLS_CC);
INIT_CLASS_ENTRY(ce, "Exception", default_exception_functions);
default_exception_ce = zend_register_internal_class(&ce TSRMLS_CC);
default_exception_ce->create_object = zend_default_exception_new;
memcpy(&default_exception_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
default_exception_handlers.clone_obj = NULL;
zend_declare_property_string(default_exception_ce, "message", sizeof("message")-1, "", ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_string(default_exception_ce, "string", sizeof("string")-1, "", ZEND_ACC_PRIVATE TSRMLS_CC);
zend_declare_property_long(default_exception_ce, "code", sizeof("code")-1, 0, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ce, "file", sizeof("file")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ce, "line", sizeof("line")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ce, "trace", sizeof("trace")-1, ZEND_ACC_PRIVATE TSRMLS_CC);
}
ZEND_API zend_class_entry *zend_exception_get_default(void)
{
return default_exception_ptr;
return default_exception_ce;
}
ZEND_API void zend_register_default_classes(TSRMLS_D)
ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...)
{
zend_register_default_exception(TSRMLS_C);
zval *ex;
va_list arg;
char *message;
va_start(arg, format);
zend_vspprintf(&message, 0, format, arg);
va_end(arg);
MAKE_STD_ZVAL(ex);
if (exception_ce) {
if (!instanceof_function(exception_ce, default_exception_ce TSRMLS_CC)) {
zend_error(E_NOTICE, "Exceptions must be derived from the Exception base class");
exception_ce = default_exception_ce;
}
} else {
exception_ce = default_exception_ce;
}
object_init_ex(ex, exception_ce);
if (message) {
zend_update_property_string(default_exception_ce, ex, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (code) {
zend_update_property_long(default_exception_ce, ex, "code", sizeof("code")-1, code TSRMLS_CC);
}
efree(message);
zend_throw_exception_internal(ex TSRMLS_CC);
}
ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC)
{
zend_throw_exception_ex(exception_ce, code TSRMLS_CC, "%s", message);
}
static void zend_error_va(int type, const char *file, uint lineno, const char *format, ...)
{
va_list args;
va_start(args, format);
zend_error_cb(type, file, lineno, format, args);
va_end(args);
}
/* This function doesn't return as it calls E_ERROR */
ZEND_API void zend_exception_error(zval *exception TSRMLS_DC)
{
zend_class_entry *ce_exception = Z_OBJCE_P(exception);
if (instanceof_function(ce_exception, default_exception_ce TSRMLS_CC)) {
zval *str, *file, *line;
EG(exception) = NULL;
zend_call_method_with_0_params(&exception, ce_exception, NULL, "__tostring", &str);
if (!EG(exception)) {
if (Z_TYPE_P(str) != IS_STRING) {
zend_error(E_WARNING, "%s::__toString() must return a string", ce_exception->name);
} else {
zend_update_property_string(default_exception_ce, exception, "string", sizeof("string")-1, EG(exception) ? ce_exception->name : Z_STRVAL_P(str) TSRMLS_CC);
}
}
zval_ptr_dtor(&str);
if (EG(exception)) {
/* do the best we can to inform about the inner exception */
if (instanceof_function(ce_exception, default_exception_ce TSRMLS_CC)) {
file = zend_read_property(default_exception_ce, EG(exception), "file", sizeof("file")-1, 1 TSRMLS_CC);
line = zend_read_property(default_exception_ce, EG(exception), "line", sizeof("line")-1, 1 TSRMLS_CC);
} else {
file = NULL;
line = NULL;
}
zend_error_va(E_WARNING, file ? Z_STRVAL_P(file) : NULL, line ? Z_LVAL_P(line) : 0, "Uncaught %s in exception handling during call to %s::__tostring()", Z_OBJCE_P(EG(exception))->name, ce_exception->name);
}
str = zend_read_property(default_exception_ce, exception, "string", sizeof("string")-1, 1 TSRMLS_CC);
file = zend_read_property(default_exception_ce, exception, "file", sizeof("file")-1, 1 TSRMLS_CC);
line = zend_read_property(default_exception_ce, exception, "line", sizeof("line")-1, 1 TSRMLS_CC);
zend_error_va(E_ERROR, Z_STRVAL_P(file), Z_LVAL_P(line), "Uncaught %s\n thrown", Z_STRVAL_P(str));
} else {
zend_error(E_ERROR, "Uncaught exception '%s'", ce_exception->name);
}
}
ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC)
{
zend_class_entry *exception_ce;
if (exception == NULL || exception->type != IS_OBJECT) {
zend_error(E_ERROR, "Need to supply an object when throwing an exception");
}
exception_ce = Z_OBJCE_P(exception);
if (!exception_ce || !instanceof_function(exception_ce, default_exception_ce TSRMLS_CC)) {
zend_error(E_ERROR, "Exceptions must be valid objects derived from the Exception base class");
}
zend_throw_exception_internal(exception TSRMLS_CC);
}
/*
+24 -5
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -12,20 +12,39 @@
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Sterling Hughes <sterling@php.net> |
| Authors: Andi Gutmans <andi@zend.com> |
| Marcus Boerger <helly@php.net> |
| Sterling Hughes <sterling@php.net> |
| Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef ZEND_DEFAULT_CLASSES_H
#define ZEND_DEFAULT_CLASSES_H
#ifndef ZEND_EXCEPTIONS_H
#define ZEND_EXCEPTIONS_H
BEGIN_EXTERN_C()
void zend_throw_exception_internal(zval *exception TSRMLS_DC);
void zend_register_default_exception(TSRMLS_D);
ZEND_API zend_class_entry *zend_exception_get_default(void);
ZEND_API void zend_register_default_classes(TSRMLS_D);
/* exception_ce NULL or zend_exception_get_default() or a derived class
* message NULL or the message of the exception */
ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC);
ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...);
ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC);
ZEND_API void zend_clear_exception(TSRMLS_D);
extern ZEND_API void (*zend_throw_exception_hook)(zval *ex TSRMLS_DC);
/* show an exception using zend_error(E_ERROR,...) */
ZEND_API void zend_exception_error(zval *exception TSRMLS_DC);
END_EXTERN_C()
#endif
+1552 -1300
View File
File diff suppressed because it is too large. Load diff
+24 -21
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -32,21 +32,14 @@ typedef union _temp_variable {
struct {
zval **ptr_ptr;
zval *ptr;
zend_bool fcall_returned_reference;
} var;
struct {
zval tmp_var; /* a dummy */
union {
struct {
zval *str;
zend_uint offset;
} str_offset;
zend_property_reference overloaded_element;
} data;
unsigned char type;
zend_class_entry *class_entry;
} EA;
zval tmp_var;
zval *str;
zend_uint offset;
} str_offset;
zend_class_entry *class_entry;
} temp_variable;
@@ -59,16 +52,18 @@ void shutdown_executor(TSRMLS_D);
ZEND_API void execute(zend_op_array *op_array TSRMLS_DC);
ZEND_API void execute_internal(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC);
ZEND_API int zend_is_true(zval *op);
static inline void safe_free_zval_ptr(zval *p)
#define safe_free_zval_ptr(p) safe_free_zval_ptr_rel(p ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
static inline void safe_free_zval_ptr_rel(zval *p ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
{
TSRMLS_FETCH();
if (p!=EG(uninitialized_zval_ptr)) {
FREE_ZVAL(p);
FREE_ZVAL_REL(p);
}
}
ZEND_API int zend_lookup_class(char *name, int name_length, zend_class_entry ***ce TSRMLS_DC);
ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name TSRMLS_DC);
ZEND_API int zend_eval_string_ex(char *str, zval *retval_ptr, char *string_name, int handle_exceptions TSRMLS_DC);
static inline int i_zend_is_true(zval *op)
{
@@ -98,8 +93,16 @@ static inline int i_zend_is_true(zval *op)
result = (zend_hash_num_elements(op->value.ht)?1:0);
break;
case IS_OBJECT:
/* OBJ-TBI */
result = 1;
if(IS_ZEND_STD_OBJECT(*op)) {
TSRMLS_FETCH();
if(EG(ze1_compatibility_mode)) {
result = (zend_hash_num_elements(Z_OBJPROP_P(op))?1:0);
} else {
result = 1;
}
} else {
result = 1;
}
break;
default:
result = 0;
@@ -139,6 +142,7 @@ void execute_new_code(TSRMLS_D);
/* services */
ZEND_API char *get_active_class_name(char **space TSRMLS_DC);
ZEND_API char *get_active_function_name(TSRMLS_D);
ZEND_API char *zend_get_executed_filename(TSRMLS_D);
ZEND_API uint zend_get_executed_lineno(TSRMLS_D);
@@ -147,6 +151,8 @@ ZEND_API zend_bool zend_is_executing(TSRMLS_D);
ZEND_API void zend_set_timeout(long seconds);
ZEND_API void zend_unset_timeout(TSRMLS_D);
ZEND_API void zend_timeout(int dummy);
ZEND_API zend_class_entry *zend_fetch_class(char *class_name, uint class_name_len, int fetch_type TSRMLS_DC);
void zend_verify_abstract_class(zend_class_entry *ce TSRMLS_DC);
#ifdef ZEND_WIN32
void zend_init_timeout_thread();
@@ -162,9 +168,6 @@ void zend_shutdown_timeout_thread();
void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr, zval **value_ptr_ptr, temp_variable *Ts TSRMLS_DC);
#define IS_OVERLOADED_OBJECT 1
#define IS_STRING_OFFSET 2
/* The following tries to resolve the classname of a zval of type object.
* Since it is slow it should be only used in error messages.
*/
+483 -160
View File
@@ -2,10 +2,10 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
| 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 |
@@ -29,17 +29,19 @@
#include "zend_ptr_stack.h"
#include "zend_constants.h"
#include "zend_extensions.h"
#include "zend_exceptions.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
ZEND_API void (*zend_execute)(zend_op_array *op_array TSRMLS_DC);
ZEND_API void (*zend_execute_internal)(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC);
/* true globals */
ZEND_API zend_fcall_info_cache empty_fcall_info_cache = { 0, NULL, NULL, NULL };
#ifdef ZEND_WIN32
#include <process.h>
/* true global */
static WNDCLASS wc;
static HWND timeout_window;
static HANDLE timeout_thread_event;
@@ -115,7 +117,7 @@ static int is_not_internal_class(zend_class_entry **ce TSRMLS_DC)
void init_executor(TSRMLS_D)
{
INIT_ZVAL(EG(uninitialized_zval));
/* trick to make uninitialized_zval never be modified, passed by ref, etc. */
/* trick to make uninitialized_zval never be modified, passed by ref, etc. */
EG(uninitialized_zval).refcount++;
INIT_ZVAL(EG(error_zval));
EG(uninitialized_zval_ptr)=&EG(uninitialized_zval);
@@ -130,14 +132,15 @@ void init_executor(TSRMLS_D)
EG(symtable_cache_ptr) = EG(symtable_cache)-1;
EG(symtable_cache_limit)=EG(symtable_cache)+SYMTABLE_CACHE_SIZE-1;
EG(no_extensions)=0;
EG(implicit_clone)=0;
EG(function_table) = CG(function_table);
EG(class_table) = CG(class_table);
EG(in_execution) = 0;
EG(in_autoload) = NULL;
zend_ptr_stack_init(&EG(argument_stack));
zend_ptr_stack_push(&EG(argument_stack), (void *) NULL);
zend_hash_init(&EG(symbol_table), 50, NULL, ZVAL_PTR_DTOR, 0);
{
@@ -151,7 +154,7 @@ void init_executor(TSRMLS_D)
zend_hash_update(&EG(symbol_table), "GLOBALS", sizeof("GLOBALS"), &globals, sizeof(zval *), NULL);
}
EG(active_symbol_table) = &EG(symbol_table);
zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_activator TSRMLS_CC);
EG(opline_ptr) = NULL;
EG(garbage_ptr) = 0;
@@ -164,6 +167,7 @@ void init_executor(TSRMLS_D)
EG(current_execute_data) = NULL;
zend_stack_init(&EG(user_error_handlers_error_reporting));
zend_ptr_stack_init(&EG(user_error_handlers));
zend_ptr_stack_init(&EG(user_exception_handlers));
@@ -178,19 +182,14 @@ void init_executor(TSRMLS_D)
EG(scope) = NULL;
EG(current_execute_data) = NULL;
EG(This) = NULL;
EG(float_separator)[0] = '.';
}
void shutdown_executor(TSRMLS_D)
{
zend_try {
zend_ptr_stack_destroy(&EG(arg_types_stack));
/* Removed because this can not be safely done, e.g. in this situation:
Object 1 creates object 2
Object 3 holds reference to object 2.
@@ -207,15 +206,41 @@ void shutdown_executor(TSRMLS_D)
}
*/
zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator TSRMLS_CC);
zend_objects_store_call_destructors(&EG(objects_store) TSRMLS_CC);
zend_hash_graceful_reverse_destroy(&EG(symbol_table));
} zend_end_try();
zend_hash_destroy(&EG(symbol_table));
zend_try {
zval *zeh;
/* remove error handlers before destroying classes and functions,
so that if handler used some class, crash would not happen */
if (EG(user_error_handler)) {
zeh = EG(user_error_handler);
EG(user_error_handler) = NULL;
zval_dtor(zeh);
FREE_ZVAL(zeh);
}
if (EG(user_exception_handler)) {
zeh = EG(user_exception_handler);
EG(user_exception_handler) = NULL;
zval_dtor(zeh);
FREE_ZVAL(zeh);
}
zend_stack_destroy(&EG(user_error_handlers_error_reporting));
zend_stack_init(&EG(user_error_handlers_error_reporting));
zend_ptr_stack_clean(&EG(user_error_handlers), ZVAL_DESTRUCTOR, 1);
zend_ptr_stack_clean(&EG(user_exception_handlers), ZVAL_DESTRUCTOR, 1);
} zend_end_try();
zend_try {
/* Cleanup static data for functions and arrays.
We need separate cleanup stage because of the following problem:
Suppose we destroy class X, which destroys function table,
and in function table we have function foo() that has static $bar. Now if
object of class X is assigned to $bar, its destructor will be called and will
fail since X's function table is in mid-destruction.
We need a separate cleanup stage because of the following problem:
Suppose we destroy class X, which destroys the class's function table,
and in the function table we have function foo() that has static $bar.
Now if an object of class X is assigned to $bar, its destructor will be
called and will fail since X's function table is in mid-destruction.
So we want first of all to clean up all data and then move to tables destruction.
Note that only run-time accessed data need to be cleaned up, pre-defined data can
not contain objects and thus are not probelmatic */
@@ -241,9 +266,10 @@ void shutdown_executor(TSRMLS_D)
while (EG(symtable_cache_ptr)>=EG(symtable_cache)) {
zend_hash_destroy(*EG(symtable_cache_ptr));
efree(*EG(symtable_cache_ptr));
FREE_HASHTABLE(*EG(symtable_cache_ptr));
EG(symtable_cache_ptr)--;
}
zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC);
} zend_end_try();
zend_try {
@@ -262,27 +288,48 @@ void shutdown_executor(TSRMLS_D)
zend_hash_destroy(&EG(included_files));
if (EG(user_error_handler)) {
zval_dtor(EG(user_error_handler));
FREE_ZVAL(EG(user_error_handler));
}
if (EG(user_exception_handler)) {
zval_dtor(EG(user_exception_handler));
FREE_ZVAL(EG(user_exception_handler));
}
zend_ptr_stack_clean(&EG(user_error_handlers), ZVAL_DESTRUCTOR, 1);
zend_ptr_stack_destroy(&EG(arg_types_stack));
zend_stack_destroy(&EG(user_error_handlers_error_reporting));
zend_ptr_stack_destroy(&EG(user_error_handlers));
zend_ptr_stack_clean(&EG(user_exception_handlers), ZVAL_DESTRUCTOR, 1);
zend_ptr_stack_destroy(&EG(user_exception_handlers));
zend_objects_store_destroy(&EG(objects_store));
if (EG(in_autoload)) {
zend_hash_destroy(EG(in_autoload));
FREE_HASHTABLE(EG(in_autoload));
}
} zend_end_try();
}
/* return class name and "::" or "". */
ZEND_API char *get_active_class_name(char **space TSRMLS_DC)
{
if (!zend_is_executing(TSRMLS_C)) {
if (space) {
*space = "";
}
return "";
}
switch (EG(function_state_ptr)->function->type) {
case ZEND_USER_FUNCTION:
case ZEND_INTERNAL_FUNCTION:
{
zend_class_entry *ce = EG(function_state_ptr)->function->common.scope;
if (space) {
*space = ce ? "::" : "";
}
return ce ? ce->name : "";
}
default:
if (space) {
*space = "";
}
return "";
}
}
ZEND_API char *get_active_function_name(TSRMLS_D)
{
if (!zend_is_executing(TSRMLS_C)) {
@@ -291,7 +338,7 @@ ZEND_API char *get_active_function_name(TSRMLS_D)
switch (EG(function_state_ptr)->function->type) {
case ZEND_USER_FUNCTION: {
char *function_name = ((zend_op_array *) EG(function_state_ptr)->function)->function_name;
if (function_name) {
return function_name;
} else {
@@ -342,12 +389,27 @@ ZEND_API void _zval_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC)
(*zval_ptr)->refcount--;
if ((*zval_ptr)->refcount==0) {
zval_dtor(*zval_ptr);
safe_free_zval_ptr(*zval_ptr);
safe_free_zval_ptr_rel(*zval_ptr ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC);
} else if ((*zval_ptr)->refcount == 1) {
(*zval_ptr)->is_ref = 0;
}
}
ZEND_API void _zval_internal_ptr_dtor(zval **zval_ptr ZEND_FILE_LINE_DC)
{
#if DEBUG_ZEND>=2
printf("Reducing refcount for %x (%x): %d->%d\n", *zval_ptr, zval_ptr, (*zval_ptr)->refcount, (*zval_ptr)->refcount-1);
#endif
(*zval_ptr)->refcount--;
if ((*zval_ptr)->refcount==0) {
zval_internal_dtor(*zval_ptr);
free(*zval_ptr);
} else if ((*zval_ptr)->refcount == 1) {
(*zval_ptr)->is_ref = 0;
}
}
ZEND_API int zend_is_true(zval *op)
{
@@ -396,7 +458,7 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
SEPARATE_ZVAL(pp);
p = *pp;
p->type = IS_ARRAY;
/* First go over the array and see if there are any constant indices */
zend_hash_internal_pointer_reset(p->value.ht);
while (zend_hash_get_current_data(p->value.ht, (void **) &element)==SUCCESS) {
@@ -414,7 +476,7 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
zend_hash_move_forward(p->value.ht);
continue;
}
if (const_value.type == IS_STRING && const_value.value.str.len == str_index_len-1 &&
!strncmp(const_value.value.str.val, str_index, str_index_len)) {
/* constant value is the same as its name */
@@ -428,13 +490,13 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
zval_copy_ctor(new_val);
new_val->refcount = 1;
new_val->is_ref = 0;
/* preserve this bit for inheritance */
Z_TYPE_PP(element) |= IS_CONSTANT_INDEX;
switch (const_value.type) {
case IS_STRING:
zend_hash_update(p->value.ht, const_value.value.str.val, const_value.value.str.len+1, &new_val, sizeof(zval *), NULL);
zend_symtable_update(p->value.ht, const_value.value.str.val, const_value.value.str.len+1, &new_val, sizeof(zval *), NULL);
break;
case IS_LONG:
zend_hash_index_update(p->value.ht, const_value.value.lval, &new_val, sizeof(zval *), NULL);
@@ -444,15 +506,16 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
zval_dtor(&const_value);
}
zend_hash_apply_with_argument(p->value.ht, (apply_func_arg_t) zval_update_constant, (void *) 1 TSRMLS_CC);
zend_hash_internal_pointer_reset(p->value.ht);
}
return 0;
}
int call_user_function(HashTable *function_table, zval **object_pp, zval *function_name, zval *retval_ptr, int param_count, zval *params[] TSRMLS_DC)
int call_user_function(HashTable *function_table, zval **object_pp, zval *function_name, zval *retval_ptr, zend_uint param_count, zval *params[] TSRMLS_DC)
{
zval ***params_array = (zval ***) emalloc(sizeof(zval **)*param_count);
int i;
zend_uint i;
int ex_retval;
zval *local_retval_ptr;
@@ -469,16 +532,28 @@ int call_user_function(HashTable *function_table, zval **object_pp, zval *functi
return ex_retval;
}
int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, int param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC)
{
zend_function *function_pointer = NULL;
return fast_call_user_function(function_table, object_pp, function_name, retval_ptr_ptr, param_count, params, no_separation, symbol_table, &function_pointer TSRMLS_CC);
int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, zend_uint param_count, zval **params[], int no_separation, HashTable *symbol_table TSRMLS_DC)
{
zend_fcall_info fci;
fci.size = sizeof(fci);
fci.function_table = function_table;
fci.object_pp = object_pp;
fci.function_name = function_name;
fci.retval_ptr_ptr = retval_ptr_ptr;
fci.param_count = param_count;
fci.params = params;
fci.no_separation = (zend_bool) no_separation;
fci.symbol_table = symbol_table;
return zend_call_function(&fci, NULL TSRMLS_CC);
}
int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *function_name, zval **retval_ptr_ptr, int param_count, zval **params[], int no_separation, HashTable *symbol_table, zend_function **function_pointer TSRMLS_DC)
int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TSRMLS_DC)
{
int i;
zend_uint i;
zval **original_return_value;
HashTable *calling_symbol_table;
zend_function_state *original_function_state_ptr;
@@ -489,132 +564,214 @@ int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *f
int (*orig_binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC);
zend_class_entry *current_scope;
zend_class_entry *calling_scope = NULL;
char *function_name_lc;
zval *current_this;
zend_execute_data execute_data;
zval *method_name;
zval *params_array;
int call_via_handler = 0;
switch (fci->size) {
case sizeof(zend_fcall_info):
break; /* nothing to do currently */
default:
zend_error(E_ERROR, "Corrupted fcall_info provided to zend_call_function()");
break;
}
/* Initialize execute_data */
EX(fbc) = NULL;
EX(object) = NULL;
EX(Ts) = NULL;
EX(op_array) = NULL;
EX(opline) = NULL;
*retval_ptr_ptr = NULL;
if (EG(current_execute_data)) {
execute_data = *EG(current_execute_data);
} else {
/* This only happens when we're called outside any execute()'s
* It shouldn't be strictly necessary to NULL execute_data out,
* but it may make bugs easier to spot
*/
memset(&execute_data, 0, sizeof(zend_execute_data));
}
/**
* Function name lookup code
*
/* we may return SUCCESS, and yet retval may be uninitialized,
* if there was an exception...
*/
if (*function_pointer == NULL) {
if (function_name->type==IS_ARRAY) { /* assume array($obj, $name) couple */
*fci->retval_ptr_ptr = NULL;
if (!fci_cache || !fci_cache->initialized) {
if (fci->function_name->type==IS_ARRAY) { /* assume array($obj, $name) couple */
zval **tmp_object_ptr, **tmp_real_function_name;
if (zend_hash_index_find(function_name->value.ht, 0, (void **) &tmp_object_ptr)==FAILURE) {
if (zend_hash_index_find(fci->function_name->value.ht, 0, (void **) &tmp_object_ptr)==FAILURE) {
return FAILURE;
}
if (zend_hash_index_find(function_name->value.ht, 1, (void **) &tmp_real_function_name)==FAILURE) {
if (zend_hash_index_find(fci->function_name->value.ht, 1, (void **) &tmp_real_function_name)==FAILURE) {
return FAILURE;
}
function_name = *tmp_real_function_name;
fci->function_name = *tmp_real_function_name;
SEPARATE_ZVAL_IF_NOT_REF(tmp_object_ptr);
object_pp = tmp_object_ptr;
(*object_pp)->is_ref = 1;
fci->object_pp = tmp_object_ptr;
(*fci->object_pp)->is_ref = 1;
}
if (object_pp && !*object_pp) {
object_pp = NULL;
if (fci->object_pp && !*fci->object_pp) {
fci->object_pp = NULL;
}
if (object_pp) {
if (fci->object_pp) {
/* TBI!! new object handlers */
if (Z_TYPE_PP(object_pp) == IS_OBJECT) {
if (!IS_ZEND_STD_OBJECT(**object_pp)) {
if (Z_TYPE_PP(fci->object_pp) == IS_OBJECT) {
if (!IS_ZEND_STD_OBJECT(**fci->object_pp)) {
zend_error(E_WARNING, "Cannot use call_user_function on objects without a class entry");
return FAILURE;
}
calling_scope = Z_OBJCE_PP(object_pp);
function_table = &calling_scope->function_table;
EX(object) = *object_pp;
} else if (Z_TYPE_PP(object_pp) == IS_STRING) {
calling_scope = Z_OBJCE_PP(fci->object_pp);
fci->function_table = &calling_scope->function_table;
EX(object) = *fci->object_pp;
} else if (Z_TYPE_PP(fci->object_pp) == IS_STRING) {
zend_class_entry **ce;
char *lc_class;
int found = FAILURE;
lc_class = zend_str_tolower_dup(Z_STRVAL_PP(object_pp), Z_STRLEN_PP(object_pp));
if(EG(active_op_array) && strcmp(lc_class, "self") == 0) {
if (EG(active_op_array) && strcmp(Z_STRVAL_PP(fci->object_pp), "self") == 0) {
if (!EG(active_op_array)->scope) {
zend_error(E_ERROR, "Cannot access self:: when no class scope is active");
}
ce = &(EG(active_op_array)->scope);
found = (*ce != NULL?SUCCESS:FAILURE);
} else if(strcmp(lc_class, "parent") == 0 && EG(active_op_array) && EG(active_op_array)->scope) {
fci->object_pp = EG(This)?&EG(This):NULL;
} else if (strcmp(Z_STRVAL_PP(fci->object_pp), "parent") == 0 && EG(active_op_array)) {
if (!EG(active_op_array)->scope) {
zend_error(E_ERROR, "Cannot access parent:: when no class scope is active");
}
if (!EG(active_op_array)->scope->parent) {
zend_error(E_ERROR, "Cannot access parent:: when current class scope has no parent");
}
ce = &(EG(active_op_array)->scope->parent);
found = (*ce != NULL?SUCCESS:FAILURE);
fci->object_pp = EG(This)?&EG(This):NULL;
} else {
found = zend_lookup_class(lc_class, Z_STRLEN_PP(object_pp), &ce TSRMLS_CC);
zend_class_entry *scope;
scope = EG(active_op_array) ? EG(active_op_array)->scope : NULL;
found = zend_lookup_class(Z_STRVAL_PP(fci->object_pp), Z_STRLEN_PP(fci->object_pp), &ce TSRMLS_CC);
if (found == FAILURE) {
zend_error(E_ERROR, "Class '%s' not found", Z_STRVAL_PP(fci->object_pp));
}
if (scope && EG(This) &&
instanceof_function(Z_OBJCE_P(EG(This)), scope TSRMLS_CC) &&
instanceof_function(scope, *ce TSRMLS_CC)) {
fci->object_pp = &EG(This);
} else {
fci->object_pp = NULL;
}
}
efree(lc_class);
if (found == FAILURE)
return FAILURE;
function_table = &(*ce)->function_table;
fci->function_table = &(*ce)->function_table;
calling_scope = *ce;
object_pp = NULL;
} else
}
if (fci->function_table == NULL) {
return FAILURE;
}
}
if (function_name->type!=IS_STRING) {
if (fci->function_name->type!=IS_STRING) {
return FAILURE;
}
function_name_lc = zend_str_tolower_dup(function_name->value.str.val, function_name->value.str.len);
if (fci->object_pp) {
if (Z_OBJ_HT_PP(fci->object_pp)->get_method == NULL) {
zend_error(E_ERROR, "Object does not support method calls");
}
EX(function_state).function =
Z_OBJ_HT_PP(fci->object_pp)->get_method(*fci->object_pp, Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name) TSRMLS_CC);
} else if (calling_scope) {
char *function_name_lc = zend_str_tolower_dup(Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name));
original_function_state_ptr = EG(function_state_ptr);
if (zend_hash_find(function_table, function_name_lc, function_name->value.str.len+1, (void **) &EX(function_state).function)==FAILURE) {
EX(function_state).function =
zend_std_get_static_method(calling_scope, function_name_lc, Z_STRLEN_P(fci->function_name) TSRMLS_CC);
efree(function_name_lc);
} else {
char *function_name_lc = zend_str_tolower_dup(Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name));
if (zend_hash_find(fci->function_table, function_name_lc, fci->function_name->value.str.len+1, (void **) &EX(function_state).function)==FAILURE) {
EX(function_state).function = NULL;
}
efree(function_name_lc);
return FAILURE;
}
efree(function_name_lc);
*function_pointer = EX(function_state).function;
if (EX(function_state).function == NULL) {
/* try calling __call */
if (calling_scope && calling_scope->__call) {
EX(function_state).function = calling_scope->__call;
/* prepare params */
ALLOC_INIT_ZVAL(method_name);
ZVAL_STRINGL(method_name, Z_STRVAL_P(fci->function_name), Z_STRLEN_P(fci->function_name), 0);
ALLOC_INIT_ZVAL(params_array);
array_init(params_array);
call_via_handler = 1;
} else {
return FAILURE;
}
}
if (fci_cache) {
fci_cache->function_handler = EX(function_state).function;
fci_cache->object_pp = fci->object_pp;
fci_cache->calling_scope = calling_scope;
fci_cache->initialized = 1;
}
} else {
EX(function_state).function = *function_pointer;
EX(function_state).function = fci_cache->function_handler;
calling_scope = fci_cache->calling_scope;
fci->object_pp = fci_cache->object_pp;
}
for (i=0; i<param_count; i++) {
for (i=0; i<fci->param_count; i++) {
zval *param;
if (EX(function_state).function->common.arg_types
&& i<EX(function_state).function->common.arg_types[0]
&& EX(function_state).function->common.arg_types[i+1]==BYREF_FORCE
&& !PZVAL_IS_REF(*params[i])) {
if ((*params[i])->refcount>1) {
if (ARG_SHOULD_BE_SENT_BY_REF(EX(function_state).function, i+1)
&& !PZVAL_IS_REF(*fci->params[i])) {
if ((*fci->params[i])->refcount>1) {
zval *new_zval;
if (no_separation) {
if (fci->no_separation) {
return FAILURE;
}
ALLOC_ZVAL(new_zval);
*new_zval = **params[i];
*new_zval = **fci->params[i];
zval_copy_ctor(new_zval);
new_zval->refcount = 1;
(*params[i])->refcount--;
*params[i] = new_zval;
(*fci->params[i])->refcount--;
*fci->params[i] = new_zval;
}
(*params[i])->refcount++;
(*params[i])->is_ref = 1;
param = *params[i];
} else if (*params[i] != &EG(uninitialized_zval)) {
(*params[i])->refcount++;
param = *params[i];
(*fci->params[i])->refcount++;
(*fci->params[i])->is_ref = 1;
param = *fci->params[i];
} else if (*fci->params[i] != &EG(uninitialized_zval)) {
(*fci->params[i])->refcount++;
param = *fci->params[i];
} else {
ALLOC_ZVAL(param);
*param = **(params[i]);
*param = **(fci->params[i]);
INIT_PZVAL(param);
}
zend_ptr_stack_push(&EG(argument_stack), param);
if (call_via_handler) {
add_next_index_zval(params_array, param);
} else {
zend_ptr_stack_push(&EG(argument_stack), param);
}
}
zend_ptr_stack_n_push(&EG(argument_stack), 2, (void *) (long) param_count, NULL);
if (call_via_handler) {
zend_ptr_stack_push(&EG(argument_stack), method_name);
zend_ptr_stack_push(&EG(argument_stack), params_array);
fci->param_count = 2;
}
zend_ptr_stack_n_push(&EG(argument_stack), 2, (void *) (long) fci->param_count, NULL);
original_function_state_ptr = EG(function_state_ptr);
EG(function_state_ptr) = &EX(function_state);
current_scope = EG(scope);
@@ -622,22 +779,35 @@ int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *f
current_this = EG(This);
if (object_pp) {
EG(This) = *object_pp;
if (!PZVAL_IS_REF(EG(This))) {
EG(This)->refcount++; /* For $this pointer */
if (fci->object_pp) {
if ((EX(function_state).function->common.fn_flags & ZEND_ACC_STATIC)) {
EG(This) = NULL;
} else {
zval *this_ptr;
EG(This) = *fci->object_pp;
ALLOC_ZVAL(this_ptr);
*this_ptr = *EG(This);
INIT_PZVAL(this_ptr);
zval_copy_ctor(this_ptr);
EG(This) = this_ptr;
if (!PZVAL_IS_REF(EG(This))) {
EG(This)->refcount++; /* For $this pointer */
} else {
zval *this_ptr;
ALLOC_ZVAL(this_ptr);
*this_ptr = *EG(This);
INIT_PZVAL(this_ptr);
zval_copy_ctor(this_ptr);
EG(This) = this_ptr;
}
}
} else {
EG(This) = NULL;
if (calling_scope && !(EX(function_state).function->common.fn_flags & ZEND_ACC_STATIC)) {
int severity;
if (EX(function_state).function->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
severity = E_STRICT;
} else {
severity = E_ERROR;
}
zend_error(E_STRICT, "Non-static method %s::%s() cannot be called statically", calling_scope->name, EX(function_state).function->common.function_name);
}
}
EX(prev_execute_data) = EG(current_execute_data);
@@ -645,8 +815,9 @@ int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *f
if (EX(function_state).function->type == ZEND_USER_FUNCTION) {
calling_symbol_table = EG(active_symbol_table);
if (symbol_table) {
EG(active_symbol_table) = symbol_table;
EG(scope) = EX(function_state).function->common.scope;
if (fci->symbol_table) {
EG(active_symbol_table) = fci->symbol_table;
} else {
ALLOC_HASHTABLE(EG(active_symbol_table));
zend_hash_init(EG(active_symbol_table), 0, NULL, ZVAL_PTR_DTOR, 0);
@@ -654,7 +825,7 @@ int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *f
original_return_value = EG(return_value_ptr_ptr);
original_op_array = EG(active_op_array);
EG(return_value_ptr_ptr) = retval_ptr_ptr;
EG(return_value_ptr_ptr) = fci->retval_ptr_ptr;
EG(active_op_array) = (zend_op_array *) EX(function_state).function;
original_opline_ptr = EG(opline_ptr);
orig_free_op1 = EG(free_op1);
@@ -662,7 +833,7 @@ int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *f
orig_unary_op = EG(unary_op);
orig_binary_op = EG(binary_op);
zend_execute(EG(active_op_array) TSRMLS_CC);
if (!symbol_table) {
if (!fci->symbol_table) {
zend_hash_destroy(EG(active_symbol_table));
FREE_HASHTABLE(EG(active_symbol_table));
}
@@ -675,11 +846,18 @@ int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *f
EG(unary_op) = orig_unary_op;
EG(binary_op) = orig_binary_op;
} else {
ALLOC_INIT_ZVAL(*retval_ptr_ptr);
((zend_internal_function *) EX(function_state).function)->handler(param_count, *retval_ptr_ptr, (object_pp?*object_pp:NULL), 1 TSRMLS_CC);
INIT_PZVAL(*retval_ptr_ptr);
ALLOC_INIT_ZVAL(*fci->retval_ptr_ptr);
if (EX(function_state).function->common.scope) {
EG(scope) = EX(function_state).function->common.scope;
}
((zend_internal_function *) EX(function_state).function)->handler(fci->param_count, *fci->retval_ptr_ptr, (fci->object_pp?*fci->object_pp:NULL), 1 TSRMLS_CC);
INIT_PZVAL(*fci->retval_ptr_ptr);
}
zend_ptr_stack_clear_multiple(TSRMLS_C);
if (call_via_handler) {
zval_ptr_dtor(&method_name);
zval_ptr_dtor(&params_array);
}
EG(function_state_ptr) = original_function_state_ptr;
if (EG(This)) {
@@ -687,47 +865,84 @@ int fast_call_user_function(HashTable *function_table, zval **object_pp, zval *f
}
EG(scope) = current_scope;
EG(This) = current_this;
EG(current_execute_data) = EX(prev_execute_data); \
EG(current_execute_data) = EX(prev_execute_data);
if (EG(exception)) {
zend_throw_exception_internal(NULL TSRMLS_CC);
}
return SUCCESS;
}
ZEND_API int zend_lookup_class(char *name, int name_length, zend_class_entry ***ce TSRMLS_DC)
{
zval **args[1];
zval *autoload_function;
zval *class_name;
zval autoload_function;
zval class_name, *class_name_ptr = &class_name;
zval *retval_ptr;
int retval;
char *lc_name;
zval *exception;
char dummy = 1;
lc_name = do_alloca(name_length + 1);
zend_str_tolower_copy(lc_name, name, name_length);
if (zend_hash_find(EG(class_table), name, name_length+1, (void **) ce) == SUCCESS) {
if (zend_hash_find(EG(class_table), lc_name, name_length+1, (void **) ce) == SUCCESS) {
free_alloca(lc_name);
return SUCCESS;
}
MAKE_STD_ZVAL(autoload_function);
ZVAL_STRINGL(autoload_function, "__autoload", sizeof("__autoload")-1, 1);
/* The compiler is not-reentrant. Make sure we __autoload() only during run-time
* (doesn't impact fuctionality of __autoload()
*/
if (zend_is_compiling(TSRMLS_C)) {
free_alloca(lc_name);
return FAILURE;
}
MAKE_STD_ZVAL(class_name);
ZVAL_STRINGL(class_name, name, name_length, 1);
args[0] = &class_name;
retval = call_user_function_ex(EG(function_table), NULL, autoload_function, &retval_ptr, 1, args, 0, NULL TSRMLS_CC);
zval_ptr_dtor(&autoload_function);
zval_ptr_dtor(&class_name);
if (EG(in_autoload) == NULL) {
ALLOC_HASHTABLE(EG(in_autoload));
zend_hash_init(EG(in_autoload), 0, NULL, NULL, 0);
}
if (zend_hash_add(EG(in_autoload), lc_name, name_length+1, (void**)&dummy, sizeof(char), NULL) == FAILURE) {
free_alloca(lc_name);
return FAILURE;
}
ZVAL_STRINGL(&autoload_function, "__autoload", sizeof("__autoload")-1, 0);
INIT_PZVAL(class_name_ptr);
ZVAL_STRINGL(class_name_ptr, name, name_length, 0);
args[0] = &class_name_ptr;
exception = EG(exception);
EG(exception) = NULL;
retval = call_user_function_ex(EG(function_table), NULL, &autoload_function, &retval_ptr, 1, args, 0, NULL TSRMLS_CC);
zend_hash_del(EG(in_autoload), lc_name, name_length+1);
if (retval == FAILURE) {
EG(exception) = exception;
free_alloca(lc_name);
return FAILURE;
}
if (EG(exception)) {
zend_error(E_ERROR, "__autoload threw an exception");
free_alloca(lc_name);
zend_error(E_ERROR, "__autoload(%s) threw an exception of type '%s'", name, Z_OBJCE_P(EG(exception))->name);
return FAILURE;
}
EG(exception) = exception;
/* If an exception is thrown retval_ptr will be NULL but we bailout before we reach this point */
zval_ptr_dtor(&retval_ptr);
return zend_hash_find(EG(class_table), name, name_length + 1, (void **) ce);
retval = zend_hash_find(EG(class_table), lc_name, name_length + 1, (void **) ce);
free_alloca(lc_name);
return retval;
}
ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name TSRMLS_DC)
@@ -762,7 +977,7 @@ ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name TSR
zval *local_retval_ptr=NULL;
zval **original_return_value_ptr_ptr = EG(return_value_ptr_ptr);
zend_op **original_opline_ptr = EG(opline_ptr);
EG(return_value_ptr_ptr) = &local_retval_ptr;
EG(active_op_array) = new_op_array;
EG(no_extensions)=1;
@@ -797,9 +1012,22 @@ ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name TSR
}
ZEND_API int zend_eval_string_ex(char *str, zval *retval_ptr, char *string_name, int handle_exceptions TSRMLS_DC)
{
int result;
result = zend_eval_string(str, retval_ptr, string_name TSRMLS_CC);
if (handle_exceptions && EG(exception)) {
zend_exception_error(EG(exception) TSRMLS_CC);
result = FAILURE;
}
return result;
}
void execute_new_code(TSRMLS_D)
{
zend_op *opline, *end;
zend_op *opline, *end;
zend_op *ret_opline;
zval *local_retval=NULL;
@@ -819,22 +1047,22 @@ void execute_new_code(TSRMLS_D)
if (!CG(active_op_array)->start_op) {
CG(active_op_array)->start_op = CG(active_op_array)->opcodes;
}
opline=CG(active_op_array)->start_op;
end=CG(active_op_array)->opcodes+CG(active_op_array)->last;
while (opline<end) {
if (opline->op1.op_type==IS_CONST) {
opline->op1.u.constant.is_ref = 1;
opline->op1.u.constant.refcount = 2; /* Make sure is_ref won't be reset */
}
if (opline->op2.op_type==IS_CONST) {
opline->op2.u.constant.is_ref = 1;
opline->op2.u.constant.refcount = 2;
}
while (opline<end) {
if (opline->op1.op_type==IS_CONST) {
opline->op1.u.constant.is_ref = 1;
opline->op1.u.constant.refcount = 2; /* Make sure is_ref won't be reset */
}
if (opline->op2.op_type==IS_CONST) {
opline->op2.u.constant.is_ref = 1;
opline->op2.u.constant.refcount = 2;
}
opline->handler = zend_opcode_handlers[opline->opcode];
opline++;
}
}
EG(return_value_ptr_ptr) = &local_retval;
EG(active_op_array) = CG(active_op_array);
@@ -862,7 +1090,7 @@ ZEND_API void zend_timeout(int dummy)
#ifdef ZEND_WIN32
static LRESULT CALLBACK zend_timeout_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
static LRESULT CALLBACK zend_timeout_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) {
case WM_DESTROY:
@@ -873,7 +1101,18 @@ static LRESULT CALLBACK zend_timeout_WndProc(HWND hWnd, UINT message, WPARAM wPa
if (lParam==0) {
KillTimer(timeout_window, wParam);
} else {
#ifdef ZTS
void ***tsrm_ls;
#endif
SetTimer(timeout_window, wParam, lParam*1000, NULL);
#ifdef ZTS
tsrm_ls = ts_resource_ex(0, &wParam);
if (!tsrm_ls) {
/* shouldn't normally happen */
break;
}
#endif
EG(timed_out) = 0;
}
break;
case WM_UNREGISTER_ZEND_TIMEOUT:
@@ -1006,6 +1245,90 @@ void zend_unset_timeout(TSRMLS_D)
#endif
}
zend_class_entry *zend_fetch_class(char *class_name, uint class_name_len, int fetch_type TSRMLS_DC)
{
zend_class_entry **pce;
check_fetch_type:
switch (fetch_type) {
case ZEND_FETCH_CLASS_SELF:
if (!EG(scope)) {
zend_error(E_ERROR, "Cannot access self:: when no class scope is active");
}
return EG(scope);
case ZEND_FETCH_CLASS_PARENT:
if (!EG(scope)) {
zend_error(E_ERROR, "Cannot access parent:: when no class scope is active");
}
if (!EG(scope)->parent) {
zend_error(E_ERROR, "Cannot access parent:: when current class scope has no parent");
}
return EG(scope)->parent;
case ZEND_FETCH_CLASS_AUTO: {
fetch_type = zend_get_class_fetch_type(class_name, class_name_len);
if (fetch_type!=ZEND_FETCH_CLASS_DEFAULT) {
goto check_fetch_type;
}
}
break;
}
if (zend_lookup_class(class_name, class_name_len, &pce TSRMLS_CC)==FAILURE) {
zend_error(E_ERROR, "Class '%s' not found", class_name);
}
return *pce;
}
#define MAX_ABSTRACT_INFO_CNT 3
#define MAX_ABSTRACT_INFO_FMT "%s%s%s%s"
#define DISPLAY_ABSTRACT_FN(idx) \
ai.afn[idx] ? ZEND_FN_SCOPE_NAME(ai.afn[idx]) : "", \
ai.afn[idx] ? "::" : "", \
ai.afn[idx] ? ai.afn[idx]->common.function_name : "", \
ai.afn[idx] && ai.afn[idx+1] ? ", " : (ai.afn[idx] && ai.cnt >= MAX_ABSTRACT_INFO_CNT ? ", ..." : "")
typedef struct _zend_abstract_info {
zend_function *afn[MAX_ABSTRACT_INFO_CNT+1];
int cnt;
} zend_abstract_info;
static int zend_verify_abstract_class_function(zend_function *fn, zend_abstract_info *ai TSRMLS_DC)
{
if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) {
if (ai->cnt < MAX_ABSTRACT_INFO_CNT) {
ai->afn[ai->cnt] = fn;
}
ai->cnt++;
}
return 0;
}
void zend_verify_abstract_class(zend_class_entry *ce TSRMLS_DC)
{
zend_abstract_info ai;
if ((ce->ce_flags & ZEND_ACC_IMPLICIT_ABSTRACT_CLASS) && !(ce->ce_flags & ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) {
memset(&ai, 0, sizeof(ai));
zend_hash_apply_with_argument(&ce->function_table, (apply_func_arg_t) zend_verify_abstract_class_function, &ai TSRMLS_CC);
if (ai.cnt) {
zend_error(E_ERROR, "Class %s contains %d abstract methods and must therefore be declared abstract (" MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT MAX_ABSTRACT_INFO_FMT ")",
ce->name, ai.cnt,
DISPLAY_ABSTRACT_FN(0),
DISPLAY_ABSTRACT_FN(1),
DISPLAY_ABSTRACT_FN(2)
);
}
}
}
/*
* Local variables:
* tab-width: 4
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
+12 -5
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -24,7 +24,10 @@
#include "zend_compile.h"
#define ZEND_EXTENSION_API_NO 90021012
/* The first number is the engine version and the rest is the date.
* This way engine 2 API no. is always greater than engine 1 API no..
*/
#define ZEND_EXTENSION_API_NO 220040412
typedef struct _zend_extension_version_info {
int zend_extension_api_no;
@@ -89,9 +92,10 @@ struct _zend_extension {
int resource_number;
};
BEGIN_EXTERN_C()
ZEND_API int zend_get_resource_handle(zend_extension *extension);
ZEND_API void zend_extension_dispatch_message(int message, void *arg);
END_EXTERN_C()
#define ZEND_EXTMSG_NEW_EXTENSION 1
@@ -106,13 +110,16 @@ ZEND_API void zend_extension_dispatch_message(int message, void *arg);
ZEND_API extern zend_llist zend_extensions;
void zend_extension_dtor(zend_extension *extension);
ZEND_API int zend_load_extension(char *path);
ZEND_API int zend_register_extension(zend_extension *new_extension, DL_HANDLE handle);
void zend_append_version_info(zend_extension *extension);
int zend_startup_extensions_mechanism(void);
int zend_startup_extensions(void);
void zend_shutdown_extensions(TSRMLS_D);
BEGIN_EXTERN_C()
ZEND_API int zend_load_extension(char *path);
ZEND_API int zend_register_extension(zend_extension *new_extension, DL_HANDLE handle);
ZEND_API zend_extension *zend_get_extension(char *extension_name);
END_EXTERN_C()
#endif /* ZEND_EXTENSIONS_H */
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
+41 -5
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
@@ -34,6 +34,11 @@
#include "zend_fast_cache.h"
#include "zend_objects.h"
#include "zend_objects_API.h"
#include "zend_modules.h"
#ifdef ZEND_MULTIBYTE
#include "zend_multibyte.h"
#endif /* ZEND_MULTIBYTE */
/* Define ZTS if you want a thread-safe Zend */
/*#undef ZTS*/
@@ -111,7 +116,6 @@ struct _zend_compiler_globals {
zend_llist open_files;
zend_llist *throw_list;
long catch_begin;
struct _zend_ini_parser_param *ini_parser_param;
@@ -119,16 +123,26 @@ struct _zend_compiler_globals {
int interactive;
zend_uint start_lineno;
zend_bool in_clone_method;
zend_bool increment_lineno;
zend_llist import_commands;
znode implementing_class;
zend_uint access_type;
char *doc_comment;
zend_uint doc_comment_len;
#ifdef ZEND_MULTIBYTE
zend_encoding **script_encoding_list;
int script_encoding_list_size;
zend_encoding *internal_encoding;
/* multibyte utility functions */
zend_encoding_detector encoding_detector;
zend_encoding_converter encoding_converter;
zend_encoding_oddlen encoding_oddlen;
#endif /* ZEND_MULTIBYTE */
};
@@ -177,9 +191,10 @@ struct _zend_executor_globals {
int ticks_count;
zend_bool in_execution;
HashTable *in_autoload;
zend_bool bailout_set;
zend_bool full_tables_cleanup;
zend_bool implicit_clone;
zend_bool ze1_compatibility_mode;
/* for extended information support */
zend_bool no_extensions;
@@ -199,8 +214,10 @@ struct _zend_executor_globals {
zval *garbage[2];
int garbage_ptr;
int user_error_handler_error_reporting;
zval *user_error_handler;
zval *user_exception_handler;
zend_stack user_error_handlers_error_reporting;
zend_ptr_stack user_error_handlers;
zend_ptr_stack user_exception_handlers;
@@ -212,9 +229,12 @@ struct _zend_executor_globals {
HashTable *ini_directives;
zend_objects_store objects_store;
zval *exception;
zend_op *opline_before_exception;
struct _zend_execute_data *current_execute_data;
struct _zend_module_entry *current_module;
zend_property_info std_property_info;
/* locale stuff */
@@ -273,6 +293,22 @@ struct _zend_scanner_globals {
int yy_start_stack_ptr;
int yy_start_stack_depth;
int *yy_start_stack;
#ifdef ZEND_MULTIBYTE
/* original (unfiltered) script */
char *script_org;
int script_org_size;
/* filtered script */
char *script_filtered;
int script_filtered_size;
/* input/ouput filters */
zend_encoding_filter input_filter;
zend_encoding_filter output_filter;
zend_encoding *script_encoding;
zend_encoding *internal_encoding;
#endif /* ZEND_MULTIBYTE */
};
#endif /* ZEND_GLOBALS_H */
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 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 |
Loaded 100 of 2782 files, more files were not shown because too many files have changed in this diff. Show more