Compare commits

...
1636 Commits
Author SHA1 Message Date
SVN Migration 1b277a2878 This commit was manufactured by cvs2svn to create tag 'php_5_1_1'. 2005-11-27 20:07:37 +00:00
foobar 8b443a1851 Back from future 2005-11-27 16:33:18 +00:00
Ilia Alshanetsky b81012c718 removed no longer relevant portion. 2005-11-27 15:39:09 +00:00
Ilia Alshanetsky bd196f4bd0 Adjust news 2005-11-27 15:38:07 +00:00
Ilia Alshanetsky 93608bf8a5 5.1.1 2005-11-27 14:19:40 +00:00
foobar fc34aa8489 fix news 2005-11-27 13:24:53 +00:00
Marcus Boerger e678e7a6af - BFN 2005-11-27 12:24:55 +00:00
Marcus Boerger e8ec9a98dd - Fixed bug #35423 RecursiveDirectoryIterator doesnt appear to recurse with RecursiveFilterIterator 2005-11-27 12:22:54 +00:00
Rob Richards 51e3beb4cb BFN 2005-11-27 12:22:04 +00:00
Rob Richards 934e19107d Fixed bug #35316 (Application exception trying to create COM object) 2005-11-27 12:19:04 +00:00
Marcus Boerger c37b13e0db - MFH Editor blocks 2005-11-27 12:16:14 +00:00
Marcus Boerger 9aebeaaf09 - MFH Synch with what we decided for 5 and what we are practicing since 5 2005-11-27 11:06:07 +00:00
Ilia Alshanetsky b3a48855ab Disabled native date class, to prevent pear::date conflict. 2005-11-27 06:51:43 +00:00
Ilia Alshanetsky 331726338b tokenizer fixes for bug #35382
Bug fixing news
2005-11-27 06:41:32 +00:00
Ilia Alshanetsky 497fae9d1f Fixed bug #35411 (Regression with \{$ handling).
Fixed bug #35382 (Comment in end of file produces fatal error).
2005-11-27 06:39:31 +00:00
Wez Furlong ef08c58664 update the todo list 2005-11-26 21:29:31 +00:00
Wez Furlong 339b4dbd6f going stable 2005-11-26 21:25:39 +00:00
Wez Furlong ab6a675131 going to release 1.0.1 2005-11-26 21:22:49 +00:00
Wez Furlong 426fb96cc9 Doh, need to canonicalize parameter names (by prefixing with :) before
attempting to remap them to positional args.
2005-11-26 21:20:52 +00:00
Ilia Alshanetsky 36d62a2f84 Bug fixing news 2005-11-26 21:04:42 +00:00
Ilia Alshanetsky 0b9f9de012 No longer dev 2005-11-26 21:03:44 +00:00
Wez Furlong 85ad81736c set to 1.0 stable. 2005-11-26 20:50:08 +00:00
foobar 1ea0bae9c0 fix test 2005-11-26 13:38:28 +00:00
Marcus Boerger 57f76446cf - MFH Add new test 2005-11-26 13:23:27 +00:00
Marcus Boerger 0f3d8acfd6 - BFN 2005-11-26 13:12:52 +00:00
Marcus Boerger 46ae03d872 - MFH Fix bug #35406 eval hangs when evall'ed code ends with comment w/o newline 2005-11-26 13:11:26 +00:00
Antony Dovgal 7241dea7ef fix Timezone class too 2005-11-26 12:35:27 +00:00
Antony Dovgal b6307d1014 MFH: fix #35402 (New date class causes crash in get_object_vars()) 2005-11-26 09:40:54 +00:00
Rasmus Lerdorf 4e3cd72df5 Typo 2005-11-26 06:22:14 +00:00
Rui Hirokawa 244c9a4ba0 5th argument of mb_encode_mimeheader() was not acceptable. 2005-11-25 21:55:25 +00:00
Wez Furlong c0c096b752 fix configure 2005-11-25 17:07:49 +00:00
foobar 366832fbd2 MFH: Fixed wrong usage of ZEND_EXTENSION_API_NO (these are not Zend exts :) 2005-11-25 16:01:41 +00:00
Wez Furlong 4e4b98a66d Use right define: ZEND_MODULE_API_NO as these are PHP modules, not Zend extensions 2005-11-25 15:42:26 +00:00
Antony Dovgal dc0db7382c MFH: fix #35391 (pdo_mysql::exec does not return number of affected rows) 2005-11-25 12:56:04 +00:00
Antony Dovgal 350aec954e MFH: ICC doesn't support __attribute__ for pointers 2005-11-25 12:25:05 +00:00
Wez Furlong 7107105429 Update the TODO list. 2005-11-25 07:23:55 +00:00
Wez Furlong 17f504a0ec actually, bytea is not required for LOBs in postgres; good! 2005-11-25 03:37:01 +00:00
Wez Furlong 70331c361e Addresses #35338.
Postgres client API is pretty poor, so we have zero idea about the actual
parameter types in a statement.

We now defer the preparation of a statement until the first call to execute is
made.  At that point, we have the parameters defined by the calling script, so
we can use the typing specified there when we perform the prepare.

For PDO_PARAM_LOB parameters, we set the binary formatting flag.

We can't just set this flag for all parameters, because its meaning is not
"string data, counted length" but "data is in native format".  If this flag is
set for a numeric column and we send the number 1 formatted as a string, then
we will get an "insufficient data left in message" error message, because the
library was expecting sizeof(int4) bytes but only saw 1 byte for "1".

This is infuriating because we have no way to determine the datatypes for
parameters, and the type we explicitly set has to match the type in the
database.  The only choice we're left with is telling postgres to deduce the
type; we still have no idea what type was deduced.
2005-11-25 03:35:04 +00:00
Wez Furlong 2256ec00ef PDO support for LOBs in the postgres driver currently assumes bytea columns. 2005-11-25 03:24:32 +00:00
Wez Furlong 2618322506 Bug: when stringify fetch mode is on, and the driver returns a string instead
of a stream for a LOB parameter, PDO would incorrectly return NULL for that
column.
2005-11-25 03:23:17 +00:00
Wez Furlong 268ac81e39 Add pdo_odbc.db2_instance_name ini setting when built against DB2.
This is a convenience for setting up the DB2 environment more easily.
2005-11-25 02:33:04 +00:00
Andrey Hristov 1d3f0d8891 fix test - unsigned it is casted to 0 in mysql sql_mode 2005-11-25 01:13:56 +00:00
Wez Furlong c2d53719c2 Fix for #35332.
The problem is caused by the user mixing positional and named parameters.
PDO was blindly adding the parameters, unaware that the same parameters were
already allocated by position.

What we do now is register the parameter with the driver before adding it to
any hash.  This gives the driver an opportunity to normalize the name and
parameter number.  PDO can then ensure that only one entry is occupied in the
hash for a given parameter.
2005-11-25 00:29:04 +00:00
Wez Furlong bb2f034eff well, what do you know, it does do something. 2005-11-25 00:20:12 +00:00
Ilia Alshanetsky 363b0ce10b Fixed bug #35170 (PHP_AUTH_DIGEST differs under Apache 1.x and 2.x). 2005-11-25 00:02:16 +00:00
Wez Furlong 0a865c89c5 prep for release 2005-11-24 22:33:20 +00:00
Wez Furlong 94ab6069b8 prep for release 2005-11-24 22:25:37 +00:00
Wez Furlong dfdd1e4caf CLASSTYPE is an internal flag.
Closes PECL #5640.
2005-11-24 21:46:56 +00:00
Wez Furlong 2814b749ec Fix PECL Bug #6014; config fails on PHP 5.0.3 2005-11-24 21:38:09 +00:00
Marcus Boerger 7aa61c312d - NEWS, NEWS, NEWS 2005-11-24 20:06:11 +00:00
Marcus Boerger fb81446ec9 - MFH Reflection class consts (not removing globals consts in 5.1*) (by Johannes) 2005-11-24 19:56:11 +00:00
Wez Furlong aae30f20fc Fix bug that breaks pdo_mysql when built shared (was not being linked to the
mysql libraries).

If you have another mysql module loaded, this would not have been noticable.
2005-11-24 18:56:16 +00:00
Ilia Alshanetsky 8e49bacf95 Fixed bug #35358 (Incorrect error messages for PDO class constants). 2005-11-24 16:21:43 +00:00
Dmitry Stogov a570981151 Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash) 2005-11-24 11:33:11 +00:00
Sebastian Bergmann f5117c81b3 MFH: Add an additional field $frame['object'] to the result array of debug_backtrace() that contains a reference to the respective object when the frame was called from an object. 2005-11-24 05:07:28 +00:00
Sara Golemon a420b562df MFH (r-1.2) Sync tests with new defaults 2005-11-24 04:37:47 +00:00
Marcus Boerger c13c6e4f68 - Fix build for new ming versions
# Maybe we should check if it is safe to MFH all the corresponding changes
# in head. But why is this out of sync anyway?
2005-11-24 00:51:44 +00:00
Ilia Alshanetsky 4dbac17f9c Back to dev 2005-11-23 21:25:37 +00:00
Ilia Alshanetsky e0ded79c0f Rolling 5.1.0 2005-11-23 20:53:33 +00:00
Antony Dovgal 794c2e8e5d change zend_read_property() to allocate property zval too 2005-11-23 18:51:44 +00:00
Rui Hirokawa b9f0ff7aab MFH: fixed 5307 unexpected header can be injected to mb_send_mail(). 2005-11-23 15:17:29 +00:00
foobar f7beb9f30c fix tag 2005-11-23 15:01:54 +00:00
Antony Dovgal 1e93bb16e4 fix #35336 (crash on PDO::FETCH_CLASS + __set()) 2005-11-23 11:15:11 +00:00
Dmitry Stogov 36d6ddc241 Bug #33732 (Wrong behavior of constants in class and interface extending) 2005-11-23 09:26:43 +00:00
Rob Richards 7e0dc09703 BFN 2005-11-23 03:13:57 +00:00
Rob Richards ad7732c0cc Fixed bug #35342 (isset(DOMNodeList->length) returns false)
add test
2005-11-23 03:12:47 +00:00
Ilia Alshanetsky 8c86ea4693 Fixed bug #35046 (phpinfo() uses improper css enclosure). 2005-11-23 00:15:08 +00:00
Ilia Alshanetsky 2f6cebb206 Added 5.1 upgrading notes.
# Big thanks to Steph Fox for taking the time to make this list possible.
2005-11-22 23:49:13 +00:00
Antony Dovgal af34ed0d97 fix #35341 (Fix for bug #33760 breaks build with older curl) 2005-11-22 22:53:34 +00:00
Sara Golemon 7f367c9d83 Widen allowable range of values for 'window' bits.
Make -MAX_WBITS default (to match gzinflate() and gzdeflate())
2005-11-22 22:05:38 +00:00
Ilia Alshanetsky 0d088689c0 Removed {} E_STRICT pending furher discussion, may be introduced later on. 2005-11-22 19:46:13 +00:00
Ilia Alshanetsky 80e04c2c35 Fixed command error in ftp:// wrapper.
# Thanks to Stefan Esser for discovering the problem.
2005-11-22 03:01:39 +00:00
Ilia Alshanetsky 13996df552 Fixed test 2005-11-22 01:57:02 +00:00
Michael Wallner 3db21d2f4c - fix make install 2005-11-22 00:50:36 +00:00
Frank M. Kromann a6a9dc2eec /Gz and /RTC1 is for debug builds 2005-11-22 00:29:56 +00:00
foobar 7243d31ae0 MFH: - Fixed header installing under phpize builds 2005-11-21 23:08:02 +00:00
Marcus Boerger 19ea8abd09 - MFH Fixed Bug #35286 tokenizer ext drops final comment (by greg) 2005-11-21 19:24:38 +00:00
foobar e47c21e0bc test -e does not work with solaris 2005-11-21 19:06:04 +00:00
Derick Rethans 2bb4d8282c - Fixed bug #35143 (gettimeofday() ignores current time zone).
- Fixed tests due to class constants patch.
2005-11-20 20:14:24 +00:00
Ilia Alshanetsky 4020933726 Fixed bug #35303 (PDO prepare() crashes with invalid parameters). 2005-11-20 20:06:28 +00:00
foobar db77890bbd MFH: - Fixed bug #35243 (php_mblen() crashes when compiled with thread-safety on Linux) 2005-11-20 18:07:28 +00:00
Sebastian Bergmann abe364335b Use /RTC1 instead of /GZ for MS VisualStudio 2005. 2005-11-20 17:03:14 +00:00
Marcus Boerger cfeb12ccf5 - MFH Fix parameter parsing 2005-11-20 13:05:15 +00:00
foobar d20fe303b3 fix news 2005-11-20 08:13:34 +00:00
Antony Dovgal 493c9fcf93 MFH: fix #35293 (PDO segfaults when using persistent connections) 2005-11-19 16:41:08 +00:00
Rui Hirokawa 60949ca571 MFH: fixed #35253 length of the encoded string vilolates a RFC. 2005-11-19 08:25:32 +00:00
Frank M. Kromann 6ed54ddc79 MFH: Fix #33201 Crash when fetching some data types 2005-11-18 21:23:20 +00:00
Frank M. Kromann e1fac162a0 MFH Fix #33963. mssql_bind fails on input parameters 2005-11-18 20:48:46 +00:00
Frank M. Kromann ae75d4350d MFH: Fix #32009 crash when mssql_bind() is called more than once 2005-11-18 20:40:52 +00:00
Frank M. Kromann da2d7e7229 MFH: Fix #33153 Crash in mssql_next_result(). 2005-11-18 19:14:32 +00:00
Ilia Alshanetsky 110344d65c Fixed bug #35278 (Multiple virtual() calls crash Apache 2 php module). 2005-11-18 18:59:49 +00:00
foobar 54a5c714ca php4 -> php5 2005-11-18 16:09:50 +00:00
foobar 7b073bbad8 - Make sure --with-readline is used only when --with-libedit is not used. 2005-11-18 15:07:39 +00:00
Dmitry Stogov 8b4e1abdb0 Fixed bug #35273 (Error in mapping soap - java types) 2005-11-18 11:00:15 +00:00
foobar 25558ffdbb back to dev 2005-11-18 09:51:44 +00:00
Marcus Boerger c21ced1ec9 - Not in this branch 2005-11-17 22:35:27 +00:00
Rasmus Lerdorf aa749a1269 Missing }}} 2005-11-17 21:56:04 +00:00
Ilia Alshanetsky 4ba37d04d4 RC6 2005-11-17 21:27:58 +00:00
foobar 4eb9e62209 fix news 2005-11-17 21:15:19 +00:00
Ilia Alshanetsky eb0a6a666f Moved date constants into the date class, they all class constants now. 2005-11-17 21:05:30 +00:00
Ilia Alshanetsky 8f514cd18c MFH: Resolve Apache 2 regression with sub-request handling on non-linux
systems.
2005-11-17 21:00:28 +00:00
Sara Golemon 1340c04976 MFH (r-1.51) #32371 php://input sometimes returns duplicate data 2005-11-17 19:40:38 +00:00
Antony Dovgal 014729d00b MFH: make GCC happy and suppress the warning 2005-11-17 19:21:32 +00:00
Ilia Alshanetsky 95c6c6d2cd Fixed test. 2005-11-17 18:25:16 +00:00
Ilia Alshanetsky d734669230 Fixed bug #35248 (sqlite_query() doesnt set error_msg when return value is
being used).
2005-11-17 14:38:36 +00:00
Antony Dovgal 1a78dc5fbf MFH: fix #35079 (stream_set_blocking(true) toggles, not enables blocking)
patch by askalski at gmail dot com
2005-11-17 14:19:40 +00:00
Derick Rethans 924ae32ddf - Fixed bug #35218 (strtotime no longer ignores timezone comments like "(PST)") 2005-11-17 13:04:31 +00:00
Derick Rethans 18606377dd - Fixed typo 2005-11-17 12:33:36 +00:00
foobar a0303c772a MFH: Renamed config.m4 to config0.m4
# PCRE configure tests must be run before e.g. ext/filter
2005-11-17 10:02:42 +00:00
foobar 52747127f8 MFH 2005-11-17 09:58:28 +00:00
foobar c127df868e MFH: - Fix compile failure when ext/readline is compiled as shared (bug #35249) 2005-11-17 08:37:31 +00:00
Ilia Alshanetsky b5c8fcb5fa Allow zend_parse_parameters to handle non-well formed integers, but raise
E_NOTICE in the process.
2005-11-17 00:19:23 +00:00
foobar 158ebbd9b5 MFH 2005-11-16 22:14:32 +00:00
Ilia Alshanetsky da0a76c561 {} to [] test fixes 2005-11-16 16:57:27 +00:00
Ilia Alshanetsky f1a8fde76a back to dev 2005-11-16 15:41:59 +00:00
Ilia Alshanetsky cce5e8c9ea Updated tests to use [] instead of {} 2005-11-16 15:13:20 +00:00
Ilia Alshanetsky 9aeb125f4a By popular demand the {} message is now an E_STRICT. 2005-11-16 15:10:56 +00:00
Ilia Alshanetsky aab9009deb Added depreciation notice for {} string offset access. 2005-11-16 14:55:21 +00:00
Ilia Alshanetsky 209169786a 5.1.0RC5 2005-11-16 14:18:11 +00:00
Dmitry Stogov 6b8bf38333 Fixed bug #35239 (Objects can lose references) 2005-11-16 11:52:27 +00:00
Dmitry Stogov 8bd18e174b Fixed bug #35229 (call_user_func() crashes when arguement_stack is nearly full) 2005-11-16 09:31:21 +00:00
Wez Furlong 0bd9518f8c Closes PECL #5944; binding an invalid parameter can lead to segfaults.
Modified patch provided by curt@php.net.
2005-11-16 06:32:33 +00:00
Marcus Boerger c95360658f - MFH Add new test 2005-11-15 21:33:10 +00:00
foobar f8781c168e extend the entry a bit :) 2005-11-15 16:53:14 +00:00
foobar a7d31c8dac bfp 2005-11-15 16:51:24 +00:00
Dmitry Stogov b58ed261d7 Allow "null" default value for arguments with array type hint 2005-11-15 16:49:40 +00:00
Derick Rethans aa9ea59851 - Allow "= null" default for parameters with a class type-hint. 2005-11-15 15:59:49 +00:00
Ilia Alshanetsky 57e49322a5 Fixed memory leak on php-cli -h 2005-11-15 15:27:26 +00:00
Ilia Alshanetsky c4da6009bb MFH: Fixed possible crash in http:// wrapper. 2005-11-15 14:46:34 +00:00
Dmitry Stogov d3e0b57e1a Allow recursive calls to __get/__set for different properties 2005-11-15 14:28:40 +00:00
Dmitry Stogov 3c19326480 Allow recursive calls to __get/__set for different properties 2005-11-15 14:18:15 +00:00
Antony Dovgal 23a3fdbf04 MFH: call zend_objects_destroy_object() explicitly
fix segfault when intern->time is NULL
2005-11-15 14:08:03 +00:00
Dmitry Stogov 64931b62cc Allow recursive calls to __get/__set for different properties 2005-11-15 13:35:23 +00:00
Dmitry Stogov a8c6b992b8 Fixed bug #35147 (__HALT_COMPILER() breaks with --enable-zend-multibyte) 2005-11-15 13:29:39 +00:00
Dmitry Stogov 5519008169 Fixed call to __destruct() for objects of classes delivered from internal ones those use zend_objects_store_put(obj, NULL, ... 2005-11-15 12:41:31 +00:00
Dmitry Stogov 8c100e6451 Fixed bug #35176 (include()/require()/*_once() produce wrong error messages about main()) 2005-11-15 11:13:43 +00:00
Frank M. Kromann fe306ed1a6 Change max_procs from 25 to library default. This will make FreeTDS connections work a bit better 2005-11-14 23:14:25 +00:00
Antony Dovgal 241aa9a59d MFH: fix #35197 (Destructor is not called) and similar issues in other extensions 2005-11-14 22:03:02 +00:00
Antony Dovgal cd9e244a68 MFH: fix #35197 (Destructor is not called) and similar issues in other extensions 2005-11-14 21:54:35 +00:00
Ilia Alshanetsky 927ea59de3 PEAR news 2005-11-13 18:23:25 +00:00
Ilia Alshanetsky f3f057127b Slated for PHP 6 2005-11-13 18:02:47 +00:00
foobar 592e78ab87 MFH: - Fixed bug #35179 (tokenizer extension needs T_HALT_COMPILER) 2005-11-10 07:50:59 +00:00
foobar 71ac32bdb8 MFH 2005-11-08 20:21:47 +00:00
foobar bd8fe7fcf0 FBFN 2005-11-08 16:57:10 +00:00
foobar f60da5cd5e MFH 2005-11-08 15:54:48 +00:00
Rui Hirokawa 68d1942a9a NEWS updated. 2005-11-08 14:47:50 +00:00
Andrey Hristov df2c11b731 test fetching of unsigned int(11) 2005-11-08 14:43:49 +00:00
Andrey Hristov 611a05f857 BFN 2005-11-08 14:10:17 +00:00
Andrey Hristov 64e8f63978 fix test - putting signed into unsigned produces 0, if not in strict mode
(in strict mode this will fail)
2005-11-08 14:06:40 +00:00
Andrey Hristov 00a9f063f8 on 32bit platform if the column is UNSIGNED INT(11) and the value
is greater than 2^31-1 then convert to string. on 64bit this is of no
problem because there long inside zval is big enough to keep unsigned
int(11)
2005-11-08 13:50:50 +00:00
Dmitry Stogov 270640283e Fixed bug #35142 (SOAP Client/Server Complex Object Support) 2005-11-08 08:30:19 +00:00
Marcus Boerger 9c14ce94f3 - MFH heredoc handling in -a mode 2005-11-07 19:14:40 +00:00
Marcus Boerger 134b2718d4 - Add new tests 2005-11-07 18:38:20 +00:00
Ilia Alshanetsky 8e2de517bb Fixed bug #35135 (PDOStatment without related PDO object may crash). 2005-11-07 16:53:15 +00:00
Marcus Boerger bb293e15c3 - Drop unnecessary param 2005-11-07 13:08:24 +00:00
Marcus Boerger ae1d56d098 - MFH Bug #32223 weird behaviour of pg_last_notice 2005-11-07 12:57:49 +00:00
Dmitry Stogov 9e1beb4f1c Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension is compiled as shared) 2005-11-07 12:24:55 +00:00
Dmitry Stogov 88edad9f08 Fixed bug #35091 (SoapClient leaks memory) 2005-11-07 10:05:35 +00:00
foobar 6ec23a56d8 MFH:- Fixed minor leak with -dzlib.output_compression=1 -m 2005-11-06 22:42:23 +00:00
foobar 261eabbdd4 MFH 2005-11-06 22:08:30 +00:00
Marcus Boerger 33c650020a - Remve bogus part of test 2005-11-06 12:25:53 +00:00
Marcus Boerger 71ad4dd19b - Fix parameter parsing 2005-11-06 11:58:34 +00:00
Derick Rethans 15c1b8a3a2 - MFH: E_STRICT is not part of E_ALL, so the lines were wrong here. 2005-11-06 11:09:32 +00:00
Marcus Boerger c388f97ac9 - Fix test expectations 2005-11-06 10:51:29 +00:00
foobar d4a1506d52 Fix bad MFH 2005-11-06 02:59:18 +00:00
Rasmus Lerdorf b03351633a And simplexml doesn't need dom anymore to do the import 2005-11-05 22:37:18 +00:00
Rasmus Lerdorf 04a291d39a This SimpleXML requirement is no longer needed and by removing it we
remove a circular dep where it was impossible to build simplexml shared
and not load it.
2005-11-05 22:25:12 +00:00
Ilia Alshanetsky 82814fc852 Fixed bug #31971 (ftp_login fails on some SSL servers).
Patch by: frantisek at augusztin dot com
2005-11-05 22:02:15 +00:00
Wez Furlong 2556b354b3 improve configure script.
Fixes #35107; compile failure with MySQL 5
2005-11-05 16:20:06 +00:00
Rui Hirokawa 00dfb7dc14 MFH: fixed garbled multibyte characters. 2005-11-05 04:49:57 +00:00
Wez Furlong 00df9b67ce Fixes PECL Bug #5868; wrong iters count for OCIStmtExecute 2005-11-04 18:11:40 +00:00
Marcus Boerger bf9a25d0bb - Fix test expectations - we are no detecting the error earlier
# Unfortunatley we also lower the severity here because sqlite's error
# facility is dealing with the problem at this early stage as E_WARNING.
2005-11-03 23:48:09 +00:00
Marcus Boerger 83bdbe5b53 - Fix static check in zend_is_callable_ex()
- Fix/speedup zend_make_callable()
# Actually the ...STATIC... flag in zend_is_callable_ex() *must* go, too.
# We keep it for the moment to support old stuff and skip analyzing them
# in detail...
2005-11-03 23:45:18 +00:00
Marcus Boerger 2ca2153a06 - MFH Add missing check flag 2005-11-03 22:06:30 +00:00
Marcus Boerger e464f0f456 - MFH Try fixing #35088 2005-11-03 21:59:13 +00:00
Marcus Boerger 7ae7cc363a - MFH Add missing check 2005-11-03 21:28:43 +00:00
foobar 528e7869b6 MFH: - Fixed bug #35078 (configure does not find ldap_start_tls_s) 2005-11-03 20:41:13 +00:00
Ilia Alshanetsky 72030596ba Fixed typo. 2005-11-03 15:01:30 +00:00
Michael Wallner 17d16cf2af - MFB44: #34851 (SO_RECVTIMEO and SO_SNDTIMEO socket options expect integer
parameter on Windows)
2005-11-03 15:00:51 +00:00
foobar edc87ef840 MFH: Fixed bad usage of php_checkuid() 2005-11-02 21:26:25 +00:00
Marcus Boerger 8098790208 - Add missing test 2005-11-02 20:32:21 +00:00
Marcus Boerger 50ba309495 - Make spl_autoload_register use zend_is_callable_ex() 2005-11-02 20:31:01 +00:00
Marcus Boerger a4bd0d6a25 - Add missing cases and checks 2005-11-02 20:30:13 +00:00
Derick Rethans 703fc059bf - MFH: Fixed initializing and argument checking for posix_mknod(). 2005-11-02 15:53:49 +00:00
Michael Wallner 496fd1c041 - sapi_header_op(SAPI_HEADER_(REPLACE|ADD), {NULL, 0, 0}) caused HTTP response splitting
- sapi_send_headers() already takes care of default_content_type (left over of fix for bug #29983)
2005-11-02 14:38:13 +00:00
Ilia Alshanetsky 435b820f68 Fixed minor memory leak triggered by: -dzlib.output_compression=1 -m 2005-11-01 22:59:18 +00:00
foobar e02f8809f1 - Fixed test. Some people might actually be using php.ini-dist which
has precision set to 12. (and this test results need 14)
2005-11-01 22:39:53 +00:00
Marcus Boerger 1d0b88d316 - Update docu 2005-11-01 21:48:25 +00:00
Marcus Boerger 376d4554fb - MFH the iterator base interface is Traversable not IteratorAggregate 2005-11-01 21:18:24 +00:00
Frank M. Kromann 623a2021ab MFH: Fix #35037. Selecting a uniqueidentifier would return unknown data type when used with freetds. 2005-11-01 18:15:44 +00:00
foobar 289402edc6 MFH: - Added missing safe-mode checks
# Added by replacing the existing open_basedir checks with a macro
# Also, the filename passed might be null, etc. so it's not very good
# idea to pass to php_error_docref() (catch by Ilia)
2005-11-01 17:05:09 +00:00
foobar 98691ba0c0 nuke typo 2005-11-01 16:21:29 +00:00
foobar f803888510 MFH: Hiding bugs is not purpose of the regression tests. 2005-11-01 14:36:37 +00:00
Edin Kadribasic fbc6470cb6 Fix ZTS build 2005-11-01 14:18:20 +00:00
Wez Furlong 3d9af317e6 update ready for release spree today 2005-11-01 13:14:10 +00:00
Wez Furlong 6f63c45639 Fix #35032; pdo_dblib doesn't find includes on some systems 2005-11-01 13:12:52 +00:00
Dmitry Stogov e98a40f1fa Fixed SIGSEGV 2005-11-01 11:11:35 +00:00
Sebastian Bergmann 02eb02d1ce MFH: Allow bison 2.1. 2005-11-01 10:31:56 +00:00
Wez Furlong 38c5dd2929 prep for PECL release 2005-11-01 03:16:36 +00:00
Wez Furlong dbc09d3325 Closes PECL Bug #5633.
Build tested with 5.0.x as PECL, 5.1 as PECL and 5.1 static
2005-11-01 03:13:32 +00:00
Wez Furlong b6fe60ab52 prep for PECL release 2005-11-01 03:10:09 +00:00
Wez Furlong 6070381f9d prep for pecl release 2005-11-01 03:07:41 +00:00
Wez Furlong 872661b91d prep for PECL release 2005-11-01 03:04:49 +00:00
Wez Furlong b3b9ee1467 hrmm, typo fix. 2005-11-01 03:04:25 +00:00
Wez Furlong 598f182c29 prep for PECL release 2005-11-01 02:46:12 +00:00
Wez Furlong 58a14f225d Prep for PECL release 2005-11-01 02:44:11 +00:00
Brian France 890bd3f002 Fixed phpize build (default PHP_OPENSSL to no if not set) 2005-11-01 00:32:21 +00:00
Ilia Alshanetsky 0ba24fb65a Additional open_basedir/safe_mode checks. 2005-10-31 23:44:40 +00:00
Marcus Boerger 9622ccface - Drop unnecessary exports to prevent forward BC problems 2005-10-31 21:20:44 +00:00
Dmitry Stogov 681405fc4a Fixed bug #35017 (Exception thrown in error handler may cause unexpected behavior) 2005-10-31 19:25:14 +00:00
Marcus Boerger 24a80c3ebf - Fix remaining memleaks
# all tests pass for me now for the first time in:
# pgsql, mysql, sqlite, sqlite2
2005-10-31 07:47:40 +00:00
Wez Furlong b74698f135 fix misinterpretation of data when overriding types via bindColumn.
Very slightly modified patch from Marcus.
2005-10-31 03:23:38 +00:00
Wez Furlong 2baf1500e0 Closes PECL Bug #5722; BLOB support was half-baked. 2005-10-31 02:11:27 +00:00
Wez Furlong 40c24a65c4 improve test portability.
improve infrastructure for LOB support.
2005-10-31 02:07:38 +00:00
foobar 138ad7d252 bfn 2005-10-31 00:11:42 +00:00
Marcus Boerger e7494a7e9e - Fix memleak 2005-10-30 22:17:52 +00:00
Ilia Alshanetsky 2dc3862c7f Improve iconv skip conditions 2005-10-30 18:07:47 +00:00
Ilia Alshanetsky 57510065ce Fixed bug #35022, #35019 (Regression in the behavior of key/current
functions).
2005-10-30 18:03:30 +00:00
Marcus Boerger cea6a783af - MFH Add docu 2005-10-30 16:07:45 +00:00
Ilia Alshanetsky 941a94ead4 Simplify code. 2005-10-30 13:48:30 +00:00
Ilia Alshanetsky d22d6910ad Fixed Bug #35014 (array_product() always returns 0). 2005-10-30 13:44:26 +00:00
Wez Furlong cc4b453611 dos to unix line endings 2005-10-29 20:41:54 +00:00
Wez Furlong 0139cd0e53 Closes PECL Bug #5772; FETCH_FUNC broken for mixed case function names 2005-10-29 03:11:46 +00:00
Wez Furlong 7af8089096 Closes PECL #5809; PDOStatement::execute(array(...)) would modify its args.
It should behave like bindValue() not bindParam().
2005-10-29 03:01:19 +00:00
Wez Furlong 588d88960c clean up the test2 table that some tests create 2005-10-29 02:58:24 +00:00
Wez Furlong c28a9a4e5c Closes PECL Bug #5802 2005-10-29 02:41:50 +00:00
Wez Furlong e0924b7451 Close PECL Bug #5780 2005-10-29 02:36:30 +00:00
Wez Furlong b2424b2e08 argh! we don't want to NULL the stmt here; freeing the results is not the same
as destroying the prepared statement handler, so we're leaking and breaking, as
can be seen by running the test suite.

brown paper bag for PDO in PHP 5.1RC4?
2005-10-29 02:16:35 +00:00
Wez Furlong 9bd48c2e15 Closes PECL Bug #5645; emits mysql client library version in MINFO output. 2005-10-29 01:58:22 +00:00
Ilia Alshanetsky fad0caaee9 Back to dev 2005-10-28 15:45:05 +00:00
Antony Dovgal 579c9abfb3 MFH: quick fix for #35003 (Warning: PDOStatement::fetch(): column 0 data was too large for buffer and was) 2005-10-28 15:02:09 +00:00
Ilia Alshanetsky 721fec251b 5.1.0RC4 2005-10-28 15:00:49 +00:00
Dmitry Stogov b05b949a47 Fixed bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms) 2005-10-28 14:46:30 +00:00
Antony Dovgal e9de9f3aeb fix TSRM build 2005-10-28 12:00:10 +00:00
Dmitry Stogov a3cb94abff Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope) 2005-10-28 10:06:43 +00:00
Dmitry Stogov fa406902d5 Fixed bug #34982 (array_walk_recursive() modifies elements outside function scope) 2005-10-28 09:57:35 +00:00
Dmitry Stogov 36a14076a8 Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO) 2005-10-28 08:30:41 +00:00
Anantha Kesari H Y 3815b367d5 NetWare LibC sdk has stdarg.h
--Kamesh
2005-10-28 07:52:58 +00:00
Dmitry Stogov 844cb82c45 $id:$ tatgs are removed from generated files to avoid committing of Zend/zend_vm_opcodes.h without real changes. 2005-10-28 06:05:57 +00:00
Rob Richards 2e8f773eee MFH: fix crash setting attr from foreign doc (throws exception)
add test
2005-10-27 23:51:22 +00:00
Antony Dovgal a9cac89541 MFH: commit forgotten part 2005-10-27 19:39:38 +00:00
Dmitry Stogov 8212034254 Fixed SIGSEGV 2005-10-27 19:25:52 +00:00
Antony Dovgal 9ffefbc74e MFH: add MySQL options and corresponding constants 2005-10-27 17:34:24 +00:00
Antony Dovgal 7c01510b95 MFH: free && set to NULL S->stmt 2005-10-27 17:26:19 +00:00
Ilia Alshanetsky 3a9cdbfd41 Fixed memory leak on error 2005-10-27 14:07:30 +00:00
Ilia Alshanetsky bac9ab777e One check is enough. 2005-10-27 14:06:39 +00:00
Rathna N ced39e3168 Tests for calendar extension 2005-10-27 11:05:50 +00:00
Wez Furlong dcd7879556 fixes PECL Bug #5589 2005-10-27 03:51:23 +00:00
Dan Scott 97ec02ce81 Test PDO::ATTR_CASE attribute. 2005-10-26 23:09:06 +00:00
Antony Dovgal 4c98758328 MFH: make compilers happy 2005-10-26 22:47:23 +00:00
Antony Dovgal 5b502880b6 MFH: fix #34996 (ImageTrueColorToPalette() crashes when ncolors is zero) 2005-10-26 21:38:20 +00:00
Ilia Alshanetsky 51d8950b53 Additional tweaks to the patch for bug #34249. 2005-10-26 15:08:23 +00:00
Antony Dovgal b122cd4b08 MFH: fix #34977 (Compile failure on MacOSX due to use of varargs.h) 2005-10-26 13:50:39 +00:00
foobar 143d1c8011 MFH 2005-10-26 11:33:25 +00:00
Dan Scott f987de46b4 Correct non-standard SQL. Standard SQL would define "DEFAULT NULL" -- but
that is the default value if the DEFAULT clause is omitted anyways.
2005-10-26 06:23:12 +00:00
Marcus Boerger 936b1e56c3 - MFH zend_is_callable_ex() has been changed 2005-10-25 23:20:29 +00:00
Marcus Boerger 2486b846cc - MFH zend_is_callable_ex() returns zend_class_entry* if available 2005-10-25 23:19:59 +00:00
Pierre Joye af888a4807 - fix #34980, divisor and offset never passed correctly (s/float/double/) 2005-10-25 23:00:19 +00:00
Michael Wallner a329ecd8c4 fix bug #34965 tidy is not binary safe 2005-10-25 18:04:59 +00:00
Antony Dovgal 2af3190a3d use correct enum type for the arg 2005-10-25 16:02:33 +00:00
Ilia Alshanetsky e13d51cea3 MFH: Fixed bug #34968 (bz2 extension fails on to build on some win32 setups). 2005-10-25 15:53:06 +00:00
Michael Wallner 2c5c8c161c - fix the fix 2005-10-25 15:35:39 +00:00
Michael Wallner 3bbd4b17a9 - MFH: fix bug #34821 zlib encoders fail on widely varying binary data on windows 2005-10-25 15:16:20 +00:00
Antony Dovgal e415260868 MFH: apply workaround for the leak only when GLIBC is used 2005-10-25 14:57:14 +00:00
Antony Dovgal 4d3c8240d5 fix the order 2005-10-25 14:37:28 +00:00
Michael Wallner 60efdff75f - MFH: thread safe SSL crypto locks, fixes bug #33760 2005-10-25 14:32:33 +00:00
Ilia Alshanetsky 9490f1c847 Do not run tests if iconv extension is unavailable. 2005-10-25 14:22:56 +00:00
Antony Dovgal a0c8d5d80a MFH: fix problem with garbage appearing in hostnames 2005-10-25 08:19:33 +00:00
Ilia Alshanetsky 6b46a441cd Fixed compiler warning 2005-10-25 03:53:25 +00:00
foobar dda1f722e2 MFH 2005-10-24 22:46:26 +00:00
Antony Dovgal 57b520541b MFH: fix #34970 (ldap configuration issues) 2005-10-24 20:24:35 +00:00
Marcus Boerger 5460d2dad6 - Fix issue with entities in attributes 2005-10-24 08:29:36 +00:00
Dmitry Stogov a0dd931d85 Fixed bug #34950 (Unable to get WSDL through proxy) 2005-10-24 07:44:17 +00:00
Dmitry Stogov f9fb94ff00 Reverted patch for bug #34934. Bug is marked as bogus. 2005-10-24 06:58:42 +00:00
Antony Dovgal 0a7b720094 MFH: fix #34938 (dns_get_record() doesn't resolve long hostnames and leaks) 2005-10-23 18:34:26 +00:00
Ilia Alshanetsky 76ad7425ad Fixed memory leak on error. 2005-10-23 15:29:09 +00:00
Wez Furlong ea544cf38f Closes PECL Bug #5750; uri: dsn is not handled correctly.
Patch from curt@php.net
2005-10-23 04:10:20 +00:00
foobar ecca329c14 keep the order! :) 2005-10-22 17:38:35 +00:00
Wez Furlong 890f7f46b4 Fix #34957; file access checks should use VCWD_ACCESS() 2005-10-22 17:02:10 +00:00
Antony Dovgal 23d3ddea25 fix ws 2005-10-21 15:53:22 +00:00
Dmitry Stogov 75a548a7e9 Fixed bug #34934 (offsetExists is not called from array_key_exists) 2005-10-21 15:19:40 +00:00
Antony Dovgal b260064bbf MFH: fix possible crash in dns_get_record()
cleanup code a bit
(partly fixes #34938)
2005-10-21 13:49:01 +00:00
Dmitry Stogov 187b6cc583 Fixed bug #31341 (escape on curly inconsistent) 2005-10-21 13:22:05 +00:00
Dmitry Stogov af0adbed39 Fixed fgetcsv() and fputcsv() inconsistency. 2005-10-21 12:13:39 +00:00
Dmitry Stogov 7c3bdf444d Fixed bug #34782 (token_get_all() gives wrong result) 2005-10-21 09:32:40 +00:00
Dmitry Stogov 863bf8a574 Fixed bug #29268 (__autoload() not called with Reflection->getClass()) 2005-10-21 08:03:28 +00:00
Ilia Alshanetsky d4696abdb9 Fixed tests to work with ZTS builds 2005-10-20 19:22:09 +00:00
Antony Dovgal e7925c9767 MFH: use proper constants 2005-10-20 16:54:48 +00:00
Antony Dovgal 159bae3d99 MFH: use constants instead of their values 2005-10-20 16:51:03 +00:00
Antony Dovgal 5fdeb391f3 MFH: fix copy/paste typo 2005-10-20 16:47:18 +00:00
Ilia Alshanetsky b0c0b79136 MFH: Fixed test for cygwin installs 2005-10-20 14:43:00 +00:00
Dmitry Stogov ad1f706fda Removed unnecesary local variable 2005-10-20 11:31:41 +00:00
Dmitry Stogov a8c338aa65 Fixed bug #34893 (PHP5.1 overloading, Cannot access private property) 2005-10-20 09:47:12 +00:00
Dmitry Stogov c326593c1a Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault) 2005-10-20 08:55:10 +00:00
Dmitry Stogov 03cb8e959b Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly) 2005-10-20 08:14:59 +00:00
Dmitry Stogov d32c6512e1 Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting). 2005-10-20 07:30:42 +00:00
Dmitry Stogov c095e20ca8 Fixed bug #31177 (menory leaks and corruption because of incorrect refcounting) 2005-10-20 07:23:26 +00:00
Dmitry Stogov 9269f58477 Added forgotten tests 2005-10-20 07:04:25 +00:00
Greg Beaver 3446a75a36 remove unused obsolete files from pear CVS
# to run PEAR tests, grab pear-core/tests and use "pear run-tests -rq"
2005-10-20 01:49:42 +00:00
Ilia Alshanetsky 5bb29235dc MFH: Fixed -m memory leak 2005-10-19 21:57:45 +00:00
Derick Rethans 719e78c78f - Fixed bug #34874 and #33546 (Problems with lone daynames). 2005-10-19 21:08:35 +00:00
Ilia Alshanetsky 382bc9d0e4 MFH: Fixed bug #29983 (PHP does not explicitly set mime type & charset). 2005-10-19 20:33:33 +00:00
Ilia Alshanetsky 4d0439e487 MFH: Fixed bug #34623 (Crash in pdo_mysql on longtext fields). 2005-10-19 14:11:56 +00:00
Ilia Alshanetsky 5916b8dd04 MFH: Change E_ERROR to E_WARNING when more_entropy flag is off on Cygwin. 2005-10-19 13:41:44 +00:00
Dmitry Stogov 5fd4035194 Fixed test 2005-10-19 12:48:24 +00:00
foobar e264b8a4d3 MFH: Fixed error messages and tests 2005-10-19 11:18:51 +00:00
Antony Dovgal 5ec19bb68c fix news entry 2005-10-19 11:18:14 +00:00
Dmitry Stogov 4a6faadcce Fixed memory leak in ZTS mode 2005-10-19 07:54:53 +00:00
Derick Rethans 6aed41421e - MFH: Improved error messages a bit. 2005-10-19 07:22:20 +00:00
Antony Dovgal e5928942ac MFH: initialize SG(request_info).auth_digest 2005-10-18 23:51:54 +00:00
Ilia Alshanetsky 24046edbbb MFH: Fixed bug #34905 (Digest authentication does not work with Apache 1). 2005-10-18 23:15:28 +00:00
Ilia Alshanetsky cbb928b8eb MFH: Do not set authorizer unless safe_mode or open_basedir are being used. 2005-10-18 22:51:10 +00:00
Derick Rethans 3e46adb183 - MFH: Fixed bug #33829 (mime_content_type() returns text/plain for gzip and
bzip files).
2005-10-18 15:04:07 +00:00
Antony Dovgal fb57a8363e unused var 2005-10-18 14:50:48 +00:00
Ilia Alshanetsky 12ff2532c9 Fixed bug #34899 (Fixed sqlite extension compile failure). 2005-10-18 14:33:19 +00:00
Antony Dovgal 62ca4594f8 MFH: use php_error_docref() instead of php_error() everywhere 2005-10-18 13:51:50 +00:00
Antony Dovgal bddc4e6c1d MFH: fix mime_magic problems with ZTS 2005-10-18 12:41:29 +00:00
Antony Dovgal d8e5ee075f MFH: fix bug #34902 (mysqli::character_set_name() - undefined method) 2005-10-18 10:02:36 +00:00
Dan Scott e89500cdfb Apply patch for #34900, sight unseen. 2005-10-18 01:05:22 +00:00
Ilia Alshanetsky 5a7596591f ZTS fixes 2005-10-18 00:20:52 +00:00
Ilia Alshanetsky 8b91c8f32e ZTS test fix 2005-10-18 00:17:27 +00:00
Ilia Alshanetsky 03418c1d36 Fixed test for ZTS builds 2005-10-18 00:15:02 +00:00
Ilia Alshanetsky 5a29be9b7d Fixed tests for ZTS builds 2005-10-18 00:12:30 +00:00
Ilia Alshanetsky d467331307 Fixed test for ZTS builds 2005-10-18 00:06:20 +00:00
Ilia Alshanetsky cdbf1938f2 Back to dev 2005-10-17 22:24:42 +00:00
Ilia Alshanetsky f133b09907 5.1.0RC3 2005-10-17 20:26:13 +00:00
Rob Richards fbda9ce9f4 MFH: only need context set once 2005-10-17 19:50:20 +00:00
Ilia Alshanetsky 197142b3e0 MFH: Properly fixed bug #34456 (original patch completely reverted). 2005-10-17 15:31:10 +00:00
Derick Rethans 8f4112bfdd - Fixed bug #29361 (var_export() producing invalid code). (Derick) 2005-10-17 14:38:12 +00:00
Ilia Alshanetsky b0f1719ee5 MFH: Fixed bug #34884 (Possible crash in ext/sqlite when sqlite.assoc_case
is being used).
2005-10-17 14:30:35 +00:00
Dmitry Stogov cc50a96139 Fixed bug #34873 (Segmentation Fault on foreach in object) 2005-10-17 07:57:00 +00:00
Ilia Alshanetsky 8d476ded8e MFH: Further URL validations in safe_mode/open_basedir configs. 2005-10-17 02:43:20 +00:00
foobar e7bd6769df MFH 2005-10-16 20:41:26 +00:00
foobar 8ac5b549e0 NEWS file is about changes between releases. (RCs are not releases..) 2005-10-16 17:54:31 +00:00
Derick Rethans 0893e10ac3 - Updated timezone database to version 2005.14. 2005-10-15 18:13:19 +00:00
Derick Rethans 33921efc44 - Fixed timezone guessing on Windows. (Derick, Nuno) 2005-10-15 18:12:29 +00:00
Georg Richter b343aa9945 fixed an error in mysqli_fetch_fields (function returns NULL instead of array
when row_number > num_fields).
Thanks to Marc Deslisle and phpMyAdmin team for the report.
2005-10-15 06:32:26 +00:00
Antony Dovgal 3c042299e6 MFH: add test for bug #34873 2005-10-14 21:52:18 +00:00
Ilia Alshanetsky eb28594aa5 Pear installer fix 2005-10-14 15:35:56 +00:00
Ilia Alshanetsky a218299d6a ZTS fix 2005-10-14 15:30:39 +00:00
Ilia Alshanetsky e6566d9477 Back to dev 2005-10-14 15:30:26 +00:00
Derick Rethans 1017c44f4a - Use the non-zlib version of the PHAR. 2005-10-14 13:41:47 +00:00
Ilia Alshanetsky a03039bade Prepare for 5.1RC2 2005-10-14 13:36:35 +00:00
Ilia Alshanetsky d18cdaf6dd MFH: fix test failures 2005-10-13 21:26:45 +00:00
Rob Richards 709f73aea7 MFH: move constants to class 2005-10-13 21:20:12 +00:00
Rob Richards 646500bfe9 MFH: insure stream usage 2005-10-13 20:34:37 +00:00
Rob Richards 1e0494a714 MFH: bump libxml min version to 2.6.11 2005-10-13 20:33:40 +00:00
Marcus Boerger 001f506533 - MFH SPL example was changed, so change PDO test accordingly 2005-10-13 19:49:59 +00:00
Marcus Boerger 4c8afd895a - MFH Add ability to bypass key() surrounding and make that default 2005-10-13 19:49:27 +00:00
foobar 7e2bccf776 MFH 2005-10-13 19:28:58 +00:00
Marcus Boerger 491674bea6 - Do not try to autoload the class, use internal only 2005-10-13 18:37:19 +00:00
Antony Dovgal c47fb30b5b MFH: fix #34856 (configure fails to detect libiconv's type) 2005-10-13 15:23:11 +00:00
Antony Dovgal 81b8096ea8 MFH: fix #34855 (ibase_service_attach() segfault on AMD64) 2005-10-13 12:58:48 +00:00
foobar 3fbee80f35 - Fixed bug #34850 (--program-suffix and --program-prefix not included in man page names) 2005-10-13 10:02:59 +00:00
foobar 428006f54d reorder 2005-10-13 10:01:59 +00:00
Antony Dovgal d67821cd02 ws fix 2005-10-13 09:48:38 +00:00
Antony Dovgal f4371b9cc6 fix bug #34581 (crash with mod_rewrite) 2005-10-12 21:24:09 +00:00
foobar 4acffedc6b missing entry 2005-10-12 20:52:25 +00:00
Derick Rethans cd90395cb6 - MFH: Apperently you can't store NULL pointer values into Zend hashes - god
know why not - so we won't store those in the cache anymore.
2005-10-12 19:49:59 +00:00
Ilia Alshanetsky 49678f0908 MFH: Fixed bug #34758 (PDO_DBLIB did not implement rowCount()). 2005-10-12 15:03:03 +00:00
Antony Dovgal 25a82d8a5c fix compile warnings (again) 2005-10-12 14:43:30 +00:00
Antony Dovgal 67f27b0aef make GCC happy and improve CS a bit 2005-10-12 14:29:26 +00:00
Antony Dovgal 305e946358 MFH: nuke unused vars 2005-10-12 14:04:02 +00:00
Rob Richards 2580744813 MFH: use spprintf where appropriate 2005-10-12 13:58:10 +00:00
Antony Dovgal 2bc716c131 fix TS build 2005-10-12 13:31:46 +00:00
Rob Richards 0615bf6cb4 BFN 2005-10-12 03:21:36 +00:00
Rob Richards 855f7dfd95 MFH: Fixed Bug #27908 (xml default_handlers not being called)
Fix memleak when entitydecls are parsed
remove old ifdefs
2005-10-12 03:21:05 +00:00
foobar 28a0aef13e MFH: removed confusing dot. 2005-10-11 18:58:59 +00:00
foobar c0ec353655 fix test 2005-10-11 18:11:13 +00:00
Ilia Alshanetsky ea4734926e MFH: Fixed bug #33167 (Possible crash inside pg_fetch_array()). 2005-10-11 16:19:14 +00:00
Ilia Alshanetsky cc034dcb38 MFH: Fixed bug #34742 (ftp wrapper failures caused from segmented command
transfer).
2005-10-11 14:33:51 +00:00
Antony Dovgal ad73bdcbe0 fix #34757 (iconv_substr() gives "Unknown error" when offset > string length) 2005-10-11 13:50:52 +00:00
Dmitry Stogov bb8e5de181 Fixed bug #32455 (wrong setting property to unset value) 2005-10-11 10:15:40 +00:00
Dmitry Stogov 631da59b50 Fixed bug #34790 (preg_match_all(), named capturing groups, variable assignment/return => crash) 2005-10-11 06:47:48 +00:00
Antony Dovgal 062626d03e use proper macros and vars instead of strlen() 2005-10-10 20:06:35 +00:00
Antony Dovgal a5cea052e8 fix #34818 (new mysqli_stmt() and several others crash if the first parameter is not a valid mysqli_link) 2005-10-10 20:03:00 +00:00
Derick Rethans 44205dc58a - MFH: Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup
tables.
2005-10-10 16:42:32 +00:00
George Schlossnagle 9d79a201f1 Test seems potentially bogus. 2005-10-10 16:01:28 +00:00
Dmitry Stogov c61c3dd422 Fixed XML Schema error 2005-10-10 15:40:53 +00:00
Ilia Alshanetsky a5fe9808aa MFH: Fixed bug #34809 (FETCH_INTO in PDO crashes without a destination object). 2005-10-10 14:44:16 +00:00
Ilia Alshanetsky df71093dd8 bug fixing news 2005-10-10 14:31:21 +00:00
Ilia Alshanetsky 58a0906bf9 MFH: Fixed bug #34802 (Fixed crash on object instantiation failure). 2005-10-10 14:31:12 +00:00
Antony Dovgal 8152c64c02 BFN 2005-10-10 12:58:10 +00:00
Antony Dovgal 410e106aae fix #34810 (mysqli::init() and others use wrong $this pointer without checks) 2005-10-10 12:57:55 +00:00
Dmitry Stogov 3019a1c6a3 Fixed bug #34786 (2 @ results in change to error_reporting() to random value) 2005-10-10 10:53:52 +00:00
Dmitry Stogov b94970a3bd MFH 2005-10-10 10:50:16 +00:00
Antony Dovgal eef799a6ec BFN 2005-10-10 10:46:34 +00:00
Antony Dovgal c797466259 MF44: fix #33383 (crash when retrieving empty LOBs) 2005-10-10 10:44:39 +00:00
foobar ad28ef81c0 MFH: copypastetypofix 2005-10-10 10:28:53 +00:00
foobar d41c6dc6d6 MFH 2005-10-10 09:50:35 +00:00
Dmitry Stogov 45794ee259 Fixed bug #34467 (foreach + __get + __set incosistency) 2005-10-10 09:50:05 +00:00
Marcus Boerger 656f02fada - MFH Fix Logic 2005-10-10 06:09:25 +00:00
foobar 036f28f115 MFH: fix test 2005-10-10 05:57:21 +00:00
foobar 60d70459f3 extra spaces removed 2005-10-10 05:55:44 +00:00
Rob Richards b551a55bca MFH: PHP_CONFIG_FILE_PATH needs to use strlen() due to Win build 2005-10-10 02:26:56 +00:00
foobar b1d0f9bb43 typofix 2005-10-09 20:44:02 +00:00
foobar 0fefec1a35 BFN 2005-10-09 20:40:46 +00:00
foobar e403b15ebb MFH: - Fixed bug #34796 (missing SSL linking in ext/ftp when configured as shared). 2005-10-09 20:39:42 +00:00
Ilia Alshanetsky 412a28d124 MFH: Fixed bug #34777 (Crash in dblib when fetching non-existent error info). 2005-10-09 19:00:34 +00:00
Andrey Hristov 24af08eb80 add charsetnr and length to the object returned. this is kind of bug
because fetch_fields() and fetch_field() return that info and
fetch_field_direct() does not
2005-10-09 17:03:01 +00:00
Marcus Boerger 91682f88e4 - MFH Make test check for PlPgSQL before using it 2005-10-09 15:58:13 +00:00
Marcus Boerger a8c5828ce0 - MFH Add new test 2005-10-09 15:14:22 +00:00
Marcus Boerger de03dd6387 - MFH Fix potential SEGV with overloaded objects 2005-10-09 14:42:08 +00:00
Marcus Boerger bc81f55541 - MFH Bugfix #34704 (Infinite recursion due to corrupt JPEG) 2005-10-09 14:40:01 +00:00
Dmitry Stogov 303a642a0d Fixed bug #34788 (SOAP Client not applying correct namespace to generated values) 2005-10-09 12:41:44 +00:00
Pierre Joye 5dd9ad8f53 -fix build as shared or separate from main build (bfrance) 2005-10-09 12:06:27 +00:00
Dmitry Stogov 5ef3e0c57b Fixed bug #34787 (SOAP Client not handling boolean types correctly) 2005-10-09 11:05:46 +00:00
Georg Richter 94238838cf added Bugfix for #34785 2005-10-09 06:03:13 +00:00
Marcus Boerger 11f0ff9c1a - Update docu
- Synch class consts with HEAD
- Synch example RecursiveTreeIterator (as far as possible)
2005-10-08 19:09:58 +00:00
Georg Richter 7357ac0b96 fix for bug 34785:
added support for parent::__construct (mysqli_statement and mysqli_resultset)
  fixed failed testcases when sql_mode is in effect
2005-10-08 15:08:07 +00:00
Derick Rethans e3c8bd51de - MFH: Fixed bug #34676: missing support for strtotime("midnight") and
strtotime("noon").
2005-10-08 14:31:17 +00:00
Marcus Boerger 470da4e960 - MFH Add new test 2005-10-07 23:23:44 +00:00
Derick Rethans 5e46f636a5 - MFH: Make the Windows guessing routines actually return the guessed timezone. 2005-10-07 20:32:17 +00:00
Marcus Boerger faf80a4035 - BFN 2005-10-07 18:57:10 +00:00
George Schlossnagle 1f7c9e197c Test simple derivation from restriction. 2005-10-07 15:05:06 +00:00
Derick Rethans 6df3e40977 - MFH: Change parameter name because NetWare expands "tzname" as a macro to
something else.
2005-10-07 13:33:31 +00:00
Dmitry Stogov 2cbe63513c Fixed bug #34766 (possible crash on HTTP redirection) 2005-10-07 11:56:19 +00:00
Dmitry Stogov e011229598 Reverted last George patches 2005-10-07 08:23:35 +00:00
Derick Rethans 969f05a709 - MFH: Fixed bug #34771 (strtotime() fails with 1-12am/pm). 2005-10-07 08:09:01 +00:00
Derick Rethans 595ee08653 - MFH: New timezonemap data. 2005-10-07 08:06:40 +00:00
Marcus Boerger 6b0de601be - MFH C vs. C++ fix 2005-10-07 07:38:59 +00:00
foobar d8bb2766a8 maybe this month.. 2005-10-07 06:43:22 +00:00
George Schlossnagle fa3394eccb Permit correct usage of inherited encoders (from restriction/extension
"base" directives) for xml response decoding.
2005-10-07 05:14:52 +00:00
Marcus Boerger dec65f584b - MFH ReflectionClass::isInstantiable and abstract classes 2005-10-06 22:46:33 +00:00
George Schlossnagle abe0e61801 MFH: support complex types in restrictions and extensions 2005-10-06 22:30:24 +00:00
Marcus Boerger 35c82a75eb - MFH Fix issue (endless loop) with temp/memory streams 2005-10-06 21:31:25 +00:00
foobar e58513c4d0 BFN 2005-10-06 21:00:54 +00:00
Ilia Alshanetsky 71bd44ac02 MFH: Added missing safe_mode checks. 2005-10-06 20:47:41 +00:00
Johannes Schlüter d3dc0a39bc - MFH: Fix #34557 php -m exits with "error" 1 2005-10-06 20:29:41 +00:00
Rob Richards e1791bedd5 MFH: use sizeof instead of define 2005-10-06 18:48:19 +00:00
Marcus Boerger 6eaf1671b5 - Add new test 2005-10-06 18:34:16 +00:00
Derick Rethans f42742f796 - MFH: Fixed Windows build (patch by Mike) 2005-10-06 13:03:43 +00:00
Marcus Boerger cb83e27b02 - MFH (faillog, streams, counting, .......) 2005-10-06 09:42:17 +00:00
Rob Richards 93ffc14028 MFH: fix buffer lengths passed to snprintf 2005-10-05 22:36:10 +00:00
Antony Dovgal b33c2d9b17 nuke unused variable 2005-10-05 22:17:38 +00:00
Antony Dovgal 8a929e054e use the right constant name in error messages 2005-10-05 22:14:52 +00:00
Marcus Boerger b29b16af2e - Synch RecursiveIteratorIterator, fixes a few memory corruptions/memleaks 2005-10-05 21:59:13 +00:00
Marcus Boerger 3ced246dfc - MFH Update examples 2005-10-05 19:11:51 +00:00
Rob Richards 3282497f82 MFH: fix ZTS build 2005-10-05 16:40:21 +00:00
Ilia Alshanetsky bcf354a97a MFH: Missing safe_mode/open_basedir checks for file uploads. 2005-10-05 14:35:30 +00:00
Derick Rethans 3abc925a8a - Committing some changes that make PDO+SPL not crash anymore. These are done
by Marcus. and I'm committing them in order to actually use PHP 5.1 without
segfaulting when apache starts. This is not necessary the best solution.
2005-10-05 13:51:46 +00:00
Derick Rethans e1661efced - Implement correct Windows timezone guessing. 2005-10-05 11:06:56 +00:00
Antony Dovgal 1f6debba12 MFH: fix test 2005-10-05 09:00:36 +00:00
Derick Rethans 33a91ad309 - Fixed typo. 2005-10-05 08:23:39 +00:00
Derick Rethans c3678550a3 - Implemented tzcache
- Attempt at Windows detection code
2005-10-05 08:20:44 +00:00
Dmitry Stogov 6cbe6d7d52 Fixed throwing exceptions derived from SoapFault 2005-10-05 07:02:30 +00:00
Ilia Alshanetsky f2ed06347b MFH: Fixed possible INI setting leak via virtual() in Apache 2 sapi. 2005-10-05 00:43:38 +00:00
Antony Dovgal 1b8ecbcf54 MFH: fix #34723 (array_count_values() strips leading zeroes) 2005-10-04 20:48:17 +00:00
Antony Dovgal e0e9b5ac39 fix #34731, patch by novicky at aarongroup dot cz 2005-10-04 18:15:18 +00:00
Antony Dovgal 3d8dc4d3b1 fix #32179 (xmlrpc_encode() segfaults with recursive references) 2005-10-04 11:18:02 +00:00
Marcus Boerger 0a50368580 - Add optional dep for SPL under windows too 2005-10-04 07:47:11 +00:00
Marcus Boerger 4d631ec31b - Add optional dependency to SPL 2005-10-04 07:44:56 +00:00
Antony Dovgal 6df490d0ca MFH: nuke warning 2005-10-03 23:48:21 +00:00
Antony Dovgal 262cbbe8d0 include php_version_compare() declaration and eliminate warning 2005-10-03 23:37:10 +00:00
Antony Dovgal ffe605f2ed free cls_methods correctly and fix segfault on shutdown
(no bug entry and MFB, though..)
2005-10-03 23:27:26 +00:00
foobar 1c667a88e7 MFH 2005-10-03 20:21:02 +00:00
Marcus Boerger 061ff97f69 - MFH Throw an exception if an illegal string value is being used in
ArrayObject::offsetSet()
2005-10-03 17:59:56 +00:00
Marcus Boerger 308a64bc08 - MFH Really allow SXE being shared by not using anything from it directly in SPL 2005-10-03 16:05:08 +00:00
Marcus Boerger 42728f947c - Synch (to decrease number of diffs) 2005-10-03 15:43:40 +00:00
Marcus Boerger 0a2e6f723e - MFH change require to require_once 2005-10-03 15:06:27 +00:00
Ilia Alshanetsky 8a5bd01a44 MFH: GLOBALS protection for extract() function. 2005-10-03 14:04:16 +00:00
Marcus Boerger 31f8d7dc20 - MFH Update example 2005-10-03 13:36:18 +00:00
Marcus Boerger 48d9adc3f0 - MFH Allow uncached global functions 2005-10-03 12:36:36 +00:00
Derick Rethans e117d540d1 - MFH: Only use external database when it is newer than the builtin one. 2005-10-03 11:34:51 +00:00
Derick Rethans afccca77dd - MFH: Allow an external Timezone Database to be used. 2005-10-03 11:17:28 +00:00
Dmitry Stogov d09fbaa495 MFH (Bug #34643 wsdl default value) 2005-10-03 09:53:13 +00:00
Marcus Boerger 184309c2e9 - MFH Fix issue with RecursiveArrayIterator::getChildren() 2005-10-03 09:14:30 +00:00
Dmitry Stogov 594fd87ca7 Fixed bug #34678 (__call(), is_callable() and static methods) 2005-10-03 09:12:19 +00:00
Dmitry Stogov 728acc3785 Fixed bug #34358 (Fatal error: Cannot re-assign $this) 2005-10-03 08:21:51 +00:00
Ilia Alshanetsky 9a0bed9863 MFH: Fixed memory leak. 2005-10-03 03:54:06 +00:00
Wez Furlong 612dab64ee fix type 2005-10-03 00:55:23 +00:00
Marcus Boerger b76dcd68ee - MFH add new example 2005-10-02 23:12:35 +00:00
Wez Furlong a750f195cd Fix Bug #34687; error information from query() not passed back 2005-10-02 22:11:19 +00:00
Marcus Boerger 991a29cfd6 - MFH PDOException base 2005-10-02 20:38:18 +00:00
Marcus Boerger ca9dd7d826 - Add PDO::setAttribute(PDO::ATTR_STATEMENT_CLASS) 2005-10-02 20:07:11 +00:00
Marcus Boerger 0ea0e1615f - MFH Add new example 2005-10-02 17:33:05 +00:00
Derick Rethans 224e1f50ae - timelib_config.h should stay too. 2005-10-02 16:30:42 +00:00
Derick Rethans 6333f71ea3 - parse_date.c should not be here, as "make clean" removes it then. 2005-10-02 16:01:11 +00:00
Wez Furlong c19322869b use the right macro for these 2005-10-01 19:19:36 +00:00
Greg Beaver ba3862b369 set error_reporting to E_ALL in Makefile.frag 2005-10-01 16:05:44 +00:00
Marcus Boerger 13dc73940d - SPL may extend SimpleXML (if present) 2005-10-01 15:46:31 +00:00
Marcus Boerger 69722777a0 - Allow xpl/simplexml integration with simplexml being built shared 2005-10-01 15:41:37 +00:00
Derick Rethans 08b5c498ce - Implemented better timezone guessing algorithm. 2005-10-01 15:04:07 +00:00
Wez Furlong 932346c00f Allow compilation with PHP 5.0.x
Closes PECL #5514
2005-10-01 02:48:11 +00:00
foobar 56f006a998 fix bfn 2005-10-01 02:01:23 +00:00
Pierre Joye 4c4b955dce - entry for #33125 2005-09-30 21:01:38 +00:00
Pierre Joye 655743c4e7 - #33125, imagecopymergegray produces mosaic rainbow effect
at some point the alpha emulation formula has been broken
  restored.
2005-09-30 20:48:05 +00:00
Marcus Boerger 91e31d0243 - Try to fetch the necessary file via wget 2005-09-30 17:03:22 +00:00
foobar dfc8044098 reorder,reword,merge 2005-09-30 10:26:18 +00:00
Wez Furlong 69f0675a35 Fix for PECL #5433 (rowCount() not set) 2005-09-30 04:19:24 +00:00
Marcus Boerger b47525e508 - TSRM fix 2005-09-29 19:57:13 +00:00
Ilia Alshanetsky 941ac55d2f Removed unnecessary component that accidentally snuck-in 2005-09-29 16:39:37 +00:00
Ilia Alshanetsky 09540ee965 MFH:
Fixed possible crash and/or memory corruption in import_request_variables()
Fixed potential GLOBALS overwrite via import_request_variables().
2005-09-29 16:30:51 +00:00
Dmitry Stogov e2599c3dbf Fixed wrong array autodetection 2005-09-29 10:02:11 +00:00
Ilia Alshanetsky 1a04335ec2 MFH: Fixed possible GLOBALS variable override when register_globals are ON.
MFH: Fixed possible register_globals toggle via parse_str().
MFH: Fixed negative offset handling in substr_compare() function.
2005-09-28 22:39:52 +00:00
Dmitry Stogov ba5f66777e Fixed bug #34453 (parsing http://www.w3.org/2001/xml.xsd exception) 2005-09-28 11:24:18 +00:00
Dmitry Stogov 386a3b9305 Fixed bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called) 2005-09-27 18:07:41 +00:00
Dmitry Stogov 4329db25a1 Fixed bug #34643 (wsdl default value has no effect) 2005-09-27 15:25:10 +00:00
Ilia Alshanetsky 72857b6dbb MFH: Fixed bug #32937 (open_basedir looses trailing / in the limiter). 2005-09-27 15:07:49 +00:00
Marcus Boerger c0cb5a83bf - BFN 2005-09-27 08:23:20 +00:00
Wez Furlong 006922ba18 ensure that this size is initialized correctly 2005-09-26 21:37:33 +00:00
Ilia Alshanetsky ef04eea493 Touch generated file 2005-09-26 19:34:09 +00:00
Ilia Alshanetsky 846b0826ab MFH: upgraded bundled libsqlite3 to version 3.2.7 2005-09-26 19:33:26 +00:00
Marcus Boerger 15c9f414a6 - MFH: Reset global pointer to NULL after mem free (required for apache 1.3) 2005-09-26 17:56:26 +00:00
Ilia Alshanetsky c508b5e66a Bug fixing news 2005-09-26 15:14:49 +00:00
Ilia Alshanetsky 9daaedc125 Fixed bug #34645 (ctype corrupts memory when validating large numbers). 2005-09-26 15:14:19 +00:00
Marcus Boerger 049882f29c - Try to fix bugs #34216 (Segfault with autoload) and #34584 (Segfault with
SPL autoload handler)
2005-09-25 18:04:35 +00:00
Ilia Alshanetsky f4a15e4fb8 Bug fixing news 2005-09-25 13:27:20 +00:00
Ilia Alshanetsky d696f11814 MFH: Fixed bug #34321 (Possible crash in filter code). 2005-09-25 13:26:30 +00:00
Wez Furlong 57641c166f reinstate this fix for building against PHP 5.0.x.
This works fine against PHP 5.1 too; if you revert this, you'd better have an
awesome technical reason, or I'll remove your karma.
2005-09-25 02:28:42 +00:00
Wez Furlong fdd42afa6c Fixup LOB handling for inserts (refs #34630).
Also tripped over the return of PECL #5200; looks like mysql doesn't return an
accurate length for the columns.  The PDO driver will sanity check the real
length against the buffer size it allocated (based on the info provided by
mysql), so that we won't overrun the buffer.  In addition, if a varchar field
is reported as having a length of less than 128, we'll allocate 128 just in
case.

If the data is truncated, report it via the appropriate sqlstate code.

There must be a better way to do this stuff.
2005-09-25 02:05:03 +00:00
Wez Furlong fab0baa274 refs #34630.
Real lob support for oracle will appear after the PHP 5.1 release.
2005-09-25 00:47:00 +00:00
Marcus Boerger 06550ce8e0 - MFH: Rename here too 2005-09-24 23:48:58 +00:00
foobar 2352850c52 Revert the "fix". It works fine when you use PHP_5_1 2005-09-24 23:33:58 +00:00
foobar 1536082186 fix typo 2005-09-24 23:23:25 +00:00
Marcus Boerger a349428685 - MFH: Serializeable was renamed to Serializable long ago 2005-09-24 23:19:24 +00:00
Wez Furlong 4fb5b322ee 99% certain that this fixes PECL #5366 and PECL #5391. 2005-09-24 19:15:23 +00:00
Wez Furlong 3905ce46d9 Refs #34630 2005-09-24 18:55:56 +00:00
Wez Furlong 4f7d14f8d9 a test for bug #34630 2005-09-24 18:54:50 +00:00
Wez Furlong 6cc5e191d0 Refs #34630 2005-09-24 18:47:50 +00:00
foobar 0d9bc3a679 Documentation belongs elsewhere 2005-09-24 18:18:58 +00:00
Edin Kadribasic ba8a8d9f25 Allow php extensions to use php_escape_shell_cmd() and php_escape_shell_arg(), needed for mbstring 2005-09-24 15:22:32 +00:00
Edin Kadribasic 4566f48777 Build PDO and SQLite as shared 2005-09-24 15:13:13 +00:00
Pierre Joye c81c189198 - MFH #33220, infinite loop while loading invalid GIF (nlopees) 2005-09-24 14:39:16 +00:00
Edin Kadribasic a952406eb3 sqlite3.h is a generated file 2005-09-24 14:21:29 +00:00
Edin Kadribasic 35b7ad00a6 Declare functions used by driver as PDO_API in php_pdo_driver.h 2005-09-24 14:18:01 +00:00
Antony Dovgal 6cf5be04d6 MFH: fix test 2005-09-23 10:34:20 +00:00
Anantha Kesari H Y a3a2fe37af NetWare LibC don't have socketpair function. So enabling socket_create_pair functionality only if socketpair is available in the host LibC.
--Kamesh
2005-09-23 09:54:31 +00:00
foobar 09f0161160 ws fix 2005-09-23 09:40:24 +00:00
Antony Dovgal e3a1bf1e62 MFH 2005-09-23 09:40:16 +00:00
Antony Dovgal 5ece2f6369 add new tests 2005-09-23 09:39:00 +00:00
Antony Dovgal d38a901189 - store current value of error_reporting only if it's not stored yet
- reset old_error_reporting to NULL only it points to the tmp_var at current opline
2005-09-23 09:36:43 +00:00
Anantha Kesari H Y 5337c02684 In NetWare two binaries with the same name can not be loaded in kernel address space(This is the default behaviour for NetWare apache webserver and hence PHP extensions also get loaded in kernel address space) simultaneoulsy. As the current autoconf built mysql extension is built as mysql.nlm this forbids the loading of mysql client binary. To work around this NetWare idiosyncrasy prefixing all the extensions with "php" except php5lib(phpts.dll eqivalent of Windows). I could have named this extensions prefixed with "php_" but "_" is eaten from the exported symbol prefix by the GCC cross compiler for NetWare so sticking to "php".
This fixes the issue of not needing "PHP_SUBST(EXTENSIONNAME_SHARED_LIBADD)" in all the extensions especially when they need to be built shared.

--Kamesh
2005-09-23 09:25:18 +00:00
foobar b5017bd725 MFH: Improved the fix for #21306 a bit 2005-09-23 08:14:13 +00:00
Dmitry Stogov d6c7d9630b MFH 2005-09-23 07:12:07 +00:00
Antony Dovgal 0dce979bfc MFH: fix #32081 (mysqli_real_connect(): mysqli.default_socket in php.ini has no effect) for real 2005-09-22 20:14:34 +00:00
Antony Dovgal eef28dacec bump API number 2005-09-22 19:13:32 +00:00
Antony Dovgal 8524b33feb BFN 2005-09-22 19:03:34 +00:00
Antony Dovgal f8e8c5534b MFH: fix #33771 (error_reporting falls to 0 when @ was used inside try/catch block) 2005-09-22 19:03:18 +00:00
Ilia Alshanetsky 0823526afe Fixed test 2005-09-22 16:24:51 +00:00
Edin Kadribasic f0c27e68b2 Fix building of extensions that inlcude extname/header.h 2005-09-22 13:16:30 +00:00
foobar cd63787e9a - Fixed bug #34583 ("make install" prematurely fails because of PEAR) 2005-09-22 13:04:12 +00:00
Marcus Boerger 8bba75f0f8 - BFN 2005-09-21 23:00:29 +00:00
Marcus Boerger f3c44f6065 - MFH Fixed Bug #34590 User defined PDOStatement class can't implement
methods
- Reimplement Traversable interface
# If there is a problem with this i need a backtrace. As far as i can
# tell by gdb/valgrind/logic there is no error here. But missuse leads to
# the same error report casing the exclusion of interface Traversable.
2005-09-21 22:58:39 +00:00
Marcus Boerger a72a517e2f - Add ability to execute .php generated from .phpt on failure without the
need to manually set the environment.
2005-09-21 18:40:56 +00:00
Dmitry Stogov 0988162649 Fixed memory corruption 2005-09-21 15:55:07 +00:00
Dmitry Stogov 3d41ebf595 Allow fopen() make HTTPS requests throug HTTP proxies 2005-09-21 15:04:26 +00:00
Ilia Alshanetsky 20c3266588 fixed compiler warnings 2005-09-21 13:23:00 +00:00
Ilia Alshanetsky 999a7acd71 MFH: Fixed bug #34565 (mb_send_mail does not fetch mail.force_extra_parameters) 2005-09-21 13:16:03 +00:00
Marcus Boerger 967413c58c - MFH Fix Bug #34243 ReflectionClass::getDocComment() returns no result 2005-09-21 09:56:51 +00:00
Derick Rethans 5e33a09f20 - MFH: Fixed definition in correct file. (Patch by Nuno) 2005-09-21 08:41:16 +00:00
Derick Rethans a51fc50b6e - MFH: Moved the FREE_OP to after the execution of the included file, or eval
statement so that it is safe to access this information in the overridden
  zend_execute() function, which is what Xdebug does.
2005-09-21 08:13:43 +00:00
Johannes Schlüter ddf3f9b068 - MFH: Remove HTML fragments from phpcredits() in CLI mode 2005-09-20 22:19:01 +00:00
foobar 529263d680 BFN 2005-09-20 20:59:00 +00:00
foobar de6b4c0091 MFH: - Fixed bug #21306 (catch bailouts of write handler during RSHUTDOWN) 2005-09-20 20:56:54 +00:00
Ilia Alshanetsky 4dff36f6b4 MFH: Allow overloading of PDO constructor. 2005-09-20 19:52:24 +00:00
Stanislav Malyshev bcb70109d2 fix crash on restarting static PHP having session modules loaded 2005-09-20 14:03:29 +00:00
foobar 462940cbb0 no irrelevant news here (pdo was never in PHP before, no point) 2005-09-20 07:18:54 +00:00
Wez Furlong 08a6122f54 MFH: use PDO:: class constants 2005-09-20 00:46:02 +00:00
Ilia Alshanetsky fe9db9ab0a Remove pointless PDO_ prefix 2005-09-20 00:44:51 +00:00
Ilia Alshanetsky bfe844e41e MFH: Make PDO use class constants 2005-09-20 00:35:21 +00:00
Marcus Boerger 9986219353 - MFH Fix filename 2005-09-19 19:03:53 +00:00
Antony Dovgal 33d913d9da MF5.0: add new test 2005-09-19 18:58:59 +00:00
Dmitry Stogov 5eb6b78c90 Fixed access to uninitialized value 2005-09-19 18:47:56 +00:00
Marcus Boerger e26ae04d5f - MFH Add deprecated/compatibility class for BC 2005-09-19 18:28:52 +00:00
Dmitry Stogov 9d3ac92729 MFH (removed unnecesary call to zval_ptr_dtor) 2005-09-19 17:50:24 +00:00
Dmitry Stogov 0ce7487110 Fixed access to memory that is already freed (in case of __call() method) 2005-09-19 16:28:54 +00:00
Dmitry Stogov 46488c8bb4 Fixed parameter passing incompatibilities.
Now it is possible to call array_pop(explode("&","1&2&3")) again.
2005-09-19 16:02:21 +00:00
foobar 116584297a cleanup, typos, etc 2005-09-18 20:34:43 +00:00
Antony Dovgal 9a1c6c55b8 fix build (declare extern HashTable pdo_driver_hash) 2005-09-18 18:05:59 +00:00
Marcus Boerger c3a79b5990 - MFH: Synch dosu 2005-09-18 17:52:09 +00:00
Marcus Boerger 8acd34d6d8 - MFH: Add missing docu/Synch 2005-09-18 17:39:54 +00:00
Marcus Boerger d1ee4b407c - Commite manually if not conatined in bunch commit 2005-09-18 17:16:17 +00:00
Marcus Boerger 7d918fae4c - Synch naming/move changes with HEAD
- Update tests/docu
# New functionality in CachingIterator/RecursiveIteratorIterator not MFHed
2005-09-18 17:15:04 +00:00
Wez Furlong 7e762989e7 move pdo_drivers -> PDO::getAvailableDrivers as part of namespacing sweep. 2005-09-18 14:13:08 +00:00
Edin Kadribasic 87071cf1d6 Added --add-modules-dir option to buidconf.js:
If this option is not specified buildconf.js will search for PECL
in the usual places (pecl, ../pecl).
Now it is possible to specify in which dirs additional modules reside
with say:
cscript /nologo win32/build/buildconf.js --add-modules-dir=../pecl_5_1 \
  --add-modules-dir=../php-gtk2
2005-09-17 20:00:01 +00:00
Antony Dovgal 3eb6167902 BFN 2005-09-16 23:56:12 +00:00
Antony Dovgal 21e809b7be MFH: check class_entry of this_ptr in Reflection API 2005-09-16 20:21:46 +00:00
Antony Dovgal 3fd2e85458 BFN 2005-09-16 17:12:12 +00:00
Antony Dovgal 4b9b5505f0 fix #34505 (possible memory corruption when unmangling properties with empty names)
2nd part
2005-09-16 17:11:02 +00:00
Antony Dovgal f43767b249 fix #34505 (possible memory corruption when unmangling properties with empty names)
1st part
2005-09-16 17:05:09 +00:00
Dmitry Stogov 27763b3666 Fixed bug #34478 (Incorrect parsing of url's fragment (#...)) 2005-09-16 15:48:30 +00:00
Dmitry Stogov e4a4ab60c7 Fixed bug #34518 (Unset doesn't separate container in CV) 2005-09-16 14:42:46 +00:00
Dmitry Stogov 8cf678c306 MFH (overriding of protected static property) 2005-09-16 13:42:49 +00:00
foobar 1bf64add7b correct flag 2005-09-16 12:09:17 +00:00
foobar 595e93be27 Fixed bug #34525 2005-09-16 12:06:41 +00:00
foobar 69edc17192 fix test 2005-09-16 07:41:08 +00:00
foobar ae281c372a - Fix tests due to changes in the error messages.
# Also nuked some CRLF's
2005-09-15 19:49:58 +00:00
Derick Rethans 7199bc5f86 - MFH: Fixed bug #34052 (date('U') returns %ld not unix timestamp). 2005-09-15 19:11:15 +00:00
Marcus Boerger c0ffebcee6 - Rename file class again by popular demmand: calling it SplFileObject now 2005-09-15 14:08:16 +00:00
foobar eb7e9b6bfc - Fixed error message grammar 2005-09-15 13:10:31 +00:00
Marcus Boerger 5ca5efcdda - Update docu 2005-09-15 03:54:42 +00:00
Marcus Boerger ca8596ab83 - Update with latest SPLchanges 2005-09-15 03:42:41 +00:00
Marcus Boerger 3fab7a3ed6 - No longer needed (moved into c) 2005-09-15 03:39:17 +00:00
Marcus Boerger a29501195f - MFH: Add new files 2005-09-15 03:38:03 +00:00
Marcus Boerger b4dd030782 MFH:
- Add SplObjectStorage
- Add RecursiveFilterIterator
- Rename Observer to SplObserver
- Rename Subject to SplSubject
- Move SPL constants to class constants
- Update docu
2005-09-15 03:33:04 +00:00
Derick Rethans a5f0cbed44 - Fixed shutdown order before RC2. 2005-09-14 20:08:31 +00:00
Marcus Boerger 650b76e542 - MFH: Improve error message 2005-09-14 18:23:48 +00:00
foobar d5809b85f9 MFH 2005-09-14 17:57:32 +00:00
foobar dc929d011c MFH 2005-09-14 15:53:02 +00:00
Ilia Alshanetsky 766e4b3c15 MFH: Fix error detection for queries such as OPTIMIZE 2005-09-14 15:34:58 +00:00
foobar bab59278d7 MFH 2005-09-13 21:40:46 +00:00
Ilia Alshanetsky c221e148d7 MFH: MFH: Make key() and current() take argument by value. 2005-09-13 13:24:38 +00:00
Antony Dovgal d3f03cc468 bfn 2005-09-13 09:20:36 +00:00
Antony Dovgal bd7a277d48 fix #34450 (Segfault when calling mysqli_close() in destructor) 2005-09-13 09:20:18 +00:00
Sara Golemon 196e54fc43 MFH(r-1.719) Plug leak of 1/2 bytes when converting from string/unicode 2005-09-12 17:44:21 +00:00
foobar 09f89c8cb0 MFH: Fixed build with phpize 2005-09-12 17:14:35 +00:00
Ilia Alshanetsky 2a7bd2b823 MFH: Fixed bug #34456 (Possible crash inside pspell extension). 2005-09-12 15:39:14 +00:00
Dmitry Stogov 9d1f2f30d3 Fixed bug #34199 (if($obj)/if(!$obj) inconsistency) 2005-09-12 11:48:57 +00:00
Dmitry Stogov 9a74c68a4c Additinal fix for bug #34277 (array_filter() crashes with references and objects) 2005-09-12 09:58:50 +00:00
Dmitry Stogov 21698c12fe Fixed huge memory leak in ZTS mode (backport from HEAD) 2005-09-12 09:06:15 +00:00
Dmitry Stogov 90236679e9 Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed) 2005-09-12 08:24:01 +00:00
Dmitry Stogov 5682438549 Better fix for exceptions in __sleep() 2005-09-12 07:13:54 +00:00
Wez Furlong 8dc3e7b147 When populating bound columns, override the returned type with the type
specified by the user in their bind.
2005-09-11 20:32:28 +00:00
Wez Furlong 9e9f413aeb Fix PECL Bug #5010 2005-09-11 19:44:26 +00:00
Greg Beaver af01525d1e prepare for using go-pear.phar 2005-09-11 17:39:15 +00:00
Ilia Alshanetsky be945f9fe2 Make use of 5.0+ features 2005-09-11 17:33:15 +00:00
Wez Furlong 81151a5dbf remove traversable interface; apparently it's not enough, and this stuff is too
magical to figure out wtf should be added.
2005-09-11 14:27:10 +00:00
Wez Furlong 497c7714e6 update manifest 2005-09-11 05:46:13 +00:00
Wez Furlong 77d3a41f8a update package.xml files and version numbers, in anticipation of a big bunch of releases. 2005-09-11 05:27:30 +00:00
Wez Furlong 1e37cc7b82 set version numbers to 1.0 2005-09-11 05:06:30 +00:00
Wez Furlong a55c4799aa MFH: reset the statement when closeCursor() is called. 2005-09-11 05:00:12 +00:00
Wez Furlong e53f6428ac merge George's fixes back from HEAD 2005-09-11 01:42:41 +00:00
Wez Furlong f4007c8f6b closes #33707: error information was not passed up to PDO::query(). 2005-09-10 21:38:07 +00:00
Wez Furlong edc39221c0 if a php bolean makes it as far as the parameter callback, it must really need
to be boolean; express is as native pgsql 't' or 'f'.

Add a test case for Bug #33876, which is a partially bogus bug.
2005-09-10 21:00:52 +00:00
Wez Furlong 5f47b4178e and touch the generated file 2005-09-10 20:58:57 +00:00
Wez Furlong e9c81e4983 actually register PDO_PARAM_BOOL as a constant (doh!).
When emulating bound parameters, pass booleans via the driver's quoter
method, so that is has an opportunity to tweak it.
Refs #33876: PDO misquotes/miscasts bool(false)
2005-09-10 20:58:19 +00:00
Wez Furlong 9c252b4b07 closes PECL #5027; PDO_FETCH_NAMED not handled via setFetchMode(). 2005-09-10 19:32:15 +00:00
Wez Furlong 2d16ed7706 Add test for this bug report; can't repeat the problem. 2005-09-10 19:27:29 +00:00
Wez Furlong efe24c0205 add __sleep and __wakeup functions to prevent serialize/deserialize from being used on PDO objects. Refs PECL #5217 2005-09-10 17:48:45 +00:00
Wez Furlong 6b0d0f7ceb allow exceptions thrown in __sleep to interrupt the serialization process. refs PECL #5217 2005-09-10 17:47:20 +00:00
Derick Rethans 7262ccfac9 - Fix version numbers as discussed to help version_compare for the PEAR folks. 2005-09-10 15:44:17 +00:00
Wez Furlong 0730fa2af9 Add PDOStatement::bindValue(), which is similar to bindParam(), except that
it binds the value of the zval at the time it is called, rather than keeping
a reference to the zval and taking the value at execute() time.
2005-09-10 15:32:04 +00:00
Dmitry Stogov 9305339d94 Changed "instanceof" and "catch" operators, is_a() and is_subclass_of() functions to not call __autoload(). 2005-09-09 06:48:49 +00:00
Ilia Alshanetsky 26bf79a15e MFH: Allow retrieval of query parse errors from SQLite. 2005-09-08 21:07:40 +00:00
Ilia Alshanetsky b5e2cc5197 MFH: Fixed bug #34420 (Possible crash inside curl_multi_remove_handle()). 2005-09-08 14:50:23 +00:00
Rob Richards 06e3607102 MFH: add save options parameter 2005-09-08 10:39:30 +00:00
Rob Richards 6818826bbd MFH: add additional constants
remove un-needed ifdefs
2005-09-08 10:37:57 +00:00
Rasmus Lerdorf 25c6fbe515 That line made no sense 2005-09-08 09:11:10 +00:00
Dmitry Stogov 42fb30298c Fixed crash on AIX 2005-09-08 06:19:07 +00:00
Greg Beaver 46783871e3 install-pear.phar removed -> moved to http://pear.php.net/install-pear.phar 2005-09-07 16:05:59 +00:00
Greg Beaver 6ed7a799af attempt to make new instructions clearer 2005-09-07 16:03:06 +00:00
Greg Beaver 38a52c5b0d change makefile to use phar and not source, if present 2005-09-07 15:59:53 +00:00
Dmitry Stogov 8a39d704c4 Fixed memory allocation bug 2005-09-07 15:36:31 +00:00
Ilia Alshanetsky 7f293b91b4 MFH: Upgraded SQLite 2 library in ext/sqlite to 2.8.16 2005-09-07 15:11:33 +00:00
Ilia Alshanetsky caa9702a5a Updated TODO 2005-09-07 02:33:12 +00:00
Ilia Alshanetsky a022e10c2d Simplify code by making use 5.1+ functions 2005-09-06 00:42:20 +00:00
Greg Beaver a3c168239d test version of install-pear.phar
can be removed if there is any issue
without changes to Makefile.frag, it is not actually used
2005-09-05 20:18:00 +00:00
foobar 27df981727 touch 2005-09-05 16:22:58 +00:00
foobar 020f1ba949 MFH: - Fixed bug #34311 (unserialize() crashes with characters above 191 dec) 2005-09-05 16:22:19 +00:00
foobar 1ee421ff66 BFN 2005-09-05 13:05:24 +00:00
Frank M. Kromann 635d65ab4e MFB: Fix for #34369
Add extra parameter to mssql_connect to force a new connection
2005-09-05 05:04:31 +00:00
Ilia Alshanetsky 084ab84411 Fixed compiler warning 2005-09-05 01:20:52 +00:00
Marcus Boerger 222900c4b0 - MFH 2005-09-04 18:55:03 +00:00
Wez Furlong d1be6c8152 assign a version number 2005-09-04 17:10:56 +00:00
Wez Furlong b6be0f9817 Allow ext/mysql to build against PHP 4 again; update package.xml ready for
release via PECL.
2005-09-04 04:51:23 +00:00
Edin Kadribasic 60b1f64cc7 touch 2005-09-04 00:48:59 +00:00
Edin Kadribasic 4e1b287b82 Fix for #34233 2005-09-04 00:47:59 +00:00
Edin Kadribasic 38317bb3bd Don't crash on invalid parameter #34203 (Wez) 2005-09-03 23:50:25 +00:00
foobar 6bc126681c reorder 2005-09-02 21:13:20 +00:00
foobar bd30309d65 BFN 2005-09-02 21:13:00 +00:00
Andrei Zmievski 0eabbc9f89 Fix bug #34307. We were not calling on_modify handler to set the default
value in case setting the one from .ini file failed.
2005-09-02 20:51:15 +00:00
Marcus Boerger a8355965bb - MFH Update docu 2005-09-02 19:11:10 +00:00
Ilia Alshanetsky 2b32ff53cd MFH: Resolved bug #34240. 2005-09-02 17:25:16 +00:00
Derick Rethans abcfcd3f2e - MFH: Added date_time_set, date_date_set and date_isodate_set() functions, and
setTime, setDate and setISODate() methods.
2005-09-02 14:58:01 +00:00
foobar 1890173d8c Revert 2005-09-02 14:05:46 +00:00
foobar 8c4d1f6657 MFH 2005-09-02 13:51:47 +00:00
Derick Rethans bb35f045df - MFH: Update timezone database to version "2005m". 2005-09-02 12:32:15 +00:00
Derick Rethans 00566c3949 - MFH: New layout for tz database file. 2005-09-02 11:40:27 +00:00
Derick Rethans 321732227f - Fixed bug #34304 (date() doesn't have a modifier for ISO Week Day). 2005-09-02 09:33:08 +00:00
foobar 170ef60d6f - Moved exts to PECL 2005-09-02 09:14:10 +00:00
foobar 96873fecef it is good idea to return something always 2005-09-02 08:24:14 +00:00
Dmitry Stogov 6319efa013 Fixed bug #34260 (Segfault with callbacks (array_map) + overloading) 2005-09-02 07:47:28 +00:00
Rob Richards 44840ace8e MFH: Fix key length so params passed by array can be retrieved by getParameter() 2005-09-02 06:38:02 +00:00
foobar a4673bd7b7 Fix test (week numbers below 10 are zero-prefixed now) 2005-09-02 05:17:42 +00:00
Ilia Alshanetsky 5f8809907a MFH: Fixed bug #34331 (php crashes when variables_order is empty). 2005-09-01 19:15:19 +00:00
foobar 64cfbf539f MFH: - Fixed bug #34307 (OnUpdateStringUnempty INI options can be set empty) 2005-09-01 14:44:15 +00:00
George Schlossnagle 248c30dad7 MFH. Protect against underflow - refs http://pecl.php.net/bugs/bug.php?id=5193 2005-09-01 14:44:11 +00:00
foobar 1978e9109f MFH 2005-09-01 14:33:47 +00:00
Wez Furlong 41901d127c portability fix (for solaris) 2005-09-01 13:59:03 +00:00
Dmitry Stogov 4f161fe289 Fixed bug #34137 (assigning array element by reference causes binary mess) 2005-09-01 13:21:37 +00:00
Dmitry Stogov 7fda1750f1 MFH 2005-09-01 13:03:00 +00:00
Derick Rethans 9057102e6e - MFH: Fixed bug #33414 (Comprehensive list of incorrect days returned after
strtotime() / date() tests).
2005-09-01 12:42:39 +00:00
Dmitry Stogov e615889d6b Fixed bug #34277 (array_filter() crashes with references and objects) 2005-09-01 12:00:37 +00:00
foobar 5253ea11de NSF 2005-09-01 11:59:47 +00:00
Dmitry Stogov 40f971b5b6 Fixed bug #34310 (foreach($arr as $c->d => $x) crashes) 2005-09-01 10:54:38 +00:00
Dmitry Stogov 248345d920 Support for class constants and static members for internal classes 2005-09-01 10:05:32 +00:00
foobar 655cb3aaf7 MFH 2005-09-01 08:25:52 +00:00
Ilia Alshanetsky 156a899e4a MFH: Fixed bug #34001 (pdo_mysql truncates numberic fields at 4 chars) 2005-09-01 01:57:01 +00:00
foobar 28796e9aa6 Fixed bug #34323 2005-08-31 22:28:55 +00:00
Rob Richards ab78a63357 MFH: make sxe_properties_get respect namespace scope 2005-08-31 17:00:46 +00:00
foobar 2ec2739c19 Update credits 2005-08-31 14:59:20 +00:00
foobar b08c3d880e - Moved ext/oracle to PECL 2005-08-31 14:58:27 +00:00
foobar 307ec8ece4 MFH:- Fixed bug #34306 (wddx_serialize_value() crashes with long array keys) 2005-08-31 14:31:44 +00:00
Derick Rethans 9230473cd3 - Fixed bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number). 2005-08-31 14:29:23 +00:00
foobar d1a4819c09 Added test for bug #34310 2005-08-31 09:16:24 +00:00
Marcus Boerger 7c37c2c37e - MFH run-tests-config.php was never used and now renamed 2005-08-31 07:00:22 +00:00
George Schlossnagle b247dc3418 MFH, fix 34072 2005-08-31 04:06:10 +00:00
Ilia Alshanetsky 43f63e4753 MFH: Fixed bug #32589 (possible crash inside imap_mail_compose() function). 2005-08-30 22:03:29 +00:00
Marcus Boerger 99baa01aac - MFH (missing run-tests2.php rename part) 2005-08-30 18:44:07 +00:00
Derick Rethans 0e2491f553 - Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9). 2005-08-30 09:17:09 +00:00
Marcus Boerger cf39bec447 - BFN 2005-08-30 07:34:57 +00:00
Dmitry Stogov 7230be4951 Fixed possible memory leak 2005-08-30 07:22:23 +00:00
Ilia Alshanetsky ba38b8a9c9 Mark pspell as working 2005-08-29 23:32:59 +00:00
Sara Golemon 5fc9d15692 MFH: allocate_new_resource() handles the malloc() for us. Don't leak by mallocing twice. 2005-08-29 22:05:25 +00:00
foobar 805ca9c51f MFH 2005-08-29 14:46:17 +00:00
Ilia Alshanetsky f02aa075cb Upgraded bundled SQLite library for PDO:SQLite to 3.2.5 2005-08-28 16:54:26 +00:00
Ilia Alshanetsky c6aae12cc1 Upgraded bundled SQLite library for PDO:SQLite to 3.2.5 (step 1) 2005-08-28 16:53:27 +00:00
Rob Richards 3a21310f37 BFN 2005-08-28 16:23:48 +00:00
Rob Richards 1b02f3ec31 MFH: Fixed bug #34276 (setAttributeNS doesn't work with default namespace)
Add test
2005-08-28 16:23:25 +00:00
foobar 2b53e96832 Nuke misinformation 2005-08-28 01:10:17 +00:00
foobar 11eeb0c3ac This is no longer required 2005-08-28 01:10:00 +00:00
foobar 0c4867144a - Fixed bug #34284 (CLI phpinfo showing html on _SERVER["argv"]) 2005-08-28 01:03:41 +00:00
foobar 5dd6467bd0 MFH 2005-08-28 00:46:36 +00:00
Marcus Boerger a596d53131 - MFH 2005-08-26 15:35:47 +00:00
Derick Rethans b842d8e3d8 - MFH: Fixed a bug where stream_get_meta_data() did not return the "uri"
element for files opened with tmpname().
2005-08-26 12:56:07 +00:00
Ilia Alshanetsky 980b9be4b4 Fixed bug #34214 (base64_decode() does not properly ignore whitespace) 2005-08-26 03:32:31 +00:00
Rob Richards 293beeb74a MFH: Fix URI escaping 2005-08-26 02:29:56 +00:00
Marcus Boerger 2e4c7dbb03 _ MFH 2005-08-25 22:06:52 +00:00
Marcus Boerger ce6abe492c - MFH Fixed bug #34257 (lib64 not handled correctly in ming extension). 2005-08-25 22:02:29 +00:00
foobar 4f89b2e0cb Fix crash with e.g. stream_get_meta_data() 2005-08-25 12:25:10 +00:00
Derick Rethans d3326d5b26 - MFH: Fixed bug #34087 for real.
- MFH: Windows compile fixes.
2005-08-25 09:47:28 +00:00
Ilia Alshanetsky 30b14ee8e9 MFH: Remainder of the 34191 bug fix. 2005-08-24 16:19:57 +00:00
foobar e96c51a175 PCRE lib is 6.2 2005-08-24 14:48:57 +00:00
Derick Rethans 164b4ad4dd MFH:
- Fixed bug #34087 (strtotime() does not work with date format "Y/m/d").
- Make use of YYMAXFILL.
- Added support for using a . as hour/minute/second separator.
2005-08-24 13:39:34 +00:00
Dmitry Stogov da4096c210 Fixed boolean encoding (from 0/1 to false/true) to support some buggy soap SDKs.
Fixed support for missing nillable elements of sequnces.
2005-08-24 11:46:11 +00:00
Dmitry Stogov 19dc0411f7 Fixed return-by-reference from internal functions 2005-08-24 10:41:06 +00:00
Johannes Schlüter 9e0ed1cb67 - MFH: Fix alphabetic order and add missing class 2005-08-24 10:17:43 +00:00
foobar 82d8cfb681 MFH 2005-08-23 21:40:26 +00:00
Ilia Alshanetsky 31dcd92f46 removed unused vars 2005-08-23 15:16:02 +00:00
Greg Beaver ae8a3a0f9e sync with PEAR 1.3.6 2005-08-22 22:09:54 +00:00
Greg Beaver de247c88cd add XML_RPC 1.4.0 2005-08-22 22:06:27 +00:00
Greg Beaver e5c570997e move Archive_Tar 1.3.2 => 1.3.1
1.3.2 does not exist
2005-08-22 21:51:15 +00:00
Ilia Alshanetsky b8cc3a9c32 MFH: Make dba extension support BerkleyDB 4.3. 2005-08-22 19:59:28 +00:00
Stanislav Malyshev 33df597531 fix crash if throw attempted outside of executable code 2005-08-22 13:26:33 +00:00
Ilia Alshanetsky daa209297d MFH: Fixed bug #34191 (ob_gzhandler does not enforce trailing \0). 2005-08-21 16:03:21 +00:00
Greg Beaver f4eb5095a6 add checks for extensions that must be loaded 2005-08-20 18:31:29 +00:00
Pierre Joye f7ef84c32d - fix bad revert and make the xmlrpc ext detections fallback
forgot that 5.1 still has pear in its branche
2005-08-18 21:29:28 +00:00
Wez Furlong b31ff96be9 Add ext to the include path. 2005-08-18 20:17:50 +00:00
Ilia Alshanetsky 3b329a9926 MFH: Fixed bug #34156 (memory usage remains elevated after memory limit is
reached);
2005-08-18 15:14:12 +00:00
Antony Dovgal 4e798f6e02 MFH: fix memleak 2005-08-18 15:13:45 +00:00
foobar 9477097564 MFH: Nuked EOLs from error messages 2005-08-18 13:34:41 +00:00
foobar 75d362225c MFH 2005-08-18 12:54:44 +00:00
foobar 286d53397a MFH 2005-08-18 12:40:41 +00:00
foobar a23aec662c MFH: nuked eol from error message 2005-08-18 12:34:22 +00:00
Ilia Alshanetsky e134382a71 MFH: Fixed bug #33987 (php script as ErrorDocument causes crash in Apache 2). 2005-08-18 01:14:42 +00:00
Greg Beaver 94c7fd0603 add return by ref from PEAR::raiseError 2005-08-17 21:48:46 +00:00
Greg Beaver 1dd48ca039 re-enable XML_RPC 1.4.0 2005-08-17 21:30:46 +00:00
foobar f286018dd0 MFH 2005-08-17 17:03:52 +00:00
foobar 617716b171 BFN 2005-08-17 16:56:20 +00:00
Ilia Alshanetsky 690f2ab5ed Added test for bug #34087 2005-08-17 15:31:57 +00:00
Dmitry Stogov 976edd47e2 Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault) 2005-08-17 11:54:34 +00:00
foobar 5516735c88 MFH 2005-08-17 07:54:07 +00:00
Zeev Suraski cf1b4cf673 Introduce SoapClient::__setSoapHeaders() 2005-08-17 07:04:16 +00:00
Marcus Boerger e8b05734be - Prevent E_STRICT from ending up as exception 2005-08-16 18:10:34 +00:00
Ilia Alshanetsky 5610ad29e3 MFH: Fixed bug #34148 (+,- and . not supported as parts of scheme). 2005-08-16 14:20:41 +00:00
Zeev Suraski 23d4f9882f Go back to dev 2005-08-16 12:01:42 +00:00
Edin Kadribasic ca24e21972 Rebundle XML_RPC in the correct version for the Windows distro. 2005-08-16 11:35:45 +00:00
Zeev Suraski 2c6d0f8c48 Roll RC1 2005-08-16 10:59:56 +00:00
Dmitry Stogov 496bc9fce3 Fixed memory leak 2005-08-16 10:49:25 +00:00
Edin Kadribasic d327027ea9 Use free() instead of PQfreemem() to maintain compabitibility with older
PostgreSQL client libraries (bug #33813).
2005-08-16 09:55:44 +00:00
Ilia Alshanetsky 81b6d3e725 MFH: Input validation part 2. 2005-08-16 00:25:39 +00:00
Ilia Alshanetsky 9711fbace9 Chunk the output 2005-08-15 23:23:40 +00:00
Rob Richards a47eec0754 BFN 2005-08-15 17:14:35 +00:00
Rob Richards 8bdc4285aa MFH: Fixed bug #34103 (line numbering not maintained in dom document) 2005-08-15 17:13:57 +00:00
Ilia Alshanetsky bbd37d99e1 MFH: input validation. 2005-08-15 16:01:53 +00:00
Johannes Schlüter 0d993d2172 - Fix tab-completion for constants. 2005-08-14 13:07:15 +00:00
Wez Furlong 812c1e0475 MFH, compiler detection 2005-08-12 20:08:14 +00:00
foobar e46cd60d89 - Fixed bug #33326 (Cannot build extensions with phpize on Macosx). 2005-08-12 15:15:17 +00:00
Dmitry Stogov a0d479994f Fixed typo (ZVAL_LONG() -> ZVAL_DOUBLE()) 2005-08-12 14:56:59 +00:00
foobar b31f168184 - Fixed bug #34097 (configure failed to initize RE2C="exit 0;" when re2c is not found) 2005-08-12 13:53:27 +00:00
foobar 54df2c9d36 no DOS EOLs! 2005-08-11 23:53:59 +00:00
foobar 4ddaf76efc - Fixed test 2005-08-11 23:51:35 +00:00
foobar 417f113940 MFH 2005-08-11 23:45:22 +00:00
foobar 0941045fcc MFH 2005-08-11 23:05:34 +00:00
foobar e274f52bbf - Regenerated. 2005-08-11 22:36:47 +00:00
foobar 2f594ec2b3 BFNS 2005-08-11 22:34:10 +00:00
Marcus Boerger 6c87db9e99 - And this is version 5.1 2005-08-11 21:41:30 +00:00
Antony Dovgal 974adb419a BFN 2005-08-11 21:21:31 +00:00
Antony Dovgal 565c7708ca fix #34078 (Reflection API problems in methods with boolean or null default values) 2005-08-11 21:16:20 +00:00
Marcus Boerger 256e6e3350 - MFH creadits to Johannes 2005-08-11 20:45:58 +00:00
Rasmus Lerdorf c792839d8f Remove pear/XML_RPC dependency for the pear installer
PEAR guys, please doublecheck this.
2005-08-11 16:43:26 +00:00
Frank M. Kromann 9aa81a786b Revert the last patch so we can release PHP 5.1 2005-08-11 03:54:06 +00:00
Rasmus Lerdorf ba8cfb4a93 Minor consistency cleanup 2005-08-10 23:33:10 +00:00
Ilia Alshanetsky 2a37a0c495 MFH: Fixed bug #34068 (Numeric string as array key not cast to integer in
wddx_deserialize()).
2005-08-10 22:45:31 +00:00
Dmitry Stogov daba35fead Fixed bug #34062 (Crash in catch block when many arguments are used) 2005-08-10 13:11:05 +00:00
Dmitry Stogov ebd4ab4d78 Fixed bug #25359 (array_multisort() doesn't work in a function if array is global or reference) 2005-08-10 12:02:52 +00:00
Dmitry Stogov 779e6d203e Fixed bug #34064 (arr[] as param to function in class gives invalid opcode) 2005-08-10 10:39:55 +00:00
Marcus Boerger 3bc9bc5de8 - MFH estrdup/strndup change (as hinted by Andi) 2005-08-10 08:36:46 +00:00
Dmitry Stogov 54931f5259 Fixed bug #33940 (array_map() fails to pass by reference when called recursively) 2005-08-10 08:22:01 +00:00
Dmitry Stogov 96d755978c Fixed bug #29253 (array_diff with $GLOBALS argument fails) 2005-08-10 07:43:07 +00:00
Dmitry Stogov f0f1557998 Fixed bug #34045 (Buffer overflow with serialized object) 2005-08-10 06:37:19 +00:00
Dmitry Stogov 1a29376c07 Fixed test file (.inc.php -> .php) 2005-08-10 06:10:04 +00:00
Andi Gutmans 995c3002aa - This didn't end up being included 2005-08-09 22:23:01 +00:00
Marcus Boerger 1c7eb15eea - MFH: PEAR uses .php not .inc.php (as discussed with Andi) 2005-08-09 21:13:04 +00:00
Derick Rethans d55f456497 - MFH:
- Fixed TSRM issue.
	- Added guessed timezone to phpinfo() output.
	- Initialize is_dst in some cases.
	- Corrected some test cases.
2005-08-09 21:10:22 +00:00
Sebastian Bergmann 96dfe589fe Sync with config.m4. 2005-08-09 06:25:24 +00:00
Andi Gutmans eeecc8a015 - No release today. Found a critical bug... 2005-08-09 05:40:56 +00:00
Andi Gutmans 01d8e59d3b - RC1 2005-08-09 05:08:59 +00:00
SVN Migration 4571221d8e This commit was manufactured by cvs2svn to create branch 'PHP_5_1'. 2005-08-08 23:59:05 +00:00
Andrei Zmievski e623e5352d Upgrade to PCRE version 6.2.
# Don't worry, upgrade for other branches is coming
2005-08-08 23:59:04 +00:00
Frank M. Kromann 1a7524d7c6 Make sure this works for multiple results as well 2005-08-08 23:09:06 +00:00
Frank M. Kromann 0030ec7f4e Remove debug code and optimize a bit 2005-08-08 22:55:56 +00:00
Magnus M��tt� 1b31cbdf1a makedev is a macro on several systems. 2005-08-08 21:44:58 +00:00
Frank M. Kromann 52e03bc612 News entry for Fix #32010 2005-08-08 21:35:03 +00:00
Frank M. Kromann 030542c238 Fix #32010. Leak in mssql_fetch_batch(). 2005-08-08 21:32:18 +00:00
foobar 2e4d679629 BFNSF 2005-08-08 18:07:07 +00:00
Hartmut Holzgraefe 4ad526693c finally!
cd some_extension
  phpize
  configure
  make
  make test # <<< THIS WORKS!!! :)
2005-08-08 17:57:35 +00:00
Hartmut Holzgraefe d4fd9a58cf put the -d extension loading options in the right place,
get rid of basename
2005-08-08 17:49:32 +00:00
foobar 98f245e5f9 Fix cleanup 2005-08-08 16:58:12 +00:00
foobar 000a9e3015 - Fixed problem with -dextension=foobar.so not having it's MINIT run. 2005-08-08 16:49:44 +00:00
Ilia Alshanetsky 919b0bd5b4 Adjust date("") handling. 2005-08-08 16:49:30 +00:00
foobar ee5fd96e37 - Made it possible to do "make test" for phpized extensions 2005-08-08 16:06:49 +00:00
foobar 0f2986fe9d - Show the dependancy name we could not find (req_mod is null here when it is not found :) 2005-08-08 14:25:05 +00:00
Dmitry Stogov c9103e18b0 Automatic encoding/decoding of hexbin data type (base64 support is improved) 2005-08-08 09:53:58 +00:00
Hartmut Holzgraefe 621238a3c3 fix extension loading from command line, resources didn't work
(still related to Bug #33899)
2005-08-08 08:45:33 +00:00
9a469dadd5 ChangeLog update 2005-08-08 05:39:44 +00:00
foobar 34f1c973a9 BFN 2005-08-07 22:09:06 +00:00
foobar df5cfe27b4 - Fixed bug #29334 (mail() provides incorrect message time header) 2005-08-07 22:06:29 +00:00
foobar 757a76df3f Missing entry 2005-08-07 21:00:28 +00:00
Hartmut Holzgraefe 3052233876 configure.in scripts/Makefile.frag scripts/phpize.in 2005-08-07 20:47:29 +00:00
Ilia Alshanetsky c59d0aeb0a Update todo. 2005-08-07 18:33:45 +00:00
Hartmut Holzgraefe 47ae4b0cb9 typo fix 2005-08-07 15:13:50 +00:00
foobar c1fee15561 This test failed because libxml versions differ.. 2005-08-07 14:22:10 +00:00
Derick Rethans 46854447c5 - Fix skip-if comment. 2005-08-07 12:48:31 +00:00
ae7ba4bf58 ChangeLog update 2005-08-07 05:35:13 +00:00
Pierre Joye a26f8ca351 - each file needs a role
NB: "Fix" 1.4 to do what 1.3 does
2005-08-07 00:50:36 +00:00
Pierre Joye e451fb4a42 - add package2.xml 2005-08-06 23:31:12 +00:00
Pierre Joye b345d31ffd - prepare release 2005-08-06 23:30:50 +00:00
Edin Kadribasic 017df4e790 Mention new library bundle on windows 2005-08-06 23:30:49 +00:00
Pierre Joye b80eaf1721 - fix examples 2005-08-06 23:09:29 +00:00
foobar 97d493effb BFN 2005-08-06 22:31:43 +00:00
Edin Kadribasic 6e5ddd7b30 Only link zlib if we dont compile it in (#3406) 2005-08-06 22:20:06 +00:00
Edin Kadribasic 36cc9d0d42 Add missing export 2005-08-06 22:18:41 +00:00
Rob Richards c47f0cc73b fix tests 2005-08-06 18:23:40 +00:00
Andrey Hristov f25c366a73 add a comment 2005-08-06 16:56:42 +00:00
Andrey Hristov 313ff9998e add error checking 2005-08-06 16:38:48 +00:00
Andrey Hristov dcc18b6d6f fix problem on 64 bit - when asking for "l" supply long not int because
on 64 bit they differ and zend_parse_parameters makes a *(long*) cast
which means that if the variable is int 4 bytes of the variable(s)
declared before it (on the stack) will be overwritten. In this case
this is the length of the query -> made 0 and mysqli_query() returns
FALSE.
2005-08-06 16:15:53 +00:00
Frank M. Kromann 7675a85828 Fix for #32531
No need to alias these functions on windows or if the mssql extension is compiled. This change will allow the use of both extensions at the same time.
2005-08-06 05:42:51 +00:00
2f4ee2fc86 ChangeLog update 2005-08-06 05:37:51 +00:00
Frank M. Kromann 806961aeee Cleanup to match the current cvs version of ming0.3beta 2005-08-06 05:30:20 +00:00
foobar 91860cf594 No HTML output if html_errors is off (bug #34006) 2005-08-05 22:37:48 +00:00
foobar 894237d531 Fix compile failure with GCC 4.0.x 2005-08-05 22:28:23 +00:00
foobar 8864ad2606 - This ini option is only effective when set in php.ini or httpd.conf
or .htacces, etc. as GPC variables are set before any ini_set() is called
2005-08-05 21:44:26 +00:00
foobar 4b0c39887c - Fixed bug #34015
# Whatever this test was supposed to try to test...sheesh..
2005-08-05 20:38:50 +00:00
Anantha Kesari H Y 9270751a7f NetWare specific stat structure issues.
--Kamesh
2005-08-05 14:03:57 +00:00
Dmitry Stogov 32d69c853a Fixed bug #33996 (No information given for fatal error on passing invalid value to typed argument) 2005-08-05 09:35:09 +00:00
foobar 3982f722c2 Skip test on solaris 2005-08-05 09:19:43 +00:00
Dmitry Stogov c10d6d3c89 Fixed bug #33999 (object remains object when cast to int) 2005-08-05 09:02:14 +00:00
foobar d77c684c42 - Changed -a to -A to prevent enabling PHP in httpd.conf automatically.
# Most distributions use separate file in a conf.d/ directory to enable
# PHP, using -a would add unnecessary line in the main httpd.conf and
# causes a warning during startup.
2005-08-05 08:14:54 +00:00
Dmitry Stogov a744a6feb5 Fixed memory leak in foreach() on undefined variable (Zend/tests/foreach_undefined.php) 2005-08-05 06:29:46 +00:00
85d77d8cea ChangeLog update 2005-08-05 05:40:03 +00:00
Wez Furlong 7ba278b7b2 test -e doesn't work on solaris 2005-08-04 16:57:15 +00:00
Derick Rethans f3d9a1adbd - Update TODO 2005-08-04 14:59:29 +00:00
Antony Dovgal b87970a956 add test for the last Dmitry's fix 2005-08-04 14:12:07 +00:00
Dmitry Stogov aafc593eb5 Fixed possible memory corryption during compilation of <?php foreach($a as $b); ?> 2005-08-04 14:04:36 +00:00
Dmitry Stogov 98e70ab585 Fixed bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP) 2005-08-04 10:34:39 +00:00
Dmitry Stogov 23e4102e95 Fixed clone bug in ze1_compatibilty mode 2005-08-04 08:36:54 +00:00
3887a6e835 ChangeLog update 2005-08-04 05:49:41 +00:00
Ilia Alshanetsky ecc34bddcc Fixed memory leak. 2005-08-03 18:26:16 +00:00
foobar 23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
foobar ce32c4ece7 update credits 2005-08-03 13:47:34 +00:00
foobar 916815b779 Bump up the year 2005-08-03 13:30:58 +00:00
foobar b732622dfa Nuked DOS EOLs 2005-08-03 13:29:00 +00:00
foobar b711486feb Bump up year 2005-08-03 13:28:14 +00:00
foobar 20241fe16a - 2004 -> 2005 2005-08-03 11:12:19 +00:00
d1623186d5 ChangeLog update 2005-08-03 05:36:05 +00:00
Derick Rethans ef28855f4e - Fix test. 2005-08-02 21:16:05 +00:00
Hartmut Holzgraefe 46a669b7fa make skipif test use ini options specified by -d command line options 2005-08-02 17:05:01 +00:00
Dmitry Stogov 650cdaed12 Fixed bug #33942 (the patch to #33156 crash cygwin except cli) 2005-08-02 17:01:17 +00:00
Ilia Alshanetsky 990f7043d9 Fixed bug #33958 (duplicate cookies and magic_quotes=off may cause a crash) 2005-08-02 17:01:05 +00:00
foobar 9f6e05964f - Fixed bug #33967 (misuse of Exception constructor doesn\'t display errorfile) 2005-08-02 16:31:53 +00:00
foobar 3593a55341 fix test when include_path does NOT have . in it 2005-08-02 15:13:21 +00:00
Dmitry Stogov b529831df8 Removed warnings 2005-08-02 12:11:55 +00:00
Dmitry Stogov c9571d7786 Fixed ZTS build 2005-08-02 11:15:42 +00:00
foobar 71df205907 BFN 2005-08-02 06:33:51 +00:00
cc3ceea197 ChangeLog update 2005-08-02 05:39:06 +00:00
Marcus Boerger cf7089972f - Need to expose this one too 2005-08-02 02:20:01 +00:00
Marcus Boerger fb5f1b7fad - Update version info 2005-08-02 00:00:41 +00:00
Edin Kadribasic 88fcc4859f Allow building gd on windows systems without t1lib (M. Sisolak) #33620 2005-08-01 21:57:09 +00:00
Edin Kadribasic d8cf02edb3 Allow building against the latest cclient 2005-08-01 20:55:31 +00:00
Dmitry Stogov 1066066436 Allow SOAP work when allow_url_fopen is turned off. 2005-08-01 11:38:02 +00:00
Dmitry Stogov cf6bb99723 Fixed bug #33723 (php_value overrides php_admin_value) 2005-08-01 07:46:54 +00:00
Derick Rethans a5efa0d4c3 - Fixed testcase. 2005-08-01 07:38:20 +00:00
560ac37280 ChangeLog update 2005-08-01 05:39:34 +00:00
foobar a78730c257 Added test for bug #27908 2005-07-31 21:59:01 +00:00
foobar ac19a759b6 - Fix test. 2005-07-31 21:18:16 +00:00
foobar 57be0d2ed7 fix test 2005-07-31 20:36:48 +00:00
Rob Richards 0cbcd08e7c SystemID and publicID params reversed in declaration handlers 2005-07-31 17:14:13 +00:00
Sebastian Bergmann f6ec1b481e Update TODO. 2005-07-31 16:40:49 +00:00
Ilia Alshanetsky 4f4f52d8b0 Update todo 2005-07-31 16:37:42 +00:00
ef11786501 ChangeLog update 2005-07-31 05:37:31 +00:00
foobar be10050d8f Added test for bug #25359 2005-07-30 13:37:57 +00:00
3c8d91f558 ChangeLog update 2005-07-30 05:37:45 +00:00
Wez Furlong 8fdec883ab switch to ansi declaration so that vs.net 2005 groks it. 2005-07-29 23:31:59 +00:00
Ilia Alshanetsky 4b935b9a8a Fixed sqlite build, sqlite3.h was not being correctly generated. 2005-07-29 20:41:52 +00:00
Ilia Alshanetsky 1564872062 Backport of libsqlite fix in relation to AS keyword. 2005-07-29 19:48:52 +00:00
foobar 0bb094e52b - Fixed bug #33837 (Informix ESQL version numbering schema changed) 2005-07-29 19:41:01 +00:00
Marcus Boerger ea71e02c7a - Add ENV support (mike) 2005-07-29 17:25:38 +00:00
Ilia Alshanetsky 70f72d39e4 Fixed warning message generated when isset() or empty() are given invalid
offset type.
2005-07-29 16:27:32 +00:00
Ilia Alshanetsky 22db404132 Fixed bug #33904 (input array keys being escaped when magic quotes is off). 2005-07-29 15:43:37 +00:00
foobar f66d5f0cc5 - Fixed few logic errors in php*.ini search path creation as documented here:
http://fi.php.net/manual/en/configuration.php#configuration.file

#
# Before this patch:
#
# $ strace php -r 'echo 1;' 2>&1 | grep php.ini
# open("/www/php/lib/php.ini", O_RDONLY)  = 3
# lstat64("/www/php/lib/php.ini", {st_mode=S_IFREG|0640, st_size=46264, ...}) = 0
#
# With this patch:
#
# $ strace php -r 'echo 1;' 2>&1 | grep php.ini
# open("./php.ini", O_RDONLY)             = -1 ENOENT (No such file or directory)
# open("/usr/src/php5_1_full/sapi/cli/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
# open("/www/php/lib/php.ini", O_RDONLY)  = 3
# lstat64("/www/php/lib/php.ini", {st_mode=S_IFREG|0640, st_size=46264, ...}) = 0
#
2005-07-29 14:29:27 +00:00
foobar b325b340b7 - Fixed bug #33899 (CLI: setting extension_dir=some/path extension=foobar.so does not work) 2005-07-29 13:25:33 +00:00
foobar a5c41b2c8e - Fixed bug #33917 (number_format() output with > 1 char separators) 2005-07-29 12:58:25 +00:00
foobar 4b0cdf8cd4 fix VPATH builds 2005-07-29 09:50:15 +00:00
Anantha Kesari H Y 3e3d9e941e In NetWare few of the programs like apache2 and ldap use winsock inclusinf sys/socket.h is not desirable.
--Kamesh
2005-07-29 09:20:32 +00:00
97c460c813 ChangeLog update 2005-07-29 05:38:30 +00:00
foobar 49787c93be update generated file 2005-07-29 00:22:02 +00:00
Ilia Alshanetsky a2c0f11235 news file tinkering 2005-07-28 23:21:34 +00:00
Andi Gutmans 9c392835de - Tiny fixlet 2005-07-28 21:39:57 +00:00
Marcus Boerger 0b34e041e3 - Before we later run into BC trouble we split flags into two params mode
and flags now before branching for 5.1.
2005-07-28 21:09:02 +00:00
Marcus Boerger d608181dc7 - Allow static loader functions (but only for 5.1.1 as discussed with Andi) 2005-07-28 20:59:44 +00:00
Marcus Boerger 53e5260662 - Add convenience function zend_is_callable_ex() and base zend_is_callable
and zend_make_callable on it. This functions allows to check if a php
  variable is a callable function and returns its function pointer as well
  as object if possible.
# Commit this now so we can use it in 5.1.* series as discussed with Andi.
2005-07-28 20:55:50 +00:00
Anantha Kesari H Y 0a89e44ed7 NetWare cleanup
--Kamesh
2005-07-28 09:44:13 +00:00
Anantha Kesari H Y 83b5eb54c4 defined EX_OK and EX_TEMPFAIL in ext/standard/mail.c for NETWARE rather than including a sysexits.h.
-Kamesh
2005-07-28 09:41:34 +00:00
Anantha Kesari H Y e78ea8251a Cleaned up the NetWare code.
--Kamesh
2005-07-28 09:40:50 +00:00
1de8a4c08c ChangeLog update 2005-07-28 05:32:06 +00:00
Marcus Boerger a935b06236 - Fix issues with iterators and excpetions
# update documentation
#
# In 5.2 we need to implement an event handler onException() to be invoked
# on exceptions during getChildren() calls. Its default implementation
# would simply rethrow the exception if the flag is not set and delete if
# if it was set. To do so the exceptions refcount needs to be increased
# before calling zend_clear_exception() to keep the exception alive but
# clear the control information.
#
# As a side note this is alos the easy solution to allow multi exception
# handling: Simply clear the engine's exception info and add a property
# called $previousException to the base exception and assign it from the
# already pending one.
2005-07-27 22:19:01 +00:00
Hartmut Holzgraefe b3685eef5a news entry for bug #33882 fix 2005-07-27 21:21:05 +00:00
foobar 7f1e8292d7 ws 2005-07-27 15:24:36 +00:00
Antony Dovgal 98694f919c ws fix 2005-07-27 15:16:14 +00:00
Hartmut Holzgraefe 882cb200cc edge case: do not remove trailing slash for root directory (Bug #33882) 2005-07-27 15:13:50 +00:00
Hartmut Holzgraefe 7e071d9a1f php.ini search logic needs to use the absolute path of the running binary
when looking for php.ini in the directory the php binary is installed in
2005-07-27 15:12:18 +00:00
Ilia Alshanetsky 3674649c59 Fixed bug #32139 (SOAP client does not auto-handle base64 encoding). 2005-07-27 14:52:52 +00:00
Wez Furlong bf85bf515e add sanity checks 2005-07-27 14:18:01 +00:00
Wez Furlong a6f0d99e5b fixup the build in HEAD again... moved the maintainer only stuff out of the
config.m4 and into a separate script to make it cleaner
2005-07-27 11:53:00 +00:00
Anantha Kesari H Y 594dadf9ae configure.in
moved the PHP_OS and PHP_UNAME definitions near the place other oses define them currently it is ggeting redined to build machine values when ./configure script is generated using autoconf version 2.13 but works fine with autoconf 2.51.
Defining the default EXTENSION_DIR for NetWare

--Kamesh
2005-07-27 11:48:14 +00:00
bed55bd176 ChangeLog update 2005-07-27 05:38:07 +00:00
Wez Furlong b87c4b6abe typo 2005-07-27 04:20:50 +00:00
Wez Furlong 32cf3cc19f Yes, I can't count the months, and no, I'm not related to Ilia. 2005-07-27 04:07:44 +00:00
Wez Furlong dcac8e1a44 Prep for PECL release.
Fixup config.m4 to work properly under a pear tool vpath build
# seems strange that it was so badly broken... did something major change?
2005-07-27 04:07:11 +00:00
Wez Furlong 9b73ab50b6 Add support for instant client 10.1.0.4.
Theoretically also add support for 10.2 libraries.
Prep for PECL release.
2005-07-27 03:48:08 +00:00
Wez Furlong eab79e8de6 prep for pecl release 2005-07-27 03:22:03 +00:00
Wez Furlong 73d7fb493c Add package.xml 2005-07-27 03:13:05 +00:00
Wez Furlong f7c0b7d09e prep for PECL release 2005-07-27 03:12:43 +00:00
Wez Furlong ba77f8515b prep for PECL release 2005-07-27 02:51:01 +00:00
Wez Furlong 163c92510a Prep for PECL release 2005-07-27 02:39:46 +00:00
Ilia Alshanetsky 2d920f6848 Only set authorizer if we intend to use it (safe_mode or open_basedir). 2005-07-27 02:35:37 +00:00
Ilia Alshanetsky 86d81fd743 Fixed bug #33869 (strtotime() problem with "+1days" format). 2005-07-26 22:29:27 +00:00
Ilia Alshanetsky f2874cf737 Fix for bug #33869 2005-07-26 22:22:06 +00:00
foobar 2a8cd27f4e bug #33865 2005-07-26 18:33:15 +00:00
Anantha Kesari H Y a29793c4d2 NetWare can make use of autoconf based build
--Kamesh
2005-07-26 13:12:02 +00:00
3a5eca2bae ChangeLog update 2005-07-26 05:32:16 +00:00
Ilia Alshanetsky b77cefd588 Updated URL leading to latest aspell. 2005-07-25 22:53:01 +00:00
Rasmus Lerdorf 884c97d4d7 MFB fix for bug #33690 2005-07-25 22:38:11 +00:00
Rasmus Lerdorf c35454440c I could have sworn I committed this a while ago. Just a tiny NULL safety
check here.
2005-07-25 22:37:35 +00:00
Marcus Boerger 1fad73d13d - Fix #33853
# When a static class function is being called then we first look for the
# class with name unchanged. If the class is then not available it the
# method can never be callable, thus we return 0. If the class is available
# the lowercased name will be broken up into class and function and 1 is
# being returned.
2005-07-25 20:24:11 +00:00
Marcus Boerger e8ea32a789 - Add new test 2005-07-25 20:21:43 +00:00
Marcus Boerger c6018b85c4 - Be flexible about spellbook - we want to test the ext not the spell corrections available 2005-07-25 18:27:41 +00:00
Marcus Boerger ae1fa04899 - Bugfix #33733 2005-07-25 18:04:13 +00:00
Anantha Kesari H Y b1183590e9 ext/standard/fsock.h
Removing redundant inclusion of headers for NetWare

ext/standard/lcg.c
NetWare LibC SDK sys/time.h implicitly includes sys/timval.h so nothing special needed for NetWare here.

--Kamesh
2005-07-25 13:12:10 +00:00
beee0d14a0 ChangeLog update 2005-07-25 05:37:34 +00:00
Ilia Alshanetsky bc80bdb973 Added test for bug #33841. 2005-07-24 17:19:59 +00:00
0a494976c5 ChangeLog update 2005-07-24 05:39:01 +00:00
Ilia Alshanetsky 66125c18a3 Fixed bug #33841 (pdo sqlite driver forgets to update affected column count
on execution of prepared statments).
2005-07-23 23:34:04 +00:00
foobar 63d0774ed6 Removed done stuff 2005-07-23 22:50:35 +00:00
Ilia Alshanetsky 29bf2d3a09 Fixed bug in str_word_count() when charlist if specified and "word" starts
with a character found inside the charlist.
2005-07-23 19:44:13 +00:00
Pierre Joye 9859780570 - fix #33794 imagerotate rotates only CCW
introduced by transparent color patch
2005-07-23 16:41:38 +00:00
84f28ce6c1 ChangeLog update 2005-07-23 05:39:09 +00:00
foobar 03897956b2 revert fix that did not fix anything 2005-07-22 22:00:55 +00:00
Yasuo Ohgaki 813bd67320 fix build with older postgresql 2005-07-22 18:48:14 +00:00
Marcus Boerger d8eece2b43 - Add missing part to make colon in parameter binding optional 2005-07-22 14:31:20 +00:00
Marcus Boerger e4b07b3ebe - Test the colon is optional in binding 2005-07-22 14:27:35 +00:00
Dmitry Stogov 99cb1b8004 $context is not longer passed by reference, so its modification has no effect 2005-07-22 07:34:24 +00:00
Dmitry Stogov 1c82ec11a1 Fixed bug #33802 (throw Exception in error handler causes crash) 2005-07-22 07:33:03 +00:00
b19c520142 ChangeLog update 2005-07-22 05:39:31 +00:00
Wez Furlong cfe1dc3b46 this looks like a much better fix for refcounting/shutdown in lazy objects. 2005-07-22 04:33:56 +00:00
Wez Furlong 882503110d fix leak (ugh, this nuance gets me every time) 2005-07-22 02:09:19 +00:00
Wez Furlong 3560bb9c2b Fixes #33785 for me 2005-07-22 01:34:43 +00:00
Ilia Alshanetsky 3db688c6c9 Added test for PDO_FETCH_LAZY.
# This currently fails, see bug 33785
2005-07-21 19:33:48 +00:00
Marcus Boerger e11fc8bda4 - Fix error generation logic (found by johannes) 2005-07-21 16:52:32 +00:00
Dmitry Stogov 6b5f4da085 Fixed bug with returning from internal function by reference 2005-07-21 13:48:10 +00:00
Derick Rethans 8a3d3aefbb - Changed the year parameter so that 0..69 maps to 2000..2069 and 70..100 maps
to 1970..2000, which was in the original code, but not in the documentation.
2005-07-21 10:09:40 +00:00
Dmitry Stogov e4b1fb6455 Recursion protection 2005-07-21 07:18:02 +00:00
22181d6451 ChangeLog update 2005-07-21 05:32:41 +00:00
foobar 0f3e95b926 there is not much point in putting entries of bugs fixed when bug only existed in CVS and not in any release.. 2005-07-20 23:06:49 +00:00
Ilia Alshanetsky 4b6d351cd3 Missing bit of the previous commits 2005-07-20 16:22:09 +00:00
Dmitry Stogov e07d2f4803 "_local_cert" and "_passphrase" properties moved into "_stream_context".
As a result now it is possible to use certificates during access WSDL files.
2005-07-20 10:21:49 +00:00
Dmitry Stogov 3102638061 Fixed tests 2005-07-20 10:06:10 +00:00
Derick Rethans e6c1ff254d - Fixed bug #33578 (strtotime() problem with "Oct17" format).
- Fixed problems with lone years in strtotime().
- Added functions to timelib to get a list of all abbreviations and timezone
  identifiers.
- Fixed problems with parsed dates that only have GMT offsets associated
  with them.
- Fixed a Windows compile problem.
- Added special constants for different often used date formats (DATE_ISO8601,
  DATE_RFC822, DATE_RSS etc).
- Fixed date_default_timezone_get() to return the guessed timezone if none
  was set yet with date_default_timezone_set().
- Added experimental support for Date/Timezone objects as per specifications.
2005-07-20 08:31:02 +00:00
Marcus Boerger efcfe44299 - Use correct/complete skipif condition 2005-07-20 07:33:19 +00:00
1b31dfb160 ChangeLog update 2005-07-20 05:36:08 +00:00
Wez Furlong ec50ec65b9 use pdo core test suite.
Now passes all but one test.  Volunteers that want to track down the cause
for test pdo_018.phpt not passing are welcome.
2005-07-20 05:27:27 +00:00
Wez Furlong 08891a1c1b some drivers want you to say that its ok to use NULL for these columns. 2005-07-20 05:27:00 +00:00
Ilia Alshanetsky 99d8090cb2 Fixed memory corruption (wrong order of operations of stored prep. stmt).
Optimize the max length calculation process.
2005-07-20 04:30:14 +00:00
Ilia Alshanetsky 97e8c6f4a9 Proper handling for databases that need to pre-calculate length of large
columns, which is not normally done for performance reasons.
2005-07-20 03:38:33 +00:00
Wez Furlong 79f3cb9856 Add PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT attribute, which, when set
to true, forces the driver to use PDO's own emulated prepared statement
support.

Why would you want that, considering that native prepared statements are
supposed to be the best thing ever?

"Often postgresql will have to plan the query without knowing the parameters -
and it will choose a bad plan.  In some cases it will plan based on the first
parameters you send. "

Ugh.  So now we have a way to let you decide that you know better than the
pgsql query planner.
2005-07-20 02:37:57 +00:00
Ilia Alshanetsky 9438584d76 Only set attribute if result set contains some columns. 2005-07-20 02:36:34 +00:00
Ilia Alshanetsky 1e1d2e2b0d clean up 2005-07-20 02:19:20 +00:00
Wez Furlong 8adbc92d4b this hack can and does segv; let's remove it. 2005-07-20 01:59:14 +00:00
Andrei Zmievski 0e8430bc78 *** empty log message *** 2005-07-20 01:46:02 +00:00
foobar 40a049b27e Skip tests in 64bit systems 2005-07-20 00:18:24 +00:00
foobar dd3d739cc6 fixed skipif to really skip 2005-07-20 00:10:57 +00:00
Marcus Boerger bf75124011 - Add test to verify all ArrayAccess methods can throw 2005-07-19 20:10:37 +00:00
Marcus Boerger b8eb8bc7d5 - Add test to verify all iterator methods can throw 2005-07-19 19:50:11 +00:00
Wez Furlong 3b5af6d43f Remove stale #ifdefs (this is PHP 5 only code).
Add a stream_context option to the SoapClient constructor; this allows
generic stream context options to be set without having to add code to the
SoapClient every time a context option is added.
2005-07-19 19:48:02 +00:00
Marcus Boerger 897090c01e - Dont't warn in case an exception is pending - in this case it'd superflous 2005-07-19 19:46:21 +00:00
Wez Furlong 27c24383ee revert my last change; chasing ghosts.
# the lesson is, ensure that php4 and php5 aren't loaded at the same time
2005-07-19 19:25:33 +00:00
Wez Furlong 546418a66b Don't crash when no treat_data method has been set in the sapi module
# how come no one ran into this before?
2005-07-19 18:59:46 +00:00
Wez Furlong d4348d11dd try to make the test a bit more portable 2005-07-19 16:55:48 +00:00
Wez Furlong 3ebfbe6bd2 this should always be a string here, but just in case, convert it. 2005-07-19 16:55:22 +00:00
Wez Furlong 6e7a8f10d1 if we didn't detect an error, don't return -1 rows, as that means that we found an error 2005-07-19 16:54:51 +00:00
Wez Furlong 43c1a1b73c Closes #33533 by implementing proper dynamic fetching of long text columns. 2005-07-19 15:26:16 +00:00
Dmitry Stogov 7aca138456 Fixed bug #33710 (ArrayAccess objects doen't initialize $this) 2005-07-19 07:33:00 +00:00
a59f50faca ChangeLog update 2005-07-19 05:31:59 +00:00
Wez Furlong e568ea3277 Limit the size of columns to 64K, so we don't try to allocate 2GB for each text
column coming out of informix.

Refs Bug #33533.

Not totally closed yet; still need to cater for text fields longer than 64k in a sane manner.
2005-07-19 03:39:49 +00:00
Brad House 96a273a10d \#if BRAD_0'd latest changes as requested until 5.1.0 release 2005-07-19 00:34:39 +00:00
foobar db138c59d4 MFB4_4: Fix compile problem with --regex=system on some systems 2005-07-18 23:17:24 +00:00
Brad House 936e199d38 sync missing functions from libmonetra-5 2005-07-18 20:10:07 +00:00
Ilia Alshanetsky e77c65f081 Revert cookie patch for BC reasons. 2005-07-18 19:18:03 +00:00
Rasmus Lerdorf ec58143e93 Valgrind is unhappy that this is not initialized 2005-07-18 18:32:36 +00:00
foobar a9cd02c033 fix macro 2005-07-18 17:20:24 +00:00
Dmitry Stogov 70bd938bbd Fixed bug in new module statrup mechanism 2005-07-18 16:20:08 +00:00
foobar e63d1706cf touch with working re2c 2005-07-18 16:08:37 +00:00
Wez Furlong be88f5a960 make a start on a debugging function. 2005-07-18 14:46:55 +00:00
Wez Furlong d9826ec143 touch generated file 2005-07-18 14:44:56 +00:00
Wez Furlong 7f053e062c avoid :: when looking for named parameters.
Refs Bug #33736.
2005-07-18 14:44:14 +00:00
Wez Furlong 4854dd71de this needs to be the column count, otherwise a db->query() that returns 0 rows
will fail rather than returning a statement with no rows.
2005-07-18 14:40:49 +00:00
Wez Furlong 8c57c3a9fe compile before commit (gah!) 2005-07-18 14:12:52 +00:00
Ilia Alshanetsky a6931b3923 Cleanup buffers on handle re-use. 2005-07-18 13:47:33 +00:00
Wez Furlong c4ba9edd57 Apparently our pipe detection code just above this isn't foolproof.
Catch it here.
2005-07-18 13:28:24 +00:00
Dmitry Stogov f90bdf8933 Fixed bug #33558 (warning with nested calls to functions returning by reference) 2005-07-18 07:13:34 +00:00
Dmitry Stogov d7baf87c61 Removed some compilation warnings. 2005-07-18 06:34:42 +00:00
d8415108b4 ChangeLog update 2005-07-18 05:36:08 +00:00
Ilia Alshanetsky 75e6dd1c61 Fixed handling of HTTP requests with multiple Cookie headers. 2005-07-18 04:04:18 +00:00
foobar 8cea6123e9 typo 2005-07-18 01:09:22 +00:00
Frank M. Kromann 890b1602fb Make sure we build with SWFPrebuilt. 2005-07-18 00:42:48 +00:00
Marcus Boerger ef4931f627 - Show end of relay testing block 2005-07-18 00:19:28 +00:00
Marcus Boerger 503330fb88 - Provide distinction and distinct tests 2005-07-18 00:14:54 +00:00
Marcus Boerger 70ec0f41ac - Compatibility with ming 0.2a and 0.3a 2005-07-17 23:58:40 +00:00
Marcus Boerger 62c47d1778 - Write temp file in test dir 2005-07-17 23:58:02 +00:00
Marcus Boerger c1e73b4a67 - Add new test 2005-07-17 20:57:51 +00:00
Ilia Alshanetsky 96fc6717e9 Added missing init. 2005-07-17 19:17:10 +00:00
Marcus Boerger 7316ee0399 - Fix problem with debug mode on selective machines 2005-07-17 18:39:24 +00:00
Marcus Boerger dfeddbe539 - If you ask me both (expat and libxml) are not really accurate about byte
positions and columns...however the line number information is now
  correct for both so for the moment we live with the situation that they
  return different byte and column information.
2005-07-17 17:38:16 +00:00
5d762d93be ChangeLog update 2005-07-17 05:40:10 +00:00
Ilia Alshanetsky 2889c497f5 Added 2 missing cURL options available in all versions. 2005-07-16 18:33:09 +00:00
Anantha Kesari H Y 191c216bea NetWare can make use of the Autoconf based build system 2005-07-16 12:55:45 +00:00
Anantha Kesari H Y c0365c3134 libpq-fs.h this file is of no use 2005-07-16 12:51:58 +00:00
Anantha Kesari H Y d77acff66f main/fopen_wrappers.c
NetWare file names are case insensitive
main/main.c
NetWare has no sendmail binary. It uses the smart host mailing code avaiolable in php distro. Could not find a better place to put this than main/main.c.
-- Kamesh
2005-07-16 12:21:34 +00:00
Anantha Kesari H Y 032d0962c2 Netware pthreads support is good enough. So removing all these fixes of old times.
-- Kamesh
2005-07-16 11:38:40 +00:00
a62e9a01b0 ChangeLog update 2005-07-16 05:36:35 +00:00
George Schlossnagle d0ec239661 Darwin seems to like this much better. 2005-07-15 16:47:48 +00:00
George Schlossnagle 869d6002d6 Darwin seems to like this arrangement much better. 2005-07-15 16:47:12 +00:00
Sara Golemon 67a66b858f Pass context parameter through to xport_create 2005-07-15 15:45:43 +00:00
Anantha Kesari H Y 384a96faf6 ext/standard/file.h NetWare LibC has fnmatch and realpath implemented.
ext/standard/syslog.c Except LOG_SYSLOG other syslog macros are supported by NetWare LibC.
ext/standard/string.c NetWare fix for dirname
-- Kamesh
2005-07-15 12:35:12 +00:00
cdd43e622d ChangeLog update 2005-07-15 05:34:39 +00:00
Ilia Alshanetsky 7d1b4145b1 Fixed compiler warning. 2005-07-14 23:17:16 +00:00
Ilia Alshanetsky 6be7584eba Properly recognize redirect code 303.
When encountering redirect on POST request follow browsers and cURL and
perform GET on the specified location field.
2005-07-14 14:59:16 +00:00
Andi Gutmans bdf2753ee8 - Back to -dev 2005-07-14 14:01:02 +00:00
Andi Gutmans a007ddb190 - Beta 3 2005-07-14 13:44:03 +00:00
8452176fba ChangeLog update 2005-07-14 05:36:27 +00:00
Wez Furlong 8c446726cf Add test case 2005-07-14 02:21:03 +00:00
Wez Furlong fc48f9096d gah! 2005-07-14 02:20:52 +00:00
Wez Furlong d025a14d33 Thanks 'james' (a visitor to my blog) for reporting this bug. 2005-07-14 02:09:54 +00:00
Wez Furlong 695e195a27 keep this as a placeholder for debugging weird regressions 2005-07-14 02:09:08 +00:00
Wez Furlong fbc568013a Add utility for driver-specific tests 2005-07-14 02:08:18 +00:00
Wez Furlong 0601249f82 it is not an error for a statement to return 0 rows.
Andrey: please run the test suite before each commit!
This broke beta 3 and was clearly visible as a result of running the tests.

Running further tests now.
2005-07-14 02:03:54 +00:00
foobar ec940d4d5a - Fixed cacheing bug in PHP_SOCKADDR_SA_LEN macro
- Removed duplicate sa_len check from configure.in
- Unified the sockaddr tests into PHP_SOCKADDR_CHECKS macro
2005-07-14 00:12:26 +00:00
foobar 29894e4446 Fix the re_magic test by adding missing #include <sys/types.h> 2005-07-14 00:08:13 +00:00
Sara Golemon 45f624adc4 Route ftp:// wrapper via transports layer.\nFix typo in datastream crypto startup 2005-07-13 23:28:22 +00:00
Ilia Alshanetsky 85e237888c Fixed bug #33673 (Added detection for partially uploaded files). 2005-07-13 20:44:08 +00:00
foobar bc9bc3972c typofix 2005-07-13 14:34:46 +00:00
foobar df44615339 - Added check whether re_magic exists in struct regex_t
# per Andrei's request
2005-07-13 14:33:38 +00:00
foobar 917eefc3ff fix typo 2005-07-13 08:20:32 +00:00
foobar ada35ab562 fixed typos 2005-07-13 07:04:29 +00:00
2f390c25d8 ChangeLog update 2005-07-13 05:35:44 +00:00
Andi Gutmans be8fe97cb4 - Update Beta 3 date 2005-07-12 20:40:11 +00:00
Antony Dovgal 502b00c3f6 add forgotten ifdefs, fix #33667 (mysqli doesn't compile) 2005-07-12 20:38:34 +00:00
Andi Gutmans 2fdbd380ba - Update News 2005-07-12 20:25:48 +00:00
Andi Gutmans f030fe2f3a - Back to -dev 2005-07-12 20:25:28 +00:00
Andi Gutmans 897818e1a0 - Beta 3 2005-07-12 19:59:52 +00:00
Andrey Hristov 5232c4a544 ok, call pdo_mysql_error() before returning -1 2005-07-12 19:32:13 +00:00
Andrey Hristov 8899425e26 strictly check the result of mysql_affected_rows() 2005-07-12 19:22:05 +00:00
Ilia Alshanetsky fa4ea0fff4 Added support for LOCK_EX flag for file_put_contents(). 2005-07-12 17:55:38 +00:00
Ilia Alshanetsky 0131b2b032 Fixed double-free in the digest authentication handling.
# Found and Reported by Stefan Esser
2005-07-12 16:53:30 +00:00
Georg Richter 9aabcf7016 changed version dependency for charset functions 2005-07-12 15:45:07 +00:00
Wez Furlong 3e5ddd2a80 compile before commit... 2005-07-12 12:21:53 +00:00
Wez Furlong 04dd0e1094 Enable unix build for dblib/sybase/freetds.
The extension is named pdo_dblib and the driver dblib on unix.
2005-07-12 12:16:02 +00:00
Antony Dovgal bf9288d457 fix tests that started to fail after the last change in ZE
(noticed by Nuno)
2005-07-12 11:20:05 +00:00
Wez Furlong 93962139fb Avoid estrdup(NULL), modified patch from Zhao ming sen. 2005-07-12 11:02:23 +00:00
Georg Richter 9caaee66bd removed charset structure. libmysql now provides a function
mysqli_get_character_set_info (Vers. 5.0.10)
2005-07-12 09:35:16 +00:00
foobar 2f558a3798 Touch with working re2c 2005-07-12 07:06:01 +00:00
Dmitry Stogov c25b8a3699 Fixed bug #33156 (cygwin version of setitimer doesn't accept ITIMER_PROF). (Nuno) 2005-07-12 06:52:59 +00:00
212299c1fa ChangeLog update 2005-07-12 05:38:51 +00:00
Wez Furlong 0562581de8 touch generated file 2005-07-12 03:20:08 +00:00
Wez Furlong 9240c5f521 remember ? -> :pdox mapping so that binds by position can be mapped to names if required. 2005-07-12 03:19:44 +00:00
Wez Furlong 1bd3483dea fix bug when query was rewritten from ? to :name 2005-07-12 03:18:17 +00:00
Wez Furlong 4f22ac0cdd improve handling of bound input parameters when no maximal length value is set;
default to 4000 as the maximal length, which is the biggest size possible
without using a LONG type (if you specify anything larger than this, you'll end
up with ORA-1461).

Don't assume that all parameters were output parameters after execution, as
this would clobber the input values when used in a loop.
2005-07-12 02:43:39 +00:00
Wez Furlong 664ebfa499 expand oracle null handling compatability by offering the ability to convert
NULLs into empty strings as well as the other way around.  It still doesn't
help a great deal in the long run, but at least the option is there.

Make sure hash tables are nulled out to avoid double freeing them.
2005-07-12 02:40:59 +00:00
Wez Furlong f5a09e87ee should always bind columns after execute.
There're probably more of these to fix.
2005-07-12 02:38:39 +00:00
Ilia Alshanetsky 8a9fc3439a Make references misuse emit E_NOTICE rather E_STRICT to be compatible with
PHP 4.4.0
2005-07-11 18:44:37 +00:00
Ilia Alshanetsky e21f5f9592 A bit of further tuning. 2005-07-11 14:46:01 +00:00
Andrey Hristov b3aa24ff98 fix a segfault with the following script:
<?php
$dbh = new PDO('mysql:dbname=test;host=localhost', "root", "secret");
$what = 1;
$stmt = $dbh->prepare('select a, b, c from t123 where a=:what');
$stmt->bindParam(1, $what, PDO_PARAM_INT, 12);
var_dump($stmt->execute());
var_dump($stmt->fetchObject());
?>
2005-07-11 14:14:56 +00:00
Andrey Hristov 9749926224 - mysql_affected_rows() already returns an unsigned long
- optimize a bit the real_escape
- handle the situation when libmysql bails out because of lack of memory
2005-07-11 13:52:13 +00:00
Jon Parise 6f1261c70c Removing the automake-related output. The build no longer uses automake.
While I'm here, rewrite the PHP_AUTOCONF-related code to more closely
match the conventions used elsewhere in this section.  The result should
be functionally the same as before.
2005-07-11 06:32:02 +00:00
9dde2b0cbe ChangeLog update 2005-07-11 05:39:30 +00:00
Ilia Alshanetsky 35df0e5571 Compiler warning fix. 2005-07-11 03:24:28 +00:00
foobar 21ed9234a0 - Moved ext/dbx and ext/ircg to PECL. 2005-07-10 19:05:09 +00:00
foobar 08f8fcf8f4 touch 2005-07-10 17:56:35 +00:00
Wez Furlong 0d7fa88b4e Fix #33624, mysterious crashes on shutdown on win32 2005-07-10 14:56:36 +00:00
Marcus Boerger 000ef9c4b5 - use three digit octal character definition 2005-07-10 14:04:20 +00:00
54866c02ff ChangeLog update 2005-07-10 05:39:03 +00:00
Andrey Hristov 31de8e9018 stmt->column_count is set only if the result has been already bound, don't
rely on that and use the real count which is kept in st_mysql_stmt
#of course using internal values is bad idea but the comment already says
#that this should be fixed
2005-07-10 02:58:51 +00:00
Andrey Hristov 55ab9b75a6 ok, calculate max_length only in case of a blob (normal, medium, long).
in case of a varchar lets allocate 255 bytes and be quick without asking
libmysql to update max_length
2005-07-10 02:49:14 +00:00
Andrey Hristov 2711d70d33 if the result set is buffered ask libmysql to compute the lengths, so
later allocate buffer as big as the largest value of the column in the
result set (max_legth positive).
2005-07-10 02:20:26 +00:00
Wez Furlong 5602a5ba65 Get precise lengths from the server, as suggested by Andrey. 2005-07-10 02:00:35 +00:00
Wez Furlong 3d373f86f0 Related to #33624. Crashes for me on shutdown, but seems ok for the rest of the world. 2005-07-09 18:52:36 +00:00
44713e7b63 ChangeLog update 2005-07-09 05:37:17 +00:00
Ilia Alshanetsky eb4aff5a91 Added safety checks. 2005-07-09 05:08:54 +00:00
Ilia Alshanetsky 4c18dfc852 Make cursor closer work with emulation as well. 2005-07-09 05:04:43 +00:00
Wez Furlong f21084cb0b don't free the cols until we know we have another rowset 2005-07-09 05:01:14 +00:00
Ilia Alshanetsky 858d827790 Added cursor closer handler.
Fixed memory leak.
2005-07-09 04:54:04 +00:00
Ilia Alshanetsky df60983b75 Added missing header check. 2005-07-09 04:43:16 +00:00
Ilia Alshanetsky d3a9f93111 cursor_closer for SQLite. 2005-07-09 04:37:27 +00:00
Ilia Alshanetsky c58e878513 Implement cursor_closer for MySQL driver. 2005-07-09 04:30:49 +00:00
Wez Furlong 007f571beb for the transactions test case, detect working transactions before attempting to run the tests.
Additional ugliness required because mysql does stupid stuff like this:

mysql> CREATE TABLE foo (id int) TYPE=innodb;
Query OK, 0 rows affected, 2 warnings (0.00 sec)
mysql> SHOW CREATE TABLE foo;
CREATE TABLE `foo` (
  `id` int(11) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1

In addition, BEGIN, COMMIT and ROLLBACK all succeed, even when no tables
support transactions.
2005-07-09 04:28:45 +00:00
Ilia Alshanetsky ba66cac1cf Fixed memory leak 2005-07-09 04:21:14 +00:00
Wez Furlong c2f3636cf2 Fix two bugs:
- execute() would not re-fetch meta data after nextRowset() had been called.

- buffered mode would only be enabled on the first execute on a statement handle.
2005-07-09 03:54:13 +00:00
Wez Furlong d3b653e97b Added:
proto bool PDOStatement::closeCursor()
Closes the cursor, leaving the statement ready for re-execution.

The purpose of the function is to free up the connection to the server so that
other queries may be issued, but leaving the statement in a state that it can
be re-executed.

This is implemented either as an optional driver specific method (allowing for
maximum efficiency), or as the generic PDO fallback if no driver specific
function is installed.

The PDO generic fallback is semantically the same as writing the following code
in your PHP script:

do {
	while ($stmt->fetch())
		;
	if (!$stmt->nextRowset())
		break;
} while (true);
2005-07-09 03:52:41 +00:00
Ilia Alshanetsky 5fe5da90ea Safer way of allowing 'blank' user/pass.
# Thanks Wez.
2005-07-09 02:53:07 +00:00
foobar 60ce60d395 show ugly full path for failed redirected tests 2005-07-09 02:41:19 +00:00
foobar 15e772ce13 - No need to use convert_to_string_ex() when dealing with strings 2005-07-09 00:59:49 +00:00
foobar fcee086982 - Fixed bug #33588 (LDAP: RootDSE query not possible). 2005-07-09 00:46:45 +00:00
Ilia Alshanetsky 0b1931a8ff Fix needed for PostgreSQL driver to allow $user & $pass to be supplied via
DSN as NULL.
2005-07-08 23:33:35 +00:00
foobar c0d7215b81 Sanitazione 2005-07-08 21:46:23 +00:00
Wez Furlong 6ee00c8199 fix leak 2005-07-08 20:45:19 +00:00
Marcus Boerger ca59b1158e - Regenerate using re2c 0.9.8 2005-07-08 20:38:13 +00:00
Marcus Boerger 8d743e70e0 - std not needed -> avoid warning 2005-07-08 20:35:41 +00:00
Marcus Boerger c1717ed8e6 - Fix *printf(%lld) under windows 2005-07-08 20:19:38 +00:00
Wez Furlong 7976182b94 Fix Bug #33111 2005-07-08 19:28:52 +00:00
Wez Furlong 168b6500fd Fix #33618 2005-07-08 19:25:37 +00:00
Wez Furlong 6377c0ccca Fix PECL #4753 2005-07-08 19:05:57 +00:00
Antony Dovgal 38e4fb09e0 fix tsrm build 2005-07-08 18:16:46 +00:00
Wez Furlong 512af63a63 rewrite original names to our preferred format 2005-07-08 17:01:20 +00:00
Wez Furlong dec54a98fa generated file 2005-07-08 17:00:48 +00:00
Wez Furlong 38a02b6244 For named-parameter-to-named-parameter rewrites, we need to map the original
names to the new names.
2005-07-08 17:00:28 +00:00
Ilia Alshanetsky 2301d93156 Some of us don't have PostgreSQL 8.0 :) 2005-07-08 16:20:13 +00:00
Ilia Alshanetsky bf020f87e1 Missing bit of the previous patch. 2005-07-08 16:17:04 +00:00
Ilia Alshanetsky 046635075b Fixed compiler warning. 2005-07-08 16:06:05 +00:00
Wez Furlong 529d8177fe Add early support for native prepared statements in pgsql.
Note that some tests now fail; if we can't resolve this in time for the beta,
the prepare code should be disabled (I'll add a flag for this later today).
2005-07-08 15:27:34 +00:00
Wez Furlong 8f31f0cfaa Fix a shutdown order issue I saw in the pgsql driver. Hope this doesn't mess
up something in the OCI driver; I think I've been here before.
2005-07-08 15:25:15 +00:00
Wez Furlong 206c7b8372 And the generated version of the parser 2005-07-08 15:24:42 +00:00
Wez Furlong ab1ba644db add a bit of a hack to cater for pgsql prepared statements.
These are effectively named statements with strong constraints on the naming
format.  We cater for this in a fairly generic way: allow a driver to replace
the format string we use to generate names from positional parameters.  In
addition, if that format is set, we always force a rewrite from regular names
to the strongly enforced names.
2005-07-08 15:24:21 +00:00
Wez Furlong 057e1973c7 and as a result, need to update the expected data 2005-07-08 15:21:43 +00:00
Wez Furlong 8e30a80733 we declare the column as NOT NULL, so inserting NULL is not a good idea. 2005-07-08 15:20:18 +00:00
Antony Dovgal eb7dc34bfb make use of T token 2005-07-08 12:39:51 +00:00
Antony Dovgal 592a0835fa fix #33597 (setcookie() "expires" date format doesn't comply with RFC) 2005-07-08 12:30:24 +00:00
Antony Dovgal 39379b8f58 rename php_format_date() to date_format()
add wrapper for date_format() to use it in other extensions
2005-07-08 12:26:30 +00:00
Antony Dovgal d705522bbe fix #33614 (memory leak in new strftime()) 2005-07-08 10:23:33 +00:00
Dmitry Stogov 76a447c900 Fixed HTTP basic authentication headers during subrequsts to xsd files 2005-07-08 09:36:28 +00:00
foobar a7e85b3c07 Make sure we get a WARNING and not an ERROR here :) 2005-07-08 08:53:25 +00:00
foobar c17e7e896e fix test when session.save_handler is "user" 2005-07-08 07:57:47 +00:00
foobar 7f7c80babf fix test when session.save_handler is "user" 2005-07-08 07:48:57 +00:00
Dmitry Stogov 3fea0b7b8c Fixed support for <any> in base type of extension 2005-07-08 07:16:56 +00:00
b8bcdbc5f6 ChangeLog update 2005-07-08 05:38:53 +00:00
Wez Furlong 49c1882837 Add a PDO_ATTR_STRINGIFY_FETCHES attribute, which is used to convert integer or
floating point values into strings during fetch.  This is a compatibility hack
for drivers that return native types rather than string representations.

We use this flag in the test suite to persuade postgres tests to pass.
2005-07-08 04:13:00 +00:00
Ilia Alshanetsky ef7bd06657 Added pg_fetch_all_columns() function to fetch all values of a column from
a result cursor.
2005-07-08 00:40:32 +00:00
foobar 71d28a82cf - Fixed stupid bug in PHP_INSTALL_HEADERS() macro: "foo bar" != foo bar
- ext/date/lib/timelib_config.h is also installed now
2005-07-07 23:18:22 +00:00
Antony Dovgal b2141b04d2 do not set error_code to HY000 when there was NO error
reset both handle & statement error codes to 0
2005-07-07 23:03:22 +00:00
Antony Dovgal b0e700524f free parameter when requested to do so 2005-07-07 23:02:22 +00:00
Ilia Alshanetsky 5156c7b38f 1st set of fixes to make tests work with MySQL
# Additional changes pending
2005-07-07 18:49:58 +00:00
Ilia Alshanetsky e7b930ea9a Make prepared statements obey buffering flag in MySQL. 2005-07-07 17:53:34 +00:00
Dmitry Stogov bcd201f522 Fixed SIGSEGV on decoding <any> elements 2005-07-07 17:29:25 +00:00
Wez Furlong da7d537d49 populate the new dbh->driver field.
Implement PDO_ATTR_DRIVER_NAME.
2005-07-07 17:08:01 +00:00
Ilia Alshanetsky 22896664a8 Fixed memory leak 2005-07-07 16:27:46 +00:00
Wez Furlong 294a44a9cb add an attribute for returning the driver name 2005-07-07 16:24:51 +00:00
Dmitry Stogov f51e1c2064 Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods). Now empty($obj[...]) works proper but in addition it may call offsetGet() method. 2005-07-07 16:09:55 +00:00
Dmitry Stogov 345e0255b5 Fixed bug #33512 (Add missing support for isset()/unset() overloading to complement the property get/set methods) 2005-07-07 16:07:09 +00:00
Ilia Alshanetsky 307f622817 Fixed memory leak. 2005-07-07 15:54:00 +00:00
Anantha Kesari H Y 82da3f5074 zend_stream_getc uses fread internally. NetWare LibC fread reads 4(Which I believe EOT) for EOF(^D) character. This happens when fread is asked to read one and only character as is the case with cl interactive mode.
-- Kamesh
2005-07-07 15:43:50 +00:00
Wez Furlong 5fe199fb0f remove old test files 2005-07-07 15:36:00 +00:00
Wez Furlong 4580a7fd8e using new tests 2005-07-07 15:34:46 +00:00
Wez Furlong 9d37c58059 use new tests 2005-07-07 15:33:06 +00:00
Ilia Alshanetsky 721687e11c Stop on the 1st skip. 2005-07-07 15:32:32 +00:00
Wez Furlong b7459aaf7d adopt new tests 2005-07-07 15:20:06 +00:00
Antony Dovgal 3baf1f7632 fix #33605 (substr_compare() crashes with negative offset & length) 2005-07-07 15:19:40 +00:00
Dmitry Stogov d9c1a380ad Fixed bug #28072 (static array with some constant keys will be incorrectly ordered). 2005-07-07 15:16:57 +00:00
Wez Furlong 3c5b9a6e6a skip if we can't connect (include reason in skip output) 2005-07-07 15:15:01 +00:00
Ilia Alshanetsky 86028ad122 Return an empty array rather then FALSE in fetchAll() on no results. 2005-07-07 15:14:10 +00:00
Ilia Alshanetsky 703c55577b Fixed memory leak, after SQLITE_DONE sqlite3_data_count() always returns 0. 2005-07-07 15:13:28 +00:00
Wez Furlong 3fbb2081a1 adopt new tests 2005-07-07 15:04:45 +00:00
Wez Furlong dc09c2ef9c DB2 wants us to use the proper ODBC 3 function for closing a cursor. 2005-07-07 14:20:04 +00:00
Wez Furlong c80b4c7440 Need to state NOT NULL here, as DB2 won't allow the UNIQUE constraint without it. 2005-07-07 14:09:58 +00:00
Wez Furlong 32663f7da7 make column names lower case 2005-07-07 13:59:34 +00:00
Wez Furlong 618afbdfc8 adopt common tests 2005-07-07 13:58:35 +00:00
Wez Furlong 626d318f07 sort redirected tests 2005-07-07 13:58:02 +00:00
Wez Furlong fff515bc46 more paranoia about the attribute param here too 2005-07-07 13:56:39 +00:00
Wez Furlong 1095da42e0 extra paranoia about the attribute param 2005-07-07 13:56:09 +00:00
Wez Furlong ce3c90414b Hmm, these ldflags went AWOL. 2005-07-07 13:42:12 +00:00
Ilia Alshanetsky 6c332449f9 Use PQexecParams() when available, use original case in all other instances. 2005-07-07 13:35:39 +00:00
Wez Furlong 09d433a349 If asked to populate a set of cflags for a header check, only populate the
flags and don't fill in an entry into config.w32.h, UNLESS explicitly told
what to do.

This prevents leakage of things like HAVE_SQLCLI1_H from one pecl into another
(or the core) and confusing the build (as has happened with ibm_db2 and
pdo_odbc).
2005-07-07 13:22:38 +00:00
Wez Furlong f94f36fee8 adopt generic PDO test suite 2005-07-07 13:04:26 +00:00
Wez Furlong 6253c6c5e1 Fix 2 bugs:
- summary is only displayed if 2 or more tests were detected
- error out of a bogus test name is passed in
2005-07-07 12:58:47 +00:00
Wez Furlong 93024bc268 Fix handling of parameter binding.
We need to guess at parameter sizing in some cases (eg: MS Access) as the
SQLDescribeParam() API is an optional feature.
Tidy up error handling.
Add workaround for a shutdown bug that I see with MS ODBC implementation.
(working to determine the precise cause of this).
PDO core test suite now passes all tests.
2005-07-07 12:49:21 +00:00
Wez Furlong 68caaadc6a Fix bug in bindColumn() for drivers that implement native prepared statements
and that use the PDO rewriter to handle non-native parameter syntax.
2005-07-07 12:45:40 +00:00
Wez Furlong 576ff830a9 pedantic WS 2005-07-07 12:44:44 +00:00
Wez Furlong f4681fd86b It's not portable to expect any consistency between drivers in the return value
of an exec() when running DDL; revise test.
2005-07-07 12:42:52 +00:00
Dmitry Stogov 0eb0b781e0 Fixed memory leaks 2005-07-07 11:19:56 +00:00
Rob Richards b27d49579a Allow NULL namespaceURI for getAttributeNodeNS 2005-07-07 10:36:08 +00:00
foobar 27caee32bd reorder. Also: Documentation belongs elsewhere :) 2005-07-07 08:42:53 +00:00
Anantha Kesari H Y 8b3becf06c Reverting the DEFAULT_SLASH to / as it breaks the FreeBSD derived function of NetWare LibC like glob.
-- Kamesh
2005-07-07 07:12:44 +00:00
Anantha Kesari H Y 958803655e gwtcwd of NetWare LibC gives a cwd with a volume information.
So using getcwdpath which gives with volume information.
getcwdpath gives with directory seperator as \ which is against our DEFAULT_SLASH of /. So finding and replacing \ with /

-- Kamesh
2005-07-07 07:10:50 +00:00
Anantha Kesari H Y e61dfb0213 COPY_WHEN_ABSOLUTE is not needed for NetWare.
-- Kamesh
2005-07-07 06:52:44 +00:00
Dmitry Stogov 8de3367453 Fixed support for shared extensions on AIX 2005-07-07 05:54:43 +00:00
04b1b727dd ChangeLog update 2005-07-07 05:39:05 +00:00
Rasmus Lerdorf 3064cb787d Missing closing folding marker 2005-07-07 03:53:47 +00:00
Ilia Alshanetsky 10e1eecf3f Leave it up to the user to decide if to escape the sequence name or not. 2005-07-07 02:17:20 +00:00
Ilia Alshanetsky bcb447f6b8 Faster sequence id retrieval. 2005-07-07 00:52:19 +00:00
Edin Kadribasic 56dd9f5731 Export missing symbol 2005-07-06 21:18:09 +00:00
Dmitry Stogov e7217e032c Fixed possible crash 2005-07-06 14:15:51 +00:00
Wez Furlong 30c916f21a rename pdo_test.php to pdo_test.inc, add it, and update tests. 2005-07-06 13:19:25 +00:00
Wez Furlong 277f9357f4 juggling to track down a problem with odbc 2005-07-06 13:16:40 +00:00
Dmitry Stogov 1f52d756fd Fixed test to support 64-bit platforms 2005-07-06 07:28:25 +00:00
Dmitry Stogov 61d6c4e616 Fixed SIGSEGV during error processing on some systems (linux/ppc) 2005-07-06 06:58:44 +00:00
Wez Furlong 72a75a87ea last minute debug stuff sneaked in 2005-07-06 06:13:44 +00:00
Wez Furlong e39f37d36b replace pdo_odbc tests with new redirection thingy 2005-07-06 06:10:52 +00:00
Wez Furlong 35dbaea547 remove the old tests for pdo_sqlite 2005-07-06 06:09:13 +00:00
Wez Furlong 7b610aba35 Add a redirect test to run the common pdo core tests against the sqlite
driver
2005-07-06 06:08:53 +00:00
Wez Furlong 14dbb2dfe9 Add tests that can be redirected to with new test harness feature. 2005-07-06 06:07:26 +00:00
Wez Furlong 5b84ae26ab Add a new kind of test to the test harness. REDIRECTTEST sections allow an
extension to piggy-back on the tests defined under another dir and run those.

Example of its use follows shortly with pdo tests.
2005-07-06 06:06:23 +00:00
c477a0b181 ChangeLog update 2005-07-06 05:31:49 +00:00
foobar 887f44a9dd - Fixed crash in serialize() + classes. (64bit only) 2005-07-05 23:48:44 +00:00
Derick Rethans a81e8ae358 - Added testcase for bug #33578. 2005-07-05 21:38:37 +00:00
Derick Rethans aa5084d17b - Fixed bug #33578 (strtotime() doesn't understand "11 Oct" format). (Derick) 2005-07-05 21:33:33 +00:00
Ilia Alshanetsky c933634253 Fixed crash inside stream_get_line() when length parameter equals 0. 2005-07-05 19:24:07 +00:00
Derick Rethans d75d455737 - Change memory management so that tzinfo structures can live outside time
structures too.
2005-07-05 18:30:30 +00:00
Edin Kadribasic 312a8eede3 Properly detect when the copy command fails 2005-07-05 14:49:22 +00:00
Dmitry Stogov 43c84919be Fixed crash in ext\standard\tests\general_functions\bug32647.php on Windows 2005-07-05 14:13:46 +00:00
Dmitry Stogov 319cbe1c5a Fixed test file 2005-07-05 14:10:31 +00:00
Derick Rethans 17b877a772 - Fixed memory corruption in pg_copy_from() in case the as_null parameter was
passed. (Derick)
2005-07-05 12:45:39 +00:00
d9248ab10e ChangeLog update 2005-07-05 05:39:31 +00:00
Derick Rethans bf23d8d2b8 - Renamed date_timezone_set/get() to date_default_timezone_set/get().
- Added missing proto's and folding marks.
2005-07-04 21:27:26 +00:00
Jon Parise 901419d028 If the PHP_AUTOCONF and PHP_AUTOMAKE environmental variables are set, use
them when describing the build environment.

Support for these variables was originally added to build/build2.mk:1.36.

As a side note, the build system uses PHP_AUTOHEADER.  Perhaps it should
be listed on its own in the build environment for completeness, despite it
being a component of the autoconf package.
2005-07-04 20:37:07 +00:00
Ilia Alshanetsky 95e3f66299 Make sure the timezone is NULL, if change operation fails. Ex. memory_limit 2005-07-04 18:13:15 +00:00
Derick Rethans 69feece2bc - Fixed logic. 2005-07-04 14:32:50 +00:00
Dmitry Stogov 343af548a6 Fixed SIGSEGV on 'global ${"{$blah}_ID"};' 2005-07-04 13:24:46 +00:00
Wez Furlong 1b9b6312c3 Fix win32 build 2005-07-04 13:22:27 +00:00
Derick Rethans 531c8b9f8c - PHPAPI + static don't mix, obviously. 2005-07-04 13:21:39 +00:00
foobar 73dd4043b3 Make sure files-save handler is used always 2005-07-04 13:09:14 +00:00
Dmitry Stogov d647e000a7 Fixed bug #33520 (crash if safe_mode is on and session.save_path is changed) 2005-07-04 12:47:10 +00:00
Derick Rethans 6ba4559b51 - Added testcase for bug #33563 which is already fixed. 2005-07-04 12:41:20 +00:00
foobar 498c2c7f3b UTC is better 2005-07-04 12:41:00 +00:00
Dmitry Stogov 1d33a3e95e Fixed bug #31158 (array_splice on $GLOBALS crashes) 2005-07-04 10:01:10 +00:00
foobar 43210250ea fix test 2005-07-04 08:32:07 +00:00
Derick Rethans 346c090924 - Fixed bug #33562 (date("") crashes). 2005-07-04 07:48:19 +00:00
Derick Rethans effc5f1927 - Do not crash when the abbreviation doesn't exist. 2005-07-04 07:16:09 +00:00
3334de5fa2 ChangeLog update 2005-07-04 05:38:46 +00:00
foobar 45ae792d08 - Always create the file with correct paths (gdb likes it better like this) 2005-07-04 00:25:39 +00:00
foobar 19b6ffed3c - Always use #ifdef when dealing with HAVE_* defines from AC_CHECK_FUNCS()
- Added check for strftime() also in the timelib configure
2005-07-03 23:30:52 +00:00
Derick Rethans 422f14cb0f - Fixed bug #33536 (strtotime defaults to now even on non time string). 2005-07-03 21:38:54 +00:00
Derick Rethans 8aa3554d19 - Reimplemented time(), getdate() and localtime() functions with new datetime
library.
2005-07-03 20:45:08 +00:00
Derick Rethans 0ef991e5ae - Fixed bug #33532 (Different output for strftime() and date()).
- Re-implemented checkdate(), strftime() and gmstrftime() with the new timelib
  code.
2005-07-03 19:14:55 +00:00
Ilia Alshanetsky dda7692c87 Avoid strlen() if we know the length. 2005-07-03 18:56:57 +00:00
Derick Rethans 34c4ac7bac - Fixed unintialized variable issue. 2005-07-03 18:49:07 +00:00
foobar b440eb4b45 function style 2005-07-03 15:39:48 +00:00
Derick Rethans 2e9d063814 - Added fallback to system's timezone setting, but marked with an E_STRICT
error.
- Adjusted tests to use the date_timezone_set() function.
2005-07-03 15:01:29 +00:00
Derick Rethans d3c83378eb - Move mktime/gmmktime related tests from ext/standard to ext/date. 2005-07-03 14:36:59 +00:00
Derick Rethans ed02f202f0 - Fixed bug #30096 (gmmktime does not return the corrent time).
- Re-implemented mktime and gmmktime with new date time library.
- Added testcase for bug #30096, updated test cases for E_STRICT warning of
  is_dst parameter usage for mktime/gmmktime.
2005-07-03 14:27:31 +00:00
Dmitry Stogov f4b5a51952 Fixed memory leak 2005-07-03 11:09:42 +00:00
Marcus Boerger d3c337e59d - Tweak tests a bit 2005-07-03 09:10:41 +00:00
fa9fdbeeac ChangeLog update 2005-07-03 05:32:08 +00:00
Wez Furlong d4a158260b Add PDO_FETCH_NAMED; closes PECL #4641 by providing a way to access columns
by name, even when multiple columns have the same name:

$sql = "SELECT 1 a, 2 a, 3 b, 4 c, 5 d, 6 c, 7 a";
echo "$sql\n";
print_r($db->query($sql)->fetchAll(PDO_FETCH_NAMED));

Array
(
    [0] => Array
        (
            [a] => Array
                (
                    [0] => 1
                    [1] => 2
                    [2] => 7
                )

            [b] => 3
            [c] => Array
                (
                    [0] => 4
                    [1] => 6
                )

            [d] => 5
        )
)

Also added two new attributes for use at prepare time;
PDO_ATTR_FETCH_TABLE_NAMES and PDO_ATTR_FETCH_CATALOG_NAMES instruct the driver
that the names of the columns that they return to PDO should include the table
and catalog names respectively.  Both attributes may be used together or
independently.  The catalog, table and column name components should be
separated by a . character.
2005-07-03 03:49:44 +00:00
Wez Furlong 75cfa5c2e0 probable fix for PECL bug #4546 2005-07-03 03:04:13 +00:00
Wez Furlong d7e5dfb2de Enable native mysql 4.1.x prepared statement support
# the hardest part was installing 4.1.x on a gentoo box over a 56k modem
2005-07-03 02:20:08 +00:00
Edin Kadribasic 6649a16c3d BFN 2005-07-02 23:04:34 +00:00
Edin Kadribasic 9ac84b2f1a Don't crash on exit by destroying the same hash twice 2005-07-02 22:48:06 +00:00
Derick Rethans 2b47899981 - Overhauled selecting the correct timezone. The timezone set with
"date_timezone_set" override the TZ environment variable, which on its turn
  overrides the date.timezone setting. If none of the three is set, we fallback
  to UTC.
- Added "date_timezone_set" function to set the timezone that the date
  functions will use.
2005-07-02 21:19:25 +00:00
Wez Furlong 1bbab25455 Experimental support for queries returning multiple rowsets under mysql 5.0.
Patch from Guy Harrison (guy dot a dot harrison (at) gmail dot com)
2005-07-02 21:01:38 +00:00
Ilia Alshanetsky 6fd9e5a64f Fixed memory leak on PDO_FETCH_OBJ. 2005-07-02 17:19:58 +00:00
e273318d76 ChangeLog update 2005-07-02 05:34:49 +00:00
Greg Beaver 03c835464f XML_RPC -> 1.3.1 (tar, not tgz) 2005-07-02 02:55:32 +00:00
Greg Beaver aeeda84714 XML_RPC -> 1.3.1 2005-07-02 02:48:06 +00:00
Edin Kadribasic 230d5bc4fc Inconsistency noticed by Nicholas Telford 2005-07-01 23:47:08 +00:00
Edin Kadribasic 00855fcc34 Add sqlstates defined in PostgreSQL documentation.
Source: http://www.postgresql.org/docs/8.0/static/errcodes-appendix.html
2005-07-01 23:32:39 +00:00
Edin Kadribasic f05de12fcf Only check for InvalidOid when not looking up a sequence 2005-07-01 22:43:16 +00:00
Edin Kadribasic 7ef1a91508 Fold PQresultErrorField() into a macro 2005-07-01 22:30:55 +00:00
Edin Kadribasic 5d65789877 Added class 55 sqlstates 2005-07-01 22:12:00 +00:00
Edin Kadribasic 1a10666b08 Added support for fetching current value of a sequence when the
optional sequence name has been passed to PDO::lastInsertId()
2005-07-01 21:54:50 +00:00
Pierre Joye 6b4910b028 bump xml_rpc to 1.3.1, php4 win32 builds uses this list to (4.4) 2005-07-01 09:20:28 +00:00
Edin Kadribasic e70b3a94f4 Use timelib types.
(Fixes compilation on older Microsoft compilers)
2005-07-01 08:59:57 +00:00
Anantha Kesari H Y fe81fa0338 NetWare LibC has reentrant time functions no need to have this.
-- Kamesh from hyanantha's account
2005-07-01 07:55:28 +00:00
Derick Rethans e6820914ff - parse_date.c is a generated file, updated parse_date.re and regenerated
parse_date.c.
2005-07-01 07:18:43 +00:00
Anantha Kesari H Y 98a2eeacc7 As fork implementation of NetWare LibC still in experimental stages making the procve based solution ahead of HAVE_FORK. Later When fork becomes stable will revert this fix.
--Kamesh from hyanantha's account
2005-07-01 06:49:29 +00:00
6e4d1b9be6 ChangeLog update 2005-07-01 05:37:58 +00:00
Ilia Alshanetsky eab2cdedd3 Fixed memory leak. 2005-06-30 23:33:37 +00:00
Frank M. Kromann 4ae7321f3e Fix Win32 build 2005-06-30 23:03:36 +00:00
Frank M. Kromann 6833acff23 Fix ZTS build 2005-06-30 22:49:47 +00:00
Ilia Alshanetsky f7fe18dde4 Fixed compiler warnings. 2005-06-30 22:47:39 +00:00
Ilia Alshanetsky 7575ef4778 Fixed memory leak on error inside php_date(). 2005-06-30 22:44:28 +00:00
Ilia Alshanetsky 138b4435dd Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). 2005-06-30 22:29:36 +00:00
Derick Rethans e155585e6e - Reimplemented date and gmdate with new timelib code.
- Removed old date/gmdate implementations.
- Moved date() related testcases to ext/date/tests.
- Implemented bug #33452.
- Fixed testcase for bug #27719 - there is no timezone called "EST5DST".
2005-06-30 21:38:06 +00:00
Ilia Alshanetsky 2e79463120 Release news 2005-06-30 21:13:34 +00:00
Ilia Alshanetsky c6cbbdb335 SQLite lib upgrade news. 2005-06-30 21:00:35 +00:00
Ilia Alshanetsky e614839111 touch generated file. 2005-06-30 20:59:21 +00:00
Ilia Alshanetsky 7d02c9dcb2 Upgraded bundled sqlite lib to 3.2.2 2005-06-30 20:58:36 +00:00
Wez Furlong efc6ccaa01 Add optional parameter to openssl_pkcs7_verify() which specifies the name
of a file that will be filled with the verified data, but with the signature
information stripped.

Patch by Marton Kenyeres, mkenyeres (at) konvergencia dot hu
2005-06-30 14:25:41 +00:00
foobar 07862d7218 consistent naming: prefix always with MYSQL_ 2005-06-30 14:15:51 +00:00
foobar 6cea418c31 Netware also uses autoconf based config now 2005-06-30 14:11:13 +00:00
Dmitry Stogov 2ca2dc0b08 Restored old behavior of zend_statup_module() 2005-06-30 13:43:00 +00:00
foobar 9518bae116 typo 2005-06-30 13:39:42 +00:00
foobar 340bcffdf0 - Unify (+ spl can't be build shared so COMPILE_DL_SPL 2005-06-30 11:15:00 +00:00
Derick Rethans 384c52faee - Added check for makedev systemcall, which Netware doesn't support. 2005-06-30 10:03:36 +00:00
Derick Rethans 33218e6b24 - Make the Netware guys happy by removing the config.nw.h define. 2005-06-30 06:40:57 +00:00
3f2f79936c ChangeLog update 2005-06-30 05:34:14 +00:00
Ilia Alshanetsky 613d30f215 Silence warnings. 2005-06-30 00:07:42 +00:00
Derick Rethans e4860af785 - Reorganize headers, and update TODO. 2005-06-29 19:08:26 +00:00
Derick Rethans e7de7ff9e2 - Added support for negative timestamps with the @<number> format. (Patch by
Nuno Lopes)
2005-06-29 19:07:06 +00:00
Derick Rethans aa202a7e93 - Make sure the already set "TZ" environment doesn't mess up the tests. 2005-06-29 19:00:35 +00:00
Ilia Alshanetsky 21e17d7ec0 Final (i hope) set of magic.h detection fixes. 2005-06-29 15:57:16 +00:00
Ilia Alshanetsky 7022fbae55 More reliable library detection.
# Thanks Jani
2005-06-29 13:53:59 +00:00
Anantha Kesari H Y 8c77d2a6ca This file is not needed anymore 2005-06-29 13:11:08 +00:00
Anantha Kesari H Y ce3b796f90 this file is not used at all so removing it. 2005-06-29 12:44:06 +00:00
Anantha Kesari H Y c49718f601 Netware LibC has mktemp implementation 2005-06-29 12:16:25 +00:00
Anantha Kesari H Y c8442648aa NetWare LibC has getpwnam, getlogin, getpwuid, getpid, this file is not needed anymore 2005-06-29 12:04:33 +00:00
Antony Dovgal f4667ee268 fix test 2005-06-29 11:52:18 +00:00
Anantha Kesari H Y 58379a1d6c NetWare LibC has readlink implementation. This is not needed anymore. 2005-06-29 11:49:16 +00:00
Anantha Kesari H Y c98c136297 This file does nothing so removing this file. 2005-06-29 11:22:09 +00:00
Anantha Kesari H Y 98af84b898 NetWare LibC has grp.h 2005-06-29 11:04:25 +00:00
Anantha Kesari H Y e1f398a216 NetWare LibC has param.h 2005-06-29 10:53:48 +00:00
Anantha Kesari H Y d6d7b57b9b NetWare LibC itself has popen/pclose functionality so removing this 2005-06-29 10:18:16 +00:00
Johannes Schlüter 44c021d851 - Fix TSRM build 2005-06-29 09:28:44 +00:00
Anantha Kesari H Y f5aeda2971 NetWare LibC has pipe/popen support 2005-06-29 08:59:30 +00:00
Stanislav Malyshev fb0c96d07b fix conditions for freeing 2005-06-29 08:44:01 +00:00
Stanislav Malyshev 9727e938ee add comment 2005-06-29 08:43:38 +00:00
Anantha Kesari H Y f8438519e6 mktemp functionality is part of Regular LibC 2005-06-29 08:34:20 +00:00
Anantha Kesari H Y 3e489fe078 removing pwd.h as NetWare LibC itself supplies pwd.h 2005-06-29 07:02:58 +00:00
b91a49ef84 ChangeLog update 2005-06-29 05:36:03 +00:00
foobar fa6c536c26 fix tests when error_reporting is E_ALL 2005-06-28 23:33:42 +00:00
foobar a66eb331f0 - Regenerated with re2c 0.9.8 2005-06-28 23:16:49 +00:00
Antony Dovgal aa88cd901f fix leak: when dup was <success>ful zend_std_object_get_class_name() returns SUCCESS aka 0 2005-06-28 22:04:07 +00:00
Derick Rethans a8949a5f0e - Added testcases for bug #14561 and #26090 and updated NEWS with those
fixed bug nr's.
2005-06-28 21:49:35 +00:00
foobar 0cf082db67 - Fixed bug #33469 also for shared builds 2005-06-28 21:47:30 +00:00
Derick Rethans 7e58c96022 - Fixed bug #33415 and added test cases for #33414 and #33415. 2005-06-28 21:37:36 +00:00
foobar faa3fd4ae0 re2c 0.98 is the current working version 2005-06-28 20:58:34 +00:00
Derick Rethans dcca4db029 - Fixed bug #33433 (strtoll not available on Tru64). 2005-06-28 18:05:59 +00:00
Derick Rethans 28e76fe7f4 - Implemented binary search for timezone abbreviations and timezone identifier
lookups. (Based on a patch by Nuno Lopes)
2005-06-28 17:56:47 +00:00
foobar c06fbbf0c4 BFN 2005-06-28 17:06:09 +00:00
Brian France 3137e1e422 Added a SG(server_context) NULL check to php_apache_getenv.
This can get called when "<key> = ${<key>}:/foo" is used in a .ini file, but <key> has not be set yet.
        You will end up with a value of ":/foo", but at least it will not crash now.
2005-06-28 16:34:18 +00:00
Ilia Alshanetsky 8c0dc5e887 Make exec() return FALSE on error as do other drivers. 2005-06-28 14:54:44 +00:00
Stanislav Malyshev b95ec3528a fix previous patch 2005-06-28 12:42:56 +00:00
Stanislav Malyshev 7410964887 update 2005-06-28 10:52:00 +00:00
Stanislav Malyshev e3601d22a7 fixes for non-php objects 2005-06-28 10:49:56 +00:00
foobar 3996e49272 one might not have simplexml enabled 2005-06-28 10:17:01 +00:00
Stanislav Malyshev 62d4d8b8d2 fix handling of non-PHP classes (John Coggeshall) 2005-06-28 09:46:30 +00:00
9e9ef37e98 ChangeLog update 2005-06-28 05:37:03 +00:00
Ilia Alshanetsky 3fe8b55917 Fixed double-free bug. 2005-06-28 04:03:58 +00:00
Ilia Alshanetsky f04cbae3fd fixed oid retrieval. 2005-06-28 02:09:53 +00:00
foobar 990aa7456e - Fixed bug #31358 (Older GCC versions do not provide portable va_copy()). 2005-06-27 22:04:41 +00:00
foobar b35224fa81 add test case 2005-06-27 19:07:52 +00:00
foobar 1ac5cf8746 - Fixed bug #33469 (Compile error undefined reference to ifx_checkAPI). 2005-06-27 18:38:04 +00:00
foobar e04f5603f7 - Cache the xml2-config path 2005-06-27 18:30:14 +00:00
Stanislav Malyshev d5a1296008 fix various "Class entry requested for an object without PHP class" messages
when working with non-PHP objects.
# Using Z_OBJCE(object)->name is usually bad idea unless you know it's
# a pure PHP object
2005-06-27 18:13:13 +00:00
Antony Dovgal 46fcf913b2 BFN 2005-06-27 17:42:32 +00:00
Antony Dovgal b16beb540c fix #33491 (crash after extending MySQLi internal class) 2005-06-27 17:40:37 +00:00
Antony Dovgal 689f3488a5 fix couple of leaks in MySQLi 2005-06-27 17:33:56 +00:00
Ilia Alshanetsky fb7c1f0561 Remove "custom" PDDRV sqlstate. 2005-06-27 14:52:46 +00:00
foobar 8eb44394cb set_charset() is only available in mysql versions > 4.1.12 2005-06-27 10:34:42 +00:00
foobar 0b35120921 do not pollute other directories and cleanup after test 2005-06-27 10:14:11 +00:00
Dmitry Stogov 7662d4df64 Fixed SIGSEGV on assigment string offset by reference 2005-06-27 06:15:35 +00:00
Dmitry Stogov 0e720a8b42 Fixed wrong include/requre occurrences in debug backtrace. 2005-06-27 06:03:10 +00:00
539457f8e4 ChangeLog update 2005-06-27 05:34:54 +00:00
foobar 2967f6116f - Fixed bugs #33431, #33432 ("int" used instead of "long" in parameter parsing) 2005-06-26 22:34:26 +00:00
Ilia Alshanetsky 498595a122 Fixed bug #33475 (cURL handle is not closed on curl_close(). 2005-06-26 17:31:07 +00:00
Pierre Joye dc79ac371b - bump xml_rpc version 2005-06-26 07:00:18 +00:00
Georg Richter 01108f7879 fix for #33474 2005-06-26 04:44:03 +00:00
Rob Richards f63e56dc1a Fix build under PHP 4 2005-06-25 10:16:59 +00:00
3c653277a6 ChangeLog update 2005-06-25 05:32:01 +00:00
Ilia Alshanetsky 09f052358f Fixed bogus query failure claim, on some queries such as OPTIMIZE table. 2005-06-24 23:58:06 +00:00
Rob Richards e923ffddab fix build for libxml > 2.6.17 2005-06-24 21:00:27 +00:00
Ilia Alshanetsky 866283d43f Missing part of the previous patch. 2005-06-24 19:46:37 +00:00
Ilia Alshanetsky 348c0cddae Added PDO_MYSQL_ATTR_USE_BUFFERED_QUERY parameter for pdo_mysql, to toggle
usage of buffered queries.
2005-06-24 19:45:59 +00:00
Ilia Alshanetsky e956cc30d7 Skip the test, it fails due to missing transaction support. 2005-06-24 19:20:59 +00:00
Ilia Alshanetsky e80a144fce Fixed PDO Mysql tests. 2005-06-24 19:10:41 +00:00
Georg Richter 224b12ba8b reverted Ilias changes - added get_warnings methods
(forgot to commit the file in my last commit)
2005-06-24 14:44:45 +00:00
Dmitry Stogov 61b9dedd90 Export zend_do_fcall() helper from executor 2005-06-24 12:33:53 +00:00
Pierre Joye 4f2bca6cc9 - fix win32 builds, vc likes to have declarations first 2005-06-24 10:22:21 +00:00
Dmitry Stogov 6bc321395d Partial fix for bug #26584 (Class member - array key overflow)
It doesn't fix integer overflow problem, but allows null, boolean and double keys in array constants in the same way as in runtime.
2005-06-24 09:24:42 +00:00
Dmitry Stogov 12b66c262a Fixed bug #30519 (Interface not existing says Class not found) 2005-06-24 08:45:17 +00:00
cc22d6690f ChangeLog update 2005-06-24 05:38:47 +00:00
Ilia Alshanetsky 87d6f497f7 Likely fix for bug #33140 2005-06-24 02:04:19 +00:00
Dmitry Stogov f3f97394b2 Fixed bug #28377 (debug_backtrace is intermittently passing args) 2005-06-23 12:00:13 +00:00
Pierre Joye 5443879053 - OO example 2005-06-23 11:29:26 +00:00
Pierre Joye 58cb6bb07f - initial tests 2005-06-23 11:29:03 +00:00
Pierre Joye 8c1c4865ac - Add OO interface
- some {{{ fixes
2005-06-23 11:28:25 +00:00
Dmitry Stogov cfe01e1b06 Fixed bug #32660 (Assignment by reference causes crash when field access is overloaded (__get)) 2005-06-23 11:04:35 +00:00
Rasmus Lerdorf ba80543b16 Don't really need the ZE2 check since this is in HEAD 2005-06-23 11:01:08 +00:00
foobar eccc955ed5 fix test 2005-06-23 10:57:52 +00:00
Rasmus Lerdorf 1caf22fdce test for derived method name clashes 2005-06-23 10:24:23 +00:00
Dmitry Stogov fd2d420919 Fixed test file according to latest debug_backtrace() fixes 2005-06-23 09:25:00 +00:00
Dmitry Stogov f17f5da8af Fixed bug #30828 (debug_backtrace() reports incorrect class in overridden methods) 2005-06-23 09:23:24 +00:00
Dmitry Stogov 2037023874 Fixed bug #27268 (Bad references accentuated by clone). 2005-06-23 08:21:03 +00:00
f58beefc8f ChangeLog update 2005-06-23 05:39:35 +00:00
Andi Gutmans ec92bb884e - Back to -dev 2005-06-23 04:20:49 +00:00
Andi Gutmans fe238490f9 - Beta 2 2005-06-23 03:56:37 +00:00
Ilia Alshanetsky 50d32d4d7e temporary fix to let mysqli extension build, so we can make a release. 2005-06-23 02:15:04 +00:00
Marcus Boerger 5cf2c9dc45 - Add +ifdefs to still allow PHP 5.0 builds of PDO
# PDO is a PECL extension and at the moment is still meant to compile on
# both PHP 5.0 and PHP 5.1.
2005-06-23 00:19:16 +00:00
Rob Richards 6553a4c7e2 BFN 2005-06-22 19:59:25 +00:00
Rob Richards 9ad129468a - Fix bug #33299 (php:function no longer handles returned dom objects)
- maybe fix #33431/33432
2005-06-22 19:56:30 +00:00
Ilia Alshanetsky 49c233212b Fixed bug #32160 (copying a file into itself leads to data loss). 2005-06-22 16:13:47 +00:00
Dmitry Stogov 60328db583 Debug backtrace was fixed 2005-06-22 15:30:14 +00:00
Dmitry Stogov da2ab06111 Fixed bug #29896 (Backtrace argument list out of sync) 2005-06-22 15:26:05 +00:00
Ilia Alshanetsky 00f14fbd74 Slightly more reliable current path detection. 2005-06-22 13:41:59 +00:00
Ilia Alshanetsky 46b276ee4b Skip MySQLi tests if connection could not be established and not using
embeded db.
2005-06-22 13:41:43 +00:00
foobar 8566f52297 "64M should be enough for everyone." -- Jani, 2005 :) 2005-06-22 12:54:04 +00:00
Stanislav Malyshev d66e7cb27c export zend_vm_set_opcode_handler 2005-06-22 12:24:25 +00:00
Antony Dovgal 1c68938c60 - allow to use "yes" and "true" with ini_set() and in commandline (through -d flag)
- fix #15854 that was caused by wrong consideration that zend_ini_boolean_displayer_cb()
always recieves converted to "0"/"1" values.
2005-06-22 12:02:47 +00:00
Georg Richter ce972676b5 added testcase for mysqli_warning class 2005-06-22 10:15:37 +00:00
Georg Richter 976be82fb9 added testcase for cursors (nested selects) 2005-06-22 10:14:32 +00:00
Georg Richter 6fba73e8e2 changed/fixed mysqli_warning class
added prefetch support for cursors
2005-06-22 09:12:43 +00:00
Wez Furlong 372c38a53a build related adjustments.
These need to be included in beta 2
2005-06-22 08:45:22 +00:00
Dmitry Stogov c3e2f113f3 Fixed bug in test file 2005-06-22 08:33:43 +00:00
Dmitry Stogov 21e071be06 Fixed bug #33257 (array_splice() inconsistent when passed function instead of variable) 2005-06-22 08:33:00 +00:00
foobar 96d568f1fb BFN 2005-06-22 08:27:02 +00:00
foobar bfa890d81e - Fixed bug #33427 (ext/odbc: check if unixODBC header file exists) 2005-06-22 08:26:00 +00:00
foobar a0ab6b7160 - Never ever add /usr/lib as libpath, even if --with-libdir is used 2005-06-22 06:50:24 +00:00
4472024ea2 ChangeLog update 2005-06-22 05:43:03 +00:00
foobar ea97aa5e8c fix tests 2005-06-22 00:41:28 +00:00
Marcus Boerger f845c37b41 - Fix test 2005-06-21 18:34:21 +00:00
Derick Rethans d995df614c - Fixed Rasmus' problem with Jan.14, 2004. 2005-06-21 17:43:28 +00:00
Dmitry Stogov adc3993122 Fixed test file 2005-06-21 17:28:09 +00:00
Andi Gutmans da201c1be8 - Back to -dev. Guys (n' Girls), give at least 1 hour before you start
- complaining about not going back to -dev. I like checking the tarball
- before I change it back.
2005-06-21 16:31:19 +00:00
Andi Gutmans 9bf68ef6c5 - Take #3 :) 2005-06-21 15:44:50 +00:00
Ilia Alshanetsky e656b82956 Fixed memory leak.
# Found by valgrind w/o zend-mm being used.
2005-06-21 14:05:15 +00:00
foobar 8460074372 - Partial revert: It does not matter if awk works or not but helps if it does :) 2005-06-21 13:47:38 +00:00
Ilia Alshanetsky c594f47f76 Fixed test skip conditions.
# Same needs to be done to odbc, but it seems access is restricted
# for "privileged" folks.
2005-06-21 13:42:23 +00:00
foobar f5fb13103f fix test 2005-06-21 13:06:10 +00:00
Dmitry Stogov 27374bfaf5 Fixed bug #31213 (Sideeffects caused by fix of bug #29493) 2005-06-21 12:10:51 +00:00
Dmitry Stogov 1098ec03c1 Remove unnecessary ZEND_FETCH_CLASS together with ZEND_DECLARE_INHERITED_CLASS in case of early binding 2005-06-21 12:05:15 +00:00
foobar 9f2c906e80 Fix configure problem in braindead systems like Solaris. 2005-06-21 10:20:03 +00:00
Marcus Boerger 0fcdcbbfd9 - Add new test 2005-06-21 06:59:58 +00:00
Dmitry Stogov 68289c4759 ext/soap should use type defined in SoapVar(), if wsdl defines another type 2005-06-21 06:24:55 +00:00
eccfb9c202 ChangeLog update 2005-06-21 05:31:27 +00:00
Ilia Alshanetsky a462e687dc Fixed possible memory corruption. 2005-06-21 00:12:35 +00:00
Antony Dovgal 79d649e173 fix memleak when connection fails (and we still keep trying) 2005-06-20 23:16:27 +00:00
Andi Gutmans cf0c7a9f5a - Back to -dev 2005-06-20 22:34:57 +00:00
Andi Gutmans fd3d8e9537 - Beta 2 2005-06-20 20:49:56 +00:00
Antony Dovgal e05ec94e1e reorder and prevent memleak: bailout after free() 2005-06-20 19:58:51 +00:00
Dmitry Stogov 62bdbc0e57 Fixed possible crash on $x = $obj->$non_string 2005-06-20 18:25:24 +00:00
Ilia Alshanetsky 3b79941168 Fixed bug #31054 (safe_mode & open_basedir checks only check first
include_path value).
2005-06-20 15:59:13 +00:00
foobar 56c1b316da - Added session.hash_bits_per_character support. (3rd param)
(Changes by: waltzer at autumnweave dot com)
2005-06-20 13:37:32 +00:00
Antony Dovgal 8be61d707f fix #29683 (headers_list() returns empty array) 2005-06-20 12:46:34 +00:00
foobar 6f3b02cba4 typo 2005-06-20 11:10:11 +00:00
Derick Rethans d99e8894ff - Update TODO. 2005-06-20 11:08:28 +00:00
Derick Rethans 610fd92ee7 - Make this work on big endian systems too.
- Added an additional malloc() check.
2005-06-20 11:07:53 +00:00
foobar 4dfa3fc731 Some netware related build issues fixed (patch by: Kamesh Jayachandran <kameshj at fastmail dot fm> 2005-06-20 11:06:54 +00:00
foobar eb9a7a76e6 - Added AC_TIMELIB_C_BIGENDIAN
# No need to add it to config.m4, it's run in PHP configure.in already.
# Only added here so that the  standalone configure.in (to be added later)
# can use it.
2005-06-20 11:01:07 +00:00
Derick Rethans 643709eb96 - Update news with implemented FRs and added test for those FRs. 2005-06-20 08:47:56 +00:00
Derick Rethans 1a4535f692 - Implemented FR #29585 (Support week numbers in strtotime()) 2005-06-20 08:46:09 +00:00
Derick Rethans f0d8e67ff5 - Update README, we require 0.9.8 now. 2005-06-20 08:39:45 +00:00
foobar 37319639ec reorder 2005-06-20 07:59:24 +00:00
foobar 9d14b408cf fix typo 2005-06-20 07:26:46 +00:00
foobar a6c7324979 - No extra spaces before #ifndef 2005-06-20 07:04:07 +00:00
5bb7b8ed58 ChangeLog update 2005-06-20 05:36:33 +00:00
Andi Gutmans 04e687245e - Fix typo 2005-06-20 03:54:46 +00:00
Marcus Boerger 466b22c1fe - BFN 2005-06-20 03:05:14 +00:00
Marcus Boerger 74a63cc1b2 - Fixed #33136:
- Allow ArrayObject::offsetSet(NULL, $value) as replacement for [] = $value
- Fix memleaks with overloading ArrayObject
2005-06-20 03:02:52 +00:00
Marcus Boerger 19904f86d3 - BFN 2005-06-20 01:39:28 +00:00
Marcus Boerger f554eba8f3 - Fix bug #33389 by fixing copying 2005-06-20 01:37:48 +00:00
Marcus Boerger 5cc056a6ce - Output shows false lowercased 2005-06-20 01:10:33 +00:00
Marcus Boerger 758503e26f - Show true/flase 2005-06-20 01:08:57 +00:00
foobar 6a58298bf6 - Plain path passed to PHP_INSTALL_HEADERS needs to have trailing / 2005-06-20 00:52:59 +00:00
foobar a892e4874f fix PHP_INSTALL_HEADERS() macro when 2 params are used 2005-06-20 00:20:45 +00:00
Marcus Boerger 6a67d06c26 - Fix handling of ArrayObject/ArrayIterator flags and provide test 2005-06-20 00:19:18 +00:00
foobar 9f704ce6d1 This is not mysqli, where 5th parameter is port. 2005-06-20 00:16:31 +00:00
foobar 174e96246b Install headers too 2005-06-19 23:36:18 +00:00
Marcus Boerger 2f99f9d1c8 - Add new test
# In this version we do not need to make the subscripted array a reference.
# Thus this implementation is in most cases the ideal implementation.
2005-06-19 22:18:07 +00:00
Derick Rethans 3cdc895213 - Added backward compability wrapper "php_parse_date()".
- Changed WDDX extension to use new date parsing code.
- Removed all remnants to the old parser.
#- I hope that I didn't break the .dsp's...
2005-06-19 22:15:27 +00:00
Marcus Boerger 363bfdb404 - Add new test
# This does the same as 009 but achieves its goal completely different. It
# is easier but makes the array a reference which is not always practical.
2005-06-19 22:09:53 +00:00
Derick Rethans a347b91a9e - Fixed layout of test description. 2005-06-19 21:56:21 +00:00
Marcus Boerger 5c86a323e5 - Drop doubled $ 2005-06-19 21:52:38 +00:00
Marcus Boerger 9a831f1e4d - Add new test 2005-06-19 21:34:21 +00:00
Marcus Boerger f01c842ef6 - Update tests to reflect current situation
# I don't feel like discussing this issue anymore - maybe we need to find
# a way of returning proxies to get the requested behavior back - i'll give
# it a try for PHP 5.2. So long we'll have to stay with the original
# decision that we don't support references at all with ArrayAccess.
2005-06-19 20:49:17 +00:00
foobar 21ce9394a7 revert - now it works again?! 2005-06-19 17:06:48 +00:00
Ilia Alshanetsky b9575ead72 make substr_count() 30% when counting instances of 1 byte long strings. 2005-06-19 16:31:51 +00:00
Derick Rethans eab2cbf494 - Fixed test - strtotime() uses GMT if no TZ environment variable is set and if
no explicit timezone abbreviation (CEST) or timezone identifier
  (Europe/Amsterdam) is set.
2005-06-19 16:13:34 +00:00
Derick Rethans ebc587846b - Ignore VIM swapfiles. 2005-06-19 15:02:28 +00:00
Derick Rethans aeb1744011 - Add #20382 to the list, and expand testcase again. 2005-06-19 15:01:43 +00:00
22d433a3db ChangeLog update 2005-06-19 05:32:33 +00:00
Sebastian Bergmann 63a30ff1f0 ZTS fix. 2005-06-19 05:28:39 +00:00
foobar a91a5601e4 fix test 2005-06-18 23:23:45 +00:00
foobar 07d96b9201 reorder + typofix :) 2005-06-18 21:17:10 +00:00
Derick Rethans 3e7446f0e7 - Allow default timezone to be set with the .ini setting "date.timezone". 2005-06-18 20:23:19 +00:00
Derick Rethans 635ea0d5fd - Update NEWS with bugfix happyness.
- Update TODO file for ext/date. No known bugs currently.
2005-06-18 19:40:31 +00:00
Derick Rethans c2b34e208a - Added testcase for bug #28024. 2005-06-18 19:39:19 +00:00
Derick Rethans 9f2283b8a0 - Fixed bug in tm2unixtime where the wanted date was in the transition time
between two zones.
#- In this case the wanted date actually didn't exist, and that wasn't
#  handled correctly.
2005-06-18 19:23:58 +00:00
Derick Rethans 7299ff3b04 - Expand test cases for bug #32086 and #32555. 2005-06-18 19:21:10 +00:00
foobar 95d8125199 BFN 2005-06-18 18:59:12 +00:00
foobar 51f9d5bedc - Updated bundled shtool to version 2.0.2 2005-06-18 18:54:40 +00:00
Ilia Alshanetsky 67ea97dfdf Added offset & length parameters to substr_count() function. 2005-06-18 18:23:12 +00:00
foobar 20cc9e3939 some more things to do 2005-06-18 18:11:33 +00:00
Andi Gutmans 9f9f6d2e5d - E_STRICT shouldn't be on by default on production servers. 2005-06-18 16:52:24 +00:00
Derick Rethans b70466417e - Add another test for bug #20382. 2005-06-18 14:11:15 +00:00
foobar eb4103503c Add note how to build DBA as shared 2005-06-18 13:28:30 +00:00
foobar 4ca58ffa00 no trailing dots 2005-06-18 13:17:52 +00:00
Derick Rethans 3ad7c1ad4a - If the ts is smaller than the first transition time, use the last one
in the list.
#- This seems consistent with how "zdump" works, although I'm not 100% sure if
#  it's correct.
2005-06-18 11:58:18 +00:00
Derick Rethans 30efc9f68e - Fixed a problem where the timestamp we are looking up a TZ info structure for
was in the last record in the tz database.
- Fixed problem in test case.
2005-06-18 11:15:29 +00:00
Derick Rethans db861c3944 - Added missing .cvsignore file. 2005-06-18 11:12:38 +00:00
Derick Rethans cbc98fb3c0 - Fixed test case
#- Still not sure why the first TS is incorrect...
2005-06-18 10:25:40 +00:00
b900a96852 ChangeLog update 2005-06-18 05:35:31 +00:00
foobar a104447d46 Make sure $_ENV is populated 2005-06-18 02:24:37 +00:00
foobar f2ddefcc56 - This is no bug. 2005-06-18 02:06:31 +00:00
foobar 0964cd270e BFN 2005-06-18 01:06:58 +00:00
foobar 185648217f test for bug #33389 2005-06-18 01:01:48 +00:00
Ilia Alshanetsky bcd33d5f18 Added offset parameter to the stream_copy_to_stream() function. 2005-06-17 23:29:20 +00:00
foobar c156a2e1b0 missing entry 2005-06-17 23:00:11 +00:00
Derick Rethans 25168fffd5 - Fix test case.
#- Bug might actually be in date() rendering things wrong, but that code
#  is not yet replaced.
2005-06-17 22:45:31 +00:00
foobar 19639aa9ab Use the new dependency system 2005-06-17 16:42:54 +00:00
foobar a491b82c4c No short-tags! 2005-06-17 16:40:05 +00:00
Georg Richter 15563f8d91 fix for bug #33263 (mysqli_real_escape doesn't work in __construct) 2005-06-17 16:32:43 +00:00
Andrei Zmievski 987f6f8fcf *** empty log message *** 2005-06-17 16:24:01 +00:00
foobar c24bd1584c fix test - short_tags not allowed here! 2005-06-17 16:22:55 +00:00
Dmitry Stogov 2a314dbc47 Removed EX(fbc_constructor) (it is no longer needed) 2005-06-17 15:06:28 +00:00
Derick Rethans c41145799d - The incoming TS is GMT... but the hole filler wants local time so we
have to convert it.
- Change e-mail address
2005-06-17 14:54:00 +00:00
Derick Rethans 2492892fde - Add a couple of test files, which all still fail. 2005-06-17 14:21:53 +00:00
Derick Rethans 65530de209 - Simplify code a little. 2005-06-17 14:11:12 +00:00
foobar a81ac8d04b nuke unused variable 2005-06-17 13:12:31 +00:00
Derick Rethans f4de039522 - Rename tl_config.h to timelib_config.h 2005-06-17 12:03:04 +00:00
foobar 7c6ba77780 Use new dependency system 2005-06-17 11:48:17 +00:00
foobar 371135fa2c Use the new dependency system 2005-06-17 11:44:59 +00:00
foobar 78a5b7693c Use the new dependency system 2005-06-17 11:35:22 +00:00
Antony Dovgal baf8cadeff improve error messages when error raised from an internal class (do not hide class name) 2005-06-17 11:25:31 +00:00
Antony Dovgal 8d2dd7901c add news entry and test for bug #33382 2005-06-17 10:53:15 +00:00
Dmitry Stogov d1ee85c2dd Fixed bug #33277 (private method accessed by child class) 2005-06-17 10:50:45 +00:00
Antony Dovgal a32c1f9eee fix bug #33382 (array_reverse() fails after *sort())
no need to MFH - the bug existed only in HEAD
2005-06-17 10:50:15 +00:00
Dmitry Stogov f47c78487b Improved PHP extension loading mechanism with support for module dependencies and conflicts 2005-06-17 09:39:23 +00:00
Dmitry Stogov c0c7a9f010 Improved PHP extension loading mechanism with support for module dependencies and conflicts. 2005-06-17 09:36:26 +00:00
61b2fcc3ce ChangeLog update 2005-06-17 05:37:15 +00:00
Frank M. Kromann 37d672d2a3 Attempt to fix win32 build by creating the missing hader file 2005-06-17 05:10:12 +00:00
foobar a736f99e2f - Improve portability.
# TODO: The standalone lib needs it's own build stuff, pretty much same as
#       Zend has for standalone builds.
2005-06-16 23:12:10 +00:00
Marcus Boerger 7a7cda7a4c - Internal functions/methods can now return by reference 2005-06-16 23:02:23 +00:00
Ilia Alshanetsky 353e07f57b Fixed memory corruption. 2005-06-16 22:50:32 +00:00
Brian France cd8adc0cf2 ifdef'ed the code but not the includes 2005-06-16 22:35:11 +00:00
foobar a87d9876cf nuke unused entries 2005-06-16 22:03:04 +00:00
Johannes Schlüter f2fab902c4 fix typos 2005-06-16 21:27:51 +00:00
foobar ab285a85fd Fix VPATH build (again) 2005-06-16 21:23:16 +00:00
foobar 1d5397dde0 this is not an extension dir 2005-06-16 21:22:33 +00:00
Marcus Boerger e5df7fa8b2 - No more memory_limit for running tests 2005-06-16 18:58:04 +00:00
Derick Rethans ca16776087 - Fixed headers for FreeBSD
- Moved from ntohl to own macro
- Export timelib_dump_tzinfo
2005-06-16 18:34:42 +00:00
Derick Rethans c53cdf6dd8 - Added include dir. 2005-06-16 18:15:30 +00:00
Derick Rethans fb2b1606ba - Fix up tests, remove windows specific test. 2005-06-16 18:13:40 +00:00
Derick Rethans b7ea5dc5f4 - Move strtotime() related testcases to ext/date/tests. 2005-06-16 17:35:08 +00:00
Marcus Boerger 7f544adbb5 - Fix TSRM build 2005-06-16 17:29:29 +00:00
Derick Rethans 4ad939be1b - Rename "datetime.c" and "datetime.h" to "timelib.c" and "timelib.h" to
prevent duplicate header names.
2005-06-16 17:12:41 +00:00
foobar 34e0ba1f92 silence notices 2005-06-16 17:12:26 +00:00
foobar ba1aac47b7 typofix 2005-06-16 16:46:06 +00:00
Wez Furlong b680c5c5e1 Don't emit the E_STRICT dl-is-deprecated notice on SAPI's where dl() is widely (and safely) used.
This allows our test-suite to run in E_STRICT mode.
2005-06-16 15:36:39 +00:00
Dmitry Stogov f5e71d99d5 typo 2005-06-16 15:11:03 +00:00
Wez Furlong 4de4565710 Fix compile on win32 at least. 2005-06-16 15:03:36 +00:00
Dmitry Stogov aedbdb087d Allowed return by refrence from internal functions 2005-06-16 14:56:13 +00:00
Wez Furlong 43aa6922d3 Don't crash here if there are errors (such as failing to load extensions via
php.ini) during startup.
2005-06-16 14:54:51 +00:00
Stanislav Malyshev 999998ecaa rename to zend_ 2005-06-16 14:27:08 +00:00
Dmitry Stogov a6d84dbb82 Fixed bug #33318 (throw 1; results in Invalid opcode 108/1/8) 2005-06-16 14:20:00 +00:00
Zeev Suraski ff06fb72de Fixlet 2005-06-16 13:31:21 +00:00
Derick Rethans 7c264559b2 - Fixed a regression with "last saturday" 2005-06-16 13:30:26 +00:00
Dmitry Stogov faacd7f865 Compilation warnings 2005-06-16 12:26:44 +00:00
Dmitry Stogov c3e6a90808 ZEND_UNSET_DIM_OBJ is splitted to ZEND_UNSET_DIM and ZEND_UNSET_OBJ. 2005-06-16 12:17:39 +00:00
Stanislav Malyshev 87c9e68c91 export zval getters 2005-06-16 11:50:08 +00:00
Derick Rethans f847c6f948 - Update maintainers and credits. 2005-06-16 10:44:41 +00:00
Dmitry Stogov 3c1a774ddc USER_OPCODE API is improvet.
Implemented ability to dispatch from user handler to internal handler of another opcode.
2005-06-16 06:00:48 +00:00
65e57a8a2c ChangeLog update 2005-06-16 05:38:57 +00:00
Ilia Alshanetsky 73d503471c Fixed memory leak. 2005-06-15 23:42:55 +00:00
Ilia Alshanetsky 694585e1a8 Avoid double-free. 2005-06-15 23:30:20 +00:00
Ilia Alshanetsky c68b34c40f Added test for bug #33056. 2005-06-15 23:24:28 +00:00
Andrei Zmievski be0458269e WS fix 2005-06-15 21:20:26 +00:00
Andrei Zmievski ec09711101 Fix FCI cache for array_walk and user array compare functions. Bug
#33286. (Patch from m.bretz@metropolis-ag.de)
2005-06-15 20:51:33 +00:00
Dmitry Stogov 47676bc067 Fixed OS X compatibility 2005-06-15 19:05:55 +00:00
foobar 8d2afe0e57 - This does not have to be egrep here 2005-06-15 17:13:39 +00:00
Derick Rethans eb8b4fd4a1 - Make it compile cleanly with MS VC++ too, which is completely anal in some
cases.
2005-06-15 11:01:07 +00:00
foobar 55b0a90e91 typofix 2005-06-15 09:23:28 +00:00
foobar 97666ab4ef Show borked tests in the summary 2005-06-15 09:21:15 +00:00
Derick Rethans e56a091bf3 - Commit re-generated parser. 2005-06-15 09:09:04 +00:00
Edin Kadribasic d00b6bc170 Date will never be compiled as shared so this is not needed 2005-06-15 09:05:00 +00:00
Edin Kadribasic cc33e8f536 Nuke PHP_ prefix from timelib 2005-06-15 09:02:28 +00:00
Edin Kadribasic d1974bad1b Made date obligatory and static 2005-06-15 08:44:23 +00:00
Derick Rethans 6d7667267b - Hide the "Unexpected character..." message for now. 2005-06-15 07:58:21 +00:00
Derick Rethans 318c7aead7 - Commit fixed .c file with fixed re2c. 2005-06-15 07:43:05 +00:00
Derick Rethans 952a2c8234 - Whitespace and regenerate the .c file with my re2c. 2005-06-15 07:23:27 +00:00
Derick Rethans f858c193b6 - Rename macro to TIMELIB_TIME_FREE
#- Please do not use PHP_ prefixes as this library will also be packaged
#  outside of PHP.
2005-06-15 07:15:38 +00:00
e1573bf6e9 ChangeLog update 2005-06-15 05:33:04 +00:00
Edin Kadribasic 61d132cddc Export symbols 2005-06-15 00:23:14 +00:00
Edin Kadribasic dd9698a6cb Touch + manual fix for re2c bug where it forgets {} in static int scan() 2005-06-15 00:17:41 +00:00
Dan Scott 4187a6e3c7 Bring PDO_ODBC tests in sync with PDO base tests. 2005-06-15 00:17:18 +00:00
Edin Kadribasic 289997715a Make it compile on windows 2005-06-15 00:11:29 +00:00
Ilia Alshanetsky 2d92309797 more accurate timing function. 2005-06-14 23:59:29 +00:00
Ilia Alshanetsky 9392a1c9de Fixed memory leaks. 2005-06-14 23:40:57 +00:00
foobar 32b3d10174 fix VPATH builds + nuked unnecessary lines 2005-06-14 22:50:55 +00:00
Edin Kadribasic cde34a07b7 Added win32 build file 2005-06-14 22:25:48 +00:00
foobar 8d952c906f This test did not fit to the new interactive shell thing 2005-06-14 22:21:08 +00:00
foobar de504dce25 BFN 2005-06-14 22:19:50 +00:00
Derick Rethans 4fb4cac65c - Add my new timelib and ext/date. For now only strtotime() makes use of this. 2005-06-14 21:32:29 +00:00
Rob Richards f14292df21 Fixed bug #33340 (CLI Crash when calling php:function from XSLT) 2005-06-14 19:39:52 +00:00
foobar bad7aeeffb unify .cvsignore files 2005-06-14 13:26:09 +00:00
foobar 23ffaecc7d If the macro exists, use it, otherwise use the Makefile.frag 2005-06-14 13:09:23 +00:00
Ilia Alshanetsky aa52c68a7a bzero > memset 2005-06-14 13:09:04 +00:00
Dmitry Stogov ae37249fa9 Removed old executor 2005-06-14 12:55:48 +00:00
foobar 1c9a470cbc reordered + added msg to configure output for PHP_ZEND_VM 2005-06-14 12:23:26 +00:00
foobar 021389c4dc typofix 2005-06-14 11:47:57 +00:00
foobar fb95a19824 fix standalone build 2005-06-14 11:41:48 +00:00
1ef7bf6997 ChangeLog update 2005-06-14 05:32:30 +00:00
Sebastian Bergmann 1d9baf3dd5 ZTS fix. 2005-06-14 05:13:01 +00:00
Ilia Alshanetsky b36d4ae02c Added bindto socket context option. 2005-06-14 02:39:42 +00:00
foobar 8d91c1a46d Make this usable for header files too 2005-06-14 02:18:44 +00:00
foobar 1cd9875465 Partial revert: AC_DEFINE / PHP_HAVE_DEF need to be called once only per macro 2005-06-14 02:18:18 +00:00
foobar e5057f7c22 use PHP_CHECK_PDO_INCLUDES 2005-06-14 01:44:16 +00:00
foobar 334f5d87ff Allow different things to be done when found / not-found 2005-06-14 01:43:53 +00:00
foobar 8eeff6d2d4 - Fixed some places which might cause problems
- Changed the "general" flavour to have libname parameter (given without the
  lib prefix of course)
# bug #33316 should be fixed now too
2005-06-14 01:42:31 +00:00
foobar 15cf2a60b0 - Added PHP_CHECK_PDO_INCLUDES macro (caches the result) 2005-06-14 00:00:53 +00:00
foobar ee28f62dc0 ws 2005-06-13 23:37:20 +00:00
Hartmut Holzgraefe 6d6630a250 added news item for GLOB_ERR fix 2005-06-13 22:20:05 +00:00
Edin Kadribasic 60b465fc5b MFB: MSVC++ 6.0 doesn't support long long type 2005-06-13 19:33:39 +00:00
Dmitry Stogov 14b80ad199 Specializer optimization 2005-06-13 17:50:07 +00:00
Dmitry Stogov cec2347c96 Fixed bug #33212 ([GCC 4]: 'zend_error_noreturn' aliased to external symbol 'zend_error').
The fix is not tested on Solaris and DARWIN!
2005-06-13 11:22:59 +00:00
Antony Dovgal 2a128504a2 destroy session after destroying error handle
SQLT_CHR is allowed too
2005-06-13 09:30:49 +00:00
foobar 54d85cbfda - Fixed bug #31256 (PHP_EVAL_LIBLINE configure macro does not handle -pthread) 2005-06-13 08:44:47 +00:00
Dmitry Stogov e6dcba6052 Fixed bug #33312 (ReflectionParameter methods do not work correctly) 2005-06-13 07:55:08 +00:00
beeac8672e ChangeLog update 2005-06-13 05:32:00 +00:00
Ilia Alshanetsky ba93fc60af Removed unused var. 2005-06-12 17:07:20 +00:00
Hartmut Holzgraefe 55b5376d19 Support for GLOB_ERR so that glob() reports permission problems (Bug #28355) 2005-06-12 07:53:24 +00:00
88141e3ed0 ChangeLog update 2005-06-12 05:40:34 +00:00
Hartmut Holzgraefe d5adc7ceff thinko fix (E_COMMIT_AFTER_MIDNIGHT) 2005-06-12 01:13:24 +00:00
Hartmut Holzgraefe 4440d3897e Removed bogus fix for bug #28355 (it was dead code anyway) 2005-06-12 00:59:04 +00:00
foobar 8030941485 revert 2005-06-11 23:53:21 +00:00
foobar 7a794caed0 Another netware fix 2005-06-11 23:32:46 +00:00
foobar dddac3e86e Merge the bug fix entries from PHP_5_0 branch 2005-06-11 20:19:34 +00:00
foobar 467db93099 regenerated with re2c 0.9.7 2005-06-11 18:00:37 +00:00
Andi Gutmans 16bbd70cd5 - Back to -dev 2005-06-11 17:03:42 +00:00
Andi Gutmans e0787f3d24 - b2 (will post it to internals@) 2005-06-11 16:59:24 +00:00
Wez Furlong 986800ce88 hunting for a bug. Looks like it might be yet-another-mysterious-shutdown problem. 2005-06-11 14:48:06 +00:00
Dan Scott b21bf3d357 PDO_ODBC returns strings for all data types. Bring expected output in line. 2005-06-11 14:01:46 +00:00
Wez Furlong ecce72aa83 become a better config.m4 citizen 2005-06-11 13:27:50 +00:00
Wez Furlong 183c8aa287 Fix for PECL #3714: beginTransaction doesn't work if you're in auto-commit mode. 2005-06-11 12:38:12 +00:00
Wez Furlong 13ac7169af and the lesson is, test everything before you commit at 2am 2005-06-11 12:36:12 +00:00
7e4be5c520 ChangeLog update 2005-06-11 05:40:37 +00:00
Wez Furlong f124c2086e couple of conceptual errors here 2005-06-11 02:50:20 +00:00
Andi Gutmans 0638c657e1 - Back to -dev 2005-06-10 18:29:10 +00:00
1985 changed files with 128852 additions and 106117 deletions

No files matched your search

+6 -7
View File
@@ -148,20 +148,19 @@ Naming Conventions
'buildsomewidget'
'getI()'
[7] Classes should be given descriptive names. Avoid using abbreviations
where possible. Each word in the class name should start with a capital
letter, with words underscore delimited. The class name should be prefixed
with the name of the 'parent set'.
[7] Classes should be given descriptive names. Avoid using abbreviations where
possible. Each word in the class name should start with a capital letter,
without underscore delimiters (CampelCaps starting with a capital letter).
The class name should be prefixed with the name of the 'parent set' (e.g.
the name of the extension).
Good:
'Curl'
'Foo_Bar'
'FooBar'
Bad:
'foobar'
'foo_bar'
'FooBar'
Syntax and indentation
----------------------
+4226
View File
File diff suppressed because it is too large. Load diff
+6 -1
View File
@@ -68,6 +68,11 @@ PRIMARY MAINTAINER: Alex Leigh <aleigh@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: date
PRIMARY MAINTAINER: Derick Rethans <derick@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: embed
PRIMARY MAINTAINER: Edin Kadribasic <edink@php.net>
MAINTENANCE: Maintained
@@ -447,7 +452,7 @@ STATUS: Working
EXTENSION: pspell
PRIMARY MAINTAINER: Vlad Krupin <phpdevel@echospace.com>
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: readline
+11 -11
View File
@@ -262,8 +262,8 @@ Apache 1.3.x on Unix systems
10. cd ../apache_1.3.x
11. ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
11. ./configure --prefix=/www --activate-module=src/modules/php5/libphp5.a
(The above line is correct! Yes, we know libphp5.a does not exist at this
stage. It isn't supposed to. It will be created.)
12. make
@@ -309,24 +309,24 @@ stop and start:
./configure --with-apxs --with-pgsql
This will create a libphp4.so shared library that is loaded into
This will create a libphp5.so shared library that is loaded into
Apache using a LoadModule line in Apache's httpd.conf file. The
PostgreSQL support is embedded into this libphp4.so library.
PostgreSQL support is embedded into this libphp5.so library.
./configure --with-apxs --with-pgsql=shared
This will create a libphp4.so shared library for Apache, but it will
This will create a libphp5.so shared library for Apache, but it will
also create a pgsql.so shared library that is loaded into PHP either
by using the extension directive in php.ini file or by loading it
explicitly in a script using the dl() function.
./configure --with-apache=/path/to/apache_source --with-pgsql
This will create a libmodphp4.a library, a mod_php4.c and some
accompanying files and copy this into the src/modules/php4 directory
This will create a libmodphp5.a library, a mod_php5.c and some
accompanying files and copy this into the src/modules/php5 directory
in the Apache source tree. Then you compile Apache using
--activate-module=src/modules/php4/libphp4.a and the Apache build
system will create libphp4.a and link it statically into the httpd
--activate-module=src/modules/php5/libphp5.a and the Apache build
system will create libphp5.a and link it statically into the httpd
binary. The PostgreSQL support is included directly into this httpd
binary, so the final result here is a single httpd binary that
includes all of Apache and all of PHP.
@@ -380,8 +380,8 @@ Apache 2.0 on Unix systems
* PHP 4.3.0 or later available at http://www.php.net/downloads.php.
* the latest stable development version. Get the source code
http://snaps.php.net/php4-latest.tar.gz or download binaries for
Windows http://snaps.php.net/win32/php4-win32-latest.zip.
http://snaps.php.net/php5-latest.tar.gz or download binaries for
Windows http://snaps.php.net/win32/php5-win32-latest.zip.
* a prerelease version downloadable from http://qa.php.net/.
* you have always the option to obtain PHP through anonymous CVS.
+4 -4
View File
@@ -7,17 +7,17 @@ $(builddir)/zend_language_scanner.lo: $(builddir)/zend_language_parser.h
$(builddir)/zend_ini_scanner.lo: $(builddir)/zend_ini_parser.h
$(builddir)/zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
$(LEX) -Pzend -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_language_scanner.l
@$(LEX) -Pzend -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_language_scanner.l
$(builddir)/zend_language_parser.h: $(builddir)/zend_language_parser.c
$(builddir)/zend_language_parser.c: $(srcdir)/zend_language_parser.y
$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o $@
@$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o $@
$(builddir)/zend_ini_parser.h: $(builddir)/zend_ini_parser.c
$(builddir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
@$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
$(builddir)/zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
$(LEX) -Pini_ -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_ini_scanner.l
@$(LEX) -Pini_ -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_ini_scanner.l
$(builddir)/zend_indent.lo $(builddir)/zend_highlight.lo $(builddir)/zend_compile.lo: $(builddir)/zend_language_parser.h
+34 -12
View File
@@ -5,9 +5,6 @@ INSTALL_DATA = $(INSTALL) -m 644
DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
CORE_HEADERS = Zend/ TSRM/ include/ main/ main/streams/ regex/ ext/standard/
INSTALL_HEADERS = $(CORE_HEADERS) $(INSTALL_EXT_HEADERS)
all: $(all_targets)
@echo
@echo "Build complete."
@@ -45,19 +42,44 @@ install-modules: build-modules
@rm -f modules/*.la >/dev/null 2>&1
@$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
install-tester:
@echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
@$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
@$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
install-headers:
-@if test "$(INSTALL_HEADERS)"; then \
for i in $(INSTALL_HEADERS); do \
i=`$(top_srcdir)/build/shtool path -d $$i`; \
paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
done; \
$(mkinstalldirs) $$paths && \
echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
for i in $(INSTALL_HEADERS); do \
if test "$(PHP_PECL_EXTENSION)"; then \
src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
else \
src=$$i; \
fi; \
if test -f "$(top_srcdir)/$$src"; then \
$(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
elif test -f "$(top_builddir)/$$src"; then \
$(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
else \
(cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
fi \
done; \
fi
install-su: install-pear
install-su: install-pear install-tester
test:
-@if test -x $(SAPI_CLI_PATH) && test ! -z $(SAPI_CLI_PATH); then \
test: all
-@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php -d 'extension_dir=modules/' -d `( . $(PHP_MODULES) ; echo extension=$$dlname)` tests/; \
elif test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' $(top_srcdir)/run-tests.php $(TESTS); \
$(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
+683 -83
View File
@@ -1,54 +1,59 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
10 Jun 2005, PHP 5.1 Beta 1
28 Nov 2005, PHP 5.1.1
- Disabled native date class to prevent pear::date conflict. (Ilia)
- Changed reflection constants be both PHP and class constants. (Johannes)
- Added an additional field $frame['object'] to the result array of
debug_backtrace() that contains a reference to the respective object when the
frame was called from an object. (Sebastian)
- Fixed bug #35423 (RecursiveDirectoryIterator doesnt appear to recurse with
RecursiveFilterIterator). (Marcus)
- Fixed bug #35413 (Removed -dev flag from Zend Engine version). (Ilia)
- Fixed bug #35411 (Regression with \{$ handling). (Ilia)
- Fixed bug #35406 (eval hangs when evall'ed code ends with comment w/o
newline). (Marcus)
- Fixed bug #35391 (pdo_mysql::exec does not return number of affected rows).
(Tony)
- Fixed bug #35382 (Comment in end of file produces fatal error). (Ilia)
- Fixed bug #35360 (exceptions in interactive mode (php -a) may cause crash).
(Dmitry)
- Fixed bug #35358 (Incorrect error messages for PDO class constants). (Ilia)
- Fixed bug #35338 (pdo_pgsql does not handle binary bound params). (Wez)
- Fixed bug #35316 (Application exception trying to create COM object). (Rob)
- Fixed bug #35170 (PHP_AUTH_DIGEST differs under Apache 1.x and 2.x). (Ilia)
24 Nov 2005, PHP 5.1
- Added support for class constants and static members for internal classes.
(Dmitry, Michael Wallner)
- Added "new_link" parameter to mssql_connect() (Bug #34369). (Frank)
- Added missing safe_mode checks for image* functions and cURL. (Ilia)
- Added missing safe_mode/open_basedir checks for file uploads. (Ilia)
- Added PDO_MYSQL_ATTR_USE_BUFFERED_QUERY parameter for pdo_mysql. (Ilia)
- Added date_timezone_set() function to set the timezone that the date
functions will use. (Derick)
- Added pg_fetch_all_columns() function to fetch all values of a column from a
result cursor. (Ilia)
- Added support for LOCK_EX flag for file_put_contents(). (Ilia)
- Added bindto socket context option. (Ilia)
- Added offset parameter to the stream_copy_to_stream() function. (Ilia)
- Added offset & length parameters to substr_count() function. (Ilia)
- Added man pages for "phpize" and "php-config" scripts. (Jakub Vrana)
- Added support for .cc files in extensions. (Brian)
- Added PHP_INT_MAX and PHP_INT_SIZE as predefined constants. (Andrey)
- Added user opcode API that allow overloading of opcode handlers. (Dmitry)
- Opcodes ZEND_NEW, ZEND_JMP_NO_CTOR, ZEND_INIT_CTOR are mefget into one
ZEND_NEW. (Dmitry)
- Upgraded PCRE library to version 5.0. (Andrei)
- Added an optional remove old session parameter to session_regenerate_id(). (Ilia)
- Added an optional remove old session parameter to session_regenerate_id().
(Ilia)
- Added array type hinting. (Dmitry)
- Removed php_check_syntax() function which never worked properly. (Ilia)
- Removed garbage manager in Zend Engine which results in more aggressive
freeing of data. (Dmitry, Andi)
- String offsets were re-designed and re-implemented (Dmitry)
- Moved extensions to PECL:
. ext/cpdf (Tony, Derick)
. ext/dio (Jani, Derick)
. ext/fam (Jani, Derick)
. ext/ingres_ii (Jani, Derick)
. ext/mnogosearch (Jani, Derick)
. ext/w32api (Jani, Derick)
. ext/yp (Jani, Derick)
- Changed stream_filter_(ap|pre)pend() to return resource. (Sara)
- Changed mysqli_exception and sqlite_exception to use RuntimeException as base
if SPL extension is present. (Georg, Marcus)
- Improved interactive mode of PHP CLI (php -a). (Johannes, Marcus)
- Improved support for embedded server in mysqli. (Georg)
- Improved performance of:
. general execution/compilation. (Andi, Thies, Sterling, Dmitry, Marcus)
. switch() statement. (Dmitry)
. several array functions. (Marcus)
. virtual path handling by adding a realpath() cache. (Andi)
. variable fetches. (Andi)
. magic method invocations. (Marcus)
- Improved extension SPL (Marcus).
. added standard hierarchy of Exception classes
. added interface Countable
. added interfaces Subject and Observer
. added spl_autoload*() functions
. converted several 5.0 examples into c code
. added class FileObject
. added possibility to use a string with class_parents() and
class_implements(). (Andrey)
- Added the tidy_get_opt_doc() function to return documentation for
- Added the tidy_get_opt_doc() function to return documentation for
configuration options in tidy. (Patch by: nlopess@php.net)
- Added support for .cc files in extensions. (Brian)
- Added imageconvolution() function which can be used to apply a custom 3x3
- Added imageconvolution() function which can be used to apply a custom 3x3
matrix convolution to an image. (Pierre)
- Added optional first parameter to XsltProcessor::registerPHPFunctions to only
allow certain functions to be called from XSLT. (Christian)
- Added the ability to override the autotools executables used by the buildconf
script via the PHP_AUTOCONF and PHP_AUTOHEADER environmental variables. (Jon)
- Added optional first parameter to XsltProcessor::registerPHPFunctions to
only allow certain functions to be called from XSLT. (Christian)
- Added the ability to override the autotools executables used by the
buildconf script via the PHP_AUTOCONF and PHP_AUTOHEADER environmental
variables. (Jon)
- Added several new functions to support the PostgreSQL v3 protocol introduced
in PostgreSQL 7.4. (Christopher)
. pg_transaction_status() - in-transaction status of a database connection.
@@ -58,34 +63,29 @@ PHP NEWS
. pg_send_query_params() - async equivalent of pg_query_params().
. pg_send_prepare() - async equivalent of pg_prepare().
. pg_send_execute() - async equivalent of pg_execute().
. pg_result_error_field() - highly detailed error information,
most importantly the SQLSTATE error code.
. pg_result_error_field() - highly detailed error information, most
importantly
the SQLSTATE error code.
. pg_set_error_verbosity() - set verbosity of errors.
- Improved extension mysqli (Georg)
. added constructor for mysqli_stmt and mysqli_result classes
. added new function mysqli_get_charset
. added new class mysqli_driver
. added new class mysqli_warning
. added new class mysqli_execption
. added new class mysqli_sql_exception
- Added optional fifth parameter "count" to preg_replace_callback() and
- Added optional fifth parameter "count" to preg_replace_callback() and
preg_replace() to count the number of replacements made. FR #32275. (Andrey)
- Added optional third parameter "charlist" to str_word_count() which
contains characters to be considered as word part. FR #31560. (Andrey, Ilia)
- Added interface Serializeable. (Stanislav, Marcus)
- Added optional third parameter "charlist" to str_word_count() which contains
characters to be considered as word part. FR #31560. (Andrey, Ilia)
- Added interface Serializable. (Stanislav, Marcus)
- Added pg_field_type_oid() PostgreSQL function. (mauroi at digbang dot com)
- Added zend_declare_property_...() and zend_update_property_...()
API functions for bool, double and binary safe strings. (Hartmut)
- Added zend_declare_property_...() and zend_update_property_...() API
functions for bool, double and binary safe strings. (Hartmut)
- Added possibility to access INI variables from within .ini file. (Andrei)
- Added variable $_SERVER['REQUEST_TIME'] containing request start time. (Ilia)
- Added variable $_SERVER['REQUEST_TIME'] containing request start time.
(Ilia)
- Added optional float parameter to gettimeofday(). (Ilia)
- Added apache_reset_timeout() Apache1 function. (Rasmus)
- Added sqlite_fetch_column_types() 3rd argument for arrays. (Ilia)
- Added optional offset parameter to stream_get_contents() and
- Added optional offset parameter to stream_get_contents() and
file_get_contents(). (Ilia)
- Added optional maxlen parameter to file_get_contents(). (Ilia)
- Added SAPI hook to get the current request time. (Rasmus)
- Added new functions:
- Added new functions:
. array_diff_key() (Andrey)
. array_diff_ukey() (Andrey)
. array_intersect_key() (Christiano Duarte)
@@ -106,62 +106,662 @@ PHP NEWS
. stream_wrapper_restore() (Sara)
. stream_filter_remove() (Sara)
. time_sleep_until() (Ilia)
- Added DomDocument::$recover property for parsing not well-formed
XML Documents. (Christian)
- Added DomDocument::$recover property for parsing not well-formed XML
Documents. (Christian)
- Added Cursor support for MySQL 5.0.x in mysqli (Georg)
- Added proxy support to ftp wrapper via http. (Sara)
- Added MDTM support to ftp_url_stat. (Sara)
- Added zlib stream filter support. (Sara)
- Added bz2 stream filter support. (Sara)
- Added HTTP/1.1 and chunked encoding support to http:// wrapper. (Sara)
- Added max_redirects context option that specifies how many HTTP
redirects to follow. (Ilia)
- Added support of parameter=>value arrays to
- Added support of parameter=>value arrays to
xsl_xsltprocessor_set_parameter(). (Tony)
- Fixed extension initialization to respect dependancies between extensions.
(Wez)
- Fixed a problem with SPL iterators aggregating the innner iterator. (Marcus)
- Fixed bug with $HTTP_RAW_POST_DATA not getting set. (Brian)
- Fixed bug in mysql::client_version(). (Georg)
- Improved PHP extension loading mechanism with support for module
dependencies and conflicts. (Jani, Dmitry)
- Improved interactive mode of PHP CLI (php -a). (Johannes, Marcus)
- Improved performance of:
. general execution/compilation. (Andi, Thies, Sterling, Dmitry, Marcus)
. switch() statement. (Dmitry)
. several array functions. (Marcus)
. virtual path handling by adding a realpath() cache. (Andi)
. variable fetches. (Andi)
. magic method invocations. (Marcus)
- Improved support for embedded server in mysqli. (Georg)
- Improved mysqli extension. (Georg)
. added constructor for mysqli_stmt and mysqli_result classes
. added new function mysqli_get_charset()
. added new function mysqli_set_charset()
. added new class mysqli_driver
. added new class mysqli_warning
. added new class mysqli_exception
. added new class mysqli_sql_exception
- Improved SPL extension. (Marcus)
. Moved RecursiveArrayIterator from examples into extension
. Moved RecursiveFilterIterator from examples into extension
. Added SplObjectStorage
. Made all SPL constants class constants
. Renamed CachingRecursiveIterator to RecursiveCachingIterator to follow
Recursive<*>Iterator naming scheme.
. added standard hierarchy of Exception classes
. added interface Countable
. added interfaces Subject and SplObserver
. added spl_autoload*() functions
. converted several 5.0 examples into c code
. added class SplFileObject
. added possibility to use a string with class_parents() and
class_implements(). (Andrey)
- Changed type hints to allow "null" as default value for class and array.
(Marcus, Derick, Dmitry)
- Changed SQLite extension to be a shared module in Windows distribution.
(Edin)
- Changed "instanceof" and "catch" operators, is_a() and is_subclass_of()
functions to not call __autoload(). (Dmitry)
- Changed sha1_file() and md5_file() functions to use streams instead of low
level IO. (Uwe)
- Changed abstract private methods to be not allowed anymore. (Stas)
- Changed stream_filter_(ap|pre)pend() to return resource. (Sara)
- Changed mysqli_exception and sqlite_exception to use RuntimeException as
base if SPL extension is present. (Georg, Marcus)
- Upgraded bundled libraries:
. PCRE library to version 6.2. (Andrei)
. SQLite 3 library in ext/pdo_sqlite to 3.2.7. (Ilia)
. SQLite 2 library in ext/sqlite to 2.8.16. (Ilia)
- Upgraded bundled libraries in Windows distribution. (Edin)
. zlib 1.2.3
. curl 7.14.0
. openssl 0.9.8
. ming 0.3b
. libpq (PostgreSQL) 8.0.1
- Implemented feature request #33452 (Year belonging to ISO week). (Derick)
- Allowed return by reference from internal functions. (Marcus, Andi, Dmitry)
- Rewrote strtotime() with support for timezones and many new formats.
Implements feature requests #21399, #26694, #28088, #29150, #29585 and
#29595. (Derick)
- Moved extensions to PECL:
. ext/cpdf (Tony, Derick)
. ext/dio (Jani, Derick)
. ext/fam (Jani, Derick)
. ext/ingres_ii (Jani, Derick)
. ext/mnogosearch (Jani, Derick)
. ext/w32api (Jani, Derick)
. ext/yp (Jani, Derick)
. ext/mcve (Jani, Derick, Pierre)
. ext/oracle (Jani, Derick)
. ext/ovrimos (Jani, Derick, Pierre)
. ext/pfpro (Jani, Derick, Pierre)
. ext/dbx (Jani, Derick)
. ext/ircg (Jani, Derick)
- Removed php_check_syntax() function which never worked properly. (Ilia)
- Removed garbage manager in Zend Engine which results in more aggressive
freeing of data. (Dmitry, Andi)
- Fixed "make test" to work for phpized extensions. (Hartmut, Jani)
- Fixed Apache 2 regression with sub-request handling on non-linux systems.
(Ilia, Tony)
- Fixed PDO shutdown problem (possible infinite loop running rollback on
shutdown). (Wez)
- Fixed PECL bug #3714 (PDO: beginTransaction doesn't work if you're in
auto-commit mode). (Wez)
- Fixed ZTS destruction. (Marcus)
- Fixed bug #32993 (implemented Iterator function current() don't throw
- Fixed __get/__set to allow recursive calls for different properties. (Dmitry)
- Fixed a bug where stream_get_meta_data() did not return the "uri" element
for files opened with tmpname(). (Derick)
- Fixed a problem with SPL iterators aggregating the inner iterator. (Marcus)
- Fixed an error in mysqli_fetch_fields (returned NULL instead of an array
when row number > field_count). (Georg)
- Fixed bug in mysql::client_version(). (Georg)
- Fixed bug in mysqli extension with unsigned int(11) being represented as
signed integer in PHP instead of string in 32bit systems. (Andrey)
- Fixed bug with $HTTP_RAW_POST_DATA not getting set. (Brian)
- Fixed crash inside stream_get_line() when length parameter equals 0. (Ilia)
- Fixed ext/mysqli to allocate less memory when fetching bound params of type
(MEDIUM|LONG)BLOB/(MEDIUM|LONG)TEXT. (Andrey)
- Fixed extension initialization to respect dependencies between extensions.
(Wez)
- Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems.
(Andrey)
- Fixed fgetcsv() and fputcsv() inconsistency. (Dmitry)
- Fixed inheritance check to control return by reference and pass by
reference correctly (ArrayAccess can no longer support references correctly).
(Marcus, Andi, Dmitry)
- Fixed initializing and argument checking for posix_mknod(). (Derick)
- Fixed memory corruption in ImageTTFText() with 64bit systems. (Andrey)
- Fixed memory corruption in pg_copy_from() in case the as_null parameter was
passed. (Derick)
- Fixed memory corruption in stristr(). (Derick)
- Fixed possible GLOBALS variable override when register_globals are ON.
(Ilia, Stefan)
- Fixed possible INI setting leak via virtual() in Apache 2 sapi. (Ilia)
- Fixed possible register_globals toggle via parse_str(). (Ilia, Stefan)
- Fixed potential GLOBALS overwrite via import_request_variables() and
possible crash and/or memory corruption. (Ilia)
- Fixed segfaults when CURL callback functions throw exception. (Tony)
- Fixed support for shared extensions on AIX. (Dmitry)
- Fixed bug #35342 (isset(DOMNodeList->length) returns false). (Rob)
- Fixed bug #35341 (Fix for bug #33760 breaks build with older curl). (Tony)
- Fixed bug #35336 (crash on PDO::FETCH_CLASS + __set()). (Tony)
- Fixed bug #35303 (PDO prepare() crashes with invalid parameters). (Ilia)
- Fixed bug #35293 (PDO segfaults when using persistent connections). (Tony)
- Fixed bug #35278 (Multiple virtual() calls crash Apache 2 php module). (Ilia)
- Fixed bug #35273 (Error in mapping soap - java types). (Dmitry)
- Fixed bug #35249 (compile failure when ext/readline is compiled as shared).
(Jani)
- Fixed bug #35248 (sqlite_query() doesn't set error_msg when return value is
being used). (Ilia)
- Fixed bug #35243 (php_mblen() crashes when compiled with thread-safety on
Linux). (Patch: shulmanb at il dot ibm dot com, Jani)
- Fixed bug #35239 (Objects can lose references). (Dmitry)
- Fixed bug #35229 (call_user_func() crashes when argument_stack is nearly
full). (Dmitry)
- Fixed bug #35197 (Destructor is not called). (Tony)
- Fixed bug #35179 (tokenizer extension needs T_HALT_COMPILER). (Greg)
- Fixed bug #35176 (include()/require()/*_once() produce wrong error messages
about main()). (Dmitry)
- Fixed bug #35147 (__HALT_COMPILER() breaks with --enable-zend-multibyte).
(Dmitry, Moriyoshi)
- Fixed bug #35143 (gettimeofday() ignores current time zone). (Derick)
- Fixed bug #35142 (SOAP Client/Server Complex Object Support). (Dmitry)
- Fixed bug #35135 (PDOStatment without related PDO object may crash). (Ilia)
- Fixed bug #35091 (SoapClient leaks memory). (Dmitry)
- Fixed bug #35079 (stream_set_blocking(true) toggles, not enables blocking).
(askalski at gmail dot com, Tony)
- Fixed bug #35078 (configure does not find ldap_start_tls_s). (Jani)
- Fixed bug #35046 (phpinfo() uses improper css enclosure). (Ilia)
- Fixed bugs #35022, #35019 (Regression in the behavior of key() and
current() functions). (Ilia)
- Fixed bug #35017 (Exception thrown in error handler may cause unexpected
behavior). (Dmitry)
- Fixed bug #35014 (array_product() always returns 0). (Ilia)
- Fixed bug #35009 (ZTS: Persistent resource destruct crashes when extension
is compiled as shared). (Dmitry)
- Fixed bug #34996 (ImageTrueColorToPalette() crashes when ncolors is zero).
(Tony)
- Fixed bug #34982 (array_walk_recursive() modifies elements outside function
scope). (Dmitry)
- Fixed bug #34977 (Compile failure on MacOSX due to use of varargs.h). (Tony)
- Fixed bug #34968 (bz2 extension fails on to build on some win32 setups).
(Ilia)
- Fixed bug #34965 (tidy is not binary safe). (Mike)
- Fixed bug #34957 (PHP doesn't respect ACLs for access checks). (Wez)
- Fixed bug #34950 (Unable to get WSDL through proxy). (Dmitry)
- Fixed bug #34938 (dns_get_record() doesn't resolve long hostnames and
leaks). (Tony)
- Fixed bug #34905 (Digest authentication does not work with Apache 1). (Ilia)
- Fixed bug #34902 (mysqli::character_set_name() - undefined method). (Tony)
- Fixed bug #34899 (Fixed sqlite extension compile failure). (Ilia)
- Fixed bug #34893 (PHP5.1 overloading, Cannot access private property).
(Dmitry)
- Fixed bug #34884 (Possible crash in ext/sqlite when sqlite.assoc_case is
being used). (Tony, Ilia)
- Fixed bug #34879 (str_replace, array_map corrupt negative array indexes on
64-bit platforms). (Dmitry)
- Fixed bug #34873 (Segmentation Fault on foreach in object). (Dmitry)
- Fixed bug #34856 (configure fails to detect libiconv's type). (Tony)
- Fixed bug #34855 (ibase_service_attach() segfault on AMD64).
(irie at gmx dot de, Tony)
- Fixed bug #34851 (SO_RECVTIMEO and SO_SNDTIMEO socket options expect
integer parameter on Windows). (Mike)
- Fixed bug #34850 (--program-suffix and --program-prefix not included in
man page names). (Jani)
- Fixed bug #34821 (zlib encoders fail on widely varying binary data on
windows). (Mike, Ilia)
- Fixed bug #34818 (several functions crash when invalid mysqli_link object
is passed). (Tony)
- Fixed bug #34810 (mysqli::init() and others use wrong $this pointer without
checks). (Tony)
- Fixed bug #34809 (FETCH_INTO in PDO crashes without a destination object).
(Ilia)
- Fixed bug #34802 (Fixed crash on object instantiation failure). (Ilia)
- Fixed bug #34796 (missing SSL linking in ext/ftp when configured as shared).
(Jani)
- Fixed bug #34790 (preg_match_all(), named capturing groups, variable
assignment/return => crash). (Dmitry)
- Fixed bug #34788 (SOAP Client not applying correct namespace to generated
values). (Dmitry)
- Fixed bug #34787 (SOAP Client not handling boolean types correctly). (Dmitry)
- Fixed bug #34786 (2 @ results in change to error_reporting() to random
value) (Dmitry, Tony)
- Fixed bug #34785 (subclassing of mysqli_stmt does not work). (Georg)
- Fixed bug #34782 (token_get_all() gives wrong result). (Dmitry)
- Fixed bug #34777 (Crash in dblib when fetching non-existent error info).
(Ilia)
- Fixed bug #34771 (strtotime() fails with 1-12am/pm). (Derick)
- Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects
correctly). (Dmitry)
- Fixed bug #34758 (PDO_DBLIB did not implement rowCount()). (Ilia)
- Fixed bug #34757 (iconv_substr() gives "Unknown error" when offset > string
length). (Tony)
- Fixed bug #34742 (ftp wrapper failures caused from segmented command
transfer). (Ilia)
- Fixed bug #34725 (CLI segmentation faults during cleanup). (Dmitry)
- Fixed bug #34723 (array_count_values() strips leading zeroes). (Tony)
- Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault). (Dmitry)
- Fixed bug #34704 (Infinite recursion due to corrupt JPEG). (Marcus)
- Fixed bug #34678 (__call(), is_callable() and static methods). (Dmitry)
- Fixed bug #34676 (missing support for strtotime("midnight") and
strtotime("noon")). (Derick)
- Fixed bug #34645 (ctype corrupts memory when validating large numbers).
(Ilia)
- Fixed bug #34643 (wsdl default value has no effect). (Dmitry)
- Fixed bug #34623 (Crash in pdo_mysql on longtext fields). (Ilia)
- Fixed bug #34617 (zend_deactivate: objects_store used after
zend_objects_store_destroy is called). (Dmitry)
- Fixed bug #34590 (User defined PDOStatement class can't implement
methods). (Marcus)
- Fixed bug #34584 (Segfault with SPL autoload handler). (Marcus)
- Fixed bug #34581 (crash with mod_rewrite). (Tony, Ilia)
- Fixed bug #34565 (mb_send_mail does not fetch
mail.force_extra_parameters). (Marco, Ilia)
- Fixed bug #34557 (php -m exits with "error" 1). (Johannes)
- Fixed bug #34518 (Unset doesn't separate container in CV). (Dmitry)
- Fixed bug #34505 (Possible memory corruption when unmangling properties
with empty names). (Tony)
- Fixed bug #34478 (Incorrect parsing of url's fragment (#...)). (Dmitry)
- Fixed bug #34467 (foreach + __get + __set inconsistency). (Dmitry)
- Fixed bug #34456 (Possible crash inside pspell extension). (Ilia)
- Fixed bug #34453 (parsing http://www.w3.org/2001/xml.xsd exception). (Dmitry)
- Fixed bug #34450 (Segfault when calling mysqli_close() in destructor). (Tony)
- Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed). (Dmitry)
- Fixed bug #34420 (Possible crash inside curl_multi_remove_handle()). (Ilia)
- Fixed bug #34358 (Fatal error: Cannot re-assign $this). (Dmitry)
- Fixed bug #34331 (php crashes when variables_order is empty). (Ilia)
- Fixed bug #34321 (Possible crash in filter code). (Ilia)
- Fixed bug #34311 (unserialize() crashes with chars above 191 dec). (Nuno)
- Fixed bug #34310 (foreach($arr as $c->d => $x) crashes). (Dmitry)
- Fixed bug #34307 (on_modify handler not called to set the default value if
setting from php.ini was invalid). (Andrei)
- Fixed bug #34306 (wddx_serialize_value() crashes with long array keys).
(Jani)
- Fixed bug #34304 (date() doesn't have a modifier for ISO Week Day). (Derick)
- Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9).
(Derick)
- Fixed bug #34299 (ReflectionClass::isInstantiable() returns true for abstract
classes). (Marcus)
- Fixed bug #34284 (CLI phpinfo showing html on _SERVER["argv"]). (Jani)
- Fixed bug #34277 (array_filter() crashes with references and objects).
(Dmitry)
- Fixed bug #34276 (setAttributeNS doesn't work with default namespace).
(Rob)
- Fixed bug #34260 (Segfault with callbacks (array_map) + overloading).
(Dmitry)
- Fixed bug #34257 (lib64 not handled correctly in ming extension). (Marcus)
- Fixed bug #34221 (Compiling xmlrpc as shared fails other parts). (Jani)
- Fixed bug #34216 (Segfault with autoload). (Marcus)
- Fixed bug #34199 (if($obj)/if(!$obj) inconsistency because of cast handler).
(Dmitry, Alex)
- Fixed bug #34191 (ob_gzhandler does not enforce trailing \0). (Ilia)
- Fixed bug #34156 (memory usage remains elevated after memory limit is
reached). (Ilia)
- Fixed bug #34148 (+,- and . not supported as parts of scheme). (Ilia)
- Fixed bug #34137 (assigning array element by reference causes binary mess).
(Dmitry)
- Fixed bug #34103 (line numbering not maintained in dom document). (Rob)
- Fixed bug #34078 (Reflection API problems in methods with boolean or
null default values). (Tony)
- Fixed bug #34068 (Numeric string as array key not cast to integer in
wddx_deserialize()). (Ilia)
- Fixed bug #34064 (arr[] as param to function in class gives invalid
opcode). (Dmitry)
- Fixed bug #34062 (Crash in catch block when many arguments are used).
(Dmitry)
- Fixed bug #34052 (date('U') returns %ld not unix timestamp). (Nuno)
- Fixed bug #34045 (Buffer overflow with serialized object). (Dmitry)
- Fixed bug #34001 (pdo_mysql truncates numeric fields at 4 chars). (Ilia)
- Fixed bug #33999 (object remains object when cast to int). (Dmitry)
- Fixed bug #33996 (No information given for fatal error on passing invalid
value to typed argument). (Dmitry)
- Fixed bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP). (Dmitry)
- Fixed bug #33987 (php script as ErrorDocument causes crash in Apache 2).
(Ilia)
- Fixed bug #33967 (misuse of Exception constructor doesn't display
errorfile). (Jani)
- Fixed bug #33966 (Wrong use of reflectionproperty causes a segfault). (Tony)
- Fixed bug #33963 (mssql_bind() fails on input parameters). (Frank)
- Fixed bug #33958 (duplicate cookies and magic_quotes=off may cause a crash).
(Ilia)
- Fixed bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number).
(Derick)
- Fixed bug #33940 (array_map() fails to pass by reference when called
recursively). (Dmitry)
- Fixed bug #33917 (number_format() output with > 1 char separators). (Jani)
- Fixed bug #33904 (input array keys being escaped when magic quotes is off).
(Ilia)
- Fixed bug #33903 (spl_autoload_register class method). (Marcus)
- Fixed bug #33899 (CLI: setting extension_dir=some/path extension=foobar.so
does not work). (Jani)
- Fixed bug #33882 (CLI was looking for php.ini in wrong path). (Hartmut)
- Fixed bug #33869 (strtotime() problem with "+1days" format). (Ilia)
- Fixed bug #33841 (pdo sqlite driver forgets to update affected column
count on execution of prepared statments). (Ilia)
- Fixed bug #33837 (Informix ESQL version numbering schema changed). (Jani)
- Fixed bug #33829 (mime_content_type() returns text/plain for gzip and bzip
files). (Derick)
- Fixed bug #33802 (throw Exception in error handler causes crash). (Dmitry)
- Fixed bug #33771 (error_reporting falls to 0 when @ was used inside
try/catch block). (Tony)
- Fixed bug #33760 (cURL needs to implement CRYPTO_callback functions to
prevent locking). (Mike, Ilia)
- Fixed bug #33732 (Wrong behavior of constants in class and interface
extending). (Dmitry)
- Fixed bug #33723 (php_value overrides php_admin_value). (Dmitry)
- Fixed bug #33720 (mb_encode_mimeheader does not work for multibyte
chars). (Rui)
- Fixed bug #33710 (ArrayAccess objects does not initialize $this). (Dmitry)
- Fixed bug #33690 (Crash setting some ini directives in httpd.conf). (Rasmus)
- Fixed bug #33673 (Added detection for partially uploaded files). (Ilia)
- Fixed bug #33605 (substr_compare() crashes with negative offset and length).
(Tony)
- Fixed bug #33597 (setcookie() "expires" date format doesn't comply with RFC).
(Tony)
- Fixed bug #33588 (LDAP: RootDSE query not possible). (Jani)
- Fixed bug #33578 (strtotime() problem with "Oct17" format). (Derick)
- Fixed bug #33578 (strtotime() doesn't understand "11 Oct" format). (Derick)
- Fixed bug #33562 (date("") crashes). (Derick)
- Fixed bug #33558 (warning with nested calls to functions returning by
reference). (Dmitry)
- Fixed bug #33536 (strtotime() defaults to now even on non time string).
(Derick)
- Fixed bug #33532 (Different output for strftime() and date()). (Derick)
- Fixed bug #33523 (Memory leak in xmlrpc_encode_request()). (Ilia)
- Fixed bug #33520 (crash if safe_mode is on and session.save_path is changed).
(Dmitry)
- Fixed bug #33512 (Add missing support for isset()/unset() overloading to
complement the property get/set methods). (Dmitry)
- Fixed bug #33491 (crash after extending MySQLi internal class). (Tony)
- Fixed bug #33475 (cURL handle is not closed on curl_close(). (Ilia)
- Fixed bug #33469 (Compile error undefined reference to ifx_checkAPI). (Jani)
- Fixed bug #33433 (strtoll not available on Tru64). (Jani, Derick)
- Fixed bug #33427 (ext/odbc: check if unixODBC header file exists). (Jani)
- Fixed bug #33415 (strtotime() related bugs). (Derick)
- Fixed bug #33414 (Comprehensive list of incorrect days returned after
strtotime() / date() tests). (Derick)
- Fixed bug #33389 (double free() when exporting a ReflectionClass). (Marcus)
- Fixed bug #33383 (crash when retrieving empty LOBs). (Tony)
- Fixed bug #33382 (array_reverse() fails after *sort()), introduced by
zend_hash_sort() optimizations in HEAD. (Tony)
- Fixed bug #33340 (CLI Crash when calling php:function from XSLT). (Rob)
- Fixed bug #33326 (Cannot build extensions with phpize on Macosx). (Jani)
- Fixed bug #33318 (throw 1; results in Invalid opcode 108/1/8). (Dmitry)
- Fixed bug #33312 (ReflectionParameter methods do not work correctly).
(Dmitry)
- Fixed bug #33299 (php:function no longer handles returned dom objects).
(Rob, Joe Orton)
- Fixed bug #33286 (nested array_walk() calls and user array compare functions
broken; FCI cache). (Andrei, patch from m.bretz@metropolis-ag.de)
- Fixed bug #33277 (private method accessed by child class). (Dmitry)
- Fixed bug #33268 (iconv_strlen() works only with a parameter of < 3 in
length). (Ilia)
- Fixed bug #33257 (array_splice() inconsistent when passed function instead of
variable). (Dmitry)
- Fixed bug #33243 (ze1_compatibility_mode does not work as expected). (Dmitry)
- Fixed bug #33242 (Mangled error message when stream fails). (Derick)
- Fixed bug #33222 (segfault when CURL handle is closed in a callback). (Tony)
- Fixed bug #33214 (odbc_next_result does not signal SQL errors with
2-statement SQL batches). (rich at kastle dot com, Tony)
- Fixed bug #33212 ([GCC 4]: 'zend_error_noreturn' aliased to external symbol
'zend_error'). (Dmitry)
- Fixed bug #33210 (relax jpeg recursive loop protection). (Ilia)
- Fixed bug #33201 (Crash when fetching some data types). (Frank)
- Fixed bug #33200 (preg_replace(): magic_quotes_sybase=On makes 'e' modifier
misbehave). (Jani)
- Fixed bug #33185 (--enable-session=shared does not build). (Jani)
- Fixed bug #33171 (foreach enumerates private fields declared in base
classes). (Dmitry)
- Fixed bug #33167 (Possible crash inside pg_fetch_array()). (Ilia)
- Fixed bug #33164 (Soap extension incorrectly detects HTTP/1.1). (Ilia)
- Fixed bug #33156 (cygwin version of setitimer doesn't accept ITIMER_PROF).
(Nuno)
- Fixed bug #33153 (crash in mssql_next result). (Frank)
- Fixed bug #33150 (shtool: insecure temporary file creation). (Jani)
- Fixed bug #33136 (method offsetSet in class extended from ArrayObject crash
PHP). (Marcus)
- Fixed bug #33125 (imagecopymergegray() produces mosaic rainbow effect).
(Pierre)
- Fixed bug #33116 (crash when assigning class name to global variable in
__autoload). (Dmitry)
- Fixed bug #33090 (mysqli_prepare() doesn't return an error). (Georg)
- Fixed bug #33076 (str_ireplace() incorrectly counts result string length
and may cause segfault). (Tony)
- Fixed bug #33072 (Add a safemode/open_basedir check for runtime
"session.save_path" change using session_save_path() function). (Rasmus)
- Fixed bug #33070 (Improved performance of bzdecompress() by several orders
of magnitude). (Ilia)
- Fixed bug #33059 (crash when moving xml attribute set in dtd). (Ilia)
- Fixed bug #33057 (Don't send extraneous entity-headers on a 304 as per
RFC 2616 section 10.3.5) (Rasmus, Choitel)
- Fixed bug #33019 (socket errors cause memory leaks in php_strerror()).
(jwozniak23 at poczta dot onet dot pl, Tony).
- Fixed bug #33017 ("make distclean" gives an error with VPATH build). (Jani)
- Fixed bug #33013 ("next month" was handled wrong while parsing dates).
(Derick)
- Fixed bug #32993 (implemented Iterator function current() don't throw
exception). (Dmitry)
- Fixed bug #32924 (file included with "auto_prepend_file" can be included
- Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54
seg fault). (Dmitry)
- Fixed bug #32956 (mysql_bind_result() doesn't support MYSQL_TYPE_NULL).
(Georg)
- Fixed bug #32947 (Incorrect option for mysqli default password). (Georg)
- Fixed bug #32944 (Disabling session.use_cookies doesn't prevent reading
session cookies). (Jani, Tony)
- Fixed bug #32941 (Sending structured SOAP fault kills a php). (Dmitry)
- Fixed bug #32937 (open_basedir looses trailing / in the limiter).
(Adam Conrad)
- Fixed bug #32936 (http redirects URLs are not checked for control chars).
(Ilia)
- Fixed bug #32933 (Cannot extend class "SQLiteDatabase"). (Marcus)
- Fixed bug #32932 (Oracle LDAP: ldap_get_entries(), invalid pointer). (Jani)
- Fixed bug #32930 (class extending DOMDocument doesn't clone properly). (Rob)
- Fixed bug #32924 (file included with "auto_prepend_file" can be included
with require_once() or include_once()). (Stas)
- Fixed bug #32904 (pg_get_notify() ignores result_type parameter). (Tony)
- Fixed bug #32852 (Crash with singleton and __destruct when
zend.ze1_compatibility_mode = On). (Dmitry)
- Fixed bug #32833 (Invalid opcode). (Dmitry)
- Fixed bug #32813 (parse_url() does not handle scheme-only urls properly).
(Ilia)
- Fixed bug #32810 (temporary files not using plain file wrapper). (Ilia)
- Fixed bug #32809 (Missing T1LIB support on Windows). (Edin)
- Fixed bug #32802 (General cookie overrides more specific cookie). (Ilia)
- Fixed bugs #32800, #32830 (ext/odbc: Problems with 64bit systems). (Jani)
- Fixed bug #32799 (crash: calling the corresponding global var during the
destruct). (Dmitry)
- Fixed bug #32776 (SOAP doesn't support one-way operations). (Dmitry)
- Fixed bug #32773 (GMP functions break when second parameter is 0). (Stas)
- Fixed bug #32759 (incorrect determination of default value (COM)). (Wez)
- Fixed bug #32758 (Cannot access safearray properties in VB6 objects). (Wez)
- Fixed bug #32755 (Segfault in replaceChild() when DocumentFragment has no
children). (Rob)
- Fixed bug #32753 (Undefined constant SQLITE_NOTADB). (Ilia)
- Fixed bug #32742 (segmentation fault when the stream with a wrapper
is not closed). (Tony, Dmitry)
- Fixed bug #32699 (pg_affected_rows() was defined when it was not available).
(Derick)
- Fixed bug #32686 (Require/include file in destructor causes segfault).
(Marcus)
- Fixed bug #32682 (ext/mssql: Error on module shutdown when called from
activescript). (Frank)
- Fixed bug #32674 (exception in iterator causes crash). (Dmitry)
- Fixed bug #32660 (Assignment by reference causes crash when field access is
overloaded (__get)). (Dmitry)
- Fixed bug #32647 (Using register_shutdown_function() with invalid callback
can crash PHP). (Jani)
- Fixed bug #32615 (Segfault in replaceChild() using fragment when
previousSibling is NULL). (Rob)
- Fixed bug #32613 (ext/snmp: use of snmp_shutdown() causes snmpapp.conf
access errors). (Jani, ric at arizona dot edu)
- Fixed bug #32608 (html_entity_decode() converts single quotes even if
ENT_NOQUOTES is given). (Ilia)
- Fixed bug #32596 (Segfault/Memory Leak by getClass (etc) in __destruct).
(Dmitry)
- Fixed bug #32591 (ext/mysql: Unsatisfied symbol: ntohs with HP-UX). (Jani)
- Fixed bug #32589 (possible crash inside imap_mail_compose() function).
(Ilia)
- Fixed bug #32589 (Possible crash inside imap_mail_compose, with charsets).
(Ilia)
- Fixed bug #32587 (Apache2: errors sent to error_log do not include
timestamps). (Jani)
- Fixed bug #32560 (configure looks for incorrect db2 library). (Tony)
- Fixed bug #32553 (mmap loads only the 1st 2000000 bytes on Win32). (Ilia)
- Fixed bug #32533 (proc_get_status() returns the incorrect process status).
(Ilia)
- Fixed bug #32530 (chunk_split() does not append endstr if chunklen is
longer then the original string). (Ilia)
- Fixed bug #32491 (File upload error - unable to create a temporary file).
(Uwe Schindler)
- Fixed bug #32429 (method_exists() always return TRUE if __call method
- Fixed bug #32455 (wrong setting property to unset value). (Dmitry)
- Fixed bug #32429 (method_exists() always return TRUE if __call method
exists). (Dmitry)
- Fixed bug #32428 (The @ warning error supression operator is broken).
- Fixed bug #32428 (The @ warning error suppression operator is broken).
(Dmitry)
- Fixed bug #32427 (Interfaces are not allowed 'static' access modifier).
(Dmitry)
- Fixed bug #32109 ($_POST is not populated in multithreaded environment).
- Fixed bug #32405 (mysqli::fetch() returns bad data - 64bit problem).
(Andrey)
- Fixed bug #32296 (get_class_methods() output has changed between 5.0.2 and
5.0.3). (Dmitry)
- Fixed bug #32282 (Segfault in mysqli_fetch_array on 64-bit). (Georg)
- Fixed bug #32245 (xml_parser_free() in a function assigned to the xml
parser gives a segfault). (Rob)
- Fixed bug #32179 (xmlrpc_encode() segfaults with recursive references).
(Tony)
- Fixed bug #32171 (Userspace stream wrapper crashes PHP). (Tony, Dmitry)
- Fixed bug #32160 (copying a file into itself leads to data loss). (Ilia)
- Fixed bug #32139 (SOAP client does not auto-handle base64 encoding). (Ilia)
- Fixed bug #32109 ($_POST is not populated in multi-threaded environment).
(Moriyoshi)
- Fixed bug #32080 (segfault when assigning object to itself with
zend.ze1_compatibility_mode=On). (Dmitry)
- Fixed bug #32021 (Crash caused by range('', 'z')). (Derick)
- Fixed bug #32013 (ext/mysqli bind_result causes fatal error: memory limit).
(Andrey)
- Fixed bug #32010 (Memory leak in mssql_fetch_batch). (fmk)
- Fixed bug #32009 (crash when mssql_bind() is called more than once). (Frank)
- Fixed bug #31971 (ftp_login fails on some SSL servers).
(frantisek at augusztin dot com)
- Fixed bug #31887 (ISAPI: Custom 5xx error does not return correct HTTP
response message). (Jani)
- Fixed bug #31828 (Crash with zend.ze1_compatibility_mode=On). (Dmitry)
- Fixed bug #31668 (multi_query works exactly every other time - multi query
d/e flag global and not per connection). (Andrey)
- Fixed bug #31636 (another crash when echoing a COM object). (Wez)
- Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance
mode). (mike at php dot net)
- Fixed bug #31525 (object reference being dropped. $this getting lost).
(Stas, Dmitry)
- Fixed bug #31502 (Wrong deserialization from session when using WDDX
serializer). (Dmitry)
- Fixed bug #31478 (segfault with empty() / isset()). (Moriyoshi)
- Fixed bug #31465 (False warning in unpack() when working with *). (Ilia)
- Fixed bug #31363 (broken non-blocking flock()). (ian at snork dot net)
- Fixed bug #31358 (Older GCC versions do not provide portable va_copy()).
(Jani)
- Fixed bug #31341 (escape on curly inconsistent). (Dmitry)
- Fixed bug #31256 (PHP_EVAL_LIBLINE configure macro does not handle
-pthread). (Jani)
- Fixed bug #31213 (Side effects caused by fix of bug #29493). (Dmitry)
- Fixed bug #31177 (memory leaks and corruption because of incorrect
refcounting). (Dmitry)
- Fixed bug #31158 (array_splice on $GLOBALS crashes). (Dmitry)
- Fixed bug #31054 (safe_mode & open_basedir checks only check first
include_path value). (Ilia)
- Fixed bug #31033 (php:function(string, nodeset) with xsl:key crashes PHP).
(Rob)
- Fixed bug #30578 (Output buffers flushed before calling __desctruct()
- Fixed bug #30961 (Wrong line number in ReflectionClass getStartLine()).
(Dmitry)
- Fixed bug #30889 (Conflict between __get/__set and ++ operator). (Dmitry)
- Fixed bug #30833 (array_count_values() modifying input array). (Tony)
- Fixed bug #30828 (debug_backtrace() reports incorrect class in overridden
methods). (Dmitry)
- Fixed bug #30820 (static member conflict with $this->member silently
ignored). (Dmitry)
- Fixed bug #30819 (Better support for LDAP SASL bind). (Jani)
- Fixed bug #30791 (magic methods (__sleep/__wakeup/__toString) call
__call if object is overloaded). (Dmitry)
- Fixed bug #30707 (Segmentation fault on exception in method).
(Stas, Dmitry)
- Fixed bug #30702 (cannot initialize class variable from class constant).
(Dmitry)
- Fixed bug #30578 (Output buffers flushed before calling __destruct()
functions). (Jani)
- Fixed bug #30407 (Strange behaviour of default arguments). (Dmitry)
- Fixed bug #30519 (Interface not existing says Class not found). (Dmitry)
- Fixed bug #30407 (Strange behavior of default arguments). (Dmitry)
- Fixed bug #30394 (Assignment operators yield wrong result with __get/__set).
(Dmitry)
- Fixed bug #30332 (zend.ze1_compatibility_mode isn't fully compatible with
array_push()). (Dmitry)
- Fixed bug #30162 (Catching exception in constructor causes lose of
$this). (Dmitry)
- Fixed bug #30140 (Problem with array in static properties). (Dmitry)
- Fixed bug #30126 (Enhancement for error message for abstract classes).
(Marcus)
- Fixed bug #30096 (gmmktime does not return the current time). (Derick)
- Fixed bug #30080 (Passing array or non array of objects). (Dmitry)
- Fixed bug #30052 (Crash on shutdown after odbc_pconnect()). (Edin)
- Fixed bug #29983 (PHP does not explicitly set mime type & charset). (Ilia)
- Fixed bug #29975 (memory leaks when set_error_handler() is used inside error
handler). (Tony)
- Fixed bug #29971 (variables_order behavior). (Dmitry)
- Fixed bug #29944 (Function defined in switch, crashes). (Dmitry)
- Fixed bug #29896 (Backtrace argument list out of sync). (Dmitry)
- Fixed bug #29728 (Reflection API Feature: Default parameter value). (Marcus)
- Fixed bug #29689 (default value of protected member overrides default value
of private and other private variable problems in inherited classes). (Stas)
- Fixed bug #29683 (headers_list() returns empty array). (Tony)
- Fixed bug #29583 (crash when echoing a COM object). (M.Sisolak, Wez)
- Fixed bug #29522 (accessing properties without connection). (Georg)
- Fixed bug #29361 (var_export() producing invalid code). (Derick)
- Fixed bug #29338 (unencoded spaces get ignored after certain tags). (Ilia)
- Fixed bug #29335 (fetch functions now use MYSQLI_BOTH as default). (Georg)
- Fixed bug #29334 (win32 mail() provides incorrect Date: header). (Jani)
- Fixed bug #29311 (calling parent constructor in mysqli). (Georg)
- Fixed bug #29256 (SOAP HTTP Error when envelop size is more than 24345
bytes). (Dmitry, Wez)
- Fixed bug #29268 (__autoload() not called with Reflection->getClass()).
(Dmitry)
- Fixed bug #29256 (SOAP HTTP Error when envelop size is more than 24345
bytes). (Dmitry, Wez)
- Fixed bug #29253 (array_diff with $GLOBALS argument fails). (Dmitry)
- Fixed bug #29236 (memory error when wsdl-cache is enabled). (Dmitry)
- Fixed bug #29210 (Function: is_callable - no support for private and
protected classes). (Dmitry)
- Fixed bug #29109 (SoapFault exception: [WSDL] Out of memory). (Dmitry)
- Fixed bug #29104 (Function declaration in method doesn't work). (Dmitry)
- Fixed bug #29061 (soap extension segfaults). (Dmitry)
- Fixed bug #29015 (Incorrect behavior of member vars(non string ones)-numeric
mem vars and others). (Dmitry)
- Fixed bug #28985 (__getTypes() returning nothing on complex WSDL). (Dmitry)
- Fixed bug #28969 (Wrong data encoding of special characters). (Dmitry)
- Fixed bug #28839 (SIGSEGV in interactive mode (php -a)).
(kameshj at fastmail dot fm)
- Fixed bug #28605 (Need to use -[m]ieee option for Alpha CPUs). (Jani)
- Fixed bug #28568 (SAPI::known_post_content_types is not thread safe).
(Moriyoshi)
- Fixed bug #29689 (default value of protected member overrides default value of private)
and other private variable problems in inherited classes (Stas)
- Abstract private methods are no longer allowed (Stas)
- Fixed bug #28377 (debug_backtrace is intermittently passing args). (Dmitry)
- Fixed bug #28355 (glob wont error if dir is not readable). (Hartmut)
- Fixed bug #28072 (static array with some constant keys will be incorrectly
ordered). (Dmitry)
- Fixed bug #27908 (xml default_handlers not being called). (Rob)
- Fixed bug #27598 (list() array key assignment causes HUGE memory leak).
(Dmitry)
- Fixed bug #27268 (Bad references accentuated by clone). (Dmitry)
- Fixed bug #26456 (Wrong results from Reflection-API getDocComment() when
called via STDIN). (Dmitry)
- Fixed bug #25922 (In error handler, modifying 5th arg (errcontext) may
result in seg fault). (Dmitry)
- Fixed bug #25359 (array_multisort() doesn't work in a function if array is
global or reference). (Dmitry)
- Fixed bug #22836 (returning reference to uninitialized variable). (Dmitry)
- Fixed bug #21306 (ext/sesssion: catch bailouts of write handler during
RSHUTDOWN). (Jani, Xuefer at 21cn dot com)
- Fixed bug #15854 (boolean ini options may be incorrectly displayed as Off
when they are On). (Tony)
- Fixed bugs #14561, #20382, #26090, #26320, #28024, #30532, #32086, #32270,
#32555, #32588, #33056 (strtotime() related bugs). (Derick)
31 Mar 2005, PHP 5.0.4
- Added SNMPv2 support. (harrie)
-8
View File
@@ -64,14 +64,6 @@ documentation
* Add developer documentation.
* Add detailed documentation for Java extension.
ext/bz2
-------
* Add an ini directive to specify the size of decompression buffer.
The default 4k is too small for large files and also requires much time
for decompression. 40k is suitable for such files, however it may be too
much under certain environments. There should be appropriate default
settings for the various SAPI modules (e.g. apache and cli).
ext/curl
--------
* Have a warning scheme for when people use unsupported features.
-6
View File
@@ -2,9 +2,3 @@ Zend Engine
-----------
- Look at making zend_constant value member be a zval* instead of zval. (Andi)
- Implement inheritance rules for type hints. (Marcus)
- Implement typehinting for arrays (apply the patch). (Andi, Marcus)
- Find a keyword for the if-set-or operator (apply the patch). (Marcus, all)
Standard Library
----------------
- Implement new time/date parsing and handling functions. (Derick)
-3
View File
@@ -1,3 +0,0 @@
- clean up .cvsignores
- purge Makefile.ins and replace PHP_EXTENSION in config.m4s
with appropiate calls to PHP_NEW_EXTENSION
-19
View File
@@ -430,7 +430,6 @@ void *tsrm_new_interpreter_context(void)
current = tsrm_tls_get();
new_ctx = malloc(sizeof(*new_ctx));
allocate_new_resource(&new_ctx, thread_id);
/* switch back to the context that was in use prior to our creation
@@ -580,12 +579,6 @@ TSRM_API void tsrm_mutex_free(MUTEX_T mutexp)
#ifdef TSRM_WIN32
DeleteCriticalSection(mutexp);
free(mutexp);
#elif defined(NETWARE)
#ifdef USE_MPK
kMutexFree(mutexp);
#else
NXMutexFree(mutexp);
#endif
#elif defined(GNUPTH)
free(mutexp);
#elif defined(PTHREADS)
@@ -615,12 +608,6 @@ TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp)
#ifdef TSRM_WIN32
EnterCriticalSection(mutexp);
return 1;
#elif defined(NETWARE)
#ifdef USE_MPK
return kMutexLock(mutexp);
#else
return NXLock(mutexp);
#endif
#elif defined(GNUPTH)
return pth_mutex_acquire(mutexp, 0, NULL);
#elif defined(PTHREADS)
@@ -646,12 +633,6 @@ TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp)
#ifdef TSRM_WIN32
LeaveCriticalSection(mutexp);
return 1;
#elif defined(NETWARE)
#ifdef USE_MPK
return kMutexUnlock(mutexp);
#else
return NXUnlock(mutexp);
#endif
#elif defined(GNUPTH)
return pth_mutex_release(mutexp);
#elif defined(PTHREADS)
+1 -1
View File
@@ -143,7 +143,7 @@ TSRM_API void tsrm_free_interpreter_context(void *context);
#define TSRMLS_FETCH() void ***tsrm_ls = (void ***) ts_resource_ex(0, NULL)
#define TSRMLS_FETCH_FROM_CTX(ctx) void ***tsrm_ls = (void ***) ctx
#define TSRMLS_SET_CTX(ctx) (void ***) ctx = tsrm_ls
#define TSRMLS_SET_CTX(ctx) ctx = (void ***) tsrm_ls
#define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
#define TSRMLS_D void ***tsrm_ls
#define TSRMLS_DC , TSRMLS_D
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
| Copyright (c) 1997-2005 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 |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
| Copyright (c) 1997-2005 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 |
+18 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
| Copyright (c) 1997-2005 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 |
@@ -42,6 +42,10 @@
# endif
#endif
#ifdef NETWARE
#include <fsio.h>
#endif
#ifndef HAVE_REALPATH
#define realpath(x,y) strcpy(y,x)
#endif
@@ -206,7 +210,20 @@ CWD_API void virtual_cwd_startup(void)
char cwd[MAXPATHLEN];
char *result;
#ifdef NETWARE
result = getcwdpath(cwd, NULL, 1);
if(result)
{
char *c=cwd;
while(c = strchr(c, '\\'))
{
*c='/';
++c;
}
}
#else
result = getcwd(cwd, sizeof(cwd));
#endif
if (!result) {
cwd[0] = '\0';
}
+2 -4
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
| Copyright (c) 1997-2005 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 |
@@ -70,12 +70,10 @@ typedef unsigned short mode_t;
#include <dirent.h>
#endif
#define DEFAULT_SLASH '\\'
#define DEFAULT_SLASH '/'
#define DEFAULT_DIR_SEPARATOR ';'
#define IS_SLASH(c) ((c) == '/' || (c) == '\\')
#define IS_SLASH_P(c) IS_SLASH(*(c))
#define COPY_WHEN_ABSOLUTE(path) \
(strchr(path, ':') - path + 1) /* Take the volume name which ends with a colon */
/* Colon indicates volume name, either first character should be forward slash or backward slash */
#define IS_ABSOLUTE_PATH(path, len) \
((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\'))))
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
| Copyright (c) 1997-2005 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 |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
| Copyright (c) 1997-2005 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 |
Executable
+548
View File
@@ -0,0 +1,548 @@
$Id$
UPGRADE NOTES - PHP 5.1
1. Changes in reference handling
a. Overview
b. Code that worked under PHP 4.3, but now fails
c. Code that was valid under PHP 4.3, but now throws an error
d. Code that failed under PHP 4.3, but now works
e. Code that 'should have worked' under PHP 5.0
f. Warnings that came and went
2. Reading []
3. instanceof, is_a(), is_subclass_of(), catch
4. Integer values in function parameters
5. Abstract private methods
6. Access modifiers in interfaces
7. Changes in inheritance rules
8. Class constants
9. Extensions
a. Extensions that are gone from the PHP core
b. Class constants in new PHP 5.1 extensions
10. Date/time support
11. Changes in database support
a. PDO overview
b. Changes in MySQL support
c. Changes in SQLite support
12. Further migration information
13. Checking for E_STRICT errors
===============================================================================
1. Changes in reference handling
================================
1a. Overview
============
>From the PHP script writer's point of view, the change most likely to impact
legacy code is in the way that references are handled in all PHP versions
post-dating the PHP 4.4.0 release.
Until and including PHP 4.3, it was possible to send, assign or return variables
by reference that should really be returned by value, such as a constant, a
temporary value (e.g. the result of an expression), or the result of a function
that had itself been returned by value, as here:
<?php
$foo = "123";
function return_value() {
global $foo;
return $foo;
}
$bar = &return_value();
?>
Although this code would usually work as expected under PHP 4.3, in the general
case the result is undefined. The Zend Engine could not act correctly on these
values as references. This bug could and did lead to various hard-to-reproduce
memory corruption problems, particularly where the code base was large.
In PHP 4.4.0, PHP 5.0.4 and all subsequent PHP releases, the Engine was fixed
to 'know' when the reference operation is being used on a value that should
not be referenced. The actual value is now used in such cases, and a warning
is emitted. The warning takes the form of an E_NOTICE in PHP 4.4.0 and up,
and E_STRICT in PHP 5.0.4 and up.
Code that could potentially produce memory corruption can no longer do so.
However, some legacy code might work differently as a result.
1b. Code that worked under PHP 4.3, but now fails
=================================================
<?php
function func(&$arraykey) {
return $arraykey; // function returns by value!
}
$array = array('a', 'b', 'c');
foreach (array_keys($array) as $key) {
$y = &func($array[$key]);
$z[] =& $y;
}
var_dump($z);
?>
Running the above script under any version of PHP that pre-dates the reference
fix would produce this output:
array(3) {
[0]=>
&string(1) "a"
[1]=>
&string(1) "b"
[2]=>
&string(1) "c"
}
Following the reference fix, the same code would result in:
array(3) {
[0]=>
&string(1) "c"
[1]=>
&string(1) "c"
[2]=>
&string(1) "c"
}
This is because, following the changes, func() assigns by value. The value
of $y is re-assigned, and reference-binding is preserved from $z. Prior
to the fix, the value was assigned by reference, leading $y to be
re-bound on each assignment. The attempt to bind to a temporary value
by reference was the cause of the memory corruption.
Such code can be made to work identically in both the pre-fix and the
post-fix PHP versions. The signature of func() can be altered to return
by reference, or the reference assignment can be removed from the result
of func().
<?php
function func() {
return 'function return';
}
$x = 'original value';
$y =& $x;
$y = &func();
echo $x;
?>
In PHP 4.3 $x would be 'original value', whereas after the changes it would
be 'function return' - remember that where the function does not return by
reference, the reference assignment is converted to a regular assignment.
Again, this can be brought to a common base, either by forcing func() to
return by reference or by eliminating the by-reference assignment.
1c. Code that was valid under PHP 4.3, but now throws an error
==============================================================
<?php
class Foo {
function getThis() {
return $this;
}
function destroyThis() {
$baz =& $this->getThis();
}
}
$bar = new Foo();
$bar->destroyThis();
var_dump($bar);
?>
In PHP 5.0.3, $bar evaluated to NULL instead of returning an object.
That happened because getThis() returns by value, but the value here
is assigned by reference. Although it now works in the expected way,
this is actually invalid code which will throw an E_NOTICE under
PHP 4.4 or an E_STRICT under PHP 5.0.4 and up.
1d. Code that failed under PHP 4.3, but now works
=================================================
<?php
function &f() {
$x = "foo";
var_dump($x);
print "$x\n";
return($a);
}
for ($i = 0; $i < 3; $i++) {
$h = &f();
}
?>
In PHP 4.3 the third call to var_dump produces NULL, due to the memory
corruption caused by returning an uninitialized value by reference.
This is valid code in PHP 5.0.4 and up, but threw errors in earlier
releases of PHP.
<?php
$arr = array('a1' => array('alfa' => 'ok'));
$arr =& $arr['a1'];
echo '-'.$arr['alfa']."-\n";
?>
Until PHP 5.0.5, it wasn't possible to assign an array element by
reference in this way. It now is.
1e. Code that 'should have worked' under PHP 5.0
================================================
There are a couple of instances of bugs reported under PHP 5.0 prior
to the reference fixes which now 'work'. However, in both cases errors
are thrown by PHP 5.1, because the code was invalid in the first place.
Returning values by reference using self:: now works in the general
case but throws an E_STRICT warning, and although your mileage may
vary when assigning by reference to an overloaded object, you will
still see an E_ERROR when you try it, even where the assignment
itself appears to work.
1f. Warnings that came and went
===============================
<?php
function & foo() {
$var = 'ok';
return $var;
}
function & bar() {
return foo();
}
$a =& bar();
echo "$a\n";
?>
Nested calls to functions returning by reference are valid code under both
PHP 4.3 and PHP 5.1, but threw an unwarranted E_NOTICE or E_STRICT under
the intervening PHP releases.
2. Reading []
=============
<?php
class XmlTest {
function test_ref(&$test) {
$test = "ok";
}
function test($test) { }
function run() {
$ar = array();
$this->test_ref($ar[]);
var_dump($ar);
$this->test($ar[]);
}
}
$o = new XmlTest();
$o->run();
?>
This should always have thrown a fatal E_ERROR, because [] cannot be used
for reading in PHP. It is invalid code in PHP 4.4.2 and PHP 5.0.5 upward.
3. instanceof, is_a(), is_subclass_of(), catch
==============================================
In PHP 5.0, is_a() was deprecated and replaced by the "instanceof" operator.
There were some issues with the initial implementation of "instanceof", which
relied on __autoload() to search for missing classes. If the class was not
present, "instanceof" would throw a fatal E_ERROR due to the failure of
__autoload() to discover that class. The same behaviour occurred in the
"catch" operator and the is_subclass_of() function, for the same reason.
None of these functions or operators call __autoload() in PHP 5.1, and
the class_exists() workarounds used in code written for PHP 5.0, while
not problematic in any way, are no longer necessary.
4. Integer values in function parameters
========================================
With the advent of PHP 5.0, a new parameter parsing API was introduced
which is used by a large number of PHP functions. In all versions of
PHP between 5.0 and 5.1, the handling of integer values was very strict
and would reject non-well formed numeric values when a PHP function
expected an integer. These checks have now been relaxed to support
non-well formed numeric strings such as " 123" and "123 ", and will
no longer fail as they did under PHP 5.0. However, to promote code
safety and input validation, PHP functions will now emit an E_NOTICE
when such strings are passed as integers.
5. Abstract private methods
===========================
Abstract private methods were supported between PHP 5.0.0 and PHP 5.0.4,
but were then disallowed on the grounds that the behaviours of 'private'
and 'abstract' are mutually exclusive.
6. Access modifiers in interfaces
=================================
Under PHP 5.0, function declarations in interfaces were treated in exactly
the same way as function declarations in classes. This has not been the case
since October 2004, at which point only the 'public' access modifier was
allowed in interface function declarations. Since April 2005 - which pre-dates
the PHP 5.0b1 release - the 'static' modifier has also been allowed. However,
the 'protected' and 'private' modifiers will now throw an E_ERROR, as will
'abstract'. Note that this change should not affect your existing code, as
none of these modifiers makes sense in the context of interfaces anyway.
7. Changes in inheritance rules
===============================
Under PHP 5.0, it was possible to have a function declaration in a derived class
that did not match the declaration of the same function in the base class, e.g.
class Base {
function &return_by_ref() {
$r = 1;
return $r;
}
}
class Derived extends Base {
function return_by_ref() {
return 1;
}
}
This code will cause an E_STRICT error to be emitted under PHP 5.1.
8. Class constants
==================
Under PHP 5.0, the following code was valid:
<?php
class test {
const foobar = 'foo';
const foobar = 'bar';
}
?>
Under PHP 5.1, redefinition of a class constant will throw a fatal E_ERROR.
9. Extensions
=============
9a. Extensions that are gone from the PHP core
==============================================
One of the first things you're likely to notice when you download PHP 5.1 is that
several of the older extensions have disappeared. Those extensions that are still
actively maintained are available in the PHP Extension Community Library (PECL),
at http://pecl.php.net. Windows binaries are built regularly, and you can obtain
the binaries for PECL extensions built against PHP 5.1 from
http://pecl4win.php.net/list.php/5_1.
Extension Alternative/status
========= ========================
ext/cpdf pecl/pdflib
ext/dbx pecl/dbx
ext/dio pecl/dio
ext/fam not actively maintained
ext/ingres_ii pecl/ingres
ext/ircg not actively maintained
ext/mcve pecl/mcve
ext/mnogosearch not actively maintained
ext/oracle ext/oci8 or ext/pdo_oci
ext/ovrimos not actively maintained
ext/pfpro not actively maintained
- alternatives at http://pecl.php.net/packages.php?catpid=18&catname=Payment
ext/w32api pecl/ffi
ext/yp not actively maintained
sapi/activescript http://pecl4win.php.net/ext.php/php5activescript.dll (PECL package)
or pecl/activescript (CVS)
Modules in PECL that are not actively maintained (i.e. have not been supported
for some time, have no active maintainer working on them currently, and do not
have any PECL package releases), are still available in CVS at
http://cvs.php.net/pecl/. However, unreleased PHP modules are by their nature
unsupported, and your mileage may vary when attempting to install or use them.
9b. Class constants in new PHP 5.1 extensions
=============================================
The Zend Engine 2.1 API allows extension developers to declare class constants
in object oriented extensions. New extensions written for PHP 5.1, including SPL,
PDO, ext/XMLReader and ext/date, have their constants in the format
PDO::CLASS_CONSTANT
rather than in the C format
PDO_CLASS_CONSTANT
in order to minimise pollution of the global namespace in PHP.
10. Date/time support
====================
Date/time support has been fully rewritten in PHP 5.1, and no longer
uses the system settings to 'know' the timezone in operation. It will
instead utilize, in the following order:
* The timezone set using the date_default_timezone_set() function (if any)
* The TZ environment variable (if non empty)
* The date.timezone ini option (if set)
* "magical" guess (if the operating system supports it)
* If none of the above options succeeds, UTC
To ensure accuracy (and avoid an E_STRICT warning), you will need to define
your timezone in your php.ini using the following format:
date.timezone = Europe/London
The supported timezones are listed, in this format, in the PHP manual at
http://www.php.net/manual/en/timezones.php.
11. Changes in database support
==============================
11a. PDO overview
================
PHP Data Objects (PDO) were introduced as a PECL extension under PHP 5.0,
and became part of the core PHP distribution in PHP 5.1. The PDO extension
provides a consistent interface for database access, and is used alongside
database-specific PDO drivers. Each driver may also have database-specific
functions of its own, but basic data access functionality such as issuing
queries and fetching data is covered by PDO functions, using the driver
named in PDO::__construct().
Note that the PDO extension, and its drivers, are intended to be built as
shared extensions. This will enable straightforward driver upgrades from
PECL, without forcing you to rebuild all of PHP.
At the point of the PHP 5.1 release, PDO is more than ready for widespread
testing and could be adopted in most situations. However, it is important
to understand that PDO and its drivers are comparatively young and may be
missing certain database-specific features; evaluate PDO carefully before
you use it in new projects.
Legacy code will generally rely on the pre-existing database extensions,
which are still maintained.
There is more in-depth information about the PDO extension in the manual
at http://www.php.net/manual/ref.pdo.php.
11b. Changes in MySQL support
============================
In PHP 4, MySQL 3 support was built-in. With the release of PHP 5.0 there
were two MySQL extensions, named 'mysql' and 'mysqli', which were designed
to support MySQL < 4.1 and MySQL 4.1 and up, respectively. With the
introduction of PDO, which provides a very fast interface to all the
database APIs supported by PHP, the PDO_MYSQL driver can support any
of the current versions (MySQL 3, 4 or 5) in PHP code written for PDO,
depending on the MySQL library version used during compilation. The
older MySQL extensions remain in place for reasons of back compatibility,
but are not enabled by default.
11c. Changes in SQLite support
=============================
In PHP 5.0, SQLite 2 support was provided by the built-in sqlite
extension, which was also available as a PECL extension in PHP 4.3
and PHP 4.4. With the introduction of PDO, the sqlite extension doubles
up to act as a 'sqlite2' driver for PDO; it is due to this that the
sqlite extension in PHP 5.1 has a dependency upon the PDO extension.
PHP 5.1 ships with a number of alternative interfaces to sqlite:
The sqlite extension provides the "classic" sqlite procedural/OO API
that you may have used in prior versions of PHP. It also provides the
PDO 'sqlite2' driver, which allows you to access legacy SQLite 2
databases using the PDO API.
PDO_SQLITE provides the 'sqlite' version 3 driver. SQLite version 3
is vastly superior to SQLite version 2, but the file formats of the
two versions are not compatible.
If your SQLite-based project is already written and working against
earlier PHP versions, then you can continue to use ext/sqlite without
problems, but will need to explicitly enable both PDO and sqlite. New
projects should use PDO and the 'sqlite' (version 3) driver, as this is
faster than SQLite 2, has improved locking concurrency, and supports
both prepared statements and binary columns natively.
12. Further migration information
================================
For general information about migrating from PHP 4 to PHP 5, please refer to
the relevant section in the PHP manual at http://www.php.net/manual/migration5.php.
13. Checking for E_STRICT errors
================================
If you only have a single script to check, you can pick up E_STRICT
errors using PHP's commandline lint facility:
php -d error_reporting=4095 -l script_to_check.php
For larger projects, the shell script below will achieve the same task:
#!/bin/sh
directory=$1
shift
# These extensions are checked
extensions="php inc"
check_file ()
{
echo -ne "Doing PHP syntax check on $1 ..."
# Options:
ERRORS=`/www/php/bin/php -d display_errors=1 -d html_errors=0 -d error_prepend_string=" " -d error_append_string=" " -d error_reporting=4095 -l $1 | grep -v "No syntax errors detected"`
if test -z "$ERRORS"; then
echo -ne "OK."
else
echo -e "Errors found!\n$ERRORS"
fi
echo
}
# loop over remaining file args
for FILE in "$@" ; do
for ext in $extensions; do
if echo $FILE | grep "\.$ext$" > /dev/null; then
if test -f $FILE; then
check_file "$FILE"
fi
fi
done
done
+904
View File
@@ -1,3 +1,907 @@
2005-08-05 Dmitry Stogov <dmitry@zend.com>
* zend_execute.c
tests/array_type_hint_001.phpt
tests/bug33996.phpt:
Fixed bug #33996 (No information given for fatal error on passing invalid
value to typed argument)
* zend_operators.c
tests/bug33999.phpt:
Fixed bug #33999 (object remains object when cast to int)
* zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Fixed memory leak in foreach() on undefined variable
(Zend/tests/foreach_undefined.php)
2005-08-04 Antony Dovgal <antony@zend.com>
* tests/foreach_undefined.phpt:
add test for the last Dmitry's fix
2005-08-04 Dmitry Stogov <dmitry@zend.com>
* zend_compile.c:
Fixed possible memory corryption during compilation of <?php foreach($a as
$b); ?>
* (PHP_5_0)
zend_objects.c:
Fixed clone bug in ze1_compatibility mode
* zend_objects.c:
Fixed clone bug in ze1_compatibilty mode
2005-08-03 Jani Taskinen <jani.taskinen@sci.fi>
* LICENSE:
- Bumber up year
* acconfig.h
zend.c
zend.h
zend_API.c
zend_API.h
zend_alloc.c
zend_alloc.h
zend_builtin_functions.c
zend_builtin_functions.h
zend_compile.c
zend_compile.h
zend_config.nw.h
zend_config.w32.h
zend_constants.c
zend_constants.h
zend_default_classes.c
zend_dynamic_array.c
zend_dynamic_array.h
zend_errors.h
zend_exceptions.c
zend_exceptions.h
zend_execute.c
zend_execute.h
zend_execute_API.c
zend_extensions.c
zend_extensions.h
zend_fast_cache.h
zend_globals.h
zend_globals_macros.h
zend_hash.c
zend_hash.h
zend_highlight.c
zend_highlight.h
zend_indent.c
zend_indent.h
zend_ini.c
zend_ini.h
zend_ini_parser.y
zend_ini_scanner.h
zend_ini_scanner.l
zend_interfaces.c
zend_interfaces.h
zend_istdiostream.h
zend_iterators.c
zend_iterators.h
zend_language_parser.y
zend_language_scanner.h
zend_language_scanner.l
zend_list.c
zend_list.h
zend_llist.c
zend_llist.h
zend_mm.c
zend_mm.h
zend_modules.h
zend_multibyte.c
zend_multibyte.h
zend_multiply.h
zend_object_handlers.c
zend_object_handlers.h
zend_objects.c
zend_objects.h
zend_objects_API.c
zend_objects_API.h
zend_opcode.c
zend_operators.c
zend_operators.h
zend_ptr_stack.c
zend_ptr_stack.h
zend_qsort.c
zend_qsort.h
zend_reflection_api.c
zend_reflection_api.h
zend_sprintf.c
zend_stack.c
zend_stack.h
zend_static_allocator.c
zend_static_allocator.h
zend_stream.c
zend_stream.h
zend_strtod.h
zend_ts_hash.c
zend_ts_hash.h
zend_types.h
zend_variables.c
zend_variables.h
zend_vm.h:
Bump up the year
* README.ZEND_VM:
Nuked DOS EOLs
2005-08-02 Dmitry Stogov <dmitry@zend.com>
* zend_execute_API.c
zend_execute_API.c:
Fixed bug #33942 (the patch to #33156 crash cygwin except cli)
2005-08-02 Jani Taskinen <jani.taskinen@sci.fi>
* zend_exceptions.c:
- Fixed bug #33967 (misuse of Exception constructor doesn\'t display
errorfile)
2005-08-02 Dmitry Stogov <dmitry@zend.com>
* bench.php:
Removed warnings
2005-07-29 Ilia Alshanetsky <ilia@prohost.org>
* zend_vm_def.h
zend_vm_execute.h:
Fixed warning message generated when isset() or empty() are given invalid
offset type.
2005-07-29 Anantha Kesari H Y <hyanantha@novell.com>
* acconfig.h
acconfig.h:
In NetWare few of the programs like apache2 and ldap use winsock inclusinf
sys/socket.h is not desirable.
--Kamesh
2005-07-29 Jani Taskinen <jani.taskinen@sci.fi>
* zend_vm_execute.h:
update generated file
2005-07-28 Andi Gutmans <andi@zend.com>
* zend_vm_def.h:
- Tiny fixlet
2005-07-28 Marcus Boerger <marcus.boerger@post.rwth-aachen.de>
* zend_API.c
zend_API.h:
- Add convenience function zend_is_callable_ex() and base zend_is_callable
and zend_make_callable on it. This functions allows to check if a php
variable is a callable function and returns its function pointer as well
as object if possible.
2005-07-26 Jani Taskinen <jani.taskinen@sci.fi>
* zend_execute_API.c:
bug #33865
2005-07-25 Marcus Boerger <marcus.boerger@post.rwth-aachen.de>
* zend_API.c:
- Fix #33853
2005-07-22 Dmitry Stogov <dmitry@zend.com>
* zend.c
zend.c
tests/bug33802.phpt
tests/bug33802.phpt
tests/bug33802.phpt:
Fixed bug #33802 (throw Exception in error handler causes crash)
2005-07-21 Marcus Boerger <marcus.boerger@post.rwth-aachen.de>
* zend_execute_API.c:
- Fix error generation logic (found by johannes)
2005-07-21 Dmitry Stogov <dmitry@zend.com>
* zend_vm_def.h:
Fixed bug with returning from internal function by reference
2005-07-19 Marcus Boerger <marcus.boerger@post.rwth-aachen.de>
* zend_interfaces.c:
- Dont't warn in case an exception is pending - in this case it'd
superflous
2005-07-19 Dmitry Stogov <dmitry@zend.com>
* zend_compile.c
zend_compile.c
zend_execute.c
zend_vm_execute.h
zend_vm_opcodes.h:
Fixed bug #33710 (ArrayAccess objects doen't initialize $this)
2005-07-18 Rasmus Lerdorf <rasmus@lerdorf.com>
* zend_language_scanner.l:
Valgrind is unhappy that this is not initialized
2005-07-18 Dmitry Stogov <dmitry@zend.com>
* zend_API.c
zend_API.h:
Fixed bug in new module statrup mechanism
* (PHP_5_0)
zend_execute.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h
tests/bug33558.phpt:
Fixed bug #33558 (warning with nested calls to functions returning by
reference)
* tests/bug33558.phpt
tests/bug33558.phpt:
Fixed bug #33558 (warning with nested calls to functions returning by
reference)
* zend_vm_def.h
zend_vm_execute.h
zend_vm_gen.php
zend_vm_opcodes.h:
Removed some compilation warnings.
2005-07-18 Jani Taskinen <jani.taskinen@sci.fi>
* tests/bug33710.phpt:
typo
2005-07-17 Marcus Boerger <marcus.boerger@post.rwth-aachen.de>
* tests/bug33710.phpt:
- Add new test
2005-07-17 Ilia Alshanetsky <ilia@prohost.org>
* zend_compile.c:
Added missing init.
2005-07-14 Andi Gutmans <andi@zend.com>
* zend.h:
- Back to -dev
* (php_5_1_0b3)
zend.h:
- Beta 3
2005-07-12 Andi Gutmans <andi@zend.com>
* zend.h:
- Back to -dev
* (php_5_1_0b3)
zend.h:
- Beta 3
2005-07-12 Dmitry Stogov <dmitry@zend.com>
* (php_5_1_0b3)
zend_execute_API.c
zend_execute_API.c:
Fixed bug #33156 (cygwin version of setitimer doesn't accept ITIMER_PROF).
(Nuno)
2005-07-11 Ilia Alshanetsky <ilia@prohost.org>
* zend_vm_def.h
zend_vm_execute.h:
Make references misuse emit E_NOTICE rather E_STRICT to be compatible with
PHP 4.4.0
2005-07-08 Jani Taskinen <jani.taskinen@sci.fi>
* tests/unset_cv05.phpt
tests/unset_cv06.phpt:
fix test when session.save_handler is "user"
2005-07-07 Dmitry Stogov <dmitry@zend.com>
* zend.h
zend_API.c
zend_API.h
zend_compile.c
zend_compile.h
zend_object_handlers.c
zend_objects.c
zend_reflection_api.c:
Fixed bug #33512 (Add missing support for isset()/unset() overloading to
complement the property get/set methods)
2005-07-07 Anantha Kesari H Y <hyanantha@novell.com>
* zend_stream.c
zend_stream.c:
zend_stream_getc uses fread internally. NetWare LibC fread reads 4(Which I
believe EOT) for EOF(^D) character. This happens when fread is asked to
read one and only character as is the case with cl interactive mode.
-- Kamesh
2005-07-07 Dmitry Stogov <dmitry@zend.com>
* zend_execute_API.c
zend_hash.c
zend_hash.h
tests/bug28072.phpt:
Fixed bug #28072 (static array with some constant keys will be incorrectly
ordered).
2005-07-04 Dmitry Stogov <dmitry@zend.com>
* zend_compile.h
zend_execute.c
zend_language_parser.y
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Fixed SIGSEGV on 'global ${"{$blah}_ID"};'
* zend_API.h
zend_execute_API.c:
Fixed bug #31158 (array_splice on $GLOBALS crashes)
2005-07-03 Dmitry Stogov <dmitry@zend.com>
* zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Fixed memory leak
2005-06-30 Dmitry Stogov <dmitry@zend.com>
* zend_API.c
zend_API.h:
Restored old behavior of zend_statup_module()
2005-06-29 Stanislav Malyshev <stas@zend.com>
* zend_execute.c
zend_vm_def.h
zend_vm_execute.h:
fix conditions for freeing
* zend_API.c
zend_API.c:
add comment
* (PHP_5_0)
zend_execute.c:
fix conditions
2005-06-28 Antony Dovgal <antony@zend.com>
* zend_execute.c:
fix leak: when dup was <success>ful zend_std_object_get_class_name()
returns SUCCESS aka 0
2005-06-28 Stanislav Malyshev <stas@zend.com>
* zend_execute.c
zend_vm_def.h
zend_vm_execute.h:
fix previous patch
* zend_vm_execute.h:
update
* zend_execute.c
zend_vm_def.h:
fixes for non-php objects
* (PHP_5_0)
zend_execute.c:
fixes fo rnon-php objects (John Coggeshall)
2005-06-27 Jani Taskinen <jani.taskinen@sci.fi>
* zend.c:
- Fixed bug #31358 (Older GCC versions do not provide portable va_copy()).
2005-06-27 Stanislav Malyshev <stas@zend.com>
* zend_API.c
zend_API.c
zend_API.h
zend_API.h
zend_builtin_functions.c
zend_builtin_functions.c
zend_exceptions.c
zend_exceptions.c:
fix various "Class entry requested for an object without PHP class"
messages
when working with non-PHP objects.
2005-06-27 Dmitry Stogov <dmitry@zend.com>
* (PHP_5_0)
zend_execute.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Fixed SIGSEGV on assigment string offset by reference
* zend_builtin_functions.c
zend_builtin_functions.c:
Fixed wrong include/requre occurrences in debug backtrace.
2005-06-24 Dmitry Stogov <dmitry@zend.com>
* zend_execute.h
zend_vm_def.h
zend_vm_execute.h
zend_vm_gen.php
zend_vm_opcodes.h:
Export zend_do_fcall() helper from executor
* zend_compile.c
zend_compile.c:
Partial fix for bug #26584 (Class member - array key overflow)
It doesn't fix integer overflow problem, but allows null, boolean and
double keys in array constants in the same way as in runtime.
* tests/bug30519.phpt
tests/bug30519.phpt:
Fixed bug #30519 (Interface not existing says Class not found)
* zend_compile.c
zend_compile.c
zend_compile.h
zend_compile.h
zend_execute.c
zend_execute_API.c
zend_execute_API.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h
tests/bug30519.phpt:
Fixed bug #30519 (Interface not existing says Class not found)
2005-06-23 Dmitry Stogov <dmitry@zend.com>
* zend_builtin_functions.c
zend_builtin_functions.c
tests/bug28377.phpt:
Fixed bug #28377 (debug_backtrace is intermittently passing args)
* tests/bug28377.phpt
tests/bug28377.phpt:
file bug28377.phpt was initially added on branch PHP_5_0.
* (PHP_5_0)
zend_execute.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h
tests/bug32660.phpt:
Fixed bug #32660 (Assignment by reference causes crash when field access is
overloaded (__get))
* tests/bug32660.phpt
tests/bug32660.phpt:
Fixed bug #32660 (Assignment by reference causes crash when field access
is overloaded (__get))
* zend_builtin_functions.c
zend_builtin_functions.c
tests/bug30828.phpt:
Fixed bug #30828 (debug_backtrace() reports incorrect class in overridden
methods)
* tests/bug30828.phpt
tests/bug30828.phpt:
file bug30828.phpt was initially added on branch PHP_5_0.
* (PHP_5_0)
tests/bug27268.phpt:
Test for bug #27268. It is fixed in HEAD but not in PHP_5_0.
* zend_execute.c
tests/bug27268.phpt
tests/bug27268.phpt:
Fixed bug #27268 (Bad references accentuated by clone).
2005-06-23 Andi Gutmans <andi@zend.com>
* zend.h:
- Back to -dev
* (php_5_1_0b2)
zend.h:
- Beta 2
2005-06-22 Dmitry Stogov <dmitry@zend.com>
* (php_5_1_0b2)
zend_builtin_functions.c
zend_builtin_functions.c
zend_execute_API.c
zend_execute_API.c
tests/bug29896.phpt:
Fixed bug #29896 (Backtrace argument list out of sync)
* tests/bug29896.phpt
tests/bug29896.phpt:
file bug29896.phpt was initially added on branch PHP_5_0.
2005-06-22 Stanislav Malyshev <stas@zend.com>
* (php_5_1_0b2)
zend_vm.h
zend_vm_execute.h
zend_vm_gen.php:
export zend_vm_set_opcode_handler
2005-06-22 Antony Dovgal <antony@zend.com>
* (php_5_1_0b2)
zend_ini.c:
- allow to use "yes" and "true" with ini_set() and in commandline (through
-d flag)
- fix #15854 that was caused by wrong consideration that
zend_ini_boolean_displayer_cb()
always recieves converted to "0"/"1" values.
2005-06-22 Dmitry Stogov <dmitry@zend.com>
* (php_5_1_0b2)
zend_compile.c
zend_compile.c
zend_compile.h
zend_compile.h
zend_execute.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h
tests/bug33257.phpt:
Fixed bug #33257 (array_splice() inconsistent when passed function instead
of variable)
* tests/bug33257.phpt
tests/bug33257.phpt:
file bug33257.phpt was initially added on branch PHP_5_0.
2005-06-22 Jani Taskinen <jani.taskinen@sci.fi>
* (php_5_1_0b2)
tests/unset_cv05.phpt
tests/unset_cv06.phpt:
fix tests
2005-06-21 Dmitry Stogov <dmitry@zend.com>
* tests/unset_cv07.phpt:
Fixed test file
2005-06-21 Andi Gutmans <andi@zend.com>
* zend.h:
- Back to -dev. Guys (n' Girls), give at least 1 hour before you start
- complaining about not going back to -dev. I like checking the tarball
- before I change it back.
* (php_5_1_0b2)
zend.h:
- Take #3 :)
2005-06-21 Ilia Alshanetsky <ilia@prohost.org>
* (php_5_1_0b2)
zend_reflection_api.c:
Fixed memory leak.
2005-06-21 Dmitry Stogov <dmitry@zend.com>
* (PHP_5_0)
zend_compile.c:
Remove unnecessary ZEND_FETCH_CLASS together with
ZEND_DECLARE_INHERITED_CLASS
in case of early binding
* (php_5_1_0b2)
zend_compile.c:
Remove unnecessary ZEND_FETCH_CLASS together with
ZEND_DECLARE_INHERITED_CLASS in case of early binding
2005-06-20 Andi Gutmans <andi@zend.com>
* zend.h:
- Back to -dev
* (php_5_1_0b2)
zend.h:
- Beta 2
2005-06-20 Dmitry Stogov <dmitry@zend.com>
* (php_5_1_0b2)
zend_object_handlers.c
zend_object_handlers.c:
Fixed possible crash on $x = $obj->$non_string
2005-06-20 Marcus Boerger <marcus.boerger@post.rwth-aachen.de>
* (php_5_1_0b2)
zend_reflection_api.c:
- Fix bug #33389 by fixing copying
* zend_reflection_api.c:
- Show true/flase
2005-06-19 Derick Rethans <php@derickrethans.nl>
* tests/bug32226.phpt:
- Fixed layout of test description.
2005-06-17 Jani Taskinen <jani.taskinen@sci.fi>
* tests/bug29368.phpt
tests/bug30856.phpt
tests/bug30961.phpt
tests/bug31720.phpt
tests/bug32226.phpt
tests/bug33277.phpt:
No short-tags!
2005-06-17 Dmitry Stogov <dmitry@zend.com>
* zend_compile.h
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Removed EX(fbc_constructor) (it is no longer needed)
2005-06-17 Antony Dovgal <antony@zend.com>
* (PHP_5_0)
zend_API.c
zend_list.c:
MFH: improve error messages in internal classes
* zend_API.c
zend_list.c:
improve error messages when error raised from an internal class (do not
hide class name)
2005-06-17 Dmitry Stogov <dmitry@zend.com>
* zend_object_handlers.c
zend_object_handlers.c:
Fixed bug #33277 (private method accessed by child class)
2005-06-17 Antony Dovgal <antony@zend.com>
* zend_hash.c:
fix bug #33382 (array_reverse() fails after *sort())
no need to MFH - the bug existed only in HEAD
2005-06-17 Dmitry Stogov <dmitry@zend.com>
* zend_API.c
zend_API.h
zend_extensions.h
zend_modules.h:
Improved PHP extension loading mechanism with support for module
dependencies and conflicts.
2005-06-16 Marcus Boerger <marcus.boerger@post.rwth-aachen.de>
* zend_reflection_api.c:
- Internal functions/methods can now return by reference
* zend_execute.c:
- Fix TSRM build
2005-06-16 Dmitry Stogov <dmitry@zend.com>
* bench.php:
typo
* zend.h
zend_API.h
zend_compile.c
zend_compile.h
zend_execute.c
zend_execute_API.c
zend_extensions.h
zend_modules.h
zend_object_handlers.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Allowed return by refrence from internal functions
2005-06-16 Stanislav Malyshev <stas@zend.com>
* zend_execute.c
zend_execute.h:
rename to zend_
2005-06-16 Dmitry Stogov <dmitry@zend.com>
* zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h
tests/bug33318.phpt:
Fixed bug #33318 (throw 1; results in Invalid opcode 108/1/8)
2005-06-16 Zeev Suraski <zeev@zend.com>
* zend_language_scanner.l:
Fixlet
2005-06-16 Dmitry Stogov <dmitry@zend.com>
* zend_execute.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Compilation warnings
* zend_compile.c
zend_compile.h
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
ZEND_UNSET_DIM_OBJ is splitted to ZEND_UNSET_DIM and ZEND_UNSET_OBJ.
2005-06-16 Stanislav Malyshev <stas@zend.com>
* zend_execute.c
zend_execute.h:
export zval getters
2005-06-16 Dmitry Stogov <dmitry@zend.com>
* zend_execute.h
zend_vm_def.h
zend_vm_execute.h
zend_vm_gen.php
zend_vm_opcodes.h:
USER_OPCODE API is improvet.
Implemented ability to dispatch from user handler to internal handler of
another opcode.
2005-06-15 Dmitry Stogov <dmitry@zend.com>
* zend.c
zend.h:
Fixed OS X compatibility
2005-06-15 Jani Taskinen <jani.taskinen@sci.fi>
* tests/bug32428.phpt:
typofix
2005-06-14 Ilia Alshanetsky <ilia@prohost.org>
* bench.php:
more accurate timing function.
2005-06-14 Dmitry Stogov <dmitry@zend.com>
* zend_vm_execute.h
zend_vm_gen.php
zend_vm_opcodes.h:
Removed old executor
2005-06-14 Jani Taskinen <jani.taskinen@sci.fi>
* Zend.m4:
reordered + added msg to configure output for PHP_ZEND_VM
* Zend.m4:
typofix
* Zend.m4
acinclude.m4:
fix standalone build
2005-06-13 Dmitry Stogov <dmitry@zend.com>
* zend_execute.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_gen.php
zend_vm_opcodes.h:
Specializer optimization
* zend.c
zend.h
zend_execute.c:
Fixed bug #33212 ([GCC 4]: 'zend_error_noreturn' aliased to external symbol
'zend_error').
The fix is not tested on Solaris and DARWIN!
* zend_reflection_api.c
tests/bug33312.phpt:
Fixed bug #33312 (ReflectionParameter methods do not work correctly)
2005-06-11 Andi Gutmans <andi@zend.com>
* zend.h:
- Back to -dev
* (php_5_1_0b2)
zend.h:
- b2 (will post it to internals@)
2005-06-10 Andi Gutmans <andi@zend.com>
* zend.h:
- Back to -dev
* (php_5_1_0b1)
zend.h:
- Go with 5.1.0b1
2005-06-10 Dmitry Stogov <dmitry@zend.com>
* (php_5_1_0b1)
tests/bug30162.phpt:
Added test for bug #30162 (it is already fixed but test file was forgotten)
* (php_5_1_0b1)
tests/bug31177.phpt:
Added test file for bug #31177 (not fixed yet)
* tests/bug31177.phpt
tests/bug31177.phpt:
file bug31177.phpt was initially added on branch PHP_5_0.
* (php_5_1_0b1)
tests/bug29689.phpt:
typos
* (php_5_1_0b1)
zend_reflection_api.c
zend_reflection_api.c:
Fixed support for ZEND_ACC_SHADOW in ReflectionProperty constructor
* (php_5_1_0b1)
zend_execute.c
zend_execute.h
zend_extensions.h
zend_vm_def.h
zend_vm_execute.h
zend_vm_gen.php
zend_vm_opcodes.h:
Fix so that extensions like xdebug, can overload opcodes in all execution
modes including goto/switch
* (php_5_1_0b1)
zend_compile.c
zend_vm_def.h
zend_vm_execute.h
zend_vm_opcodes.h:
Merge three opcodes (ZEND_NEW, ZEND_JMP_NO_CTOR, ZEND_INIT_CTOR) into one
(ZEND_NEW). There was no real reason for this anymore and API should be
changed before 5.1
2005-06-09 Stanislav Malyshev <stas@zend.com>
* zend_compile.c
+1 -1
View File
@@ -1,6 +1,6 @@
--------------------------------------------------------------------
The Zend Engine License, Version 2.00
Copyright (c) 1999-2003 Zend Technologies Ltd. All rights reserved.
Copyright (c) 1999-2005 Zend Technologies Ltd. All rights reserved.
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
+1
View File
@@ -105,3 +105,4 @@ Zend Engine II currently includes two executors during the build process, one
is the specialized version and the other is the old one non-specialized with
function handlers. By default Zend Engine II uses the specialized one but you
can switch to the old executor at runtime by calling zend_vm_use_old_executor().
+22 -14
View File
@@ -121,21 +121,13 @@ AC_ARG_ENABLE(debug,
AC_DEFUN([LIBZEND_OTHER_CHECKS],[
PHP_ARG_WITH(zend-vm,[virtual machine dispatch method],
AC_ARG_WITH(zend-vm,
[ --with-zend-vm=TYPE Set virtual machine dispatch method. Type is
one of "CALL", "SWITCH" or "GOTO" [TYPE=CALL]], CALL, no)
case $PHP_ZEND_VM in
SWITCH)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_SWITCH,[virtual machine dispatch method])
;;
GOTO)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_GOTO,[virtual machine dispatch method])
;;
*)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_CALL,[virtual machine dispatch method])
;;
esac
one of "CALL", "SWITCH" or "GOTO" [TYPE=CALL]],[
PHP_ZEND_VM=$withval
],[
PHP_ZEND_VM=CALL
])
AC_ARG_ENABLE(zend-memory-manager,
[ --disable-zend-memory-manager
@@ -175,6 +167,9 @@ AC_ARG_ENABLE(zend-multibyte,
ZEND_MULTIBYTE=no
])
AC_MSG_CHECKING([virtual machine dispatch method])
AC_MSG_RESULT($PHP_ZEND_VM)
AC_MSG_CHECKING(whether to enable the Zend memory manager)
AC_MSG_RESULT($ZEND_USE_ZEND_ALLOC)
@@ -193,6 +188,19 @@ AC_MSG_RESULT($ZEND_DEBUG)
AC_MSG_CHECKING(whether to enable Zend multibyte)
AC_MSG_RESULT($ZEND_MULTIBYTE)
case $PHP_ZEND_VM in
SWITCH)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_SWITCH,[virtual machine dispatch method])
;;
GOTO)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_GOTO,[virtual machine dispatch method])
;;
*)
PHP_ZEND_VM=CALL
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_CALL,[virtual machine dispatch method])
;;
esac
if test "$ZEND_DEBUG" = "yes"; then
AC_DEFINE(ZEND_DEBUG,1,[ ])
echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
+8 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -105,6 +105,13 @@ int zend_sprintf(char *buffer, const char *format, ...);
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
#ifdef NETWARE
#ifdef USE_WINSOCK
#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
#endif
#endif
/*
* Local variables:
* tab-width: 4
+17 -11
View File
@@ -4,25 +4,31 @@ dnl This file contains local autoconf functions.
AC_DEFUN([LIBZEND_BISON_CHECK],[
# we only support certain bison versions
bison_version_list="1.28 1.35 1.75 1.875 2.0"
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1"
# for standalone build of Zend Engine
test -z "$SED" && SED=sed
bison_version=none
if test "$YACC"; then
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /'|tr -d a-z`
bison_version="${1}.${2}"
bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
php_cv_bison_version=invalid
for bison_check_version in $bison_version_list; do
if test "$bison_version" = "$bison_check_version"; then
php_cv_bison_version="$bison_check_version (ok)"
fi
done
if test -n "$bison_version_vars"; then
set $bison_version_vars
bison_version="${1}.${2}"
for bison_check_version in $bison_version_list; do
if test "$bison_version" = "$bison_check_version"; then
php_cv_bison_version="$bison_check_version (ok)"
break
fi
done
fi
])
else
bison_version=none
fi
case $php_cv_bison_version in
""|invalid[)]
bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
AC_MSG_WARN([$bison_msg])
YACC="exit 0;"
;;
+19 -12
View File
@@ -1,9 +1,11 @@
<?php
function simple() {
$a = 0;
for ($i = 0; $i < 1000000; $i++)
$a++;
$thisisanotherlongname = 0;
for ($thisisalongname = 0; $thisisalongname < 1000000; $thisisalongname++)
$thisisanotherlongname++;
}
@@ -70,7 +72,7 @@ function mandel() {
print "#";
}
}
print "<br>".$vbCr;
print "<br>";
flush();
}
}
@@ -131,7 +133,7 @@ function ary2($n) {
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
}
for ($i=$n-1; $i>=0; $i--) {
for ($i=$n-1; $i>=0;) {
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
@@ -153,6 +155,7 @@ function ary2($n) {
function ary3($n) {
for ($i=0; $i<$n; $i++) {
$X[$i] = $i + 1;
$Y[$i] = 0;
}
for ($k=0; $k<1000; $k++) {
for ($i=$n-1; $i>=0; $i--) {
@@ -166,7 +169,7 @@ function ary3($n) {
/****/
function fibo_r($n){
return(($n < 2) ? 1 : fibo($n - 2) + fibo_r($n - 1));
return(($n < 2) ? 1 : fibo_r($n - 2) + fibo_r($n - 1));
}
function fibo($n) {
@@ -180,8 +183,9 @@ function hash($n) {
for ($i = 1; $i <= $n; $i++) {
$X[dechex($i)] = $i;
}
$c = 0;
for ($i = $n; $i > 0; $i--) {
if ($X[$i]) { $c++; }
if ($X[dechex($i)]) { $c++; }
}
print "$c\n";
}
@@ -189,13 +193,16 @@ function hash($n) {
/****/
function hash2($n) {
for ($i = 0; $i < 10000; $i++) {
for ($i = 0; $i < $n; $i++) {
$hash1["foo_$i"] = $i;
$hash2["foo_$i"] = 0;
}
for ($i = $n; $i > 0; $i--) {
foreach($hash1 as $key => $value) $hash2[$key] += $value;
}
print "$hash1[foo_1] $hash1[foo_9999] $hash2[foo_1] $hash2[foo_9999]\n";
$first = "foo_0";
$last = "foo_".($n-1);
print "$hash1[$first] $hash1[$last] $hash2[$first] $hash2[$last]\n";
}
/****/
@@ -336,10 +343,10 @@ function strcat($n) {
/*****/
function getmicrotime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
{
$t = gettimeofday();
return ($t['sec'] + $t['usec'] / 1000000);
}
function start_test()
{
@@ -396,8 +403,8 @@ fibo(30);
$t = end_test($t, "fibo(30)");
hash(50000);
$t = end_test($t, "hash(50000)");
hash2(50);
$t = end_test($t, "hash2(50)");
hash2(500);
$t = end_test($t, "hash2(500)");
heapsort(20000);
$t = end_test($t, "heapsort(20000)");
matrix(20);
+1 -1
View File
@@ -12,4 +12,4 @@ foo(123);
--EXPECTF--
3
Fatal error: Argument 1 must be an array in %sarray_type_hint_001.php on line 2
Fatal error: Argument 1 passed to foo() must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2
+1 -1
View File
@@ -39,5 +39,5 @@ echo "Done\n";
2
3
Done
test::__destruct
test::destructor
test::__destruct
-3
View File
@@ -34,6 +34,3 @@ $c->viewMom();
--EXPECT--
protected method
protected property
--EXPECT--
protected method
protected property
+1 -1
View File
@@ -8,7 +8,7 @@ class Test {
function __copy()
{
$string = PHP_VERSION;
$version = $string{0};
$version = $string[0];
if($string < 5)
{
return $this;
+1 -1
View File
@@ -3,7 +3,7 @@ Bug #26281 (switch() crash when condition is a string offset)
--FILE--
<?php
$x = 'abc';
switch ($x{0}) {
switch ($x[0]) {
case 'a':
echo "no crash\n";
break;
+2 -2
View File
@@ -4,14 +4,14 @@ Bug #26801 (switch ($a{0}) crash)
<?php
$a = '11';
$b = $a{0};
$b = $a[0];
switch ($b) {
case '-':
break;
}
$a = '22';
switch ($a{0}) {
switch ($a[0]) {
case '-':
break;
}
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #27268 (Bad references accentuated by clone)
--FILE--
<?php
class A
{
public function &getA()
{
return $this->a;
}
}
$A = new A;
$A->a = array(1);
$x = $A->getA();
$clone = clone $A;
$clone->a = array();
print_r($A);
?>
--EXPECT--
A Object
(
[a] => Array
(
[0] => 1
)
)
+46
View File
@@ -0,0 +1,46 @@
--TEST--
Bug #28072 (static array with some constant keys will be incorrectly ordered)
--FILE--
<?php
define("FIRST_KEY", "a");
define("THIRD_KEY", "c");
function test()
{
static $arr = array(
FIRST_KEY => "111",
"b" => "222",
THIRD_KEY => "333",
"d" => "444"
);
print_r($arr);
}
function test2()
{
static $arr = array(
FIRST_KEY => "111",
"a" => "222",
"c" => "333",
THIRD_KEY => "444"
);
print_r($arr);
}
test();
test2();
?>
--EXPECT--
Array
(
[a] => 111
[b] => 222
[c] => 333
[d] => 444
)
Array
(
[a] => 111
[c] => 444
)
+23
View File
@@ -0,0 +1,23 @@
--TEST--
Bug #28377 (debug_backtrace is intermittently passing args)
--FILE--
<?php
function doit($a, $b)
{
$trace = debug_backtrace();
custom_callback('dereferenced', $trace);
custom_callback('direct', debug_backtrace());
}
function custom_callback($traceName, $btInfo)
{
echo $traceName ." -- args: ";
echo isset($btInfo[0]['args']) ? count($btInfo[0]['args']) : 'does not exist';
echo "\n";
}
doit('a','b');
?>
--EXPECT--
dereferenced -- args: 2
direct -- args: 2
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #29368 (The destructor is called when an exception is thrown from the constructor)
--FILE--
<?
<?php
class Foo
{
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #29896 (Backtrace argument list out of sync)
--FILE--
<?php
function userErrorHandler($num, $msg, $file, $line, $vars)
{
debug_print_backtrace();
}
$OldErrorHandler = set_error_handler("userErrorHandler");
function GenerateError1($A1)
{
$a = $b;
}
function GenerateError2($A1)
{
GenerateError1("Test1");
}
GenerateError2("Test2");
?>
--EXPECTF--
#0 userErrorHandler(8, Undefined variable: b, %sbug29896.php, 11, Array ([A1] => Test1)) called at [%sbug29896.php:11]
#1 GenerateError1(Test1) called at [%sbug29896.php:16]
#2 GenerateError2(Test2) called at [%sbug29896.php:19]
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Bug #30519 Interface not existing says Class not found
--FILE--
<?php
class test implements a {
}
?>
--EXPECTF--
Fatal error: Interface 'a' not found in %sbug30519.php on line 2
+61
View File
@@ -0,0 +1,61 @@
--TEST--
Bug #30828 (debug_backtrace() reports incorrect class in overridden methods)
--FILE--
<?php
class A {
function __construct() {
debug_print_backtrace();
$bt = debug_backtrace();
foreach ($bt as $t) {
print $t['class'].$t['type'].$t['function']."\n";
}
}
function foo() {
debug_print_backtrace();
$bt = debug_backtrace();
foreach ($bt as $t) {
print $t['class'].$t['type'].$t['function']."\n";
}
}
static function bar() {
debug_print_backtrace();
$bt = debug_backtrace();
foreach ($bt as $t) {
print $t['class'].$t['type'].$t['function']."\n";
}
}
}
class B extends A {
function __construct() {
parent::__construct();
}
function foo() {
parent::foo();
}
static function bar() {
parent::bar();
}
}
$b = new B();
$b->foo();
B::bar();
?>
--EXPECTF--
#0 A->__construct() called at [%sbug30828.php:30]
#1 B->__construct() called at [%sbug30828.php:42]
A->__construct
B->__construct
#0 A->foo() called at [%sbug30828.php:34]
#1 B->foo() called at [%sbug30828.php:43]
A->foo
B->foo
#0 A::bar() called at [%sbug30828.php:38]
#1 B::bar() called at [%sbug30828.php:44]
A::bar
B::bar
+3 -3
View File
@@ -9,11 +9,11 @@ var_dump(isset($a->b));
$a = '0';
var_dump(isset($a->b));
$a = '';
var_dump(isset($a{'b'}));
var_dump(isset($a['b']));
$a = 'a';
var_dump(isset($a{'b'}));
var_dump(isset($a['b']));
$a = '0';
var_dump(isset($a{'b'}));
var_dump(isset($a['b']));
$simpleString = "Bogus String Text";
echo isset($simpleString->wrong)?"bug\n":"ok\n";
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #31177 (menory corruption because of incorrect refcounting)
--FILE--
<?php
class foo {
function foo($n=0) {
if($n) throw new Exception("new");
}
}
$x = new foo();
try {
$y=$x->foo(1);
} catch (Exception $e) {
var_dump($x);
}
--EXPECT--
object(foo)#1 (0) {
}
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #31341 (escape on curly inconsistent)
--FILE--
<?php
$a = array(
"$ \{ ",
" \{ $",
" \{$ ",
" $\{ ",
" \$\{ ",
" \{\$ ",
"\$ \{ ",
" \{ \$",
"% \{ ");
foreach ($a as $v) {
echo("'$v'\n");
}
?>
--EXPECT--
'$ \{ '
' \{ $'
' \{$ '
' $\{ '
' $\{ '
' \{$ '
'$ \{ '
' \{ $'
'% \{ '
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #31720 (Invalid object callbacks not caught in array_walk())
--FILE--
<?
<?php
$array = array('at least one element');
array_walk($array, array($nonesuchvar,'show'));
+2 -2
View File
@@ -1,7 +1,7 @@
--TEST--
Bug # 32226 (SEGV with exception handler on non existing instance)
Bug #32226 (SEGV with exception handler on non existing instance)
--FILE--
<?
<?php
class A
{
+1 -1
View File
@@ -9,5 +9,5 @@ Bug #32428 (The @ warning error supression operator is broken)
$data = @($not_exists+1);
echo "ok\n";
?>
--EXPEXT--
--EXPECT--
ok
+36
View File
@@ -0,0 +1,36 @@
--TEST--
Bug #32660 Assignment by reference causes crash when field access is overloaded (__get)
--FILE--
<?php
class A
{
public $q;
function __construct()
{
$this->q = 3;//array();
}
function __get($name)
{
return $this->q;
}
}
$a = new A;
$b = "short";
$c =& $a->whatever;
$c = "long";
print_r($a);
$a->whatever =& $b;
$b = "much longer";
print_r($a);
?>
--EXPECTF--
A Object
(
[q] => long
)
Fatal error: Cannot assign by reference to overloaded object in %sbug32660.php on line 23
+25
View File
@@ -0,0 +1,25 @@
--TEST--
Bug #33257 array_splice() inconsistent when passed function instead of variable
--INI--
error_reporting=4095
--FILE--
<?php
class X {
protected static $arr = array("a", "b", "c");
public static function getArr() {
return self::$arr;
}
}
//$arr1 = X::getArr();
array_splice(X::getArr(), 1, 1);
print_r(X::getArr());
?>
--EXPECTF--
Strict Standards: Only variables should be passed by reference in %sbug33257.php on line 10
Array
(
[0] => a
[1] => b
[2] => c
)
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #33277 (private method accessed by child class)
--FILE--
<?
<?php
class foo {
private function bar() {
echo "private!\n";
+8
View File
@@ -0,0 +1,8 @@
--TEST--
Bug #33318 (throw 1; results in Invalid opcode 108/1/8)
--FILE--
<?php
throw 1;
?>
--EXPECTF--
Fatal error: Can only throw objects in %sbug33318.php on line 2
+66
View File
@@ -0,0 +1,66 @@
--TEST--
Bug #33512 (unset() overloaded properties doesn't work)
--FILE--
<?php
class TheObj {
public $RealVar1, $RealVar2, $RealVar3, $RealVar4;
public $Var = array();
function __set($var, $val) {
$this->Var[$var] = $val;
}
function __get($var) {
if(isset($this->Var[$var])) return $this->Var[$var];
else return -1;
}
function __unset($var) {
unset($this->Var[$var]);
}
}
$SomeObj = new TheObj;
// this will fine
$SomeObj->RealVar1 = 'somevalue';
$SomeObj->{'RealVar2'} = 'othervalue';
$SomeObj->{'RealVar'.(3)} = 'othervaluetoo';
$SomeObj->{'RealVar'.'4'} = 'anothervalue';
// this will fine too
$SomeObj->Virtual1 = 'somevalue';
$SomeObj->{'Virtual2'} = 'othervalue';
// it's can't be used since this will encounter error
$SomeObj->{'Virtual'.(3)} = 'othervaluetoo';
$SomeObj->{'Virtual'.'4'} = 'anothervalue';
// but this will fine, ofcourse
$SomeObj->Var['Virtual'.(3)] = 'othervaluetoo';
$SomeObj->Var['Virtual'.'4'] = 'anothervalue';
var_dump($SomeObj->RealVar1);
print $SomeObj->{'RealVar'.(3)}."\n";
unset($SomeObj->RealVar1);
unset($SomeObj->{'RealVar'.(3)});
//the lines below will catch by '__get' magic method since these variables are unavailable anymore
var_dump($SomeObj->RealVar1);
print $SomeObj->{'RealVar'.(3)}."\n";
// now we will try to unset these variables
unset($SomeObj->Virtual1);
unset($SomeObj->{'Virtual'.(3)});
//but, these variables are still available??? eventhough they're "unset"-ed
print $SomeObj->Virtual1."\n";
print $SomeObj->{'Virtual'.(3)}."\n";
?>
--EXPECT--
string(9) "somevalue"
othervaluetoo
int(-1)
-1
-1
-1
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Bug #33558 (warning with nested calls to functions returning by reference)
--INI--
error_reporting=4095
--FILE--
<?php
function & foo() {
$var = 'ok';
return $var;
}
function & bar() {
return foo();
}
$a =& bar();
echo "$a\n";
?>
--EXPECT--
ok
+32
View File
@@ -0,0 +1,32 @@
--TEST--
Bug #33710 (ArrayAccess objects doesn't initialize $this)
--FILE--
<?php
class Foo implements ArrayAccess
{
function offsetExists($offset) {/*...*/}
function offsetGet($offset) {/*...*/}
function offsetSet($offset, $value) {/*...*/}
function offsetUnset($offset) {/*...*/}
function fail()
{
$this['blah'];
}
function succeed()
{
$this;
$this['blah'];
}
}
$bar = new Foo();
$bar->succeed();
$bar->fail();
?>
===DONE===
--EXPECT--
===DONE===
+45
View File
@@ -0,0 +1,45 @@
--TEST--
Bug #33732 (Wrong behavior of constants in class and interface extending)
--FILE--
<?php
interface iA {
const cA = "const of iA\n";
}
class A implements iA {
}
class B extends A implements iA {
}
echo iA::cA;
echo A::cA;
echo B::cA;
interface iA2 {
const cA = "const of iA2\n";
}
interface iB2 extends iA2 {
}
class A2 implements iA2 {
}
class B2 extends A2 implements iB2 {
}
echo iA2::cA;
echo A2::cA;
echo iB2::cA;
echo B2::cA;
?>
--EXPECT--
const of iA
const of iA
const of iA
const of iA2
const of iA2
const of iA2
const of iA2
+40
View File
@@ -0,0 +1,40 @@
--TEST--
bug #33771 (error_reporting falls to 0 when @ was used inside try/catch block)
--FILE--
<?php
error_reporting(E_ALL | E_STRICT);
var_dump(error_reporting());
function make_exception()
{
throw new Exception();
}
function make_exception_and_change_err_reporting()
{
error_reporting(E_ALL);
throw new Exception();
}
try {
@make_exception();
} catch (Exception $e) {}
var_dump(error_reporting());
try {
@make_exception_and_change_err_reporting();
} catch (Exception $e) {}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
int(4095)
int(4095)
int(2047)
Done
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #33802 (throw Exception in error handler causes crash)
--FILE--
<?php
set_error_handler('errorHandler', E_USER_ERROR);
try{
test();
}catch(Exception $e){
}
restore_error_handler();
function test(){
trigger_error("error", E_USER_ERROR);
}
function errorHandler($errno, $errstr, $errfile, $errline) {
throw new Exception();
}
?>
ok
--EXPECT--
ok
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #33996 (No information given for fatal error on passing invalid value to typed argument)
--INI--
error_reporting=4095
--FILE--
<?php
class Foo
{
// nothing
}
function FooTest(Foo $foo)
{
echo "Hello!";
}
function NormalTest($a)
{
echo "Hi!";
}
NormalTest();
FooTest();
FooTest(new Foo());
?>
--EXPECTF--
Warning: Missing argument 1 for NormalTest(), called in %sbug33996.php on line 17 and defined in %sbug33996.php on line 12
Hi!
Fatal error: Argument 1 passed to FooTest() must be an object of class Foo, called in %sbug33996.php on line 18 and defined in %sbug33996.php on line 7
+30
View File
@@ -0,0 +1,30 @@
--TEST--
Bug #33999 (object remains object when cast to int)
--INI--
error_reporting=4095
--FILE--
<?php
class Foo {
public $bar = "bat";
}
$foo = new Foo;
var_dump($foo);
$bar = (int)$foo;
var_dump($bar);
$baz = (float)$foo;
var_dump($baz);
?>
--EXPECTF--
object(Foo)#1 (1) {
["bar"]=>
string(3) "bat"
}
Notice: Object of class Foo could not be converted to int in %sbug33999.php on line 9
int(1)
Notice: Object of class Foo could not be converted to double in %sbug33999.php on line 12
float(1)
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #34045 (Buffer overflow with serialized object)
--FILE--
<?php
class BasicSingleton
{
private static $instance;
public function __wakeup() {
self::$instance = $this;
}
public static function singleton() {
if (!(self::$instance instanceof BasicSingleton)) {
$c = __CLASS__;
self::$instance = new $c;
}
return self::$instance;
}
}
$db = BasicSingleton::singleton();
$db_str = serialize($db);
$db2 = unserialize($db_str);
echo "ok\n";
?>
--EXPECT--
ok
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #34062 (Crash in catch block when many arguments are used)
--FILE--
<?php
function f1() { throw new Exception; }
function f2() { echo "here\n"; }
try {
// Currently it's the minimum required number of zeros
// If you remove one, it won't crash
max(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, f1());
} catch (Exception $e) {
echo "(((\n";
f2(0, 0, 0); // Won't crash if less than 3 zeros here
echo ")))\n";
}
?>
--EXPECT--
(((
here
)))
+35
View File
@@ -0,0 +1,35 @@
--TEST--
Bug #34064 (arr[] as param to function in class gives invalid opcode)
--FILE--
<?php
class XmlTest {
function test_ref(&$test)
{
$test = "ok";
}
function test($test)
{
}
function run()
{
$ar = array();
$this->test_ref($ar[]);
var_dump($ar);
$this->test($ar[]);
}
}
$o = new XmlTest();
$o->run();
?>
--EXPECTF--
array(1) {
[0]=>
string(2) "ok"
}
Fatal error: Cannot use [] for reading in %sbug34064.php on line 18
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Bug #34137 (assigning array element by reference causes binary mess)
--FILE--
<?php
$arr1 = array('a1' => array('alfa' => 'ok'));
$arr1 =& $arr1['a1'];
echo '-'.$arr1['alfa']."-\n";
?>
--EXPECT--
-ok-
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #34199 (if($obj)/if(!$obj) inconsistency because of cast handler)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php
$xml = "<root></root>";
$xml = simplexml_load_string($xml);
$kids = $xml->children();
var_dump((bool)$kids);
if($kids) echo "bug\n"; else echo "ok\n";
if(!$kids) echo "ok\n"; else echo "bug\n";
?>
--EXPECT--
bool(false)
ok
ok
+36
View File
@@ -0,0 +1,36 @@
--TEST--
Bug #34260 (Segfault with callbacks (array_map) + overloading)
--FILE--
<?php
class Faulty
{
function __call($Method,$Args)
{
switch($Method)
{
case 'seg':
echo "I hate me\n";
break;
}
}
function NormalMethod($Args)
{
echo "I heart me\n";
}
}
$Faulty = new Faulty();
$Array = array('Some junk','Some other junk');
// This causes a seg fault.
$Failure = array_map(array($Faulty,'seg'),$Array);
// This does not.
$Failure = array_map(array($Faulty,'NormalMethod'),$Array);
?>
--EXPECT--
I hate me
I hate me
I heart me
I heart me
+34
View File
@@ -0,0 +1,34 @@
--TEST--
Bug #34310 (foreach($arr as $c->d => $x) crashes)
--FILE--
<?php
class C
{
public $d;
}
$c = new C();
$arr = array (1 => 'a', 2 => 'b', 3 => 'c');
// Works fine:
foreach($arr as $x => $c->d)
{
echo "{$x} => {$c->d}\n";
}
// Crashes:
foreach($arr as $c->d => $x)
{
echo "{$c->d} => {$x}\n";
}
?>
--EXPECT--
1 => a
2 => b
3 => c
1 => a
2 => b
3 => c
+15
View File
@@ -0,0 +1,15 @@
--TEST--
Bug #34358 (Fatal error: Cannot re-assign $this(again))
--FILE--
<?php
class foo {
function bar() {
$ref = &$this;
}
}
$x = new foo();
$x->bar();
echo "ok\n";
?>
--EXPECT--
ok
+27
View File
@@ -0,0 +1,27 @@
--TEST--
Bug #34467 (foreach + __get + __set incosistency)
--FILE--
<?php
class abc {
private $arr;
function __set ($key, $value) {
$this->arr[$key] = $value;
}
function __get ($key) {
return $this->arr[$key];
}
}
$abc = new abc();
foreach (array (1,2,3) as $abc->k => $abc->v) {
var_dump($abc->k,$abc->v);
}
?>
--EXPECT--
int(0)
int(1)
int(1)
int(2)
int(2)
int(3)
+38
View File
@@ -0,0 +1,38 @@
--TEST--
Bug #34518 (Unset doesn't separate container in CV)
--FILE--
<?php
$arr = array(1,2,3);
$arr["foo"] = array(4,5,6);
$copy = $arr;
unset($copy["foo"][0]);
print_r($arr);
print_r($copy);
?>
--EXPECT--
Array
(
[0] => 1
[1] => 2
[2] => 3
[foo] => Array
(
[0] => 4
[1] => 5
[2] => 6
)
)
Array
(
[0] => 1
[1] => 2
[2] => 3
[foo] => Array
(
[1] => 5
[2] => 6
)
)
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called)
--SKIPIF--
<?php if (!extension_loaded("xml")) print "skip"; ?>
--FILE--
<?php
class Thing {}
function boom()
{
$reader = xml_parser_create();
xml_set_object($reader, new Thing());
die("ok\n");
xml_parser_free($reader);
}
boom();
?>
--EXPECT--
ok
+25
View File
@@ -0,0 +1,25 @@
--TEST--
Bug #34678 (__call(), is_callable() and static methods)
--FILE--
<?php
class A {
public function __call($m, $a) {
echo "__call\n";
}
}
class B extends A {
public static function foo() {
echo "foo\n";
}
}
if (is_callable(array('B', 'foo'))) {
call_user_func(array('B', 'foo'));
}
if (is_callable(array('A', 'foo'))) {
call_user_func(array('A', 'foo'));
}
?>
--EXPECT--
foo
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #34712 zend.ze1_compatibility_mode = on segfault
--INI--
zend.ze1_compatibility_mode=1
error_reporting=4095
--FILE--
<?php
class foo {
function foo(&$obj_ref) {
$this->bar = &$obj_ref;
}
}
class bar {
function bar() {
$this->foo = new foo($this);
}
}
$test = new bar;
echo "ok\n";
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'foo' because of 'zend.ze1_compatibility_mode' in %sbug34712.php on line 11
Strict Standards: Implicit cloning object of class 'bar' because of 'zend.ze1_compatibility_mode' in %sbug34712.php on line 15
ok
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Bug #34767 (Zend Engine 1 Compatibility not copying objects correctly)
--INI--
zend.ze1_compatibility_mode=1
error_reporting=4095
--FILE--
<?php
$a->y = &new stdClass();
print_r($a);
$b = $a;
$a->y->z = 1;
print_r($b);
?>
--EXPECTF--
Strict Standards: Assigning the return value of new by reference is deprecated in %sbug34767.php on line 2
stdClass Object
(
[y] => stdClass Object
(
)
)
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug34767.php on line 4
stdClass Object
(
[y] => stdClass Object
(
[z] => 1
)
)
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #34786 (2 @ results in change to error_reporting() to random value)
--FILE--
<?php
function foo($a,$b,$c) {
echo "foo: ".error_reporting()."\n";
}
function bar() {
echo "bar: ".error_reporting()."\n";
}
error_reporting(1);
echo "before: ".error_reporting()."\n";
@foo(1,@bar(),3);
echo "after: ".error_reporting()."\n";
?>
--EXPECT--
before: 1
bar: 0
foo: 0
after: 1
+27
View File
@@ -0,0 +1,27 @@
--TEST--
bug #34873 (Segmentation Fault on foreach in object)
--FILE--
<?php
class pwa {
public $var;
function __construct(){
$this->var = array();
}
function test (){
$cont = array();
$cont["mykey"] = "myvalue";
foreach ($cont as $this->var['key'] => $this->var['value'])
var_dump($this->var['value']);
}
}
$myPwa = new Pwa();
$myPwa->test();
echo "Done\n";
?>
--EXPECT--
string(7) "myvalue"
Done
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #34879 (str_replace, array_map corrupt negative array indexes on 64-bit platforms)
--FILE--
<?php
print_r(str_replace('a', 'b', array(-1 =>-1)));
?>
--EXPECT--
Array
(
[-1] => -1
)
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Bug #34893 (PHP5.1 overloading, Cannot access private property)
--FILE--
<?php
class A {
private $p;
function __get($name){
return $this->$name;
}
function __set($name, $value) {
$this->$name = $value;
}
}
class B {
private $t;
function __get($name){
return $this->$name;
}
function __set($name, $value) {
$this->$name = $value;
}
}
$a = new A;
$b = new B;
$a->p = $b;
$b->t = "foo";
echo $a->p->t;
$a->p->t = "bar";
echo $a->p->t;
?>
--EXPECT--
foobar
+21
View File
@@ -0,0 +1,21 @@
--TEST--
Bug #35017 (Exception thrown in error handler may cause unexpected behavior)
--FILE--
<?php
set_error_handler('errorHandler');
try {
if ($a) {
echo "1\n";
} else {
echo "0\n";
}
echo "?\n";
} catch(Exception $e) {
echo "This Exception should be catched\n";
}
function errorHandler($errno, $errstr, $errfile, $errline, $vars) {
throw new Exception('Some Exception');
}
?>
--EXPECT--
This Exception should be catched
+41
View File
@@ -0,0 +1,41 @@
--TEST--
Bug #35239 (Objects can lose references)
--FILE--
<?php
$a = new stdClass;
$a->x0 = new stdClass;
$a->x0->y0 = 'a';
$a->x0->y1 =& $a->x0;
$a->x0->y2 =& $a->x0;
$a->x0->y0 = 'b';
var_dump($a);
$a->x0->y1 = "ok\n";
echo $a->x0;
?>
--EXPECT--
object(stdClass)#1 (1) {
["x0"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
*RECURSION*
["y2"]=>
*RECURSION*
}
["y2"]=>
&object(stdClass)#2 (3) {
["y0"]=>
string(1) "b"
["y1"]=>
*RECURSION*
["y2"]=>
*RECURSION*
}
}
}
ok
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #35411 (Regression with \{$ handling)
--FILE--
<?php
$abc = "bar";
echo "foo\{$abc}baz\n";
echo "foo\{ $abc}baz\n";
echo <<<TEST
foo{$abc}baz
foo\{$abc}baz
foo\{ $abc}baz
TEST;
?>
--EXPECT--
foo\{bar}baz
foo\{ bar}baz
foobarbaz
foo\{bar}baz
foo\{ bar}baz
+23
View File
@@ -0,0 +1,23 @@
--TEST--
catch shouldn't call __autoload
--FILE--
<?php
function __autoload($name) {
echo("AUTOLOAD '$name'\n");
eval("class $name {}");
}
try {
} catch (A $e) {
}
try {
throw new Exception();
} catch (B $e) {
} catch (Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok
+26
View File
@@ -0,0 +1,26 @@
--TEST--
testing @ and error_reporting - 1
--FILE--
<?php
error_reporting(E_ALL);
function foo($arg) {
}
function bar() {
throw new Exception("test");
}
try {
@foo(@bar());
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECT--
int(2047)
Done
+27
View File
@@ -0,0 +1,27 @@
--TEST--
testing @ and error_reporting - 2
--FILE--
<?php
error_reporting(E_ALL);
function foo($arg) {
}
function bar() {
error_reporting(E_ALL|E_STRICT);
throw new Exception("test");
}
try {
@foo(@bar());
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECT--
int(4095)
Done
+35
View File
@@ -0,0 +1,35 @@
--TEST--
testing @ and error_reporting - 3
--FILE--
<?php
error_reporting(E_ALL);
function foo($arg) {
echo @$nonex_foo;
}
function bar() {
echo @$nonex_bar;
throw new Exception("test");
}
function foo1() {
echo $undef1;
error_reporting(E_ALL|E_STRICT);
echo $undef2;
}
try {
@foo(@bar(@foo1()));
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined variable: undef2 in %s on line %d
int(4095)
Done
+23
View File
@@ -0,0 +1,23 @@
--TEST--
testing @ and error_reporting - 4
--FILE--
<?php
error_reporting(E_ALL);
function foo() {
echo $undef;
error_reporting(E_ALL|E_STRICT);
}
foo(@$var);
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined variable: undef in %s on line %d
int(4095)
Done
+34
View File
@@ -0,0 +1,34 @@
--TEST--
testing @ and error_reporting - 5
--FILE--
<?php
error_reporting(E_ALL);
class test {
function __get($name) {
return $undef_name;
}
function __set($name, $value) {
return $undef_value;
}
}
$test = new test;
$test->abc = 123;
echo $test->bcd;
@$test->qwe = 123;
echo @$test->wer;
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined variable: undef_value in %s on line %d
Notice: Undefined variable: undef_name in %s on line %d
int(2047)
Done
+30
View File
@@ -0,0 +1,30 @@
--TEST--
testing @ and error_reporting - 6
--FILE--
<?php
error_reporting(E_ALL);
function foo1($arg) {
}
function foo2($arg) {
}
function foo3($arg) {
echo $undef3;
throw new Exception("test");
}
try {
@foo1(@foo2(@foo3()));
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
int(2047)
Done
+30
View File
@@ -0,0 +1,30 @@
--TEST--
testing @ and error_reporting - 7
--FILE--
<?php
error_reporting(E_ALL);
function foo1($arg) {
}
function foo2($arg) {
}
function foo3($arg) {
echo $undef3;
throw new Exception("test");
}
try {
@error_reporting(@foo1(@foo2(@foo3())));
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
int(2047)
Done
+32
View File
@@ -0,0 +1,32 @@
--TEST--
testing @ and error_reporting - 8
--FILE--
<?php
error_reporting(E_ALL);
function foo1($arg) {
}
function foo2($arg) {
}
function foo3($arg) {
error_reporting(E_ALL|E_STRICT);
echo $undef3;
throw new Exception("test");
}
try {
@foo1(@foo2(@foo3()));
} catch (Exception $e) {
}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined variable: undef3 in %s on line %d
int(4095)
Done
+31
View File
@@ -0,0 +1,31 @@
--TEST--
testing @ and error_reporting - 9
--FILE--
<?php
error_reporting(E_ALL);
function bar() {
echo @$blah;
echo $undef2;
}
function foo() {
echo @$undef;
error_reporting(E_ALL|E_STRICT);
echo $blah;
return bar();
}
@foo();
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined variable: blah in %s on line %d
Notice: Undefined variable: undef2 in %s on line %d
int(4095)
Done
+35
View File
@@ -0,0 +1,35 @@
--TEST--
testing @ and error_reporting - 10
--FILE--
<?php
error_reporting(E_ALL);
function make_exception()
{
@$blah;
str_replace();
error_reporting(0);
throw new Exception();
}
try {
@make_exception();
} catch (Exception $e) {}
var_dump(error_reporting());
error_reporting(E_ALL&~E_NOTICE);
try {
@make_exception();
} catch (Exception $e) {}
var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
int(2047)
int(2039)
Done
+14
View File
@@ -0,0 +1,14 @@
--TEST--
foreach() & undefined var
--FILE--
<?php
foreach($a as $val);
echo "Done\n";
?>
--EXPECTF--
Notice: Undefined variable: a in %s on line %d
Warning: Invalid argument supplied for foreach() in %s on line %d
Done
+18
View File
@@ -0,0 +1,18 @@
--TEST--
instanceof shouldn't call __autoload
--FILE--
<?php
function __autoload($name) {
echo("AUTOLOAD '$name'\n");
eval("class $name {}");
}
class A {
}
$a = new A;
var_dump($a instanceof B);
var_dump($a instanceof A);
?>
--EXPECT--
bool(false)
bool(true)
+51
View File
@@ -0,0 +1,51 @@
--TEST--
is_a() and is_subclass_of() shouldn't call __autoload
--INI--
error_reporting=4095
--FILE--
<?php
function __autoload($name) {
echo("AUTOLOAD '$name'\n");
eval("class $name {}");
}
class BASE {
}
interface INT {
}
class A extends BASE implements INT {
}
$a = new A;
var_dump(is_a($a, "B1"));
var_dump(is_a($a, "A"));
var_dump(is_a($a, "BASE"));
var_dump(is_a($a, "INT"));
var_dump(is_subclass_of($a, "B2"));
var_dump(is_subclass_of($a, "A"));
var_dump(is_subclass_of($a, "BASE"));
var_dump(is_subclass_of($a, "INT"));
var_dump(is_subclass_of("X1", "X2"));
?>
--EXPECTF--
Strict Standards: is_a(): Deprecated. Please use the instanceof operator in %sis_a.php on line 17
bool(false)
Strict Standards: is_a(): Deprecated. Please use the instanceof operator in %sis_a.php on line 18
bool(true)
Strict Standards: is_a(): Deprecated. Please use the instanceof operator in %sis_a.php on line 19
bool(true)
Strict Standards: is_a(): Deprecated. Please use the instanceof operator in %sis_a.php on line 20
bool(true)
bool(false)
bool(false)
bool(true)
bool(false)
AUTOLOAD 'X1'
AUTOLOAD 'X2'
bool(false)
+7 -1
View File
@@ -2,8 +2,14 @@
unset() CV 5 (indirect unset() of global variable in session_start())
--INI--
register_long_arrays=1
session.auto_start=0
session.save_handler=files
--SKIPIF--
<?php include('../../ext/session/tests/skipif.inc'); ?>
<?php
include(dirname(__FILE__).'/../../ext/session/tests/skipif.inc');
?>
--FILE--
<?php
$HTTP_SESSION_VARS = "ok\n";
+3 -1
View File
@@ -1,9 +1,11 @@
--TEST--
unset() CV 6 (indirect unset() of global variable in session_unset())
--SKIPIF--
<?php include('../../ext/session/tests/skipif.inc'); ?>
<?php include(dirname(__FILE__).'/../../ext/session/tests/skipif.inc'); ?>
--INI--
register_globals=1
session.auto_start=0
session.save_handler=files
--FILE--
<?php
$x = "1\n";
+4 -9
View File
@@ -2,22 +2,17 @@
unset() CV 7 (indirect unset() of global variable in import_request_variables())
--SKIPIF--
<?php if (php_sapi_name()=='cli') echo 'skip'; ?>
--INI--
error_reporting=2039
--GET--
x=2
--FILE--
<?php
$x = "1\n";
echo $x;
import_request_variables("g");
echo $x;
$_x = "1\n";
echo $_x;
import_request_variables("g","_");
echo $_x;
echo "\nok\n";
?>
--EXPECTF--
1
<br />
<b>Notice</b>: import_request_variables() [<a href='function.import-request-variables'>function.import-request-variables</a>]: No prefix specified - possible security hazard in <b>%sunset_cv07.php</b> on line <b>4</b><br />
%sunset_cv07.php(4) : Notice - import_request_variables() [<a href='function.import-request-variables'>function.import-request-variables</a>]: No prefix specified - possible security hazard
2
ok
+11
View File
@@ -0,0 +1,11 @@
--TEST--
unset() CV 12 (unset() in indirect called function)
--FILE--
<?php
$x = 1;
function foo() {unset($GLOBALS["x"]);}
call_user_func("foo");
echo "ok\n";
?>
--EXPECT--
ok
+37 -24
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -38,6 +38,7 @@
# define GLOBAL_FUNCTION_TABLE CG(function_table)
# define GLOBAL_CLASS_TABLE CG(class_table)
# define GLOBAL_AUTO_GLOBALS_TABLE CG(auto_globals)
# define GLOBAL_CONSTANTS_TABLE EG(zend_constants)
#endif
#if defined(ZEND_WIN32) && ZEND_DEBUG
@@ -77,6 +78,9 @@ static ZEND_INI_MH(OnUpdateErrorReporting)
ZEND_INI_BEGIN()
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)
#ifdef ZEND_MULTIBYTE
STD_ZEND_INI_BOOLEAN("detect_unicode", "1", ZEND_INI_ALL, OnUpdateBool, detect_unicode, zend_compiler_globals, compiler_globals)
#endif
ZEND_INI_END()
@@ -88,6 +92,7 @@ HashTable *global_function_table;
HashTable *global_class_table;
HashTable *global_constants_table;
HashTable *global_auto_globals_table;
static HashTable *global_persistent_list = NULL;
#endif
ZEND_API zend_utility_values zend_uv;
@@ -97,7 +102,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-2004 Zend Technologies\n"
#define ZEND_CORE_VERSION_INFO "Zend Engine v" ZEND_VERSION ", Copyright (c) 1998-2005 Zend Technologies\n"
#define PRINT_ZVAL_INDENT 4
@@ -127,7 +132,7 @@ static void print_hash(HashTable *ht, int indent, zend_bool is_object TSRMLS_DC)
if (is_object) {
char *prop_name, *class_name;
zend_unmangle_property_name(string_key, &class_name, &prop_name);
zend_unmangle_property_name_ex(string_key, str_len, &class_name, &prop_name);
ZEND_PUTS(prop_name);
if (class_name) {
if (class_name[0]=='*') {
@@ -486,6 +491,13 @@ static void executor_globals_ctor(zend_executor_globals *executor_globals TSRMLS
static void executor_globals_dtor(zend_executor_globals *executor_globals TSRMLS_DC)
{
zend_ini_shutdown(TSRMLS_C);
if (&executor_globals->persistent_list != global_persistent_list) {
zend_destroy_rsrc_list(&executor_globals->persistent_list TSRMLS_CC);
}
if (executor_globals->zend_constants != GLOBAL_CONSTANTS_TABLE) {
zend_hash_destroy(executor_globals->zend_constants);
free(executor_globals->zend_constants);
}
}
@@ -682,6 +694,7 @@ void zend_post_startup(TSRMLS_D)
compiler_globals_ctor(compiler_globals, tsrm_ls);
free(EG(zend_constants));
executor_globals_ctor(executor_globals, tsrm_ls);
global_persistent_list = &EG(persistent_list);
zend_new_thread_end_handler(tsrm_thread_id() TSRMLS_CC);
}
#endif
@@ -692,9 +705,7 @@ void zend_shutdown(TSRMLS_D)
#ifdef ZEND_WIN32
zend_shutdown_timeout_thread();
#endif
#ifndef ZTS
zend_destroy_rsrc_list(&EG(persistent_list) TSRMLS_CC);
#endif
zend_hash_graceful_reverse_destroy(&module_registry);
zend_hash_destroy(GLOBAL_FUNCTION_TABLE);
@@ -706,16 +717,17 @@ void zend_shutdown(TSRMLS_D)
zend_shutdown_extensions(TSRMLS_C);
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);
#ifdef ZTS
GLOBAL_FUNCTION_TABLE = NULL;
GLOBAL_CLASS_TABLE = NULL;
GLOBAL_AUTO_GLOBALS_TABLE = NULL;
GLOBAL_CONSTANTS_TABLE = NULL;
#endif
zend_destroy_rsrc_list_dtors();
}
@@ -943,13 +955,20 @@ ZEND_API void zend_error(int type, const char *format, ...)
ALLOC_INIT_ZVAL(z_error_lineno);
ALLOC_INIT_ZVAL(z_context);
#if defined(va_copy)
va_copy(usr_copy, args);
#else
usr_copy = args;
/* va_copy() is __va_copy() in old gcc versions.
* According to the autoconf manual, using
* memcpy(&dst, &src, sizeof(va_list))
* gives maximum portability. */
#ifndef va_copy
# ifdef __va_copy
# define va_copy(dest, src) __va_copy((dest), (src))
# else
# define va_copy(dest, src) memcpy(&(dest), &(src), sizeof(va_list))
# endif
#endif
va_copy(usr_copy, args);
z_error_message->value.str.len = zend_vspprintf(&z_error_message->value.str.val, 0, format, usr_copy);
#if defined(va_copy)
#ifdef va_copy
va_end(usr_copy);
#endif
z_error_message->type = IS_STRING;
@@ -968,8 +987,7 @@ ZEND_API void zend_error(int type, const char *format, ...)
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 */
z_context->is_ref = 1;
zval_copy_ctor(z_context);
params = (zval ***) emalloc(sizeof(zval **)*5);
params[0] = &z_error_type;
@@ -982,9 +1000,6 @@ ZEND_API void zend_error(int type, const char *format, ...)
EG(user_error_handler) = NULL;
if (call_user_function_ex(CG(function_table), NULL, orig_user_error_handler, &retval, 5, params, 1, NULL TSRMLS_CC)==SUCCESS) {
if (Z_TYPE_P(z_context) != IS_ARRAY || z_context->value.ht != EG(active_symbol_table)) {
zend_error(E_ERROR, "User error handler must not modify error context");
}
if (retval) {
if (Z_TYPE_P(retval) == IS_BOOL && Z_LVAL_P(retval) == 0) {
zend_error_cb(type, error_filename, error_lineno, format, args);
@@ -1008,12 +1023,7 @@ 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);
if (ZVAL_REFCOUNT(z_context) <= 2) {
FREE_ZVAL(z_context);
} else {
ZVAL_DELREF(z_context);
zval_ptr_dtor(&z_context);
}
zval_ptr_dtor(&z_context);
break;
}
@@ -1025,6 +1035,9 @@ ZEND_API void zend_error(int type, const char *format, ...)
}
}
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(DARWIN)
void zend_error_noreturn(int type, const char *format, ...) __attribute__ ((alias("zend_error"),noreturn));
#endif
ZEND_API void zend_output_debug_string(zend_bool trigger_break, char *format, ...)
{
+25 -7
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -22,7 +22,7 @@
#ifndef ZEND_H
#define ZEND_H
#define ZEND_VERSION "2.1.0b1"
#define ZEND_VERSION "2.1.0"
#define ZEND_ENGINE_2
@@ -171,7 +171,7 @@ char *alloca ();
# define ZEND_ATTRIBUTE_FORMAT(type, idx, first)
#endif
#if ZEND_GCC_VERSION >= 3001
#if ZEND_GCC_VERSION >= 3001 && !defined(__INTEL_COMPILER)
# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first)))
#else
# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first)
@@ -247,8 +247,16 @@ char *alloca ();
#include "zend_ts_hash.h"
#include "zend_llist.h"
#define INTERNAL_FUNCTION_PARAMETERS int ht, zval *return_value, zval *this_ptr, int return_value_used TSRMLS_DC
#define INTERNAL_FUNCTION_PARAM_PASSTHRU ht, return_value, this_ptr, return_value_used TSRMLS_CC
#define INTERNAL_FUNCTION_PARAMETERS int ht, zval *return_value, zval **return_value_ptr, zval *this_ptr, int return_value_used TSRMLS_DC
#define INTERNAL_FUNCTION_PARAM_PASSTHRU ht, return_value, return_value_ptr, this_ptr, return_value_used TSRMLS_CC
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(DARWIN)
# define ZEND_VM_ALWAYS_INLINE __attribute__ ((always_inline))
void zend_error_noreturn(int type, const char *format, ...) __attribute__ ((noreturn));
#else
# define ZEND_VM_ALWAYS_INLINE
# define zend_error_noreturn zend_error
#endif
/*
@@ -257,11 +265,18 @@ char *alloca ();
typedef struct _zval_struct zval;
typedef struct _zend_class_entry zend_class_entry;
typedef struct _zend_guard {
zend_bool in_get;
zend_bool in_set;
zend_bool in_unset;
zend_bool in_isset;
zend_bool dummy; /* sizeof(zend_guard) must not be equal to sizeof(void*) */
} zend_guard;
typedef struct _zend_object {
zend_class_entry *ce;
HashTable *properties;
unsigned int in_get:1;
unsigned int in_set:1;
HashTable *guards; /* protects from __get/__set ... recursion */
} zend_object;
typedef unsigned int zend_object_handle;
@@ -321,6 +336,7 @@ struct _zend_class_entry {
HashTable function_table;
HashTable default_properties;
HashTable properties_info;
HashTable default_static_members;
HashTable *static_members;
HashTable constants_table;
struct _zend_function_entry *builtin_functions;
@@ -330,6 +346,8 @@ struct _zend_class_entry {
union _zend_function *clone;
union _zend_function *__get;
union _zend_function *__set;
union _zend_function *__unset;
union _zend_function *__isset;
union _zend_function *__call;
union _zend_function *serialize_func;
union _zend_function *unserialize_func;
+599 -137
View File
File diff suppressed because it is too large. Load diff
+47 -19
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -65,7 +65,7 @@ typedef struct _zend_function_entry {
zend_arg_info name[] = { \
{ NULL, 0, NULL, 0, 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)
ZEND_BEGIN_ARG_INFO_EX(name, pass_rest_by_reference, ZEND_RETURN_VALUE, -1)
#define ZEND_END_ARG_INFO() };
/* Name macros */
@@ -118,7 +118,7 @@ typedef struct _zend_function_entry {
#define INIT_CLASS_ENTRY(class_container, class_name, functions) INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, NULL, NULL, NULL)
#define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
#define INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset, handle_propunset, handle_propisset) \
{ \
class_container.name = strdup(class_name); \
class_container.name_length = sizeof(class_name) - 1; \
@@ -131,6 +131,8 @@ typedef struct _zend_function_entry {
class_container.__call = handle_fcall; \
class_container.__get = handle_propget; \
class_container.__set = handle_propset; \
class_container.__unset = handle_propunset; \
class_container.__isset = handle_propisset; \
class_container.serialize = NULL; \
class_container.unserialize = NULL; \
class_container.parent = NULL; \
@@ -141,6 +143,9 @@ typedef struct _zend_function_entry {
class_container.module = NULL; \
}
#define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
INIT_OVERLOADED_CLASS_ENTRY_EX(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset, NULL, NULL)
int zend_next_free_module(void);
BEGIN_EXTERN_C()
@@ -172,8 +177,11 @@ ZEND_API int zend_parse_method_parameters_ex(int flags, int num_args TSRMLS_DC,
ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entry *functions, HashTable *function_table, int type TSRMLS_DC);
ZEND_API void zend_unregister_functions(zend_function_entry *functions, int count, HashTable *function_table TSRMLS_DC);
ZEND_API int zend_register_module(zend_module_entry *module_entry);
ZEND_API int zend_register_module_ex(zend_module_entry *module TSRMLS_DC);
ZEND_API int zend_startup_module(zend_module_entry *module_entry);
ZEND_API zend_module_entry* zend_register_internal_module(zend_module_entry *module_entry TSRMLS_DC);
ZEND_API zend_module_entry* zend_register_module_ex(zend_module_entry *module TSRMLS_DC);
ZEND_API int zend_startup_module_ex(zend_module_entry *module TSRMLS_DC);
ZEND_API int zend_startup_modules(TSRMLS_D);
ZEND_API void zend_check_magic_method_implementation(zend_class_entry *ce, zend_function *fptr, int error_type TSRMLS_DC);
ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *class_entry TSRMLS_DC);
@@ -188,7 +196,9 @@ ZEND_API void zend_wrong_param_count(TSRMLS_D);
#define IS_CALLABLE_CHECK_SYNTAX_ONLY (1<<0)
#define IS_CALLABLE_CHECK_NO_ACCESS (1<<1)
#define IS_CALLABLE_CHECK_IS_STATIC (1<<2)
ZEND_API zend_bool zend_is_callable_ex(zval *callable, uint check_flags, char **callable_name, int *callable_name_len, zend_class_entry **ce_ptr, zend_function **fptr_ptr, zval ***zobj_ptr_ptr TSRMLS_DC);
ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, 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);
@@ -202,6 +212,13 @@ ZEND_API int zend_declare_property_double(zend_class_entry *ce, char *name, int
ZEND_API int zend_declare_property_string(zend_class_entry *ce, char *name, int name_length, char *value, int access_type TSRMLS_DC);
ZEND_API int zend_declare_property_stringl(zend_class_entry *ce, char *name, int name_length, char *value, int value_len, int access_type TSRMLS_DC);
ZEND_API int zend_declare_class_constant(zend_class_entry *ce, char *name, size_t name_length, zval *value TSRMLS_DC);
ZEND_API int zend_declare_class_constant_long(zend_class_entry *ce, char *name, size_t name_length, long value TSRMLS_DC);
ZEND_API int zend_declare_class_constant_bool(zend_class_entry *ce, char *name, size_t name_length, zend_bool value TSRMLS_DC);
ZEND_API int zend_declare_class_constant_double(zend_class_entry *ce, char *name, size_t name_length, double value TSRMLS_DC);
ZEND_API int zend_declare_class_constant_stringl(zend_class_entry *ce, char *name, size_t name_length, char *value, size_t value_length TSRMLS_DC);
ZEND_API int zend_declare_class_constant_string(zend_class_entry *ce, char *name, size_t name_length, char *value TSRMLS_DC);
ZEND_API void zend_update_class_constants(zend_class_entry *class_type TSRMLS_DC);
ZEND_API void zend_update_property(zend_class_entry *scope, zval *object, char *name, int name_length, zval *value TSRMLS_DC);
ZEND_API void zend_update_property_null(zend_class_entry *scope, zval *object, char *name, int name_length TSRMLS_DC);
@@ -211,9 +228,20 @@ ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object,
ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, char *name, int name_length, char *value TSRMLS_DC);
ZEND_API void zend_update_property_stringl(zend_class_entry *scope, zval *object, char *name, int name_length, char *value, int value_length TSRMLS_DC);
ZEND_API int zend_update_static_property(zend_class_entry *scope, char *name, int name_length, zval *value TSRMLS_DC);
ZEND_API int zend_update_static_property_null(zend_class_entry *scope, char *name, int name_length TSRMLS_DC);
ZEND_API int zend_update_static_property_bool(zend_class_entry *scope, char *name, int name_length, long value TSRMLS_DC);
ZEND_API int zend_update_static_property_long(zend_class_entry *scope, char *name, int name_length, long value TSRMLS_DC);
ZEND_API int zend_update_static_property_double(zend_class_entry *scope, char *name, int name_length, double value TSRMLS_DC);
ZEND_API int zend_update_static_property_string(zend_class_entry *scope, char *name, int name_length, char *value TSRMLS_DC);
ZEND_API int zend_update_static_property_stringl(zend_class_entry *scope, char *name, int name_length, char *value, int value_length TSRMLS_DC);
ZEND_API zval *zend_read_property(zend_class_entry *scope, zval *object, char *name, int name_length, zend_bool silent TSRMLS_DC);
ZEND_API zval *zend_read_static_property(zend_class_entry *scope, char *name, int name_length, zend_bool silent TSRMLS_DC);
ZEND_API zend_class_entry *zend_get_class_entry(zval *zobject TSRMLS_DC);
ZEND_API int zend_get_object_classname(zval *object, char **class_name, zend_uint *class_name_len TSRMLS_DC);
#define getThis() (this_ptr)
@@ -228,8 +256,6 @@ ZEND_API zend_class_entry *zend_get_class_entry(zval *zobject TSRMLS_DC);
#define DLEXPORT
#endif
ZEND_API int zend_startup_module(zend_module_entry *module);
#define array_init(arg) _array_init((arg) ZEND_FILE_LINE_CC)
#define object_init(arg) _object_init((arg) ZEND_FILE_LINE_CC TSRMLS_CC)
#define object_init_ex(arg, ce) _object_init_ex((arg), (ce) ZEND_FILE_LINE_CC TSRMLS_CC)
@@ -268,14 +294,14 @@ ZEND_API int add_assoc_zval_ex(zval *arg, char *key, uint key_len, zval *value);
#define add_next_index_unset(__arg) add_next_index_null(__arg)
#define add_property_unset(__arg, __key) add_property_null(__arg, __key)
ZEND_API int add_index_long(zval *arg, uint idx, long n);
ZEND_API int add_index_null(zval *arg, uint idx);
ZEND_API int add_index_bool(zval *arg, uint idx, int b);
ZEND_API int add_index_resource(zval *arg, uint idx, int r);
ZEND_API int add_index_double(zval *arg, uint idx, double d);
ZEND_API int add_index_string(zval *arg, uint idx, char *str, int duplicate);
ZEND_API int add_index_stringl(zval *arg, uint idx, char *str, uint length, int duplicate);
ZEND_API int add_index_zval(zval *arg, uint index, zval *value);
ZEND_API int add_index_long(zval *arg, ulong idx, long n);
ZEND_API int add_index_null(zval *arg, ulong idx);
ZEND_API int add_index_bool(zval *arg, ulong idx, int b);
ZEND_API int add_index_resource(zval *arg, ulong idx, int r);
ZEND_API int add_index_double(zval *arg, ulong idx, double d);
ZEND_API int add_index_string(zval *arg, ulong idx, char *str, int duplicate);
ZEND_API int add_index_stringl(zval *arg, ulong idx, char *str, uint length, int duplicate);
ZEND_API int add_index_zval(zval *arg, ulong index, zval *value);
ZEND_API int add_next_index_long(zval *arg, long n);
ZEND_API int add_next_index_null(zval *arg);
@@ -292,10 +318,10 @@ ZEND_API int add_get_assoc_stringl_ex(zval *arg, char *key, uint key_len, char *
#define add_get_assoc_string(__arg, __key, __str, __dest, __duplicate) add_get_assoc_string_ex(__arg, __key, strlen(__key)+1, __str, __dest, __duplicate)
#define add_get_assoc_stringl(__arg, __key, __str, __length, __dest, __duplicate) add_get_assoc_stringl_ex(__arg, __key, strlen(__key)+1, __str, __length, __dest, __duplicate)
ZEND_API int add_get_index_long(zval *arg, uint idx, long l, void **dest);
ZEND_API int add_get_index_double(zval *arg, uint idx, double d, void **dest);
ZEND_API int add_get_index_string(zval *arg, uint idx, char *str, void **dest, int duplicate);
ZEND_API int add_get_index_stringl(zval *arg, uint idx, char *str, uint length, void **dest, int duplicate);
ZEND_API int add_get_index_long(zval *arg, ulong idx, long l, void **dest);
ZEND_API int add_get_index_double(zval *arg, ulong idx, double d, void **dest);
ZEND_API int add_get_index_string(zval *arg, ulong idx, char *str, void **dest, int duplicate);
ZEND_API int add_get_index_stringl(zval *arg, ulong idx, char *str, uint length, void **dest, int duplicate);
ZEND_API int add_property_long_ex(zval *arg, char *key, uint key_len, long l TSRMLS_DC);
ZEND_API int add_property_null_ex(zval *arg, char *key, uint key_len TSRMLS_DC);
@@ -350,6 +376,8 @@ ZEND_API int zend_set_hash_symbol(zval *symbol, char *name, int name_length,
ZEND_API int zend_delete_global_variable(char *name, int name_len TSRMLS_DC);
ZEND_API void zend_reset_all_cv(HashTable *symbol_table TSRMLS_DC);
#define add_method(arg, key, method) add_assoc_function((arg), (key), (method))
ZEND_API ZEND_FUNCTION(display_disabled_function);
Loaded 100 of 1985 files, more files were not shown because too many files have changed in this diff. Show more