Commit Graph

6706 Commits

Author SHA1 Message Date
Gustavo André dos Santos Lopes
e69b1ff2c4 - Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the number
of reported malformed sequences). (Gustavo)
#Made a public interface for get_next_char/utf-8 in trunk to use in utf8_decode.
#In PHP 5.3, trunk's get_next_char was copied to xml.c because 5.3's
#get_next_char is different and is not prepared to recover appropriately from
#errors.
2010-10-27 18:13:25 +00:00
Ilia Alshanetsky
18fa045e75 Code cleanup & CS 2010-10-25 16:46:55 +00:00
Gustavo André dos Santos Lopes
d46efce418 - A BOM had slipped in a commit and broke the build under GCC. Fixed. 2010-10-24 23:51:40 +00:00
Gustavo André dos Santos Lopes
20e2c5fc33 - Fixed uninitialized and 1 character short local variable. 2010-10-24 21:19:04 +00:00
Gustavo André dos Santos Lopes
03de44f23e - Removed out-of-date comments and one enum constant from html_tables.h and its generator.
- Other minor aesthetic improvements in the generator.
2010-10-24 19:05:21 +00:00
Gustavo André dos Santos Lopes
91727cb844 - Completed rewrite of html.c. Except for determine_charset, almost nothing
remains.
- Fixed bug on determine_charset that was preventing correct detection in
  combination with internal mbstring encoding "none", "pass" or "auto".
- Added profiles for entity encode/decode for HTMl 4.01, XHTML 1.0, XML 1.0
  and HTML 5. Added the constants ENT_HTML401, ENT_XML1, ENT_XHTML and
  ENT_HTML5.
- htmlentities()/htmlspecialchars(), when told not to double encode, verify
  the correctness of the existenting entities more thoroughly.
  It is checked whether the numerical entity represents a valid unicode code
  point (number is between 0 and 0x10FFFF). If using the flag ENT_DISALLOWED,
  it is also checked whether that numerical entity is valid in selected
  document. In HTML 4.01, all the numerical entities that represent a Unicode
  code point (< U+10FFFFFF) are valid, but that's not the case with other
  document types. If the entity is not valid, & is encoded to &amp;.
  For named entities, the check is also more thorough. While before the only
  check would be to determine if the entity was constituted by alphanumeric
  characters, now it is checked whether that entity is necessarily defined for
  the target document type. Otherwise, & is encoded to &amp;.
- For html_entity_decode(), only valid numerical and named entities (as defined
  above for htmlentities()/htmlspecialchars() + !double_encode) are decoded.
  But there is in this case one additional check. Entities that represent
  non-SGML or otherwise invalid characters are not decoded. Note that, in
  HTML5, U+000D is a valid literal character, but the entity &#x0D is not
  valid and is therefore not decoded.
- The hash tables lazily created for decoding in html_entity_decode() that were
  added recently were substituted by static hash tables. Instead of 1 hash
  table per encoding, there's only one hash table per document type defined in
  terms of unicode code points. This means that for charsets other than UTF-8
  and ISO-8859-1, a conversion to unicode code points is necessary before
  decoding.
- On the encoding side, the ad hoc ranges of entities of the translation
  tables, which mapped (in general) non-unicode code points to HTML entities
  were replaced by three-stage tables for HTML 4 and HTML 5. This mapping
  tables are defined only in terms of unicode code points, so a conversion
  is necessary for charsets other than UTF-8 and ISO-8859-1. Even so, the
  multi-stage table is much faster than the previous method, by a factor
  of 5; the conversion to unicode is a small penalty because it's just a
  simple table lookup.
  XML 1.0/htmlspecialchars() uses a simple table instead of a three-stage
  table.
- Added the flag ENT_SUBSTITUTE, which makes htmlentities()/htmlspecialchars()
  replace the invalid multibyte sequences with U+FFFD (UTF-8) or &#FFFD;
  (other encodings).
- Added the flag ENT_DISALLOWED. Implements FR #52860. Characters that cannot
  appear literally are replaced by U+FFFD (UTF-8) or &#FFFD; (otherwise).
  An alternative implementation would be to encode those characters into
  numerical entities, but that would only work in HTML 4.01 due to limitations
  on the values of numerical entities in other document types. See also the
  effects on htmlentities()/htmlspecialchars() with !double_encode above.
2010-10-24 15:01:02 +00:00
Gustavo André dos Santos Lopes
738be1a003 - Three tests were "broken" by rev #304404, not two. Commit the change
to remaining one.
2010-10-14 19:33:12 +00:00
Gustavo André dos Santos Lopes
bfcb754eae - Fixed get_next_char(), used by htmlentities/htmlspecialchars, accepting
certain ill-formed UTF-8 sequences.
2010-10-14 19:14:06 +00:00
Gustavo André dos Santos Lopes
3943351e6a - [DOC] Reverted rev #304382 and rev #304380, as I figured out a way to
fix the erratic behavior without breaking backwards compatibility. Namely,
  $offset retains SEEK_SET behavior but actually SEEK_CUR is passed to
  _php_stream_seek, if possible, by moving the offset stream->position bytes.
- Addresses bug #53006.
2010-10-14 03:15:15 +00:00
Gustavo André dos Santos Lopes
fbd3eb6439 - Ooops. Fixed tests for rev #304380 (stream_get_contents() related) and a small error. 2010-10-14 02:39:21 +00:00
Gustavo André dos Santos Lopes
1ee489f00e - [DOC] Changed stream_get_contents() so that the offset is relative to the
current position (seek with SEEK_CUR, not SEEK_SET). Only positive values are
  allowed. This breaking change is necessary to fix the erratic behavior in
  streams without a seek handlder. Addresses bug #53006.
#Note that the example on the doc page for stream_get_contents() may fail
#without this change.
#This change is also in the spirit of stream_get_contents(), whose description
#is "Reads all remaining bytes (or up to maxlen bytes) from a stream...".
#Previous behavior allowed setting the file pointer to positions before the
#current one, so they wouldn't be "remaining bytes". The previous behavior was
#also inconsistent in that it allowed an moving to offset 1, 2, ..., but not 0.
2010-10-14 02:03:18 +00:00
Kalle Sommer Nielsen
890d89fdb8 * Added version info for Windows XP Starter/Tablet PC/Media Center editions
* Fixed typo: "Unknow" -> "Unknown"
* Removed useless Win9x version info

# I will merge this to 5.3 once I have analyzed a possible bug
# (and hopefully fixed) why Server 2008 is reported as unknown
2010-10-12 17:34:25 +00:00
Gustavo André dos Santos Lopes
4de6c3a948 - Added a 3rd parameter to get_html_translation_table. It now takes a charset
hint, like htmlentities et al.
- Fixed bug #49407 (get_html_translation_table doesn't handle UTF-8).
- Fixed bug #25927 (get_html_translation_table calls the ' &#39; instead of
  &#039;).
- Fixed tests for get_html_translation_table and unified the Windows and
  non-Windows versions of the tests.
2010-10-12 02:51:11 +00:00
Gustavo André dos Santos Lopes
f4a896c209 - PHP uses a big endian representation when it converts the
code unit sequences to integers so as to store the entity
  maps. Code in traverse_for_entities assumed little
  endian. Fixed.
  (in practice, due to the absence of unicode and entity
  mappings for multi-byte encodings -- except UTF-8 --, this
  doesn't matter, so the relevant code was commented out for
  performance reasons).
2010-10-11 22:26:10 +00:00
Gustavo André dos Santos Lopes
17dc181117 - Removed redundant local variable in dns_get_record.
- (5.3) Fixed bug in the Windows implementation of
  dns_get_record, where the two last parameters wouldn't be
  filled unless the type were DNS_ANY (Gustavo).
2010-10-11 03:07:03 +00:00
Gustavo André dos Santos Lopes
91f64706c2 - [DOC] Added a 5th parameter to dns_get_record, a boolean that tells whether to activate
"raw mode". In this mide, $type (2nd parameter) is the numeric type of the record, and
  the responses are not parsed -- the "type" element will be numeric and there will be
  a "data" element with the raw data of the response buffer, which the programmer will
  have to parse.
- Fixed bug in the Win32 implementation of dns_get_record, where the 3rd and 4th arguments
  would only be filled if the 2nd ($type) was DNS_ANY.
- [DOC] The 3rd and 4th parameters can now be NULL (changed their arginfo).
2010-10-11 02:48:23 +00:00
Gustavo André dos Santos Lopes
7aa43a8d83 - Revamp of the decoding portion of html.c.
- Dramatic improvements on the performance of html_entity_decode and htmlspecialchars_decode, as the
  string is now traversed only once. Speedups of 20 to 25 times with Windows release builds and a
  ~250 characters string (for 2nd and subsequent calls).
- Consistent behavior on html_entity_decode. For instance, the entity in "&&lt;" would be decoded,
  but not "&&#233;". Not anymore. The code path for "basic" and non-basic entities is now mostly
  shared.
- Code of html_entity_decode and htmlspecialchars_decode is now shared.
- [DOC] More consistent behavior of htmlspecialchars_decode. Instead of translating only &lt;, &gt;,
  &amp;, &quot;, &#039; and &#39;, now e.g. &#34;, &apos;, &#0039;, &#x27;, etc. are also decoded.
- [DOC] Previous translation of unicode code points in numerical entities was seriously broken. When
  the code points for some character were not the same in unicode and the target encoding, the
  behavior could be an erroneous translation (e.g. 0x80-0xA0 in win-1252) or no translation at all.
  Added unicode translation tables for all single-byte encodings. Entities are not translated for
  multi-byte entities, except for ASCII characters whose code points are shared. We could add
  the huge translation tables (several thousand elements) for those encodings in the future.
- Fixed numerical entities that after # had text accepted by strcol being accepted.
- Much more commented and well-structured code...
- Tests for get_html_translation_table()) are broken. I stared fixing the tests, but then I realized
  it was completely helpless because get_html_translation_table() is broken by not handling
  multi-byte characters correctly.
2010-10-10 19:04:59 +00:00
Gustavo André dos Santos Lopes
b1d5cf7348 - Added numeric record type and raw data for unknown DNS
record types.
2010-10-08 23:02:37 +00:00
Gustavo André dos Santos Lopes
dd5d1b2b66 - Fixed a typo in rev #304208 (24 instead of 34/'"').
- Improved the test bug53021.phpt to reflect other fixes in rev #304208.
- Updated NEWS to reflect other fixes in rev #304208.
2010-10-08 17:27:19 +00:00
Gustavo André dos Santos Lopes
df42830468 - Fixed bug #53021 (In html_entity_decode, failure to convert numeric entities with ENT_NOQUOTES and ISO-8859-1). 2010-10-08 16:19:58 +00:00
Patrick Allaert
0ef60a4544 Fixed typo in tests (thx Eyal) 2010-10-05 10:42:13 +00:00
Kalle Sommer Nielsen
60f0599393 Skipped this one 2010-10-04 20:33:58 +00:00
Kalle Sommer Nielsen
f2552322e7 Revert for now 2010-10-04 20:26:50 +00:00
Michael Maclean
b30b0916bd Un-deprecate mt_rand and deprecate mt_getrandmax 2010-10-04 20:20:30 +00:00
Dmitry Stogov
d3b6fbe39b Fixed bug #52940 (call_user_func_array still allows call-time pass-by-reference). (cataphract@php.net) 2010-10-01 11:53:04 +00:00
Kalle Sommer Nielsen
d252a45e82 * Added PHP_RAND_MAX and PHP_MT_RAND_MAX constants
* Deprecated getrandmax() and mt_getrandmax() in favour of the new constants

# We should promote constants for static data like such instead of function calls
# maybe this was just an old left-over
2010-10-01 09:18:44 +00:00
Kalle Sommer Nielsen
1ac15b2f8e Added TSRMLS macros into php_get_current_user() 2010-09-23 04:13:36 +00:00
Kalle Sommer Nielsen
06a9baf4d9 Missed to check this one in the last commit 2010-09-23 03:49:26 +00:00
Kalle Sommer Nielsen
cb50011016 Fixed compiler warnings in the standard library 2010-09-23 03:45:36 +00:00
Kalle Sommer Nielsen
208aa1025d Improved performance of unserialize(), original patch by galaxy dot mipt at gmail dot com 2010-09-18 16:09:28 +00:00
Pierre Joye
c17f8ecd6a - use popen_ex directly, avoid the tsrm fetch 2010-09-17 10:04:28 +00:00
Pierre Joye
ed58636f00 - use TSRMLS_D/C with php_stream_context_alloc 2010-09-16 09:33:42 +00:00
Pierre Joye
aa0ed267a2 - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
Pierre Joye
2b1e18f81b - fix build introduced by fix for #52772 2010-09-13 21:54:47 +00:00
Kalle Sommer Nielsen
67b4af3e6a Fixed bug #52772 (var_dump() doesn't check for the existence of get_class_name before calling it) 2010-09-13 20:14:18 +00:00
Pierre Joye
d5ca12b03e - use php_sys_readlink 2010-09-13 09:30:07 +00:00
Pierre Joye
e62a10c4d0 - use OPENBASEDIR_CHECKPATH macro (does safe mode too in 5.3) so trunk and branches are the same 2010-09-10 19:27:39 +00:00
Pierre Joye
dd902c7161 - use php_sys_readlink 2010-09-10 19:25:56 +00:00
Adam Harvey
2441ddf10e Fix bug #52802 (Out-of-date comment for
file_get_contents/php_stream_copy_to_mem) by updating the relevant comments.
2010-09-10 03:08:05 +00:00
Pierre Joye
c57bf4a4d9 - WS 2010-09-08 09:11:18 +00:00
Pierre Joye
367bd11d6f - Fix #50524, proc_open should respect cwd as it does on other platforms 2010-09-08 08:34:57 +00:00
Pierre Joye
2110655d4d - WS 2010-09-06 14:43:44 +00:00
Pierre Joye
abf4853145 - fix bug #52260, catch all DNS not found error 2010-09-06 10:57:42 +00:00
Pierre Joye
8648b1beff - timeval element are always 32bit long on Windows 2010-09-06 10:39:26 +00:00
Pierre Joye
75df1719be - kill warning 2010-09-06 10:28:04 +00:00
Pierre Joye
1cd82c9db2 - WS 2010-08-30 16:52:48 +00:00
Adam Harvey
f33837ff97 Implemented request #34857 (Change array_combine behaviour when called with
empty arrays). Patch by Joel Perras <joel.perras@gmail.com>.
2010-08-27 03:54:10 +00:00
Pierre Joye
4cda8a7797 -fix logic (and BC break) 2010-08-23 18:05:05 +00:00
Pierre Joye
a0e223b8ba - add follow_location support for http stream, enabled by default to keep BC. Allows one to ignore the location header, w/o having to ignore errors or other tricks, the location data is however still available (meta) 2010-08-23 16:54:57 +00:00
Kalle Sommer Nielsen
34b631f679 Pass the TSRMS pointers to sapi_module_struct.log_message, this saves some TSRMLS_FETCH() calls in a few of our SAPI's 2010-08-18 13:34:40 +00:00
Kalle Sommer Nielsen
a12f6d9312 Fixed the $context parameter on copy() to have an effect (approved for 5.3 by Johannes)
# To not change a PHPAPI in a point release, a new function have been added to support contexts:
# php_copy_file_ctx(), php_copy_file_ex() now simply wraps to that
2010-08-17 12:17:28 +00:00
Kalle Sommer Nielsen
ac73c9d8b4 Fixed the context parameter on copy() to actually have an effect
# After looking at the logs, Jani did a bad merge into 5.3, so that 
# the context parameter sent to copy() actually isn't used at all. This 
# relatively simple patch fixes that for trunk.
#
# See FR #42965

# internals:
# This changes the php_copy_*() decls to contain an additional parameter for stream contexts
2010-08-16 21:56:35 +00:00
Pierre Joye
7bd81da0b5 - WS 2010-08-16 10:29:01 +00:00
Kalle Sommer Nielsen
a448b6a72b MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570)
# Some of the updated tests were to make them sync with 5.3 although they don't run on trunk anymore
2010-08-11 21:41:30 +00:00
Ilia Alshanetsky
57ff563262 Make http_response_code() return FALSE where data is not available (Ex. cli sapi) 2010-08-10 00:19:51 +00:00
Kalle Sommer Nielsen
4281addcb7 Implemented FR #52555 (Ability to get HTTP response code)
- Patch by Paul Dragoonis
2010-08-09 13:10:32 +00:00
Felipe Pena
ef1270e5d0 - Fix test 2010-08-08 16:48:32 +00:00
Ilia Alshanetsky
d9af17b839 Additional fix for bug #52550 & fix test & warning from previous fixes 2010-08-08 15:45:02 +00:00
Felipe Pena
9adda6199b - Updated generated file 2010-08-06 22:23:39 +00:00
Felipe Pena
232ae3df01 - Fix build 2010-08-06 22:21:13 +00:00
Ilia Alshanetsky
a8ddaca0b0 WS 2010-08-06 20:16:11 +00:00
Ilia Alshanetsky
34e8b615ed Another fix for issue indentified in bug #52550 2010-08-06 20:04:29 +00:00
Ilia Alshanetsky
e4b1575d58 Fixed issues inside str_pad() identified by bug #52550 2010-08-06 19:55:10 +00:00
Ilia Alshanetsky
fa4bf064bd Use correct order of operations. Second of many fixes for bug #52550 2010-08-06 19:11:34 +00:00
Rasmus Lerdorf
31e6390ae5 Do these ops in the right order here. First of many fixes for
bug #52550
2010-08-06 18:19:23 +00:00
Felipe Pena
3d2a6927c7 - Fixed bug #52534 (var_export array with negative key) 2010-08-04 23:11:44 +00:00
Dmitry Stogov
fa27ef4620 cleanup 2010-08-03 08:19:51 +00:00
Felipe Pena
a20d96e850 - Removed safe-mode tests 2010-08-01 16:24:42 +00:00
Adam Harvey
929eec3b93 Fix bug #52380 (Typo in lcfirst comment docs) by updating the commented
prototype for lcfirst() to actually read lcfirst().
2010-07-20 04:26:57 +00:00
Adam Harvey
6c9ca56c19 Fix for bug #52317 (Segmentation fault when using mail() on a rhel 4.x (only 64
bit)).
2010-07-19 10:46:44 +00:00
Scott MacVicar
c7b0abe6aa Fix a bug when var_export() causes a fatal error that could inadvertently display data due to flushing of the output buffer.
Examples include, memory limit, execution time and recursion.
2010-07-09 21:11:37 +00:00
Felipe Pena
ce72f33674 - Fixed tests 2010-07-06 00:25:52 +00:00
Dmitry Stogov
a619b589b3 Use ZE API to modify/restore PG(magic_quotes_runtime). Removed overhead at request startup. 2010-07-05 14:32:29 +00:00
Ilia Alshanetsky
0625a0b23b Fixed bug #33210 (getimagesize() fails to detect width/height on certain JPEGs). 2010-06-30 12:21:35 +00:00
Stanislav Malyshev
de8022e905 fix SplObjectStorage unserialization (CVE-2010-2225) 2010-06-29 00:58:31 +00:00
Felipe Pena
80926568f1 - Fixed bug #52183 (Reflectionfunction reports invalid number of arguments for function aliases) 2010-06-26 16:03:39 +00:00
Felipe Pena
b355aa00b0 - Fixed bug #52138 (Constants are parsed into the ini file for section names) 2010-06-24 22:32:42 +00:00
Johannes Schlüter
94694f924a - Ignore empty filename for mail.log, treat it like none given 2010-06-18 10:16:35 +00:00
Pierre Joye
377ffeb50a - #51424, solaris part 2010-06-17 10:22:03 +00:00
Pierre Joye
bc226fafed - Fix bug #52101, dns_get_record()garbage in 'ipv6' field 2010-06-17 09:26:29 +00:00
Pierre Joye
cba1ed2475 - #50563, removing E_WARNING from parse_url() 2010-06-16 18:56:24 +00:00
Pierre Joye
b8613c10ab - cleanup, no vc6 support in trunk 2010-06-15 13:50:14 +00:00
Pierre Joye
f27e17d18c - #51424, silent warnings on win 2010-06-15 13:43:15 +00:00
Pierre Joye
06e7d5e9cb - Fix #51424, crypt() function hangs after 3rd call 2010-06-15 09:26:22 +00:00
Pierre Joye
0aef5f020b - drop comment 2010-06-14 09:15:20 +00:00
Dmitry Stogov
d42dbb3bed Fixed bug #51552 (debug_backtrace() causes segmentation fault and/or memory issues) 2010-06-11 08:53:31 +00:00
Pierre Joye
9ef717c0c2 - silent warning (unary minus operator applied to unsigned type) 2010-06-06 15:28:30 +00:00
Christopher Jones
064eda1838 New test for file_exists (bug #39863). It currently xfail's 2010-06-05 19:44:48 +00:00
Felipe Pena
f9cc8faa3c - Added BG(serialize) and BG(unserialize) initialization 2010-06-03 15:08:06 +00:00
Rasmus Lerdorf
2c9ec4c22f vim fail 2010-06-02 19:26:10 +00:00
Rasmus Lerdorf
2c342f16c1 Tweak the fix for bug #51847 to still call libintl_setlocale
when libintl has done that redefine.
2010-06-02 19:24:36 +00:00
Rasmus Lerdorf
3f602cf510 Fix for bug #51847
Someone in libintl world decided it was a good idea to do:

#undef setlocale
#define setlocale libintl_setlocale

That means, of course, that any use of "setlocale" by the
preprocessor now becomes libintl_setlocale which means we
no longer have a _zif_setlocale symbol in string.o, but we
magically have a _zif_libintl_setlocale symbol.  The linker
is obviously not very happy about this when basic_functions.o
tries to find _zif_setlocale.

So, let's not do that again.
2010-06-02 05:53:13 +00:00
Pierrick Charron
19ff5b7916 Remove unused variables 2010-06-01 17:13:50 +00:00
Michael Wallner
11d24c1593 * implement new output API, fixing some bugs and implementing some feature
requests--let's see what I can dig out of the bugtracker for NEWS--
  and while crossing the road:
   * implemented new zlib API
   * fixed up ext/tidy (what was "s&" in zend_parse_parameters() supposed to do?)

Thanks to Jani and Felipe for pioneering.
2010-05-31 10:29:43 +00:00
Pierre Joye
91721f73f2 - Added recent Windows versions to php_uname and fix undefined windows version 2010-05-30 07:46:45 +00:00
Pierre Joye
5dba22d79e - ws 2010-05-30 07:36:19 +00:00
Johannes Schlüter
4136336c02 Update credits 2010-05-27 22:51:28 +00:00
Michael Wallner
89e93723fb Added support for object references in recursive serialize() calls. FR #36424 2010-05-26 07:24:37 +00:00
Felipe Pena
de531056f7 - Fixed bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline) 2010-05-26 02:18:17 +00:00
Martin Jansen
a389c77ce2 Changed test case to use our new dummy MX records. 2010-05-25 05:01:03 +00:00
Dmitry Stogov
c5237d82bf Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties 2010-05-24 14:11:39 +00:00
Christopher Jones
f291a1253d New current()/next() test 2010-05-20 17:55:58 +00:00
Michael Wallner
e012b36ac2 * fixed bug #47842 sscanf() does not support 64-bit values 2010-05-19 11:28:08 +00:00
Pierre Joye
46c4029341 - #51844, checkdnsrr does not support types other than MX 2010-05-17 18:55:35 +00:00
Rasmus Lerdorf
2ef8ef9029 typo 2010-05-15 15:37:57 +00:00
Felipe Pena
bcd9a87e2a - Fixed bug #51791 (constant() aborts execution when fail to check undefined constant) 2010-05-13 02:13:30 +00:00
Dmitry Stogov
214d3bc248 Fixed a possible memory corruption in parse_str(). Reported by Stefan Esser 2010-05-12 11:32:25 +00:00
Dmitry Stogov
5fc060e671 Fixed a possible memory corruption in pack(). Reported by Stefan Esser 2010-05-12 11:04:57 +00:00
Dmitry Stogov
2c5fecfeb4 Fixed a possible memory corruption in substr_replace() 2010-05-11 11:59:13 +00:00
Pierre Joye
754cb92b2b - nuke unused vars 2010-05-05 13:51:54 +00:00
Pierre Joye
bd2f9d56ec - #51063, news and test 2010-05-05 13:39:35 +00:00
Pierre Joye
b9730786a7 - #51063, implement getimagesizefromstring 2010-05-05 13:37:40 +00:00
Adam Harvey
574e578629 Alter the getmxrr() test to use lists.php.net (which we presumably control)
instead of ez.no (which we presumably don't) for the single MX record test.
2010-05-04 09:41:47 +00:00
Ilia Alshanetsky
74d4ddea3d - Fixed a possible stack exaustion inside fnmatch(). Reporeted by Stefan Esser 2010-05-02 19:34:21 +00:00
Antony Dovgal
c23d902e0b fix tests 2010-04-29 12:48:06 +00:00
Pierre Joye
68e0e88610 - fix possible Dechunking Filter Buffer Overflow 2010-04-28 14:10:01 +00:00
Pierrick Charron
91ee07814e Remove unused variables 2010-04-27 00:09:55 +00:00
Kalle Sommer Nielsen
dd8e59da8f Removed safe_mode
* Removed ini options, safe_mode*
 * Removed --enable-safe-mode --with-exec-dir configure options on Unix
 * Updated extensions, SAPI's and core
 * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Antony Dovgal
19b957b535 fix test 2010-04-26 13:46:40 +00:00
Antony Dovgal
8f2a6d0222 fix test 2010-04-26 13:44:23 +00:00
Antony Dovgal
76b36c0003 fix skipif sections 2010-04-26 13:41:43 +00:00
Pierre Joye
75d9b3c7f8 - Fix #51582, Don't assume UINT64_C it's ever available 2010-04-26 10:34:06 +00:00
Pierrick Charron
00209d7966 Update tests related to allow_call_time_pass_reference 2010-04-26 00:27:04 +00:00
Felipe Pena
c4630c0da2 - Remove empty tests 2010-04-26 00:21:18 +00:00
Felipe Pena
0a6bcd44a7 - Removed allow_call_time_pass_reference (Pierrick) 2010-04-26 00:13:34 +00:00
David Soria Parra
08b9fdc8a3 Add DTrace probes 2010-04-24 13:32:30 +00:00
Kalle Sommer Nielsen
1e9c9778f5 For real this time :-/ 2010-04-22 22:57:35 +00:00
Kalle Sommer Nielsen
7bccac6dea Fix the sys_getloadavg() test 2010-04-22 22:41:42 +00:00
Felipe Pena
5234958f8a - Fixed bug #51435 (Missing ifdefs / logic bug in crypt code cause compile errors) 2010-04-22 20:54:35 +00:00
Adam Harvey
c6e8a8957b Fix for bug #51604 (newline in end of header is shown in start of message).
Patch by Daniel Egeberg.
2010-04-22 02:22:49 +00:00
Kalle Sommer Nielsen
9d395a4a2b Removed import_request_variables(), this is not needed anymore without register_globals 2010-04-21 22:23:55 +00:00
Kalle Sommer Nielsen
3e6678de4d Added missing zend_parse_parameters_none() call to sys_getloadavg() 2010-04-21 22:04:19 +00:00
Kalle Sommer Nielsen
9a38f301d6 Remove highlight.bg, it was removed in the old trunk and its not referenced in zend_highlight.c, meaning its not even implemented correctly in 5.3. 2010-04-21 21:56:24 +00:00
Kalle Sommer Nielsen
febee11285 Removed register_globals 2010-04-21 01:27:22 +00:00
Dmitry Stogov
453b49ed20 Added a number of small performance tweaks and optimizations
. ZEND_RECV now always has IS_CV as its result
  . ZEND_CATCH now has to be used only with constant class names
  . ZEND_FETCH_DIM_? may fetch array and dimension operans in a different order
2010-04-20 11:16:39 +00:00
Dmitry Stogov
dd5c478be6 Added concept of interned strings. All strings constants known at compile time are allocated in a single copy and never changed. 2010-04-20 11:05:54 +00:00
Dmitry Stogov
94dd83722b Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table 2010-04-20 10:57:45 +00:00
Kalle Sommer Nielsen
6169d91ba7 * Pass TSRMLS_C around pageinfo.c
* Use zend_parse_parameters_none() in pageinfo.c
2010-04-13 11:41:40 +00:00
Pierre Joye
4290928fb3 - fix inline doc 2010-04-12 08:40:59 +00:00
Pierre Joye
95fcd75af2 - [doc] add stream_set_read_buffer, equivalent of stream_set_write_buffer for read operations. Fixing possible bad effects while reading devices. full context support is under work. 2010-04-12 08:25:50 +00:00
Kalle Sommer Nielsen
4e7b11ccce Removed y2k_compliance ini option, making it "always" enabled internally
- The only reference to y2k_compliance was in php_std_date(). Browsers thats not compatable have a marketshare of 0.01% if they even are in use today
2010-04-12 07:34:30 +00:00
Kalle Sommer Nielsen
8087be61d0 * Changed the way removed ini directives are shown so its easier to add new ones
* Removed define_syslog_variables and its associated functions
2010-04-12 01:52:55 +00:00
Pierre Joye
2137c3a036 - WS 2010-04-08 07:50:05 +00:00
Felipe Pena
f3d312ce87 - Fix tests 2010-04-04 17:21:27 +00:00
Felipe Pena
7561171eca - Fix test 2010-04-04 16:59:20 +00:00
Felipe Pena
a90c801c2f - Fixed tests 2010-04-03 15:42:42 +00:00
Felipe Pena
fa76263481 - Fixed bug #51445 (var_dump() invalid/slow *RECURSION* detection) 2010-04-02 21:44:09 +00:00
Joey Smith
6dbebc605b Don't assume the SHA-based crypt constants are registered
this is a partial fix for 51435.
2010-03-30 10:10:20 +00:00
Hannes Magnusson
8b106cef0e Fix tests 2010-03-24 22:06:21 +00:00
Hannes Magnusson
b39c5383bf Fix test (the key can be negative) 2010-03-24 21:57:30 +00:00
Rasmus Lerdorf
906dd4eac5 Switch default_charset, if not specified, from ISO-8859-1 to UTF-8
I have been wanting to make this change for years, but there is a small
chance of BC issues, so it shouldn't go into a minor release.
2010-03-23 18:08:06 +00:00
Andrei Zmievski
f92fae2f66 I am sorry I tried fixing PHP without extensive discussion on the mailing list.
I am sorry I tried fixing PHP without extensive discussion on the mailing list.
I am sorry I tried fixing PHP without extensive discussion on the mailing list.

Hope all the relevant parties are satisfied.
2010-03-18 22:37:25 +00:00
Andrei Zmievski
3220f15ca2 Fix a few problems with large (2G-4G) file uploads. Added
--enable-large-uploads-fix switch because one change was in SAPI.h structure.
2010-03-18 21:07:38 +00:00
Moriyoshi Koizumi
73ba495674 - Forgot to commit this patch. Sorry. 2010-03-12 16:19:25 +00:00
Jani Taskinen
af49e58f51 - Reverted r296062 and r296065 2010-03-12 10:28:59 +00:00
Jani Taskinen
06f072cb5e MFH: Improved / fixed output buffering (Michael Wallner) 2010-03-11 10:24:29 +00:00
Joey Smith
f829a21659 MFH'd crypt() tests - renamed to fit phpt schema, tests for DES-fallback,
use b'' on strings.
2010-02-23 21:14:51 +00:00
Pierre Joye
aff51406ef - update test 2010-02-23 17:46:10 +00:00
Pierre Joye
fb9ce4aaa2 - return *0/*1 on failure instead of FALSE, to avoid possible issues with bad user code 2010-02-23 17:26:49 +00:00
Pierre Joye
4c23ec2b66 - With "extended" hashes, detect and reject invalid "setting" strings.
With "traditional" hashes, support many "reasonable" invalid salts in
  UFC-crypt compatible way, reject the rest of invalid salts. (Solar Designer)
2010-02-22 00:05:02 +00:00
Pierre Joye
c402adc3b2 - Corrected the sanity check of the "setting" string in _crypt_blowfish_rn() to
reject iteration counts encoded as 36 through 39.  Previously, these would be
  misinterpreted as being the same as 04 through 07. (Solar Designer)
2010-02-21 23:47:14 +00:00
Joey Smith
dd8ab3ad57 Not sure how I screwed up that MFH so badly. Proper
fix to config.m4 applied for when checking different
crypt() types.
2010-02-21 18:50:14 +00:00
Raphael Geissert
009a48ab3f Fix the name of the locale in some tests 2010-02-21 18:22:46 +00:00
Pierre Joye
23fdc85e3a - Fix #51059, crypt can fail and return NULL, on almost all implementations 2010-02-21 18:11:11 +00:00
Joey Smith
dd6ecfc01e MFH fix to config.m4 to make MD5 check label accurate 2010-02-20 19:28:39 +00:00
Joey Smith
7a0b1e55d8 MFH crypt() tests 2010-02-20 19:13:09 +00:00
Raphael Geissert
9077a39555 Correct description of getservbyname_basic.phpt (bug #51022) 2010-02-16 05:38:50 +00:00
Raphael Geissert
cf0e2b7026 Fix strtolower.phpt (bug #51031) 2010-02-13 16:43:04 +00:00
Jani Taskinen
e6fcefe50a - Fix test 2010-02-13 15:43:45 +00:00
Pierre Joye
15a3c450b7 - those are in 5.3.2 now, merge to 5.3.2 section is coming 2010-02-11 21:17:13 +00:00
Ilia Alshanetsky
ad9bbf26ab Fixed safe_mode validation inside tempnam() when the directory path does not end with a /). 2010-02-11 12:32:21 +00:00
Christopher Jones
e2b9a01e70 Spelling typo in new check message 2010-02-10 23:56:27 +00:00
Johannes Schlüter
466c122aaa Fix config test 2010-02-10 13:37:17 +00:00
Johannes Schlüter
f732d74f6b Detect if we can rely on compiler-specific alignment features else use custom
workarounds. Fixes #50753
2010-02-09 21:58:13 +00:00
Pierre Joye
658e86b847 - prevent unexpectable behaviors (for the user) with invalid path 2010-02-07 20:15:58 +00:00
Christopher Jones
dd38619aa5 Explicitly set mail.add_x_header in php.ini so test output matches expected results 2010-02-02 22:54:36 +00:00
Ilia Alshanetsky
d5fd93e997 Fixed bug #50907 (X-PHP-Originating-Script adding two new lines in *NIX). 2010-02-02 12:50:21 +00:00
Pierre Joye
860e06a8ba - system/version dependent msg 2010-02-01 16:19:27 +00:00
Pierre Joye
e1cdfbeb1d - fix system/version dependent msg, add skip cases, sync 2010-02-01 15:18:55 +00:00
Ilia Alshanetsky
b0f76c2534 Fixed bug #50847 (strip_tags() removes all tags greater then 1023 bytes long) 2010-02-01 12:59:08 +00:00
Pierre Joye
5f935b4da5 - fix skip clauses 2010-01-30 21:24:04 +00:00
Pierre Joye
43b31ea3ea - fix test init 2010-01-30 21:12:20 +00:00
Pierre Joye
891d7ebe1b - cleanup & correct msg 2010-01-30 20:21:16 +00:00
Pierre Joye
88a6d735b1 - this value is platform dependent (unix too) 2010-01-30 20:14:36 +00:00
Pierre Joye
ef48a746fd - cs 2010-01-30 17:56:00 +00:00
Pierre Joye
8d9b6f04b4 - fix test, rewrite it (same cases are tested), CS, simplify, be verbose on error not otherwise (avoid infinite loop in pcre_match inside run-test) 2010-01-30 17:06:06 +00:00
Pierre Joye
957a996f16 - fix test 2010-01-28 21:29:00 +00:00
Pierre Joye
61274a0570 - more EOL fixes, don't use expectf 2010-01-28 00:37:20 +00:00
Pierre Joye
81ac81c494 - fix possible EOL conversion on svn co on windows 2010-01-28 00:05:37 +00:00
Pierre Joye
6c2f62c7a2 - skip if not enough permission and add to trunk 2010-01-27 23:54:52 +00:00
Pierre Joye
ab91fa848a - update/fix/skip/add for rename tests 2010-01-27 11:23:43 +00:00
Pierre Joye
d58d42a824 - fix and update test according to recent fixes 2010-01-27 10:08:43 +00:00
Pierre Joye
f52166739d - fix and update test according to recent fixes 2010-01-27 09:47:17 +00:00
Jani Taskinen
5952473b7a - Fixed bug #50832 (HTTP fopen wrapper does not support passwordless HTTP authentication) 2010-01-25 16:28:13 +00:00
Pierre Joye
d0ab70458d - make it work on win, simplify expect using expectf 2010-01-25 13:49:47 +00:00
Pierre Joye
8b5a46b3cd - disable the non win32 version on win 2010-01-25 09:10:45 +00:00
Pierre Joye
86d5f7fb38 - pls don't add .swp/bak/etc. :) 2010-01-25 09:09:02 +00:00
Pierre Joye
f5aa7da785 - fix test, dir separator agnostic 2010-01-24 17:57:40 +00:00
Pierre Joye
ce14d8cd5b - add win32 version of the test, damned error msg with eol in them 2010-01-24 17:53:10 +00:00
Pierre Joye
1538f246f4 - nl fix 2010-01-24 14:41:47 +00:00