Compare commits

...
1618 Commits
Author SHA1 Message Date
SVN Migration d8fcf7b63d This commit was manufactured by cvs2svn to create tag 'php_5_2_3'. 2007-05-30 18:46:00 +00:00
Ilia Alshanetsky b604bc7200 5.2.3 2007-05-30 18:45:59 +00:00
Antony Dovgal 23eaae2211 MFH 2007-05-30 16:32:02 +00:00
Antony Dovgal df057bf78d fix test names 2007-05-30 15:40:26 +00:00
Pierre Joye f2e130c145 - add missing cert (thx Tony) 2007-05-30 15:16:31 +00:00
Antony Dovgal 568525bbb5 fix test (second try) 2007-05-30 14:43:18 +00:00
Antony Dovgal 2958037b2a fix test 2007-05-30 14:40:24 +00:00
Antony Dovgal 794ceb7bad MFH: fix lstat() function resolving symlinks 2007-05-30 10:50:47 +00:00
Antony Dovgal b529617499 fix tests 2007-05-30 10:19:39 +00:00
Antony Dovgal 770790af04 set module in internal_function struct 2007-05-30 10:17:43 +00:00
Ilia Alshanetsky 9282d4add6 Fixed an interger overflow inside chunk_split(), identified by Gerhard
Wagner
2007-05-30 00:33:13 +00:00
Antony Dovgal f7ec7197f7 fix tests 2007-05-29 10:25:33 +00:00
Marcus Boerger 407c9833ef - Bug #41525 ReflectionParameter::getPosition() not available
# This was supposed to be dropped in 5.1.4, I wonder why thisis not in
# because the functionality is documented.
# [ DOC ] Make sure the function documentation is correct for:
# ReflectionParameter::getPosition
# ReflectionParameter::getDeclaringFunction
# ReflectionFunction::getExtension
# ReflectionFunction::getExtensionName
2007-05-29 08:44:05 +00:00
Antony Dovgal 97e9bd1da0 fix test names 2007-05-28 20:03:54 +00:00
Pierre Joye b49e70f946 - MFH:
- tests for #39217
 - skip test if openssl is too old
2007-05-28 13:55:30 +00:00
Hannes Magnusson c0dd1f4d0b MFH 2007-05-28 12:19:41 +00:00
Hannes Magnusson c64a4a1359 MFH: fix logic 2007-05-28 10:46:21 +00:00
Antony Dovgal f92e99e83a reorder 2007-05-28 10:36:09 +00:00
Antony Dovgal a841027cca MFH 2007-05-28 10:07:50 +00:00
Dmitry Stogov e35679618e Removed deprecated comment 2007-05-28 08:11:59 +00:00
Antony Dovgal ccd16d09c0 MFH 2007-05-27 19:23:09 +00:00
Hannes Magnusson bcc95ae09b the binary is called php-cgi now 2007-05-27 19:00:47 +00:00
foobar 26c60afb5d MFH: add missing entries, these are in PHP_4_4 branch.. 2007-05-27 18:04:10 +00:00
Ilia Alshanetsky 47216d7de4 Adjust tests to reflect the new expected output 2007-05-27 17:57:57 +00:00
Ilia Alshanetsky e3759c2823 Fixed SQLite version 2007-05-27 17:53:04 +00:00
Ilia Alshanetsky 0f6e099d7d Fixed bug #41477 (no arginfo about SoapClient::__soapCall()). 2007-05-27 17:46:46 +00:00
Ilia Alshanetsky 6f61e84727 Fixed bug #41492 (open_basedir/safe_mode bypass inside realpath()). 2007-05-27 17:33:39 +00:00
Ilia Alshanetsky d2ec6b60da Fixed bug #41236 (Regression in timeout handling of non-blocking SSL
connections during reads and writes).
2007-05-27 17:05:51 +00:00
Ilia Alshanetsky faae3e9ecf Fixed bug #41504 (json_decode() incorrectly decodes JSON arrays with empty
string keys).
2007-05-27 16:31:35 +00:00
Nuno Lopes 2c5368c013 fix handling of && by htmlentities 'no-double-encode'
expand the test cases
2007-05-27 15:57:11 +00:00
Nuno Lopes 452524fe3a fix the new 'no-double-encoding' feature of htmlspecialchars() (the length for char search was wrong. this could lead to crashes..) 2007-05-27 15:45:18 +00:00
Nuno Lopes 8931a76101 make make_digest() output a 16-byte string so that it wont break the internal PHP API (it was breaking the SOAP extension) 2007-05-27 15:29:38 +00:00
Antony Dovgal 7e1647e524 MFH: add missing skipif sections 2007-05-27 15:12:33 +00:00
foobar 8561368787 fix news 2007-05-27 15:11:31 +00:00
foobar 8588db4b46 - Fixed bug #41511 (Compile failure under IRIX 6.5.30 building md5.c) 2007-05-27 14:50:09 +00:00
Antony Dovgal bac779d6b6 check for required func 2007-05-27 14:39:21 +00:00
Antony Dovgal 060589090d fix test 2007-05-27 14:30:06 +00:00
Rasmus Lerdorf 227fd7aa1f Remove simple optimization here for now until we clean up this SAPI/TSRM
mess.
2007-05-25 22:53:34 +00:00
Hannes Magnusson f00ea3c023 MFH: Mention why short_open_tags is off (bug#37068) 2007-05-25 19:25:15 +00:00
Hannes Magnusson df03be1a3b Allow skipping hint_charset (fixes ext/standard/tests/strings/htmlentities18.phpt) 2007-05-25 14:09:02 +00:00
Zoe Slattery eb0f324f70 New testcaes for file/strings/general_functions 2007-05-25 13:44:23 +00:00
Hannes Magnusson de4408c9af MFH: protos (patch by jeffg at activestate dot com) 2007-05-25 13:24:50 +00:00
Michael Wallner d9c97cbd47 - fix typo 2007-05-25 12:47:55 +00:00
Hannes Magnusson 194044bbdb Mention json nesting dept bump 2007-05-25 12:35:33 +00:00
Hannes Magnusson ad57583ba4 This test should only test failures 2007-05-25 12:31:03 +00:00
Hannes Magnusson 993b66b4c8 Fix test after stack limit bump 2007-05-25 12:15:38 +00:00
Rasmus Lerdorf 6e0d643783 Slightly cleaner code 2007-05-25 09:20:01 +00:00
Rasmus Lerdorf f6bffb69c5 Optimize sapi_get_request_time() slightly making it use the cached time
and also checking if there is a server_context before trying to call
the request_time sapi hook.
2007-05-25 09:12:35 +00:00
Ilia Alshanetsky 9998f67c91 Back to dev 2007-05-25 00:07:57 +00:00
Ilia Alshanetsky f0b7941067 5.2.3RC1 2007-05-25 00:05:30 +00:00
foobar a894611636 - Unify installation of SAPIs: CGI is no exception anymore. 2007-05-24 23:29:59 +00:00
Rasmus Lerdorf c7069887a4 Make the code match the commit comment 2007-05-24 22:40:02 +00:00
Rasmus Lerdorf 464d87e58b I don't see any reason to leave the stack limitation at 20. We have
reports of this limit being hit now and as far as I can tell bumping it
to 128 isn't going break anything in the parser code.
2007-05-24 22:37:59 +00:00
foobar efcdcd80b6 - Allow build without flex/bison installed (fixes builddir != srcdir build
when using distributed sources which inlude pre-generated bison/flex
  output. See bug #38762 for more..)
2007-05-24 21:40:41 +00:00
Rasmus Lerdorf 2fba3bf13b Uh, only meant to remove the null check, not the assignment 2007-05-24 21:29:27 +00:00
Rasmus Lerdorf 61b06f1527 Avoid running off the end of a non-null terminated string. Not that we
should have any of those, but a mistake in an extension could hit this
and the check doesn't actually make any sense as far as I am concerned.
2007-05-24 20:53:05 +00:00
foobar 5603bef272 - Fix previous fix. (just revert of Stefan's bad fix..) 2007-05-24 19:52:03 +00:00
foobar 91d98d2986 - Fix idiotic change in logic. (hint: flex is _REQUIRED_ for building PHP! 2007-05-24 19:35:46 +00:00
Dmitry Stogov 9bca44df22 Impoved error reporting on parser errors (Matt, Dmitry) 2007-05-24 08:56:35 +00:00
Ilia Alshanetsky 6f694fab9a Simplify code 2007-05-23 15:01:00 +00:00
Hannes Magnusson a6a989d44c new curl constants 2007-05-22 19:31:07 +00:00
Antony Dovgal 9a37c5588c fix tests 2007-05-22 16:58:33 +00:00
Antony Dovgal d14d148f66 fix test 2007-05-22 16:52:58 +00:00
Hannes Magnusson 77fda18119 Add entry about --ini 2007-05-22 16:38:50 +00:00
Raghubansh Kumar 17a6ac36da New version of gettype_settype_variation1.phpt gettype_settype_variation6.phpt
gettype_settype_variation2.phpt  gettype_settype_variation7.phpt      gettype_settype_variation3.phpt  gettype_settype_variation8.phpt
gettype_settype_basic.phpt  gettype_settype_variation4.phpt
gettype_settype_error.phpt  gettype_settype_variation5.phpt
2007-05-22 16:01:59 +00:00
Raghubansh Kumar 9f5016ef7b New version of basename_basic.phpt, basename_error.phpt, basename_variation.phpt 2007-05-22 15:59:04 +00:00
Hannes Magnusson 13feaf3620 Ladies and gentelmens,
I bring you our new documentation editor....
Philip Olson!
2007-05-22 15:44:11 +00:00
Hannes Magnusson cdd37424a8 Update proto&arginfo for double_encode in htmlspecialchars()&htmlentities() 2007-05-22 15:38:27 +00:00
Pierre Joye c1ba2927aa - add cve ref 2007-05-22 15:17:03 +00:00
Antony Dovgal a69e6e2c79 MFH: improve variable name checks
add more tests
2007-05-22 14:34:23 +00:00
Hannes Magnusson b4eb20c8aa Add max_input_nesting_level 2007-05-22 13:27:16 +00:00
Ilia Alshanetsky c98cbb6020 [DOC] Added a 4th parameter flag to htmlspecialchars() and htmlentities()
that makes the function not encode existing html entities. The feature is
disabled by default and can be activated by passing FALSE as the 4th param
2007-05-22 12:37:00 +00:00
Timm Friebe 43fccbf2b9 - Changed hardcoded "tempdb" database name to a constant 2007-05-22 12:16:32 +00:00
Timm Friebe 090cee2bdc - Fixed expectancy in for SQL query <select convert(datetime, "notadate")>
This query should return bool(false) and not a resource() because
  the above is a syntax error
# Exact message yielded by SQL server is the following:
# "Syntax error during explicit conversion of VARCHAR value `notadate`
# to a DATETIME field.
2007-05-22 11:38:57 +00:00
Timm Friebe 9181a464fe - Added constant TEMPDB, defaulting to "tempdb"
# This constant is used by some of the tests and should point
# to a database where the user has create proc|table permissions
2007-05-22 11:36:55 +00:00
Timm Friebe 6218d2d998 - Changed hardcoded "tempdb" database name to a constant
# This constant is defined in test.inc and defaults to "tempdb"
# In certain setups, create procedure permissions may not be granted
# in tempdb
2007-05-22 11:35:47 +00:00
Timm Friebe 680735fce8 - Fixed tests on Windows
# The tests expected %s/test.inc in warnings and notices, but of course,
# on Windows, the directory separator is a backslash.
# Made this work in both worlds by testing for %stest.inc
2007-05-22 11:33:36 +00:00
Antony Dovgal 083844f847 MFH: fix #41442 (imagegd2() under output control) 2007-05-22 10:22:49 +00:00
Sara Golemon 5040dbd5e8 MFH(r-1.112) Add CURLOPT_TIMEOUT_MS and CURLOPT_CONNECTTIMEOUT_MS option constants 2007-05-22 08:39:20 +00:00
Ilia Alshanetsky 89d57c7c67 Fixed typos 2007-05-21 16:50:03 +00:00
Michael Wallner 5fdcc761a1 - first check the SSL lib string in libcurl and then the header 2007-05-21 13:32:35 +00:00
Dmitry Stogov 7d1dbff79d Fixed bug #41337 WSDL parsing doesn't ignore non soap bindings 2007-05-21 13:13:50 +00:00
Antony Dovgal 007bac315d MFH: fix #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS) 2007-05-21 11:38:53 +00:00
Dmitry Stogov 23409a4bbf Fixed crash on "php -b 1234 -unknown-option" 2007-05-21 09:08:13 +00:00
Dmitry Stogov 3040a34b21 libfcgi cleanup (Andrei Nigmatulin) 2007-05-21 08:47:51 +00:00
Antony Dovgal 04aefb4e18 MFH 2007-05-21 07:12:41 +00:00
Marcus Boerger a4e3f29771 - MFH Add print_htptr, print_htstr 2007-05-20 21:46:17 +00:00
Ilia Alshanetsky 30dd6a45d3 Fixed a possible crash when PATH_INFO is not provided but the path contains
path info information
2007-05-20 15:56:10 +00:00
Pierre Joye b65cdd0793 - use the same checks for zip_stat 2007-05-19 22:25:11 +00:00
Pierre Joye 26e22f34fa - #41423. PHP assumes wrongly that certain ciphers are enabled in OpenSSL 2007-05-19 22:05:08 +00:00
Ilia Alshanetsky b828d1939f Optimized digest generation in md5() and sha1() functions by using code
from ext/hash. This makes the functions 20-50% faster on short strings.
2007-05-19 20:30:35 +00:00
Michael Wallner a349109e42 - fix compile/linker agnostic runpath switch 2007-05-19 19:36:11 +00:00
Ilia Alshanetsky c009fc8915 CS fixes
Fixed a possible crash in the event directory cannot be created, due to a
double free.
2007-05-19 19:29:37 +00:00
Ilia Alshanetsky a3899eda3e Fixed typo in constant name 2007-05-19 18:40:27 +00:00
Ilia Alshanetsky c554031b24 Eliminate memory allocation in RINIT for spl 2007-05-19 18:32:35 +00:00
Ilia Alshanetsky 9db4812366 Remove pointless RINIT 2007-05-19 17:58:22 +00:00
Ilia Alshanetsky c8a694eb45 Avoid strlen() 2007-05-19 17:52:30 +00:00
Ilia Alshanetsky 2a6442190c Fixed test to work with postgresql 2007-05-19 15:28:37 +00:00
Antony Dovgal 0db4f06f13 MFH 2007-05-19 12:53:06 +00:00
Stanislav Malyshev 3dc920d4ea and now the right number 2007-05-19 08:10:52 +00:00
Stanislav Malyshev ff95fbd692 fix reference 2007-05-19 08:08:03 +00:00
Antony Dovgal 27dcd0e5fb reorder 2007-05-18 20:56:50 +00:00
Stanislav Malyshev 9955794367 news about #41401 2007-05-18 20:49:28 +00:00
Antony Dovgal 6434290092 fix test
add separate test for 64bit
2007-05-18 20:45:50 +00:00
Antony Dovgal 7e80ad9407 fix leak and check for < 0 only of the 5th arg was passed 2007-05-18 20:34:13 +00:00
Stanislav Malyshev cfedafff67 add test for 41401 2007-05-18 20:13:28 +00:00
Stanislav Malyshev bc2b546dcc fix #41401 - parser precedence on unary operators
# now 1/-2*5 is -2.5 as it should be
2007-05-18 18:36:04 +00:00
Dmitry Stogov 80d2409fd8 Improved compilation of heredocs and interpolated strings. (Matt, Dmitry) 2007-05-18 13:12:05 +00:00
Antony Dovgal 6d41d020df MFH: fix #41430 (Fatal error with negative values of maxlen parameter of file_get_contents()) 2007-05-18 12:06:44 +00:00
Antony Dovgal 4167b0a4ce BFN 2007-05-18 11:52:47 +00:00
Antony Dovgal d7b30e457a MFH: fix #41421 (Uncaught exception from a stream wrapper segfaults) 2007-05-18 11:52:08 +00:00
Antony Dovgal ff514e208e fix tests 2007-05-18 11:47:58 +00:00
Rasmus Lerdorf 7e5f0a8380 Get rid of a stray time() syscall in tsrm and clean up lcg rinit 2007-05-18 11:36:55 +00:00
Antony Dovgal ffd09c0961 fix tests 2007-05-18 11:29:55 +00:00
Nuno Lopes 83aba2c5b9 fix gcov build....... 2007-05-17 17:57:51 +00:00
Antony Dovgal 27c32bab35 news entry 2007-05-17 15:13:51 +00:00
Antony Dovgal ae49128df4 implement FR #41416 (getColumnMeta() should also return table name) 2007-05-17 15:12:23 +00:00
Hannes Magnusson 4ad45f6566 Fix paths for ext/sqlite 2007-05-17 13:40:12 +00:00
Antony Dovgal 4bd12c4673 fix test 2007-05-17 11:43:47 +00:00
Rasmus Lerdorf 52c2d6c235 Get rid of a useless RINIT and an empty RSHUTDOWN on non-Windows 2007-05-17 06:38:13 +00:00
Pierre Joye 85f738261f - fix title 2007-05-16 22:55:27 +00:00
Pierre Joye 7807477a87 - MFH: libgd #86: Fixed possible infinite loop in libgd/gd_png.c, fix test
(Reported by Xavier Roche)
2007-05-16 22:21:41 +00:00
Pierre Joye 587de83684 - MFH: libgd #86: Fixed possible infinite loop in libgd/gd_png.c
(Reported by Xavier Roche)
2007-05-16 22:19:08 +00:00
Michael Wallner a5ce18dd47 - BFN 2007-05-16 21:22:12 +00:00
Michael Wallner 6447c82454 - fixed bug #41358: configure cannot determine libcurl's SSL lib as of v7.16.2 2007-05-16 21:18:41 +00:00
Zoe Slattery 8f06575c23 Updated range() test 2007-05-16 21:07:33 +00:00
Ilia Alshanetsky 2b46d621e6 Upgraded libsqlite3 to SQLite 3.3 2007-05-16 21:04:46 +00:00
Ilia Alshanetsky 67032ecdf0 Make test work in sqlite 2007-05-16 21:03:46 +00:00
Antony Dovgal 5e7b464517 typofix 2007-05-16 20:04:32 +00:00
Ilia Alshanetsky 7cc5c04b47 news 2007-05-16 19:36:21 +00:00
Ilia Alshanetsky efd7846d34 [DOC] Added PDO::FETCH_KEY_PAIR mode that will fetch a 2 column result set
into an associated array.
2007-05-16 19:33:57 +00:00
Marcus Boerger bfbbe4110e - MFH Extensions are indexed lowercased and not case aware 2007-05-16 18:57:15 +00:00
Antony Dovgal 3a10e5c078 MFH: fix #41394 (dbase_create creates file with corrupted header) 2007-05-16 13:17:50 +00:00
Antony Dovgal 09a575a20f MFH: fix #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.') 2007-05-16 12:54:30 +00:00
Stanislav Malyshev 69650d0ebf do not send cookie when session is passed in URL, same as it happens with GET/POST 2007-05-16 01:18:14 +00:00
Antony Dovgal e72d044f9f fix tests 2007-05-15 14:25:21 +00:00
Scott MacVicar 55a3d5f8b1 MFH: Fixed bug #41390 (Clarify error message with invalid protocol scheme) 2007-05-15 13:04:43 +00:00
Antony Dovgal e5a556757e add the original author of the patch 2007-05-15 12:39:05 +00:00
Dmitry Stogov 633aff5541 Fixed bug #41378 (fastcgi protocol lacks support for Reason-Phrase in "Status:" header) 2007-05-15 08:17:08 +00:00
Ilia Alshanetsky 727109283d News file cleanup 2007-05-14 18:54:05 +00:00
Scott MacVicar 607467451d Prefix NEWS item so documentation team know of new function and typo from old parsing API spotted by bjori 2007-05-14 18:09:20 +00:00
Scott MacVicar ac38b635cb Add mysql_set_charset() so that the connection encoding can be changed. This is similar to the SET NAMES statement but allows the mysql_real_escape_string to use the correct character set. 2007-05-14 17:10:47 +00:00
Antony Dovgal a640896685 fix test 2007-05-14 16:18:02 +00:00
Antony Dovgal d85fc29edf MFH 2007-05-14 12:19:34 +00:00
Rob Richards 7d3c91bed3 free wholetext properly 2007-05-14 11:52:35 +00:00
Rob Richards 82dc0875cb BFN 2007-05-14 11:45:38 +00:00
Rob Richards f42784219a Fixed bug #41374 (wholetext concats values of wrong nodes).
add test
2007-05-14 11:44:15 +00:00
Antony Dovgal 725260ea0f fix CS 2007-05-14 11:33:34 +00:00
Antony Dovgal 2274c18cc6 remove floats, their text representation varies depending on many factors 2007-05-14 11:10:30 +00:00
Antony Dovgal 9100e9efde add 64bit tests 2007-05-14 11:04:30 +00:00
Antony Dovgal 83df9beca2 fix precision 2007-05-14 11:04:08 +00:00
Antony Dovgal b33de5d0aa fix tests - make them 32bit only, 64bit version will be later
add --INI-- section
remove recursive arrays, that thing should be in a separate test
2007-05-14 10:57:04 +00:00
Pierre Joye 19d1d24d60 - [@DOC] MFH: #41326, better fix. It restores BC and allows both canonical
and short form:
  - when $content is given, the closing tag will be generated (even for empty
  string)
  - when $content is ignored or NULL is given, the short form will be used
2007-05-14 09:23:49 +00:00
Ilia Alshanetsky f752fd4836 Fixed bug #41353 (crash in openssl_pkcs12_read() on invalid input). 2007-05-13 17:37:32 +00:00
Hannes Magnusson 909894682d MFH: bug#41361 (shell_exec() does not find binaries) 2007-05-12 16:06:46 +00:00
Raghubansh Kumar c5c162d182 New version of debug_zval_dump_b.phpt, is_array.phpt, is_null.phpt, is_string.phpt, debug_zval_dump_e.phpt, is_bool.phpt, is_numeric.phpt, print_r.phpt, debug_zval_dump_o.phpt, is_float.phpt is_object.phpt, strval.phpt,
debug_zval_dump_v.phpt, is_int.phpt, is_scalar.phpt, var_dump.phpt
2007-05-12 10:28:00 +00:00
Raghubansh Kumar 3a97c49489 New version of addcslashes.phpt, md5_file.phpt, str_replace.phpt, substr.phpt, chr_ord.phpt, strpos.phpt, strstr.phpt, trim1.phpt, implode1.phpt, str_repeat.phpt, substr_count.phpt 2007-05-12 10:15:02 +00:00
Raghubansh Kumar 42ae6b508e New version of 005.phpt, array_change_key_case.phpt, array_key_exists.phpt, array_keys.phpt, array_map.phpt, array_pop.phpt, array_search.phpt, array_values.phpt, each.phpt, end.phpt, extract.phpt 2007-05-12 09:53:30 +00:00
Raghubansh Kumar 02dd014013 New version of 009.phpt 2007-05-12 09:50:40 +00:00
Antony Dovgal bc25fc52bf MFH: remove warnings in resource dtor 2007-05-11 15:46:38 +00:00
Antony Dovgal 2b229635c2 BFN 2007-05-11 12:22:00 +00:00
Antony Dovgal c8cfd3b99a MFH: fix #41134 (zend_ts_hash_clean not thread-safe)
fix also zend_ts_hash_*destroy()
2007-05-11 12:21:26 +00:00
Antony Dovgal c1e84f1fff BFN 2007-05-11 09:39:49 +00:00
Antony Dovgal 756f3f60ca MFH: fix #41351 (Invalid opcode with foreach ($a[] as $b)) 2007-05-11 09:39:36 +00:00
Dmitry Stogov d2fe65c191 Fixed bug #39542 (Behaviour of require/include different to < 5.2.0) 2007-05-11 08:02:43 +00:00
Marcus Boerger 93583f9680 - MFH Add invert option to RegexIterator 2007-05-11 00:15:25 +00:00
Antony Dovgal 8de1ecef64 MFH: fix segfault in strripos() when offset == INT_MAX+1
identified and repoted by Joxean Koret
2007-05-10 22:10:43 +00:00
Antony Dovgal 5d8567b83b %d -> %ld 2007-05-10 21:52:10 +00:00
Ilia Alshanetsky 51e0891f0b Fixed random number generation for http auth mechanism in SOAP
# Identified by Stefan Esser
2007-05-10 21:05:14 +00:00
Hannes Magnusson 63c11738f8 use php_strtok_r() rather than strsep()
# Fixes build on, for instance, solaris
2007-05-10 19:48:30 +00:00
Antony Dovgal 7efde494d7 MFH: flush output buffer when/if highlight_string()/php_strip_whitespace()/highlight_string() fail 2007-05-10 16:28:11 +00:00
Dmitry Stogov 6e8438633b Fixed bug #41291 (FastCGI does not set SO_REUSEADDR). (fmajid at kefta dot com) 2007-05-10 15:21:02 +00:00
Dmitry Stogov fb045249e5 Fixed bug #41337 (WSDL parsing doesn't ignore non soap bindings) 2007-05-10 14:58:17 +00:00
Scott MacVicar e7577d57cd Fixed bug #41347 (checkdnsrr() segfaults on empty hostname). 2007-05-10 13:16:54 +00:00
Antony Dovgal c69b76dc52 MFH: fix segfault in iptcembed() 2007-05-10 12:23:25 +00:00
Antony Dovgal f9f456a9cd MFH: bcmath.scale must be greater or equal to zero 2007-05-10 09:53:36 +00:00
Ilia Alshanetsky 6df5384610 Fixed a typo 2007-05-09 23:59:06 +00:00
Pierre Joye 223cfe342f - MFH: #41326, Writing empty tags with Xmlwriter::WriteElement[ns] 2007-05-08 21:41:36 +00:00
Ilia Alshanetsky 75b5ce3b8d Fixed bug #41321 (downgrade read errors in getimagesize() to E_NOTICE). 2007-05-08 18:38:20 +00:00
Dmitry Stogov eec0b67cd8 Fixed bug #41304 (compress.zlib temp files left) 2007-05-08 12:08:17 +00:00
Ilia Alshanetsky 420352d8b5 Register RAW_POST_DATA even when always_populate_raw_post_data is off in
instances where content type is not known
2007-05-07 23:27:59 +00:00
Antony Dovgal c25a2f6cd2 fix tests (add precision) 2007-05-07 22:41:30 +00:00
Antony Dovgal 3a46e8ab1f fix tests 2007-05-07 22:30:16 +00:00
Antony Dovgal 56a27267f3 fix tests 2007-05-07 22:10:14 +00:00
Antony Dovgal c2c4fe75e1 fix test 2007-05-07 21:38:42 +00:00
Ilia Alshanetsky 9b661ea62e Fixed SOAP tests and added additional tests to ensure processing POST data
works based on server001.phpt
2007-05-07 18:45:03 +00:00
Ilia Alshanetsky 146a600711 Added support for --GZIP_POST-- and --DEFLATE_POST-- that allows emulation
of compressed POST input
2007-05-07 18:40:33 +00:00
Antony Dovgal 1f65545121 fix test names 2007-05-07 18:03:01 +00:00
Antony Dovgal b64823deb7 fix test names 2007-05-07 17:54:12 +00:00
Nuno Lopes 877b7c7ea7 fix test title 2007-05-07 15:23:53 +00:00
Pierre Joye 4a8e75b990 - MFH: fix build when use with a museum freetype version (1.x) 2007-05-07 14:54:36 +00:00
Antony Dovgal fa14b60e68 add 64bit version of the tests 2007-05-07 14:00:40 +00:00
Antony Dovgal 8f70937bec fix tests 2007-05-07 12:09:14 +00:00
Antony Dovgal f0dbacb715 fix test 2007-05-07 08:25:12 +00:00
Ilia Alshanetsky 0a63bd4d0b Allow SOAP extension's handler() to work even when
always_populate_raw_post_data is off.

# Tests will be updated in the next few days
2007-05-06 17:21:13 +00:00
Ilia Alshanetsky f932fe5ad4 Fixed bug #41293 (Fixed creation of HTTP_RAW_POST_DATA when there is no
default post handler).
2007-05-06 16:34:14 +00:00
Ilia Alshanetsky 636806a869 Added HTTP_RAW_POST_DATA test for instances where post length exceeds
post_max_size.
2007-05-06 16:30:09 +00:00
Ilia Alshanetsky 468dc98961 Added $HTTP_RAW_POST_DATA test 2007-05-06 16:26:11 +00:00
Ilia Alshanetsky accdf2c64c Clarify bug fix details 2007-05-06 15:37:07 +00:00
Hannes Magnusson 448dbac84f MFH: Fixed PHP CLI to use the php.ini from the binary location 2007-05-06 14:01:26 +00:00
Hannes Magnusson 1d2c53b249 Fix test 2007-05-06 13:11:31 +00:00
Johannes Schlüter 9edf1dc617 - MFH: Fix build without reflection 2007-05-06 12:57:50 +00:00
Antony Dovgal 3000c0be66 fix tests, add more 2007-05-05 21:44:52 +00:00
foobar 0d5a13ddda MFH 2007-05-05 19:26:39 +00:00
Marcus Boerger 3cd6bc54bc - MFH --ri does not require ext/Reflection
- MFH --ini to show ini files being used
2007-05-05 16:21:07 +00:00
Ilia Alshanetsky 502d68e1e7 Fixed bug #41285 (Improved fix for CVE-2007-1887 to work with non-bundled
sqlite2 lib).
2007-05-05 15:36:15 +00:00
Ilia Alshanetsky c70105610a Fixed bug #41283 (Bug with serializing array key that are doubles or
floats).
2007-05-05 15:14:56 +00:00
Antony Dovgal 9fd3c30f94 MFH 2007-05-04 22:32:57 +00:00
foobar 3f6cb452ee MFH:- Prevent bugs like #41265 being submitted from now on. 2007-05-04 21:57:47 +00:00
Rob Richards cde4621907 BFN 2007-05-04 20:18:51 +00:00
Rob Richards 78ccf4e0c2 Fix bug #41287 (Namespace functions don't allow xmlns to be optional)
add test
2007-05-04 20:16:39 +00:00
Rob Richards 3585581412 BFN 2007-05-04 19:32:53 +00:00
Rob Richards 24434e7ba2 fix bug #41257 (lookupNamespaceURI does not work as expected)
fix related issue in isDefaultNamespace
add test
reconcile namespaces when setting attribute in a new namespace
2007-05-04 19:30:59 +00:00
Edin Kadribasic 567c9daeae Update Apache 2 libs to 2.0.59 on the build box and standardize the dirs 2007-05-04 18:17:55 +00:00
Nuno Lopes b8fbcae5b3 get ride of warnings (different signdess) 2007-05-04 17:11:05 +00:00
Antony Dovgal b1b4b0a6a7 fix comments 2007-05-04 16:19:57 +00:00
Antony Dovgal 3f8c011a9a add tests 2007-05-04 12:46:18 +00:00
Antony Dovgal dadbd426c4 MFH 2007-05-04 11:30:37 +00:00
Antony Dovgal 803e6f5887 MFH 2007-05-04 09:05:32 +00:00
Antony Dovgal 1d6fea0e55 MFH 2007-05-04 08:27:33 +00:00
Dmitry Stogov 97b338afe5 - Fixed bug #41097 (ext/soap returning associative array as indexed without
using WSDL).
- Fixed bug #41004 (minOccurs="0" and null class member variable).
2007-05-04 06:19:34 +00:00
Dmitry Stogov d8ce0568ef Fixed altering $this via argument named "this" 2007-05-04 06:18:53 +00:00
Ilia Alshanetsky cd32cab680 Fixed ext/filter Email Validation Vulnerability
(MOPB-24 by Stefan Esser)
2007-05-03 23:38:27 +00:00
Johannes Schlüter f50ec4ea53 - MFH: Fix skipif 2007-05-03 12:44:48 +00:00
Antony Dovgal 0a92fdba8a improve test 2007-05-03 12:10:11 +00:00
Edin Kadribasic ee593ef3b1 Fix Windows Build 2007-05-03 04:16:32 +00:00
Ilia Alshanetsky a64c73121d Back to dev 2007-05-03 01:16:50 +00:00
Ilia Alshanetsky 0f474f9474 5.2.2 2007-05-02 23:05:14 +00:00
Dmitry Stogov df61bae636 Reverted the following fixed because of php-5.2.2 release process
- Fixed altering $this via argument named "this".
- Fixed bug #41097 (ext/soap returning associative array as indexed without
  using WSDL).
- Fixed bug #41004 (minOccurs="0" and null class member variable).
2007-05-02 17:24:16 +00:00
Antony Dovgal fca80f63fb add SKIPIF section 2007-05-02 15:41:22 +00:00
Antony Dovgal e03eadf633 MFH: add USE_ZEND_ALLOC env var 2007-05-02 15:41:06 +00:00
Dmitry Stogov 688cc5039a Fixed altering $this via argument named "this" 2007-05-02 13:21:55 +00:00
Dmitry Stogov c327dec913 Fixed bug #41192 (Per Directory Values only work for one key) 2007-05-02 10:16:34 +00:00
Dmitry Stogov 101a0f08ce Fixed bug #41004 (minOccurs="0" and null class member variable) 2007-05-02 09:38:12 +00:00
Dmitry Stogov 4b7999cd0b New test 2007-05-02 08:35:17 +00:00
Dmitry Stogov 3721cb9d8d Fixed bug #41097 (ext/soap returning associative array as indexed without using WSDL) 2007-05-02 08:22:13 +00:00
Dmitry Stogov f409fcd02a Fixed test 2007-05-02 07:27:36 +00:00
Ilia Alshanetsky 01b0f9d44d Removed completed TODO items 2007-05-01 23:04:30 +00:00
Derick Rethans 047ccbc0c2 - MFH: Added test case for bug #41252. 2007-05-01 16:04:33 +00:00
Ilia Alshanetsky e0cab44595 Remove quotes 2007-05-01 00:05:39 +00:00
Antony Dovgal 96964359af MFH: initialize optional params 2007-04-30 21:40:02 +00:00
Johannes Schlüter c52e519bc0 BFN 2007-04-30 20:01:16 +00:00
Johannes Schlüter e181e3ac7b - MFH Fix "f" modifier for zend_parse_parameters_ex in case of a __call call
# only affects iterator_apply() in 5_2 branch
2007-04-30 19:54:41 +00:00
Edin Kadribasic 618e172ec8 Sync correctly with configure.in 2007-04-30 16:18:06 +00:00
Edin Kadribasic 7bcf3ef165 Sync with zlib 2007-04-29 17:47:31 +00:00
Ilia Alshanetsky 7810fc89fa Fixed bug #41215 (setAttribute return code reversed). 2007-04-29 14:47:34 +00:00
foobar e878249669 typofix..and exactly HOW or WHAT in commandline handling was fixed? 2007-04-29 00:45:23 +00:00
foobar 1d7d3a4307 - Updated credits 2007-04-29 00:43:11 +00:00
Antony Dovgal c3b9d939e0 add new tests 2007-04-28 11:59:08 +00:00
Antony Dovgal 70e6d3d042 add new tests 2007-04-27 21:33:02 +00:00
Edin Kadribasic 9b1de77959 Sync with configure.in 2007-04-27 20:54:47 +00:00
Antony Dovgal a6cd2b4cec MFH: improve the tests 2007-04-27 11:43:45 +00:00
Antony Dovgal de4f3007e2 MFH: initialize retval_ptr_ptr before returning FAILURE
this fixes invalid read in #41209
2007-04-27 08:12:24 +00:00
Uwe Schindler 88bef568da MFH: Fix crash on server startup when log message is printed 2007-04-27 00:29:26 +00:00
Antony Dovgal 66859a74de fix tests 2007-04-26 23:30:00 +00:00
Antony Dovgal ef32c956f7 MFH 2007-04-26 23:13:25 +00:00
Ilia Alshanetsky bd7e78c48b Back to dev 2007-04-26 22:44:53 +00:00
Ilia Alshanetsky cc8ea13d5b 5.2.2RC2 2007-04-26 22:39:10 +00:00
Antony Dovgal 3c6d2617e7 MFH: fix build on Tru64 2007-04-26 19:08:58 +00:00
Antony Dovgal 3e7b4e5d1a MFH: add test & GMP_VERSION constant
do not allow zero operand in gmp_divexact()
2007-04-26 13:44:02 +00:00
Dmitry Stogov 69cfe50f74 Prevent double close() of the same file handle 2007-04-26 12:52:58 +00:00
Ilia Alshanetsky 6a6ae2f713 Update TODO: filter extension was added 2007-04-25 18:22:43 +00:00
Dmitry Stogov 4bd17132b1 ZTS fix 2007-04-25 14:18:01 +00:00
Antony Dovgal 41896020ea fix ZTS build 2007-04-25 11:05:16 +00:00
Hannes Magnusson 42170968cf MFH: php --ri main 2007-04-25 09:56:29 +00:00
Dmitry Stogov 8464abe22e Fixed crashes because of SAPI handlers overrding from inside of dl()-ed extensions 2007-04-25 08:40:07 +00:00
Ilia Alshanetsky af7a7a4e36 Fixed error message to reflect the check 2007-04-24 14:11:28 +00:00
Ilia Alshanetsky bc9f8f582c Fixed bug #41175 (addAttribute() fails to add an attribute with an empty
value).
2007-04-24 13:54:59 +00:00
foobar c8925ba493 - fix compile warning 2007-04-24 12:51:22 +00:00
Johannes Schlüter 3d7dd44ceb - MFH: Add my name (sync to CREDITS file) 2007-04-23 20:54:22 +00:00
Hannes Magnusson 5eb0037584 MFH: Plug leak when trying to write via the http wrapper 2007-04-23 16:37:28 +00:00
Ilia Alshanetsky 0e9abe13d1 Bug fixing news 2007-04-23 15:23:37 +00:00
Scott MacVicar 65408b1520 MFH: Fixed bug #40130 (TTF usage doesn't work properly under Netware). 2007-04-23 15:17:47 +00:00
Antony Dovgal b316a030aa MFH: add CURLOPT_FTP_CREATE_MISSING_DIRS 2007-04-23 14:36:56 +00:00
Ilia Alshanetsky cde610e5f0 Order by bug id 2007-04-23 14:17:52 +00:00
Antony Dovgal ea7f23b053 MFH 2007-04-23 11:19:15 +00:00
Antony Dovgal a10cd19d05 MFH: fix long options 2007-04-23 11:05:16 +00:00
Antony Dovgal 6a73be6329 fix folding 2007-04-23 10:05:33 +00:00
Dmitry Stogov 2a689a4267 64-bit support 2007-04-23 09:56:56 +00:00
Dmitry Stogov b1aea75ac1 WIN64 support 2007-04-23 09:56:30 +00:00
Antony Dovgal 5340a509f4 revert 2007-04-23 09:32:44 +00:00
Antony Dovgal a06d3b7bf3 revert 2007-04-23 09:27:07 +00:00
Antony Dovgal ba5798cb4d BFN 2007-04-22 21:33:32 +00:00
Antony Dovgal f6cef916bc MFH: fix #41118 (PHP does not handle overflow of octal integers) 2007-04-22 21:33:10 +00:00
Marcus Boerger e910699347 - MFH Update docu 2007-04-22 17:13:52 +00:00
Marcus Boerger d82779ec26 - BFN 2007-04-22 15:33:43 +00:00
Marcus Boerger f62d5c9adf - MFH getopt fixes 2007-04-22 15:31:16 +00:00
Ilia Alshanetsky 0369b693b4 Fixed bug #41159 (mysql_pconnect() hash does not account for connect
flags).
2007-04-22 15:19:08 +00:00
Dmitry Stogov 6a8b3db8bc Fixed buffer overflow 2007-04-22 10:25:18 +00:00
Dmitry Stogov 1f8f38e653 Fixed test 2007-04-22 08:37:38 +00:00
Antony Dovgal d66080d6f0 make this test 32bit only 2007-04-20 16:14:37 +00:00
Nuno Lopes 0f99cf14c1 fix gcov build 2007-04-20 14:51:16 +00:00
Nuno Lopes b6fac40b3a update install instructions (auto-generated from phpdoc XML sources) 2007-04-20 14:13:47 +00:00
Antony Dovgal cb81428054 apply correct fix 2007-04-20 10:16:46 +00:00
Antony Dovgal 8deb6294ec fix test 2007-04-20 10:15:04 +00:00
Antony Dovgal 60e1a548ff new test 2007-04-20 09:17:46 +00:00
Antony Dovgal d5dc7cbf63 MFH 2007-04-20 08:18:42 +00:00
Antony Dovgal 157ba803c6 fix test 2007-04-20 08:00:52 +00:00
Antony Dovgal 18af8baa44 MFH 2007-04-20 07:55:21 +00:00
Ilia Alshanetsky c34806e145 Fixed bug #41121 (range() overflow handling for large numbers on 32bit
machines).
2007-04-19 23:21:22 +00:00
Andrey Hristov 73da9ea31d Hmm, the right place to edit 2007-04-19 09:49:28 +00:00
Andrey Hristov 0a9360b16c Update credits 2007-04-19 09:46:54 +00:00
Antony Dovgal 9ad2c80c62 fix double-to-string conversion utils 2007-04-19 09:30:49 +00:00
Dmitry Stogov 52a9667c3a Fixed tests 2007-04-19 07:00:41 +00:00
Sascha Schumann 73cc55a070 - fix vpath build 2007-04-19 06:42:28 +00:00
Ilia Alshanetsky 111df261a5 Upgraded SQLite 3 to version 3.3.16 2007-04-18 22:53:46 +00:00
Antony Dovgal 6a0efe0b7d new tests for ext/gmp 2007-04-18 21:04:21 +00:00
Antony Dovgal 8aa441b9b8 MFH 2007-04-18 20:53:28 +00:00
Antony Dovgal efcb227198 MFH 2007-04-18 20:36:54 +00:00
Dmitry Stogov b2785c3d4c Fixed tests (win32) 2007-04-18 14:51:29 +00:00
Dmitry Stogov 41d27878de Fixed crash on win32 in case of negative size 2007-04-18 14:23:06 +00:00
Dmitry Stogov 02ee91dbb4 Fixed crash 2007-04-18 13:53:19 +00:00
Dmitry Stogov 72e7bfdedf Fixed endless loop in open_basedir check 2007-04-18 11:58:40 +00:00
Antony Dovgal 93dd417180 update to reflect current status 2007-04-18 10:58:41 +00:00
Rob Richards b6b312c020 add file locking under windows
change win build to use common clock compat files
2007-04-18 09:38:59 +00:00
Antony Dovgal bb489851e9 win32 test fixes 2007-04-18 08:06:29 +00:00
Dmitry Stogov 1d56aa095a Fixed tests (win32) 2007-04-18 07:55:52 +00:00
Antony Dovgal 16129b7024 MFH: fix putenv("var") (i.e. unset) on BSD systems
add test
2007-04-17 20:34:14 +00:00
Antony Dovgal 695e81c2cc fix test 2007-04-17 20:17:25 +00:00
foobar 4f54b301ef - Fix a possible leak when multiple -c parameters are used 2007-04-17 20:00:53 +00:00
Antony Dovgal 1668daa621 add .cvsignore 2007-04-17 20:00:03 +00:00
Antony Dovgal a0370cd797 add tests for CGI 2007-04-17 19:49:26 +00:00
foobar 75d8d28e71 - Fix a possible leak when multiple -c parameters are used 2007-04-17 19:46:13 +00:00
Antony Dovgal 44066f23b7 MFH: fix leak appearing when more than one -f option specified 2007-04-17 18:51:34 +00:00
Antony Dovgal 9ab23a7e53 fix leaks in row_get_properties()
thanks to Kellen Bombardier for noticing
2007-04-17 17:00:16 +00:00
Hannes Magnusson 8edb601981 Fix proto 2007-04-17 15:44:23 +00:00
Pierre Joye 8eb8ae051b - INFO_EX not INFO 2007-04-17 15:39:19 +00:00
Pierre Joye 2f4c6acfc8 - imagegrab* entry 2007-04-17 15:33:57 +00:00
Pierre Joye 569e8596af - MFH: add imagegrabwindow and imagegrabscreen (win32 only) [DOC]
capture a window using its handle or a full screen
2007-04-17 15:31:45 +00:00
Ilia Alshanetsky 1e0f6fe5bb Separate parm zval. 2007-04-17 15:29:13 +00:00
Ilia Alshanetsky 843d0d58a0 Fixed bug #41093 (magic_quotes_gpc ignores first arrays keys). 2007-04-17 15:06:50 +00:00
Marcus Boerger 170af7e861 - MFH Fix #41109: recursiveiterator.inc says 'implements' Iterator instead of 'extends' 2007-04-17 06:33:50 +00:00
Dmitry Stogov c60eee7046 typo 2007-04-17 06:26:32 +00:00
Ilia Alshanetsky 8b245e5aaf Fixed bug #41067 (json_encode() problem with UTF-16 input). 2007-04-16 22:31:05 +00:00
foobar 8f845b705b - Updated bundled shtool to 2.0.6 and added "platform" command in it. 2007-04-16 20:49:33 +00:00
Antony Dovgal 7a6e0a1dd2 fix test 2007-04-16 09:11:10 +00:00
Antony Dovgal e83f375c2f fix test 2007-04-16 08:14:33 +00:00
Dmitry Stogov e1814f0dbe WIN64 support 2007-04-16 08:09:56 +00:00
Brian Shire f088268f91 fix fold typo 2007-04-16 02:25:24 +00:00
foobar 2fe7267d53 MFH: Simplify previous patch. 2007-04-15 23:06:08 +00:00
foobar a40b6f5c4f - Allow using syntax highlighting under FastCGI mode. 2007-04-15 22:52:07 +00:00
foobar c71b1401ff - Synch these files from sapi/cli/ and allow using s.c. long-options
with CGI.
2007-04-15 22:50:58 +00:00
Ilia Alshanetsky 2f3e330ad0 Fixed bug #40935 (pdo_mysql does not raise an exception on empty
fetchAll()).
2007-04-15 16:50:42 +00:00
Pierre Joye 42429cadea - add reference to the initial report (helps the packager) 2007-04-14 17:39:13 +00:00
Pierre Joye ffaaaa4df0 - MFH: libgd #74, gdImageFilledArc, huge CPU usage with large angles 2007-04-14 17:33:15 +00:00
Marcus Boerger a4bf33f02d - MFH Fix warning 2007-04-14 11:15:13 +00:00
Antony Dovgal 85fe8e9663 MFH 2007-04-14 10:35:05 +00:00
Antony Dovgal 07435262b9 MFH: fix #41083 (mysql_ping() requires MYSQL_OPT_RECONNECT to be set since MySQL 5.0.13) 2007-04-14 10:19:19 +00:00
Andrei Zmievski b62d120580 Fix processing of control characters; they should be escaped as \u
sequences.
2007-04-13 21:34:12 +00:00
Derick Rethans bcd72ca5a3 - Updated timezone database to version 2007.5. (Derick) 2007-04-13 14:51:40 +00:00
Antony Dovgal 7d92fba759 BFN 2007-04-13 14:41:57 +00:00
Antony Dovgal bb0def99a8 fix #41075 (memleak when creating default object caused exception) 2007-04-13 14:41:36 +00:00
Derick Rethans 35d5a196bd - Fixed bug #39416 (Milliseconds in date()). 2007-04-13 14:09:20 +00:00
Antony Dovgal d3df2eb468 add new test 2007-04-13 13:37:17 +00:00
Antony Dovgal 61a3b763d8 fix tests 2007-04-13 12:29:32 +00:00
Derick Rethans 2e18eb3858 - Fixed bug #39965 (Latitude and longitude are backwards in date_sun_info()). 2007-04-13 08:33:48 +00:00
Derick Rethans d62dca3d48 - Fixed bug #40290 (strtotime() returns unexpected result with particular
timezone offset).
2007-04-13 08:11:07 +00:00
Brian Shire e7d68b8373 reverting incorrect changes to pack test
# only a problem on darwin, latest gcc-4.2 branch works as expected.
2007-04-13 02:15:07 +00:00
Antony Dovgal 73aa351741 MFH: add support for %I64(u|d) to sprintf() utilities 2007-04-12 22:01:20 +00:00
Ilia Alshanetsky a133297c86 Fixed bug #41034 (json_encode() ignores null byte started keys in arrays) 2007-04-12 19:40:38 +00:00
Johannes Schlüter bbcd8c5b69 - Fix bug #41061 ("visibility error" in ReflectionFunction::export()) 2007-04-12 18:39:46 +00:00
Dmitry Stogov 9f2022743b Fixed bug #41063 (chdir doesn't like root paths). 2007-04-12 15:28:58 +00:00
Antony Dovgal d1a190beea MFH 2007-04-12 12:31:39 +00:00
Antony Dovgal c668dc0a26 add missing SKIPIF sections 2007-04-12 12:29:48 +00:00
Antony Dovgal 9788d96b0c add new test 2007-04-12 12:23:30 +00:00
Antony Dovgal ad9b50ae1f MFH 2007-04-12 10:25:15 +00:00
Antony Dovgal 8d20caa848 minor improvement 2007-04-11 22:34:48 +00:00
Antony Dovgal e972fc1797 improve test 2007-04-11 22:29:53 +00:00
Ilia Alshanetsky 9ba1328702 Don't define KEY_END twice 2007-04-11 22:19:11 +00:00
Georg Richter ebdffa5ed9 added support for HOME and END key 2007-04-11 18:37:15 +00:00
Antony Dovgal a8c1bb45b4 MFH 2007-04-11 16:03:06 +00:00
Derick Rethans b15cbf69c6 - MFH: Fixed bug #40861 (strtotime() doesn't handle double negative relative
time units correctly).
2007-04-11 14:37:42 +00:00
Pierre Joye 737a66e83c - add HAVE_GD_FONTCACHESHUTDOWN to w32 build script (always here) 2007-04-11 11:44:20 +00:00
Ilia Alshanetsky 9005e996f1 Back to dev 2007-04-10 22:38:47 +00:00
Ilia Alshanetsky ba5e5fe4ed 5.2.2RC1 2007-04-10 22:31:16 +00:00
Antony Dovgal 19aa4a932f fix #40931 (open_basedir bypass via symlink and move_uploaded_file()) 2007-04-10 22:30:07 +00:00
Antony Dovgal e145f1aa2a skip test if openssl is present 2007-04-10 21:38:20 +00:00
Antony Dovgal 5f48fbb4da skip this test on MacOS 2007-04-10 21:20:44 +00:00
Antony Dovgal 903155d504 fix test name 2007-04-10 21:16:56 +00:00
Antony Dovgal ab84306fc7 fix #41043 (pdo_oci crash when freeing error text with persistent connection) 2007-04-10 20:28:49 +00:00
Marcus Boerger 5447fca028 - WS/CS 2007-04-10 15:56:31 +00:00
Marcus Boerger b15d742639 - Cleanup the cleanup 2007-04-10 15:50:34 +00:00
Antony Dovgal cf440194b0 declare THREADSAFE explicitly (it's On if undefined) 2007-04-10 11:32:48 +00:00
foobar 26761c4222 - Fixed ZEND_SIGNED_MULTIPLY_LONG() so that ext/filter/tests/046.phpt wont fail. (Integer overflow) 2007-04-10 10:57:35 +00:00
Antony Dovgal 3aaf8bbdb7 fix test 2007-04-10 10:49:16 +00:00
Antony Dovgal 562f886ecb MFH: fix #41037 (unregister_tick_function() inside the tick function crash PHP) 2007-04-10 09:37:09 +00:00
Dmitry Stogov 08daab9d1c Initial WIN64 support 2007-04-10 06:22:28 +00:00
Antony Dovgal c61cbbdc9f fix folding tags 2007-04-09 21:19:38 +00:00
foobar 191b843a02 Fix test 2007-04-09 20:07:25 +00:00
Ilia Alshanetsky eb8d30f912 Upgrade libsqlite 3 inside PDO sqlite to version 3.3.15 2007-04-09 16:35:11 +00:00
Dmitry Stogov 857f992cd3 Removed wrong size_t definition 2007-04-09 15:39:59 +00:00
Dmitry Stogov 4de76f02ea Fixed 64-bit support 2007-04-09 15:38:58 +00:00
Dmitry Stogov 1b01048cd8 Fixed 64-bit issues 2007-04-09 15:32:35 +00:00
Dmitry Stogov 6c394c8b38 ZTS fix 2007-04-09 15:32:08 +00:00
Antony Dovgal 383c7fe437 BFN 2007-04-09 07:30:26 +00:00
Antony Dovgal b2e2994a6e fix #41026 (segfault when calling "self::method()" in shutdown functions) 2007-04-09 07:30:09 +00:00
Ilia Alshanetsky 65afdf097c Fixed bug #40822 (pdo_mysql does not return rowCount() on select). 2007-04-08 15:26:21 +00:00
Johannes Schlüter 8591b20d4e - MFH: Added linenumbers to array returned by token_get_all() 2007-04-08 00:18:38 +00:00
Antony Dovgal d428314e2d MFB: clean & refactored disk_*() funcs implementation
Ilia, feel free to make these functions public, though I don't see why would want to do that
2007-04-06 22:10:56 +00:00
Antony Dovgal f2f885c023 fix test 2007-04-06 19:35:12 +00:00
Andrei Zmievski da4ba85cb4 We can't use the printf attribute here since we are supporting
non-standard formats (like 'F').
2007-04-06 19:25:52 +00:00
Andrei Zmievski fb2def7d97 Apologies. Didn't realize we were using custom snprintf(). 2007-04-06 18:27:58 +00:00
Andrei Zmievski 8a1f346162 Typo? 2007-04-06 18:25:49 +00:00
Marcus Boerger 515f4f6e6f - Fix 40442 2007-04-06 17:57:10 +00:00
Marcus Boerger 0ec117146e - Add bug name 2007-04-06 17:54:22 +00:00
Marcus Boerger b08cfa8833 - Better fix for #40091 2007-04-06 16:00:08 +00:00
Pierre Joye 17eaaea1f7 - Fix windows mutex intialization, add HAVE_GD_FONTMUTEX and HAVE_LIBFREETYPE
to config.w32 (Thanks to Frank for the report)
2007-04-06 15:38:35 +00:00
Marcus Boerger 63d8f70206 - Fix #40442 2007-04-06 15:32:30 +00:00
Ilia Alshanetsky aa18505f34 Avoid locks when appening to the error log file 2007-04-06 13:58:48 +00:00
Ilia Alshanetsky d9adb6715f Fixed foreach by-ref bug.
# Patch from Brian Shire
2007-04-05 23:48:43 +00:00
Marcus Boerger 9c5ea420ac - MFH zend_info_call_*() stuff, fixes coverity issue #328, noticed by tony 2007-04-05 19:49:42 +00:00
Rob Richards 3530b8a2c6 fix win32 build 2007-04-05 18:08:42 +00:00
Pierre Joye 12b66657d7 - reflect the "real" version to avoid confusions. Users should really use
only the bundled version
2007-04-05 11:57:57 +00:00
Pierre Joye e3bc12631b - MFB: import the right data 005_crt.txt 2007-04-05 09:38:45 +00:00
Antony Dovgal 70cd86420b MFH: fix build 2007-04-05 09:33:10 +00:00
Pierre Joye 1ace1904e4 - MFH: add missing data for 005.phpt 2007-04-05 09:00:07 +00:00
Antony Dovgal e0318e21fb fix test 2007-04-05 07:23:56 +00:00
Antony Dovgal 90a277d0ce fix ZTS build 2007-04-05 07:10:07 +00:00
Ilia Alshanetsky ed0f0e4a67 Fixed bug #40999 (mcrypt_create_iv() not using random seed). 2007-04-05 01:48:56 +00:00
Pierre Joye 6e5875b025 - nuke c++ comments 2007-04-04 22:00:51 +00:00
Pierre Joye b7fde2caa7 - #39867 and openssl MB fix 2007-04-04 21:27:55 +00:00
Pierre Joye d4fb0108bc - implement #39867, PKCS#12 support
- Fix possible multibyte issues issue in the add_assoc function
- add test for openssl_csr_get_subject
2007-04-04 21:24:01 +00:00
Pierre Joye 2a2fd69fbf - filter and gd entries 2007-04-04 21:01:51 +00:00
Pierre Joye 2caba30962 - #40947, allow a single filter as argument for filter_var_array 2007-04-04 20:50:26 +00:00
Antony Dovgal 39f9184fa6 MFH: fix #40998 (long session array keys are truncated) 2007-04-04 19:52:19 +00:00
Seiji Masugata febad95f3f Sync with mail function in mb_send_mail function(problem MOPB-33-2007:PHP and MOPB-34-2007:PHP). 2007-04-04 15:25:41 +00:00
Nuno Lopes 5833fc40dc fix race condition on font cache shutdown 2007-04-04 14:24:03 +00:00
Pierre Joye 539be2cc81 - do not try to use the global color map when none was found (Nuno, Pierre)
- free im on error
2007-04-04 11:40:11 +00:00
Antony Dovgal e07b83afb2 MFH: fix leak on error 2007-04-04 10:44:55 +00:00
Pierre Joye 89ad25f1af - MFH: don't declare MSHUTDOWN if both cachesetup and t1lib are not used 2007-04-04 01:58:24 +00:00
Pierre Joye e4749c609c - Sync with gd 2.0.35 (bug #52, #60 and #66)
- Improve TS of gif loading code (Roman Nemecek, Nuno, Pierre)
 - a frame size must be confined to the screen defition (Pierre)
 - be sure to always read the dimensions in the frame and does not use
   the screen size (see #66 for a side effect) (Pierre)
- Update #37360 test. The frame does not fit the logical screen (specs
  tell that it must fit) (Pierre)
2007-04-04 01:34:50 +00:00
Pierre Joye 6ef9642b16 - MFH:
- remove double lock (tween colors cache is created in each thread, the
   cache mutex is already locked earlier)
 - #40858, other TS improvements for gd freetype cache management
   cache initialization and shutdown is now done in MINIT and MSHUTDOWN.
2007-04-04 00:47:55 +00:00
Ilia Alshanetsky 17c0c49a54 Addres limitation of __HALT_COMPILER() that allowed only one instance
per request.

# Patch by Greg Beaver
2007-04-04 00:42:42 +00:00
Pierre Joye a9ca51ff1a . colors allocated henceforth from the resulting image overwrite
the palette colors (sync with 2.0.34) (Rob Leslie)
2007-04-04 00:30:18 +00:00
Antony Dovgal 0c168b643c BFN 2007-04-03 20:21:20 +00:00
Antony Dovgal eb25e82249 MFH: fix #39351 (relative include fails on Solaris) 2007-04-03 20:20:56 +00:00
Brian Shire bd4add59f7 correction for previous fix to bug #38770 (pack/unpack is broken on 64bit)
fix pack test, correct space to tabs
2007-04-03 19:50:40 +00:00
Rob Richards 0291924222 allow registered classes to be changed 2007-04-03 11:57:04 +00:00
Ilia Alshanetsky ba4089ac41 Fixed typos 2007-04-02 21:35:46 +00:00
Stanislav Malyshev 67cdb4927b fix #33664 2007-04-02 20:51:12 +00:00
Stanislav Malyshev 8f0d69159e fix for #33664 Console window appears when using exec() 2007-04-02 20:44:30 +00:00
foobar 3da21dc6fc - 64bit test 2007-04-02 15:09:37 +00:00
foobar bb0547029a - Make this 32bit only test. (will add 64bit version next) 2007-04-02 15:02:02 +00:00
Dmitry Stogov 36c6ad915b Fixed bug #37013 (server hangs when returning circular object references) 2007-04-02 13:43:08 +00:00
foobar 2429299507 - Changed phpinfo() to make difference between set php.ini path and what was actually loaded. 2007-04-02 12:41:07 +00:00
Dmitry Stogov 77a8b0be35 Fixed test 2007-04-02 11:44:40 +00:00
Ilia Alshanetsky 642432a5de Fixed bug #40897 (error_log file not locked) 2007-04-01 19:29:42 +00:00
Ilia Alshanetsky f80afa623d Fixed bug #40921 (php_default_post_reader crashes when post_max_size is
exceeded).
2007-04-01 19:09:36 +00:00
Dmitry Stogov 99c5cebab3 new test 2007-03-30 10:10:33 +00:00
Ilia Alshanetsky 86ca439a5d Fixed MOPB-34-2007:PHP mail() Header Injection Through Subject and To
Parameters
2007-03-30 00:28:58 +00:00
Sara Golemon 52b07d1895 Add missing #if check 2007-03-29 18:47:04 +00:00
Antony Dovgal 9de5929efa add news entry
+ minor text fixes
2007-03-29 09:33:50 +00:00
Antony Dovgal 26cf62d293 MFH: fix PECL bug #10194 (crash in Oracle client when memory limit reached in the callback)
preallocate the required buffer, so that it would fail earlier.
2007-03-29 09:33:04 +00:00
Dmitry Stogov 4a119f9a79 Improved FastCGI SAPI to support external pipe and socket servers on win32 2007-03-28 15:39:22 +00:00
foobar 1c36d38891 - Fix test: Some people actually use --enable-debug here.. 2007-03-28 12:25:33 +00:00
Zoe Slattery c18d3b56e7 new ltrim, rtrim and str_pad tests 2007-03-28 10:44:04 +00:00
Antony Dovgal 859c3c22d9 add .cvsignore 2007-03-28 10:10:04 +00:00
Antony Dovgal 481609c980 MFH: fix #40392 (memory leaks in PHP milter SAPI) 2007-03-28 10:08:31 +00:00
Zoe Slattery 517865fb6e New tests for printf and ucfirst 2007-03-28 09:38:30 +00:00
Antony Dovgal 291f3a28c9 MFH: fix compile warning 2007-03-28 09:14:08 +00:00
Zoe Slattery 23d64aeaa4 Three new string tests for funtions strcasecmp, strcmp and strlen. 2007-03-28 09:08:08 +00:00
Marcus Boerger acf92f283a - MFH Allow to load multipe extensions via -d 2007-03-27 20:28:06 +00:00
Antony Dovgal 2c06cea75b MFH: fix compile warning 2007-03-27 09:29:10 +00:00
Antony Dovgal b9bffbe019 fix compile warning 2007-03-27 09:20:27 +00:00
Ilia Alshanetsky ae1c5674cb Fixed MOPB-33-2007:PHP mail() Message ASCIIZ Byte Truncation 2007-03-27 00:13:09 +00:00
Rob Richards c0cd876a7f BFN 2007-03-26 20:17:30 +00:00
Rob Richards b7c2eb3228 fix bug #37386 (autocreating element doesn't assign value to first node)
all single SimpleXMLElements are addressable using offset 0
use correct node for xpath context node
add test
2007-03-26 20:14:58 +00:00
Antony Dovgal 7053b89072 MFH: fix #40915 (addcslashes unexpected behavior with binary input) 2007-03-26 10:25:41 +00:00
Marcus Boerger 4e085083cd - MFH Need to install headers 2007-03-25 12:53:47 +00:00
Hannes Magnusson d677506541 Typo 2007-03-25 11:47:27 +00:00
foobar f5d9f9cd27 - Check if Makefile.frag actually exists before running sed on it. 2007-03-25 10:21:02 +00:00
foobar 82023f9aac - Fixed test to skip when mysqld is not running 2007-03-25 01:14:51 +00:00
Marcus Boerger eceb7faee0 - MFH Drop double variable declaration 2007-03-24 16:28:53 +00:00
Ilia Alshanetsky bc1f7356d7 Fixed CRLF injection inside ftp_putcmd().
# Reported on BugTraq by loveshell[at]Bug.Center.Team
2007-03-24 16:25:42 +00:00
Nuno Lopes 88f48476f9 regenerate to fix gcov build. plus use re2c bitvectors 2007-03-23 20:28:40 +00:00
Stanislav Malyshev 10f7bb95e8 fix MOPB-29 - unserialize modifier S does not calculate length correctly 2007-03-23 20:22:52 +00:00
Stanislav Malyshev 0af75d6b1a fix MOPB-29 - unserialize modifier S does not calculate length correctly
# reported by Stefan Esser
2007-03-23 20:15:22 +00:00
Stanislav Malyshev 008259dba8 fix comment - guard system changed 2007-03-23 17:16:55 +00:00
Wez Furlong cbb0db124b export the module guy in the external dll version of the build 2007-03-23 14:30:00 +00:00
Dmitry Stogov 6458e42496 Fixed bug #40899 (memory leak when nesting list()) 2007-03-23 12:46:16 +00:00
Dmitry Stogov 2dd2ac6d50 Fixed bug #40883 (mysql_query() is allocating memory incorrectly). (Tony) 2007-03-23 07:59:26 +00:00
Ilia Alshanetsky 57a88f71d5 Added -- test case 2007-03-22 23:34:14 +00:00
Douglas Goldstein 4b39efa0ee Replaced all instances of ldap_get_values() with ldap_get_values_len(), which returns back the length of the data so on non-NULL terminated data we don't crash in a strlen(). Removed the PHP function ldap_get_values() since it's the same thing as ldap_get_values_len() now and made it alias ldap_get_values_len(). This should fix some random PHP<->LDAP crashes 2007-03-22 21:50:34 +00:00
Johannes Schlüter d95939d566 - MFH: Fix handling of not existing long CLI options 2007-03-22 21:35:41 +00:00
Wez Furlong 76329a99f0 Add php_pdo_sqlite_external.dll to windows build.
This allows the user to provide their own version of sqlite3.dll.
The php_pdo_sqlite.dll is still there, and will continue to be there.
It is built from the bundled sources.
[[DOC]]
 (this should cc: phpdoc, if it's wrong, please let the docs folks know :-)
2007-03-22 01:00:23 +00:00
Marcus Boerger 68c1c83149 - MFH Fix issue with long form of command line switches 2007-03-21 23:20:21 +00:00
Derick Rethans b7a791827c - Revert this patch, as the code was incorrect.
- It was also not committed to HEAD.
2007-03-21 09:40:33 +00:00
Ilia Alshanetsky 5abffb51b6 Fixed bug #40861 (Multiple +/- on relative units breaks strtotime()). 2007-03-21 00:25:55 +00:00
Marcus Boerger 4c1c431a38 - MFH Fix Bug #40872 (inconsistency in offsetSet, offsetExists treatment
of string enclosed integers)
2007-03-20 20:28:08 +00:00
Marcus Boerger 6081c2284e - MFH Optional dependency for SPL must be specified in header 2007-03-20 20:00:27 +00:00
Antony Dovgal e8bd8d03b3 BFN 2007-03-20 19:39:27 +00:00
Antony Dovgal 17d89125b2 MFH: fix shmop_open() with IPC_CREAT|IPC_EXCL flags on win32 2007-03-20 17:57:59 +00:00
Dmitry Stogov 3ee54ce924 Added ability to encode arrays with "SOAP-ENC:Array" type instead of WSDL type. To activate the ability use "feature"=>SOAP_USE_XSI_ARRAY_TYPE option in SoapClient/SoapServer constructors. 2007-03-20 09:52:14 +00:00
Dmitry Stogov ef06bfa3ec Fixed bug #36226 (Inconsistent handling when passing nillable arrays) 2007-03-20 07:51:32 +00:00
Dmitry Stogov d514bf27a6 Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm. 2007-03-20 06:46:48 +00:00
Ilia Alshanetsky 13aac95bfc Fixed bug #40854 (imap_mail_compose() creates an invalid terminator for
multipart e-mails).
2007-03-19 22:56:57 +00:00
Dmitry Stogov b0a875104e Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get()) 2007-03-19 18:31:30 +00:00
Antony Dovgal ddc07c90b6 new test 2007-03-19 08:11:14 +00:00
Edin Kadribasic e77f670ba0 Make DLL only once (Wez) 2007-03-19 03:15:48 +00:00
Rob Richards ded5324d49 BFN 2007-03-18 21:31:57 +00:00
Rob Richards b172d3f8cd MFH: fix bug #40836 (Segfault in ext/dom)
add test
2007-03-18 21:31:05 +00:00
Wez Furlong ff0864ebac BFN, #40848 2007-03-18 20:21:43 +00:00
Wez Furlong 16fc958508 fixes #40848 2007-03-18 20:20:23 +00:00
Ilia Alshanetsky 89939e13d6 Fixed MOPB-26-2007 mb_parse_str() can be used to activate register_globals
# Discovered by Stefan Esser
2007-03-18 16:36:13 +00:00
Antony Dovgal 8e67ec8225 MFH: fix #40794 (ReflectionObject::getValues() may crash when used with dynamic properties) 2007-03-17 23:00:49 +00:00
Antony Dovgal 722287a538 fix tests 2007-03-17 19:16:17 +00:00
Stanislav Malyshev 7b7dcc89f3 fix spprintf usage 2007-03-16 21:59:23 +00:00
Stanislav Malyshev d0c229d4cb clarify 2007-03-16 21:49:56 +00:00
Stanislav Malyshev b44c524b7c array_user_key_compare() fix 2007-03-16 19:58:19 +00:00
Stanislav Malyshev a424d65e0b add test 2007-03-16 19:55:21 +00:00
Stanislav Malyshev 90eff54400 Fix UMR in array_user_key_compare() (MOPB24 by Stefan Esser) 2007-03-16 19:38:58 +00:00
Antony Dovgal c0aae895c6 BFN 2007-03-16 09:31:20 +00:00
Sebastian Bergmann d3cb98caf0 Fugbix typo. 2007-03-16 06:41:24 +00:00
Antony Dovgal 6a45f716ae fix #40805 (Failure executing function ibase_execute()) 2007-03-15 22:33:04 +00:00
Antony Dovgal bfb599b067 BFN 2007-03-15 16:44:35 +00:00
Antony Dovgal 79ed194a64 fix #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash) 2007-03-15 16:44:12 +00:00
Antony Dovgal f6536ed2b2 MFH: remove unnecessary warning in case of exception 2007-03-14 23:47:44 +00:00
Ilia Alshanetsky 7aab16c333 Fixed MOPB-22-2007:PHP session_regenerate_id() Double Free Vulnerability
# Discovered by Stefan Esser
2007-03-14 19:37:07 +00:00
Antony Dovgal f9d54cbb75 MFH: fix #40750 (openssl stream wrapper ignores default_stream_timeout) 2007-03-14 19:22:14 +00:00
Pierre Joye b85f4d4077 - leak in extract 2007-03-14 16:36:16 +00:00
Pierre Joye 6e074459fc - add ::open to the safemode check entry 2007-03-14 15:10:37 +00:00
Ilia Alshanetsky 5ed63dd8a9 Fixed a possible memory leak on open_basedir validation 2007-03-14 15:02:20 +00:00
Pierre Joye fc3a62ed48 - MFH: openbasedir and safemode check in ::open() 2007-03-14 12:06:20 +00:00
Antony Dovgal 6e47537a01 BFN 2007-03-14 11:58:18 +00:00
Antony Dovgal e5b5f00949 MFH: fix #40800 (cannot disable memory_limit with -1) 2007-03-14 11:58:05 +00:00
Timm Friebe b9bc7c55d4 - Changed message handler also to handle message #11021
- Adjusted expected output
# Seems newer Sybase versions yielf different error codes for getdate(NULL)
2007-03-14 11:57:45 +00:00
Timm Friebe ca75503c8f - Fixed segmentation fault in sybase_connect()
# This was introduced by changing sprintf -> spprintf and resulted
# from passing a char* to spprintf() instead of a char**
2007-03-14 11:48:49 +00:00
Timm Friebe 142357d445 - Changed expected output
# select getdate() returns something like "Mar 14 2007 12:44PM", we
# were checking for one additional (nonexistant) whitespace after "Mar"
# which was wrong. Don`t know when and how this changed
2007-03-14 11:46:06 +00:00
Timm Friebe d8ed658b78 - Changed expected output
# Due to var_export() & __set_state() changes
2007-03-14 11:44:24 +00:00
Pierre Joye b40b5b5305 - MFH: Fixed possible relative path issues in zip_open in TS mode (old API) 2007-03-14 11:32:25 +00:00
Pierre Joye 1c0b8e6f15 - rename SAFEMODE_CHECKFILE to OPENBASEDIR_CHECKPATH (can be used without
confusing in head without confusion)
- Add safemode and open basedir checks in zip:// wrapper (revert Ilia's
  patch). Bug found by Stefan Esser in his MOPB-20-2007
2007-03-14 11:08:57 +00:00
Pierre Joye 4f5303ab92 - add more cases for getComment 2007-03-14 11:02:29 +00:00
Martin Kraemer 9c62ddde34 Typo 2007-03-14 09:58:14 +00:00
Ilia Alshanetsky 6d70aa1f4e Added missing open_basedir & safe_mode checks to zip:// and bzip://
wrappers.

Issues idendtified by MOPB-20 and MOPB-21
2007-03-14 03:50:18 +00:00
Stanislav Malyshev c3e4a2854a fix odbc resource handling, patch by Dave Lawson 2007-03-13 00:04:38 +00:00
Antony Dovgal 81f99c721b return false instead of empty string when -length is greater than (len - offset) 2007-03-12 23:42:26 +00:00
Ilia Alshanetsky c829314963 malloc() -> pemalloc() 2007-03-12 23:21:41 +00:00
Antony Dovgal 165f44c9c3 MFH 2007-03-12 20:55:15 +00:00
Antony Dovgal 5088614ea1 synchronize iconv_substr() behavior with substr()
no MFB so far, since substr() changes are not MFBed either
2007-03-12 19:34:26 +00:00
Dmitry Stogov ab699d03bc Fixed bug #40770 (Apache child exits when PHP memory limit reached) 2007-03-12 16:59:52 +00:00
Antony Dovgal ed844bbb3f BFN 2007-03-12 13:10:55 +00:00
Antony Dovgal 30f45e15de MFH: fix #40784 (Case sensivity in constructor's fallback) 2007-03-12 13:10:40 +00:00
Dmitry Stogov 1e13ef2de5 Fixed compilation warning 2007-03-12 07:39:01 +00:00
Edin Kadribasic ff53da7213 Lib upgrade news 2007-03-12 03:10:08 +00:00
Ilia Alshanetsky f96245f8b4 malloc() -> pemalloc() 2007-03-11 18:42:19 +00:00
Antony Dovgal 80616688db MFH 2007-03-11 12:56:44 +00:00
Antony Dovgal e8ede1ec08 fix tests 2007-03-11 12:54:54 +00:00
Ilia Alshanetsky e82c30c845 Re-added check removed by the previous patch 2007-03-10 20:07:50 +00:00
Ilia Alshanetsky 1453879587 Added additional checks for long input arrays inside
import_request_variables().

# Missing checks identified by Stefan Esser
2007-03-10 19:20:16 +00:00
Pierre Joye cb11ba761e - MFH: CVE-2007-1001, integer overflow with invalid wbmp images 2007-03-10 12:18:36 +00:00
Pierre Joye 547e4760e0 - #40764, line thickness not respected for horizontal and vertical lines
- add test
 - NEWS entry
2007-03-10 01:13:19 +00:00
Stanislav Malyshev 1e9fd0f002 add testcase 2007-03-09 18:37:03 +00:00
Dmitry Stogov c2a71f8eb1 Return HTTP 403 in case of "access denied". 2007-03-09 16:46:07 +00:00
Antony Dovgal 982de65f6e fix substr()
it's perfectly legal to do substr("str", 0, 1000000);
2007-03-09 10:04:59 +00:00
Antony Dovgal c9ded196b4 fix tests 2007-03-09 09:45:14 +00:00
Ilia Alshanetsky 02fae929af Fixed bug #40754 (added substr() & substr_replace() overflow checks). 2007-03-09 01:58:34 +00:00
Ilia Alshanetsky b3b6db3f03 Add _SESSION to checklist 2007-03-09 01:48:56 +00:00
Ilia Alshanetsky 0fa1427c6e Fixed a possible super-global overwrite inside import_request_variables().
# Reported by Stefano Di Paola
2007-03-09 01:42:20 +00:00
Rasmus Lerdorf 5b9ec4828f Off by ! in the url control char check for file:/// urls 2007-03-09 01:20:34 +00:00
Pierre Joye 1286d9e266 - #40764, line thickness not respected for horizontal and vertical lines 2007-03-09 01:18:40 +00:00
Stanislav Malyshev 0aa13e923b more fixes 2007-03-08 22:53:37 +00:00
Stanislav Malyshev 6e460bab4e fix crash/leak in bug #38710 2007-03-08 22:49:53 +00:00
Stanislav Malyshev c4423ae27d add news 2007-03-08 22:44:22 +00:00
Nuno Lopes 95391e4f9c BFN: gd gif reading 2007-03-08 22:04:33 +00:00
Stanislav Malyshev 8779d1cdd3 fix crash on $x['x']['y'] += 1, patch by Brian Shire 2007-03-08 20:59:31 +00:00
Nuno Lopes 5116b67016 fix thread unsafety in the gif reader code (merge from libgd cvs) 2007-03-08 20:24:53 +00:00
Stanislav Malyshev 79195bfe2e clarify checks and error messages 2007-03-08 00:47:04 +00:00
Antony Dovgal af1843f866 MFH: fix #40752 (parse_ini_file() segfaults when a scalar setting is redeclared as an array) 2007-03-08 00:44:23 +00:00
Ilia Alshanetsky 8696c9bc89 Improved length parameter validation 2007-03-08 00:18:10 +00:00
Ilia Alshanetsky 42ff70ede8 Improved offset validation 2007-03-08 00:06:41 +00:00
Stanislav Malyshev 2625be4ed0 fix MOPB#14
# The error message seems wrong, so maybe better fix is needed
2007-03-07 18:15:46 +00:00
Antony Dovgal 0628f86e0e fix small typo
add --with-zlib-dir option (and simple automagic zlib detection)
2007-03-07 09:36:22 +00:00
Antony Dovgal c73225ab61 MFH: fix #40727 (segfault in PDO when failed to bind parameters) 2007-03-07 09:03:07 +00:00
Ilia Alshanetsky 0638ac7651 Fixed calloc wrapper 2007-03-07 00:55:49 +00:00
Ilia Alshanetsky 4a614cd6b1 malloc() -> pemalloc() 2007-03-07 00:52:40 +00:00
Ilia Alshanetsky f6343f45f2 Add checks around raw allocation code 2007-03-07 00:47:42 +00:00
Derick Rethans d447facb42 - Updated timezone database to version 2007.3. (Derick) 2007-03-06 21:28:37 +00:00
Antony Dovgal a806ce9700 MFH 2007-03-06 21:08:05 +00:00
Antony Dovgal a8f076d7a3 use the aliases and eliminate one more compile warning 2007-03-06 21:04:27 +00:00
Antony Dovgal db8bbdc2a9 MFH: declare zend_mm_random() only when needed 2007-03-06 20:59:13 +00:00
Uwe Schindler ad336e432a remove (large) static buffers for header names and request uri 2007-03-06 18:15:25 +00:00
Uwe Schindler e25bb8ea04 use slprintf instead of snprintf and remove 0termination things (because slprintf is always available now) 2007-03-06 15:43:49 +00:00
Antony Dovgal cc49ea3a1e MFH 2007-03-06 10:13:54 +00:00
Ilia Alshanetsky 37da90248d Added missing allocation checks 2007-03-06 03:15:41 +00:00
Stanislav Malyshev 896abc5e34 use safe_realloc 2007-03-06 02:17:13 +00:00
Stanislav Malyshev 49a7bcd60b use safe_realloc 2007-03-06 02:10:25 +00:00
Stanislav Malyshev ec71493b99 use safe_erealloc 2007-03-06 02:03:28 +00:00
Marcus Boerger 331034afbb - Revert last part and fix issue under windows 2007-03-06 01:19:47 +00:00
Marcus Boerger 3c21c05e43 - And the sizes too 2007-03-06 01:14:38 +00:00
Marcus Boerger 26ebcdfcb9 - More to go
# CVS sucks, you cannot mix -D with -r
# However, thanks edin for reminding me that we have mini version tags
# I still prefer subverison. There we don't have any problem of this kind
2007-03-06 01:13:21 +00:00
Marcus Boerger 638ffdb477 - There you go 2007-03-06 01:00:51 +00:00
Marcus Boerger 03bccc1b15 - MFH Revert back to sprintf (we could define snprintf for windows but we don't) 2007-03-06 00:56:42 +00:00
Ilia Alshanetsky ff3e825083 Fixed bug #40417 (Allow multiple instances of the same named PDO token in
prepared statement emulation code).
2007-03-06 00:52:55 +00:00
Stanislav Malyshev 7508066230 fix broken snprintf code 2007-03-06 00:24:00 +00:00
Stanislav Malyshev d856029c78 use safe_emalloc 2007-03-05 21:54:46 +00:00
Uwe Schindler f34ec4f606 snprintf patch 2007-03-05 16:29:18 +00:00
andy wharmby a252c79d53 Fixed bug #35872 (Prevent object store references during RSHUTDOWN) 2007-03-05 15:49:00 +00:00
Michael Wallner c938da6a97 BFN 2007-03-05 14:10:27 +00:00
Michael Wallner 3db2db7159 - fix ws as requested by derick 2007-03-05 14:10:18 +00:00
Michael Wallner 87b02796d8 - fix bug #40691: add comparison object handler 2007-03-05 14:05:55 +00:00
Ilia Alshanetsky ecf4e93630 Fixed bug #40703 (Resolved a possible namespace conflict between libxmlrpc
and MySQL's NDB table handler).
2007-03-04 18:24:49 +00:00
Ilia Alshanetsky 1ac71c4fe9 Fixed bug #40709 (array_reduce() behaves strange with one item stored
arrays).
2007-03-04 17:21:16 +00:00
Marcus Boerger fa29c1a2f5 - Fix copy'n'paste issues 2007-03-04 14:01:06 +00:00
Marcus Boerger ed359b4529 - MFH simplify, synch docu/implementation 2007-03-04 12:18:02 +00:00
Stanislav Malyshev 2ad036da3a ik, make it memcpy 2007-03-04 04:38:43 +00:00
Stanislav Malyshev b2673ab004 fix wrong code
# noticed by Stefan Esser
2007-03-04 02:23:47 +00:00
Edin Kadribasic 730a77f19b Check that manifest file exists before trying to embed it 2007-03-04 00:41:16 +00:00
Edin Kadribasic 285edfcd77 Library update 2007-03-03 23:10:16 +00:00
Marcus Boerger 0ad927dbf2 - MFH A stream wrapper might only allow directory access 2007-03-03 19:01:34 +00:00
Ilia Alshanetsky e769e1b49e Fixed bug #40704 (strip_tags() does not handle single quotes correctly) 2007-03-03 15:46:29 +00:00
Marcus Boerger 276aed565e - The # line does not belong here 2007-03-03 15:18:03 +00:00
Marcus Boerger e5397c076b - MFH [DOC] Add SplFileInfo::getBasename(), DirectoryIterator::getBasename
- MFH Add SplFileInfo::getLinkTarget(), SplFileInfo::getRealPath()
# All based on suggestions by Arnold Daniels
2007-03-03 15:08:59 +00:00
Ilia Alshanetsky a500d1efe9 Adjust checks to allow paths without a trailing / 2007-03-03 15:07:31 +00:00
Marcus Boerger b15d1f22ef - Catch empty class name error earlier 2007-03-03 13:45:14 +00:00
Edin Kadribasic 7fc3493c8c Lib upgrade update 2007-03-03 02:06:43 +00:00
Stanislav Malyshev a0215e9ac4 fix variable name 2007-03-02 22:03:05 +00:00
Stanislav Malyshev fc35807a38 limit input variable nesting 2007-03-02 22:00:50 +00:00
Stanislav Malyshev 32fb34e2d1 limit nesting level of input variables 2007-03-02 21:58:05 +00:00
Nuno Lopes f1d075a102 increase the stream_select() timeout, to make the test pass in a slow machine with valgrind 2007-03-02 18:54:13 +00:00
Nuno Lopes 7b37c41384 fix access to non initialized memory (check valgrind reports on http://gcov.php.net) 2007-03-02 18:41:25 +00:00
Antony Dovgal f87f4a1468 improved test 2007-03-02 09:09:49 +00:00
Ilia Alshanetsky 4735df26f8 Improve safe_mode check 2007-03-02 00:49:47 +00:00
Antony Dovgal 7a069b81d8 new tests 2007-03-01 23:29:38 +00:00
Antony Dovgal 37b4db2d00 allocate descriptors dynamically 2007-03-01 22:27:44 +00:00
Nuno Lopes e5c4b50127 merge from gd sources: unlock mutex before shuting it down 2007-03-01 18:39:49 +00:00
Antony Dovgal acd14f802c MFH 2007-03-01 11:29:43 +00:00
Antony Dovgal 6124bcda0d MFH: fix #40678 (Cross compilation fails) 2007-03-01 11:23:54 +00:00
Ilia Alshanetsky 416b31ccc9 Fixed bug #40464 (session.save_path wont use default-value when safe_mode
or open_basedir is enabled).
2007-03-01 00:01:32 +00:00
Hannes Magnusson d193017342 Typo 2007-02-28 10:37:07 +00:00
Ilia Alshanetsky 3c27b48662 Fixed typo 2007-02-28 01:10:41 +00:00
Ilia Alshanetsky a9c4107ee4 Adjust vsnprintf() usage 2007-02-28 01:01:01 +00:00
Ilia Alshanetsky efad70c2cc snprintf() -> slprintf() 2007-02-27 03:28:17 +00:00
Ilia Alshanetsky cc04404b28 snprintf() -> slprintf()
# Part 1
2007-02-27 03:04:40 +00:00
Ilia Alshanetsky 1d08a8d157 Fixed bug #40637 (Regression in strip_tags() in relation so quote handling) 2007-02-27 00:15:21 +00:00
Antony Dovgal c667c70bdb fix typo 2007-02-26 17:47:21 +00:00
Dmitry Stogov 8ae520d0b5 Fixed tests 2007-02-26 16:19:56 +00:00
Antony Dovgal f7e434969a MFH: remind about 'make test' 2007-02-26 14:51:44 +00:00
Antony Dovgal e07b611b10 fix folding 2007-02-26 14:11:34 +00:00
Rob Richards 796d5ee3ab MFH: fix win build 2007-02-26 12:38:34 +00:00
Antony Dovgal ad8c94d8cc fix
the sprintf() -> zend_spprintf() change affected this
2007-02-26 12:08:12 +00:00
Antony Dovgal 7939691523 fix ws/cs and make the ugly code less ugly.. 2007-02-26 12:05:52 +00:00
Antony Dovgal 666370d7ee add new test 2007-02-26 09:58:04 +00:00
Dmitry Stogov 94d7b8b004 poll() is not affected by FD_SETSIZE (Tony) 2007-02-26 09:38:44 +00:00
Ilia Alshanetsky 58c167168d Revert previous commit that caused a buffer overflow (Bug #40634) 2007-02-26 02:12:36 +00:00
Antony Dovgal fb3a3b72f1 MFH: do not allow db without fields 2007-02-25 23:17:12 +00:00
Antony Dovgal b42addcc54 MFH: zerofill socket structs 2007-02-25 22:59:32 +00:00
Nuno Lopes d3ddf47718 update pcre symbols list 2007-02-25 18:47:21 +00:00
Dmitry Stogov c373324692 Fixed bug #40591 (list()="string"; gives invalid opcode) 2007-02-25 16:02:43 +00:00
Dmitry Stogov 015a5655df Fixed bug #40609 (Segfaults when using more than one SoapVar in a request). (Rob, Dmitry) 2007-02-25 13:19:29 +00:00
Marcus Boerger 255c6a71d7 - MFH Readability 2007-02-25 13:09:13 +00:00
Pierre Joye dfeff9efe6 - sync with libgd.org, patch from Kees Cook 2007-02-25 02:45:06 +00:00
Rasmus Lerdorf 7b80d01aa3 Fix test 2007-02-24 22:02:16 +00:00
Antony Dovgal 914b64dd4f BFN 2007-02-24 21:30:56 +00:00
Antony Dovgal e058ba92f9 MFH: fix #40621 (Crash when constructor called inappropriately (statically)) 2007-02-24 21:30:48 +00:00
Marcus Boerger 1345740fa5 - Add [v]slprintf to overcome the returnvalues issue of snprintf 2007-02-24 18:20:46 +00:00
Ilia Alshanetsky 3588f9eed6 missing -1 2007-02-24 18:02:11 +00:00
Ilia Alshanetsky 9783f5f1f3 strncpy() -> strlcpy() 2007-02-24 18:00:56 +00:00
Ilia Alshanetsky 9651aeaf78 Pad to given length, not replace data with spaces 2007-02-24 17:57:57 +00:00
Ilia Alshanetsky afa4b732c5 Eliminate strncpy and simplify code 2007-02-24 17:40:45 +00:00
Ilia Alshanetsky 27c6f40783 Eliminate strncpy() and simplify code 2007-02-24 17:18:24 +00:00
Ilia Alshanetsky 34928eeeca strncpy > strlcpy 2007-02-24 17:16:23 +00:00
Ilia Alshanetsky 0ccf1cf9ce Only do size check on create operations 2007-02-24 16:36:56 +00:00
Ilia Alshanetsky f4a8180f65 Fixed snprintf() usage 2007-02-24 16:23:10 +00:00
Ilia Alshanetsky a2a55daf21 Segment size validation 2007-02-24 15:50:54 +00:00
Ilia Alshanetsky 1b8a85415d Fixed Bug #39396 (stream_set_blocking crashes on Win32). 2007-02-24 15:48:40 +00:00
Ilia Alshanetsky e4ff13e43e Unify validation of shm segment size inside shm_attach() 2007-02-24 15:44:43 +00:00
Ilia Alshanetsky 44aefd1ea0 Fixed test to work with new version of libtidy that strips spaces 2007-02-24 15:35:04 +00:00
Marcus Boerger 24fa61e202 - Drop superflous efree 2007-02-24 14:53:50 +00:00
Marcus Boerger d2c343a3df - Fix spprintf usage 2007-02-24 14:33:50 +00:00
Marcus Boerger 1b1c62d708 - Make debug code really safe 2007-02-24 14:28:09 +00:00
Dmitry Stogov 0caa2be91f Use poll() instead of select() if available 2007-02-24 11:20:43 +00:00
Ilia Alshanetsky 0763686034 strdup() can fail 2007-02-24 03:24:40 +00:00
Stanislav Malyshev 698f114ddc use safe allocations 2007-02-24 03:08:05 +00:00
Ilia Alshanetsky 6223b18134 Fixed a typo 2007-02-24 02:59:58 +00:00
Stanislav Malyshev b415e3da5a Unfortunately, VC does not have snprintf, and sprintf_s supported only in vc2005
Fortunately, we don't need it here too badly.
2007-02-24 02:50:58 +00:00
Stanislav Malyshev 33956fc358 fix typo 2007-02-24 02:45:24 +00:00
Stanislav Malyshev b107f3bfbe fix typos 2007-02-24 02:43:53 +00:00
Marcus Boerger 50ea26760d - Avoid sprintf, even when checked copy'n'paste or changes lead to errors 2007-02-24 02:17:47 +00:00
Stanislav Malyshev 3e262bd369 disallow negative length 2007-02-24 01:18:14 +00:00
Sara Golemon c3935671cd MFH (r-1.82): Add retry for interrupted reads and graceful handling for failed retries 2007-02-23 23:09:14 +00:00
Stanislav Malyshev 59bcd2372d use strlcat 2007-02-23 22:08:31 +00:00
Stanislav Malyshev b40c94194f use strlcat 2007-02-23 22:05:46 +00:00
Stanislav Malyshev 4019bf5370 use snprintf 2007-02-23 21:45:00 +00:00
Stanislav Malyshev e894206874 use snprintf 2007-02-23 21:38:25 +00:00
Stanislav Malyshev 43aa661c5e increase array size to fit buffer size 2007-02-23 21:14:52 +00:00
Antony Dovgal fa513e74ce MFH: fix leak 2007-02-23 20:51:02 +00:00
Stanislav Malyshev 9d3e446d80 use safe_emalloc 2007-02-23 20:40:55 +00:00
Antony Dovgal f3a9413b28 MFH: fix #40606 (umask is not being restored when request is finished) 2007-02-23 16:22:20 +00:00
Rob Richards db19c74cfe BFN 2007-02-23 11:15:08 +00:00
Rob Richards 7846ed2e84 fix bug #40598 (libxml segfault) 2007-02-23 11:12:49 +00:00
Pierre Joye b5e6c78eda - #40578, fix the 2nd race condition on shutdown when the cache is freed 2007-02-23 00:58:49 +00:00
Ilia Alshanetsky a471f75354 Simplify code by converting emalloc() + sprintf() to spprintf() 2007-02-23 00:37:36 +00:00
Antony Dovgal e0a7362646 MFH: check for buflen (on FreeBSD _SC_GETGR_R_SIZE_MAX is not implemented)
patch by stas at FreeBSD dot org
2007-02-22 23:40:39 +00:00
Marcus Boerger e3d786be4e - MFH Fix logic 2007-02-22 23:26:03 +00:00
Nuno Lopes d94e388d74 fix test on ultra-fast-machines and/or SOs with long time slices
# Thanks Tony
2007-02-22 11:48:14 +00:00
Antony Dovgal dfbc224555 MFH 2007-02-22 10:06:22 +00:00
Dmitry Stogov f027aef074 Fixed possible crash in putenv() on win32 2007-02-22 08:23:17 +00:00
Ilia Alshanetsky 609ecbfc37 One more strcpy. (Thanks Stas) 2007-02-22 00:44:08 +00:00
Ilia Alshanetsky 06e5bc9ea2 strcpy() elimination 2007-02-22 00:25:38 +00:00
Antony Dovgal e1fe2c9165 MFH 2007-02-21 22:08:08 +00:00
Antony Dovgal 4a95928d1d MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks 2007-02-21 21:57:21 +00:00
Stanislav Malyshev 2a019a14bf use snprintf 2007-02-21 21:08:58 +00:00
Antony Dovgal 26fac39d5e fix test 2007-02-21 19:57:15 +00:00
Antony Dovgal 7255b4b953 fix tests on AIX 2007-02-21 19:52:20 +00:00
Antony Dovgal 905491d6c9 wrong string len 2007-02-21 19:36:20 +00:00
Antony Dovgal d162a8fb9e add test for 64bit arch 2007-02-21 19:35:15 +00:00
Antony Dovgal a2a682975c fix test 2007-02-21 19:27:37 +00:00
Antony Dovgal 22a866818b fix test 2007-02-21 19:22:28 +00:00
Nuno Lopes 4f3150c350 use /usr/bin/nohup instead 2007-02-21 16:25:37 +00:00
Nuno Lopes 6be4ea4d97 fix gcov build (#line stuff) 2007-02-21 16:08:18 +00:00
Dmitry Stogov 2b5e7d315f Check for FD_SETSIZE limit 2007-02-21 15:46:13 +00:00
Antony Dovgal 94bab7b206 MFH: fix #40578 (imagettftext() multithreading issue) 2007-02-21 15:00:26 +00:00
Antony Dovgal bccae9a134 MFH: fix #40576 (double values are truncated to 6 decimal digits when encoding) 2007-02-21 14:25:27 +00:00
Dmitry Stogov 149dd625be Special case for last iteration 2007-02-21 14:11:00 +00:00
Dmitry Stogov d4ccfade57 Fixed bug #40560 (DIR functions do not work on root UNC path) 2007-02-21 13:09:03 +00:00
Ilia Alshanetsky 6b253ae064 Improve redirect validation 2007-02-21 04:29:15 +00:00
Ilia Alshanetsky 5ecffe6eb5 Use strlcpy() rather then strcpy() 2007-02-21 03:59:05 +00:00
Stanislav Malyshev 462d545a63 fix putenv - if there was no previous, remove variable from environ 2007-02-21 03:03:37 +00:00
Stanislav Malyshev 31a325823a Cosmetic fix - safe_emalloc(nmemb, size, offset) 2007-02-21 01:13:44 +00:00
Stanislav Malyshev a72041406b CreateInstance requires BSTR (should fix #33188) 2007-02-21 01:11:11 +00:00
Stanislav Malyshev 47e06ea821 fix unallocated free 2007-02-20 20:30:36 +00:00
Antony Dovgal 43d788ec33 MFH: move PHP_TEST_WRITE_STDOUT to acinclude.m4 and use it in configure.in 2007-02-20 20:11:11 +00:00
Antony Dovgal 748b6fdeb3 MFH: make use of startup hooks 2007-02-20 19:20:41 +00:00
Antony Dovgal 180baf0109 MFH: fix leak and errmsg
add test
2007-02-20 14:08:43 +00:00
Antony Dovgal e7544f28b8 MFH: fix #38406 (crash when assigning objects to SimpleXML attributes) 2007-02-20 13:22:41 +00:00
Marcus Boerger 2db70cb520 - BFN 2007-02-20 13:09:54 +00:00
Marcus Boerger f44b63c57f - Make stat based functions throw an exception 2007-02-20 13:08:01 +00:00
Antony Dovgal 6ba2491d37 BFN 2007-02-20 12:01:40 +00:00
Antony Dovgal 8185f4550e MFH: fix #40545 (multithreading issue in zend_strtod()) 2007-02-20 12:00:58 +00:00
Ilia Alshanetsky 03e5b080a3 Upgraded SQLite 3 library to version 3.3.13 2007-02-20 00:09:43 +00:00
Ilia Alshanetsky c6402df3a7 Eliminate strcat() usage. 2007-02-19 23:53:00 +00:00
Ilia Alshanetsky 9ae588dfb1 Fixed strlcat() usage.
# Thanks Andi
2007-02-19 23:52:13 +00:00
Marcus Boerger ba4cbbaf69 - Bugfix #40546: SplFileInfo::getPathInfo() throws an execption if directory is in root dir. 2007-02-19 20:34:29 +00:00
Antony Dovgal 19c517938e MFH: check SQLError() return value and output a meaningful errmsg when it fails 2007-02-19 20:22:38 +00:00
Antony Dovgal 13ca6ed9fa MFH: fix heap protection on SPARC, required by GCC4
patch by Dmitry
2007-02-19 18:29:31 +00:00
Edin Kadribasic 8f5907fe96 Info on new lib versions and BFN 2007-02-19 17:32:54 +00:00
Dmitry Stogov 955d3e73e8 typo 2007-02-19 17:29:19 +00:00
Edin Kadribasic f31b3b497d Fixed bug #40371 2007-02-19 17:26:15 +00:00
Marcus Boerger 58c77d3925 - MFH CachingIterator implements Countable 2007-02-19 16:18:24 +00:00
Edin Kadribasic fee1ef3463 Fixed bug #36496 2007-02-19 16:03:42 +00:00
Dmitry Stogov f49d044cee On win32 directories in the middle of the patch may be unreadable 2007-02-19 14:58:07 +00:00
Dmitry Stogov 2a170f0584 Initialize "retval" on each request 2007-02-19 14:13:02 +00:00
Dmitry Stogov 7c77611057 Fixed fcgi_putenv() semantic with NULL value 2007-02-19 13:21:14 +00:00
Antony Dovgal 772e35e99a MFH: fix test 2007-02-19 12:19:44 +00:00
Ilia Alshanetsky 26214fc15f Eliminate strcat() usage
Fixed handling of argv[] for GET
2007-02-18 18:08:22 +00:00
Ilia Alshanetsky 7605d10252 PQfreemem checks 2007-02-18 17:05:53 +00:00
Ilia Alshanetsky 5e274ea47d Fixed bug #40503 (json_encode() value corruption on 32bit systems with
overflown values).
2007-02-18 16:54:59 +00:00
Stanislav Malyshev 05584eb55a use safer functions, check error value 2007-02-17 01:45:52 +00:00
Antony Dovgal 704b191d6a fix typo 2007-02-16 23:49:48 +00:00
Stanislav Malyshev 8edc9018db use error message size 2007-02-16 18:48:53 +00:00
Stanislav Malyshev 1fd2039fdd fix snprintf size
#-1 is not needed
2007-02-16 18:32:38 +00:00
Stanislav Malyshev f1728950fe increase hebdate buffer, use snprintf 2007-02-16 18:24:16 +00:00
Stanislav Malyshev 624dd135a8 fix typo 2007-02-16 18:10:36 +00:00
Stanislav Malyshev 4274449a02 add safe_realloc 2007-02-16 18:06:28 +00:00
Dmitry Stogov a3493bd3de Optimize out RINIT() 2007-02-16 16:35:04 +00:00
Antony Dovgal 01058e9770 fix possible double free 2007-02-16 13:28:03 +00:00
Dmitry Stogov 0262f05c17 Fixed return value of assert_options(ASSERT_CALLBACK) and possible crash (Andy Wharmby) 2007-02-16 13:12:10 +00:00
Dmitry Stogov 780c66d14b Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed) 2007-02-16 11:30:03 +00:00
Antony Dovgal 9208d250c2 MFH 2007-02-16 11:08:22 +00:00
Dmitry Stogov 574630190e Allow C++ extensions to use CG(), EG() ... (Caroline) 2007-02-16 08:54:17 +00:00
Dmitry Stogov b6a2b760dc Fixed zend_llist_remove_tail (Michael Wallner) 2007-02-16 08:33:28 +00:00
Ilia Alshanetsky 4a33a63ab6 Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump). 2007-02-16 03:41:56 +00:00
Ilia Alshanetsky ee17c54d88 Reduce stack usage & improve boundary checks 2007-02-16 03:32:06 +00:00
Nuno Lopes 14a6567f09 fix build on cygwin with windows-style EOLs 2007-02-15 20:52:50 +00:00
Nuno Lopes fd7d6a6f0a fix cvsclean on cygwin with windows-style EOLs 2007-02-15 20:42:24 +00:00
Antony Dovgal 286dee8100 MFH 2007-02-15 19:11:48 +00:00
Dmitry Stogov ea278e8566 Fixed memory leak 2007-02-15 17:01:29 +00:00
Dmitry Stogov 2cf92f365a Fixed bug #40467 (Partial SOAP request sent when XSD sequence or choice include minOccurs=0) 2007-02-15 14:48:12 +00:00
Dmitry Stogov a79d74b694 Fixed bug #40414 (possivle endless fork() loop when running fastcgi) 2007-02-15 12:33:16 +00:00
Dmitry Stogov 12bbbf022f Fixed Bug #40352 (FCGI_WEB_SERVER_ADDRS function get lost) 2007-02-15 12:04:59 +00:00
Dmitry Stogov 0291ad5fa6 Fixed bug #40236 (php -a function allocation eats memory) 2007-02-15 10:38:28 +00:00
Ilia Alshanetsky b997390e1d use constant 2007-02-15 01:40:36 +00:00
Ilia Alshanetsky ed6725c695 Improved validation route for size parameter of the mcrypt_create_iv()
function.
2007-02-15 01:15:45 +00:00
Ilia Alshanetsky f8958c466d Fixed a possible memory corruption inside mime_content_type() on a
non-existent file.
2007-02-15 00:05:42 +00:00
Derick Rethans e254f976fb - MFH: Clarify the source of the timezone data. 2007-02-14 19:35:09 +00:00
Nuno Lopes d446564786 Fixed bug #39322 (proc_terminate() destroys process resource) 2007-02-14 19:13:31 +00:00
Andi Gutmans 71645e8c4f - Give Dmitry credit for all the FastCGI work 2007-02-14 08:12:27 +00:00
Ilia Alshanetsky fc49f98e6a Make sure p is not pointing to the start of the buffer 2007-02-13 23:55:20 +00:00
Ilia Alshanetsky a92ef5e0dc Fixed a memory leak on highlight_file() with a non-existant file 2007-02-13 23:39:14 +00:00
Antony Dovgal 32c2c7a510 MFH 2007-02-13 20:19:56 +00:00
Ilia Alshanetsky 2e35bdc5e9 Fixed a memory leak inside imap_utf8() 2007-02-13 20:12:52 +00:00
Nuno Lopes 9cc85b6030 Fixed bug #34794 (proc_close() hangs when used with two processes) 2007-02-13 19:53:42 +00:00
Antony Dovgal c8a4b13638 MFH: improve php_userstreamop_seek() 2007-02-13 19:50:59 +00:00
Nuno Lopes 3d65d6d8d9 Fixed bug #37799 (ftp_ssl_connect() falls back to non-ssl connection) 2007-02-13 18:29:10 +00:00
Antony Dovgal dc9e17faf3 fix #40455 (proc_open() uses wrong commandline when safe_mode_exec_dir is set) 2007-02-13 15:55:45 +00:00
Antony Dovgal 29a9ba9639 new/improved tests 2007-02-13 12:59:53 +00:00
Antony Dovgal 60c435df5e MFH 2007-02-13 12:56:36 +00:00
Antony Dovgal a9ed150a74 fix .cvsignore's 2007-02-13 10:07:39 +00:00
Ilia Alshanetsky 103b8c33c0 Fixed bug #40432 (strip_tags() fails with greater than in attribute). 2007-02-13 02:16:22 +00:00
Marcus Boerger e19f55bb82 - MFH Drop useless stuff 2007-02-13 00:32:32 +00:00
Marcus Boerger 5026a9fd83 - MFH Add new example 2007-02-13 00:19:00 +00:00
Antony Dovgal 2c31b1e194 fix #40451 (addAttribute() may crash when used with non-existent child node) 2007-02-12 21:06:29 +00:00
Antony Dovgal cce7545d18 upgrade to new parameter parsing API
+ mostly ws/cs fixes, sort of MFH
2007-02-12 20:40:11 +00:00
Antony Dovgal 511463854b MFH: fix #40109 (iptcembed fails on non-jfif jpegs) 2007-02-12 20:30:52 +00:00
Antony Dovgal 634615cd42 MFH: fix tests 2007-02-12 14:49:05 +00:00
Antony Dovgal 796080d8c4 MFH: add separate IPv6 test 2007-02-12 14:43:00 +00:00
Antony Dovgal b877bb70de MFH: fix pcre tests 2007-02-12 14:22:19 +00:00
Antony Dovgal 8e49f0c54c MFH 2007-02-12 09:36:23 +00:00
Antony Dovgal 23d484ff2b fix news entry 2007-02-12 08:57:41 +00:00
Ilia Alshanetsky c92668e768 Fixed a memory leak inside readline_completion_function() on non-callable
callback.
2007-02-12 01:23:17 +00:00
Antony Dovgal 45c0253f2c add test 2007-02-11 20:56:46 +00:00
Antony Dovgal f9a9eda86c MFH 2007-02-11 20:12:53 +00:00
Antony Dovgal 77d93ee6b3 fix test 2007-02-11 20:06:19 +00:00
Nuno Lopes 8b9f475ac6 merge the tidyNode::getParent() patch from HEAD 2007-02-11 16:07:30 +00:00
Pierre Joye 18e4a7aacb - Fixed bug #40428, imagepstext() doesn't accept optional parameter
(Pierre)
2007-02-11 11:11:48 +00:00
Antony Dovgal 9d26a78f6a MFH 2007-02-11 09:25:32 +00:00
Antony Dovgal 9c100b20e6 MFH 2007-02-10 20:52:42 +00:00
Nuno Lopes 1bd4f5bef4 fix gcov build (#line directives) 2007-02-10 20:26:09 +00:00
Antony Dovgal 7b12fd5492 MFH 2007-02-10 00:50:38 +00:00
Nuno Lopes da9f515648 new test to keep track of the reported pcre regression 2007-02-09 20:00:17 +00:00
Nuno Lopes b3e66c616d upgrade pcre to version 7.0 2007-02-09 19:48:47 +00:00
Antony Dovgal e6d69595af BFN 2007-02-09 10:15:56 +00:00
Antony Dovgal 2024ec6e2a MFH: fix #40410 (ext/posix does not compile on MacOS 10.3.9) 2007-02-09 10:15:46 +00:00
Ilia Alshanetsky d35449bbfb Upgraded SQLite 3 to version 3.3.12 2007-02-09 03:17:47 +00:00
Marcus Boerger 7aa2282124 - MFH Add include 2007-02-08 22:54:34 +00:00
Marcus Boerger ac3b5ebbde - MFH Rearrange code: mode Countable from spl_array.c to spl_iterator.c 2007-02-08 22:17:40 +00:00
Marcus Boerger 1d1ea0b2ca - MFH: Fix Bug #39836 SplObjectStorage empty after unserialize 2007-02-08 22:14:25 +00:00
Marcus Boerger 38201d8d12 - MFH php --ri <extension> 2007-02-08 16:55:34 +00:00
Nuno Lopes a875e10909 convert all ereg*() calls to preg_match(), so that we become future-proof (ereg is scheduled for removal in PHP 6) 2007-02-08 15:22:03 +00:00
Marcus Boerger 3bd74e422a - MFH Add new test 2007-02-08 08:44:51 +00:00
Ilia Alshanetsky d4dd117d7f Remove already done item from the todo 2007-02-08 02:10:24 +00:00
Antony Dovgal 323467f9c9 add test 2007-02-07 21:13:01 +00:00
Antony Dovgal ffe3e65ac0 fix MFHed segfault 2007-02-07 21:07:31 +00:00
Marcus Boerger 6ded8042b9 - MFH Fix memleak with temp dir 2007-02-07 21:01:06 +00:00
Marcus Boerger ee3226e50e - MFH options/exports 2007-02-07 20:59:59 +00:00
Nuno Lopes 3fdab070a9 MFH: use getenv() instead of _ENV
enable multiple error reporting on the same test
2007-02-07 11:31:22 +00:00
Antony Dovgal ed7c89cc03 MFH: check if GCC on MacOS supports -no-cpp-precomp before using it 2007-02-07 11:16:52 +00:00
Antony Dovgal 0f0fe9c967 MFH: new tests 2007-02-07 11:10:32 +00:00
Ilia Alshanetsky 3f8e222ab3 Back to dev 2007-02-07 01:01:37 +00:00
Ilia Alshanetsky ee626ccb51 5.2.1 2007-02-07 00:45:04 +00:00
Ilia Alshanetsky 629d7cf43f Fixed Bug #40274 (Sessions fail with numeric root keys). 2007-02-06 00:01:18 +00:00
Andrei Zmievski 871fb78154 Update ! docs. 2007-02-05 17:57:51 +00:00
Andi Gutmans a11e0b5ef1 - Make sure to be ANSI C compliant 2007-02-05 05:15:16 +00:00
Frank M. Kromann b436ad2af5 #39213
Fix for '' returned as ' '.
This only works with FreeTDS as microsofts library returns a length of 1 for an empty string!
2007-02-04 21:19:37 +00:00
Frank M. Kromann 850998256c Fix win32 build 2007-02-04 00:21:51 +00:00
Marcus Boerger 0709a0490f - MFH Add PHPAPI to stuff needed by streams API for shared exts
- MFH Readonly issue fix to memory streams option handling (still not
  activated in 5.2.1 though)
2007-02-03 16:40:05 +00:00
andy wharmby 74cafe0840 Fixed bug #37927 (Prevent trap when COM extension processes argument of type VT_DISPATCH|VT_REF) 2007-02-02 15:44:06 +00:00
andy wharmby cda82bc0a3 Fixed bug #34564 (COM extension not returning modified "out" argument) 2007-02-02 15:27:35 +00:00
Ilia Alshanetsky a8c006235c Better generated parser 2007-02-02 00:03:33 +00:00
Ilia Alshanetsky 79dfb302b1 Fixed test mixup 2007-02-02 00:00:33 +00:00
Dmitry Stogov 44297ddea8 Removed dead code 2007-02-01 16:23:28 +00:00
Dmitry Stogov ed30d91cd6 Fixed possible crash because of dereference of NULL 2007-02-01 15:23:46 +00:00
Dmitry Stogov 009f5a3937 Enable canary protection in DEBUG mode only. 2007-02-01 15:08:10 +00:00
Antony Dovgal c313af32a9 MFH 2007-02-01 14:21:01 +00:00
Antony Dovgal 0c84a4d927 MFH: free class_name when necessary 2007-02-01 14:07:43 +00:00
Antony Dovgal 6e8654aae1 plug leak 2007-02-01 14:02:35 +00:00
Antony Dovgal 82f70c9493 fix leaks on error 2007-02-01 13:45:25 +00:00
Ilia Alshanetsky c219c6f4a8 Fixed bug #40285 (The PDO prepare parser goes into an infinite loop in
some instances).
2007-02-01 00:12:39 +00:00
Antony Dovgal 56bb90399e BFN 2007-01-31 13:57:58 +00:00
Antony Dovgal cdaff68610 MFH: improve tests 2007-01-31 13:56:16 +00:00
Antony Dovgal 4f6f150490 MFH: fix segfault on rebindinging and rexecuting a statement with LOBs
fix compile failure in ZTS mode when collections support is missing
2007-01-31 13:55:43 +00:00
Ilia Alshanetsky 9eb6d36c39 Prepare news file for release 2007-01-30 01:27:29 +00:00
Rui Hirokawa 693c9a7d2c fixed incompatibility with PHP 5.2.0 for encoding conversion between ShiftJIS(CP932), eucJP, ISO-2022-JP. 2007-01-29 22:53:47 +00:00
Dmitry Stogov d44cb7fa7b Prevent flush of closed handle on php_module_shutdown() 2007-01-29 19:36:01 +00:00
Pierre Joye 3265d023a4 - #40228 2007-01-29 15:25:35 +00:00
Pierre Joye 601a77b3a3 - #40228, ZipArchive::extractTo does create empty directories
recursively
2007-01-29 15:25:06 +00:00
Dmitry Stogov 52f6312866 Fixed bug #40259 (ob_start call many times - memory error). (Dmitry) 2007-01-29 11:21:31 +00:00
Antony Dovgal 58e96c4c10 nullify param.parameter and avoid destroying it twice 2007-01-27 21:53:26 +00:00
Marcus Boerger 0903f26151 - Disable memory streams set option until 5.2.2 2007-01-27 20:31:51 +00:00
Marcus Boerger d10beb67c3 - MFH truncate support for mem/temp streams 2007-01-27 20:25:11 +00:00
Antony Dovgal c98dcd5a21 use length - 1 when we fetch it from hashes 2007-01-26 15:33:18 +00:00
Dmitry Stogov cb443c6e5a Fixed bug #40231 (file_exists incorrectly reports false) 2007-01-26 15:15:16 +00:00
Antony Dovgal c5732112a9 fix leak
readuce size of the buffer to prevent ORA-01461
2007-01-26 15:07:45 +00:00
Ilia Alshanetsky 7c166ddf86 Back to dev 2007-01-26 00:21:20 +00:00
Ilia Alshanetsky 15bcf9e38e 5.2.1RC4 2007-01-26 00:15:03 +00:00
Antony Dovgal 46baad774f add package2.xml 2007-01-25 16:55:40 +00:00
Antony Dovgal 40ca697a67 add missing ifdefs 2007-01-25 14:38:45 +00:00
Antony Dovgal 4cb734b05f setlocale() returns static buffer, which must be copied 2007-01-25 13:37:04 +00:00
Antony Dovgal 0bc0e57b85 MFH: fix #40189 (possible endless loop in zlib.inflate stream filter) 2007-01-25 12:22:21 +00:00
Antony Dovgal de3c2038af PHP4 compatibility 2007-01-25 09:31:23 +00:00
Rasmus Lerdorf 49dbf804ad Fix typo 2007-01-25 06:12:58 +00:00
Ilia Alshanetsky 49c0823800 Added safety checks to the code 2007-01-25 00:27:19 +00:00
Ilia Alshanetsky 094a5717b1 Eliminate strcat() and strcpy() 2007-01-25 00:26:51 +00:00
Antony Dovgal 93951f1931 prepare to release 1.2.3 2007-01-24 14:34:13 +00:00
Ilia Alshanetsky eb6b99d7df strcat() -> strlcat() 2007-01-24 00:45:54 +00:00
Antony Dovgal d32dc5bda0 MFH 2007-01-24 00:33:51 +00:00
Nuno Lopes a2b7b84685 add test 2007-01-23 19:26:24 +00:00
Nuno Lopes 8e8b369bc2 fix a few crashes 2007-01-23 19:23:29 +00:00
Dmitry Stogov 1ef02490c3 Fixed bug #40200 (The FastCgi version has different realpath results than thread safe version) 2007-01-23 18:14:52 +00:00
Dmitry Stogov dfa95b718f Fixed wrong realpath() result for unexistent files on win32 2007-01-23 17:03:48 +00:00
Hannes Magnusson 14fb4afd5c Fix typo 2007-01-23 12:37:21 +00:00
Ilia Alshanetsky 17864fc3e9 emalloc() -> safe_emalloc() 2007-01-23 00:23:17 +00:00
Antony Dovgal 725217571e fix PECL bug #7295 (ORA-01405: fetched column value is NULL on LOB fields) 2007-01-22 12:49:22 +00:00
Dmitry Stogov 933c26de41 Fixed bug #39367 (clearstatcache() doesn't clear realpath cache)
Fixed bug #40092 (chroot() doesn't clear realpath cache)
2007-01-22 09:31:46 +00:00
Antony Dovgal a4ae84d014 MFH 2007-01-22 09:08:28 +00:00
Antony Dovgal b24fd9a3d6 fix test 2007-01-22 08:55:47 +00:00
Antony Dovgal 78e610b4f9 fix classname 2007-01-22 08:36:21 +00:00
Antony Dovgal eae1072ccc MFH 2007-01-22 08:21:57 +00:00
Antony Dovgal 2c36778e47 MFH: fix #40191 (use of array_unique() with objects triggers segfault) 2007-01-22 08:17:26 +00:00
Ilia Alshanetsky 8ddcd35d17 Fixed typos 2007-01-21 19:52:44 +00:00
Marcus Boerger 8ed3a86161 - MFH Add *.mem 2007-01-21 13:05:32 +00:00
Marcus Boerger d2c8a3bb63 - Add tests 2007-01-21 12:30:19 +00:00
Antony Dovgal d2c5721f41 MFH: catch overflow right away 2007-01-20 23:10:02 +00:00
Ilia Alshanetsky 9bf088ce36 Fixed bug #39450 (getenv() fills other super-globals). 2007-01-20 22:16:24 +00:00
Antony Dovgal 1b002cf39f use getenv() 2007-01-20 22:12:55 +00:00
Rob Richards 75fdefba0c MFH: fix accessing public key from x509 resource
add test
fix test under win32
2007-01-20 22:08:29 +00:00
Antony Dovgal 6bef5f8e80 typo in the test name 2007-01-20 19:19:29 +00:00
Ilia Alshanetsky a719e16f7c CS 2007-01-20 16:22:51 +00:00
Nuno Lopes 65975bfc15 new tests. bump code coverage to 81% 2007-01-20 12:50:19 +00:00
Nuno Lopes 4b8911d062 fix another crash 2007-01-20 12:49:35 +00:00
Nuno Lopes f3f2d827db fix crash. tests will follow 2007-01-20 12:27:18 +00:00
Antony Dovgal 216d041717 MFH 2007-01-19 22:33:25 +00:00
Antony Dovgal d291b4351e MFH 2007-01-19 21:00:35 +00:00
Antony Dovgal 4c6e1df9e2 MFH: improve utf8_mime2text() signature detection 2007-01-19 20:45:09 +00:00
Antony Dovgal a5f3e15114 MFH 2007-01-19 19:43:30 +00:00
Nuno Lopes 3e45bc0a51 update install instructions from phpdoc XMl sources 2007-01-19 19:25:02 +00:00
Nuno Lopes d27d7619be fix segfaults with new libtidy. the patch is backwards compatible 2007-01-19 18:50:26 +00:00
Antony Dovgal 7e74ff0ff1 MFH 2007-01-19 18:03:33 +00:00
Antony Dovgal 504e9e31f3 MFH: fix #40169 (CURLOPT_TCP_NODELAY only available in curl >= 7.11.2) 2007-01-19 15:38:51 +00:00
Pierre Joye 4dafc7a2fa - save/restore the alpha blending mode correctly in imagefill and
imagefilltoborder
2007-01-19 15:03:56 +00:00
Antony Dovgal ebd7c13e8b MFH: fix #40168 2007-01-19 14:50:11 +00:00
Ilia Alshanetsky aeddf73dc4 Fix win32 build 2007-01-19 00:17:43 +00:00
Ilia Alshanetsky 5500a08ba3 Back to dev 2007-01-19 00:13:49 +00:00
Ilia Alshanetsky cbd3a64136 5.2.1RC3 2007-01-19 00:03:21 +00:00
Ilia Alshanetsky ef3fcf2894 Added read-timeout context option "timeout" for HTTP streams.
# A patch mostly by Hannes
2007-01-19 00:02:13 +00:00
Ilia Alshanetsky 55eef07a71 Old bug fixing news 2007-01-18 23:29:34 +00:00
Ilia Alshanetsky 4383f51c44 Syntax highlighting fix for hex numbers.
# Patch by Matt Wilmas
2007-01-18 23:28:08 +00:00
Ilia Alshanetsky 6f98a771e6 Fixed bug #39993 (tr_TR.UTF-8 locale has problems with PHP). 2007-01-18 23:20:24 +00:00
Antony Dovgal 84a827e0d4 MFH 2007-01-18 16:21:32 +00:00
Nuno Lopes 58d4b44ae7 only 2 bits are needed for shutdown(2) method (only 3 possible values). this is new code in 5.2.1, so don't worry.. 2007-01-18 16:05:48 +00:00
Antony Dovgal 5f12c71382 MFH 2007-01-18 15:55:09 +00:00
Antony Dovgal 05c11fdfb2 MFH 2007-01-18 15:41:01 +00:00
Antony Dovgal c592304ac0 MFH: use snprintf() 2007-01-18 15:29:30 +00:00
Antony Dovgal e506abc408 MFH: improve check configure for new version of utf8_mime2text() 2007-01-18 14:05:21 +00:00
Antony Dovgal 04add4c727 MFH: use strlcat() 2007-01-18 14:03:38 +00:00
Antony Dovgal 5a23201d82 moved ext/informix to PECL 2007-01-18 12:28:10 +00:00
Antony Dovgal b6a89efcda fix folding 2007-01-18 12:20:15 +00:00
Antony Dovgal fc9970a6e9 MFH: fix #40129 (iconv extension doesn't compile with CodeWarrior on Netware)
patch by gk at gknw dot de
2007-01-17 20:32:53 +00:00
Antony Dovgal d6a4586197 MFH 2007-01-17 08:25:32 +00:00
Ilia Alshanetsky b4f76016fd Fixed output code inside odbc_result_all() 2007-01-16 18:56:06 +00:00
Antony Dovgal bb691f155c MFH: return false if realpath()/getcwd() fail 2007-01-16 14:42:38 +00:00
Antony Dovgal 5b4043554a MFH: free temp cwd_state struct on error 2007-01-16 14:02:19 +00:00
Antony Dovgal bd6c862fee MFH 2007-01-16 11:19:10 +00:00
Antony Dovgal 7ad1c3c5f2 MFH: add trailing '\0' to stream hashes 2007-01-15 17:07:08 +00:00
Antony Dovgal 7dd989fd4a revert the patch temporarily, I need to test a bigger patch in HEAD.. 2007-01-15 16:03:42 +00:00
Antony Dovgal c463e98e99 MFH 2007-01-15 14:59:49 +00:00
Antony Dovgal 4fca731b0b fix test 2007-01-15 10:31:14 +00:00
Antony Dovgal 7b70e5be45 missing comma 2007-01-15 10:08:34 +00:00
Antony Dovgal 9ca5652f70 fix error message and #40111 2007-01-15 10:04:44 +00:00
Frank M. Kromann c2cfc1eeee Fix mysql -> dblib 2007-01-15 01:56:09 +00:00
Ilia Alshanetsky d4fbb3ca53 Fixed bug #40127 (apache2handler doesnt compile on Netware). 2007-01-14 16:59:05 +00:00
Ilia Alshanetsky c5588fae3a Fixed bug #40121 (PDO_DBLIB driver wont free statements). 2007-01-14 16:57:50 +00:00
Hannes Magnusson a6ff74de28 Fix typo in error message 2007-01-14 14:22:40 +00:00
Ilia Alshanetsky f7d1d3ef44 Improve validation of argnum, width and precision. 2007-01-13 16:31:17 +00:00
Nuno Lopes 8815fdf5e0 OMG, this line was really bogus (and allocating huge amounts of memory unecessarly) 2007-01-13 11:21:21 +00:00
Nuno Lopes e22c9cd775 fix valgrind error in test bug24594.phpt
while at it, remove some dead code and change the pts vector to char to save (much) memory
# Pierre: one more to merge ;)
2007-01-13 11:16:15 +00:00
Frank M. Kromann 2cca49ac01 MFH: Kill warnings when mt is not installed or is found as the tape command under cygwin 2007-01-13 03:32:28 +00:00
Dmitry Stogov 2f586e965e Fixed bug #39969 (ini setting short_open_tag has no effect when using --enable-maintainer-zts) 2007-01-12 14:37:46 +00:00
Hannes Magnusson 6b7144d0b8 Fix build
#Thanks Andy
2007-01-12 14:31:28 +00:00
Antony Dovgal e351aedbdc MFH 2007-01-12 12:32:15 +00:00
Antony Dovgal e8d2c9489d MFH: nuke skeleton leftovers 2007-01-12 12:17:32 +00:00
Hannes Magnusson b865d176de Typo 2007-01-12 12:11:18 +00:00
Antony Dovgal 7d4ea80b07 MFH 2007-01-12 12:06:45 +00:00
Antony Dovgal 5941c1d28c MFH 2007-01-12 09:10:16 +00:00
Ilia Alshanetsky 25e7373009 Use long instead of int where long is expected. 2007-01-12 02:03:59 +00:00
Ilia Alshanetsky 2ae036f038 Fixed bug #40098 (php_fopen_primary_script() not thread safe).
Adjusted previous fixes for similar issue to handle sysconf() failures
2007-01-12 01:46:11 +00:00
Antony Dovgal ed30473f7c MFH 2007-01-11 22:23:20 +00:00
Dmitry Stogov 2e1a2438b5 Fixed bug #35634 (Erroneous "Class declarations may not be nested" error raised). (Carl P. Corliss) 2007-01-11 16:47:32 +00:00
Antony Dovgal 870bd0b99f MFH 2007-01-11 16:45:37 +00:00
Antony Dovgal 7c92982b5b MFH 2007-01-11 15:51:37 +00:00
Antony Dovgal f361d9e4f0 MFH: fix #39988 (type argument of oci_define_by_name() is ignored)
patch and tests by Chris Jones
2007-01-11 12:01:08 +00:00
Antony Dovgal 12d54fa683 MFH: fix #40078 (ORA-01405 when fetching NULL values using oci_bind_array_by_name()) 2007-01-11 11:27:52 +00:00
Sara Golemon 5e74c607a2 MFH 2007-01-11 02:33:07 +00:00
Johannes Schlüter a95781d9bf - MFH: Bump year 2007-01-10 22:17:27 +00:00
Ilia Alshanetsky b5228f0c6c Fixed bug #40091 (spl_autoload_register with 2 instances of the same class). 2007-01-10 18:14:37 +00:00
Ilia Alshanetsky 1c46fc5a45 Another bug fixed by Dmitry 2007-01-10 16:14:34 +00:00
Dmitry Stogov 7c750656f1 Fixed tests 2007-01-10 16:00:31 +00:00
Dmitry Stogov e470e22e20 - Fixed bug #35106 (nested foreach fails when array variable has a reference).
- Fixed bug #36214 (__get method works properly only when conditional operator is used).
- Fixed bug #39449 (Overloaded array properties do not work correctly).
- Fixed bug #39990 (Cannot "foreach" over overloaded properties).
2007-01-10 15:58:08 +00:00
Hannes Magnusson 4e0f1992ed Add missing ifdefs for shutdown() 2007-01-10 15:25:07 +00:00
Hannes Magnusson 3e0e2bb49d Fix ifdefs 2007-01-10 14:40:06 +00:00
Hannes Magnusson 5d75262062 Fix build on system where HAVE_SETLOCALE is not defined 2007-01-10 14:37:31 +00:00
Antony Dovgal 48b4cb96e0 BFN 2007-01-10 14:11:44 +00:00
Antony Dovgal 3f3509606d use RETURN_* instead of RETVAL_* and fix #40083 2007-01-10 12:03:11 +00:00
Dmitry Stogov ae792a06b0 Fixed SIGSEGV 2007-01-10 07:04:49 +00:00
Ilia Alshanetsky 78ca1de763 Fixed bug #40079 (php_get_current_user() not thread safe).
# Original patch from wharmby at uk dot ibm dot com
2007-01-09 23:27:22 +00:00
Sara Golemon 6a8f688af2 MFH: Add CURLOPT_TCP_NODELAY constant 2007-01-09 23:13:05 +00:00
Marcus Boerger 66bad4f93b - Ups wrong place 2007-01-09 18:50:45 +00:00
Marcus Boerger da1992fdb3 - BFN 2007-01-09 18:35:32 +00:00
Marcus Boerger 023144ffa9 - MFH Fix for #40073 2007-01-09 17:55:29 +00:00
Andrei Zmievski 39fa36a0be Fix 'b' prefix in highlighting and tokenizer. (Matt W) 2007-01-09 17:37:53 +00:00
Dmitry Stogov 5709b64739 Close open files in case of failure (Amit) 2007-01-09 16:27:17 +00:00
Ilia Alshanetsky 81729c1ece Prevent SESSION/GLOBALS overload via session decoding 2007-01-09 15:31:12 +00:00
Dmitry Stogov 38f942b880 Fixed bug #40076 (zend_alloc.c: Value of enumeration constant must be in range of signed integer) 2007-01-09 15:29:14 +00:00
Ilia Alshanetsky 96a8399e2f Added key_length intialization for intergers 2007-01-09 15:20:45 +00:00
Dmitry Stogov 8c086cae23 Fixed bug #40002 (Try/Catch performs poorly) 2007-01-09 15:06:07 +00:00
Dmitry Stogov cbd9822ed9 Bump year. 2007-01-09 11:53:08 +00:00
Antony Dovgal 1e352b3ae7 MFH: zerofill info_data and fix possible segfault
partly fixes #40073
2007-01-09 11:37:17 +00:00
Nuno Lopes 43369cef58 avoid calling MSHUTDOWN when built without libt1 2007-01-08 22:52:22 +00:00
Nuno Lopes 1790b05591 remove useless MSHUTDOWN function 2007-01-08 22:34:07 +00:00
Nuno Lopes ec66c5be3d make the hash_ops structures const and save some memory
# ram memory is so expensive these days...
2007-01-08 22:29:25 +00:00
Andrei Zmievski cdfed7f757 MFH 2007-01-08 22:24:11 +00:00
Ilia Alshanetsky 60e20922eb Use safe_emalloc() rather then emalloc() 2007-01-08 14:24:59 +00:00
Ilia Alshanetsky 13f006ac69 Fixed bug #38325 (spl_autoload_register() gaves wrong line for "class
not found").
2007-01-08 04:27:29 +00:00
Ilia Alshanetsky c5fb061cbf Provide means for opening file for zend with error supression. Allows us to
avoid INI hackery such as the one used in SPL.
2007-01-08 03:39:09 +00:00
Edin Kadribasic fec9895fc3 MFH: Make mt more silent 2007-01-08 00:27:06 +00:00
Ilia Alshanetsky 8df326e003 Fixed bug #39394 (Missing check for older variants of openssl). 2007-01-07 18:38:22 +00:00
Hannes Magnusson a688c62f57 Use relative timestamp
#Thanks Nuno :)
2007-01-07 07:58:28 +00:00
Ilia Alshanetsky 5babb6d10d Fixed bug #39979 (PGSQL_CONNECT_FORCE_NEW will causes next connect to
establish a new connection).
2007-01-07 04:36:40 +00:00
Ilia Alshanetsky 5068511748 Fixed bug #40036 (empty() does not work correctly with ArrayObject when
using ARRAY_AS_PROPS).
2007-01-07 03:52:44 +00:00
Ilia Alshanetsky cbf6f5b538 Fixed memory leaks on error 2007-01-07 03:12:14 +00:00
Nuno Lopes a431a09f47 MFH 2007-01-06 20:44:51 +00:00
Nuno Lopes 3eaf46af3e fix a few memleaks and double-free()s on error conditions 2007-01-06 20:16:25 +00:00
Nuno Lopes 9b253882fc fix build with libming 0.3 and older 2007-01-06 19:25:33 +00:00
Rob Richards 45a95f0898 update xmlwriter_write_dtd_entity parameters 2007-01-06 18:05:02 +00:00
Rob Richards 57792acabc MFH: parameter entity argument (pe) should be bool
update test
2007-01-06 18:03:43 +00:00
Ilia Alshanetsky d1891c3d8a removed dl() block 2007-01-06 17:35:44 +00:00
Hannes Magnusson 630254d55e Fix skipif 2007-01-06 16:56:38 +00:00
Hannes Magnusson c0e9579204 ext/XMLWriter updates 2007-01-06 16:50:55 +00:00
Hannes Magnusson 252b9e9fb1 MFH: bug #39504 (xmlwriter_write_dtd_entity() creates Attlist tag, not entity)
Add & improve test
2007-01-06 15:53:33 +00:00
Dmitry Stogov f694c1f1db Improved proc_open(). Now on Windows it can run external commands not through CMD.EXE 2007-01-06 09:02:02 +00:00
Sara Golemon 13f447eb64 MFH: (r-1.16) ttyname_r() is broken on BSD 2007-01-05 21:31:56 +00:00
Hannes Magnusson 3f9a4baa31 Fix test according to bug#40009 2007-01-05 15:22:35 +00:00
Hannes Magnusson 91b8c3b2b5 Fix tests
#We'll need to update these every year..
2007-01-05 15:21:45 +00:00
Ilia Alshanetsky 7d901eacbe %f -> %F 2007-01-05 15:06:55 +00:00
Ilia Alshanetsky 56a147fbff Back to dev 2007-01-04 23:55:56 +00:00
Ilia Alshanetsky e6c845cb2c 5.2.1RC2 2007-01-04 23:52:29 +00:00
Ilia Alshanetsky 7ba84b8807 Added missing open_basedir checks 2007-01-04 23:49:35 +00:00
Nuno Lopes 17ff2f42ff remove --show-details from lcov's genhtml, as currently we don't separate the coverage data per test, making this option useless
# gathering per test coverage data is possible, but way too slow and would require modifications to run-tests.php
2007-01-04 14:11:47 +00:00
Ilia Alshanetsky a078b56326 Fixed bug #40009 (http_build_query(array()) returns NULL). 2007-01-03 23:16:56 +00:00
Nuno Lopes b2fa0cb89d reduce the test data size even further or when running with valgrind it times out 2007-01-03 22:32:49 +00:00
Nuno Lopes b6dff166bf MFH: fix infinite cycle
#this was the infinite cycle that was bugging me in the gcov machine...
2007-01-03 22:05:24 +00:00
Antony Dovgal 7cf0e005fa MFH 2007-01-03 20:45:22 +00:00
Hannes Magnusson 9ad0ffbd33 MFH: revert pcrelib version string 2007-01-03 20:08:37 +00:00
Antony Dovgal 614e0b29ac MFH 2007-01-03 18:32:27 +00:00
Derick Rethans 3dcf540547 - Fixed bug #40012 (php_date.c doesnt compile on Netware). 2007-01-03 14:46:23 +00:00
Antony Dovgal 46e5e63f94 MFH 2007-01-03 13:48:54 +00:00
Antony Dovgal 97f0cf1208 fix test 2007-01-03 13:47:11 +00:00
Ilia Alshanetsky 9046eaa260 Use proper length 2007-01-03 04:05:12 +00:00
Ilia Alshanetsky b1cac0f72c Added filter callback
Unlink temporary file on error
2007-01-03 03:55:07 +00:00
Nuno Lopes 8a806d186e +- Fixed bug #37619 (proc_open() closes stdin on fork() failure). 2007-01-02 15:29:09 +00:00
Nuno Lopes f3d0a26e13 add EXTRA_LDFLAGS_PROGRAM to config.nice (as LDFLAG is quite useless) 2007-01-01 20:10:01 +00:00
Ilia Alshanetsky 18548c1041 fixed compiler warnings 2007-01-01 19:40:29 +00:00
Ilia Alshanetsky cb70d99ee2 fixed compiler warning 2007-01-01 19:35:47 +00:00
Ilia Alshanetsky 2df7386475 Update copyright year
# The rest of the files were already updated by Sebastian
2007-01-01 19:32:10 +00:00
Ilia Alshanetsky e095b94609 Fixed compiler warnings 2007-01-01 19:24:50 +00:00
Ilia Alshanetsky 5787b56554 Added missing entity functions (MFH from HEAD)
Fixed php_xmlwriter_streams_IO_close() docs
2007-01-01 19:21:48 +00:00
Sebastian Bergmann 4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky 6e0af2f4d5 Simplify code and change strchr() to memchr() 2006-12-31 22:47:13 +00:00
Ilia Alshanetsky ba64553913 Added boundary checks to php_binary deserializer 2006-12-31 22:25:55 +00:00
Ilia Alshanetsky 96489b4178 Fixed bug #39984 (redirect response code in header() could be ignored in
CGI sapi).
2006-12-31 19:22:01 +00:00
Marcus Boerger b8003b8461 - MFH Bugfix: #39996 Wrong PHPDoc comment for SplFileInfo::getType() 2006-12-31 18:20:22 +00:00
Nuno Lopes 169b207532 - Fixed bug #36427 (proc_open() / proc_close() leak handles on windows). 2006-12-31 15:27:13 +00:00
Nuno Lopes 877ee65622 Fixed bug #38542 (proc_get_status() returns wrong PID on windows) 2006-12-31 14:47:17 +00:00
Ilia Alshanetsky 5298554fb6 Added missing resource validation checks 2006-12-30 20:46:47 +00:00
Ilia Alshanetsky 3ca748d49c Added missing resource type checks 2006-12-30 20:21:25 +00:00
Rob Richards 3d11fb35ae BFN 2006-12-30 15:43:10 +00:00
Rob Richards 604f18c20d fix bug #39760 (cloning fails on nested SimpleXML-Object)
add test
2006-12-30 15:41:17 +00:00
Ilia Alshanetsky 7f376183f8 C++ comment 2006-12-30 02:28:15 +00:00
Ilia Alshanetsky 78d8808f42 Mark test as being 32bit only 2006-12-30 02:00:51 +00:00
Ilia Alshanetsky 6895045565 Simplify & optimize code
# Patch by Matt Wilmas
2006-12-30 01:57:01 +00:00
Ilia Alshanetsky 790b0b9edf Fixes test #50 2006-12-30 01:56:18 +00:00
Ilia Alshanetsky 79d524dc1e Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for
timestamp fields).
2006-12-29 00:34:30 +00:00
Antony Dovgal 2820e6c1fa MFH 2006-12-28 22:36:53 +00:00
Antony Dovgal 7b281be1ee that was not intentional
thanks Nuno
2006-12-28 22:12:08 +00:00
Antony Dovgal 28421f4f19 MFH 2006-12-28 21:02:14 +00:00
Antony Dovgal e5f95ec3e4 MFH 2006-12-28 20:45:27 +00:00
Nuno Lopes 559ab4b3f9 make this test run a little faster (is currently timeout with valgrind) 2006-12-28 19:52:37 +00:00
Ilia Alshanetsky 794845234e Added buffer length checks 2006-12-28 15:21:21 +00:00
Ilia Alshanetsky b154f188d1 Simplify code and eliminate strcat() usage 2006-12-28 15:09:29 +00:00
Nuno Lopes dae5040b61 MFH: force tidy.clean_output=0 2006-12-28 15:07:45 +00:00
Antony Dovgal ef9646c867 MFH 2006-12-28 14:26:36 +00:00
Antony Dovgal fdfa403388 MFH 2006-12-28 14:17:38 +00:00
Antony Dovgal 46a6bd7f9d MFH 2006-12-28 13:30:25 +00:00
Antony Dovgal 112462d102 MFH 2006-12-28 12:18:54 +00:00
Antony Dovgal d3a651a39e MFH 2006-12-28 12:01:50 +00:00
Ilia Alshanetsky 96d9d6f0f1 Avoid strcpy() & strcat() 2006-12-28 00:17:48 +00:00
Nuno Lopes 66e555c66f die("skip this is for PHP < 4.2.3"); 2006-12-27 15:22:28 +00:00
Nuno Lopes 54f3ff34b7 oops: remove uneeded code in the skip condition 2006-12-27 15:17:04 +00:00
Nuno Lopes d07a46ebab add fr_FR@euro to the setlocale list 2006-12-27 15:11:35 +00:00
Antony Dovgal b16f925e37 MFH 2006-12-27 10:31:10 +00:00
Antony Dovgal 65f50e7e31 MFH more test improvements by Chris Jones 2006-12-27 09:49:53 +00:00
Ilia Alshanetsky d101e113cf Fixed compiler warning 2006-12-26 17:17:52 +00:00
Ilia Alshanetsky 7fe60ada00 Don't forget to free url structure 2006-12-26 16:58:23 +00:00
Ilia Alshanetsky 5e576be36f Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro). 2006-12-26 16:55:56 +00:00
Ilia Alshanetsky ffd41a503f Session deserializer protection. 2006-12-26 16:53:47 +00:00
Ilia Alshanetsky dc5be15a6f is_numeric_string() optimization 2006-12-26 16:45:39 +00:00
Ilia Alshanetsky ff9d0fcc78 is_numeric_string() optimization
# Original Patch by Matt Wilmas
2006-12-26 16:44:20 +00:00
Antony Dovgal 24124518ab MFH 2006-12-26 12:29:42 +00:00
Pierre Joye f458ff3dac - MFH: add better zlib detection 2006-12-26 10:42:50 +00:00
Pierre Joye 5a6f0e3059 - #39952 zip ignoring --with-libdir on zlib checks (judas dot
iscariote at gmail dot com)
2006-12-26 09:52:05 +00:00
Dmitry Stogov 67583e7aa5 Code review:
. fixed integer overflow
  . fixed buffer overflow/underflow
  . added more strict IP validation
  . reimplemented float number validation
2006-12-26 09:16:25 +00:00
Ilia Alshanetsky b85f1345a6 Ensure that OnUpdateLongGEZero is greater or equal to 0.
Added a update wrapper for ensuring >0 values
2006-12-25 23:55:59 +00:00
Ilia Alshanetsky e2c110bebf Allocation safety checks 2006-12-25 23:43:10 +00:00
Antony Dovgal 32d078f8e7 MFH 2006-12-25 22:40:23 +00:00
Ilia Alshanetsky 52d53543ac Allocation safety checks 2006-12-25 22:36:57 +00:00
Antony Dovgal 9c2b6efb77 MFH 2006-12-25 22:27:24 +00:00
Antony Dovgal 6ac8ffdfea MFH 2006-12-25 22:12:46 +00:00
Antony Dovgal 7dc7882745 MFH 2006-12-25 21:47:02 +00:00
Ilia Alshanetsky 7efb0a14f4 Use safe_emalloc() 2006-12-25 21:41:04 +00:00
Antony Dovgal 807a0966a9 fix weird strlen() usage 2006-12-25 21:18:01 +00:00
Antony Dovgal 6c50fa955b MFH 2006-12-25 21:08:02 +00:00
Ilia Alshanetsky 652c7096b2 Fixed test for 64bit systems 2006-12-25 21:07:53 +00:00
Antony Dovgal 3fd433c07d MFH 2006-12-25 20:53:50 +00:00
Antony Dovgal 2e3cd64566 MFH 2006-12-25 20:44:45 +00:00
Antony Dovgal 35db4d21b0 MFH 2006-12-25 20:03:43 +00:00
Dmitry Stogov 4480c5eb5d Fixed bug #39825 (foreach produces memory error) 2006-12-25 19:23:03 +00:00
Ilia Alshanetsky 0776e56437 Use %F (ignores locale) for internal representation of floats 2006-12-25 16:48:18 +00:00
Hannes Magnusson ff0a238043 Add missing NEWS entrys and update the README.UPDATE file 2006-12-25 16:03:38 +00:00
Antony Dovgal 9f76195869 MFH: fix bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR install path) 2006-12-25 15:41:56 +00:00
Antony Dovgal 601f4cd129 MFH 2006-12-25 15:28:57 +00:00
Antony Dovgal c52bc49f50 fix test 2006-12-25 14:27:51 +00:00
Ilia Alshanetsky e3569ae80a Define SENDBUFLEN for older c-client libs 2006-12-25 14:23:18 +00:00
Dmitry Stogov e57a60698b Fixed bug #39944 (References broken) 2006-12-25 14:16:27 +00:00
Dmitry Stogov 5436160dc6 Fixed heap overflow 2006-12-25 13:11:23 +00:00
Dmitry Stogov 5823a2d28a Fixed possible size_t overflow 2006-12-25 12:16:33 +00:00
Antony Dovgal 04d4811532 MFH 2006-12-25 11:50:31 +00:00
Antony Dovgal 6e8a7d7b20 fix tests 2006-12-25 11:16:23 +00:00
Ilia Alshanetsky c5db57b495 Fixed buffer boundary protection 2006-12-24 22:15:06 +00:00
Ilia Alshanetsky 4f46c4e90f Added empty string checks 2006-12-24 20:50:02 +00:00
Rob Richards 51bca1b406 BFN 2006-12-24 12:32:56 +00:00
Rob Richards 47fb655a56 fix bug #33734 and related (Something strange with COM Object)
- caused by fix in com_handlers.c rev 1.22.2.5
2006-12-24 12:32:10 +00:00
Rob Richards a03f730875 BFN 2006-12-24 10:02:53 +00:00
Rob Richards b7ec6f90e0 - fix bug #33386 (ScriptControl only sees last function of class): com_wrapper.c
- fix bug #37588 (COM Property propputref converts to PHP function
  and can't be accesed): com_handlers.c
- fix bug #39596 (Creating Variant of type VT_ARRAY): com_variant.c
- add tests
2006-12-24 10:00:59 +00:00
Hannes Magnusson 6077df1a03 Fix typo 2006-12-24 01:29:20 +00:00
Ilia Alshanetsky eaf3d32157 Safety checks 2006-12-23 23:28:39 +00:00
Ilia Alshanetsky 1379ad02e3 Added checks for negative max length and overflow checks for overly long
strings.
2006-12-23 18:50:33 +00:00
Derick Rethans 7180422fdc - Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores
--with-libdir).
2006-12-23 17:58:47 +00:00
Antony Dovgal 46b25155d2 MFH 2006-12-23 14:02:50 +00:00
Ilia Alshanetsky 72895cda6d Fixed bug #39884 (ReflectionParameter::getClass() throws exception for type
hint self).
2006-12-22 15:37:48 +00:00
Ilia Alshanetsky f40ebf4171 Fixed bug #36392 (wrong number of decimal digits with %e specifier in
sprintf).
2006-12-22 15:29:41 +00:00
Ilia Alshanetsky 7772e33ace Small optimization of the date() function 2006-12-22 15:21:34 +00:00
Antony Dovgal a7faaa1b14 new tests 2006-12-22 13:30:10 +00:00
Antony Dovgal fb18a8e760 more tests 2006-12-22 13:07:53 +00:00
Ilia Alshanetsky fd8f758ecd Fixed bug #39873 (number_format() breaks with locale & decimal points). 2006-12-22 04:03:15 +00:00
Antony Dovgal ed11386c3d MFH 2006-12-21 22:08:26 +00:00
Antony Dovgal b019cd99c6 MFH 2006-12-21 21:49:22 +00:00
Antony Dovgal 8854c3d51a MFH 2006-12-21 21:37:45 +00:00
Antony Dovgal 66d9c24ccc improve tests 2006-12-21 19:23:26 +00:00
Seiji Masugata 133d6bf2ca Fixed bug #39361, #39400 (mbstring function overloading problem). 2006-12-21 17:26:05 +00:00
Dmitry Stogov 5a1767e0d5 Fixed comments 2006-12-21 13:05:27 +00:00
Rob Richards 60941b02dc fix issues identitified by coverity 2006-12-21 12:51:26 +00:00
Antony Dovgal 6546914e68 new tests 2006-12-21 12:41:36 +00:00
Antony Dovgal bed14f8ab7 MFH 2006-12-21 11:08:00 +00:00
Dmitry Stogov 3ffc1c8f4a Default memory_limit value is set to 128M 2006-12-21 09:12:42 +00:00
Dmitry Stogov 91dc80ba9a Removed dependency from SHELL32.DLL 2006-12-21 09:01:10 +00:00
Ilia Alshanetsky 5ead613386 Fix a possible memory leak 2006-12-21 02:09:36 +00:00
Ilia Alshanetsky dba3fe385d Fixed possible memory leak 2006-12-21 01:57:05 +00:00
Antony Dovgal 6aec52bde7 MFH 2006-12-21 01:18:28 +00:00
Ilia Alshanetsky 1783b0e481 Optimize out zend_hash_num_elements() call 2006-12-21 01:16:10 +00:00
Antony Dovgal f807343197 MFH 2006-12-21 01:08:04 +00:00
Antony Dovgal ffa7e957c5 fix possible leaks 2006-12-21 01:00:58 +00:00
Antony Dovgal 41b55d9b78 MFH 2006-12-21 00:47:02 +00:00
Antony Dovgal 0abe62e027 MFH 2006-12-20 23:36:56 +00:00
Antony Dovgal a0e2ccf490 MFH 2006-12-20 23:30:30 +00:00
Antony Dovgal d040ec9b8e MFH 2006-12-20 23:19:56 +00:00
Antony Dovgal bbb923c7a8 MFH 2006-12-20 23:01:31 +00:00
Ilia Alshanetsky 87ffae250c fixed ZTS build 2006-12-20 19:48:12 +00:00
Antony Dovgal 7d2142a56e protect _SESSION, HTTP_SESSION_VARS and GLOBALS
maintain an internal reference of _SESSION, so that it won't be possible to destroy it from userspace
2006-12-20 19:31:28 +00:00
Ilia Alshanetsky ea491dba64 Fixed bug #39898 (FILTER_VALIDATE_URL validates \r\n\t etc). 2006-12-20 19:20:01 +00:00
Antony Dovgal 698ea5f48e MFH 2006-12-20 19:08:48 +00:00
Andrei Zmievski 0d7af28a40 More correct patch for b-prefixes. 2006-12-20 18:22:07 +00:00
Antony Dovgal c348c293c8 MFH: fix #39903 (Notice message when executing __halt_compiler() more than once) 2006-12-20 16:31:10 +00:00
Antony Dovgal ea013f92e9 use Z_* macros 2006-12-20 16:00:11 +00:00
Antony Dovgal 40f6288fa3 MFH 2006-12-20 15:12:38 +00:00
Derick Rethans a9d0abf82c - Fixed the validate email filter so that the letter "v" can also be used in
the user part of the email address. (Derick)
2006-12-20 14:39:01 +00:00
Antony Dovgal 0f2eed24bb MFH 2006-12-20 13:09:02 +00:00
Dmitry Stogov 53b088e60c Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make any significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it still set to 16M. 2006-12-20 10:49:33 +00:00
Hannes Magnusson 1e19ee8785 - Fixed incorrect function names on FreeBSD where inet_pton() was named
__inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:34:36 +00:00
Nuno Lopes 6a8a2e8b0e new test 2006-12-19 21:46:48 +00:00
Michael Wallner 2beee146b4 MFH: check CRYPTO_get_id_callback() if anyone else already set thread lock callbacks 2006-12-19 21:41:25 +00:00
Antony Dovgal 1ef3ca7bf7 on FreeBSD these locales have different names 2006-12-19 21:39:48 +00:00
Antony Dovgal 949a0934c8 MFH 2006-12-19 20:46:56 +00:00
Andrei Zmievski 16ea2ee640 Support 'b' prefix in front of string literals for forward compatibility
with PHP 6.
2006-12-19 17:26:17 +00:00
Nuno Lopes 078fda3d6e remove NOP code in json_determine_array_type(), as we already know the zval passed is an array (based on patch by Ron Korving) 2006-12-19 15:01:05 +00:00
Antony Dovgal 2c3db736c4 add missing SKIPIF sections 2006-12-19 14:16:23 +00:00
Antony Dovgal 4307af8cdf MFH 2006-12-19 13:27:09 +00:00
Antony Dovgal c34d863d3e MFH 2006-12-19 13:15:39 +00:00
Dmitry Stogov 5d8183f0b2 Support for systems without locale.h 2006-12-19 13:13:29 +00:00
Antony Dovgal d6db0ccc12 fix test on MacOS 2006-12-19 13:08:35 +00:00
Antony Dovgal 0ecaeb89d3 serialize() should use '.' as decimal point irrespectively to locale 2006-12-19 12:36:44 +00:00
Dmitry Stogov c43fc2afc8 Fixed bug #39815 (SOAP double encoding is not locale-independent) 2006-12-19 11:54:38 +00:00
Edin Kadribasic 39a7719f85 Updated list of available extensions in dlls.
Updated oci extension ini settings.
-- christopher.jones at oracle dot com
2006-12-19 10:34:10 +00:00
Edin Kadribasic 7e77d79b3c Enable full build with newer Microsoft compilers 2006-12-19 10:26:01 +00:00
Hannes Magnusson b12e3e1475 Fix tests 2006-12-19 10:03:24 +00:00
Dmitry Stogov 868ac7d3a3 Fixed bug #39869 (safe_read does not initialize errno). (michiel at boland dot org) 2006-12-19 09:17:04 +00:00
Dmitry Stogov 03312cc0d9 Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection 2006-12-19 08:58:58 +00:00
Brian Shire 8a3a61bcd0 BFN 2006-12-19 08:18:47 +00:00
Ilia Alshanetsky d257696604 Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql). 2006-12-18 17:56:25 +00:00
Ilia Alshanetsky b9531d5b07 Cleanup & optimize php_filter_encode_url() 2006-12-18 15:42:18 +00:00
Ilia Alshanetsky 090e14dfda Less hackish support for spaces at the start of tags within strip_tags() 2006-12-18 15:02:16 +00:00
Ilia Alshanetsky a938d8e386 Fixed bugs with trimming of spaces 2006-12-18 14:56:40 +00:00
Antony Dovgal a726dcaa99 MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong") 2006-12-18 14:56:20 +00:00
Dmitry Stogov 6e0b78cd4c Fixed bug #39832 (SOAP Server: parameter not matching the WSDL specified type are set to 0) 2006-12-18 14:39:23 +00:00
Antony Dovgal 908b1e562d MFH: fix possible invalid read (reproducible only on big-endian machines) 2006-12-18 13:16:54 +00:00
Zeev Suraski 9219d7aa57 Whitespace 2006-12-18 12:32:08 +00:00
Dmitry Stogov 1763dc162d Fixed random generation of cookies and canaries 2006-12-18 11:39:19 +00:00
Antony Dovgal 5fc3e649b6 MFH 2006-12-18 11:12:55 +00:00
Antony Dovgal 5e8eecb362 remove the comment, it's not valid anymore 2006-12-18 10:19:52 +00:00
Hannes Magnusson 9ef3575c25 MFH:
- make %f locale aware again
- fix precision loss with %F (noticed by Sebastian Nohn)
- add new tests
2006-12-18 09:26:54 +00:00
Dmitry Stogov cfbd58c987 MFH: __builtin_expect() exists only in GCC 3.0 and higher 2006-12-18 08:59:40 +00:00
Ilia Alshanetsky 7d7248390c Filter fixes:
Fixed possible double encoding problem with sanitizing filters
	Make use of space-strict strip_tags() function
2006-12-18 04:22:05 +00:00
Brian Shire 5bf3df531f Fixed bug #30074
extract with EXTR_REFS was setting EG(unitialized_zval_ptr)->is_ref=1, affecting subsequent usage
  Added test
2006-12-17 20:09:48 +00:00
Ilia Alshanetsky e8bc39d95d Fixed compiler warning 2006-12-17 18:30:36 +00:00
Ilia Alshanetsky 24cc05dc09 Fixed bug #39779 (Enable AUTH PLAIN mechanism in underlaying libc-client). 2006-12-17 18:22:53 +00:00
Hannes Magnusson 93a606a192 Fix build 2006-12-17 03:26:04 +00:00
Ilia Alshanetsky b75d079c89 Fixed bug #39846 (Invalid IPv4 treated as valid). 2006-12-16 21:48:05 +00:00
Andi Gutmans 5e36d7fcfe - I prefer cookie to be the first element. 2006-12-15 17:03:42 +00:00
Dmitry Stogov bf9e3e769c Added internal heap protection
. safe unlinking
  . cookies
  . canary protection (debug build only)
2006-12-15 13:25:26 +00:00
Ilia Alshanetsky 195b102126 back to dev 2006-12-15 01:22:35 +00:00
Ilia Alshanetsky 0ee7c30453 5.2.1RC1 2006-12-15 01:21:36 +00:00
Andrei Zmievski 8f5310afad Support for 'S' format in unserialize() (forward compatibility with PHP
6)
2006-12-15 00:58:08 +00:00
Ilia Alshanetsky eb8bab9f46 Fixed bug #39816 (apxs2filter ignores httpd.conf & .htaccess php config
settings).
2006-12-13 15:45:20 +00:00
Ilia Alshanetsky 563221783a Removed deadcode found by Ron Korving 2006-12-13 15:39:12 +00:00
Ilia Alshanetsky a055e93a27 optimize out strlen() calls
# Patch by Matt Wilmas
2006-12-13 15:31:47 +00:00
Ilia Alshanetsky 1c4806c515 Fixed bug #39201 (Possible crash in Apache 2 with 413 ErrorHandler). 2006-12-13 00:41:33 +00:00
Sara Golemon db87e11e6b MFH: Bugfix# 39435: 'foo' instanceof bar gives invalid opcode error 2006-12-12 23:25:23 +00:00
Antony Dovgal 18edb61440 fix test 2006-12-12 22:33:26 +00:00
Ilia Alshanetsky cbaaf1bc07 Fixed bug #39797 (virtual() does not reset changed INI settings). 2006-12-12 18:05:25 +00:00
Ilia Alshanetsky e034b4a8b0 Removed dummy vars.
# Patch by Matt Wilmas
2006-12-12 15:35:16 +00:00
Antony Dovgal beeb5ddec4 disable tests 2006-12-12 13:22:44 +00:00
Antony Dovgal fd23b700fb fix test 2006-12-12 13:11:36 +00:00
Antony Dovgal 2f5229c9fc MFH: skip BFILE tests if Oracle is not on localhost 2006-12-12 13:00:01 +00:00
Antony Dovgal dc64595467 MFH 2006-12-12 12:11:51 +00:00
Antony Dovgal 24b312f8d5 MFH: missing part of the fix for #39795 2006-12-12 12:06:37 +00:00
Antony Dovgal 53f89fad03 MFH 2006-12-12 10:16:06 +00:00
Antony Dovgal fc0e395678 add new tests 2006-12-12 09:33:33 +00:00
Antony Dovgal f5543e8279 MFH 2006-12-12 09:28:18 +00:00
Hannes Magnusson f4e63cbece Fix test 2006-12-12 09:15:25 +00:00
Hannes Magnusson 14b7a1bdd1 Fix skipif 2006-12-12 08:13:31 +00:00
Hannes Magnusson 0028eccadd Fix tests 2006-12-12 08:09:40 +00:00
Antony Dovgal a74c36a335 MFH: fix #39795 (build fails on AIX because crypt_r() uses different data struct) 2006-12-12 07:38:04 +00:00
Ilia Alshanetsky 2f291233e6 Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday
yields incorrect results).
2006-12-11 21:04:40 +00:00
Ilia Alshanetsky 5218d956f0 Fixed typo 2006-12-11 15:59:41 +00:00
Ilia Alshanetsky 19e4dc5058 Removed bool<>long optimization as it causes issues with strict type checks 2006-12-11 15:34:35 +00:00
Ilia Alshanetsky 7e1973d9fc Minor optimization (2-3%) from Brian Shire 2006-12-11 15:16:07 +00:00
Ilia Alshanetsky d3aa695263 Fixed bug #39787 (PHP doesn't work with Apache 2.3). 2006-12-11 14:54:14 +00:00
Antony Dovgal ab765ca497 MFH 2006-12-11 12:34:09 +00:00
Antony Dovgal 03785ddb5f add new test 2006-12-11 12:32:06 +00:00
Ilia Alshanetsky f5b6604376 Fixed bug #39791 (Crash in strtotime() on overly long relative date
multipliers).
2006-12-11 05:04:36 +00:00
Marcus Boerger 66525a739e - MFH Fix comparison of RecursiveDualIterators 2006-12-10 23:44:49 +00:00
Ilia Alshanetsky e64cb1ae4d Optimize extract()
# Patch by Brian Shire
2006-12-10 19:43:03 +00:00
Pierre Joye 6ccde868be - #39286 entry 2006-12-10 02:56:35 +00:00
Pierre Joye 7ddd4ed1d7 - #39286, misleading error message when nvalid dimensions are given 2006-12-10 02:55:30 +00:00
Pierre Joye 7faf8325e7 - #39508, add test (imagefill crashes with small image) 2006-12-10 01:58:50 +00:00
Pierre Joye 0d444306c9 - #39780 entry 2006-12-10 01:39:09 +00:00
Pierre Joye 9e533e39b6 - MFH:#39780, PNG image with CRC/data error raises fatal error 2006-12-10 01:38:02 +00:00
Edin Kadribasic 99c041ade3 BFN 2006-12-10 01:26:51 +00:00
Edin Kadribasic 42e1c9a1e0 Fixed by #39751 by KevinJohnHoffman at gmail dot com 2006-12-10 01:23:41 +00:00
Hannes Magnusson d9f03aac34 MFH: sys_get_temp_dir() 2006-12-09 18:00:52 +00:00
Ilia Alshanetsky b8590f954d Fixed test 2006-12-09 16:41:24 +00:00
Ilia Alshanetsky 0236a7eaf4 Fixed bug #29840 (is_executable() does not honor safe_mode_exec_dir
setting).
2006-12-09 16:01:29 +00:00
Hannes Magnusson 3d5fec9cb5 MFH: new cookie tests 2006-12-09 15:58:09 +00:00
Ilia Alshanetsky 94e3f478d7 Fixed handling of multiple cookies with the same name.
Added support for cookies into run-tests.php
2006-12-09 14:14:29 +00:00
Ilia Alshanetsky 847741cb08 Strip leading spaces from cookie names, that can come from multi-cookie
headers where ; can be followed by any number of spaces.
2006-12-09 13:01:23 +00:00
Rob Richards e41f103431 BFN 2006-12-09 10:53:45 +00:00
Rob Richards c2c9908f88 fix heap corruption when adding/caching typelib (also fixes bug 39606)
add test
2006-12-09 10:52:09 +00:00
Ilia Alshanetsky d94453a4e5 Fixed tests 2006-12-09 03:17:49 +00:00
Ilia Alshanetsky 352e69d3f0 Fixed test 2006-12-09 03:07:32 +00:00
Antony Dovgal 7df81307c1 MFH 2006-12-08 21:18:43 +00:00
Antony Dovgal f71a310543 MFH: fix possible issue in the serializer, which might currupt struc when reallocating arguments stack 2006-12-08 20:59:31 +00:00
Antony Dovgal f8d4de338b MFH: fix #39732 (oci_bind_array_by_name doesn't work on Solaris 64bit) 2006-12-08 20:56:29 +00:00
Ilia Alshanetsky b7b0f4d988 Fixed bug #39759 (Can't use stored procedures fetching multiple result
sets in pdo_mysql).
2006-12-08 19:50:40 +00:00
Rob Richards 4991dba418 fix tests 2006-12-08 17:55:58 +00:00
Ilia Alshanetsky db7dad0ba0 Fixed bug #39763 (magic quotes are applied twice by ext/filter in
parse_str())
2006-12-08 17:50:04 +00:00
Antony Dovgal cdf5db41a7 -BFN 2006-12-08 17:11:42 +00:00
Antony Dovgal b32bf96363 revert the fix for #39763 2006-12-08 17:04:01 +00:00
Dmitry Stogov 108a2fc64c Fixed bug #39775 ("Indirect modification ..." message is not shown)
The fix breaks two SimpleXML tests those must be fixed
2006-12-08 15:55:31 +00:00
Antony Dovgal 1edf208421 add new tests by <zoe dot slattery at googlemail dot co dot uk> 2006-12-08 14:39:25 +00:00
Dmitry Stogov dd9b5a08f0 Fixed possible failure 2006-12-08 12:47:45 +00:00
Nuno Lopes 802e12674e add tests for old bug reports 2006-12-08 12:13:23 +00:00
Antony Dovgal feba2edba2 initialize variables 2006-12-07 20:45:58 +00:00
Antony Dovgal 6b8526efce MFH: fix #39763 (magic quotes are applied twice by ext/filter) 2006-12-07 11:00:08 +00:00
Ilia Alshanetsky 72ea6912f7 Fixed bug #39754 (Some POSIX extension functions not thread safe). 2006-12-07 01:41:18 +00:00
Rasmus Lerdorf 0110fca856 Typo 2006-12-06 21:20:39 +00:00
Antony Dovgal 60f3797200 MFH 2006-12-06 16:28:36 +00:00
Antony Dovgal da53237f41 MFH: add missing 'F' modified (noticed by Matt) 2006-12-06 14:47:36 +00:00
Rob Richards cf4c83dd2b Fix win32 build 2006-12-06 13:18:36 +00:00
Antony Dovgal b4d0d872e7 MFH 2006-12-06 10:49:27 +00:00
Antony Dovgal 8c8bf92311 news 2006-12-06 09:53:15 +00:00
Antony Dovgal 4d44a5b71d MFH: use BSD licensed implementation of double-to-string utilities instead of LGPL one
this patch also fixes thread safety issues in zend_strtod()
2006-12-06 09:52:51 +00:00
Antony Dovgal a813e112d4 MFH 2006-12-05 23:51:30 +00:00
Ilia Alshanetsky 62cd5a9bae Fixed bug #39724 (Broken build due to spl/filter usage of pcre extension). 2006-12-05 23:37:57 +00:00
Antony Dovgal 9ce985bbae cosmetic improvements 2006-12-05 23:03:19 +00:00
Frank M. Kromann 7fd9e4fce9 Remove PHP4.x stuff 2006-12-05 21:46:23 +00:00
Frank M. Kromann 5dca5450f2 #39429 Update API 2006-12-05 21:02:46 +00:00
Dmitry Stogov 68890ce196 Fixed bug #39721 (Runtime inheritance causes data corruption) 2006-12-05 19:03:51 +00:00
Antony Dovgal 5e7eed6a9a MFH: nuke redundant zval_ptr_dtor() call 2006-12-05 18:42:38 +00:00
Ilia Alshanetsky e5ad7bf299 Fixed bug #36798 (Error parsing named parameters with queries containing
high-ascii chars).
2006-12-05 18:04:59 +00:00
Ilia Alshanetsky 9a1abfbb7d Revert previous patch and it breaks builds with built-in cdb lib 2006-12-05 17:54:52 +00:00
Hannes Magnusson a41e70782b Fix test 2006-12-05 15:55:55 +00:00
Rob Richards e071d48604 BFN 2006-12-05 12:05:43 +00:00
Rob Richards 865f4d75be fix bug #39625 (Apache crashes on importStylesheet call) 2006-12-05 12:04:34 +00:00
Dmitry Stogov 7389f59f4d Fixed FastCGI impersonation for persistent connections on Windows 2006-12-05 08:55:15 +00:00
Dmitry Stogov 8f5786b6e8 Removed unused zend_mm.* 2006-12-05 08:07:57 +00:00
Ilia Alshanetsky 53a1403b53 Fixed bug #39571 (timeout ssl:// connections). 2006-12-05 01:39:07 +00:00
Pierre Joye ae1d0de24b - invalid filter 2006-12-05 01:25:29 +00:00
Pierre Joye 33f9ada038 - MFH: invalid filter id should not return unsafe values 2006-12-05 01:24:18 +00:00
Pierre Joye 145e7e470a - MFH: callback test 2006-12-04 21:33:22 +00:00
Pierre Joye bff08d46f1 - default filter is not string anymore (in comment)
- WS and error msg sync with head
2006-12-04 21:16:01 +00:00
Pierre Joye 5f2562e905 - MFH: init tmp var 2006-12-04 21:07:13 +00:00
Stanislav Malyshev 6b651f8e60 Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
# Gives 10-18% speedup on bench.php
# Does not change behaviour for non-windows
2006-12-04 18:37:15 +00:00
Ilia Alshanetsky 57a912e828 Fixed tests 2006-12-04 18:29:49 +00:00
Antony Dovgal ebef6661df MFH: fix build with Sun compiler, which doesn't support -O0 2006-12-04 18:28:49 +00:00
Antony Dovgal 44a3cad930 MFH: partly fix #39724
ext/spl has a soft dependcy from ext/pcre (not ext/pcre-regex)
2006-12-04 18:01:53 +00:00
Ilia Alshanetsky 8e907392b3 Fixed test (user is a reserved keyword in pgsql) 2006-12-04 17:55:46 +00:00
Antony Dovgal 459564e2d2 fix tests 2006-12-04 17:48:52 +00:00
Dmitry Stogov f7bc516502 Fixed bug #38274 (Memlimit fatal error sent to "wrong" stderr when using fastcgi) 2006-12-04 16:20:02 +00:00
Antony Dovgal bcf457d828 MFH: fix retval type 2006-12-04 15:58:48 +00:00
Ilia Alshanetsky 35f78f221b Fixed bug #37627 (session save_path check checks the parent directory). 2006-12-04 15:19:26 +00:00
Antony Dovgal dad67b1f65 MFH: look for tests in sapi/cli 2006-12-04 13:07:26 +00:00
Ilia Alshanetsky 7fb3715d43 Fixed bug #38319 (Remove bogus warnings from persistent PDO connections). 2006-12-04 03:07:44 +00:00
Ilia Alshanetsky 44045f8cb1 Fixed bug #38252 (Incorrect PDO error message on invalid default fetch mode). 2006-12-04 02:40:08 +00:00
Ilia Alshanetsky fc21d423fd Added test for previous bug 2006-12-04 00:40:31 +00:00
Ilia Alshanetsky 4356aad0ae Fixed bug #39483 (Problem with handling of \ char in prepared statements). 2006-12-04 00:38:46 +00:00
Ilia Alshanetsky e7c2bd6e40 Default to buffered queries (much faster)
Default to prepared statement emulation to avoid hitting MySQL bugs
2006-12-03 23:29:03 +00:00
Ilia Alshanetsky 44baca5aed Added missing check for mismatching number of tokens & bound params in
prepared statement emulation.
2006-12-03 23:27:44 +00:00
Ilia Alshanetsky b6bdd44962 Added "default" option that allows a default value to be set for an invalid
or missing value.
2006-12-03 21:27:36 +00:00
Ilia Alshanetsky 9666f1deae Config fix from Gentoo 2006-12-03 19:54:55 +00:00
Ilia Alshanetsky 7999c9d251 Fixed bug #39718 (possible crash if assert.callback is set in ini). 2006-12-03 17:13:11 +00:00
Ilia Alshanetsky b71ac5063e Fixed php_readdir_r() usage in scandir emulation 2006-12-03 15:52:17 +00:00
Antony Dovgal 361c8b4fb4 MFH 2006-12-03 14:37:32 +00:00
Antony Dovgal e1a63af85b MFH: fix leaks 2006-12-03 13:59:11 +00:00
Antony Dovgal 065be7056d MFH: fix AIX build 2006-12-03 13:46:37 +00:00
Hannes Magnusson f61b9635ba Fix test on fbsd 2006-12-03 08:04:57 +00:00
Nuno Lopes 0df2a37d1b new tests. increase coverage for more than 90% 2006-12-02 21:39:28 +00:00
Ilia Alshanetsky 916673a345 Fixed bug #39527 (Failure to retrieve results when multiple unbuffered,
prepared statements are used in pdo_mysql).
2006-12-02 17:53:44 +00:00
Frank M. Kromann 66eb5b1dde Fix win32 build 2006-12-01 20:24:58 +00:00
Frank M. Kromann a6b3682dba Fix win32 build 2006-12-01 20:17:50 +00:00
Ilia Alshanetsky f3e577375e Fixed typo 2006-12-01 20:10:35 +00:00
Dmitry Stogov abc5bb5f61 Bug #39438 (Fatal error: Out of memory) 2006-12-01 20:01:50 +00:00
Dmitry Stogov e70d7cfc90 typo 2006-12-01 19:41:57 +00:00
Ilia Alshanetsky b3004fb883 Fixed a possible memory corruption in dbase_open() with invalid open mode 2006-12-01 19:10:50 +00:00
Nuno Lopes e65bdffab5 tests + BFN 2006-12-01 16:37:39 +00:00
Nuno Lopes 8e0cf44164 fix bug #39458: ftp_nlist() returns false on empty dirs 2006-12-01 16:34:43 +00:00
Dmitry Stogov 0742edb396 Fixed bug #39702 (php crashes in the allocator on linux-m68k) 2006-12-01 15:33:06 +00:00
Dmitry Stogov de9574e872 Fixed bug #39640 (Segfault with "Allowed memory size exhausted") 2006-12-01 13:54:29 +00:00
Dmitry Stogov e8e9810dd9 Fixed bug #39652 (Wrong negative results from memeory_get_usage()) 2006-12-01 11:42:20 +00:00
Marcus Boerger 5ea32dc1e4 - MFH: Fix handling of recursive inner iterators 2006-12-01 09:29:15 +00:00
Ilia Alshanetsky 5f3e233ea7 Disallow \0 chars inside session.save_path 2006-12-01 00:27:20 +00:00
Ilia Alshanetsky c42d25dc33 Small hash table optimization 2006-11-30 23:51:24 +00:00
Ilia Alshanetsky b7dc2a51ad Added check for crypt_r() 2006-11-30 17:10:46 +00:00
Ilia Alshanetsky ac9927728a Added missing function checks 2006-11-30 16:48:03 +00:00
Ilia Alshanetsky ca89b6dedd last set of zts fixes 2006-11-30 16:38:37 +00:00
Ilia Alshanetsky c69555b948 Thread safety fixes. 2006-11-30 16:21:24 +00:00
Ilia Alshanetsky 930ac9a5d0 Thread-safety issues 2006-11-30 16:10:38 +00:00
Ilia Alshanetsky 891bd7888f Use reantrant crypt_r() whenever possible. 2006-11-30 15:59:53 +00:00
Ilia Alshanetsky 20b92bf4cc Use thread-safe code 2006-11-30 15:13:19 +00:00
Antony Dovgal 57130c653a fix test 2006-11-30 13:09:32 +00:00
Ilia Alshanetsky 52bd6de7f4 Thread safety fixed for *nix systems 2006-11-30 00:35:15 +00:00
Ilia Alshanetsky 466d9ba00a Fixed bug #39648 (Implementation of PHP functions chown() and chgrp() are
not thread safe).
2006-11-29 23:34:49 +00:00
Antony Dovgal 4cc29fef5c MFH 2006-11-29 22:53:26 +00:00
Derick Rethans ac7e6f5fec - Updated timezone database to version 2006.16. 2006-11-29 20:00:49 +00:00
Ilia Alshanetsky bfa4af46e1 Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory
corruption on Windows in pgsql and pdo_pgsql extensions).
2006-11-29 15:45:59 +00:00
Antony Dovgal 60bb494607 MFH: fix #39673 (file_get_contents causes bus error on certain offsets) 2006-11-29 11:12:59 +00:00
Rob Richards d5d1801df7 correct fix for bug #39662 to fix leak and tree corruption
fix test
2006-11-29 08:51:36 +00:00
Marcus Boerger ecd417c6ce - MFH: Add new example 2006-11-28 22:20:01 +00:00
Antony Dovgal 0966666256 MFH: resolve coverity issue #224 2006-11-28 21:20:33 +00:00
Antony Dovgal aaf120127e add php_unescape_html_entities() proto to the header
(fixes #39665)
2006-11-28 20:41:07 +00:00
Antony Dovgal d55eb93c94 MFH: fix #39662 (Segfault when calling asXML() of a cloned SimpleXMLElement) 2006-11-28 18:59:53 +00:00
Antony Dovgal bb30875db6 add test 2006-11-28 16:55:05 +00:00
Ilia Alshanetsky 2d4b8e19e2 Fixed bug #39656 (crash when calling fetch() on a PDO statment object
after closeCursor()).
2006-11-28 16:27:53 +00:00
Antony Dovgal 2c6a5df4ac BFN 2006-11-28 11:40:41 +00:00
Antony Dovgal 5a6c11d9f4 MFH: fix #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled) 2006-11-28 11:39:19 +00:00
Pierre Joye a70264892b - fix warning
- addEmptyDir returns true on success
- remove useless semi column
2006-11-28 01:31:53 +00:00
Ilia Alshanetsky 34b55f2012 Replace non-threadsafe rand() with php_rand_r() 2006-11-28 00:22:05 +00:00
Antony Dovgal 9503b966ec MFH: fix #39564 (PDO::errorInfo() returns inconsistent information when sqlite3_step() fails) 2006-11-27 12:14:09 +00:00
Antony Dovgal a3c2958f22 MFH: fix test on FreeBSD 2006-11-27 11:43:59 +00:00
Alex Waugh 4e0446b6c9 MFH: Improve robustness of sending routines 2006-11-26 19:51:23 +00:00
Ilia Alshanetsky e6a3431315 Fixed bug #39623 (thread safety fixes on *nix for putenv() & mime_magic). 2006-11-26 17:02:13 +00:00
Ilia Alshanetsky f06eb4bf8b Fixed test, in some versions of c-client returned value is always uppercase 2006-11-26 16:31:43 +00:00
Ilia Alshanetsky 845c07f560 Fixed test 2006-11-26 16:29:42 +00:00
Ilia Alshanetsky 22ff526e99 Added a meta tag to phpinfo() output to prevent search engines from
indexing the page.
2006-11-26 16:26:18 +00:00
Antony Dovgal 93fc85b2af MFH: fix #39621 (str_replace() is not binary safe on strings with equal length) 2006-11-24 21:59:09 +00:00
Nuno Lopes e8384cbcca more tests 2006-11-24 20:18:54 +00:00
Nuno Lopes d64b17543c fix tests after Tony's commit and add a test for the bug he fixed 2006-11-24 15:47:45 +00:00
Antony Dovgal 050e32ed65 fix test 2006-11-24 13:40:43 +00:00
Antony Dovgal 158ad3ee2f add tests for CLI 2006-11-24 13:33:38 +00:00
Antony Dovgal 7f235792b3 MFH: fix #39583 (ftp_put() does not change transfer mode to ASCII) 2006-11-24 12:39:39 +00:00
Antony Dovgal 724f500c92 BFN 2006-11-24 10:30:02 +00:00
Antony Dovgal ffb9e15465 fix #39613 (Possible segfault in imap initialization due to missing module dependency)
patch by wharmby at uk dot ibm dot com
2006-11-24 10:28:51 +00:00
Antony Dovgal 090215cc7f nullify opened_path and filename (when required)
fixes invalid reads with `php-cli -F <script>`
2006-11-23 22:04:54 +00:00
Nuno Lopes 94a810755f add tests for 2 old bugs 2006-11-23 20:47:38 +00:00
Antony Dovgal 7172a53c3a do not set an env variable without a name and a value 2006-11-23 20:06:10 +00:00
Nuno Lopes ba8ba5a909 add two more tests (test bogus parameters and bogus server respsnes) 2006-11-23 17:34:34 +00:00
Ilia Alshanetsky af16066603 Fixed a possible crash 2006-11-23 14:41:35 +00:00
Dmitry Stogov c663787ab4 Fixed bug #39534 (Error in maths to calculate of ZEND_MM_ALIGNED_MIN_HEADER_SIZE). (wharmby at uk dot ibm dot com) 2006-11-23 09:32:39 +00:00
Dmitry Stogov 79c3defac0 Fixed bug #39548 (ZMSG_LOG_SCRIPT_NAME not routed to OutputDebugString() on Windows) 2006-11-23 08:37:21 +00:00
Dmitry Stogov 6a8f267db6 Fixed bug #39602 (Invalid session.save_handler crashes PHP) 2006-11-23 08:07:05 +00:00
Ilia Alshanetsky e8180067b9 Fixed a possible crash in dbase_open() on empty filename. 2006-11-22 17:30:34 +00:00
Pierre Joye efa9b7e20b - MFH: #39538, fgetcsv can't handle starting newlines and trailing odd
number of backslashes (David Soria Parra, Pierre)
2006-11-22 12:59:49 +00:00
Antony Dovgal a7ce772222 fix #39575 (move_uploaded_file() no longer working (safe mode related)) 2006-11-22 11:55:36 +00:00
Michael Wallner a09ef37d30 - fix ENV section handling 2006-11-22 10:45:06 +00:00
Antony Dovgal df1a1c8441 MFH: fix #39576 (array_walk() doesn't separate userdata zval) 2006-11-22 10:42:41 +00:00
Antony Dovgal 090a83b974 ensure that bucket->brigade is NULL in newly created bucket 2006-11-21 20:58:17 +00:00
Antony Dovgal 26ed531c64 add test 2006-11-21 18:17:11 +00:00
Antony Dovgal e412981f7b remove redundant error message
add test by <zoe dot slattery at googlemail dot com>
2006-11-21 17:42:11 +00:00
Ilia Alshanetsky 57eb7c0bad Adjust previous patch to work better 2006-11-21 15:53:23 +00:00
Antony Dovgal 1c6ee3030e add test 2006-11-21 11:11:39 +00:00
Antony Dovgal eb666b725f MFH: fix proto 2006-11-21 10:48:29 +00:00
Antony Dovgal 2f9a9c4248 add new test 2006-11-20 22:17:10 +00:00
Antony Dovgal c220da74ef MFH test 2006-11-20 20:55:51 +00:00
Marcus Boerger d4dc662621 - MFH: Fix arginfo 2006-11-20 20:04:03 +00:00
Marcus Boerger 164929d557 - MFH: Add new test 2006-11-20 19:58:01 +00:00
Ilia Alshanetsky fd8378d7d6 Fixed compiler warnings 2006-11-20 19:04:21 +00:00
Antony Dovgal 2ff721a93f MFH 2006-11-20 16:33:06 +00:00
Antony Dovgal 39ad6abbf8 fix test on Solaris 2006-11-20 16:28:26 +00:00
Antony Dovgal 296e2a3775 MFH 2006-11-20 11:12:42 +00:00
Nuno Lopes bd519ae0d9 new tests. what a crazy idea... 2006-11-19 18:37:28 +00:00
Ilia Alshanetsky 714abb7ea1 pack()/unpack() tests 2006-11-19 18:31:07 +00:00
Ilia Alshanetsky 0d338f463c Fixed bug #38770 (unpack() broken with longs on 64 bit machines). 2006-11-19 18:20:48 +00:00
Dmitry Stogov c06f9e1efe COM initialization/deinitialization are done only if necessary 2006-11-17 11:40:52 +00:00
Nuno Lopes cb4b75f155 remove old file (which was already removed from 4.4 and HEAD trees) 2006-11-16 18:58:02 +00:00
Ilia Alshanetsky c7d84b7451 Fixed compiler warnings 2006-11-16 17:33:39 +00:00
Hannes Magnusson 133bdb42e3 Fix ftruncate() with negative size on FreeBSD 2006-11-16 16:06:51 +00:00
Antony Dovgal cf04587553 fix tests 2006-11-16 13:49:20 +00:00
Antony Dovgal 36d66521c9 add new tests 2006-11-16 13:01:23 +00:00
Hannes Magnusson cf64728899 renamed to oo_getcomment.phpt 2006-11-16 08:52:15 +00:00
Pierre Joye 426dce9ce3 - mv oo_get_comment.phpt oo_getcomment.phpt 2006-11-15 23:53:46 +00:00
Pierre Joye c412409164 - MFH: #39217, serialNumber might be -1 when the value is too big 2006-11-15 23:28:06 +00:00
Antony Dovgal d1acb8d4eb add new tests, improve existing ones 2006-11-15 22:44:29 +00:00
Antony Dovgal eca1911b72 fix leak, add test 2006-11-15 22:10:19 +00:00
Sara Golemon 2eb308ff75 Backport md2, ripemd256, and ripemd320 algos from HEAD 2006-11-15 20:06:09 +00:00
Pierre Joye 892c00bb9f #9278 and #39506, force the binary mode for the zip operation only. At least I do not have to set/restore it in each function. 2006-11-15 19:14:02 +00:00
Ilia Alshanetsky 82fb3e00b8 Fixed bug #37773 (iconv_substr() gives "Unknown error" when string length =
1").
2006-11-15 18:34:57 +00:00
Dmitry Stogov 3f92ab719f typo 2006-11-15 17:53:27 +00:00
Antony Dovgal 9d6f7755b8 fix leak appearing when converting object to NULL
add test
2006-11-15 17:29:08 +00:00
Antony Dovgal 84ff4aaf1a add new tests 2006-11-15 17:27:03 +00:00
Pierre Joye 1d61562efe #39506 and PECL #9278, should fix the problem for the other SAPI (works for CLI, CGI and embed)
see: http://news.php.net/php.internals/26606 for the details
2006-11-15 16:24:24 +00:00
Dmitry Stogov 842b1b5a47 Fixed bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash) 2006-11-15 16:05:11 +00:00
Dmitry Stogov 8619bf8332 Removed unnecessary getenv/putenv calls 2006-11-15 13:33:41 +00:00
Antony Dovgal 70288ef71e fix test on AIX 2006-11-15 12:11:17 +00:00
Antony Dovgal 567aed8316 fix test 2006-11-15 11:27:26 +00:00
Dmitry Stogov 0916ac47c9 Fixed wrong ext/filter behavior. It didn't register FastCGI environment variables and made memory leaks. 2006-11-15 11:13:02 +00:00
Antony Dovgal 60188ad863 fix test 2006-11-15 10:47:26 +00:00
Hannes Magnusson 849a7857ac Fix test (file_put_contents() now uses __toString) 2006-11-15 07:58:02 +00:00
Ilia Alshanetsky fca0e24410 Added missing object support to file_put_contents(). 2006-11-15 00:20:40 +00:00
Antony Dovgal 6640a1c861 one more test 2006-11-14 22:23:45 +00:00
Antony Dovgal 963b1db67f add new tests 2006-11-14 21:59:57 +00:00
Edin Kadribasic a3453eb8d4 Bundled lib upgrade 2006-11-14 19:59:31 +00:00
Edin Kadribasic 77986844c8 Tell linker that we're using stati libcurl 2006-11-14 19:57:13 +00:00
Derick Rethans de50222d1c - MFH: No idea if we actually support 16 bit systems, but this just looked wrong 2006-11-14 14:42:42 +00:00
Dmitry Stogov c1ba4fc989 Fixed VC2005 support 2006-11-14 14:20:26 +00:00
Dmitry Stogov 9b5a57f548 Fixed problem with spaces in libpath 2006-11-14 14:10:53 +00:00
Pierre Joye df56d24304 - #39508, do not use the 4 neighbors implementation for small images (w<4)
test will follow
2006-11-14 13:45:24 +00:00
Dmitry Stogov 5caf547a9f cgi.* and fastcgi.* directives are moved to INI subsystem. The new directive cgi.check_shebang_line can be used to ommiting checnk for "#! /usr/bin/php" line. 2006-11-14 10:31:47 +00:00
Antony Dovgal 89e93a02f3 add .libs to .cvsignore 2006-11-14 09:40:14 +00:00
Dmitry Stogov af74c7c9d2 Added comments 2006-11-14 09:15:55 +00:00
Ilia Alshanetsky b28cbe8b6f Fixed bug #36812 (pg_execute() modifies input array). 2006-11-13 22:10:37 +00:00
Antony Dovgal 923b785fd1 add new test 2006-11-13 21:27:48 +00:00
Antony Dovgal 017f3ae479 don't forget to close the stream when/if flock() fails 2006-11-13 20:31:27 +00:00
Antony Dovgal 34db368fe4 MFH: fix leaks in get_meta_tags() when used with b0rked HTML
add test
2006-11-13 20:18:12 +00:00
Antony Dovgal c301119fdf MFH: improve the fix and the test 2006-11-13 19:32:58 +00:00
Hannes Magnusson 5d92b4281f It's called addEmptyDir(), not createEmptyDir() 2006-11-13 18:30:59 +00:00
Ilia Alshanetsky 941c036297 Fixed bug #36644 (possible crash in variant_date_from_timestamp()). 2006-11-13 15:33:26 +00:00
Dmitry Stogov 682bbf19ef Use symbolic names 2006-11-13 15:13:20 +00:00
Antony Dovgal 69e0c84522 MFH 2006-11-13 15:00:05 +00:00
Antony Dovgal a2a20556d8 new test 2006-11-13 14:51:11 +00:00
Antony Dovgal 60a2df7db2 add a note that libxml2 2.6.2x is required 2006-11-13 12:54:04 +00:00
Antony Dovgal 79e4f5fd22 MFH: fix compile warning 2006-11-13 12:49:28 +00:00
Antony Dovgal b5b8fa4f6b fix test 2006-11-13 12:47:43 +00:00
Dmitry Stogov f00ee72c35 Fixed incorrect heap corruptiuon detection code 2006-11-13 10:28:46 +00:00
Hannes Magnusson a27d73b13d Add missing header installation.. 2006-11-12 19:00:33 +00:00
Ilia Alshanetsky 6e9c7c4aa9 Fixed generated file 2006-11-12 17:55:44 +00:00
Ilia Alshanetsky c32ed59e4e Fixed a memory leak when named & positional params are being used in the
same query.
2006-11-12 17:49:19 +00:00
Hannes Magnusson 3bf35bbc15 MFH: SplFileObject no longer overwrites SplFileInfo::getFilename() 2006-11-12 17:35:09 +00:00
Ilia Alshanetsky d4a64fba74 removed bogus char 2006-11-12 17:23:01 +00:00
Hannes Magnusson 1182b325c2 MFH: SplFileObject::getFilename() no longer overwrites SplFileInfo::getFilename()
(SplFileObject::getFilename() therefor only returns the filename now)
2006-11-12 17:16:13 +00:00
Ilia Alshanetsky e0d385a328 Optimized array functions utilizing php_splice(). 2006-11-12 17:13:22 +00:00
Marcus Boerger d3bda9a516 - MFH: Correct comments 2006-11-12 15:58:17 +00:00
Hannes Magnusson 7b81e554ae MFH: Fixed bug#36975 (natcasesort() causes array_pop() to misbehave) 2006-11-12 01:14:39 +00:00
Nuno Lopes 7d75155e01 fix leak in oo_stream.phpt 2006-11-12 00:41:16 +00:00
Nuno Lopes c0b0d0a81a fix leak in the object destrucotr when zip_close() fails (fixes oo_delete.phpt) 2006-11-12 00:31:03 +00:00
Nuno Lopes 232bb79bed fix leaks within zip entries in several tests 2006-11-11 23:43:00 +00:00
Nuno Lopes b3de830b61 fix leak in oo_setArchiveComment.phpt 2006-11-11 23:35:27 +00:00
Pierre Joye 8cb18e8d64 - fix leak in zip_close when the function's succeeded 2006-11-11 19:06:56 +00:00
Nuno Lopes 94404da606 fix the bug I introduced previously, sorry
anyway, convert the recursive version of the binary search to an iterative one
2006-11-10 23:27:11 +00:00
Antony Dovgal 88e827f3f1 MFH 2006-11-10 23:03:32 +00:00
Antony Dovgal 7563d4f573 fix possible issue with negative values in oci_set_prefetch
(reported by Chris Jones)
2006-11-10 20:13:36 +00:00
Andi Gutmans d98a8aa589 - Fix typo 2006-11-10 18:51:05 +00:00
Nuno Lopes ec46e5e510 mark a few variables and functions as static 2006-11-10 18:05:11 +00:00
Nuno Lopes fe8e53f7a7 mark the binary search delimiters as unsigned, so that the compiler can use a quick shift operation 2006-11-10 17:32:15 +00:00
Dmitry Stogov 3011278aab Fixed wrong realpath() result in case of unexistent path 2006-11-10 17:23:58 +00:00
Hannes Magnusson 16e6b2cf52 Fix tests 2006-11-10 17:04:03 +00:00
Dmitry Stogov c06626d8c6 Fixed wrong realpath() result in case of unexistent path 2006-11-10 16:57:17 +00:00
Antony Dovgal 4106eee7c7 fix segfault in ZTS mode when statements containing sub-statements are destroyed in wrong order 2006-11-10 16:33:41 +00:00
Dmitry Stogov 31bfc6e55b Fixed bug #39454 (Returning a SOAP array segfaults PHP) 2006-11-10 15:05:22 +00:00
Dmitry Stogov ce958eded5 stat() is reimplemented using using GetFileAttributesEx().
The new implementation is faster then implementation in MS VC CRT, but it doesn't support Windows 95.
2006-11-10 15:04:07 +00:00
Dmitry Stogov 40d3abba41 Fixed tests 2006-11-10 14:20:26 +00:00
Dmitry Stogov daed379550 Removed unnecessary ftell() calls (one call for each included PHP file) 2006-11-10 13:18:35 +00:00
Dmitry Stogov f22ae56bc9 Disabled reading from stream (calls to read()) after EOF 2006-11-10 13:10:16 +00:00
Dmitry Stogov f05ed6390c VCWD_REALPATH() is improved to use realpath cache without VIRTUAL_DIR 2006-11-10 12:59:27 +00:00
Derick Rethans 140edac7f9 - Forward port the binary cast, which will do the same as the string cast in
PHP 5.2.
2006-11-10 12:02:51 +00:00
Dmitry Stogov a4a77d3f91 Intialization code is moved from request startup to module startup 2006-11-10 12:02:10 +00:00
Dmitry Stogov 011e0cde62 Start timiout thread on Windows only if necessary 2006-11-10 11:49:35 +00:00
Dmitry Stogov 532b02cd19 Implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic. 2006-11-10 11:42:07 +00:00
Dmitry Stogov 41c81f20e1 opendir() is reimplemented using GetFistFile/GetNextFile those are faster then _findfirst/_findnext 2006-11-10 11:20:48 +00:00
Dmitry Stogov a5f951f27c Removed unnecessary checks for ISREG file and corresponding stat() calls on Windows 2006-11-10 10:55:26 +00:00
Dmitry Stogov ab5268fc84 typo 2006-11-10 10:47:52 +00:00
Dmitry Stogov f1b6587ebb Zend Memory Manager Improvements
. use HeapAlloc() instead of VirtualAlloc()
. use "win32" storage manager (instead of "malloc") on Windows by default
2006-11-10 10:44:40 +00:00
Dmitry Stogov fedc06d290 Fix warnings 2006-11-10 10:38:07 +00:00
Dmitry Stogov bcfc501ca6 Use $(CC) for linking instead of $(LD). This allows usage of advansed optimization techniques (like Intel's inner-procedure optimization) 2006-11-10 10:30:46 +00:00
Dmitry Stogov a930751112 Faster and better licensed implementation 2006-11-10 10:10:38 +00:00
Dmitry Stogov 9fd2b6deb4 Simplify the code base as this getpwd() was used only once 2006-11-10 09:56:16 +00:00
Ilia Alshanetsky 126be8ec7c Added missing API declarations. 2006-11-10 01:28:59 +00:00
Ilia Alshanetsky f06762b361 Fixed pecl bug #9179 (phpversion("filter") shows wrong version). 2006-11-10 01:08:17 +00:00
Ilia Alshanetsky ddae41877f Added missing PHPAPI declaration 2006-11-09 20:01:41 +00:00
Ilia Alshanetsky b3006ed2a5 Fixed bug #38456 (Apache2 segfaults when virtual() is called in .php
ErrorDocument).
2006-11-09 19:10:13 +00:00
Nuno Lopes fb06fa19e3 fix test for non English guys 2006-11-09 16:38:28 +00:00
Nuno Lopes 98dd25e04c fix an invalid read + invalid free() 2006-11-09 16:33:07 +00:00
Nuno Lopes d6802e1022 statification of local functions and variables.
also remove a few uneeded global variables
interesting new warnings:
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:391: warning: 'xmlwriter_objects_clone' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1281: warning: 'zif_xmlwriter_start_dtd_entity' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1325: warning: 'zif_xmlwriter_end_dtd_entity' defined but not used
/cvs/php5/ext/xmlwriter/php_xmlwriter.c:1333: warning: 'zif_xmlwriter_write_dtd_entity' defined but not used
2006-11-09 16:04:34 +00:00
Hannes Magnusson 371400ae15 Add "As of 5.2.1" notes as requested 2006-11-09 12:35:12 +00:00
Hannes Magnusson 4989f0d899 New features/errormsgs/return values in ext/zip
New optional parameter in ext/ming
2006-11-09 11:44:13 +00:00
Frank M. Kromann 87b412dc3a Revert patch for warnings about missing headers. These are fixed in the latest version of libming.
Sync code for SWFMovie::streamMP3. This function will now return the number of frames in the file.
2006-11-09 09:19:21 +00:00
Dmitry Stogov 25f01e8ec3 Fixed tests 2006-11-09 08:29:18 +00:00
Ilia Alshanetsky e5f9b479af Fixed bug #38602 (header( "HTTP/1.0 ..." ) does not change proto version). 2006-11-09 00:13:26 +00:00
Antony Dovgal 1f061b3154 fix #39300 (make install fails if wget is not available)
add support of 'fetch'
2006-11-08 19:05:41 +00:00
Dmitry Stogov cc895444b1 HashTable copying optimization (Matt Wilmas) 2006-11-08 16:02:03 +00:00
Dmitry Stogov 41ae8de136 Fixed bug #39297 (Memory corryption because of indirect modification of overloaded array). 2006-11-08 13:38:28 +00:00
Dmitry Stogov a84a2eae6a Fixed bug #39344 (Unnecessary calls to OnModify callback routine for an extension INI directive). (wharmby at uk dot ibm dot com, Dmitry) 2006-11-08 11:04:27 +00:00
Dmitry Stogov 84b9dcb73f Fixed bug #38536 (SOAP returns an array of values instead of an object) 2006-11-08 10:05:19 +00:00
Ilia Alshanetsky d6b3b73490 Fixed tests 2006-11-07 20:24:38 +00:00
Ilia Alshanetsky 6e30ea1e3f BFN 2006-11-07 20:24:04 +00:00
Ilia Alshanetsky cb96148912 Fixed bug #33282 (Re-assignment by reference does not clear the is_ref flag)
# Original patch by Matt Wilmas
2006-11-07 20:23:30 +00:00
Ilia Alshanetsky 887b3484f7 Fixed bug #39398 (Booleans are not automatically translated to integers). 2006-11-07 17:57:17 +00:00
Johannes Schlüter c65a1f10cb - MFH: No C++ comments (fix #39414) 2006-11-07 15:19:11 +00:00
Hannes Magnusson 69dbaaacac MFH: arginfo fixes 2006-11-06 23:20:11 +00:00
Rasmus Lerdorf cdf8494879 It is allow_url_include not allow_fopen_include 2006-11-06 18:21:25 +00:00
Ilia Alshanetsky 07cdfefdee Fixed bug #39350 (crash with implode("\n", array(false))). 2006-11-06 17:21:05 +00:00
Hannes Magnusson 4cb16d8328 include php://input && data: have been disabled (with allow_fopen_include off)
new DateTime(new stdclass) now throws exception
imap_[re]open() has new optional parameter
2006-11-06 16:51:55 +00:00
Ilia Alshanetsky 5cc7f616c9 param parsing fix
# Thanks Hannes
2006-11-06 16:44:03 +00:00
Dmitry Stogov 7b8f30adcb Fixed bug #39121 (Incorrect return array handling in non-wsdl soap client) 2006-11-06 16:36:43 +00:00
Hannes Magnusson c263929002 MFH: throw exception on invalid parameters 2006-11-06 16:11:26 +00:00
Hannes Magnusson c32408e694 MFH: fix segfault & improve test 2006-11-06 15:21:45 +00:00
Dmitry Stogov 82f89748a4 Windows doesn't have chown(). Remove unused function and reference to undeclared macro VCWD_CHOWN(). 2006-11-06 14:54:52 +00:00
Dmitry Stogov 95fbb9514e MFH: Fixed decoding list of arrays (related to bug #39121) 2006-11-06 13:22:49 +00:00
Rasmus Lerdorf cea64d52fa data: and php:stdin/input allow_url_include checks 2006-11-05 20:08:58 +00:00
Ilia Alshanetsky 86a6812dbb Fixed bug #39362 (Added an option to imap_open/imap_reopen to control the
number of connection retries).
2006-11-05 18:31:41 +00:00
Pierre Joye 00f0e92dee - gdpng entry 2006-11-05 15:08:50 +00:00
Pierre Joye 5784602544 - Merge from gd-cvs, initialize the signature not the infile ctx
NB: good that we don't use getC :)
2006-11-05 15:04:50 +00:00
Marcus Boerger 79946dc8a0 - MFH: Make parameter parsing api check happy 2006-11-04 20:46:32 +00:00
Rasmus Lerdorf c8778c73c3 Mark memory streams as is_url 2006-11-04 20:43:28 +00:00
Marcus Boerger 15592390c5 - MFH Store length of autoload file exts 2006-11-04 20:27:28 +00:00
Frank M. Kromann 9df320c423 Fix win32 build 2006-11-04 17:25:14 +00:00
Pierre Joye 4e257c03a1 - WS 2006-11-04 14:34:33 +00:00
Pierre Joye 29242cfab9 - MFH: optimize horizontal and vertical lines 2006-11-04 14:27:07 +00:00
Hannes Magnusson 7b15d02b99 Fix build 2006-11-04 13:03:56 +00:00
Pierre Joye d05ef39c74 - MFH #39366, imagerotate does not use alpha with angles>45 2006-11-04 03:15:31 +00:00
Pierre Joye 59841dd25c - #39273 entry 2006-11-04 02:24:53 +00:00
Pierre Joye 541f9940ac - #39273, imagecopyresized and alpha channel 2006-11-04 02:21:06 +00:00
Pierre Joye b867123e30 - News entry for zip MFH 2006-11-04 00:09:04 +00:00
Ilia Alshanetsky 6f0a9d6f76 wrong bug # 2006-11-03 20:38:21 +00:00
Ilia Alshanetsky 6516d8e1d6 Fixed bug #39358 (INSTALL_HEADERS contains incorrect reference to
php_filter.h)
2006-11-03 20:08:38 +00:00
Ilia Alshanetsky 4f3889d5bf Fixed bug #39361 (Removed warning on empty haystack inside mb_strstr()). 2006-11-03 19:55:51 +00:00
Marcus Boerger f7948f7fef - BFN 2006-11-03 19:04:19 +00:00
Marcus Boerger 17b675132b - Fix version 2006-11-03 19:03:25 +00:00
Marcus Boerger da8b00a5e4 - MFH: Fixed bug #39320 2006-11-03 19:02:16 +00:00
Marcus Boerger 978dd0fdd9 - MFH: Fix issue with some mangeled properties 2006-11-03 19:01:40 +00:00
Marcus Boerger 2820e9cf1e - MFH: Fixed bug #38698 2006-11-03 19:00:46 +00:00
Marcus Boerger 76ba475d76 - MFH: Synch 2006-11-03 18:58:41 +00:00
Marcus Boerger 76b73a6ff2 - MFH: Include new headers only if present 2006-11-03 18:57:50 +00:00
Hannes Magnusson 49c109693a Add "comment" to make tracking the commit down easier 2006-11-03 18:07:53 +00:00
Pierre Joye 8ad0c6d543 - MFH:
- fix possible leak in statName and statIndex
 - add addEmptyDir() method
 - add zip_stat_init,zip_clear_error and zip_file_clear_error
 - add tests
 - Fix protos (Hannes)
 - setComment return value on success (Hannes)
2006-11-03 16:46:19 +00:00
Pierre Joye c002606a88 - fix build (var.s is for zstr) 2006-11-03 16:40:52 +00:00
Hannes Magnusson b11b08e987 MFH: fix parameter parsing in getrusage() 2006-11-03 15:48:39 +00:00
Hannes Magnusson 4deb09e72e Generated file 2006-11-03 15:41:09 +00:00
Hannes Magnusson 5006fb2ceb MFH: Fix double "wrong param count" messages 2006-11-03 15:13:17 +00:00
Hannes Magnusson 91c604d584 MFH: Add "wrong param" warning to strtotime() 2006-11-03 15:06:51 +00:00
Ilia Alshanetsky 0c7e63a07e Fixed bug #39354 (Allow building of curl extension against libcurl 7.16.0) 2006-11-03 14:53:14 +00:00
Hannes Magnusson ace3f94d20 MFH: Fix test 2006-11-03 14:51:02 +00:00
Hannes Magnusson 050f94f746 MFH: Fix double "wron param count" messages 2006-11-03 14:46:48 +00:00
Hannes Magnusson 11c47dc510 MFH: oneliners.. 2006-11-03 14:38:45 +00:00
Hannes Magnusson 07a16d19e0 MFH: use PHP_ME_MAPPING rather than ZEND_NAMED_FE/ZEND_FN 2006-11-03 14:36:11 +00:00
Hannes Magnusson 4f4e724b1b MFH: Remove SKIPIF 2006-11-03 14:17:40 +00:00
Hannes Magnusson bece30aee5 MFH: fix crash on invalid regex 2006-11-03 14:11:23 +00:00
Hannes Magnusson 9445a302ae MFH: missing includes 2006-11-03 14:06:59 +00:00
Ilia Alshanetsky 7ce23de84c Filter extension news 2006-11-03 13:54:49 +00:00
Ilia Alshanetsky 683f81f195 MFH: Fixed a possible crash when callback function returns a non-modified
value
2006-11-03 13:53:24 +00:00
Ilia Alshanetsky 6123f11021 MFH:
Added filter support for $_SERVER in cgi/apache2 sapis
	Make sure PHP_SELF is filtered in Apache 1 sapi
2006-11-03 13:51:48 +00:00
Ilia Alshanetsky bd2ab7bc15 Fixed bug #39215 (Inappropriate close of stdin/stdout/stderr). 2006-11-03 13:34:19 +00:00
Ilia Alshanetsky 3f71251ffa MFH: Fixed bug #39265 (Fixed path handling inside mod_files.sh). 2006-11-03 13:19:07 +00:00
Ilia Alshanetsky 57f295d3a6 Fixed bug #38680 (Added missing handling of basic types in json_decode).
# already in HEAD
2006-11-03 13:16:33 +00:00
Derick Rethans 7b48ca584c - Fixed API in doc. 2006-11-03 07:27:52 +00:00
Rui Hirokawa 501025306c fixed illegal encoding detection when mbstring.encoding_translation is enabled.(made by komura) 2006-11-03 02:26:50 +00:00
Rui Hirokawa 96d597b6a4 added japanese legacy encoding support (made by moriyama@miraclelinux.com) 2006-11-03 01:11:35 +00:00
Ilia Alshanetsky 3a533934c7 Added missing boundary checks. 2006-11-01 01:55:11 +00:00
Ilia Alshanetsky bc32d6b5cd Cleanup of 5.2 update file from Steph 2006-10-31 17:24:51 +00:00
Ilia Alshanetsky 8045c6bff8 Back to dev 2006-10-30 23:08:30 +00:00
Ilia Alshanetsky d584c0a6f4 Fixed year 2006-10-30 23:07:28 +00:00
Ilia Alshanetsky b48fa87e8b 5.2.0 2006-10-30 23:06:22 +00:00
Ilia Alshanetsky 13342afe94 Prep news file for 5.2 2006-10-30 22:28:36 +00:00
Rasmus Lerdorf 228bb9e7ff Pierre requested an update to this. I don't think it makes sense to
remove what little API docs we have here, and the simple example in this
doc is a lot easier to follow than ext/filter.
2006-10-30 17:11:02 +00:00
Dmitry Stogov 7ff822ee49 Fixed bug #39304 (Segmentation fault with list unpacking of string offset) 2006-10-30 11:05:00 +00:00
Uwe Schindler 94b24ef2dd update news 2006-10-27 09:02:54 +00:00
Uwe Schindler 3cfbbc0635 MFH: update readme 2006-10-27 07:29:51 +00:00
Uwe Schindler 841bac014a Fix build in Sun Webserver 7 (should be in 5.2.0, it's not critical but does not break mainstream sapis!!!) 2006-10-27 07:23:44 +00:00
Hannes Magnusson a2f8b5f2ee More curl constants 2006-10-25 12:58:46 +00:00
Hannes Magnusson 2d64114764 Add a note reffering to the "new feature" section (lukas) 2006-10-25 12:40:23 +00:00
Hannes Magnusson 1d0ebcd2cf New extensions
- json
	- filter
	- zip
New classes
	- DateTime
	- DateTimeZone
New functions
	- image_type_to_extension
	- gmp_nextprime
	- xmlwriter_full_end_element
	- xmlwriter_write_raw
	- timezone_identifiers_list
Added error message (objects without casting handler) caught by rasmus
2006-10-25 12:19:13 +00:00
Hannes Magnusson 5bb0ac0d2a Silly me. those PDO constants are class constants
#thanks ilia \o/
2006-10-24 21:51:15 +00:00
Hannes Magnusson a9cb3dd17f New constants 2006-10-24 21:43:51 +00:00
Hannes Magnusson a7c925d6e1 New INI entrys
php-cli searching php.ini "bc break"
2006-10-24 21:32:29 +00:00
Hannes Magnusson b5aa4dffbe session_set_cookie_params new param 2006-10-24 21:16:24 +00:00
Hannes Magnusson faac1bbe15 mention php_errormsg bc break.. 2006-10-24 21:08:53 +00:00
Hannes Magnusson 57e2fc546e Add sections: backwards incompatible error messages & new functions/methods/classes/constants/optional parameters 2006-10-24 20:54:07 +00:00
Dmitry Stogov 4629cc0bf6 Revert patch because we are at last RC stage. 2006-10-24 05:20:50 +00:00
Dmitry Stogov fc22c9dd50 Fixed decoding of list of arrays in non-WSDL mode. (releated to bug #39121) 2006-10-23 06:46:38 +00:00
Antony Dovgal 5af7f12eb8 fix ZTS build without SPL enabled 2006-10-20 21:28:31 +00:00
Hannes Magnusson f8e4467725 Fix test 2006-10-20 14:42:37 +00:00
Ilia Alshanetsky 2ca717905e Back to dev 2006-10-20 13:15:35 +00:00
Ilia Alshanetsky 3b1e299264 Make use of abstract methods be E_STRICT rather then E_ERROR 2006-10-20 02:44:26 +00:00
Sara Golemon 3042386549 MFH(r-1.114) Can't use real arrays held by ArrayObjects in write context 2006-10-20 02:11:19 +00:00
Ilia Alshanetsky f85d9885d3 5.2.0RC6 2006-10-20 01:51:07 +00:00
Antony Dovgal 0cf7b1012f add new test by Pierre 2006-10-19 12:07:07 +00:00
Dmitry Stogov 770b29803c Fixed mkdir("/tmp/foo//bar/log", 0777, true) 2006-10-19 09:49:44 +00:00
Ilia Alshanetsky 76f23d4dcf Fixed bug #38400 (Use of com.typelib_file may cause a crash). 2006-10-18 23:47:33 +00:00
Antony Dovgal c79ba67673 MFH: fix bug #38882 (ldap_connect causes segfault with newer versions of OpenLDAP) 2006-10-18 20:58:23 +00:00
Johannes Schlüter 2193a77eed - Here, too 2006-10-18 17:17:18 +00:00
Johannes Schlüter 6841110122 - MFH: added missing return... 2006-10-18 17:04:49 +00:00
Johannes Schlüter dcf249004c - MFH: Fix #38465 (ReflectionParameter fails if default value is an access to self:: 2006-10-18 16:35:15 +00:00
Hannes Magnusson b99ba323d5 MFH: fix arginfo 2006-10-18 16:04:37 +00:00
Antony Dovgal 91a1333c21 MFH: fix PECL bug #9061 (oci8 might reuse wrong persistent connection) 2006-10-18 14:23:23 +00:00
Antony Dovgal 16877a5ad8 fix test 2006-10-17 22:05:16 +00:00
Derick Rethans 1fa009d1ca - Updated timezone database. 2006-10-17 17:08:03 +00:00
Ilia Alshanetsky c5d68cd1df Unify handling of return values on validation failure and var not found 2006-10-17 15:26:14 +00:00
Antony Dovgal 0ebfbfe791 MFH: initialize optional vars 2006-10-16 19:27:57 +00:00
Ilia Alshanetsky 2245901f6f Fixed compiler warnings 2006-10-16 15:39:39 +00:00
Dmitry Stogov 31acd1c26e Fixed bug #39140 (Uncaught exception may cause crash) 2006-10-16 11:13:08 +00:00
Dmitry Stogov bf95b64376 Fixed bug #39020 (PHP in FastCGI server mode crashes) 2006-10-16 10:46:59 +00:00
2124 changed files with 127291 additions and 49593 deletions

No files matched your search

+44 -10
View File
@@ -8,7 +8,7 @@ define ____executor_globals
end
document ____executor_globals
portable way of accessing executor_globals
portable way of accessing executor_globals, set $eg
ZTS detection is automatically based on ext/standard module struct
end
@@ -39,14 +39,18 @@ define printzv
end
document printzv
prints content of zval
prints zval contents
end
define ____printzv_contents
set $zvalue = $arg0
set $type = $zvalue->type
printf "(refcount=%d) ", $zvalue->refcount
printf "(refcount=%d", $zvalue->refcount
if $zvalue->is_ref
printf ",is_ref"
end
printf ") "
if $type == 0
printf "NULL"
end
@@ -69,7 +73,7 @@ define ____printzv_contents
if ! $arg1
printf "{\n"
set $ind = $ind + 1
____print_ht $zvalue->value.ht
____print_ht $zvalue->value.ht 1
set $ind = $ind - 1
set $i = $ind
while $i > 0
@@ -103,7 +107,7 @@ define ____printzv_contents
printf "(%d): ", $ht->nNumOfElements
printf "{\n"
set $ind = $ind + 1
____print_ht $ht
____print_ht $ht 1
set $ind = $ind - 1
set $i = $ind
while $i > 0
@@ -188,12 +192,10 @@ define print_const_table
end
define ____print_ht
set $ht = $arg0
set $ht = (HashTable*)$arg0
set $p = $ht->pListHead
while $p != 0
set $zval = *(zval **)$p->pData
set $i = $ind
while $i > 0
printf " "
@@ -206,8 +208,18 @@ define ____print_ht
else
printf "%d => ", $p->h
end
if $arg1 == 0
printf "%p\n", (void*)$p->pData
end
if $arg1 == 1
set $zval = *(zval **)$p->pData
____printzv $zval 1
end
if $arg1 == 2
printf "%s\n", (char*)$p->pData
end
____printzv $zval 1
set $p = $p->pListNext
end
end
@@ -215,7 +227,7 @@ end
define print_ht
set $ind = 1
printf "[0x%08x] {\n", $arg0
____print_ht $arg0
____print_ht $arg0 1
printf "}\n"
end
@@ -223,6 +235,28 @@ document print_ht
dumps elements of HashTable made of zval
end
define print_htptr
set $ind = 1
printf "[0x%08x] {\n", $arg0
____print_ht $arg0 0
printf "}\n"
end
document print_htptr
dumps elements of HashTable made of pointers
end
define print_htstr
set $ind = 1
printf "[0x%08x] {\n", $arg0
____print_ht $arg0 2
printf "}\n"
end
document print_htstr
dumps elements of HashTable made of strings
end
define ____print_ft
set $ht = $arg0
set $p = $ht->pListHead
+91 -104
View File
@@ -127,32 +127,14 @@ EXTENSION: dbase
MAINTENANCE: Orphaned
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: dbx
PRIMARY MAINTAINER: Marc Boeren <M.Boeren@guidance.nl>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.6
COMMENT: DB abstraction for odbc, mysql, pgsql, mssql, fbsql and more, see documentation
-------------------------------------------------------------------------------
EXTENSION: fbsql
PRIMARY MAINTAINER: Frank M. Kromann <fmk@swwwing.com>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: informix
PRIMARY MAINTAINER: Danny Heijl <Danny.Heijl@cevi.be>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ingres_ii
PRIMARY MAINTAINER: David Hénot <henot@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: interbase
PRIMARY MAINTAINER: Ard Biesheuvel <ard@ard.nu>, Jouni Ahto <jouni.ahto@exdec.fi>
MAINTENANCE: Maintained
MAINTENANCE: Odd fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: msql
@@ -187,14 +169,53 @@ MAINTENANCE: Maintained
STATUS: Working
COMMENT: Working
-------------------------------------------------------------------------------
EXTENSION: oracle
MAINTENANCE: Orphaned
EXTENSION: pdo
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
COMMENT: Using the new OCI8 driver is encouraged where possible.
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: ovrimos
MAINTENANCE: Unknown
STATUS: Unknown
EXTENSION: pdo_dblib
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_firebird
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_mysql
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_odbc
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_oci
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_pgsql
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_sqlite
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pgsql
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>, Yasuo Ohgaki <yohgaki@php.net>
@@ -237,11 +258,11 @@ SINCE: 5.0
EXTENSION: soap
PRIMARY MAINTAINER: Dmitry Stogov <dmitry@zend.com>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: wddx
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
MAINTENANCE: Orphaned
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xml
@@ -249,11 +270,21 @@ PRIMARY MAINTAINER: Thies C. Arntzen <thies@thieso.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xmlreader
PRIMARY MAINTAINER: Rob Richards <rrichards@php.net>, Christian Stocker <chregu@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xmlrpc
PRIMARY MAINTAINER: Dan Libby
MAINTENANCE: UNKNOWN
MAINTENANCE: Orphaned
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: xmlwriter
PRIMARY MAINTAINER: Rob Richards <rrichards@php.net>, Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xsl
PRIMARY MAINTAINER: Christian Stocker <chregu@php.net>, Rob Richards <rrichards@php.net>
MAINTENANCE: Maintained
@@ -267,7 +298,7 @@ SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: bcmath
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: bz2
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
@@ -286,11 +317,6 @@ MAINTENANCE: Maintained
STATUS: Windows
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: cpdf
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ctype
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
MAINTENANCE: Maintained
@@ -313,27 +339,19 @@ MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.2
-------------------------------------------------------------------------------
EXTENSION: fam
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: fdf
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
EXTENSION: filter
PRIMARY MAINTAINER: Derick Rethans <derick@php.net>, Pierre-Alain Joye <pajoye@php.net>, Ilia Alshanetsky <iliaa@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: filepro
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
SINCE: 5.2
-------------------------------------------------------------------------------
EXTENSION: ftp
PRIMARY MAINTAINER: Stefan Esser (sesser@php.net)
MAINTENANCE: Maintained
PRIMARY MAINTAINER: Stefan Esser <sesser@php.net>
MAINTENANCE: Odd fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: gd
PRIMARY MAINTAINER: Rasmus Lerdorf <rasmus@php.net>
PRIMARY MAINTAINER: Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
@@ -342,15 +360,11 @@ MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: gmp
MAINTENANCE: Unknown
STATUS: Unknown
PRIMARY MAINTAINER: Stanislav Malyshev <stas@php.net>, Antony Dovgal <tony2001@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: hwapi
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: iconv
PRIMARY MAINTAINER: Moriyoshi Koizumi <moriyoshi@php.net>
MAINTENANCE: Maintained
@@ -361,13 +375,14 @@ PRIMARY MAINTAINER: Chuck Hagenbuch <chuck@horde.org>, Ilia Alshanetsky <iliaa@
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ircg
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Unknown
STATUS: Unknown
EXTENSION: json
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.2
-------------------------------------------------------------------------------
EXTENSION: ldap
PRIMARY MAINTAINER: Stig Venaas <venaas@php.net>
PRIMARY MAINTAINER: Stig Venaas <venaas@php.net>, Douglas Goldstein <cardoe@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
@@ -381,14 +396,9 @@ PRIMARY MAINTAINER: Derick Rethans <derick@derickrethans.nl>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mcve
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: mhash
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Maintained
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mime_magic
@@ -402,48 +412,26 @@ PRIMARY MAINTAINER: Frank M. Kromann
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: mnogosearch
PRIMARY MAINTAINER: Sergey Kartashoff <gluke@mail.ru>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: mono
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: msession
PRIMARY MAINTAINER Mark L. Woodward <mlwmohawk@mohawksoft.com>
MAINTENANCE: Maintained
STATUS: Working/Experimental
COMMENT: Tested on Linux, should work on other UNIX platforms. Backend server code can compile under Windows.
-------------------------------------------------------------------------------
EXTENSION: ncurses
PRIMARY MAINTAINER Ilia Alshanetsky <iliaa@php.net>, Wez Furlong <wez@php.net>, Hartmut Holzgraefe <hholzgra@php.net>, Georg Richter <georg@php.net>
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: openssl
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>, Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: pcntl
MAINTENANCE: Unknown
STATUS: Experimental
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: pcre
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>, Nuno Lopes <nlopess@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: pfpro
PRIMARY MAINTAINER: David Croft <david@infotrek.co.uk>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: posix
PRIMARY MAINTAINER: Kristian Köhntopp <kris@koehntopp.de>
MAINTENANCE: Maintained
@@ -477,7 +465,7 @@ STATUS: Working
EXTENSION: shmop
PRIMARY MAINTAINER: Ilia Alshanetsky <iliaa@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 4.0.3
-------------------------------------------------------------------------------
EXTENSION: snmp
@@ -488,7 +476,7 @@ STATUS: Working
EXTENSION: sockets
PRIMARY MAINTAINER: Chris Vandomelen <chrisv@b0rked.dhs.org>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: spl
@@ -499,31 +487,30 @@ SINCE: 5.0.0
-------------------------------------------------------------------------------
EXTENSION: sysvmsg
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: sysvsem
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: sysvshm
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: tidy
PRIMARY MAINTAINER: John Coggeshall <john@php.net>, Ilia Alshanetsky <iliaa@php.net>
PRIMARY MAINTAINER: John Coggeshall <john@php.net>, Ilia Alshanetsky <iliaa@php.net>, Nuno Lopes <nlopess@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: tokenizer
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: yaz
PRIMARY MAINTAINER: Adam Dickmeiss <adam@indexdata.dk>
EXTENSION: zip
PRIMARY MAINTAINER: Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
SINCE: 4.0.1
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: zlib
PRIMARY MAINTAINER: Stefan Roehrich <sr@linux.de>
+445 -392
View File
File diff suppressed because it is too large. Load diff
+9 -9
View File
@@ -3,21 +3,21 @@
# Zend
#
$(builddir)/zend_language_scanner.lo: $(builddir)/zend_language_parser.h
$(builddir)/zend_ini_scanner.lo: $(builddir)/zend_ini_parser.h
$(builddir)/zend_language_scanner.lo: $(srcdir)/zend_language_parser.h
$(builddir)/zend_ini_scanner.lo: $(srcdir)/zend_ini_parser.h
$(builddir)/zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
$(srcdir)/zend_language_scanner.c: $(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
$(srcdir)/zend_language_parser.h: $(srcdir)/zend_language_parser.c
$(srcdir)/zend_language_parser.c: $(srcdir)/zend_language_parser.y
@$(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
$(srcdir)/zend_ini_parser.h: $(srcdir)/zend_ini_parser.c
$(srcdir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
@$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
$(builddir)/zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
$(srcdir)/zend_ini_scanner.c: $(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
$(builddir)/zend_indent.lo $(builddir)/zend_highlight.lo $(builddir)/zend_compile.lo: $(srcdir)/zend_language_parser.h
+1 -1
View File
@@ -67,7 +67,7 @@ php_lcov.info: lcov-test
lcov-html: php_lcov.info
@echo "Generating lcov HTML"
@$(LTP_GENHTML) --legend --output-directory lcov_html/ --title "PHP Code Coverage" --show-details php_lcov.info
@$(LTP_GENHTML) --legend --output-directory lcov_html/ --title "PHP Code Coverage" php_lcov.info
lcov-clean:
rm -f php_lcov.info
+1 -1
View File
@@ -8,7 +8,7 @@ COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORK
all: $(all_targets)
@echo
@echo "Build complete."
@echo "(It is safe to ignore warnings about tempnam and tmpnam)."
@echo "Don't forget to run 'make test'."
@echo
build-modules: $(PHP_MODULES)
+1014 -334
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -51,8 +51,8 @@ Type specifiers
passed to it.
/ - use SEPARATE_ZVAL_IF_NOT_REF() on the parameter it follows
! - the parameter it follows can be of specified type or NULL (only applies
to 'a', 'o', 'O', 'r', and 'z'). If NULL is passed, the results
pointer is set to NULL as well.
to 's', 'a', 'o', 'O', 'r', 'h', 'C', 'z', and 'Z'). If NULL is passed,
the results pointer is set to NULL as well.
Examples
--------
+872 -28
View File
@@ -23,7 +23,8 @@ and constants available to the new classes by running
php --rc DateTime
php --rc DateTimeZone
under PHP CLI. All methods map to existing procedural date functions.
under PHP CLI - or see the PHP Manual under Date/Time functions, or the 'NEW
FEATURES' section below. All methods map to existing procedural date functions.
==================================
Items from the NEWS file explained
@@ -40,7 +41,7 @@ Items from the NEWS file explained
- Changed E_ALL error reporting mode to include E_RECOVERABLE_ERROR. (Marcus)
This change means that the value of the E_ALL error_reporting constant is now
6143, where its previous value was 2047. If you are setting the error_reporting
6143, where the previous value was 2047. If you are setting the error_reporting
mode from either the Apache config file or the .htaccess files, you will need
to adjust the value accordingly. The same applies if you use the numeric value
rather than the constant in your PHP scripts.
@@ -81,7 +82,7 @@ Items from the NEWS file explained
The introduction of the 'data' URL scheme has the potential to lead to a
change of behaviour under Windows. If you are working with an NTFS
filesystem and making use of meta streams in your application, and if you
file system and making use of meta streams in your application, and if you
just happen to be using a file with the name 'data:' that is accessed without
any path information - it won't work any more. The fix is to use the 'file:'
protocol when accessing it.
@@ -109,7 +110,7 @@ Items from the NEWS file explained
The filepro and hwapi extensions have been moved to PECL and are no longer
part of the PHP distribution. The PECL package version of these extensions
will be created on the basis of user demand.
will be created according to user demand.
- Added extensions (Rasmus, Derick, Pierre)
@@ -124,7 +125,8 @@ Items from the NEWS file explained
The Zip extension enables you to transparently read or write ZIP
compressed archives and the files inside them.
Please refer to the PHP Manual for details.
Please refer to the NEW FEATURES section below or to the PHP Manual
for details.
- Improved memory manager and increased default memory limit (Dmitry)
@@ -148,31 +150,873 @@ Items from the NEWS file explained
in the Windows registry.
- Added notice when accessing return value from __get() in write mode (Marcus)
The reason for this is that __get() only returns variables in read mode, and
it is therefore not possible to write to the returned variable. In previous
releases there was no effective way to detect incorrect usage. Starting from
PHP 5.2, an E_NOTICE will be emitted in this situation.
WARNING: foreach() and functions that modify the internal array pointer will
now also trigger the same E_NOTICE, since modification requires that the
variable be accessed in write mode. To work around this, you should either
cast the returned value from __get() to an array, or use SPL's ArrayObject
instead of an array.
- CLI SAPI no longer checks cwd for php.ini or the php-cli.ini file (Edin)
In PHP 5.1.X an undocumented feature was added that made the CLI binary
check the current directory for PHP configuration file possibly leading to
unpredictable behavior due to an un-expected configuration file being
read. This functionality was removed in 5.2 and PHP will no longer search
CWD for the presence of the php.ini or the php-cli.ini files.
In PHP 5.1 an undocumented feature was added that made the CLI binary check
the current working directory for a PHP configuration file, potentially
leading to unpredictable behavior if an unexpected configuration file were
read. This functionality was removed in 5.2, and PHP will no longer search
CWD for the presence of php.ini or php-cli.ini files.
- Added a notice when performing modulus 0 operation (Tony)
In earlier versions of PHP performing integer % 0 did not emit any
warning messages, instead retuning an un-expected return value of false.
As of PHP 5.2 this operation will emit E_WARNING as is the case in all
other instance where division by zero is performed.
In earlier versions of PHP, performing integer % 0 did not emit any
warning messages, instead returning an unexpected return value of FALSE.
As of PHP 5.2 this operation will emit an E_WARNING, as is the case in all
other instances where division by zero is performed.
- As a side-effect of a change made to prevent duplicate error messages
when error_tracking is On [Ilia], it is now necessary to return FALSE
from your error handler in order to populate $php_errormsg. This allows
you to fine-grain the levels of the messages stored.
==============================
Backwards incompatible changes
==============================
In the PHP core
===============
getrusage() will return NULL when passed incompatible arguments
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/microtime.c?r1=1.57&r2=1.58 && ?r1=1.53.2.2&r2=1.53.2.2.2.1
In ext/zip
==========
ZipArchive::setCommentName() now returns TRUE on success
ZipArchive::setCommentIndex() now return TRUE on success
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15&r2=1.1.2.16
In ext/spl
==========
SplFileObject::getFilename() now returns the filename, not relative/path/to/file
As of 5.2.1 #See http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/spl_directory.c?r1=1.45.2.27.2.10&r2=1.45.2.27.2.11
==================
NEW ERROR MESSAGES
==================
In the PHP core
===============
<?php
print 10%0;
/* Warning: Division by zero in filename on line n */
echo " ";
session_regenerate_id();
/* Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in filename on line n */
str_word_count("string", 4);
/* Warning: str_word_count(): Invalid format value 4 in filename on line n */
strripos("foo", "f", 4);
/* Notice: strripos(): Offset is greater than the length of haystack string in filename on line n */
strrpos("foo", "f", 4);
/* Notice: strrpos(): Offset is greater than the length of haystack string in filename on line n */
/* when allow_url_include is OFF (default) */
include "data:;base64,PD9waHAgcGhwaW5mbygpOz8+";
/* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */
/* when allow_url_include is OFF (default) */
include "php://input";
/* Warning: include(): URL file-access is disabled in the server configuration in filename on line n */
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/php_fopen_wrapper.c?r1=1.45.2.4.2.3&r2=1.45.2.4.2.4
?>
OO related in the PHP core
==========================
<?php
interface foo {
}
class bar implements foo, foo {
}
/* Fatal error: Class bar cannot implement previously implemented interface foo in filename on line n */
class foo {
public $bar;
function __get($var)
{
return $this->bar;
}
}
$foo = new foo;
$bar =& $foo->prop;
/* Notice: Indirect modification of overloaded property foo::$prop has no effect in filename on line n */
class foo implements iterator {
public function current() {
}
public function next() {
}
public function key() {
}
public function valid() {
}
public function rewind() {
}
}
$foo = new foo();
foreach($foo as &$ref) {}
/* Fatal error: An iterator cannot be used with foreach by reference in filename on line n */
class foo {
private function __construct() {
}
}
class bar extends foo {
public function __construct() {
parent::__construct();
/* Fatal error: Cannot call private foo::__construct() in filename on line n */
}
}
new bar;
abstract class foo {
abstract static function bar();
/* Strict Standards: Static function foo::bar() should not be abstract in filename on line n */
}
stream_filter_register("", "class");
/* Warning: stream_filter_register(): Filter name cannot be empty in filename on line n */
stream_filter_register("filter", "");
/* Warning: stream_filter_register(): Class name cannot be empty in filename on line n */
class foo {
public function __toString() {
throw new Exception;
}
}
try {
print new foo;
/* Fatal error: Method foo::__toString() must not throw an exception in filename on line n */
} catch(Exception $e) {}
class foo {}
$foo = new foo;
print $foo;
/* Catchable fatal error: Object of class foo could not be converted to string in filename on line n */
?>
In the bzip2 extension
======================
<?php
bzopen("", "w");
/* Warning: bzopen(): filename cannot be empty in filename on line n */
bzopen("foo", "a");
/* Warning: bzopen(): 'a' is not a valid mode for bzopen(). Only 'w' and 'r' are supported in filename on line n */
$fp = fopen("foo", "w");
bzopen($fp, "r");
/* Warning: bzopen(): cannot read from a stream opened in write only mode in filename on line n */
?>
In the date extension
=====================
<?php
strtotime("today", "now");'
/* Warning: strtotime() expects parameter 2 to be long, string given in filename on line n */
new DateTime(new stdclass);
/* Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 1 to be string, object given' in filename:n */
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/date/php_date.c?r1=1.43.2.45.2.33&r2=1.43.2.45.2.34
?>
In the dBase extension
======================
<?php
dbase_open("foo", -1);
/* Warning: Invalid access mode -1 in filename on line n */
dbase_open("foo", null);
/* Warning: The filename cannot be empty in filename on line n */
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/dbase/dbase.c?r1=1.74.2.2.2.5&r2=1.74.2.2.2.6&diff_format=u
?>
In the mcrypt extension
=======================
<?php
$key = "this is a secret key";
$td = mcrypt_module_open('tripledes', '', 'ecb', '');
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size($td), MCRYPT_RAND);
mcrypt_generic_init($td, $key, $iv);
$encrypted_data = mcrypt_generic($td, "");
/* Warning: mcrypt_generic(): An empty string was passed in filename on line n */
?>
In the oci8 extension
=====================
<?php
oci_connect("user", "pass", "db", "bogus_charset");
/* Warning: Invalid character set name: bogus_charset in filename on line n */
$oci = oci_connect("user", "pass", "db");
oci_password_change($oci, "", "old", "new");
/* Warning: username cannot be empty in filename on line n */
oci_password_change($oci, "user", "", "new");
/* Warning: old password cannot be empty in filename on line n */
oci_password_change($oci, "user", "old", "");
/* Warning: new password cannot be empty in filename on line n */
?>
In the SPL extension
====================
<?php
$obj = new SplFileObject(__FILE__);
$obj->fgetcsv("foo");
/* Warning: SplFileObject::fgetcsv(): delimiter must be a character in filename on line n */
$obj->fgetcsv(",", "foo");
/* Warning: SplFileObject::fgetcsv(): enclosure must be a character in filename on line n */
?>
In the sysvmsg extension
========================
<?php
/* Warning: maximum size of the message has to be greater then zero in filename on line n */
?>
In the Zip extension
====================
<?php
$obj = new ZipArchive();
$obj->open("archive.zip");
$obj->setCommentName("", "comment");'
/* Notice: ZipArchive::setCommentName(): Empty string as entry name in filename on line n */
$obj->getCommentName("");
/* Notice: ZipArchive::getCommentName(): Empty string as entry name in filename on line n */
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15&r2=1.1.2.16
?>
============
NEW FEATURES
============
New extensions
==============
Filter
Methods:
mixed filter_has_var(constant type, string variable_name)
- Returns true if the variable with the name 'name' exists in source
int filter_id(string filtername)
- Returns the filter ID belonging to a named filter
mixed filter_input(constant type, string variable_name [, long filter [, mixed options]])
- Returns the filtered variable 'name'* from source `type`
mixed filter_input_array(constant type, [, mixed options]])
- Returns an array with all arguments defined in 'definition'
array filter_list()
- Returns a list of all supported filters
mixed filter_var(mixed variable [, long filter [, mixed options]])
- Returns the filtered version of the variable.
mixed filter_var_array(array data, [, mixed options]])
- Returns an array with all arguments defined in 'definition'
JSON
Methods:
mixed json_decode(string json[, boolean assoc=0])
- Decodes a JSON string into a PHP object/associative array
string json_encode(mixed parameter)
- Takes a object or an array and returns a JSON encoded string
Zip
Class constants:
ZipArchive::CHECKCONS
ZipArchive::CM_DEFAULT
ZipArchive::CM_DEFLATE
ZipArchive::CM_DEFLATE64
ZipArchive::CM_IMPLODE
ZipArchive::CM_PKWARE_IMPLODE
ZipArchive::CM_REDUCE_1
ZipArchive::CM_REDUCE_2
ZipArchive::CM_REDUCE_3
ZipArchive::CM_REDUCE_4
ZipArchive::CM_SHRINK
ZipArchive::CM_STORE
ZipArchive::CREATE
ZipArchive::ER_CHANGED
ZipArchive::ER_CLOSE
ZipArchive::ER_COMPNOTSUPP
ZipArchive::ER_CRC
ZipArchive::ER_DELETED
ZipArchive::ER_EOF
ZipArchive::ER_EXISTS
ZipArchive::ER_INCONS
ZipArchive::ER_INTERNAL
ZipArchive::ER_INVAL
ZipArchive::ER_MEMORY
ZipArchive::ER_MULTIDISK
ZipArchive::ER_NOENT
ZipArchive::ER_NOZIP
ZipArchive::ER_OK
ZipArchive::ER_OPEN
ZipArchive::ER_READ
ZipArchive::ER_REMOVE
ZipArchive::ER_RENAME
ZipArchive::ER_SEEK
ZipArchive::ER_TMPOPEN
ZipArchive::ER_WRITE
ZipArchive::ER_ZIPCLOSED
ZipArchive::ER_ZLIB
ZipArchive::EXCL
ZipArchive::FL_COMPRESSED
ZipArchive::FL_NOCASE
ZipArchive::FL_NODIR
ZipArchive::FL_UNCHANGED
ZipArchive::OVERWRITE
Functions:
void zip_close(resource zip)
- Close a Zip archive
void zip_entry_close(resource zip_ent)
- Close a zip entry
int zip_entry_compressedsize(resource zip_entry)
- Return the compressed size of a Zip entry
string zip_entry_compressionmethod(resource zip_entry)
- Return a string containing the compression method used on a particular entry
int zip_entry_filesize(resource zip_entry)
- Return the actual filesize of a Zip entry
string zip_entry_name(resource zip_entry)
- Return the name given a Zip entry
bool zip_entry_open(resource zip_dp, resource zip_entry [, string mode])
- Open a Zip File, pointed by the resource entry
mixed zip_entry_read(resource zip_entry [, int len])
- Read from an open directory entry
resource zip_open(string filename)
- Create new zip using source URI for output
resource zip_read(resource zip)
- Returns the next file in the archive
Methods:
bool ZipArchive::addFile(string filepath[, string entryname[, int start [, int length]]])
- Add a file in a Zip archive using its path and the name to use
bool ZipArchive::addFromString(string name, string content)
- Add a file using content and the entry name
void ZipArchive::close()
- close the zip archive
bool ZipArchive::deleteIndex(int index)
- Delete a file using its index
bool ZipArchive::deleteName(string name)
- Delete a file using its index
bool ZipArchive::extractTo(string pathto[, mixed files])
- Extract one or more file from a zip archive to a specified destination
string ZipArchive::getArchiveComment()
- Returns the Zip archive comment
string ZipArchive::getCommentIndex(int index)
- Returns the comment of an entry using its index
string ZipArchive::getCommentName(string name)
- Returns the comment of an entry using its name
string ZipArchive::getFromName(string entryname[, int len [, int flags]])
- get the contents of an entry using its name
string ZipArchive::getFromIndex(string entryname[, int len [, int flags]])
- get the contents of an entry using its index
string ZipArchive::getNameIndex(int index [, int flags])
- Returns the name of the file at position index
resource ZipArchive::getStream(string entryname)
- Get a stream for an entry using its name
int ZipArchive::locateName(string filename[, int flags])
- Returns the index of the entry named filename in the archive
mixed ZipArchive::open(string source [, int flags])
- Create new zip using source URI for output, return TRUE on success or the error code
bool ZipArchive::renameIndex(int index, string new_name)
- Rename an entry selected by its index to new_name
bool ZipArchive::renameName(string name, string new_name)
- Rename an entry selected by its name to new_name
bool ZipArchive::setArchiveComment(string name, string comment)
- Set or remove (NULL/'') the comment of the archive
bool ZipArchive::setCommentIndex(int index, string comment)
- Set or remove (NULL/'') the comment of an entry using its index
bool ZipArchive::setCommentName(string name, string comment)
- Set or remove (NULL/'') the comment of an entry using its Name
array ZipArchive::statIndex(int index[, int flags])
- Returns the zip entry information using its index
array ZipArchive::statName(string filename[, int flags])
- Returns the information about a the zip entry filename
bool ZipArchive::unchangeAll()
- All changes made to the archive are reverted
bool ZipArchive::unchangeArchive()
- Revert all global changes to the archive. For now, this only reverts archive comment changes
bool ZipArchive::unchangeIndex(int index)
- Changes to the file at position index are reverted
bool ZipArchive::unchangeName(string name)
- Changes to the file named 'name' are reverted
New classes
===========
DateTime:
Constants:
DateTime::ATOM
DateTime::COOKIE
DateTime::ISO8601
DateTime::RFC822
DateTime::RFC850
DateTime::RFC1036
DateTime::RFC1123
DateTime::RFC2822
DateTime::RFC3339
DateTime::RSS
DateTime::W3C
Methods:
DateTime::__construct([string time[, DateTimeZone object]])
- Returns new DateTime object
string DateTime::format(string format)
- Returns date formatted according to given format
long DateTime::getOffset()
- Returns the DST offset
DateTimeZone DateTime::getTimezone()
- Return new DateTimeZone object relative to give DateTime
void DateTime::modify(string modify)
- Alters the timestamp
array DateTime::parse(string date)
- Returns associative array with detailed info about given date
void DateTime::setDate(long year, long month, long day)
- Sets the date
void DateTime::setISODate(long year, long week[, long day])
- Sets the ISO date
void DateTime::setTime(long hour, long minute[, long second])
- Sets the time
void DateTime::setTimezone(DateTimeZone object)
- Sets the timezone for the DateTime object
DateTimeZone:
Methods:
DateTimeZone DateTimeZone::__construct(string timezone)
- Returns new DateTimeZone object
string DateTimeZone::getName()
- Returns the name of the timezone
long DateTimeZone::getOffset(DateTime object)
- Returns the timezone offset
array DateTimeZone::getTransitions()
- Returns numerically indexed array containing associative array for all transitions for the timezone
RecursiveRegexIterator:
extends RegexIterator
implements OuterIterator, Traversable, Iterator, RecursiveIterator
Methods:
RecursiveRegexIterator::__construct(RecursiveIterator it, string regex [, int mode [, int flags [, int preg_flags]]])
Create an RecursiveRegexIterator from another recursive iterator and a regular expression
RecursiveRegexIterator RecursiveRegexIterator::getChildren()
Return the inner iterator's children contained in a RecursiveRegexIterator
bool RecursiveRegexIterator::hasChildren()
Check whether the inner iterator's current element has children
RegexIterator:
extends FilterIterator
implements Iterator, Traversable, OuterIterator
Constants:
RecursiveRegexIterator::ALL_MATCHES
RecursiveRegexIterator::GET_MATCH
RecursiveRegexIterator::MATCH
RecursiveRegexIterator::REPLACE
RecursiveRegexIterator::SPLIT
RecursiveRegexIterator::USE_KEY
Properties:
public $replacement
Methods:
RegexIterator::__construct(Iterator it, string regex [, int mode [, int flags [, int preg_flags]]])
- Create an RegexIterator from another iterator and a regular expression
bool RegexIterator::accept()
- Match (string)current() against regular expression
bool RegexIterator::getFlags()
- Returns current operation flags
bool RegexIterator::getMode()
- Returns current operation mode
bool RegexIterator::getPregFlags()
- Returns current PREG flags (if in use or NULL)
bool RegexIterator::setFlags(int new_flags)
- Set operation flags
bool RegexIterator::setMode(int new_mode)
- Set new operation mode
bool RegexIterator::setPregFlags(int new_flags)
- Set PREG flags
New methods
===========
In ext/dom
==========
DOMDocument:
DOMDocument::registerNodeClass(string baseclass, string extendedclass)
- Register extended class used to create base node type
DOMElement:
DOMElement::setIDAttribute(string name, boolean isId)
- Declares the attribute specified by name to be of type ID
DOMElement::setIDAttributeNode(DOMAttr idAttr, boolean isId)
- Declares the attribute specified by node to be of type ID
DOMElement::setIDAttributeNS(string namespaceURI, string localName, boolean isId)
- Declares the attribute specified by local name and namespace URI to be of type ID
DOMNode:
DOMNode::C14N([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]])
- Canonicalize nodes to a string
DOMNode::C14NFile(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]])
- Canonicalize nodes to a file
DOMNode::getNodePath()
- Gets an xpath for a node
In ext/soap
===========
SoapServer:
SoapServer::setObject(object obj)
- Sets object which will handle SOAP requests
In ext/spl
==========
ArrayObject:
int ArrayObject::asort(void)
- Sort the entries by values
int ArrayObject::ksort(void)
- Sort the entries by key
int ArrayObject::natcasesort(void)
- Sort the entries by key using case insensitive "natural order" algorithm.
int ArrayObject::natsort(void)
- Sort the entries by values using "natural order" algorithm.
int ArrayObject::uasort(callback cmp_function)
- Sort the entries by values user defined function
int ArrayObject::uksort(callback cmp_function)
- Sort the entries by key using user defined function.
AppendIterator:
ArrayIterator AppendIterator::getArrayIterator()
Get access to inner ArrayIterator
int AppendIterator::getIteratorIndex()
Get index of iterator
CachingIterator:
bool CachingIterator::getCache()
Return the cache
int CachingIterator::getFlags()
Return the internal flags
bool CachingIterator::offsetExists(mixed index)
Return whether the requested index exists
string CachingIterator::offsetGet(mixed index)
- Return the internal cache if used
void CachingIterator::offsetSet(mixed index, mixed newval)
- Set given index in cache
void CachingIterator::offsetUnset(mixed index)
- Unset given index in cache
void CachingIterator::setFlags()
Set the internal flags
SplFileObject:
array("delimiter" =>, "enclosure" =>) SplFileObject::getCsvControl(void)
- Get the delimiter and enclosure character used in fgetcsv
void SplFileObject::setCsvControl([string delimiter = ',' [, string enclosure = '"']])
- Set the delimiter and enclosure character used in fgetcsv
XMLReader:
boolean XMLReader::setSchema(string filename)
Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read()
In ext/zip
==========
ZipArchive:
bool addEmptyDir(string dirname)
Creates an empty directory in the archive
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/zip/php_zip.c?r1=1.1.2.15&r2=1.1.2.16
New class constants
===================
In ext/pdo
==========
PDO::ATTR_DEFAULT_FETCH_MODE
PDO::FETCH_PROPS_LATE
In ext/spl
==========
CachingIterator::FULL_CACHE
CachingIterator::TOSTRING_USE_INNER
SplFileObject::READ_AHEAD
SplFileObject::READ_CSV
SplFileObject::SKIP_EMPTY
New functions
=============
In the PHP core
===============
array array_fill_keys(array keys, mixed val)
- Create an array using the elements of the first parameter as keys, each initialized to val
array error_get_last()
- Get the last occurred error as associative array. Returns NULL if there hasn't been an error yet
string image_type_to_extension(int imagetype [, bool include_dot])
- Get file extension for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype
int memory_get_peak_usage([real_usage])
- Returns the peak allocated by PHP memory
array timezone_abbreviations_list()
- Returns associative array containing DST, offset and the timezone name
array timezone_identifiers_list()
- Returns numerically indexed array with all timezone identifiers
string timezone_name_from_abbr(string abbr[, long gmtOffset[, long isdst]])
- Returns the timezone name from abbreviation
As of 5.2.1: #See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/streamsfuncs.c?r1=1.58.2.6.2.9&r2=1.58.2.6.2.10&diff_format=u
int stream_socket_shutdown(resource stream, int how)
- Causes all or part of a full-duplex connection on the socket associated with stream to be shut down
In ext/mbstring
===============
array mb_list_encodings_alias_names([string encoding])
- Returns an array of all supported entity encodings
mixed mb_list_mime_names([string encoding])
- Returns an array or string of all supported mime names
int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
- Finds position of first occurrence of a string within another, case insensitive
string mb_stristr(string haystack, string needle[, bool part[, string encoding]])
- Finds first occurrence of a string within another, case insensitive
string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])
- Finds the last occurrence of a character in a string within another
string mb_strrichr(string haystack, string needle[, bool part[, string encoding]])
- Finds the last occurrence of a character in a string within another, case insensitive
int mb_strripos(string haystack, string needle [, int offset [, string encoding]])
- Finds position of last occurrence of a string within another, case insensitive
string mb_strstr(string haystack, string needle[, bool part[, string encoding]])
- Finds first occurrence of a string within another
In ext/ming
===========
As of 5.2.1: See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.4&r2=1.79.2.4.2.5&diff_format=u
void ming_setSWFCompression(int num)
- Sets output compression
void swfmovie::namedanchor(string name)
- Creates anchor
void swfmovie::protect([string pasword])
- Protects
In ext/openssl
==============
resource openssl_csr_get_public_key(mixed csr)
- Extracts public key from a CERT and prepares it for use
array openssl_csr_get_subject(mixed csr [, bool use_short_names])
- Returns the subject of a CERT
array openssl_pkey_get_details(resource key)
- returns an array with the key details (bits, pkey, type)
In ext/spl
==========
string spl_object_hash(object obj)
- Return hash id for given object
int iterator_apply(Traversable it, mixed function [, mixed params])
- Calls a function for every element in an iterator
In ext/pcre
===========
int preg_last_error(void)
- Returns the error code of the last regex execution
In ext/pgsql
============
mixed pg_field_table(resource result, int field_number[, bool oid_only])
- Returns the name of the table field belongs to, or table's oid if oid_only is true
In ext/posix
============
bool posix_initgroups(string name, int base_group_id)
- Calculate the group access list for the user specified in name
In ext/gmp
==========
resource gmp_nextprime(resource a)
- Finds next prime of a
In ext/xmlwriter
================
bool xmlwriter_full_end_element(resource xmlwriter)
- End current element - returns FALSE on error
bool xmlwriter_write_raw(resource xmlwriter, string content)
- Write text - returns FALSE on error
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/xmlwriter/php_xmlwriter.c?r1=1.20.2.12.2.8&r2=1.20.2.12.2.9
bool xmlwriter_start_dtd_entity(resource xmlwriter, string name, bool isparam)
- Create start DTD Entity - returns FALSE on error
bool xmlwriter_end_dtd_entity(resource xmlwriter)
- End current DTD Entity - returns FALSE on error
bool xmlwriter_write_dtd_entity(resource xmlwriter, string name, string content [, bool pe [, string pubid [, string sysid [, string ndataid]]]])
- Write full DTD Entity tag - returns FALSE on error
New optional parameters
=======================
In the PHP core
===============
- string base64_decode(string str[, bool strict=false]) (strict)
- bool setcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly=false]]]]]] (httponly)
- bool setrawcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly=false]]]]]] (httponly)
- void session_set_cookie_params(int lifetime [, string path [, string domain [, bool secure[, bool httponly]]]]) (httponly)
- int memory_get_usage([bool real_usage=false]) (real_usage)
In ext/curl
===========
- array curl_multi_info_read(resource mh [, long msgs_in_queue]) (msgs_in_queue)
In ext/imap
===========
- resource imap_open ( string mailbox, string username, string password [, int options[, int n_retries]]) (n_retries)
- bool imap_reopen(resource stream_id, string mailbox [, int options [, int n_retries]]) (n_retries)
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/imap/php_imap.c?r1=1.208.2.7.2.7&r2=1.208.2.7.2.8
In ext/mbstring
===============
- int mb_strrpos(string haystack, string needle [, int offset [, string encoding]]) (offset)
In ext/ming
===========
- int swfmovie::streamMP3(mixed file [, float skip]) (skip)
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.3&r2=1.79.2.4.2.4
In ext/openssl
==============
- int openssl_verify(string data, string signature, mixed key [, int signature_algo]) (signature_algo)
In ext/pgsql
============
- string pg_escape_bytea([resource connection,] string data) (connection)
- string pg_escape_string([resource connection,] string data) (connection)
In ext/simplexml
================
- SimpleXMLElement::__construct(string data [, int options [, bool data_is_url [, string ns [, bool is_prefix]]]]) (ns, is_prefix)
- SimpleXMLElement SimpleXMLElement::attributes([string ns [, bool is_prefix]]) (is_prefix)
- SimpleXMLElement SimpleXMLElement::children([string ns [, bool is_prefix]]) (is_prefix)
- SimpleXMLElement simplexml_load_file(string filename [, string class_name [, int options [, string ns [, bool is_prefix]]]]) (ns, is_prefix)
- SimpleXMLElement simplexml_load_string(string data [, string class_name [, int options [, string ns [, bool is_prefix]]]]) (ns, is_prefix)
In ext/spl
==========
- array iterator_to_array(Traversable it [, bool use_keys = true]) (use_keys)
As of 5.2.1 #See http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_iterators.c?r1=1.73.2.30.2.20&r2=1.73.2.30.2.21
In ext/xmlreader
================
- boolean XMLReader::open(string URI [, string encoding [, int options]]) (encoding, options)
- boolean XMLReader::XML(string source [, string encoding [, int options]]) (encoding, options)
New INI settings
================
allow_url_include PHP_INI_SYSTEM, default: false
pcre.backtrack_limit PHP_INI_ALL, default: 100000
pcre.recursion_limit PHP_INI_ALL, default: 100000
session.cookie_httponly PHP_INI_ALL, default: false
New global constants
====================
In the PHP core
===============
- M_EULER
- M_LNPI
- M_SQRT3
- M_SQRTPI
- PATHINFO_FILENAME
- PREG_BACKTRACK_LIMIT_ERROR
- PREG_BAD_UTF8_ERROR
- PREG_INTERNAL_ERROR
- PREG_NO_ERROR
- PREG_RECURSION_LIMIT_ERROR
- UPLOAD_ERR_EXTENSION
As of 5.2.1: (See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.409.2.6.2.13&r2=1.409.2.6.2.14&diff_format=u)
- STREAM_SHUT_RD
- STREAM_SHUT_WR
- STREAM_SHUT_RDWR
In ext/curl
===========
- CURLE_FILESIZE_EXCEEDED
- CURLE_FTP_SSL_FAILED
- CURLE_LDAP_INVALID_URL
- CURLFTPAUTH_DEFAULT
- CURLFTPAUTH_SSL
- CURLFTPAUTH_TLS
- CURLFTPSSL_ALL
- CURLFTPSSL_CONTROL
- CURLFTPSSL_NONE
- CURLFTPSSL_TRY
- CURLOPT_FTP_SSL
- CURLOPT_FTPSSLAUTH
In ext/ming
===========
As of 5.2.1: See http://cvs.php.net/viewvc.cgi/php-src/ext/ming/ming.c?r1=1.79.2.4.2.4&r2=1.79.2.4.2.5&diff_format=u
- SWFTEXTFIELD_USEFONT
- SWFTEXTFIELD_AUTOSIZE
- SWF_SOUND_NOT_COMPRESSED
- SWF_SOUND_ADPCM_COMPRESSED
- SWF_SOUND_MP3_COMPRESSED
- SWF_SOUND_NOT_COMPRESSED_LE
- SWF_SOUND_NELLY_COMPRESSED
- SWF_SOUND_5KHZ
- SWF_SOUND_11KHZ
- SWF_SOUND_22KHZ
- SWF_SOUND_44KHZ
- SWF_SOUND_8BITS
- SWF_SOUND_16BITS
- SWF_SOUND_MONO
- SWF_SOUND_STEREO
In ext/openssl
==============
- OPENSSL_VERSION_NUMBER
- OPENSSL_VERSION_TEXT
In ext/snmp
===========
- SNMP_OID_OUTPUT_FULL
- SNMP_OID_OUTPUT_NUMERIC
In ext/sysvmsg
==============
- MSG_EAGAIN
- MSG_ENOMSG
+4 -1
View File
@@ -10,7 +10,10 @@ The Input Filter support in PHP 5 is aimed at providing the framework
through which a company-wide or site-wide security policy can be
enforced. It is implemented as a SAPI hook and is called from the
treat_data and post handler functions. To implement your own security
policy you will need to write a standard PHP extension.
policy you will need to write a standard PHP extension. There is also
a powerful standard implementation in ext/filter that should suit most
peoples' needs. However, if you want to implement your own security
policy, read on.
A simple implementation might look like the following. This stores the
original raw user data and adds a my_get_raw() function while the normal
-8
View File
@@ -96,13 +96,6 @@ ext/pcntl
* Remove all zend_extension code
* Add object callback support to pcntl_signal()
ext/pgsql
---------
For PHP 4.3.0:
* Add pg_metadata() with metadata cache feature.
* Add pg_convert() to check and convert array value for query.
* Add pg_insert/pg_update/pg_delete/pg_select for simple query.
ext/session
-----------
For PHP 4.3.0:
@@ -129,7 +122,6 @@ ext/standard
ext/wddx
--------
* See if we can support the remaining data types:
dateTime
binary
http://www.wddx.org/WDDX_SDK_10a/7__References/WDDX_DTD.htm
-20
View File
@@ -48,26 +48,6 @@ Responsibility: Shane Caraveo & each sapi module owner
Timeframe: ? (but shouldn't be much effort, most modules are probably ok)
Component: Input Filtering
- Implement a SAPI input filter hook that will get called
just before registering a variable in the
treat_data/post_handler hooks. (done)
- Make sure this is also done in mbstring (done)
- Provide access functions, or perhaps a new
$_RAW_GET/POST/Cookie set of superglobals to get at the
unfiltered data
- Provide a .ini directive which allows people to set their
input filter to one of the built-in strip_tags,
htmlspecialchars or whatever other internal function might
be useful here.
- (The main benefit of this is to make it easier for people
to solve the XSS problem once and for all without having
to go through every line of their code and adding input
validation/filtering everywhere)
Responsibility: Rasmus
Timeframe: Yesterday
Component: RPC Abstraction Layer
Porting java, com, dotnet, xmlrpc, corba, soap and python, srm
(are there more ?) to work with the new oo api and preferably
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2006, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2007, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
+12 -7
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2006, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2007, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
@@ -13,14 +13,11 @@
#ifndef TSRM_H
#define TSRM_H
/* #ifndef WIN32 */
#ifndef WIN32
# include <tsrm_config.h>
#endif
#ifdef WIN32
#if !defined(__CYGWIN__) && defined(WIN32)
# define TSRM_WIN32
# include "tsrm_config.w32.h"
#else
# include <tsrm_config.h>
#endif
#ifdef TSRM_WIN32
@@ -33,6 +30,14 @@
# define TSRM_API
#endif
#ifdef _WIN64
typedef __int64 tsrm_intptr_t;
typedef unsigned __int64 tsrm_uintptr_t;
#else
typedef long tsrm_intptr_t;
typedef unsigned long tsrm_uintptr_t;
#endif
/* Only compile multi-threading functions if we're in ZTS mode */
#ifdef ZTS
+8 -5
View File
@@ -7,11 +7,15 @@
* on Windows 95/NT.
*/
#define _WIN32_WINNT 0x0400
#include <windows.h>
#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <direct.h>
/* struct dirent - same as Unix */
@@ -25,10 +29,10 @@ struct dirent {
/* typedef DIR - not the same as Unix */
typedef struct {
long handle; /* _findfirst/_findnext handle */
HANDLE handle; /* _findfirst/_findnext handle */
short offset; /* offset into directory */
short finished; /* 1 if there are not more files */
struct _finddata_t fileinfo; /* from _findfirst/_findnext */
WIN32_FIND_DATA fileinfo; /* from _findfirst/_findnext */
char *dir; /* the dir we are reading */
struct dirent dent; /* the dirent to return */
} DIR;
@@ -38,7 +42,6 @@ DIR *opendir(const char *);
struct dirent *readdir(DIR *);
int readdir_r(DIR *, struct dirent *, struct dirent **);
int closedir(DIR *);
void rewinddir(DIR *);
int rewinddir(DIR *);
#endif /* READDIR_H */
+4 -2
View File
@@ -1,8 +1,10 @@
#ifndef TSRM_CONFIG_COMMON_H
#define TSRM_CONFIG_COMMON_H
#if WINNT|WIN32
# define TSRM_WIN32
#ifndef __CYGWIN__
# if WINNT|WIN32
# define TSRM_WIN32
# endif
#endif
#ifdef TSRM_WIN32
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2006 The PHP Group |
| Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2006 The PHP Group |
| Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+280 -106
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2006 The PHP Group |
| Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -35,11 +35,6 @@
#ifdef TSRM_WIN32
#include <io.h>
#include "tsrm_win32.h"
# if HAVE_NEWAPIS_H
# define WANT_GETLONGPATHNAME_WRAPPER
# define COMPILE_NEWAPIS_STUBS
# include <NewAPIs.h>
# endif
#endif
#ifdef NETWARE
@@ -140,11 +135,93 @@ static int php_check_dots(const char *element, int n)
#define CWD_STATE_FREE(s) \
free((s)->cwd);
#ifdef TSRM_WIN32
CWD_API int php_sys_stat(const char *path, struct stat *buf)
{
WIN32_FILE_ATTRIBUTE_DATA data;
__int64 t;
if (!GetFileAttributesEx(path, GetFileExInfoStandard, &data)) {
return stat(path, buf);
}
if (path[1] == ':') {
if (path[0] >= 'A' && path[0] <= 'Z') {
buf->st_dev = buf->st_rdev = path[0] - 'A';
} else {
buf->st_dev = buf->st_rdev = path[0] - 'a';
}
} else {
char cur_path[MAXPATHLEN+1];
DWORD len = sizeof(cur_path);
char *tmp = cur_path;
while(1) {
DWORD r = GetCurrentDirectory(len, tmp);
if (r < len) {
if (tmp[1] == ':') {
if (path[0] >= 'A' && path[0] <= 'Z') {
buf->st_dev = buf->st_rdev = path[0] - 'A';
} else {
buf->st_dev = buf->st_rdev = path[0] - 'a';
}
} else {
buf->st_dev = buf->st_rdev = -1;
}
break;
} else if (!r) {
buf->st_dev = buf->st_rdev = -1;
break;
} else {
len = r+1;
tmp = (char*)malloc(len);
}
}
if (tmp != cur_path) {
free(tmp);
}
}
buf->st_uid = buf->st_gid = buf->st_ino = 0;
buf->st_mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? (S_IFDIR|S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)) : S_IFREG;
buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6));
if ((data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) {
int len = strlen(path);
if (path[len-4] == '.') {
if (_memicmp(path+len-3, "exe", 3) == 0 ||
_memicmp(path+len-3, "com", 3) == 0 ||
_memicmp(path+len-3, "bat", 3) == 0 ||
_memicmp(path+len-3, "cmd", 3) == 0) {
buf->st_mode |= (S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6));
}
}
}
buf->st_nlink = 1;
t = data.nFileSizeHigh;
t = t << 32;
t |= data.nFileSizeLow;
buf->st_size = t;
t = data.ftLastAccessTime.dwHighDateTime;
t = t << 32;
t |= data.ftLastAccessTime.dwLowDateTime;
buf->st_atime = (unsigned long)((t / 10000000) - 11644473600);
t = data.ftCreationTime.dwHighDateTime;
t = t << 32;
t |= data.ftCreationTime.dwLowDateTime;
buf->st_ctime = (unsigned long)((t / 10000000) - 11644473600);
t = data.ftLastWriteTime.dwHighDateTime;
t = t << 32;
t |= data.ftLastWriteTime.dwLowDateTime;
buf->st_mtime = (unsigned long)((t / 10000000) - 11644473600);
return 0;
}
#endif
static int php_is_dir_ok(const cwd_state *state)
{
struct stat buf;
if (stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode))
if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode))
return (0);
return (1);
@@ -154,7 +231,7 @@ static int php_is_file_ok(const cwd_state *state)
{
struct stat buf;
if (stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode))
if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode))
return (0);
return (1);
@@ -172,18 +249,7 @@ static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
static void cwd_globals_dtor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
{
CWD_STATE_FREE(&cwd_globals->cwd);
{
int i;
for (i = 0; i < sizeof(cwd_globals->realpath_cache)/sizeof(cwd_globals->realpath_cache[0]); i++) {
realpath_cache_bucket *p = cwd_globals->realpath_cache[i];
while (p != NULL) {
realpath_cache_bucket *r = p;
p = p->next;
free(r);
}
}
}
realpath_cache_clean(TSRMLS_C);
}
static char *tsrm_strndup(const char *s, size_t length)
@@ -306,14 +372,51 @@ CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC)
static inline unsigned long realpath_cache_key(const char *path, int path_len)
{
register unsigned long h;
register unsigned long h;
const char *e = path + path_len;
const char *e = path + path_len;
for (h = 2166136261U; path < e; ) {
h *= 16777619;
h ^= *path++;
}
return h;
for (h = 2166136261U; path < e;) {
h *= 16777619;
h ^= *path++;
}
return h;
}
CWD_API void realpath_cache_clean(TSRMLS_D)
{
int i;
for (i = 0; i < sizeof(CWDG(realpath_cache))/sizeof(CWDG(realpath_cache)[0]); i++) {
realpath_cache_bucket *p = CWDG(realpath_cache)[i];
while (p != NULL) {
realpath_cache_bucket *r = p;
p = p->next;
free(r);
}
CWDG(realpath_cache)[i] = NULL;
}
CWDG(realpath_cache_size) = 0;
}
CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC)
{
unsigned long key = realpath_cache_key(path, path_len);
unsigned long n = key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n];
while (*bucket != NULL) {
if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
memcmp(path, (*bucket)->path, path_len) == 0) {
realpath_cache_bucket *r = *bucket;
*bucket = (*bucket)->next;
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
free(r);
return;
} else {
bucket = &(*bucket)->next;
}
}
}
static inline void realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, time_t t TSRMLS_DC)
@@ -334,7 +437,7 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
n = bucket->key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
bucket->next = CWDG(realpath_cache)[n];
CWDG(realpath_cache)[n] = bucket;
CWDG(realpath_cache_size) += size;
CWDG(realpath_cache_size) += size;
}
}
@@ -371,7 +474,11 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
realpath_cache_bucket *bucket;
time_t t = 0;
int ret;
int use_cache;
int use_relative_path = 0;
TSRMLS_FETCH();
use_cache = ((use_realpath != CWD_EXPAND) && CWDG(realpath_cache_size_limit));
if (path_length == 0)
return (0);
@@ -385,28 +492,33 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
/* cwd_length can be 0 when getcwd() fails.
* This can happen under solaris when a dir does not have read permissions
* but *does* have execute permissions */
if (!IS_ABSOLUTE_PATH(path, path_length) && (state->cwd_length > 0)) {
int orig_path_len;
int state_cwd_length = state->cwd_length;
if (!IS_ABSOLUTE_PATH(path, path_length)) {
if (state->cwd_length == 0) {
use_cache = 0;
use_relative_path = 1;
} else {
int orig_path_len;
int state_cwd_length = state->cwd_length;
#ifdef TSRM_WIN32
if (IS_SLASH(path[0])) {
state_cwd_length = 2;
}
if (IS_SLASH(path[0])) {
state_cwd_length = 2;
}
#endif
orig_path_len = path_length + state_cwd_length + 1;
if (orig_path_len >= MAXPATHLEN) {
return 1;
orig_path_len = path_length + state_cwd_length + 1;
if (orig_path_len >= MAXPATHLEN) {
return 1;
}
memcpy(orig_path, state->cwd, state_cwd_length);
orig_path[state_cwd_length] = DEFAULT_SLASH;
memcpy(orig_path + state_cwd_length + 1, path, path_length + 1);
path = orig_path;
path_length = orig_path_len;
}
memcpy(orig_path, state->cwd, state_cwd_length);
orig_path[state_cwd_length] = DEFAULT_SLASH;
memcpy(orig_path + state_cwd_length + 1, path, path_length + 1);
path = orig_path;
path_length = orig_path_len;
}
if (use_realpath && CWDG(realpath_cache_size_limit)) {
t = CWDG(realpath_cache_ttl)?time(NULL):0;
if (use_cache) {
t = CWDG(realpath_cache_ttl)?time(0):0;
if ((bucket = realpath_cache_find(path, path_length, t TSRMLS_CC)) != NULL) {
int len = bucket->realpath_len;
@@ -425,11 +537,14 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
}
}
if (use_realpath) {
if (use_realpath != CWD_EXPAND) {
#if !defined(TSRM_WIN32) && !defined(NETWARE)
char resolved_path[MAXPATHLEN];
if (!realpath(path, resolved_path)) { /* Note: Not threadsafe on older *BSD's */
if (use_realpath == CWD_REALPATH) {
return 1;
}
goto no_realpath;
}
CWD_STATE_COPY(&old_state, state);
@@ -442,15 +557,19 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#endif
} else {
char *ptr, *path_copy, *free_path;
char *tok = NULL;
char *tok;
int ptr_length;
#ifdef TSRM_WIN32
int is_unc;
#endif
no_realpath:
free_path = path_copy = tsrm_strndup(path, path_length);
CWD_STATE_COPY(&old_state, state);
#ifdef TSRM_WIN32
#ifdef TSRM_WIN32
ret = 0;
is_unc = 0;
if (path_length >= 2 && path[1] == ':') {
state->cwd = (char *) realloc(state->cwd, 2 + 1);
state->cwd[0] = toupper(path[0]);
@@ -464,6 +583,7 @@ no_realpath:
state->cwd[1] = '\0';
state->cwd_length = 1;
path_copy += 2;
is_unc = 2;
} else {
#endif
state->cwd = (char *) realloc(state->cwd, 1);
@@ -473,6 +593,7 @@ no_realpath:
}
#endif
tok = NULL;
ptr = tsrm_strtok_r(path_copy, TOKENIZER_STRING, &tok);
while (ptr) {
ptr_length = strlen(ptr);
@@ -480,6 +601,12 @@ no_realpath:
if (IS_DIRECTORY_UP(ptr, ptr_length)) {
char save;
if (use_relative_path) {
CWD_STATE_FREE(state);
*state = old_state;
return 1;
}
save = DEFAULT_SLASH;
#define PREVIOUS state->cwd[state->cwd_length - 1]
@@ -499,37 +626,42 @@ no_realpath:
state->cwd_length--;
}
} else if (!IS_DIRECTORY_CURRENT(ptr, ptr_length)) {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+ptr_length+1+1);
if (use_relative_path) {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+ptr_length+1);
use_relative_path = 0;
} else {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+ptr_length+1+1);
#ifdef TSRM_WIN32
/* Windows 9x will consider C:\\Foo as a network path. Avoid it. */
if (state->cwd_length < 2 ||
(state->cwd[state->cwd_length-1]!='\\' && state->cwd[state->cwd_length-1]!='/') ||
IsDBCSLeadByte(state->cwd[state->cwd_length-2])) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
/* Windows 9x will consider C:\\Foo as a network path. Avoid it. */
if (state->cwd_length < 2 ||
(state->cwd[state->cwd_length-1]!='\\' && state->cwd[state->cwd_length-1]!='/') ||
IsDBCSLeadByte(state->cwd[state->cwd_length-2])) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
#elif defined(NETWARE)
/*
Below code keeps appending to state->cwd a File system seperator
cases where this appending should not happen is given below,
a) sys: should just be left as it is
b) sys:system should just be left as it is,
Colon is allowed only in the first token as volume names alone can have the : in their names.
Files and Directories cannot have : in their names
So the check goes like this,
For second token and above simply append the DEFAULT_SLASH to the state->cwd.
For first token check for the existence of :
if it exists don't append the DEFAULT_SLASH to the state->cwd.
*/
if(((state->cwd_length == 0) && (strchr(ptr, ':') == NULL)) || (state->cwd_length > 0)) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
/*
Below code keeps appending to state->cwd a File system seperator
cases where this appending should not happen is given below,
a) sys: should just be left as it is
b) sys:system should just be left as it is,
Colon is allowed only in the first token as volume names alone can have the : in their names.
Files and Directories cannot have : in their names
So the check goes like this,
For second token and above simply append the DEFAULT_SLASH to the state->cwd.
For first token check for the existence of :
if it exists don't append the DEFAULT_SLASH to the state->cwd.
*/
if(((state->cwd_length == 0) && (strchr(ptr, ':') == NULL)) || (state->cwd_length > 0)) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
#else
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
#endif
}
memcpy(&state->cwd[state->cwd_length], ptr, ptr_length+1);
#ifdef TSRM_WIN32
if (use_realpath) {
if (use_realpath != CWD_EXPAND) {
WIN32_FIND_DATA data;
HANDLE hFind;
@@ -542,6 +674,15 @@ no_realpath:
memcpy(&state->cwd[state->cwd_length], data.cFileName, length+1);
ptr_length = length;
FindClose(hFind);
ret = 0;
} else if (use_realpath == CWD_REALPATH) {
if (is_unc) {
/* skip share name */
is_unc--;
ret = 0;
} else {
ret = 1;
}
}
}
#endif
@@ -553,6 +694,12 @@ no_realpath:
free(free_path);
if ((use_realpath == CWD_REALPATH) && ret) {
CWD_STATE_FREE(state);
*state = old_state;
return 1;
}
if (state->cwd_length == COPY_WHEN_ABSOLUTE(state->cwd)) {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+1+1);
state->cwd[state->cwd_length] = DEFAULT_SLASH;
@@ -561,7 +708,7 @@ no_realpath:
}
}
if (use_realpath && CWDG(realpath_cache_size_limit)) {
if (use_cache) {
realpath_cache_add(path, path_length, state->cwd, state->cwd_length, t TSRMLS_CC);
}
@@ -582,7 +729,7 @@ no_realpath:
CWD_API int virtual_chdir(const char *path TSRMLS_DC)
{
return virtual_file_ex(&CWDG(cwd), path, php_is_dir_ok, 1)?-1:0;
return virtual_file_ex(&CWDG(cwd), path, php_is_dir_ok, CWD_REALPATH)?-1:0;
}
CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path TSRMLS_DC) TSRMLS_DC)
@@ -624,7 +771,7 @@ CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC)
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, 1)==0) {
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)==0) {
int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length;
memcpy(real_path, new_state.cwd, len);
@@ -645,7 +792,7 @@ CWD_API int virtual_filepath_ex(const char *path, char **filepath, verify_path_f
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
retval = virtual_file_ex(&new_state, path, verify_path, 1);
retval = virtual_file_ex(&new_state, path, verify_path, CWD_FILEPATH);
*filepath = new_state.cwd;
@@ -668,7 +815,8 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC)
}
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, 1)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH)) {
CWD_STATE_FREE(&new_state);
return NULL;
}
@@ -684,7 +832,8 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC)
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, 1)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_REALPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -707,7 +856,8 @@ CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC)
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, filename, NULL, 0)) {
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -724,7 +874,8 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC)
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, filename, NULL, 1)) {
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -741,7 +892,8 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int li
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, filename, NULL, 0)) {
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -766,7 +918,8 @@ CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...)
int f;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, 1)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -792,7 +945,8 @@ CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC)
int f;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, 1)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -809,13 +963,16 @@ CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC)
int retval;
CWD_STATE_COPY(&old_state, &CWDG(cwd));
if (virtual_file_ex(&old_state, oldname, NULL, 0)) {
if (virtual_file_ex(&old_state, oldname, NULL, CWD_REALPATH)) {
CWD_STATE_FREE(&old_state);
return -1;
}
oldname = old_state.cwd;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, newname, NULL, 0)) {
if (virtual_file_ex(&new_state, newname, NULL, CWD_FILEPATH)) {
CWD_STATE_FREE(&old_state);
CWD_STATE_FREE(&new_state);
return -1;
}
newname = new_state.cwd;
@@ -834,11 +991,12 @@ CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC)
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, 1)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
retval = stat(new_state.cwd, buf);
retval = php_sys_stat(new_state.cwd, buf);
CWD_STATE_FREE(&new_state);
return retval;
@@ -851,7 +1009,8 @@ CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC)
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, 0)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -868,7 +1027,8 @@ CWD_API int virtual_unlink(const char *path TSRMLS_DC)
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, 0)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -884,7 +1044,8 @@ CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC)
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, 1)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_FILEPATH)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -903,7 +1064,8 @@ CWD_API int virtual_rmdir(const char *pathname TSRMLS_DC)
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, 0)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_EXPAND)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -923,7 +1085,8 @@ CWD_API DIR *virtual_opendir(const char *pathname TSRMLS_DC)
DIR *retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, 1)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_REALPATH)) {
CWD_STATE_FREE(&new_state);
return NULL;
}
@@ -1033,25 +1196,36 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
#endif
/* On AIX & Tru64 when a file does not exist realpath() returns
* NULL, and sets errno to ENOENT. Unlike in other libc implementations
* the destination is not filled and remains undefined. Therefor, we
* must populate it manually using strcpy as done on systems with no
* realpath() function.
*/
#if defined(__osf__) || defined(_AIX)
char *php_realpath_hack(const char *src, char *dest)
CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC)
{
char *ret;
cwd_state new_state;
char cwd[MAXPATHLEN];
if ((ret = realpath(src, dest)) == NULL && errno == ENOENT) {
return strcpy(dest, src);
if (!IS_ABSOLUTE_PATH(path, strlen(path)) &&
VCWD_GETCWD(cwd, MAXPATHLEN)) {
new_state.cwd = strdup(cwd);
new_state.cwd_length = strlen(cwd);
} else {
return ret;
new_state.cwd = (char*)malloc(1);
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
}
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
free(new_state.cwd);
return NULL;
}
if (real_path) {
int copy_len = new_state.cwd_length>MAXPATHLEN-1 ? MAXPATHLEN-1 : new_state.cwd_length;
memcpy(real_path, new_state.cwd, copy_len);
real_path[copy_len] = '\0';
free(new_state.cwd);
return real_path;
} else {
return new_state.cwd;
}
}
#endif
/*
+21 -15
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2006 The PHP Group |
| Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -126,6 +126,12 @@ typedef unsigned short mode_t;
#define CWD_API
#endif
#ifdef TSRM_WIN32
CWD_API int php_sys_stat(const char *path, struct stat *buf);
#else
# define php_sys_stat stat
#endif
typedef struct _cwd_state {
char *cwd;
int cwd_length;
@@ -172,10 +178,6 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC);
#endif
#endif
#if defined(__osf__) || defined(_AIX)
char *php_realpath_hack(const char *src, char *dest);
#endif
#if HAVE_UTIME
CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC);
#endif
@@ -184,8 +186,17 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC);
CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link TSRMLS_DC);
#endif
/* One of the following constants must be used as the last argument
in virtual_file_ex() call. */
#define CWD_EXPAND 0 /* expand "." and ".." but dont resolve symlinks */
#define CWD_FILEPATH 1 /* resolve symlinks if file is exist otherwise expand */
#define CWD_REALPATH 2 /* call realpath(), resolve symlinks. File must exist */
CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath);
CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC);
#define REALPATH_CACHE_TTL (2*60) /* 2 minutes */
#define REALPATH_CACHE_SIZE 0 /* disabled while php.ini isn't loaded */
@@ -215,6 +226,9 @@ extern virtual_cwd_globals cwd_globals;
# define CWDG(v) (cwd_globals.v)
#endif
CWD_API void realpath_cache_clean(TSRMLS_D);
CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC);
/* The actual macros to be used in programs using TSRM
* If the program defines VIRTUAL_DIR it will use the
* virtual_* functions
@@ -265,7 +279,7 @@ extern virtual_cwd_globals cwd_globals;
#define VCWD_CHDIR(path) chdir(path)
#define VCWD_CHDIR_FILE(path) virtual_chdir_file(path, chdir)
#define VCWD_GETWD(buf) getwd(buf)
#define VCWD_STAT(path, buff) stat(path, buff)
#define VCWD_STAT(path, buff) php_sys_stat(path, buff)
#define VCWD_LSTAT(path, buff) lstat(path, buff)
#define VCWD_UNLINK(path) unlink(path)
#define VCWD_MKDIR(pathname, mode) mkdir(pathname, mode)
@@ -278,15 +292,7 @@ extern virtual_cwd_globals cwd_globals;
#define VCWD_ACCESS(pathname, mode) access(pathname, mode)
#endif
#ifdef HAVE_REALPATH
#if defined(__osf__) || defined(_AIX)
#define VCWD_REALPATH(path, real_path) php_realpath_hack(path, real_path)
#else
#define VCWD_REALPATH(path, real_path) realpath(path, real_path)
#endif
#else
#define VCWD_REALPATH(path, real_path) strcpy(real_path, path)
#endif
#define VCWD_REALPATH(path, real_path) tsrm_realpath(path, real_path TSRMLS_CC)
#if HAVE_UTIME
#define VCWD_UTIME(path, time) utime(path, time)
+18 -9
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2006 The PHP Group |
| Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -86,11 +86,19 @@ TSRM_API void tsrm_win32_shutdown(void)
TSRM_API int tsrm_win32_access(const char *pathname, int mode)
{
SHFILEINFO sfi;
if (mode == 1 /*X_OK*/) {
#if 1
/* This code is not supported by Windows 98,
* but we don't support it anymore */
DWORD type;
return GetBinaryType(pathname, &type)?0:-1;
#else
SHFILEINFO sfi;
return access(pathname, 0) == 0 &&
SHGetFileInfo(pathname, 0, &sfi, sizeof(SHFILEINFO), SHGFI_EXETYPE) != 0 ? 0 : -1;
#endif
} else {
return access(pathname, mode);
}
@@ -211,7 +219,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c "));
sprintf(cmd, "%s /c %s", TWG(comspec), command);
if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS, env, cwd, &startup, &process)) {
if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env, cwd, &startup, &process)) {
return NULL;
}
free(cmd);
@@ -220,10 +228,10 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
proc = process_get(NULL TSRMLS_CC);
if (read) {
fno = _open_osfhandle((long)in, _O_RDONLY | mode);
fno = _open_osfhandle((tsrm_intptr_t)in, _O_RDONLY | mode);
CloseHandle(out);
} else {
fno = _open_osfhandle((long)out, _O_WRONLY | mode);
fno = _open_osfhandle((tsrm_intptr_t)out, _O_WRONLY | mode);
CloseHandle(in);
}
@@ -272,9 +280,6 @@ TSRM_API int shmget(int key, int size, int flags)
info_handle = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, shm_info);
if ((!shm_handle && !info_handle)) {
if (flags & IPC_EXCL) {
return -1;
}
if (flags & IPC_CREAT) {
shm_handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, size, shm_segment);
info_handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(shm->descriptor), shm_info);
@@ -283,6 +288,10 @@ TSRM_API int shmget(int key, int size, int flags)
if ((!shm_handle || !info_handle)) {
return -1;
}
} else {
if (flags & IPC_EXCL) {
return -1;
}
}
shm = shm_get(key, NULL);
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2006 The PHP Group |
| Copyright (c) 1997-2007 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -14,7 +14,7 @@ libZend_la_SOURCES=\
zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
zend_ini.c zend_qsort.c zend_objects.c zend_object_handlers.c \
zend_objects_API.c zend_ts_hash.c zend_stream.c zend_mm.c \
zend_objects_API.c zend_ts_hash.c zend_stream.c \
zend_default_classes.c \
zend_iterators.c zend_interfaces.c zend_exceptions.c \
zend_strtod.c zend_multibyte.c
-8
View File
@@ -195,10 +195,6 @@ SOURCE=.\zend_llist.c
# End Source File
# Begin Source File
SOURCE=.\zend_mm.c
# End Source File
# Begin Source File
SOURCE=.\zend_object_handlers.c
# End Source File
# Begin Source File
@@ -371,10 +367,6 @@ SOURCE=.\zend_llist.h
# End Source File
# Begin Source File
SOURCE=.\zend_mm.h
# End Source File
# Begin Source File
SOURCE=.\zend_modules.h
# End Source File
# Begin Source File
+7 -23
View File
@@ -129,13 +129,6 @@ AC_ARG_WITH(zend-vm,
PHP_ZEND_VM=CALL
])
AC_ARG_ENABLE(malloc-mm,
[ --enable-malloc-mm Use environment variable for run-time malloc/emalloc
selection - FOR DEVELOPERS ONLY!!],
[
ZEND_USE_MALLOC_MM=$enableval
])
AC_ARG_ENABLE(maintainer-zts,
[ --enable-maintainer-zts Enable thread safety - for code maintainers only!!],[
ZEND_MAINTAINER_ZTS=$enableval
@@ -151,13 +144,6 @@ AC_ARG_ENABLE(inline-optimization,
ZEND_INLINE_OPTIMIZATION=yes
])
AC_ARG_ENABLE(memory-limit,
[ --enable-memory-limit Compile with memory limit support], [
ZEND_MEMORY_LIMIT=$enableval
],[
ZEND_MEMORY_LIMIT=no
])
AC_ARG_ENABLE(zend-multibyte,
[ --enable-zend-multibyte Compile with zend multibyte support], [
ZEND_MULTIBYTE=$enableval
@@ -174,9 +160,6 @@ AC_MSG_RESULT($ZEND_MAINTAINER_ZTS)
AC_MSG_CHECKING(whether to enable inline optimization for GCC)
AC_MSG_RESULT($ZEND_INLINE_OPTIMIZATION)
AC_MSG_CHECKING(whether to enable a memory limit)
AC_MSG_RESULT($ZEND_MEMORY_LIMIT)
AC_MSG_CHECKING(whether to enable Zend debugging)
AC_MSG_RESULT($ZEND_DEBUG)
@@ -217,12 +200,6 @@ if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
LIBZEND_CPLUSPLUS_CHECKS
fi
if test "$ZEND_MEMORY_LIMIT" = "yes"; then
AC_DEFINE(MEMORY_LIMIT, 1, [Memory limit])
else
AC_DEFINE(MEMORY_LIMIT, 0, [Memory limit])
fi
if test "$ZEND_MULTIBYTE" = "yes"; then
AC_DEFINE(ZEND_MULTIBYTE, 1, [ ])
fi
@@ -404,3 +381,10 @@ AC_DEFUN([LIBZEND_CPLUSPLUS_CHECKS],[
])
AC_MSG_CHECKING(whether /dev/urandom exists)
if test -r "/dev/urandom" && test -c "/dev/urandom"; then
AC_DEFINE([HAVE_DEV_URANDOM], 1, [Define if the target system has /dev/urandom device])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
-8
View File
@@ -229,10 +229,6 @@ SOURCE=.\zend_llist.c
# End Source File
# Begin Source File
SOURCE=.\zend_mm.c
# End Source File
# Begin Source File
SOURCE=.\zend_object_handlers.c
# End Source File
# Begin Source File
@@ -409,10 +405,6 @@ SOURCE=.\zend_llist.h
# End Source File
# Begin Source File
SOURCE=.\zend_mm.h
# End Source File
# Begin Source File
SOURCE=.\zend_modules.h
# End Source File
# Begin Source File
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2006 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2007 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
+1
View File
@@ -1,4 +1,5 @@
<?php
date_default_timezone_set("UTC");
function simple() {
$a = 0;
+82
View File
@@ -0,0 +1,82 @@
--TEST--
builtin functions tests
--FILE--
<?php
var_dump(get_resource_type());
var_dump(get_resource_type(""));
$fp = fopen(__FILE__, "r");
var_dump(get_resource_type($fp));
fclose($fp);
var_dump(get_resource_type($fp));
var_dump(get_loaded_extensions(true));
var_dump(gettype(get_loaded_extensions()));
var_dump(count(get_loaded_extensions()));
define("USER_CONSTANT", "test");
var_dump(get_defined_constants(true, true));
var_dump(gettype(get_defined_constants(true)));
var_dump(gettype(get_defined_constants()));
var_dump(count(get_defined_constants()));
function test () {
}
var_dump(get_defined_functions(true));
var_dump(gettype(get_defined_functions()));
var_dump(count(get_defined_functions()));
var_dump(get_declared_interfaces(true));
var_dump(gettype(get_declared_interfaces()));
var_dump(count(get_declared_interfaces()));
var_dump(get_extension_funcs());
var_dump(get_extension_funcs(true));
var_dump(gettype(get_extension_funcs("standard")));
var_dump(count(get_extension_funcs("standard")));
var_dump(gettype(get_extension_funcs("zend")));
var_dump(count(get_extension_funcs("zend")));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for get_resource_type() in %s on line %d
NULL
Warning: Supplied argument is not a valid resource handle in %s on line %d
bool(false)
string(6) "stream"
string(7) "Unknown"
Warning: Wrong parameter count for get_loaded_extensions() in %s on line %d
NULL
string(5) "array"
int(%d)
Warning: Wrong parameter count for get_defined_constants() in %s on line %d
NULL
string(5) "array"
string(5) "array"
int(%d)
Warning: Wrong parameter count for get_defined_functions() in %s on line %d
NULL
string(5) "array"
int(%d)
Warning: Wrong parameter count for get_declared_interfaces() in %s on line %d
NULL
string(5) "array"
int(%d)
Warning: Wrong parameter count for get_extension_funcs() in %s on line %d
NULL
bool(false)
string(5) "array"
int(%d)
string(5) "array"
int(%d)
Done
+36
View File
@@ -0,0 +1,36 @@
--TEST--
constant() tests
--FILE--
<?php
var_dump(constant());
var_dump(constant("", ""));
var_dump(constant(""));
var_dump(constant(array()));
define("TEST_CONST", 1);
var_dump(constant("TEST_CONST"));
define("TEST_CONST2", "test");
var_dump(constant("TEST_CONST2"));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for constant() in %s on line %d
NULL
Warning: Wrong parameter count for constant() in %s on line %d
NULL
Warning: constant(): Couldn't find constant in %s on line %d
NULL
Notice: Array to string conversion in %s on line %d
Warning: constant(): Couldn't find constant Array in %s on line %d
NULL
int(1)
string(4) "test"
Done
+2 -1
View File
@@ -10,4 +10,5 @@ abstract class TestClass
===DONE===
--EXPECTF--
Fatal error: Static function TestClass::getName() cannot be abstract in %sabstract-static.php on line %d
Strict Standards: Static function TestClass::getName() should not be abstract in %sabstract-static.php on line %d
===DONE===
+73
View File
@@ -0,0 +1,73 @@
--TEST--
adding arrays
--FILE--
<?php
$a = array(1,2,3);
$b = array("str", "here");
$c = $a + $b;
var_dump($c);
$a = array(1,2,3);
$b = array(1,2,4);
$c = $a + $b;
var_dump($c);
$a = array("a"=>"aaa",2,3);
$b = array(1,2,"a"=>"bbbbbb");
$c = $a + $b;
var_dump($c);
$a += $b;
var_dump($c);
$a += $a;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
Done
+19
View File
@@ -0,0 +1,19 @@
--TEST--
adding objects to arrays
--FILE--
<?php
$a = array(1,2,3);
$o = new stdclass;
$o->prop = "value";
$c = $a + $o;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Notice: Object of class stdClass could not be converted to int in %s on line %d
Fatal error: Unsupported operand types in %s on line %d
+19
View File
@@ -0,0 +1,19 @@
--TEST--
adding arrays to objects
--FILE--
<?php
$a = array(1,2,3);
$o = new stdclass;
$o->prop = "value";
$c = $o + $a;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Notice: Object of class stdClass could not be converted to int in %s on line %d
Fatal error: Unsupported operand types in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
adding numbers to arrays
--FILE--
<?php
$a = array(1,2,3);
$c = $a + 5;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Fatal error: Unsupported operand types in %s on line %d
+22
View File
@@ -0,0 +1,22 @@
--TEST--
adding integers to doubles
--INI--
precision=14
--FILE--
<?php
$i = 75636;
$d = 2834681123.123123;
$c = $i + $d;
var_dump($c);
$c = $d + $i;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
float(2834756759.1231)
float(2834756759.1231)
Done
+49
View File
@@ -0,0 +1,49 @@
--TEST--
adding numbers to strings
--INI--
precision=14
--FILE--
<?php
$i = 75636;
$s1 = "this is a string";
$s2 = "876222numeric";
$s3 = "48474874";
$s4 = "25.68";
$c = $i + $s1;
var_dump($c);
$c = $i + $s2;
var_dump($c);
$c = $i + $s3;
var_dump($c);
$c = $i + $s4;
var_dump($c);
$c = $s1 + $i;
var_dump($c);
$c = $s2 + $i;
var_dump($c);
$c = $s3 + $i;
var_dump($c);
$c = $s4 + $i;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
int(75636)
int(951858)
int(48550510)
float(75661.68)
int(75636)
int(951858)
int(48550510)
float(75661.68)
Done
+16
View File
@@ -0,0 +1,16 @@
--TEST--
adding strings to arrays
--FILE--
<?php
$a = array(1,2,3);
$s1 = "some string";
$c = $a + $s1;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Fatal error: Unsupported operand types in %s on line %d
+39
View File
@@ -0,0 +1,39 @@
--TEST--
bitwise AND and strings
--FILE--
<?php
$s = "123";
$s1 = "234";
var_dump($s & $s1);
$s = "test";
$s1 = "some";
var_dump($s & $s1);
$s = "test long";
$s1 = "some";
var_dump($s & $s1);
$s = "test";
$s1 = "some long";
var_dump($s & $s1);
$s = "test";
$s &= "some long";
var_dump($s);
echo "Done\n";
?>
--EXPECTF--
string(3) "020"
string(4) "pead"
string(4) "pead"
string(4) "pead"
string(4) "pead"
Done
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
bug #22725 (A derived class can call a parent's protected method that calls a private method)
Bug #22725 (A derived class can call a parent's protected method that calls a private method)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #27304
Bug #27304 (Static functions don't function properly)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #29104 Function declaration in method doesn't work
Bug #29104 (Function declaration in method doesn't work)
--FILE--
<?php
class A
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #29210 Function: is_callable - no support for private and protected classes
Bug #29210 (Function is_callable does not support private and protected methods)
--FILE--
<?php
class test_class {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30519 Interface not existing says Class not found
Bug #30519 (Interface not existing says Class not found)
--FILE--
<?php
class test implements a {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30702 cannot initialize class variable from class constant
Bug #30702 (cannot initialize class variable from class constant)
--FILE--
<?php
class foo {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30791 magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded
Bug #30791 (magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30889 Conflict between __get/__set and ++ operator
Bug #30889 (Conflict between __get/__set and ++ operator)
--FILE--
<?php
class overloaded
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32296 get_class_methods output has changed between 5.0.2 and 5.0.3
Bug #32296 (get_class_methods output has changed between 5.0.2 and 5.0.3)
--FILE--
<?php
abstract class space{
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32427 Interfaces are not allowed 'static' access modifier
Bug #32427 (Interfaces are not allowed 'static' access modifier)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32660 Assignment by reference causes crash when field access is overloaded (__get)
Bug #32660 (Assignment by reference causes crash when field access is overloaded (__get))
--FILE--
<?php
class A
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32674 exception in iterator causes crash
Bug #32674 (exception in iterator causes crash)
--FILE--
<?php
class collection implements Iterator {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32833 Invalid opcode
Bug #32833 (Invalid opcode with $a[] .= '')
--FILE--
<?php
$test = array();
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #33257 array_splice() inconsistent when passed function instead of variable
Bug #33257 (array_splice() inconsistent when passed function instead of variable)
--INI--
error_reporting=4095
--FILE--
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #33282 (Re-assignment by reference does not clear the is_ref flag)
--FILE--
<?php
$a = array(1, 2, 3);
$r = &$a[0];
$r = &$a[1];
$r = &$a[2];
var_dump($a);
?>
--EXPECT--
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
&int(3)
}
+2 -2
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called)
--SKIPIF--
<?php if (!extension_loaded("xml")) print "skip"; ?>
<?php if (!extension_loaded("xml")) print "skip the xml extension not available"; ?>
--FILE--
<?php
class Thing {}
@@ -15,4 +15,4 @@ function boom()
boom();
?>
--EXPECT--
ok
ok
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #34712 zend.ze1_compatibility_mode = on segfault
Bug #34712 (zend.ze1_compatibility_mode = on segfault)
--INI--
zend.ze1_compatibility_mode=1
error_reporting=4095
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #35106 (nested foreach fails when array variable has a reference)
--FILE--
<?php
$a=array("1","2");
$b=&$a;
foreach($a as $i){
echo $i;
foreach($a as $p);
}
echo "\n";
?>
--EXPECT--
12
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #35437 Segfault or Invalid Opcode 137/1/4
Bug #35437 (Segfault or Invalid Opcode 137/1/4)
--FILE--
<?php
function err2exception($errno, $errstr)
+36
View File
@@ -0,0 +1,36 @@
--TEST--
Bug #35634 (Erroneous "Class declarations may not be nested" error raised)
--INI--
error_reporting=0
--FILE--
<?php
if (defined("pass3")) {
class ErrorClass {
}
} else if (defined("pass2")) {
class TestClass {
function __construct() {
}
function TestClass() {
$this->__construct();
}
}
} else {
function errorHandler($errorNumber, $errorMessage, $fileName, $lineNumber) {
define("pass3", 1);
include(__FILE__);
die("Error: $errorMessage ($fileName:$lineNumber)\n");
}
set_error_handler('errorHandler');
define("pass2", 1);
include(__FILE__);
}
?>
--EXPECTF--
Error: Redefining already defined constructor for class TestClass (%sbug35634.php:12)
+54
View File
@@ -0,0 +1,54 @@
--TEST--
Bug #36214 (__get method works properly only when conditional operator is used)
--SKIPIF--
<?php if (!extension_loaded("spl")) die("skip SPL is no available"); ?>
--FILE--
<?php
class context {
public $stack = array();
public function __set($name,$var) {
$this->stack[$name] = $var;return;
}
public function &__get($name) {
return $this->stack[$name];
}
}
$ctx = new context;
$ctx->comment_preview = array();
$ctx->comment_preview[0] = 1;
$ctx->comment_preview[1] = 2;
var_dump($ctx->comment_preview);
$comment_preview = array();
$comment_preview[0] = 1;
$comment_preview[1] = 2;
$ctx->comment_preview = $comment_preview;
var_dump($ctx->comment_preview);
$ctx->comment_preview = new ArrayObject();
$ctx->comment_preview[0] = 1;
$ctx->comment_preview[1] = 2;
var_dump($ctx->comment_preview);
?>
--EXPECT--
array(2) {
[0]=>
int(1)
[1]=>
int(2)
}
array(2) {
[0]=>
int(1)
[1]=>
int(2)
}
object(ArrayObject)#2 (2) {
[0]=>
int(1)
[1]=>
int(2)
}
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #3721 (Access to protected property of common base class)
Bug #37212 (Access to protected property of common base class)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #37811 define not using toString on objects
Bug #37811 (define not using toString on objects)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #38220 Crash on some object operations
Bug #38220 (Crash on some object operations)
--FILE--
<?php
class drv {
+45
View File
@@ -0,0 +1,45 @@
--TEST--
Bug #39297 (Memory corryption because of indirect modification of overloaded array)
--FILE--
<?php
function compareByRef(&$first, &$second) {
return $first === $second;
}
class MyTree implements ArrayAccess {
public $parent;
public $children = array();
public function offsetExists($offset) {
}
public function offsetUnset($offset) {
}
public function offsetSet($offset, $value) {
echo "offsetSet()\n";
$cannonicalName = strtolower($offset);
$this->children[$cannonicalName] = $value;
$value->parent = $this;
}
public function offsetGet($offset) {
echo "offsetGet()\n";
$cannonicalName = strtolower($offset);
return $this->children[$cannonicalName];
}
}
$id = 'Test';
$root = new MyTree();
$child = new MyTree();
$root[$id] = $child;
var_dump(compareByRef($root[$id], $child));
?>
--EXPECT--
offsetSet()
offsetGet()
bool(true)
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Bug #39304 (Segmentation fault with list unpacking of string offset)
--FILE--
<?php
$s = "";
list($a, $b) = $s[0];
?>
--EXPECTF--
Fatal error: Cannot use string offset as an array in %sbug39304.php on line 3
+45
View File
@@ -0,0 +1,45 @@
--TEST--
Bug #39438 (Fatal error: Out of memory)
--INI--
memory_limit=16M
--FILE--
<?php
$i=0;
$test2=array(
'a1_teasermenu' => array(
'downloadcounter' => 2777,
'versions' => array(
'0.1.0' => array (
'title' => 'A1 Teasermenu',
'description' => 'Displays a teaser for advanced subpages or a selection of advanced pages',
'state' => 'stable',
'reviewstate' => 0,
'category' => 'plugin',
'downloadcounter' => 2787,
'lastuploaddate' => 1088427240,
'dependencies' => array (
'depends' => array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',
't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
)
)
)
);
$test=array();
while($i<1200) {
$test[]=$test2;
$i++;
}
$out=serialize($test);
echo "ok\n";
?>
--EXPECT--
ok
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
--FILE--
<?php
class test {
public function __toString() {
debug_backtrace();
return 'lowercase';
}
}
$test = new test();
echo strtoupper($test);
?>
--EXPECT--
LOWERCASE
+40
View File
@@ -0,0 +1,40 @@
--TEST--
Bug #39449 (Overloaded array properties do not work correctly)
--FILE--
<?php
class A {
private $keys = array();
public function & __get($val) {
return $this->keys[$val];
}
public function __set($k, $v) {
$this->keys[$k] = $v;
}
}
$a =new A();
$a->arr = array('a','b','c');
$b = &$a->arr;
$b[]= 'd';
foreach ($a->arr as $k => $v) {
echo "$k => $v\n";
}
$a->arr[]='d';
foreach ($a->arr as $k => $v) {
echo "$k => $v\n";
}
?>
--EXPECT--
0 => a
1 => b
2 => c
3 => d
0 => a
1 => b
2 => c
3 => d
4 => d
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #39542 (Behaviour of require_once/include_once different to < 5.2.0)
--FILE--
<?php
$oldcwd = getcwd();
chdir(dirname(__FILE__));
if (substr(PHP_OS, 0, 3) == 'WIN') {
set_include_path(dirname(__FILE__).'/bug39542;.');
} else {
set_include_path(dirname(__FILE__).'/bug39542:.');
}
function __autoload($class) {
if (!require_once($class.'.php')) {
error_log('Error: Autoload class: '.$class.' not found!');
}
}
new bug39542();
chdir($oldcwd);
?>
--EXPECT--
ok
+7
View File
@@ -0,0 +1,7 @@
<?php
class bug39542 {
function bug39542() {
echo "ok\n";
}
}
?>
+15
View File
@@ -0,0 +1,15 @@
--TEST--
Bug #39602 (Invalid session.save_handler crashes PHP)
--SKIPIF--
<?php if (!extension_loaded("session")) die("skip"); ?>
--INI--
session.save_handler=qwerty
error_reporting=0
--FILE--
<?php
ini_set("session.save_handler","files");
$x = new stdClass();
echo "ok";
?>
--EXPECT--
ok
+30
View File
@@ -0,0 +1,30 @@
--TEST--
Bug #39721 (Runtime inheritance causes data corruption)
--FILE--
<?php
class test2 {
private static $instances = 0;
public $instance;
public function __construct() {
$this->instance = ++self::$instances;
}
}
$foo = new test2();
if (is_object($foo)) {
class test2_child extends test2 {
}
}
$child = new test2_child();
echo $foo->instance . "\n";
echo $child->instance . "\n";
?>
--EXPECT--
1
2
+20
View File
@@ -0,0 +1,20 @@
--TEST--
Bug #39775 ("Indirect modification ..." message is not shown)
--FILE--
<?php
class test {
var $array = array();
function __get($var) {
$v =& $this->array;
return $this->array;
}
}
$t = new test;
$t->anything[] = 'bar';
print_r($t->anything);
?>
--EXPECTF--
Notice: Indirect modification of overloaded property test::$anything has no effect in %sbug39775.php on line 10
Array
(
)
+13
View File
@@ -0,0 +1,13 @@
--TEST--
Bug #39825 (foreach produces memory error)
--FILE--
<?php
$array = array(1 => 2, "foo" => "bar");
$obj = (object)$array;
foreach ($obj as $name => $value) {
echo "$name -> $value\n";
}
?>
--EXPECT--
1 -> 2
foo -> bar
+88
View File
@@ -0,0 +1,88 @@
--TEST--
Bug #39944 (References broken)
--FILE--
<?php
$intTheValue = 0;
function &getValue() {
global $intTheValue;
return $intTheValue;
}
function setValue(&$int, $iNewValue) {
$int = $iNewValue;
}
setValue(getValue(), 10);
echo "intTheValue = {$intTheValue}\n";
$b = &$intTheValue;
setValue(getValue(), 10);
echo "intTheValue = {$intTheValue}\n";
/****/
$arrTheArray = array();
function &getArray() {
global $arrTheArray;
return $arrTheArray;
}
function addToArray(&$arr, $strToAdd) {
$arr[] = $strToAdd;
}
addToArray(getArray(), "xx1");
$a = getArray();
addToArray($a, "xx2");
$b = &$arrTheArray;
addToArray($b, "xx3");
addToArray(getArray(), "xx4");
$a = getArray();
addToArray($a, "xx5");
echo "arrTheArray = " . print_r($arrTheArray, 1);
/****/
class RefTest {
protected $arr;
function Add($strToAdd) {
$this->addToArray($this->getArray(), $strToAdd);
}
function &getArray() {
if (!$this->arr)
$this->arr = array();
return $this->arr;
}
private function addToArray(&$arr, $strToAdd) {
$arr[] = $strToAdd;
}
}
$objRefTest = new RefTest();
$objRefTest->Add("xx1");
$objRefTest->Add("xx2");
$objRefTest->Add("xx3");
echo "objRefTest->getArray() = " . print_r($objRefTest->getArray(), 1);
?>
--EXPECT--
intTheValue = 10
intTheValue = 10
arrTheArray = Array
(
[0] => xx1
[1] => xx3
[2] => xx4
)
objRefTest->getArray() = Array
(
[0] => xx1
[1] => xx2
[2] => xx3
)
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #39990 (Cannot "foreach" over overloaded properties)
--FILE--
<?php
class Foo {
public function __get($name) {
return array('Hello', 'World');
}
}
$obj=new Foo();
foreach($obj->arr as $value)
echo "$value\n";
?>
--EXPECT--
Hello
World
+10
View File
@@ -0,0 +1,10 @@
<?php
function func1() { }
function func2() { }
function func3() { }
function func4() { }
function func5() { }
function func6() { }
function func7() { }
print ("ok\n");
?>
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #40236 (php -a function allocation eats memory)
--SKIPIF--
<?php
if (php_sapi_name() != "cli") die("skip CLI only");
if (extension_loaded("readline")) die("skip Test doesn't support readline");
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
$cmd = "$php -d memory_limit=4M -a ".dirname(__FILE__)."/bug40236.inc";
echo `$cmd`;
?>
--EXPECTF--
Interactive %s
ok
+25
View File
@@ -0,0 +1,25 @@
--TEST--
Bug #40261 (Extremely slow data handling due to memory fragmentation)
--INI--
memory_limit=128M
--FILE--
<?php
$num = 100000;
$a = Array();
for ($i=0; $i<$num; $i++) {
$a[$i] = Array(1);
}
for ($i=0; $i<$num; $i++) {
$b[$i] = $a[$i][0];
}
unset($a);
for ($i=0; $i<$num; $i++) {
$b[$i] = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
}
echo "ok\n";
?>
--EXPECT--
ok
+20
View File
@@ -0,0 +1,20 @@
--TEST--
Bug #40621 (Crash when constructor called inappropriately (statically))
--FILE--
<?php
class Foo {
private function __construct() { }
function get() {
self::__construct();
}
}
Foo::get();
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Non-static method Foo::get() should not be called statically in %s on line %d
Fatal error: Non-static method Foo::__construct() cannot be called statically in %s on line %d
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #40770 (Apache child exits when PHP memory limit reached)
--INI--
memory_limit=8M
--SKIPIF--
<?php
$zend_mm_enabled = getenv("USE_ZEND_ALLOC");
if ($zend_mm_enabled === "0") {
die("skip Zend MM disabled");
}
?>
--FILE--
<?php
ini_set('display_errors',true);
$mb=148;
$var = '';
for ($i=0; $i<=$mb; $i++) {
$var.= str_repeat('a',1*1024*1024);
}
?>
--EXPECTF--
Fatal error: Allowed memory size of 8388608 bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #40784 (Case sensivity in constructor's fallback)
--FILE--
<?php
class A {
function A () { echo "I'm A\n"; }
}
class B extends A {
function __construct() {
parent::__construct();
parent::__constrUct();
}
}
$b = new B;
echo "Done\n";
?>
--EXPECTF--
I'm A
I'm A
Done
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Bug #40809 (Poor perfomance of ".=")
--FILE--
<?php
error_reporting(E_ALL|E_STRICT);
$num_increments = 100;
$num_repeats = 1000;
$increment = 50;
/* Create some more holes to give the memory allocator something to
* work with. */
$num = 5000;
$a = Array();
for ($i=0; $i<$num; $i++) {
$a[$i] = Array(1);
}
for ($i=0; $i<$num; $i++) {
$b[$i] = $a[$i][0];
}
unset($a);
for ($i=0;$i<$num_repeats;$i++) {
$evil = "";
for ($j=0;$j<$num_increments;$j++) {
$evil .= str_repeat("a", $increment);
}
unset($evil);
}
echo "ok\n";
?>
--EXPECT--
ok
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash).
--FILE--
<?php
class ehandle{
static public function exh ($ex) {
echo 'foo';
}
}
set_exception_handler("ehandle::exh");
throw new Exception ("Whiii");
echo "Done\n";
?>
--EXPECTF--
foo
+72
View File
@@ -0,0 +1,72 @@
--TEST--
Bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get)
--FILE--
<?php
class entity
{
private $data;
private $modified;
function __get($name)
{
if ( isset($this->data[$name]) )
return $this->data[$name];
else
return $this->data[$name] = new set($this);
}
function __set($name, $value)
{
$this->modified[$name] = $value;
}
}
class set implements ArrayAccess
{
private $entity;
function __construct($entity)
{
$this->entity = $entity;
$this->entity->whatever = $this;
}
function clear() {
$this->entity->whatever = null;
}
function offsetUnset($offset)
{
$this->clear();
// $this->entity->{$this->name} = null;
}
function offsetSet($offset, $value)
{
}
function offsetGet($offset)
{
return 'Bogus ';
}
function offsetExists($offset)
{
}
}
$entity = new entity();
echo($entity->whatever[0]);
//This will crash
// $entity->whatever->clear();
unset($entity->whatever[0]);
//This will not crash (comment previous & uncomment this to test
// $test = $entity->whatever; unset($test[0]);
echo($entity->whatever[0]);
echo "ok\n";
?>
--EXPECT--
Bogus Bogus ok
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Bug #40899 (memory leak when nesting list())
--FILE--
<?php
list(list($a,$b),$c)=array(array('a','b'),'c');
echo "$a$b$c\n";
?>
--EXPECT--
abc
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #41026 (segfault when calling "self::method()" in shutdown functions)
--FILE--
<?php
class try_class
{
static public function main ()
{
register_shutdown_function (array ("self", "on_shutdown"));
}
static public function on_shutdown ()
{
printf ("CHECKPOINT\n"); /* never reached */
}
}
try_class::main ();
echo "Done\n";
?>
--EXPECTF--
Done
Warning: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in Unknown on line 0
+31
View File
@@ -0,0 +1,31 @@
--TEST--
Bug #41075 (memleak when creating default object caused exception)
--FILE--
<?php
function err($errno, $errstr, $errfile, $errline)
{
throw new Exception($errstr);
}
set_error_handler("err");
class test {
function foo() {
$var = $this->blah->prop = "string";
var_dump($this->blah);
}
}
$t = new test;
try {
$t->foo();
} catch (Exception $e) {
var_dump($e->getMessage());
}
echo "Done\n";
?>
--EXPECTF--
string(40) "Creating default object from empty value"
Done
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41117 (Altering $this via argument)
--FILE--
<?php
class foo {
function __construct($this) {
echo $this."\n";
}
}
$obj = new foo("Hello world");
?>
--EXPECTF--
Fatal error: Cannot re-assign $this in %sbug41117_1.php on line 3
+46
View File
@@ -0,0 +1,46 @@
--TEST--
Bug #41209 (Segmentation fault with ArrayAccess, set_error_handler and undefined var)
--FILE--
<?php
class env
{
public function __construct()
{
set_error_handler(array(__CLASS__, 'errorHandler'));
}
public static function errorHandler($errno, $errstr, $errfile, $errline)
{
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
}
class cache implements ArrayAccess
{
private $container = array();
public function offsetGet($id) {}
public function offsetSet($id, $value) {}
public function offsetUnset($id) {}
public function offsetExists($id)
{
return isset($this->containers[(string) $id]);
}
}
$env = new env();
$cache = new cache();
var_dump(isset($cache[$id]));
echo "Done\n";
?>
--EXPECTF--
Fatal error: Uncaught exception 'ErrorException' with message 'Undefined variable: id' in %s:%d
Stack trace:
#0 %s(%d): env::errorHandler()
#1 {main}
thrown in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41351 (Invalid opcode with foreach ($a[] as $b))
--FILE--
<?php
$a = array();
foreach($a[] as $b) {
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41351 (Invalid opcode with foreach ($a[] as $b)) - 2
--FILE--
<?php
$a = array();
foreach($a[]['test'] as $b) {
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41351 (Invalid opcode with foreach ($a[] as $b)) - 3
--FILE--
<?php
$a = array();
foreach($a['test'][] as $b) {
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s on line %d
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Bug #41401 (wrong precedence for unary minus)
--FILE--
<?php
echo 1/-2*5;
echo "\n";
echo 6/+2*-3;
--EXPECT--
-2.5
-9
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #41421 (Uncaught exception from a stream wrapper segfaults)
--FILE--
<?php
class wrapper {
function stream_open() {
return true;
}
function stream_eof() {
throw new exception();
}
}
stream_wrapper_register("wrap", "wrapper");
$fp = fopen("wrap://...", "r");
feof($fp);
echo "Done\n";
?>
--EXPECTF--
Warning: feof(): wrapper::stream_eof is not implemented! Assuming EOF in %s on line %d
Fatal error: Uncaught exception 'Exception' in %s:%d
Stack trace:
#0 [internal function]: wrapper->stream_eof()
#1 %s(%d): feof(Resource id #6)
#2 {main}
thrown in %s on line %d
Binary file not shown.
+53
View File
@@ -0,0 +1,53 @@
--TEST--
casting different variables to boolean
--FILE--
<?php
$r = fopen(__FILE__, "r");
class test {
function __toString() {
return "10";
}
}
$o = new test;
$vars = array(
"string",
"8754456",
"",
"\0",
9876545,
0.10,
array(),
array(1,2,3),
false,
true,
NULL,
$r,
$o
);
foreach ($vars as $var) {
$tmp = (bool)$var;
var_dump($tmp);
}
echo "Done\n";
?>
--EXPECTF--
bool(true)
bool(true)
bool(false)
bool(true)
bool(true)
bool(true)
bool(false)
bool(true)
bool(false)
bool(true)
bool(false)
bool(true)
bool(true)
Done
+57
View File
@@ -0,0 +1,57 @@
--TEST--
casting different variables to double
--INI--
precision=14
--FILE--
<?php
$r = fopen(__FILE__, "r");
class test {
function __toString() {
return "10";
}
}
$o = new test;
$vars = array(
"string",
"8754456",
"",
"\0",
9876545,
0.10,
array(),
array(1,2,3),
false,
true,
NULL,
$r,
$o
);
foreach ($vars as $var) {
$tmp = (double)$var;
var_dump($tmp);
}
echo "Done\n";
?>
--EXPECTF--
float(0)
float(8754456)
float(0)
float(0)
float(9876545)
float(0.1)
float(0)
float(1)
float(0)
float(1)
float(0)
float(%d)
Notice: Object of class test could not be converted to double in %s on line %d
float(1)
Done
+55
View File
@@ -0,0 +1,55 @@
--TEST--
casting different variables to integer
--FILE--
<?php
$r = fopen(__FILE__, "r");
class test {
function __toString() {
return "10";
}
}
$o = new test;
$vars = array(
"string",
"8754456",
"",
"\0",
9876545,
0.10,
array(),
array(1,2,3),
false,
true,
NULL,
$r,
$o
);
foreach ($vars as $var) {
$tmp = (int)$var;
var_dump($tmp);
}
echo "Done\n";
?>
--EXPECTF--
int(0)
int(8754456)
int(0)
int(0)
int(9876545)
int(0)
int(0)
int(1)
int(0)
int(1)
int(0)
int(%d)
Notice: Object of class test could not be converted to int in %s on line %d
int(1)
Done
Binary file not shown.
Loaded 100 of 2124 files, more files were not shown because too many files have changed in this diff. Show more