summaryrefslogtreecommitdiff
path: root/main/php_variables.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-5.6' into PHP-7.0Stanislav Malyshev2016-07-191-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: fix #72519, possible OOB using imagegif fix #72512, invalid read or write for palette image when invalid transparent index is used Apparently some envs miss SIZE_MAX Fix tests Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c Fix for bug #72558, Integer overflow error within _gdContributionsAlloc() Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE Fix bug #72562 - destroy var_hash properly Fix bug #72533 (locale_accept_from_http out-of-bounds access) Fix fir bug #72520 Fix for bug #72513 Fix for bug #72513 CS fix and comments with bug ID Fix for HTTP_PROXY issue. 5.6.24RC1 add tests for bug #72512 Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access Fixed bug #72479 - same as #72434 Conflicts: Zend/zend_virtual_cwd.c ext/bz2/bz2.c ext/exif/exif.c ext/session/session.c ext/snmp/snmp.c ext/standard/basic_functions.c main/SAPI.c main/php_variables.c
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2016-07-191-18/+37
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: fix #72519, possible OOB using imagegif fix #72512, invalid read or write for palette image when invalid transparent index is used Apparently some envs miss SIZE_MAX Fix tests Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c Fix for bug #72558, Integer overflow error within _gdContributionsAlloc() Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE Fix bug #72562 - destroy var_hash properly Fix bug #72533 (locale_accept_from_http out-of-bounds access) Fix fir bug #72520 Fix for bug #72513 CS fix and comments with bug ID Fix for HTTP_PROXY issue. add tests for bug #72512 Fixed bug #72512 gdImageTrueColorToPaletteBody allows arbitrary write/read access Fixed bug #72479 - same as #72434 Conflicts: ext/bz2/bz2.c main/SAPI.c main/php_variables.c
| | * CS fix and comments with bug IDStanislav Malyshev2016-07-121-2/+3
| | |
| | * Fix for HTTP_PROXY issue.Stanislav Malyshev2016-07-101-19/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | The following changes are made: - _SERVER/_ENV only has HTTP_PROXY if the local environment has it, and only one from the environment. - getenv('HTTP_PROXY') only returns one from the local environment - getenv has optional second parameter, telling it to only consider local environment
| | * Bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * | Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
* | | Removed or simplified incorrect SEPARATE_*() macros usage.Dmitry Stogov2015-09-291-1/+1
| | |
* | | avoid unnecessary scopingAnatol Belski2015-07-311-8/+7
| | |
* | | Cleanup shutdown, enable proper memory leak displayingBob Weinand2015-07-241-1/+1
| | | | | | | | | | | | phpdbg should not memory leak...
* | | $argv and $argc may be IS_INDIRECTBob Weinand2015-07-221-2/+2
| | |
* | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-5/+5
| | | | | | | | | | | | semantick changes).
* | | remove non-applicable commentAnatol Belski2015-05-241-1/+0
| | |
* | | Merge branch 'PHP-5.6'Anatol Belski2015-05-231-3/+9
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: increase the internal post data buffer
| * | increase the internal post data bufferAnatol Belski2015-05-231-3/+9
| | | | | | | | | | | | | | | This brings speedup and fixes issues with var parsing. Default BUFSIZ on Windows is 512 bytes which causes too much reallocation work.
| * | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Merged zend_array and HashTable into the single data structure.Dmitry Stogov2015-02-131-13/+13
| | | | | | | | | | | | | | | Now each HashTable is also zend_array, so it's refcounted and may be a subject for Copy on Write zend_array_dup() was changed to allocate and return HashTable, instead of taking preallocated HashTable as argument.
* | | bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | trailing whitespace removalStanislav Malyshev2015-01-101-20/+20
| | |
* | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-63/+63
| | |
* | | fix datatype mismatchAnatol Belski2014-10-271-2/+2
| | |
* | | Move smart_str implementation into Zend/Nikita Popov2014-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | So we can use it there as well... For now I've retained the zend_smart_str_public.h header, though it would probably be better to just move that one struct into zend_types.h.
* | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| | |
* | | Merge branch 'PHP-5.6'Michael Wallner2014-09-091-5/+7
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-5.6: duplicate value's string for the SAPI filter Fine tuned the order of adding request variables.
| * | duplicate value's string for the SAPI filterMichael Wallner2014-09-091-5/+7
| | | | | | | | | | | | reported by sesser; tyrael, do you take care of the bug/NEWS?
* | | master renames phase 3Anatol Belski2014-08-251-8/+8
| | |
* | | master renames phase 1Anatol Belski2014-08-251-15/+15
| | |
* | | yet more fixes to zppAnatol Belski2014-08-201-1/+1
| | |
* | | mostly fixes to spl, but also some otherAnatol Belski2014-08-171-1/+1
| | |
* | | first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-11/+11
| | |
* | | Merge branch 'call-frame' into phpngDmitry Stogov2014-07-071-2/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * call-frame: Simplify call-frame handling Removed EG(active_symbol_table) and use corresponding value from EG(current_execute_data) Use values from current_execute_data instead of globals where possible Removed EG(called_scope) and use corresponding value from EG(current_execute_data) Removed EG(in_execution). If EG(currentent_execute_data) is not NULL we are executing something. Removed EG(opline_ptr) and use corresponding value from EG(current_execute_data) Removed EG(active_op_array) and use corresponding value from EG(current_execute_data) Uinified call frame handling for user and internal functions. Now EG(current_execute_data) always point to the call frame of the currently executed function. Fixed cleanup of incompleytely passed parameters Prohibited parameter redefinition Fixed support for extra arguments in conjunction with variadiv argument. Use compile time flags to check if we call constructor and result of ZEND_NEW is used or not. Fixed uninitialized variables Optimization Changed zend_execute_data layout to reduce memory overhead Help C compilet to do the better job optimizing target code Use fast comparison for (func->type == ZEND_USER_FUNCTION || func->type == ZEND_EVAL_CODE) Keep extra args in the same VM stack segment (after all CV and TMP vars) Refactoring: merge call_frame and end_execute_data into single data structure. Keep only single copy of each argument on VM stack (previously ZE kept two copies of each arguments for user functions) Refactoring: use call_frames instead of call_slots Conflicts: Zend/zend_vm_def.h Zend/zend_vm_execute.h
| * | | Removed EG(active_symbol_table) and use corresponding value from ↵Dmitry Stogov2014-07-041-2/+1
| | | | | | | | | | | | | | | | EG(current_execute_data)
* | | | Fixed segfault if empty POSTXinchen Hui2014-07-031-4/+2
|/ / /
* | | Prefer the macro we definedXinchen Hui2014-05-071-11/+7
| | |
* | | Refactored filterXinchen Hui2014-05-071-4/+5
| | |
* | | Merge mainstream 'master' branch into refactoringDmitry Stogov2014-04-261-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * \ \ Merge branch 'PHP-5.6'Anatol Belski2014-04-241-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-5.6: fix dll export
| | * | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-04-241-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-5.5: fix dll export
| | | * Merge branch 'PHP-5.4' into PHP-5.5Anatol Belski2014-04-241-1/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | * PHP-5.4: fix dll export
| | | | * fix dll exportAnatol Belski2014-04-241-1/+1
| | | | |
| * | | | Merge branch 'PHP-5.6'Bob Weinand2014-04-121-1/+1
| |\ \ \ \ | | |/ / /
| | * | | Merge branch 'PHP-5.5' into PHP-5.6Bob Weinand2014-04-121-1/+1
| | |\ \ \ | | | |/ /
| | | * | Merge branch 'PHP-5.4' into PHP-5.5Bob Weinand2014-04-121-1/+1
| | | |\ \ | | | | |/
| | | | * Made usage of php_hash_environment useful by updating instead of just adding ↵Bob Weinand2014-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | argc
| | | | * Bump yearXinchen Hui2014-01-031-1/+1
| | | | |
| | | * | Bump yearXinchen Hui2014-01-031-1/+1
| | | | |
* | | | | Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), ↵Dmitry Stogov2014-04-031-5/+3
| | | | | | | | | | | | | | | | | | | | candidate for GC, etc)
* | | | | Refactored IS_INDIRECT usage for CV and object properties to support ↵Dmitry Stogov2014-03-261-5/+14
| | | | | | | | | | | | | | | | | | | | HashTable resizing
* | | | | Refactored EG(active_symbol_table) to be zend_array* instead of HashTable*Dmitry Stogov2014-03-171-2/+4
| | | | |
* | | | | Fixed variable name registerXinchen Hui2014-03-051-1/+1
| | | | |