Compare commits

...
Author SHA1 Message Date
SVN Migration a82e4c40a2 This commit was manufactured by cvs2svn to create tag 'php_5_0_0RC2RC2'. 2004-04-21 09:59:53 +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
2125 changed files with 129132 additions and 82981 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
-------------------------------
+8902 -22103
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
+39 -118
View File
@@ -26,26 +26,34 @@ Status legend
== Server APIs ==
-------------------------------------------------------------------------------
EXTENSION: aolserver
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: activescript
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
MAINTENANCE: Odd Fixes
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: aolserver
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: apache
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
@@ -55,14 +63,19 @@ MAINTENANCE: Marcus Boerger <helly@php.net>, Edin Kadribasic <edink@php.
STATUS: Working
SINCE: 4.3.0
-------------------------------------------------------------------------------
EXTENSION: fhttpd
MAINTENANCE: Unknown
STATUS: Unknown
EXTENSION: embed
PRIMARY MAINTAINER: Edin Kadribasic <edink@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: isapi
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: milter
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: nsapi
PRIMARY MAINTAINER: Uwe Schindler <thetaphi@php.net>
MAINTENANCE: Maintained
@@ -80,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
-------------------------------------------------------------------------------
@@ -106,8 +119,7 @@ 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
@@ -121,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>
@@ -146,12 +158,6 @@ 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
@@ -191,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
-------------------------------------------------------------------------------
@@ -202,8 +208,7 @@ 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.
-------------------------------------------------------------------------------
@@ -249,11 +254,6 @@ SINCE: 5.0
== Other extensions ==
-------------------------------------------------------------------------------
EXTENSION: aspell
MAINTENANCE: Unknown
STATUS: Working
COMMENT: For aspell .27 and greater, check out the pspell extension
-------------------------------------------------------------------------------
EXTENSION: bcmath
MAINTENANCE: Unknown
@@ -266,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
@@ -293,11 +286,6 @@ 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
@@ -309,16 +297,6 @@ MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: cybercash
PRIMARY MAINTAINER: Evan Klinger <evan715@sirius.com>
MAINTENANCE: Maintained
STATUS: Unknown
-------------------------------------------------------------------------------
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
@@ -349,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
@@ -363,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
@@ -378,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
-------------------------------------------------------------------------------
@@ -393,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>
@@ -406,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
@@ -432,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
@@ -459,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
@@ -493,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
@@ -507,11 +439,6 @@ EXTENSION: sysvshm
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: vpopmail
MAINTENANCE: Unknown
STATUS: Experimental
SINCE: 4.0.5
-------------------------------------------------------------------------------
EXTENSION: yaz
PRIMARY MAINTAINER: Adam Dickmeiss <adam@indexdata.dk>
MAINTENANCE: Maintained
@@ -527,9 +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
-------------------------------------------------------------------------------
+4 -4
View File
@@ -38,10 +38,10 @@ install-sapi: $(OVERALL_TARGET)
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)/"
+322 -23
View File
@@ -1,9 +1,293 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 200?, Version 5.0.0
?? ????? 2004, PHP 5 Release Candidate 2
- Reimplemented zend.ze1_compatibility_mode to have better PHP 4 compliance.
(Dmitry, Andi)
- 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 #28007 (compile mssql extension with old versions of FreeTDS
fails). (Frank)
- Fixed bug #27997 (SPL: Crash with getInnerIterator()). (Marcus)
- Fixed bug #27928 (sqlite incorrectly handles invalid filenames). (Ilia)
- 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)
?? ??? 2003, PHP 5 Beta 2
- Added new COM extension with integrated .Net support. (Wez)
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)
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)
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()
@@ -12,51 +296,66 @@ PHP NEWS
. 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_drop_db()
. Added ibase_gen_id()
. Added ibase_name_result()
. Added ibase_errcode()
. 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 misc. new functions:
- 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)
- Changed fgetcsv() in order for the second parameter to be optional.
(Moriyoshi)
. 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.
- 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
- Fixed bug #24729 ($obj = new $className; causes crash when $className is not
set). (Marcus)
- Fixed bug #24565 (cannot read array elements recived via $_REQUEST). (Zeev)
- 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
- Fixed bug #24403 (preg_replace() problem: Using $this when not in object
context). (Zeev)
- Fixed bug #24399 (PEAR DB isError crash [instanceof_function fault?]).
- 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).
- 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
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.
@@ -74,17 +373,17 @@ PHP NEWS
. "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
- 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.
@@ -102,7 +401,7 @@ PHP NEWS
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)
@@ -125,7 +424,7 @@ 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)
@@ -149,7 +448,7 @@ PHP NEWS
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)
@@ -157,5 +456,5 @@ PHP NEWS
- 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)
+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().
+2 -2
View File
@@ -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.
+11 -2
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.
+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
+10 -5
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)
+9 -1
View File
@@ -157,10 +157,18 @@ TSRM_API void tsrm_shutdown(void)
int j;
next_p = p->next;
for (j=0; j<id_count; j++) {
for (j=0; j<p->count; j++) {
/*
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.
if (resource_types_table && resource_types_table[j].dtor) {
resource_types_table[j].dtor(p->storage[j], &p->storage);
}
*/
free(p->storage[j]);
}
free(p->storage);
+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");
+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);
+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 |
+9 -7
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
@@ -377,10 +378,11 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) {
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;
int ret = GetFullPathName(orig_path, _MAX_PATH, buffer, NULL);
if(!ret || ret > _MAX_PATH) {
return NULL;
}
return buffer;
}
#endif
+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 |
+2758
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -15,7 +15,8 @@ libZend_la_SOURCES=\
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_reflection_api.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.
+427 -55
View File
@@ -19,6 +19,38 @@ 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
@@ -125,7 +157,8 @@ 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
'abstract' should run without modifications.
@@ -138,12 +171,12 @@ 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() {
// ...
}
}
@@ -151,6 +184,40 @@ Changes in the Zend Engine 2.0
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.
@@ -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,6 +287,23 @@ Changes in the Zend Engine 2.0
}
?>
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.
@@ -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,42 +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";
?>
* Unified Constructors.
The Zend Engine allows developers to declare constructor methods
@@ -392,16 +474,6 @@ 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
named 'const' will run without modifications.
@@ -409,7 +481,20 @@ Changes in the Zend Engine 2.0
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:
@@ -437,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;
}
?>
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:
Old code that has no user-defined classes or functions 'catch',
'throw' and 'try' will run without modifications.
<?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.
@@ -474,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.
@@ -507,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)
* Static function variables.
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.
* instanceof.
New support for an instanceof operator which checks if an object
is of a certain class or interface type.
Example:
<?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.
@@ -534,7 +723,8 @@ Changes in the Zend Engine 2.0
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.
only argument. __autoload() must succeed in loading the class. If it
doesn't then an E_ERROR is emitted.
Example:
@@ -606,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
PHP5 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 separatley:
http://sitten-polizei.de/php/reflection_api/docs/language.reflection.html
Example:
<?php
class Foo {
public $prop;
function Func($name) {
echo "Hello $name";
}
}
reflection_class::export('Foo');
reflection_object::export(new Foo);
reflection_method::export('Foo', 'func');
reflection_property::export('Foo', 'prop');
reflection_extension::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
+8
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
@@ -287,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
+1 -1
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
+24
View File
@@ -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
@@ -320,6 +332,10 @@ SOURCE=.\zend_errors.h
# End Source File
# Begin Source File
SOURCE=.\zend_exceptions.h
# End Source File
# Begin Source File
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
+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
+1 -1
View File
@@ -7,7 +7,7 @@ Bug #20240 (order of destructor calls)
class test
{
var $member;
public $member;
function test() {
$this->member = 1;
+54 -4
View File
@@ -7,9 +7,9 @@ Bug #22836 (returning references to NULL)
function &f()
{
$x = "foo";
var_dump($x);
print "'$x'\n";
return ($a);
var_dump($x);
print "'$x'\n";
return ($a);
}
for ($i = 0; $i < 8; $i++) {
$h =& f();
@@ -21,4 +21,54 @@ string(3) "foo"
Notice: Undefined variable: a in %s on line %d
Fatal error: Only variables or references can be returned by reference 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
+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
+2 -2
View File
@@ -15,7 +15,7 @@ class Test {
}
else
{
return $this->__clone();
return clone $this;
}
}
}
@@ -24,5 +24,5 @@ $test2 = $test->__copy();
var_dump($test2);
?>
--EXPECT--
object(test)#2 (0) {
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)
+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)
+91 -52
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"
@@ -65,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);
}
@@ -73,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()
@@ -108,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
@@ -138,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]=='*') {
@@ -225,19 +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();
if (expr->value.obj.handlers->cast_object(expr, expr_copy, IS_STRING, 0 TSRMLS_CC) == SUCCESS) {
#if 0
/* 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);
#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);
#endif
break;
case IS_DOUBLE:
*expr_copy = *expr;
@@ -395,7 +405,7 @@ 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;
@@ -445,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);
}
@@ -465,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;
}
@@ -567,6 +581,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
zend_compile_file = compile_file;
zend_execute = execute;
zend_execute_internal = NULL;
zend_throw_exception_hook = NULL;
zend_init_opcodes_handlers();
@@ -603,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;
@@ -630,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);
@@ -663,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
@@ -678,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);
@@ -689,9 +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);
free(GLOBAL_CONSTANTS_TABLE);
GLOBAL_FUNCTION_TABLE = NULL;
GLOBAL_CLASS_TABLE = NULL;
GLOBAL_AUTO_GLOBALS_TABLE = NULL;
#endif
zend_destroy_rsrc_list_dtors();
}
@@ -801,14 +830,14 @@ void zend_deactivate(TSRMLS_D)
static int exec_done_cb(zend_module_entry *module TSRMLS_DC)
{
if (module->exec_finished_func) {
module->exec_finished_func();
if (module->post_deactivate_func) {
module->post_deactivate_func();
}
return 0;
}
void zend_exec_finished(TSRMLS_D)
void zend_post_deactivate_modules(TSRMLS_D)
{
zend_hash_apply(&module_registry, (apply_func_t) exec_done_cb TSRMLS_CC);
}
@@ -840,10 +869,11 @@ ZEND_API void zend_error(int type, const char *format, ...)
zval ***params;
zval *retval;
zval *z_error_type, *z_error_message, *z_error_filename, *z_error_lineno, *z_context;
zval lz_context;
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 */
@@ -858,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:
@@ -885,7 +916,8 @@ ZEND_API void zend_error(int type, const char *format, ...)
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:
@@ -903,6 +935,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
ALLOC_INIT_ZVAL(z_error_type);
ALLOC_INIT_ZVAL(z_error_filename);
ALLOC_INIT_ZVAL(z_error_lineno);
ALLOC_INIT_ZVAL(z_context);
z_error_message->value.str.len = zend_vspprintf(&z_error_message->value.str.val, 0, format, args);
z_error_message->type = IS_STRING;
@@ -919,11 +952,9 @@ ZEND_API void zend_error(int type, const char *format, ...)
z_error_lineno->value.lval = error_lineno;
z_error_lineno->type = IS_LONG;
lz_context.value.ht = EG(active_symbol_table);
lz_context.type = IS_ARRAY;
lz_context.is_ref = 1;
lz_context.refcount = 2; /* we don't want this one to be freed */
z_context = &lz_context;
z_context->value.ht = EG(active_symbol_table);
z_context->type = IS_ARRAY;
ZVAL_ADDREF(z_context); /* we don't want this one to be freed */
params = (zval ***) emalloc(sizeof(zval **)*5);
params[0] = &z_error_type;
@@ -934,6 +965,13 @@ 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) {
zval_ptr_dtor(&retval);
@@ -942,6 +980,15 @@ ZEND_API void zend_error(int type, const char *format, ...)
/* 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);
@@ -949,7 +996,9 @@ ZEND_API void zend_error(int type, const char *format, ...)
zval_ptr_dtor(&z_error_type);
zval_ptr_dtor(&z_error_filename);
zval_ptr_dtor(&z_error_lineno);
ZVAL_DELREF(z_context);
if (ZVAL_REFCOUNT(z_context) == 2) {
FREE_ZVAL(z_context);
}
break;
}
@@ -1015,7 +1064,6 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
} 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;
@@ -1030,8 +1078,6 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
}
} else {
zend_exception_error(EG(exception) TSRMLS_CC);
zval_ptr_dtor(&EG(exception));
EG(exception) = NULL;
}
efree(params);
zval_ptr_dtor(&old_exception);
@@ -1041,19 +1087,12 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
}
} else {
zend_exception_error(EG(exception) TSRMLS_CC);
zval_ptr_dtor(&EG(exception));
EG(exception) = NULL;
}
if (retval == NULL && *EG(return_value_ptr_ptr) != NULL) {
zval_ptr_dtor(EG(return_value_ptr_ptr));
local_retval = NULL;
}
#else
zend_exception_error(EG(exception) TSRMLS_CC);
zval_ptr_dtor(&EG(exception));
EG(exception) = NULL;
#endif
} else if (!retval) {
} else if (!retval && *EG(return_value_ptr_ptr)) {
zval_ptr_dtor(EG(return_value_ptr_ptr));
local_retval = NULL;
}
+23 -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 |
@@ -22,7 +22,7 @@
#ifndef ZEND_H
#define ZEND_H
#define ZEND_VERSION "2.0.0-dev"
#define ZEND_VERSION "2.0.0RC2RC2"
#define ZEND_ENGINE_2
@@ -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)
@@ -146,6 +150,7 @@ char *alloca ();
# endif
#endif
/* GCC x.y.z supplies __GNUC__ = x and __GNUC_MINOR__ = y */
#ifdef __GNUC__
# define ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
#else
@@ -164,7 +169,7 @@ char *alloca ();
# define ZEND_ATTRIBUTE_FORMAT(type, idx, first)
#endif
#if ZEND_GCC_VERSION >= 3002
#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)
@@ -287,18 +292,6 @@ struct _zval_struct {
zend_uchar is_ref;
};
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
@@ -306,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;
@@ -331,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;
@@ -343,13 +339,8 @@ 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"
@@ -384,7 +375,7 @@ 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)
@@ -404,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
@@ -449,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);
@@ -457,12 +446,13 @@ 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_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_exec_finished(TSRMLS_D);
void zend_post_deactivate_modules(TSRMLS_D);
#if ZEND_DEBUG
#define Z_DBG(expr) (expr)
@@ -472,8 +462,9 @@ void zend_exec_finished(TSRMLS_D);
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); }
@@ -525,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 */
+171 -66
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 |
@@ -315,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";
@@ -596,52 +603,41 @@ ZEND_API int zend_parse_method_parameters(int num_args TSRMLS_DC, zval *this_ptr
}
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 (Z_TYPE_PP(parameter) == IS_OBJECT &&
instanceof_function(Z_OBJCE_PP(parameter), ce TSRMLS_CC)) {
*object = *parameter;
} else {
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;
}
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 */
@@ -1169,10 +1165,13 @@ ZEND_API int zend_startup_module(zend_module_entry *module)
if (module->module_startup_func) {
TSRMLS_FETCH();
EG(current_module) = module;
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);
EG(current_module) = NULL;
return FAILURE;
}
EG(current_module) = NULL;
}
module->type = MODULE_PERSISTENT;
zend_register_module(module);
@@ -1182,7 +1181,7 @@ ZEND_API int zend_startup_module(zend_module_entry *module)
/* 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;
@@ -1213,11 +1212,20 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
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)) {
@@ -1229,12 +1237,19 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
} else {
internal_function->fn_flags = ZEND_ACC_PUBLIC;
}
if (ptr->flags&ZEND_ACC_ABSTRACT) {
if (ptr->flags & ZEND_ACC_ABSTRACT) {
if (scope) {
scope->ce_flags |= ZEND_ACC_ABSTRACT;
/* 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) {
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;
}
@@ -1263,6 +1278,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;
}
@@ -1290,12 +1309,21 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
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;
@@ -1304,7 +1332,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;
@@ -1329,6 +1357,8 @@ void zend_unregister_functions(zend_function_entry *functions, int count, HashTa
ZEND_API int zend_register_module(zend_module_entry *module)
{
int retval, name_len;
char *lcname;
TSRMLS_FETCH();
#if 0
@@ -1339,7 +1369,19 @@ ZEND_API int zend_register_module(zend_module_entry *module)
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);
name_len = strlen(module->name);
lcname = zend_str_tolower_dup(module->name, name_len);
retval = zend_hash_add(&module_registry, lcname, name_len+1, (void *)module, sizeof(zend_module_entry), NULL);
efree(lcname);
return retval;
}
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;
}
@@ -1419,6 +1461,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
@@ -1440,28 +1503,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,
@@ -1540,7 +1616,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;
@@ -1548,15 +1624,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;
@@ -1595,13 +1673,13 @@ zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callabl
ce = 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;
@@ -1652,6 +1730,33 @@ zend_bool zend_is_callable(zval *callable, zend_bool syntax_only, char **callabl
}
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;
@@ -1694,7 +1799,7 @@ ZEND_API int zend_declare_property(zend_class_entry *ce, char *name, int name_le
char *priv_name;
int priv_name_length;
mangle_property_name(&priv_name, &priv_name_length, ce->name, ce->name_length, name, name_length, ce->type & ZEND_INTERNAL_CLASS);
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;
@@ -1704,7 +1809,7 @@ ZEND_API int zend_declare_property(zend_class_entry *ce, char *name, int name_le
char *prot_name;
int prot_name_length;
mangle_property_name(&prot_name, &prot_name_length, "*", 1, name, name_length, ce->type & ZEND_INTERNAL_CLASS);
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;
@@ -1715,7 +1820,7 @@ ZEND_API int zend_declare_property(zend_class_entry *ce, char *name, int name_le
char *prot_name;
int prot_name_length;
mangle_property_name(&prot_name, &prot_name_length, "*", 1, name, name_length, ce->type & ZEND_INTERNAL_CLASS);
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);
}
+52 -13
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 |
@@ -53,13 +53,18 @@ typedef struct _zend_function_entry {
#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 },
#define ZEND_ARG_PASS_INFO(pass_by_ref) { NULL, 0, NULL, 0, 0, pass_by_ref },
#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 },
#define ZEND_BEGIN_ARG_INFO(name, pass_rest_by_reference) \
zend_arg_info name[] = { \
ZEND_ARG_PASS_INFO(pass_rest_by_reference)
#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 */
@@ -67,7 +72,7 @@ typedef struct _zend_function_entry {
#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_EXEC_FINISHED_N(module) zm_exec_finished_##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 */
@@ -75,7 +80,7 @@ typedef struct _zend_function_entry {
#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_EXEC_FINISHED_D(module) int ZEND_MODULE_EXEC_FINISHED_N(module)(void)
#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) \
@@ -121,14 +126,21 @@ typedef struct _zend_function_entry {
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, ...);
@@ -148,23 +160,27 @@ 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 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);
@@ -282,6 +298,7 @@ ZEND_API int add_property_zval_ex(zval *arg, char *key, uint key_len, zval *valu
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;
@@ -302,6 +319,7 @@ typedef struct _zend_fcall_info_cache {
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);
@@ -314,6 +332,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) \
@@ -369,6 +388,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)
@@ -380,6 +417,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)
@@ -391,6 +429,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; }
+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 |
@@ -78,9 +78,9 @@ static long mem_block_end_magic = MEM_BLOCK_END_MAGIC;
if (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) { \
@@ -567,9 +567,11 @@ 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;
+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 |
+102 -54
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);
@@ -122,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)
@@ -504,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)
{
@@ -520,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();
}
@@ -567,8 +576,6 @@ ZEND_FUNCTION(get_parent_class)
} 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;
}
@@ -586,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;
@@ -606,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) {
@@ -619,7 +622,6 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
}
if (!instance_ce) {
efree(lcname);
RETURN_FALSE;
}
@@ -630,8 +632,6 @@ static void is_a_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool only_subclass)
}
}
efree(lcname);
RETURN_BOOL(retval);
}
@@ -649,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);
}
/* }}} */
@@ -659,7 +660,6 @@ ZEND_FUNCTION(is_a)
ZEND_FUNCTION(get_class_vars)
{
zval **class_name;
char *lcname;
zend_class_entry *ce, **pce;
zval *tmp;
@@ -668,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);
@@ -692,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();
@@ -706,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);
}
}
/* }}} */
@@ -733,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;
}
@@ -756,6 +765,7 @@ ZEND_FUNCTION(get_class_methods)
}
}
/* }}} */
\
/* {{{ proto bool method_exists(object object, string method)
@@ -794,7 +804,6 @@ ZEND_FUNCTION(method_exists)
ZEND_FUNCTION(class_exists)
{
zval **class_name;
char *lcname;
zend_class_entry **ce;
if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &class_name)==FAILURE) {
@@ -802,12 +811,10 @@ ZEND_FUNCTION(class_exists)
}
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 (zend_lookup_class(Z_STRVAL_PP(class_name), Z_STRLEN_PP(class_name), &ce TSRMLS_CC) == SUCCESS) {
RETURN_TRUE;
} else {
efree(lcname);
RETURN_FALSE;
}
}
@@ -936,19 +943,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;
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 +968,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) {
@@ -990,6 +1000,8 @@ ZEND_FUNCTION(restore_error_handler)
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 +1009,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 +1070,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 +1090,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);
}
/* }}} */
@@ -1345,7 +1389,8 @@ bad_module_id:
/* }}} */
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;
@@ -1402,14 +1447,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;
}
@@ -1522,14 +1567,14 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRML
int arg_stack_consistent = 0;
int frames_on_stack = 0;
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;
}
@@ -1537,8 +1582,8 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last TSRML
ptr = EG(current_execute_data);
/* skip debug_backtrace() */
ptr = ptr->prev_execute_data;
/* skip debug_backtrace() */
ptr = ptr->prev_execute_data;
if (skip_last) {
cur_arg_pos -= 2;
frames_on_stack--;
@@ -1663,17 +1708,20 @@ ZEND_FUNCTION(debug_backtrace)
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);
}
/* }}} */
+4 -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 |
@@ -23,7 +23,10 @@
#define ZEND_BUILTIN_FUNCTIONS_H
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 */
+521 -277
View File
File diff suppressed because it is too large. Load diff
+65 -22
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,8 +123,13 @@ 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_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);
@@ -131,6 +149,8 @@ typedef struct _zend_arg_info {
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 {
@@ -141,8 +161,10 @@ struct _zend_op_array {
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;
@@ -156,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;
@@ -176,6 +200,10 @@ 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;
@@ -184,8 +212,10 @@ typedef struct _zend_internal_function {
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);
@@ -203,8 +233,10 @@ typedef union _zend_function {
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;
@@ -283,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);
@@ -341,26 +371,28 @@ 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, 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);
@@ -465,8 +497,8 @@ ZEND_API void destroy_zend_function(zend_function *function TSRMLS_DC);
ZEND_API void destroy_zend_class(zend_class_entry **pce);
void zend_class_add_ref(zend_class_entry **ce);
void mangle_property_name(char **dest, int *dest_length, char *src1, int src1_length, char *src2, int src2_length, int internal);
void unmangle_property_name(char *mangled_property, char **prop_name, char **class_name);
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_CLASS_DTOR (void (*)(void *)) destroy_zend_class
@@ -478,9 +510,12 @@ 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);
@@ -494,6 +529,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);
@@ -673,6 +709,10 @@ int zendlex(znode *zendlval TSRMLS_DC);
#define ZEND_ASSIGN_DIM 147
#define ZEND_ISSET_ISEMPTY_PROP_OBJ 148
#define ZEND_HANDLE_EXCEPTION 149
/* end of block */
/* END: OPCODES */
@@ -788,6 +828,9 @@ int zendlex(znode *zendlval TSRMLS_DC);
#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 |
+18 -14
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,8 +212,8 @@ 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] == ':') {
@@ -222,24 +223,26 @@ ZEND_API int zend_get_constant(char *name, uint name_len, zval *result TSRMLS_DC
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)) {
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) {
class_name = do_alloca(class_name_len+1);
memcpy(class_name, name, class_name_len);
class_name[class_name_len] = '\0';
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,10 +251,11 @@ 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;
}
}
free_alloca(class_name);
if (retval && ce) {
if (zend_hash_find(&((*ce)->constants_table), constant_name, const_name_len+1, (void **) &ret_constant) != SUCCESS) {
@@ -262,11 +266,11 @@ ZEND_API int zend_get_constant(char *name, uint name_len, zval *result TSRMLS_DC
}
if (retval) {
zval_update_constant(ret_constant, (void*)1 TSRMLS_CC);
*result = **ret_constant;
zval_copy_ctor(result);
}
free_alloca(lookup_name);
return retval;
}
+3 -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 |
@@ -27,7 +27,7 @@
#define CONST_CS (1<<0) /* Case Sensitive */
#define CONST_PERSISTENT (1<<1) /* Persistent */
#define PHP_USER_CONSTANT LONG_MAX /* a constant defined in user space */
#define PHP_USER_CONSTANT INT_MAX /* a constant defined in user space */
typedef struct _zend_constant {
zval value;
@@ -62,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
+5 -478
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 |
@@ -23,489 +23,16 @@
#include "zend_API.h"
#include "zend_reflection_api.h"
#include "zend_builtin_functions.h"
#include "zend_interfaces.h"
#include "zend_exceptions.h"
static zend_class_entry *default_exception_ptr;
static zend_object_handlers default_exception_handlers;
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(class_type, &obj, "file", sizeof("file")-1, zend_get_executed_filename(TSRMLS_C) TSRMLS_CC);
zend_update_property_long(class_type, &obj, "line", sizeof("line")-1, zend_get_executed_lineno(TSRMLS_C) TSRMLS_CC);
zend_update_property(class_type, &obj, "trace", sizeof("trace")-1, trace TSRMLS_CC);
return obj.value.obj;
}
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 (message) {
zend_update_property_string(Z_OBJCE_P(object), object, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (code) {
zend_update_property_long(Z_OBJCE_P(object), object, "code", sizeof("code")-1, code TSRMLS_CC);
}
}
#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;
value = zend_read_property(Z_OBJCE_P(object), object, name, name_len, 0 TSRMLS_CC);
*return_value = *value;
zval_copy_ctor(return_value);
}
ZEND_METHOD(exception, getFile)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "file", sizeof("file")-1, return_value TSRMLS_CC);
}
ZEND_METHOD(exception, getLine)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "line", sizeof("line")-1, return_value TSRMLS_CC);
}
ZEND_METHOD(exception, getMessage)
{
DEFAULT_0_PARAMS;
_default_exception_get_entry(getThis(), "message", sizeof("message")-1, return_value TSRMLS_CC);
}
ZEND_METHOD(exception, getCode)
{
DEFAULT_0_PARAMS;
_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(Z_OBJCE_P(getThis()), 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);
}
/* }}} */
ZEND_METHOD(exception, toString)
{
zval *message, *file, *line, *trace;
char *str;
int len;
zend_fcall_info fci;
zval fname;
message = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "message", sizeof("message")-1, 1 TSRMLS_CC);
file = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "file", sizeof("file")-1, 1 TSRMLS_CC);
line = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "line", sizeof("line")-1, 1 TSRMLS_CC);
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);
len = 11 + strlen(Z_OBJCE_P(getThis())->name) + 16 + Z_STRLEN_P(message) + 5 + Z_STRLEN_P(file) + 1 + MAX_LENGTH_OF_LONG + 14 + Z_STRLEN_P(trace) + 1;
str = emalloc(len);
sprintf(str, "exception '%s' with message '%s' in %s:%ld\nStack trace:\n%s",
Z_OBJCE_P(getThis())->name, Z_STRVAL_P(message), Z_STRVAL_P(file), Z_LVAL_P(line),
Z_STRLEN_P(trace) ? Z_STRVAL_P(trace) : "#0 {main}\n");
len = strlen(str);
/* 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_ptr, getThis(), "string", sizeof("string")-1, str TSRMLS_CC);
zval_ptr_dtor(&trace);
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_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}
};
void zend_cast_exception(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC)
{
if (type == IS_STRING) {
zval fname, *retval;
ZVAL_STRING(&fname, "tostring", 0);
if (call_user_function_ex(NULL, &readobj, &fname, &retval, 0, NULL, 0, NULL TSRMLS_CC) == SUCCESS) {
ZVAL_STRING(writeobj, Z_STRVAL_P(retval), 1);
zval_ptr_dtor(&retval);
return;
}
}
Z_TYPE_P(writeobj) = IS_NULL;
}
static void zend_register_default_exception(TSRMLS_D)
{
zend_class_entry ce;
INIT_CLASS_ENTRY(ce, "exception", default_exception_functions);
default_exception_ptr = zend_register_internal_class(&ce TSRMLS_CC);
default_exception_ptr->create_object = zend_default_exception_new;
memcpy(&default_exception_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
default_exception_handlers.cast_object = zend_cast_exception;
zend_declare_property_string(default_exception_ptr, "message", sizeof("message")-1, "Unknown exception", ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_string(default_exception_ptr, "string", sizeof("string")-1, "", ZEND_ACC_PRIVATE TSRMLS_CC);
zend_declare_property_long(default_exception_ptr, "code", sizeof("code")-1, 0, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ptr, "file", sizeof("file")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ptr, "line", sizeof("line")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ptr, "trace", sizeof("trace")-1, ZEND_ACC_PRIVATE TSRMLS_CC);
}
ZEND_API zend_class_entry *zend_exception_get_default(void)
{
return default_exception_ptr;
}
ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...)
{
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_ptr TSRMLS_CC)) {
zend_error(E_NOTICE, "Exceptions must be derived from exception");
exception_ce = default_exception_ptr;
}
} else {
exception_ce = default_exception_ptr;
}
object_init_ex(ex, exception_ce);
if (message) {
zend_update_property_string(exception_ce, ex, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (code) {
zend_update_property_long(exception_ce, ex, "code", sizeof("code")-1, code TSRMLS_CC);
}
efree(message);
EG(exception) = ex;
}
/* at the moment we can't use zend_throw_exception_ex because we don't have a protable
* vsnprintf that tells us the number of characters needed nor do we have spprintf from
* php or asprintf from glibc always.
*/
ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC)
{
zval *ex;
MAKE_STD_ZVAL(ex);
if (exception_ce) {
if (!instanceof_function(exception_ce, default_exception_ptr TSRMLS_CC)) {
zend_error(E_NOTICE, "Exceptions must be derived from exception");
exception_ce = default_exception_ptr;
}
} else {
exception_ce = default_exception_ptr;
}
object_init_ex(ex, exception_ce);
if (message) {
zend_update_property_string(exception_ce, ex, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (code) {
zend_update_property_long(exception_ce, ex, "code", sizeof("code")-1, code TSRMLS_CC);
}
EG(exception) = ex;
}
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);
}
ZEND_API void zend_exception_error(zval *exception TSRMLS_DC)
{
if (instanceof_function(Z_OBJCE_P(exception), default_exception_ptr TSRMLS_CC)) {
zend_fcall_info fci;
zval fname;
zval *str, *file, *line;
file = zend_read_property(default_exception_ptr, exception, "file", sizeof("file")-1, 1 TSRMLS_CC);
line = zend_read_property(default_exception_ptr, exception, "line", sizeof("line")-1, 1 TSRMLS_CC);
ZVAL_STRINGL(&fname, "tostring", sizeof("tostring")-1, 0);
fci.size = sizeof(fci);
fci.function_table = &default_exception_ptr->function_table;
fci.function_name = &fname;
fci.symbol_table = NULL;
fci.object_pp = &exception;
fci.retval_ptr_ptr = &str;
fci.param_count = 0;
fci.params = NULL;
fci.no_separation = 1;
zend_call_function(&fci, NULL TSRMLS_CC);
zval_ptr_dtor(&str);
str = zend_read_property(default_exception_ptr, exception, "string", sizeof("string")-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'", Z_OBJCE_P(exception)->name);
}
}
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);
}
/*
-48
View File
@@ -1,48 +0,0 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Sterling Hughes <sterling@php.net> |
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef ZEND_DEFAULT_CLASSES_H
#define ZEND_DEFAULT_CLASSES_H
BEGIN_EXTERN_C()
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, ...);
/* show an exception using zend_error(E_ERROR,...) */
ZEND_API void zend_exception_error(zval *exception TSRMLS_DC);
END_EXTERN_C()
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: t
* End:
*/
+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)
+172 -109
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,8 +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> |
+----------------------------------------------------------------------+
*/
@@ -23,9 +25,54 @@
#include "zend_API.h"
#include "zend_reflection_api.h"
#include "zend_builtin_functions.h"
#include "zend_interfaces.h"
static 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);
void zend_throw_exception_internal(zval *exception TSRMLS_DC)
{
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_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)
{
@@ -45,13 +92,19 @@ static zend_object_value zend_default_exception_new(zend_class_entry *class_type
trace->refcount = 0;
zend_fetch_debug_backtrace(trace, 0 TSRMLS_CC);
zend_update_property_string(class_type, &obj, "file", sizeof("file")-1, zend_get_executed_filename(TSRMLS_C) TSRMLS_CC);
zend_update_property_long(class_type, &obj, "line", sizeof("line")-1, zend_get_executed_lineno(TSRMLS_C) TSRMLS_CC);
zend_update_property(class_type, &obj, "trace", sizeof("trace")-1, trace 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;
@@ -66,11 +119,11 @@ ZEND_METHOD(exception, __construct)
object = getThis();
if (message) {
zend_update_property_string(Z_OBJCE_P(object), object, "message", sizeof("message")-1, message TSRMLS_CC);
zend_update_property_string(default_exception_ce, object, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (code) {
zend_update_property_long(Z_OBJCE_P(object), object, "code", sizeof("code")-1, code TSRMLS_CC);
zend_update_property_long(default_exception_ce, object, "code", sizeof("code")-1, code TSRMLS_CC);
}
}
@@ -83,7 +136,7 @@ static void _default_exception_get_entry(zval *object, char *name, int name_len,
{
zval *value;
value = zend_read_property(Z_OBJCE_P(object), object, name, name_len, 0 TSRMLS_CC);
value = zend_read_property(default_exception_ce, object, name, name_len, 0 TSRMLS_CC);
*return_value = *value;
zval_copy_ctor(return_value);
@@ -282,7 +335,7 @@ ZEND_METHOD(exception, getTraceAsString)
char *res = estrdup(""), **str = &res, *s_tmp;
int res_len = 0, *len = &res_len, num = 0;
trace = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "trace", sizeof("trace")-1, 1 TSRMLS_CC);
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);
@@ -295,17 +348,32 @@ ZEND_METHOD(exception, getTraceAsString)
}
/* }}} */
ZEND_METHOD(exception, toString)
static int zend_spprintf(char **message, int max_len, char *format, ...)
{
zval *message, *file, *line, *trace;
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;
message = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "message", sizeof("message")-1, 1 TSRMLS_CC);
file = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "file", sizeof("file")-1, 1 TSRMLS_CC);
line = zend_read_property(Z_OBJCE_P(getThis()), getThis(), "line", sizeof("line")-1, 1 TSRMLS_CC);
_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);
@@ -321,18 +389,31 @@ ZEND_METHOD(exception, toString)
zend_call_function(&fci, NULL TSRMLS_CC);
len = 11 + strlen(Z_OBJCE_P(getThis())->name) + 16 + Z_STRLEN_P(message) + 5 + Z_STRLEN_P(file) + 1 + MAX_LENGTH_OF_LONG + 14 + Z_STRLEN_P(trace) + 1;
str = emalloc(len);
sprintf(str, "exception '%s' with message '%s' in %s:%ld\nStack trace:\n%s",
Z_OBJCE_P(getThis())->name, Z_STRVAL_P(message), Z_STRVAL_P(file), Z_LVAL_P(line),
Z_STRLEN_P(trace) ? Z_STRVAL_P(trace) : "#0 {main}\n");
len = strlen(str);
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_ptr, getThis(), "string", sizeof("string")-1, str TSRMLS_CC);
zend_update_property_string(default_exception_ce, getThis(), "string", sizeof("string")-1, str TSRMLS_CC);
zval_ptr_dtor(&trace);
if (trace) {
zval_ptr_dtor(&trace);
}
zval_dtor(&message);
zval_dtor(&file);
zval_dtor(&line);
RETURN_STRINGL(str, len, 0);
}
@@ -342,11 +423,12 @@ ZEND_METHOD(exception, toString)
* 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().
* 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_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)
@@ -354,46 +436,31 @@ static zend_function_entry default_exception_functions[] = {
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)
ZEND_ME(exception, __toString, NULL, 0)
{NULL, NULL, NULL}
};
void zend_cast_exception(zval *readobj, zval *writeobj, int type, int should_free TSRMLS_DC)
{
if (type == IS_STRING) {
zval fname, *retval;
ZVAL_STRING(&fname, "tostring", 0);
if (call_user_function_ex(NULL, &readobj, &fname, &retval, 0, NULL, 0, NULL TSRMLS_CC) == SUCCESS) {
ZVAL_STRING(writeobj, Z_STRVAL_P(retval), 1);
zval_ptr_dtor(&retval);
return;
}
}
Z_TYPE_P(writeobj) = IS_NULL;
}
static void zend_register_default_exception(TSRMLS_D)
void zend_register_default_exception(TSRMLS_D)
{
zend_class_entry ce;
INIT_CLASS_ENTRY(ce, "exception", default_exception_functions);
default_exception_ptr = zend_register_internal_class(&ce TSRMLS_CC);
default_exception_ptr->create_object = zend_default_exception_new;
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.cast_object = zend_cast_exception;
default_exception_handlers.clone_obj = NULL;
zend_declare_property_string(default_exception_ptr, "message", sizeof("message")-1, "Unknown exception", ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_string(default_exception_ptr, "string", sizeof("string")-1, "", ZEND_ACC_PRIVATE TSRMLS_CC);
zend_declare_property_long(default_exception_ptr, "code", sizeof("code")-1, 0, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ptr, "file", sizeof("file")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ptr, "line", sizeof("line")-1, ZEND_ACC_PROTECTED TSRMLS_CC);
zend_declare_property_null(default_exception_ptr, "trace", sizeof("trace")-1, ZEND_ACC_PRIVATE TSRMLS_CC);
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_throw_exception_ex(zend_class_entry *exception_ce, long code TSRMLS_DC, char *format, ...)
@@ -408,58 +475,35 @@ ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code
MAKE_STD_ZVAL(ex);
if (exception_ce) {
if (!instanceof_function(exception_ce, default_exception_ptr TSRMLS_CC)) {
zend_error(E_NOTICE, "Exceptions must be derived from exception");
exception_ce = default_exception_ptr;
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_ptr;
exception_ce = default_exception_ce;
}
object_init_ex(ex, exception_ce);
if (message) {
zend_update_property_string(exception_ce, ex, "message", sizeof("message")-1, message TSRMLS_CC);
zend_update_property_string(default_exception_ce, ex, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (code) {
zend_update_property_long(exception_ce, ex, "code", sizeof("code")-1, code TSRMLS_CC);
zend_update_property_long(default_exception_ce, ex, "code", sizeof("code")-1, code TSRMLS_CC);
}
efree(message);
EG(exception) = ex;
zend_throw_exception_internal(ex TSRMLS_CC);
}
/* at the moment we can't use zend_throw_exception_ex because we don't have a protable
* vsnprintf that tells us the number of characters needed nor do we have spprintf from
* php or asprintf from glibc always.
*/
ZEND_API void zend_throw_exception(zend_class_entry *exception_ce, char *message, long code TSRMLS_DC)
{
zval *ex;
MAKE_STD_ZVAL(ex);
if (exception_ce) {
if (!instanceof_function(exception_ce, default_exception_ptr TSRMLS_CC)) {
zend_error(E_NOTICE, "Exceptions must be derived from exception");
exception_ce = default_exception_ptr;
}
} else {
exception_ce = default_exception_ptr;
}
object_init_ex(ex, exception_ce);
if (message) {
zend_update_property_string(exception_ce, ex, "message", sizeof("message")-1, message TSRMLS_CC);
}
if (code) {
zend_update_property_long(exception_ce, ex, "code", sizeof("code")-1, code TSRMLS_CC);
}
EG(exception) = ex;
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;
@@ -469,43 +513,62 @@ static void zend_error_va(int type, const char *file, uint lineno, const char *f
va_end(args);
}
/* This function doesn't return as it calls E_ERROR */
ZEND_API void zend_exception_error(zval *exception TSRMLS_DC)
{
if (instanceof_function(Z_OBJCE_P(exception), default_exception_ptr TSRMLS_CC)) {
zend_fcall_info fci;
zval fname;
zend_class_entry *ce_exception = Z_OBJCE_P(exception);
if (instanceof_function(ce_exception, default_exception_ce TSRMLS_CC)) {
zval *str, *file, *line;
file = zend_read_property(default_exception_ptr, exception, "file", sizeof("file")-1, 1 TSRMLS_CC);
line = zend_read_property(default_exception_ptr, exception, "line", sizeof("line")-1, 1 TSRMLS_CC);
EG(exception) = NULL;
ZVAL_STRINGL(&fname, "tostring", sizeof("tostring")-1, 0);
fci.size = sizeof(fci);
fci.function_table = &default_exception_ptr->function_table;
fci.function_name = &fname;
fci.symbol_table = NULL;
fci.object_pp = &exception;
fci.retval_ptr_ptr = &str;
fci.param_count = 0;
fci.params = NULL;
fci.no_separation = 1;
zend_call_function(&fci, NULL TSRMLS_CC);
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);
str = zend_read_property(default_exception_ptr, exception, "string", sizeof("string")-1, 1 TSRMLS_CC);
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'", Z_OBJCE_P(exception)->name);
zend_error(E_ERROR, "Uncaught exception '%s'", ce_exception->name);
}
}
ZEND_API void zend_register_default_classes(TSRMLS_D)
ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC)
{
zend_register_default_exception(TSRMLS_C);
zend_register_reflection_api(TSRMLS_C);
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);
}
/*
+14 -4
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,18 +12,24 @@
| 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);
@@ -31,6 +37,10 @@ ZEND_API void zend_register_default_classes(TSRMLS_D);
* 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);
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);
+1141 -874
View File
File diff suppressed because it is too large. Load diff
+22 -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,12 +52,13 @@ 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);
@@ -99,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;
@@ -140,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);
@@ -149,6 +152,7 @@ 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();
@@ -164,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.
*/
+257 -74
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 |
@@ -29,7 +29,7 @@
#include "zend_ptr_stack.h"
#include "zend_constants.h"
#include "zend_extensions.h"
#include "zend_default_classes.h"
#include "zend_exceptions.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -117,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);
@@ -132,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);
{
@@ -166,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));
@@ -180,8 +182,6 @@ void init_executor(TSRMLS_D)
EG(scope) = NULL;
EG(current_execute_data) = NULL;
EG(This) = NULL;
EG(float_separator)[0] = '.';
@@ -206,8 +206,8 @@ void shutdown_executor(TSRMLS_D)
}
*/
zend_llist_apply(&zend_extensions, (llist_apply_func_t) zend_extension_deactivator TSRMLS_CC);
zend_hash_destroy(&EG(symbol_table));
zend_objects_store_call_destructors(&EG(objects_store) TSRMLS_CC);
zend_hash_graceful_reverse_destroy(&EG(symbol_table));
} zend_end_try();
zend_try {
@@ -228,17 +228,19 @@ void shutdown_executor(TSRMLS_D)
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 */
@@ -264,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 {
@@ -286,13 +289,47 @@ void shutdown_executor(TSRMLS_D)
zend_hash_destroy(&EG(included_files));
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_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)) {
@@ -352,7 +389,7 @@ 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;
}
@@ -459,7 +496,7 @@ ZEND_API int zval_update_constant(zval **pp, void *arg TSRMLS_DC)
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);
@@ -527,7 +564,6 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
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;
@@ -543,11 +579,19 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
}
/* Initialize execute_data */
EX(fbc) = NULL;
EX(object) = NULL;
EX(Ts) = NULL;
EX(op_array) = NULL;
EX(opline) = 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));
}
/* we may return SUCCESS, and yet retval may be uninitialized,
* if there was an exception...
*/
*fci->retval_ptr_ptr = NULL;
if (!fci_cache || !fci_cache->initialized) {
@@ -583,26 +627,47 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
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(fci->object_pp), Z_STRLEN_PP(fci->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(fci->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;
fci->function_table = &(*ce)->function_table;
calling_scope = *ce;
fci->object_pp = NULL;
}
if (fci->function_table == NULL) {
@@ -614,25 +679,42 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
return FAILURE;
}
function_name_lc = zend_str_tolower_dup(fci->function_name->value.str.val, fci->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));
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 =
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);
}
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_STRING(method_name, function_name_lc, 1);
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 {
efree(function_name_lc);
return FAILURE;
}
}
efree(function_name_lc);
if (fci_cache) {
fci_cache->function_handler = EX(function_state).function;
fci_cache->object_pp = fci->object_pp;
@@ -698,21 +780,34 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
current_this = EG(This);
if (fci->object_pp) {
EG(This) = *fci->object_pp;
if (!PZVAL_IS_REF(EG(This))) {
EG(This)->refcount++; /* For $this pointer */
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);
@@ -771,6 +866,10 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
EG(scope) = current_scope;
EG(This) = current_this;
EG(current_execute_data) = EX(prev_execute_data);
if (EG(exception)) {
zend_throw_exception_internal(NULL TSRMLS_CC);
}
return SUCCESS;
}
@@ -778,39 +877,72 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
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;
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;
}
retval = call_user_function_ex(EG(function_table), NULL, autoload_function, &retval_ptr, 1, args, 0, NULL TSRMLS_CC);
ZVAL_STRINGL(&autoload_function, "__autoload", sizeof("__autoload")-1, 0);
zval_ptr_dtor(&autoload_function);
zval_ptr_dtor(&class_name);
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)
@@ -883,16 +1015,10 @@ 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;
zval *exception = EG(exception);
if (handle_exceptions) {
EG(exception) = NULL;
}
result = zend_eval_string(str, retval_ptr, string_name TSRMLS_CC);
if (handle_exceptions && EG(exception)) {
zend_exception_error(EG(exception) TSRMLS_CC);
zval_ptr_dtor(&EG(exception));
EG(exception) = exception;
result = FAILURE;
}
return result;
@@ -901,7 +1027,7 @@ ZEND_API int zend_eval_string_ex(char *str, zval *retval_ptr, char *string_name,
void execute_new_code(TSRMLS_D)
{
zend_op *opline, *end;
zend_op *opline, *end;
zend_op *ret_opline;
zval *local_retval=NULL;
@@ -925,18 +1051,18 @@ void execute_new_code(TSRMLS_D)
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);
@@ -975,7 +1101,15 @@ static LRESULT CALLBACK zend_timeout_WndProc(HWND hWnd, UINT message, WPARAM wPa
if (lParam==0) {
KillTimer(timeout_window, wParam);
} else {
void ***tsrm_ls;
SetTimer(timeout_window, wParam, lParam*1000, NULL);
tsrm_ls = ts_resource_ex(0, &wParam);
if (!tsrm_ls) {
/* shouldn't normally happen */
break;
}
EG(timed_out) = 0;
}
break;
case WM_UNREGISTER_ZEND_TIMEOUT:
@@ -1143,6 +1277,55 @@ check_fetch_type:
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 |
+9 -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 |
@@ -34,6 +34,7 @@
#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"
@@ -115,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;
@@ -191,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;
@@ -213,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;
@@ -226,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 */
+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 |
+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 |
+10 -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 |
@@ -105,7 +105,7 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
int in_string=0;
zend_printf("<code>");
zend_printf("<font color=\"%s\">\n", last_color);
zend_printf("<span style=\"color: %s\">\n", last_color);
/* highlight stuff coming back from zendlex() */
token.type = 0;
while ((token_type=lex_scan(&token TSRMLS_CC))) {
@@ -137,25 +137,23 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
continue;
break;
default:
if (token.type==0) {
if (in_string) {
next_color = syntax_highlighter_ini->highlight_string;
} else if (token.type == 0) {
next_color = syntax_highlighter_ini->highlight_keyword;
} else {
if (in_string) {
next_color = syntax_highlighter_ini->highlight_string;
} else {
next_color = syntax_highlighter_ini->highlight_default;
}
next_color = syntax_highlighter_ini->highlight_default;
}
break;
}
if (last_color != next_color) {
if (last_color != syntax_highlighter_ini->highlight_html) {
zend_printf("</font>");
zend_printf("</span>");
}
last_color = next_color;
if (last_color != syntax_highlighter_ini->highlight_html) {
zend_printf("<font color=\"%s\">", last_color);
zend_printf("<span style=\"color: %s\">", last_color);
}
}
switch (token_type) {
@@ -181,20 +179,14 @@ ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini
break;
}
} else if (token_type == T_END_HEREDOC) {
zend_bool has_semicolon=(strchr(token.value.str.val, ';')?1:0);
efree(token.value.str.val);
if (has_semicolon) {
/* the following semicolon was unput(), ignore it */
lex_scan(&token TSRMLS_CC);
}
}
token.type = 0;
}
if (last_color != syntax_highlighter_ini->highlight_html) {
zend_printf("</font>\n");
zend_printf("</span>\n");
}
zend_printf("</font>\n");
zend_printf("</span>\n");
zend_printf("</code>");
}
+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 |
+3 -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 |
@@ -22,7 +22,9 @@
#ifndef ZEND_INDENT_H
#define ZEND_INDENT_H
BEGIN_EXTERN_C()
ZEND_API void zend_indent(void);
END_EXTERN_C()
#endif /* ZEND_INDENT_H */
+2 -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 |
@@ -202,7 +202,7 @@ ZEND_API int zend_alter_ini_entry(char *name, uint name_length, char *new_value,
return FAILURE;
}
if (!(ini_entry->modifyable & modify_type)) {
if (!(ini_entry->modifiable & modify_type)) {
return FAILURE;
}
+36 -36
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,7 +64,7 @@ typedef struct _zend_ini_entry zend_ini_entry;
struct _zend_ini_entry {
int module_number;
int modifyable;
int modifiable;
char *name;
uint name_length;
ZEND_INI_MH((*on_modify));
@@ -82,7 +82,7 @@ struct _zend_ini_entry {
void (*displayer)(zend_ini_entry *ini_entry, int type);
};
BEGIN_EXTERN_C();
BEGIN_EXTERN_C()
ZEND_API int zend_ini_startup(TSRMLS_D);
ZEND_API int zend_ini_shutdown(TSRMLS_D);
ZEND_API int zend_ini_global_shutdown(TSRMLS_D);
@@ -108,49 +108,49 @@ ZEND_API int zend_ini_register_displayer(char *name, uint name_length, void (*di
ZEND_API ZEND_INI_DISP(zend_ini_boolean_displayer_cb);
ZEND_API ZEND_INI_DISP(zend_ini_color_displayer_cb);
ZEND_API ZEND_INI_DISP(display_link_numbers);
END_EXTERN_C();
END_EXTERN_C()
#define ZEND_INI_BEGIN() static zend_ini_entry ini_entries[] = {
#define ZEND_INI_END() { 0, 0, NULL, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, 0, NULL } };
#define ZEND_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, arg1, arg2, arg3, displayer) \
{ 0, modifyable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, displayer },
#define ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, arg1, arg2, arg3, displayer) \
{ 0, modifiable, name, sizeof(name), on_modify, arg1, arg2, arg3, default_value, sizeof(default_value)-1, NULL, 0, 0, displayer },
#define ZEND_INI_ENTRY3(name, default_value, modifyable, on_modify, arg1, arg2, arg3) \
ZEND_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, arg1, arg2, arg3, NULL)
#define ZEND_INI_ENTRY3(name, default_value, modifiable, on_modify, arg1, arg2, arg3) \
ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, arg1, arg2, arg3, NULL)
#define ZEND_INI_ENTRY2_EX(name, default_value, modifyable, on_modify, arg1, arg2, displayer) \
ZEND_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, arg1, arg2, NULL, displayer)
#define ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, displayer) \
ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL, displayer)
#define ZEND_INI_ENTRY2(name, default_value, modifyable, on_modify, arg1, arg2) \
ZEND_INI_ENTRY2_EX(name, default_value, modifyable, on_modify, arg1, arg2, NULL)
#define ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, arg1, arg2) \
ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
#define ZEND_INI_ENTRY1_EX(name, default_value, modifyable, on_modify, arg1, displayer) \
ZEND_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, arg1, NULL, NULL, displayer)
#define ZEND_INI_ENTRY1_EX(name, default_value, modifiable, on_modify, arg1, displayer) \
ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, arg1, NULL, NULL, displayer)
#define ZEND_INI_ENTRY1(name, default_value, modifyable, on_modify, arg1) \
ZEND_INI_ENTRY1_EX(name, default_value, modifyable, on_modify, arg1, NULL)
#define ZEND_INI_ENTRY1(name, default_value, modifiable, on_modify, arg1) \
ZEND_INI_ENTRY1_EX(name, default_value, modifiable, on_modify, arg1, NULL)
#define ZEND_INI_ENTRY_EX(name, default_value, modifyable, on_modify, displayer) \
ZEND_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, NULL, NULL, NULL, displayer)
#define ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, displayer) \
ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, NULL, NULL, NULL, displayer)
#define ZEND_INI_ENTRY(name, default_value, modifyable, on_modify) \
ZEND_INI_ENTRY_EX(name, default_value, modifyable, on_modify, NULL)
#define ZEND_INI_ENTRY(name, default_value, modifiable, on_modify) \
ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, NULL)
#ifdef ZTS
#define STD_ZEND_INI_ENTRY(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY2(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id)
#define STD_ZEND_INI_ENTRY_EX(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr, displayer) \
ZEND_INI_ENTRY2_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id, displayer)
#define STD_ZEND_INI_BOOLEAN(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id, NULL, zend_ini_boolean_displayer_cb)
#define STD_ZEND_INI_ENTRY(name, default_value, modifiable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id)
#define STD_ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, property_name, struct_type, struct_ptr, displayer) \
ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id, displayer)
#define STD_ZEND_INI_BOOLEAN(name, default_value, modifiable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id, NULL, zend_ini_boolean_displayer_cb)
#else
#define STD_ZEND_INI_ENTRY(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY2(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
#define STD_ZEND_INI_ENTRY_EX(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr, displayer) \
ZEND_INI_ENTRY2_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr, displayer)
#define STD_ZEND_INI_BOOLEAN(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr, NULL, zend_ini_boolean_displayer_cb)
#define STD_ZEND_INI_ENTRY(name, default_value, modifiable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
#define STD_ZEND_INI_ENTRY_EX(name, default_value, modifiable, on_modify, property_name, struct_type, struct_ptr, displayer) \
ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr, displayer)
#define STD_ZEND_INI_BOOLEAN(name, default_value, modifiable, on_modify, property_name, struct_type, struct_ptr) \
ZEND_INI_ENTRY3_EX(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr, NULL, zend_ini_boolean_displayer_cb)
#endif
#define INI_INT(name) zend_ini_long((name), sizeof(name), 0)
@@ -172,13 +172,13 @@ END_EXTERN_C();
#define REGISTER_INI_BOOLEAN(name) REGISTER_INI_DISPLAYER(name, zend_ini_boolean_displayer_cb)
/* Standard message handlers */
BEGIN_EXTERN_C();
BEGIN_EXTERN_C()
ZEND_API ZEND_INI_MH(OnUpdateBool);
ZEND_API ZEND_INI_MH(OnUpdateLong);
ZEND_API ZEND_INI_MH(OnUpdateReal);
ZEND_API ZEND_INI_MH(OnUpdateString);
ZEND_API ZEND_INI_MH(OnUpdateStringUnempty);
END_EXTERN_C();
END_EXTERN_C()
#define ZEND_INI_DISPLAY_ORIG 1
#define ZEND_INI_DISPLAY_ACTIVE 2
@@ -191,9 +191,9 @@ END_EXTERN_C();
/* INI parsing engine */
typedef void (*zend_ini_parser_cb_t)(zval *arg1, zval *arg2, int callback_type, void *arg);
BEGIN_EXTERN_C();
BEGIN_EXTERN_C()
int zend_parse_ini_file(zend_file_handle *fh, zend_bool unbuffered_errors, zend_ini_parser_cb_t ini_parser_cb, void *arg);
END_EXTERN_C();
END_EXTERN_C()
#define ZEND_INI_PARSER_ENTRY 1
#define ZEND_INI_PARSER_SECTION 2
+5 -4
View File
@@ -3,7 +3,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2002 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 |
@@ -98,7 +98,8 @@ void zend_ini_get_constant(zval *result, zval *name)
zval z_constant;
TSRMLS_FETCH();
if (zend_get_constant(name->value.str.val, name->value.str.len, &z_constant TSRMLS_CC)) {
if (!memchr(name->value.str.val, ':', name->value.str.len)
&& zend_get_constant(name->value.str.val, name->value.str.len, &z_constant TSRMLS_CC)) {
/* z_constant is emalloc()'d */
convert_to_string(&z_constant);
result->value.str.val = zend_strndup(z_constant.value.str.val, z_constant.value.str.len);
@@ -132,7 +133,7 @@ static void ini_error(char *str)
fprintf(stderr, "PHP: %s", error_buf);
#endif
} else {
zend_error(E_WARNING, error_buf);
zend_error(E_WARNING, "%s", error_buf);
}
efree(error_buf);
}
@@ -213,7 +214,7 @@ string_or_value:
| CFG_TRUE { $$ = $1; }
| CFG_FALSE { $$ = $1; }
| '\n' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; }
| '\0' { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; }
| /* empty */ { $$.value.str.val = strdup(""); $$.value.str.len=0; $$.type = IS_STRING; }
;
expr:
+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
@@ -3,7 +3,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2002 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 |
+440
View File
@@ -0,0 +1,440 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| 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 |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#include "zend.h"
#include "zend_API.h"
#include "zend_interfaces.h"
ZEND_API zend_class_entry *zend_ce_traversable;
ZEND_API zend_class_entry *zend_ce_aggregate;
ZEND_API zend_class_entry *zend_ce_iterator;
ZEND_API zend_class_entry *zend_ce_arrayaccess;
/* {{{ zend_call_method
Only returns the returned zval if retval_ptr != NULL */
ZEND_API zval* zend_call_method(zval **object_pp, zend_class_entry *obj_ce, zend_function **fn_proxy, char *function_name, int function_name_len, zval **retval_ptr_ptr, int param_count, zval* arg1, zval* arg2 TSRMLS_DC)
{
int result;
zend_fcall_info fci;
zval z_fname;
zval *retval;
zval **params[2];
params[0] = &arg1;
params[1] = &arg2;
fci.size = sizeof(fci);
/*fci.function_table = NULL; will be read form zend_class_entry of object if needed */
fci.object_pp = object_pp;
fci.function_name = &z_fname;
fci.retval_ptr_ptr = retval_ptr_ptr ? retval_ptr_ptr : &retval;
fci.param_count = param_count;
fci.params = params;
fci.no_separation = 1;
fci.symbol_table = NULL;
if (!fn_proxy && !obj_ce) {
/* no interest in caching and no information already present that is
* needed later inside zend_call_function. */
ZVAL_STRINGL(&z_fname, function_name, function_name_len, 0);
result = zend_call_function(&fci, NULL TSRMLS_CC);
} else {
zend_fcall_info_cache fcic;
fcic.initialized = 1;
if (!obj_ce) {
obj_ce = Z_OBJCE_PP(object_pp);
}
if (!fn_proxy || !*fn_proxy) {
if (zend_hash_find(&obj_ce->function_table, function_name, function_name_len+1, (void **) &fcic.function_handler) == FAILURE) {
/* error at c-level */
zend_error(E_CORE_ERROR, "Couldn't find implementation for method %s::%s", obj_ce->name, function_name);
}
if (fn_proxy) {
*fn_proxy = fcic.function_handler;
}
} else {
fcic.function_handler = *fn_proxy;
}
fcic.calling_scope = obj_ce;
fcic.object_pp = object_pp;
result = zend_call_function(&fci, &fcic TSRMLS_CC);
}
if (result == FAILURE) {
/* error at c-level */
if (!obj_ce) {
obj_ce = Z_OBJCE_PP(object_pp);
}
zend_error(E_CORE_ERROR, "Couldn't execute method %s::%s", obj_ce->name, function_name);
}
if (!retval_ptr_ptr) {
if (retval) {
zval_ptr_dtor(&retval);
}
return NULL;
}
return *retval_ptr_ptr;
}
/* }}} */
/* iterator interface, c-level functions used by engine */
/* {{{ zend_user_it_new_iterator */
static zval *zend_user_it_new_iterator(zend_class_entry *ce, zval *object TSRMLS_DC)
{
zval *retval;
return zend_call_method_with_0_params(&object, ce, &ce->iterator_funcs.zf_new_iterator, "getiterator", &retval);
}
/* }}} */
/* {{{ zend_user_it_dtor */
ZEND_API void zend_user_it_free_current(zend_object_iterator *_iter TSRMLS_DC)
{
zend_user_iterator *iter = (zend_user_iterator*)_iter;
if (iter->value) {
zval_ptr_dtor(&iter->value);
iter->value = NULL;
}
}
/* }}} */
/* {{{ zend_user_it_dtor */
static void zend_user_it_dtor(zend_object_iterator *_iter TSRMLS_DC)
{
zend_user_iterator *iter = (zend_user_iterator*)_iter;
zval *object = (zval*)iter->it.data;
if (iter->value) {
zval_ptr_dtor(&iter->value);
iter->value = NULL;
}
zval_ptr_dtor(&object);
efree(iter);
}
/* }}} */
/* {{{ zend_user_it_valid */
static int zend_user_it_valid(zend_object_iterator *_iter TSRMLS_DC)
{
if (_iter) {
zend_user_iterator *iter = (zend_user_iterator*)_iter;
zval *object = (zval*)iter->it.data;
zval *more;
int result;
zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_valid, "valid", &more);
if (more) {
result = i_zend_is_true(more);
zval_ptr_dtor(&more);
return result ? SUCCESS : FAILURE;
}
}
return FAILURE;
}
/* }}} */
/* {{{ zend_user_it_get_current_data */
static void zend_user_it_get_current_data(zend_object_iterator *_iter, zval ***data TSRMLS_DC)
{
zend_user_iterator *iter = (zend_user_iterator*)_iter;
zval *object = (zval*)iter->it.data;
if (!iter->value) {
zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_current, "current", &iter->value);
}
*data = &iter->value;
}
/* }}} */
/* {{{ zend_user_it_get_current_key_default */
#if 0
static int zend_user_it_get_current_key_default(zend_object_iterator *_iter, char **str_key, uint *str_key_len, ulong *int_key TSRMLS_DC)
{
*int_key = _iter->index;
return HASH_KEY_IS_LONG;
}
#endif
/* }}} */
/* {{{ zend_user_it_get_current_key */
static int zend_user_it_get_current_key(zend_object_iterator *_iter, char **str_key, uint *str_key_len, ulong *int_key TSRMLS_DC)
{
zend_user_iterator *iter = (zend_user_iterator*)_iter;
zval *object = (zval*)iter->it.data;
zval *retval;
zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_key, "key", &retval);
switch (retval->type) {
default:
zend_error(E_WARNING, "Illegal type returned from %s::key()", iter->ce->name);
case IS_NULL:
*str_key = "";
*str_key_len = 0;
*int_key = 0;
zval_ptr_dtor(&retval);
return HASH_KEY_IS_LONG;
case IS_STRING:
*str_key = estrndup(retval->value.str.val, retval->value.str.len);
*str_key_len = retval->value.str.len+1;
*int_key = 0;
zval_ptr_dtor(&retval);
return HASH_KEY_IS_STRING;
case IS_DOUBLE:
case IS_RESOURCE:
case IS_BOOL:
case IS_LONG: {
if (retval->type == IS_DOUBLE) {
*int_key = (long)retval->value.dval;
} else {
*int_key = retval->value.lval;
}
}
zval_ptr_dtor(&retval);
return HASH_KEY_IS_LONG;
}
}
/* }}} */
/* {{{ zend_user_it_move_forward */
static void zend_user_it_move_forward(zend_object_iterator *_iter TSRMLS_DC)
{
zend_user_iterator *iter = (zend_user_iterator*)_iter;
zval *object = (zval*)iter->it.data;
if (iter->value) {
zval_ptr_dtor(&iter->value);
iter->value = NULL;
}
zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_next, "next", NULL);
}
/* }}} */
/* {{{ zend_user_it_rewind */
static void zend_user_it_rewind(zend_object_iterator *_iter TSRMLS_DC)
{
zend_user_iterator *iter = (zend_user_iterator*)_iter;
zval *object = (zval*)iter->it.data;
zend_call_method_with_0_params(&object, iter->ce, &iter->ce->iterator_funcs.zf_rewind, "rewind", NULL);
}
/* }}} */
zend_object_iterator_funcs zend_interface_iterator_funcs_iterator = {
zend_user_it_dtor,
zend_user_it_valid,
zend_user_it_get_current_data,
zend_user_it_get_current_key,
zend_user_it_move_forward,
zend_user_it_rewind
};
/* {{{ zend_user_it_get_iterator */
static zend_object_iterator *zend_user_it_get_iterator(zend_class_entry *ce, zval *object TSRMLS_DC)
{
zend_user_iterator *iterator = emalloc(sizeof(zend_user_iterator));
object->refcount++;
iterator->it.data = (void*)object;
iterator->it.funcs = ce->iterator_funcs.funcs;
iterator->ce = Z_OBJCE_P(object);
iterator->value = NULL;
return (zend_object_iterator*)iterator;
}
/* }}} */
/* {{{ zend_user_it_get_new_iterator */
static zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce, zval *object TSRMLS_DC)
{
zval *iterator = zend_user_it_new_iterator(ce, object TSRMLS_CC);
zend_object_iterator *new_iterator;
zend_class_entry *ce_it = Z_TYPE_P(iterator) == IS_OBJECT ? Z_OBJCE_P(iterator) : NULL;
if (!ce || !ce_it || !ce_it->get_iterator) {
zend_error(E_WARNING, "Objects returned by %s::getIterator() must be traversable or implement interface Iterator", ce->name);
zval_ptr_dtor(&iterator);
return NULL;
}
new_iterator = ce_it->get_iterator(ce_it, iterator TSRMLS_CC);
zval_ptr_dtor(&iterator);
return new_iterator;
}
/* }}} */
/* {{{ zend_implement_traversable */
static int zend_implement_traversable(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
{
/* check that class_type is traversable at c-level or implements at least one of 'aggregate' and 'Iterator' */
int i;
if (class_type->get_iterator || (class_type->parent && class_type->parent->get_iterator)) {
return SUCCESS;
}
for (i = 0; i < class_type->num_interfaces; i++) {
if (class_type->interfaces[i] == zend_ce_aggregate || class_type->interfaces[i] == zend_ce_iterator) {
return SUCCESS;
}
}
zend_error(E_CORE_ERROR, "Class %s must implement interface %s as part of either %s or %s",
class_type->name,
zend_ce_traversable->name,
zend_ce_iterator->name,
zend_ce_aggregate->name);
return FAILURE;
}
/* }}} */
/* {{{ zend_implement_aggregate */
static int zend_implement_aggregate(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
{
if (class_type->get_iterator) {
if (class_type->type == ZEND_INTERNAL_CLASS) {
/* inheritance ensures the class has necessary userland methods */
return SUCCESS;
} else if (class_type->get_iterator != zend_user_it_get_new_iterator) {
/* c-level get_iterator cannot be changed */
return FAILURE;
}
}
class_type->iterator_funcs.zf_new_iterator = NULL;
class_type->get_iterator = zend_user_it_get_new_iterator;
return SUCCESS;
}
/* }}} */
/* {{{ zend_implement_iterator */
static int zend_implement_iterator(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
{
if (class_type->get_iterator && class_type->get_iterator != zend_user_it_get_iterator) {
if (class_type->type == ZEND_INTERNAL_CLASS) {
/* inheritance ensures the class has the necessary userland methods */
return SUCCESS;
} else if (class_type->get_iterator != zend_user_it_get_new_iterator) {
/* c-level get_iterator cannot be changed */
return FAILURE;
}
}
class_type->get_iterator = zend_user_it_get_iterator;
class_type->iterator_funcs.zf_valid = NULL;
class_type->iterator_funcs.zf_current = NULL;
class_type->iterator_funcs.zf_key = NULL;
class_type->iterator_funcs.zf_next = NULL;
class_type->iterator_funcs.zf_rewind = NULL;
if (!class_type->iterator_funcs.funcs) {
class_type->iterator_funcs.funcs = &zend_interface_iterator_funcs_iterator;
}
return SUCCESS;
}
/* }}} */
/* {{{ zend_implement_arrayaccess */
static int zend_implement_arrayaccess(zend_class_entry *interface, zend_class_entry *class_type TSRMLS_DC)
{
#if 0
/* get ht from ce */
if (ht->read_dimension != zend_std_read_dimension
|| ht->write_dimension != zend_std_write_dimension
|| ht->has_dimension != zend_std_has_dimension
|| ht->unset_dimension != zend_std_unset_dimension) {
return FAILURE;
}
#endif
return SUCCESS;
}
/* }}}*/
/* {{{ function tables */
zend_function_entry zend_funcs_aggregate[] = {
ZEND_ABSTRACT_ME(iterator, getIterator, NULL)
{NULL, NULL, NULL}
};
zend_function_entry zend_funcs_iterator[] = {
ZEND_ABSTRACT_ME(iterator, current, NULL)
ZEND_ABSTRACT_ME(iterator, next, NULL)
ZEND_ABSTRACT_ME(iterator, key, NULL)
ZEND_ABSTRACT_ME(iterator, valid, NULL)
ZEND_ABSTRACT_ME(iterator, rewind, NULL)
{NULL, NULL, NULL}
};
zend_function_entry *zend_funcs_traversable = NULL;
static
ZEND_BEGIN_ARG_INFO(arginfo_arrayaccess_offset, 0)
ZEND_ARG_INFO(0, offset)
ZEND_END_ARG_INFO();
static
ZEND_BEGIN_ARG_INFO(arginfo_arrayaccess_offset_value, 0)
ZEND_ARG_INFO(0, offset)
ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO();
zend_function_entry zend_funcs_arrayaccess[] = {
ZEND_ABSTRACT_ME(arrayaccess, offsetExists, arginfo_arrayaccess_offset)
ZEND_ABSTRACT_ME(arrayaccess, offsetGet, arginfo_arrayaccess_offset)
ZEND_ABSTRACT_ME(arrayaccess, offsetSet, arginfo_arrayaccess_offset_value)
ZEND_ABSTRACT_ME(arrayaccess, offsetUnset, arginfo_arrayaccess_offset)
{NULL, NULL, NULL}
};
/* }}} */
#define REGISTER_ITERATOR_INTERFACE(class_name, class_name_str) \
{\
zend_class_entry ce;\
INIT_CLASS_ENTRY(ce, # class_name_str, zend_funcs_ ## class_name) \
zend_ce_ ## class_name = zend_register_internal_interface(&ce TSRMLS_CC);\
zend_ce_ ## class_name->interface_gets_implemented = zend_implement_ ## class_name;\
}
#define REGISTER_ITERATOR_IMPLEMENT(class_name, interface_name) \
zend_class_implements(zend_ce_ ## class_name TSRMLS_CC, 1, zend_ce_ ## interface_name)
/* {{{ zend_register_interfaces */
ZEND_API void zend_register_interfaces(TSRMLS_D)
{
REGISTER_ITERATOR_INTERFACE(traversable, Traversable);
REGISTER_ITERATOR_INTERFACE(aggregate, IteratorAggregate);
REGISTER_ITERATOR_IMPLEMENT(aggregate, traversable);
REGISTER_ITERATOR_INTERFACE(iterator, Iterator);
REGISTER_ITERATOR_IMPLEMENT(iterator, traversable);
REGISTER_ITERATOR_INTERFACE(arrayaccess, ArrayAccess);
}
/* }}} */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: t
* End:
*/
+65
View File
@@ -0,0 +1,65 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| 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 |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifndef ZEND_INTERFACES_H
#define ZEND_INTERFACES_H
#include "zend.h"
#include "zend_API.h"
BEGIN_EXTERN_C()
extern ZEND_API zend_class_entry *zend_ce_traversable;
extern ZEND_API zend_class_entry *zend_ce_aggregate;
extern ZEND_API zend_class_entry *zend_ce_iterator;
extern ZEND_API zend_class_entry *zend_ce_arrayaccess;
typedef struct _zend_user_iterator {
zend_object_iterator it;
zend_class_entry *ce;
zval *value;
} zend_user_iterator;
ZEND_API void zend_user_it_free_current(zend_object_iterator *_iter TSRMLS_DC);
ZEND_API zval* zend_call_method(zval **object_pp, zend_class_entry *obj_ce, zend_function **fn_proxy, char *function_name, int function_name_len, zval **retval_ptr_ptr, int param_count, zval* arg1, zval* arg2 TSRMLS_DC);
#define zend_call_method_with_0_params(obj, obj_ce, fn_proxy, function_name, retval) \
zend_call_method(obj, obj_ce, fn_proxy, function_name, sizeof(function_name)-1, retval, 0, NULL, NULL TSRMLS_CC)
#define zend_call_method_with_1_params(obj, obj_ce, fn_proxy, function_name, retval, arg1) \
zend_call_method(obj, obj_ce, fn_proxy, function_name, sizeof(function_name)-1, retval, 1, arg1, NULL TSRMLS_CC)
#define zend_call_method_with_2_params(obj, obj_ce, fn_proxy, function_name, retval, arg1, arg2) \
zend_call_method(obj, obj_ce, fn_proxy, function_name, sizeof(function_name)-1, retval, 2, arg1, arg2 TSRMLS_CC)
ZEND_API void zend_register_interfaces(TSRMLS_D);
END_EXTERN_C()
#endif /* ZEND_INTERFACES_H */
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: t
* End:
*/
+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 |
+107
View File
@@ -0,0 +1,107 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| 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 |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Wez Furlong <wez@thebrainroom.com> |
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#include "zend.h"
#include "zend_API.h"
static zend_class_entry zend_iterator_class_entry;
static zend_object_handlers iterator_object_handlers = {
ZEND_OBJECTS_STORE_HANDLERS,
NULL, /* prop read */
NULL, /* prop write */
NULL, /* read dim */
NULL, /* write dim */
NULL,
NULL, /* get */
NULL, /* set */
NULL, /* has prop */
NULL, /* unset prop */
NULL, /* has dim */
NULL, /* unset dim */
NULL, /* props get */
NULL, /* method get */
NULL, /* call */
NULL, /* get ctor */
NULL, /* get_ce */
NULL, /* get class name */
NULL, /* compare */
NULL /* cast */
};
ZEND_API void zend_register_iterator_wrapper(TSRMLS_D)
{
INIT_CLASS_ENTRY(zend_iterator_class_entry, "__iterator_wrapper", NULL);
free(zend_iterator_class_entry.name);
zend_iterator_class_entry.name = "__iterator_wrapper";
}
static void iter_wrapper_dtor(void *object, zend_object_handle handle TSRMLS_DC)
{
zend_object_iterator *iter = (zend_object_iterator*)object;
iter->funcs->dtor(iter TSRMLS_CC);
}
ZEND_API zval *zend_iterator_wrap(zend_object_iterator *iter TSRMLS_DC)
{
zval *wrapped;
MAKE_STD_ZVAL(wrapped);
Z_TYPE_P(wrapped) = IS_OBJECT;
wrapped->value.obj.handle = zend_objects_store_put(iter, iter_wrapper_dtor, NULL, NULL TSRMLS_CC);
wrapped->value.obj.handlers = &iterator_object_handlers;
return wrapped;
}
ZEND_API enum zend_object_iterator_kind zend_iterator_unwrap(
zval *array_ptr, zend_object_iterator **iter TSRMLS_DC)
{
switch (Z_TYPE_P(array_ptr)) {
case IS_OBJECT:
if (Z_OBJ_HT_P(array_ptr) == &iterator_object_handlers) {
*iter = (zend_object_iterator *)zend_object_store_get_object(array_ptr TSRMLS_CC);
return ZEND_ITER_OBJECT;
}
if (HASH_OF(array_ptr)) {
return ZEND_ITER_PLAIN_OBJECT;
}
return ZEND_ITER_INVALID;
case IS_ARRAY:
if (HASH_OF(array_ptr)) {
return ZEND_ITER_PLAIN_ARRAY;
}
return ZEND_ITER_INVALID;
default:
return ZEND_ITER_INVALID;
}
}
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: t
* End:
*/
+93
View File
@@ -0,0 +1,93 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| 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 |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Wez Furlong <wez@thebrainroom.com> |
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
/* These iterators were designed to operate within the foreach()
* structures provided by the engine, but could be extended for use
* with other iterative engine opcodes.
* These methods have similar semantics to the zend_hash API functions
* with similar names.
* */
typedef struct _zend_object_iterator zend_object_iterator;
typedef struct _zend_object_iterator_funcs {
/* release all resources associated with this iterator instance */
void (*dtor)(zend_object_iterator *iter TSRMLS_DC);
/* check for end of iteration (FAILURE or SUCCESS if data is valid) */
int (*valid)(zend_object_iterator *iter TSRMLS_DC);
/* fetch the item data for the current element */
void (*get_current_data)(zend_object_iterator *iter, zval ***data TSRMLS_DC);
/* fetch the key for the current element (return HASH_KEY_IS_STRING or HASH_KEY_IS_LONG) (optional, may be NULL) */
int (*get_current_key)(zend_object_iterator *iter, char **str_key, uint *str_key_len, ulong *int_key TSRMLS_DC);
/* step forwards to next element */
void (*move_forward)(zend_object_iterator *iter TSRMLS_DC);
/* rewind to start of data (optional, may be NULL) */
void (*rewind)(zend_object_iterator *iter TSRMLS_DC);
} zend_object_iterator_funcs;
struct _zend_object_iterator {
void *data;
zend_object_iterator_funcs *funcs;
ulong index; /* private to fe_reset/fe_fetch opcodes */
};
typedef zval *(*zend_object_new_iterator_t)(zend_class_entry *ce, zval *object TSRMLS_DC);
typedef struct _zend_class_iterator_funcs {
zend_object_iterator_funcs *funcs;
zend_object_new_iterator_t new_iterator;
union _zend_function *zf_new_iterator;
union _zend_function *zf_valid;
union _zend_function *zf_current;
union _zend_function *zf_key;
union _zend_function *zf_next;
union _zend_function *zf_rewind;
} zend_class_iterator_funcs;
enum zend_object_iterator_kind {
ZEND_ITER_INVALID,
ZEND_ITER_PLAIN_ARRAY,
ZEND_ITER_PLAIN_OBJECT,
ZEND_ITER_OBJECT
};
BEGIN_EXTERN_C()
/* given a zval, returns stuff that can be used to iterate it. */
ZEND_API enum zend_object_iterator_kind zend_iterator_unwrap(zval *array_ptr, zend_object_iterator **iter TSRMLS_DC);
/* given an iterator, wrap it up as a zval for use by the engine opcodes */
ZEND_API zval *zend_iterator_wrap(zend_object_iterator *iter TSRMLS_DC);
ZEND_API void zend_register_iterator_wrapper(TSRMLS_D);
END_EXTERN_C()
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: t
* End:
*/
+49 -53
View File
@@ -3,7 +3,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2002 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 |
@@ -67,9 +67,11 @@
%left T_SL T_SR
%left '+' '-' '.'
%left '*' '/' '%'
%right '!' '~' T_INC T_DEC T_INT_CAST T_DOUBLE_CAST T_STRING_CAST T_ARRAY_CAST T_OBJECT_CAST T_BOOL_CAST T_UNSET_CAST '@'
%right '!'
%nonassoc T_INSTANCEOF
%right '~' T_INC T_DEC T_INT_CAST T_DOUBLE_CAST T_STRING_CAST T_ARRAY_CAST T_OBJECT_CAST T_BOOL_CAST T_UNSET_CAST '@'
%right '['
%nonassoc T_NEW T_INSTANCEOF
%nonassoc T_NEW T_CLONE
%token T_EXIT
%token T_IF
%left T_ELSEIF
@@ -96,7 +98,6 @@
%token T_ENDFOREACH
%token T_DECLARE
%token T_ENDDECLARE
%token T_INSTANCEOF
%token T_AS
%token T_SWITCH
%token T_ENDSWITCH
@@ -126,6 +127,7 @@
%token T_LIST
%token T_ARRAY
%token T_CLASS_C
%token T_METHOD_C
%token T_FUNC_C
%token T_LINE
%token T_FILE
@@ -156,7 +158,7 @@ top_statement_list:
top_statement:
statement
| function_declaration_statement { zend_do_early_binding(TSRMLS_C); }
| class_declaration_statement
| class_declaration_statement { zend_do_early_binding(TSRMLS_C); }
;
@@ -212,20 +214,28 @@ unticked_statement:
| T_DECLARE { $1.u.opline_num = get_next_op_number(CG(active_op_array)); zend_do_declare_begin(TSRMLS_C); } '(' declare_list ')' declare_statement { zend_do_declare_end(&$1 TSRMLS_CC); }
| ';' /* empty statement */
| T_TRY { zend_do_try(&$1 TSRMLS_CC); } '{' inner_statement_list '}'
T_CATCH '(' fully_qualified_class_name T_VARIABLE ')' { zend_do_begin_catch(&$1, &$8, &$9, 1 TSRMLS_CC); } '{' inner_statement_list '}' { zend_do_end_catch(&$1 TSRMLS_CC); }
additional_catches
T_CATCH '(' { zend_initialize_try_catch_element(&$1 TSRMLS_CC); }
fully_qualified_class_name { zend_do_first_catch(&$7 TSRMLS_CC); }
T_VARIABLE ')' { zend_do_begin_catch(&$1, &$9, &$11, 1 TSRMLS_CC); }
'{' inner_statement_list '}' { zend_do_end_catch(&$1 TSRMLS_CC); }
additional_catches { zend_do_mark_last_catch(&$7, &$18 TSRMLS_CC); }
| T_THROW expr ';' { zend_do_throw(&$2 TSRMLS_CC); }
;
additional_catches:
non_empty_additional_catches
| /* empty */
non_empty_additional_catches { $$ = $1; }
| /* empty */ { $$.u.opline_num = -1; }
;
non_empty_additional_catches:
non_empty_additional_catches T_CATCH '(' fully_qualified_class_name T_VARIABLE ')' { zend_do_begin_catch(&$2, &$4, &$5, 0 TSRMLS_CC); } '{' inner_statement_list '}' { zend_do_end_catch(&$2 TSRMLS_CC); }
| T_CATCH '(' fully_qualified_class_name T_VARIABLE ')' { zend_do_begin_catch(&$1, &$3, &$4, 0 TSRMLS_CC); } '{' inner_statement_list '}' { zend_do_end_catch(&$1 TSRMLS_CC); }
additional_catch { $$ = $1; }
| non_empty_additional_catches additional_catch { $$ = $2; }
;
additional_catch:
T_CATCH '(' fully_qualified_class_name { $$.u.opline_num = get_next_op_number(CG(active_op_array)); } T_VARIABLE ')' { zend_do_begin_catch(&$1, &$3, &$5, 0 TSRMLS_CC); } '{' inner_statement_list '}' { zend_do_end_catch(&$1 TSRMLS_CC); }
;
@@ -271,14 +281,19 @@ unticked_class_declaration_statement:
'{'
class_statement_list
'}' { zend_do_end_class_declaration(&$1, &$2 TSRMLS_CC); }
| interface_entry T_STRING
{ zend_do_begin_class_declaration(&$1, &$2, NULL TSRMLS_CC); }
interface_extends_list
'{'
class_statement_list
'}' { zend_do_end_class_declaration(&$1, &$2 TSRMLS_CC); }
;
class_entry_type:
T_CLASS { $$.u.constant.value.lval = 0; }
| T_ABSTRACT T_CLASS { $$.u.constant.value.lval = ZEND_ACC_ABSTRACT_CLASS; }
| T_ABSTRACT T_CLASS { $$.u.constant.value.lval = ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; }
| T_FINAL T_CLASS { $$.u.constant.value.lval = ZEND_ACC_FINAL_CLASS; }
| T_INTERFACE { $$.u.constant.value.lval = ZEND_ACC_INTERFACE; }
;
extends_from:
@@ -286,6 +301,15 @@ extends_from:
| T_EXTENDS fully_qualified_class_name { $$ = $2; }
;
interface_entry:
T_INTERFACE { $$.u.constant.value.lval = ZEND_ACC_INTERFACE; }
;
interface_extends_list:
/* empty */
| T_EXTENDS interface_list
;
implements_list:
/* empty */
| T_IMPLEMENTS interface_list
@@ -393,12 +417,10 @@ non_empty_parameter_list:
optional_class_type T_VARIABLE { znode tmp; fetch_simple_variable(&tmp, &$2, 0 TSRMLS_CC); $$.op_type = IS_CONST; $$.u.constant.value.lval=1; $$.u.constant.type=IS_LONG; INIT_PZVAL(&$$.u.constant); zend_do_receive_arg(ZEND_RECV, &tmp, &$$, NULL, &$1, &$2, 0 TSRMLS_CC); }
| optional_class_type '&' T_VARIABLE { znode tmp; fetch_simple_variable(&tmp, &$3, 0 TSRMLS_CC); $$.op_type = IS_CONST; $$.u.constant.value.lval=1; $$.u.constant.type=IS_LONG; INIT_PZVAL(&$$.u.constant); zend_do_receive_arg(ZEND_RECV, &tmp, &$$, NULL, &$1, &$3, 1 TSRMLS_CC); }
| optional_class_type '&' T_VARIABLE '=' static_scalar { znode tmp; fetch_simple_variable(&tmp, &$3, 0 TSRMLS_CC); $$.op_type = IS_CONST; $$.u.constant.value.lval=1; $$.u.constant.type=IS_LONG; INIT_PZVAL(&$$.u.constant); zend_do_receive_arg(ZEND_RECV_INIT, &tmp, &$$, &$5, &$1, &$3, 1 TSRMLS_CC); }
| T_CONST optional_class_type T_VARIABLE { znode tmp; fetch_simple_variable(&tmp, &$3, 0 TSRMLS_CC); $$.op_type = IS_CONST; $$.u.constant.value.lval=1; $$.u.constant.type=IS_LONG; INIT_PZVAL(&$$.u.constant); zend_do_receive_arg(ZEND_RECV, &tmp, &$$, NULL, &$2, &$3, 0 TSRMLS_CC); }
| optional_class_type T_VARIABLE '=' static_scalar { znode tmp; fetch_simple_variable(&tmp, &$2, 0 TSRMLS_CC); $$.op_type = IS_CONST; $$.u.constant.value.lval=1; $$.u.constant.type=IS_LONG; INIT_PZVAL(&$$.u.constant); zend_do_receive_arg(ZEND_RECV_INIT, &tmp, &$$, &$4, &$1, &$2, 0 TSRMLS_CC); }
| non_empty_parameter_list ',' optional_class_type T_VARIABLE { znode tmp; fetch_simple_variable(&tmp, &$4, 0 TSRMLS_CC); $$=$1; $$.u.constant.value.lval++; zend_do_receive_arg(ZEND_RECV, &tmp, &$$, NULL, &$3, &$4, 0 TSRMLS_CC); }
| non_empty_parameter_list ',' optional_class_type '&' T_VARIABLE { znode tmp; fetch_simple_variable(&tmp, &$5, 0 TSRMLS_CC); $$=$1; $$.u.constant.value.lval++; zend_do_receive_arg(ZEND_RECV, &tmp, &$$, NULL, &$3, &$5, 1 TSRMLS_CC); }
| non_empty_parameter_list ',' optional_class_type '&' T_VARIABLE '=' static_scalar { znode tmp; fetch_simple_variable(&tmp, &$5, 0 TSRMLS_CC); $$=$1; $$.u.constant.value.lval++; zend_do_receive_arg(ZEND_RECV_INIT, &tmp, &$$, &$7, &$3, &$5, 1 TSRMLS_CC); }
| non_empty_parameter_list ',' T_CONST optional_class_type T_VARIABLE { znode tmp; fetch_simple_variable(&tmp, &$5, 0 TSRMLS_CC); $$=$1; $$.u.constant.value.lval++; zend_do_receive_arg(ZEND_RECV, &tmp, &$$, NULL, &$4, &$5, 0 TSRMLS_CC); }
| non_empty_parameter_list ',' optional_class_type T_VARIABLE '=' static_scalar { znode tmp; fetch_simple_variable(&tmp, &$4, 0 TSRMLS_CC); $$=$1; $$.u.constant.value.lval++; zend_do_receive_arg(ZEND_RECV_INIT, &tmp, &$$, &$6, &$3, &$4, 0 TSRMLS_CC); }
;
@@ -467,7 +489,7 @@ method_body:
variable_modifiers:
non_empty_member_modifiers { $$ = $1; }
| T_VAR { $$.u.constant.value.lval = ZEND_ACC_PUBLIC; }
| T_VAR { zend_error(E_STRICT, "var: Deprecated. Please use the public/private/protected modifiers"); $$.u.constant.value.lval = ZEND_ACC_PUBLIC; }
;
method_modifiers:
@@ -497,8 +519,8 @@ class_variable_declaration:
;
class_constant_declaration:
class_constant_declaration ',' T_STRING '=' const_scalar_expr { zend_do_declare_class_constant(&$3, &$5 TSRMLS_CC); }
| T_CONST T_STRING '=' const_scalar_expr { zend_do_declare_class_constant(&$2, &$4 TSRMLS_CC); }
class_constant_declaration ',' T_STRING '=' static_scalar { zend_do_declare_class_constant(&$3, &$5 TSRMLS_CC); }
| T_CONST T_STRING '=' static_scalar { zend_do_declare_class_constant(&$2, &$4 TSRMLS_CC); }
;
echo_expr_list:
@@ -520,9 +542,10 @@ non_empty_for_expr:
expr_without_variable:
T_LIST '(' { zend_do_list_init(TSRMLS_C); } assignment_list ')' '=' expr { zend_do_list_end(&$$, &$7 TSRMLS_CC); }
| variable '=' expr { zend_check_writable_variable(&$1); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_assign(&$$, &$1, &$3 TSRMLS_CC); }
| variable '=' '&' variable { zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_assign_ref(&$$, &$1, &$4 TSRMLS_CC); }
| variable '=' '&' T_NEW class_name_reference { zend_check_writable_variable(&$1); zend_do_extended_fcall_begin(TSRMLS_C); zend_do_begin_new_object(&$4, &$5 TSRMLS_CC); } ctor_arguments { zend_do_end_new_object(&$3, &$4, &$7 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_assign_ref(&$$, &$1, &$3 TSRMLS_CC); }
| variable '=' '&' variable { zend_check_writable_variable(&$1); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_assign_ref(&$$, &$1, &$4 TSRMLS_CC); }
| variable '=' '&' T_NEW class_name_reference { zend_error(E_STRICT, "Assigning the return value of new by reference is deprecated"); zend_check_writable_variable(&$1); zend_do_extended_fcall_begin(TSRMLS_C); zend_do_begin_new_object(&$4, &$5 TSRMLS_CC); } ctor_arguments { zend_do_end_new_object(&$3, &$4, &$7 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C); zend_do_end_variable_parse(BP_VAR_W, 0 TSRMLS_CC); zend_do_assign_ref(&$$, &$1, &$3 TSRMLS_CC); }
| T_NEW class_name_reference { zend_do_extended_fcall_begin(TSRMLS_C); zend_do_begin_new_object(&$1, &$2 TSRMLS_CC); } ctor_arguments { zend_do_end_new_object(&$$, &$1, &$4 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C);}
| T_CLONE expr { zend_do_clone(&$$, &$2 TSRMLS_CC); }
| variable T_PLUS_EQUAL expr { zend_check_writable_variable(&$1); zend_do_end_variable_parse(BP_VAR_RW, 0 TSRMLS_CC); zend_do_binary_assign_op(ZEND_ASSIGN_ADD, &$$, &$1, &$3 TSRMLS_CC); }
| variable T_MINUS_EQUAL expr { zend_check_writable_variable(&$1); zend_do_end_variable_parse(BP_VAR_RW, 0 TSRMLS_CC); zend_do_binary_assign_op(ZEND_ASSIGN_SUB, &$$, &$1, &$3 TSRMLS_CC); }
| variable T_MUL_EQUAL expr { zend_check_writable_variable(&$1); zend_do_end_variable_parse(BP_VAR_RW, 0 TSRMLS_CC); zend_do_binary_assign_op(ZEND_ASSIGN_MUL, &$$, &$1, &$3 TSRMLS_CC); }
@@ -592,8 +615,11 @@ function_call:
function_call_parameter_list
')' { zend_do_end_function_call(&$1, &$$, &$4, 0, $2.u.opline_num TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C); }
| class_constant '(' { zend_do_begin_class_member_function_call(TSRMLS_C); zend_do_extended_fcall_begin(TSRMLS_C); }
function_call_parameter_list
')' { zend_do_end_function_call(NULL, &$$, &$4, 1, 1 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C);}
function_call_parameter_list
')' { zend_do_end_function_call(NULL, &$$, &$4, 1, 1 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C);}
| static_member '(' { zend_do_end_variable_parse(BP_VAR_R, 0 TSRMLS_CC); zend_do_begin_class_member_function_call(TSRMLS_C); zend_do_extended_fcall_begin(TSRMLS_C); }
function_call_parameter_list
')' { zend_do_end_function_call(NULL, &$$, &$4, 1, 1 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C);}
| variable_without_objects '(' { zend_do_end_variable_parse(BP_VAR_R, 0 TSRMLS_CC); zend_do_begin_dynamic_function_call(&$1 TSRMLS_CC); }
function_call_parameter_list ')'
{ zend_do_end_function_call(&$1, &$$, &$4, 0, 1 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C);}
@@ -647,41 +673,11 @@ common_scalar:
| T_LINE { $$ = $1; }
| T_FILE { $$ = $1; }
| T_CLASS_C { $$ = $1; }
| T_METHOD_C { $$ = $1; }
| T_FUNC_C { $$ = $1; }
;
const_scalar_expr: /* compile-time evaluated scalar expressions */
const_scalar { $$ = $1; }
| const_scalar_expr_list { $$ = $1; }
;
const_scalar_expr_list:
const_scalar_expr T_SL const_scalar_expr { zend_do_fold_binary_op(ZEND_SL, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr T_SR const_scalar_expr { zend_do_fold_binary_op(ZEND_SR, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr T_LOGICAL_XOR const_scalar_expr { zend_do_fold_binary_op(ZEND_BOOL_XOR, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '|' const_scalar_expr { zend_do_fold_binary_op(ZEND_BW_OR, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '&' const_scalar_expr { zend_do_fold_binary_op(ZEND_BW_AND, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '^' const_scalar_expr { zend_do_fold_binary_op(ZEND_BW_XOR, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '.' const_scalar_expr { zend_do_fold_binary_op(ZEND_CONCAT, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '+' const_scalar_expr { zend_do_fold_binary_op(ZEND_ADD, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '-' const_scalar_expr { zend_do_fold_binary_op(ZEND_SUB, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '*' const_scalar_expr { zend_do_fold_binary_op(ZEND_MUL, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '/' const_scalar_expr { zend_do_fold_binary_op(ZEND_DIV, &$$, &$1, &$3 TSRMLS_CC); }
| const_scalar_expr '%' const_scalar_expr { zend_do_fold_binary_op(ZEND_MOD, &$$, &$1, &$3 TSRMLS_CC); }
| '~' const_scalar_expr { zend_do_fold_binary_op(ZEND_BW_NOT, &$$, &$2, NULL TSRMLS_CC); }
| '(' const_scalar_expr ')' { $$ = $2; }
;
const_scalar:
common_scalar { $$ = $1; }
| T_STRING { zend_do_fold_constant(&$$, &$1 TSRMLS_CC); }
| '+' const_scalar { $$ = $2; }
| '-' const_scalar { zval minus_one; minus_one.type = IS_LONG; minus_one.value.lval = -1; mul_function(&$2.u.constant, &$2.u.constant, &minus_one TSRMLS_CC); $$ = $2; }
| T_ARRAY '(' static_array_pair_list ')' { $$ = $3; $$.u.constant.type = IS_CONSTANT_ARRAY; }
| static_class_constant { $$ = $1; }
;
static_scalar: /* compile-time evaluated scalars */
common_scalar { $$ = $1; }
| T_STRING { zend_do_fetch_constant(&$$, NULL, &$1, ZEND_CT TSRMLS_CC); }
+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 |
@@ -53,6 +53,7 @@ int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2);
ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state TSRMLS_DC);
ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC);
END_EXTERN_C()
#endif
+19 -28
View File
@@ -4,7 +4,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2002 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 |
@@ -178,7 +178,6 @@ ZEND_API void zend_save_lexical_state(zend_lex_state *lex_state TSRMLS_DC)
#endif /* ZEND_MULTIBYTE */
}
ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state TSRMLS_DC)
{
YY_BUFFER_STATE original_buffer_state = YY_CURRENT_BUFFER;
@@ -196,6 +195,14 @@ ZEND_API void zend_restore_lexical_state(zend_lex_state *lex_state TSRMLS_DC)
zend_restore_compiled_filename(lex_state->filename TSRMLS_CC);
#ifdef ZEND_MULTIBYTE
if (SCNG(script_org)) {
efree(SCNG(script_org));
SCNG(script_org) = NULL;
}
if (SCNG(script_filtered)) {
efree(SCNG(script_filtered));
SCNG(script_filtered) = NULL;
}
SCNG(script_org) = lex_state->script_org;
SCNG(script_org_size) = lex_state->script_org_size;
SCNG(script_filtered) = lex_state->script_filtered;
@@ -366,23 +373,12 @@ ZEND_API zend_op_array *compile_file(zend_file_handle *file_handle, int type TSR
CG(active_op_array) = op_array;
compiler_result = zendparse(TSRMLS_C);
zend_do_return(&retval_znode, 0 TSRMLS_CC);
zend_do_handle_exception(TSRMLS_C);
CG(in_compilation) = original_in_compilation;
if (compiler_result==1) { /* parser error */
CG(unclean_shutdown) = 1;
retval = NULL;
zend_bailout();
}
compilation_successful=1;
#ifdef ZEND_MULTIBYTE
if (SCNG(script_org)) {
efree(SCNG(script_org));
SCNG(script_org) = NULL;
}
if (SCNG(script_filtered)) {
efree(SCNG(script_filtered));
SCNG(script_filtered) = NULL;
}
#endif /* ZEND_MULTIBYTE */
}
if (retval) {
@@ -530,6 +526,7 @@ zend_op_array *compile_string(zval *source_string, char *filename TSRMLS_DC)
retval = NULL;
} else {
zend_do_return(NULL, 0 TSRMLS_CC);
zend_do_handle_exception(TSRMLS_C);
CG(active_op_array) = original_active_op_array;
pass_two(op_array TSRMLS_CC);
retval = op_array;
@@ -929,6 +926,10 @@ NEWLINE ("\r"|"\n"|"\r\n")
return T_NEW;
}
<ST_IN_SCRIPTING>"clone" {
return T_CLONE;
}
<ST_IN_SCRIPTING>"var" {
return T_VAR;
}
@@ -1281,7 +1282,7 @@ NEWLINE ("\r"|"\n"|"\r\n")
);
zendlval->value.str.len = strlen(zendlval->value.str.val);
zendlval->type = IS_STRING;
return T_CLASS_C;
return T_METHOD_C;
}
<ST_IN_SCRIPTING>"__LINE__" {
@@ -1381,16 +1382,6 @@ NEWLINE ("\r"|"\n"|"\r\n")
return T_OPEN_TAG;
}
<INITIAL>"<?php_track_vars?>"{NEWLINE}? {
zend_error(E_WARNING, "&lt;?php_track_vars?&gt; is no longer supported - please use the track_vars INI directive instead");
HANDLE_NEWLINE(yytext[yyleng-1]);
zendlval->value.str.val = (char *) estrndup(yytext, yyleng);
zendlval->value.str.len = yyleng;
zendlval->type = IS_STRING;
return T_INLINE_HTML;
}
<ST_IN_SCRIPTING,ST_DOUBLE_QUOTES,ST_HEREDOC,ST_BACKQUOTE>"$"{LABEL} {
zend_copy_value(zendlval, (yytext+1), (yyleng-1));
zendlval->type = IS_STRING;
@@ -1702,8 +1693,8 @@ NEWLINE ("\r"|"\n"|"\r\n")
}
if (label_len==CG(heredoc_len) && !memcmp(yytext, CG(heredoc), label_len)) {
zendlval->value.str.val = estrndup(yytext, yyleng); /* unput destroys yytext */
zendlval->value.str.len = yyleng;
zendlval->value.str.val = estrndup(yytext, label_len); /* unput destroys yytext */
zendlval->value.str.len = label_len;
if (unput_semicolon) {
unput(';');
}
+2 -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 |
@@ -315,7 +315,7 @@ ZEND_API int zend_fetch_list_dtor_id(char *type_name)
zend_hash_internal_pointer_reset_ex(&list_destructors, &pos);
while (zend_hash_get_current_data_ex(&list_destructors, (void **)&lde, &pos) == SUCCESS) {
if (strcmp(type_name, lde->type_name) == 0) {
if (lde->type_name && (strcmp(type_name, lde->type_name) == 0)) {
#if 0
printf("Found resource id %d for resource type %s\n", (*lde).resource_id, type_name);
#endif
+2 -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 |
@@ -89,7 +89,7 @@ extern ZEND_API int le_index_ptr; /* list entry type for index pointers */
#define ZEND_VERIFY_RESOURCE(rsrc) \
if (!rsrc) { \
RETURN_NULL(); \
RETURN_FALSE; \
}
#define ZEND_FETCH_RESOURCE(rsrc, rsrc_type, passed_id, default_id, resource_type_name, resource_type) \
Loaded 100 of 2125 files, more files were not shown because too many files have changed in this diff. Show more