summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.h
Commit message (Collapse)AuthorAgeFilesLines
* basic clang compatibility on windowsAnatol Belski2014-11-071-0/+4
|
* Merge branch 'PHP-5.6'Anatol Belski2014-10-291-0/+4
|\ | | | | | | | | | | | | | | | | | | | | * PHP-5.6: fix output globals importing export output globals use portable strndup implementation unix sockets aren't available on windows dll export APIs needed by phpdbg fix sapi/phpdbg/config.w32 Don't treat warnings as failures in the junit output
| * dll export APIs needed by phpdbgAnatol Belski2014-10-291-0/+4
| |
* | rework the previous fix for var names with size_t, no ugly casts anymoreAnatol Belski2014-10-231-1/+1
| |
* | fix several datatype mismatchesAnatol Belski2014-10-221-1/+1
| |
* | Fix tests/serialize/bug64146.phptNikita Popov2014-09-221-2/+2
| | | | | | | | | | | | | | | | | | The var hash now retains a reference to its elements, to ensure that addresses are not reused. Furthermore the var hash now only stores objects and references and directly uses their pointer as key, thus making serialization about two times faster.
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | master renames phase 1Anatol Belski2014-08-251-4/+4
| |
* | several fixes -Anatol Belski2014-08-161-4/+4
| | | | | | | | | | | | - param parsing Z_PARAM_STR vs Z_PARAM_STRING - some functions for new params - etc
* | Merge mainstream 'master' branch into refactoringDmitry Stogov2014-04-261-2/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During merge I had to revert: Nikita's patch for php_splice() (it probably needs to be applyed again) Bob Weinand's patches related to constant expression handling (we need to review them carefully) I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway) Conflicts: Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_compile.c Zend/zend_compile.h Zend/zend_constants.c Zend/zend_exceptions.c Zend/zend_execute.c Zend/zend_execute.h Zend/zend_execute_API.c Zend/zend_hash.c Zend/zend_highlight.c Zend/zend_language_parser.y Zend/zend_language_scanner.c Zend/zend_language_scanner_defs.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/date/php_date.c ext/dom/documenttype.c ext/hash/hash.c ext/iconv/iconv.c ext/mbstring/tests/zend_multibyte-10.phpt ext/mbstring/tests/zend_multibyte-11.phpt ext/mbstring/tests/zend_multibyte-12.phpt ext/mysql/php_mysql.c ext/mysqli/mysqli.c ext/mysqlnd/mysqlnd_reverse_api.c ext/mysqlnd/php_mysqlnd.c ext/opcache/ZendAccelerator.c ext/opcache/zend_accelerator_util_funcs.c ext/opcache/zend_persist.c ext/opcache/zend_persist_calc.c ext/pcre/php_pcre.c ext/pdo/pdo_dbh.c ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c ext/reflection/php_reflection.c ext/session/session.c ext/spl/spl_array.c ext/spl/spl_observer.c ext/standard/array.c ext/standard/basic_functions.c ext/standard/html.c ext/standard/mail.c ext/standard/php_array.h ext/standard/proc_open.c ext/standard/streamsfuncs.c ext/standard/user_filters.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re main/php_variables.c sapi/phpdbg/phpdbg.c sapi/phpdbg/phpdbg_bp.c sapi/phpdbg/phpdbg_frame.c sapi/phpdbg/phpdbg_help.c sapi/phpdbg/phpdbg_list.c sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt.c
| * | Remove call_user_method() and call_user_method_array() from master, long ↵Kalle Sommer Nielsen2014-04-051-2/+0
| |/ | | | | | | time deprecated in favour of call_user_func*().
* | Use better data structures (incomplete)Dmitry Stogov2014-02-101-3/+3
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* Fix hash key length in register/remove_user_shutdown_functionArpad Ray2011-11-111-2/+2
|
* Fix Bug #55801 Behavior of unserialize has changed:Michael Wallner2011-10-191-0/+1
| | | | | | (un)serialize in __wakeup/__sleep now use clean var_hashes
* fix zts break in r316688Arpad Ray2011-09-131-3/+3
|
* Implement object-oriented session handlers (https://wiki.php.net/rfc/session-oo)Arpad Ray2011-09-131-0/+9
|
* - Fixed bug #54580 (get_browser() segmentation fault when the browscap iniGustavo André dos Santos Lopes2011-05-011-0/+1
| | | | | | | directive is set in activation time). This commit fixes this by adding a per request parsing of the browscap file that's when get_browser is called the first time and the directive is set on activation time.w
* Add header_register_callback(), allows a userland functionScott MacVicar2011-02-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | to be called as all the headers are being sent and after all of the default headers have been merged. headers_list(), header_remove() and header() can all be used inside the callback. <?php header('Content-Type: text/plain'); header('X-Test: foo'); function foo() { foreach (headers_list() as $header) { if (strpos($header, 'X-Powered') !== false) { header_remove('X-Powered-By'); } header_remove('X-Test'); } } $result = header_register_callback('foo'); echo "a";
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Moved leak_variable() to zend_builtin_functions.c (Gustavo)Felipe Pena2010-11-151-1/+0
|
* - Added leak_variable() function.Gustavo André dos Santos Lopes2010-11-151-0/+1
| | | | | | | - Added mechanism to force outer streams to be closed before their inner ones. - Fixed temp:// streams only handling correctly (through an ad hoc mechanism) reverse closing order when the inner stream is of type memory.
* - Completed rewrite of html.c. Except for determine_charset, almost nothingGustavo André dos Santos Lopes2010-10-241-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* - Revamp of the decoding portion of html.c.Gustavo André dos Santos Lopes2010-10-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | - 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.
* Added support for object references in recursive serialize() calls. FR #36424Michael Wallner2010-05-261-0/+8
|
* Removed safe_modeKalle Sommer Nielsen2010-04-261-8/+0
| | | | | | | * 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
* Removed import_request_variables(), this is not needed anymore without ↵Kalle Sommer Nielsen2010-04-211-2/+0
| | | | register_globals
* * Changed the way removed ini directives are shown so its easier to add new onesKalle Sommer Nielsen2010-04-121-1/+0
| | | | * Removed define_syslog_variables and its associated functions
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* - Fixed error_log() to be binary safe when using message_type 3 (message ↵Jani Taskinen2009-11-221-0/+2
| | | | appended to file).
* - Removed unused code (replaced long time ago by url_scanner_ex.*Jani Taskinen2009-07-261-3/+0
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Added parse_ini_string() function (grange at lemonde dot fr, Arnaud)Arnaud Le Blanc2008-11-051-0/+1
| | | | | | | | | [DOC] new function parse_ini_string() proto array parse_ini_string(string ini_string [, bool process_sections [, int scanner_mode]]) Same as parse_ini_file() except that it takes a string instead of a filename.
* MFHJani Taskinen2008-04-151-0/+3
|
* [DOC] Remove config_get_hash() & and add new boolean parameter to ini_get_all()Hannes Magnusson2008-04-141-1/+0
| | | | | to list ini entries key=>current_value like config_get_hash() did.
* MFH: Implement forward_static_call(_array) to complete LSB. Patch by Mike LivelyEtienne Kneuss2008-04-071-0/+2
|
* - MFH Rename it againMarcus Boerger2008-02-031-1/+1
| | | | | | [DOC] - MFH Add config_get_hash()
* - MFH Rename dump_config_hash() to get_config_hash() as it doesn't dumpMarcus Boerger2008-02-031-2/+0
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* - MFH from HEAD:Jani Taskinen2007-11-021-3/+4
| | | | | | | | | | | | . Folding tags . Parameter parsing . SPL debug info . array function improvements (not all yet) . Improvements to function calling with call_user_* functions . Improvements to debugging info in var_dump/print_r # I propably forgot already something but this all was pretty close tied # to each other so it wasn't possible to do it in parts.
* MFH:- Added common getopt implementation to core.Jani Taskinen2007-10-011-0/+1
| | | | | | | | | | MFH:- Added long-option feature to getopt(). MFH:- Made getopt() available on win32 systems. MFH: Patch by: David Soria Parra <dsp@php.net> [DOC]: These changes will be available from 5.3+ # Note: Fixed also tests and synced basic_functions.c with HEAD.
* MFH:Jani Taskinen2007-09-281-0/+3
| | | | | | | | | | | | | | | | | | | | - Added ".htaccess" style user-defined php.ini files support for CGI/FastCGI. - Added support for special [PATH=/opt/httpd/www.example.com/] sections in php.ini. All directives set in these sections will not be able to be overridden in user-defined ini-files or during runtime in the specified path. - Improved php.ini handling: . Added better error reporting for syntax errors in php.ini files . Allowed "ini-variables" to be used almost everywhere ini php.ini files . Allowed using alphanumeric/variable indexes in "array" ini options . Fixed get_cfg_var() to be able to return "array" ini options - Fixed bug #27372 (parse error loading browscap.ini at apache startup) - Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric characters)
* MFH: Fixed compile warningsJani Taskinen2007-07-211-2/+2
|
* MFHHannes Magnusson2007-05-281-1/+0
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* - MFH: No idea if we actually support 16 bit systems, but this just looked wrongDerick Rethans2006-11-141-1/+1
|
* MFH: added error_get_last() functionMichael Wallner2006-07-191-0/+1
|
* MFH: Fixed bug #36630 (umask not reset at the end of the request).Ilia Alshanetsky2006-05-141-0/+2
|