summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix uninitalized variables reads. See CWE-457 for more info.Joshua Rogers2015-01-211-0/+1
| | |
* | | Implement return typesLevi Morrison2015-01-271-0/+18
| | | | | | | | | | | | RFC is documented here: https://wiki.php.net/rfc/return_types
* | | zend_read_property() has to provide a holder for return value.Dmitry Stogov2015-01-221-1/+2
|/ / | | | | | | Previously it was possible that zend_read_property() returned pointer to zval allocated on stack.
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | Handle run-time cache for static properties directly in executor.Dmitry Stogov2015-01-131-2/+2
| | | | | | | | Removed cache_slot argument in zend_std_get_static_property() and zend_std_unset_static_property().
* | trailing whitespace removalStanislav Malyshev2015-01-101-7/+7
| |
* | Drop duplicate arg from hash_get_current_key_exNikita Popov2014-12-261-13/+6
| |
* | Don't count variadic argument in zend_func.common.num_args. This allows ↵Dmitry Stogov2014-12-221-9/+28
| | | | | | | | faster CALL/RETURN code.
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-329/+329
| |
* | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-131-5/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (37 commits) NEWS NEWS Fix bug #68601 buffer read overflow in gd_gif_in.c Fixed compilation warnings Removed unnecessary checks pcntl_signal_dispatch: Speed up by preventing system calls when unnecessary Merged PR #911. Removed ZEND_ACC_FINAL_CLASS which is unnecessary. This also fixed some currently defined classes as final which were just not being considered as such before. Updated NEWS Updated NEWS Updated NEWS Fix bug #68532: convert.base64-encode omits padding bytes Updated NEWS Updated NEWS Updated NEWS Fixed Bug #65576 (Constructor from trait conflicts with inherited constructor) Updated NEWS Updated NEWS Fix MySQLi tests Fixed gd test ...
| * | Removed ZEND_ACC_FINAL_CLASS which is unnecessary. This also fixed some ↵Guilherme Blanco2014-12-121-5/+5
| | | | | | | | | | | | currently defined classes as final which were just not being considered as such before.
* | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-121-5/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: updated NEWS PowerPC64 support for add and sub with overflow check PowerPC64 support for operators with overflow check Fixed bug #68583 Crash in timeout thread Reduced size of zend_op on 64-bit systems. Make ZEND_INIT_FCALL keep predcalculted size of necessary stack space in opline->op1.num to avoid its recalculation on each execution. Removed unused variables Improved array_merge() and array_replace() (1-st array may be added using simple procedure). Replaced zendi_convert_to_long() with _zval_get_long_func() Moved zend_is_true() from zend_execute.h/zend_execute_API.c into zend_operators.h/zend_operators.c. Splited the most expensive part of inline i_zend_is_true() into a separate zend_object_is_true(). Replaced zendi_convert_to_long() with cals to zend_is_true(). Revert "Save one xor instr" Save one xor instr Conflicts: Zend/zend_execute_API.c
| * | Reduced size of zend_op on 64-bit systems.Dmitry Stogov2014-12-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the main idea - the smaller the zend_op structure, the lees memory traffic is required to load VM instructions during execution. The patch reduces the size of each opcode from 48 to 32 bytes (saves 16 bytes for each opcode, and applications use thousands of opoceds). This reduced the number of CPU cache misses by 12% and improved performance of real-life apps by 1-2%. The patch affects how constants and jump targets are represented in VM during execution. Previously they were implemented as absolute 64-bit pointers. Now they are relative 32-bit offsets. In run-time constant now should be accessed as: RT_CONSTANT(op_array, opine->op1) instead of opline->op1.zv EX_CONSTANT(opline->op1) instead of opline->op1.zv Jump targets: OP_JMP_ADDR(opline, opline->op2) instead of opline->op2.jmp_addr The patch doesn't change zend_op representation for 32-bit systems. They still use absolute addresses. The compile-time representation is also kept the same.
* | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-051-18/+61
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (111 commits) Fix zend_fcall_info_arg*() to use ZVAL_COPY Fixed #65213 - cannot cast SplFileInfo to boolean add initial install switch to C travis project instead of PHP use the generic TRAVIS environment var to check for travis (see http://docs.travis-ci.com/user/ci-environment/) fix TS build add config option to target codegen architectures updated NEWS updated NEWS Fixed bug #55541 errors spawn MessageBox, which blocks test automation Get rid of duplicate handlers (ZEND_ADD_SPEC_TMP_TMP and ZEND_ADD_SPEC_VAR_VAR are absolutely the same). Use zend_string* for op_array->arg_info[]->name and op_array->arg_info[]->class_name. For internal functions we still use char*. Fixed __debugInfo() support Update UPGRADING for the new variadic functions, and re-sort. Improved POST INC/DEC make sure that we don't truncate the stack trace and cause false test failures when the test is executed in a directory with long path Missed closed folder mark Revert "Unecessary assignment" Fixed improper memory release Unecessary assignment ...
| * | Use zend_string* for op_array->arg_info[]->name and ↵Dmitry Stogov2014-12-031-18/+61
| | | | | | | | | | | | op_array->arg_info[]->class_name. For internal functions we still use char*.
* | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-11-181-23/+21
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (398 commits) NEWS add test for bug #68381 Fixed bug #68381 Set FPM log level earlier during init proper dllexport move to size_t where zend_string is used internally fix some datatype mismatches return after the warning, to fix uninitialized salt usage fix datatype mismatches add missing type specifier fix datatype mismatches fix unsigned check "extern" shouldn't be used for definitions joined identical conditional blocks simplify fpm tests SEND_VAR_NO_REF optimization Add test for bug #68442 Add various tests for FPM - covering recent bugs (68420, 68421, 68423, 68428) - for UDS - for ping and status URI - for multi pool and multi mode Include small MIT FastCGI client library from https://github.com/adoy/PHP-FastCGI-Client Get rid of zend_free_op structure (use zval* instead). Get rid of useless TSRMLS arguments. Add new FPM test for IPv4/IPv6 ... Conflicts: win32/build/config.w32
| * | removed useless checkAnatol Belski2014-11-141-6/+4
| | | | | | | | | | | | the offset member is an unsigned
| * | Improved object property access.Dmitry Stogov2014-11-061-1/+1
| | |
| * | fix datatype mismatchesAnatol Belski2014-10-291-17/+17
| | | | | | | | | | | | sizeof(struct _string) doesn't increase.
* | | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-10-181-3/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | * origin/master: Fixed compilation Optimized property access handlers. Removed EG(std_property_info). Fixed bug #68199 (PDO::pgsqlGetNotify doesn't support NOTIFY payloads) News entry for new curl constants
| * | Optimized property access handlers. Removed EG(std_property_info).Dmitry Stogov2014-10-171-3/+8
| | |
* | | more exts converted for static tsrm ls pointerAnatol Belski2014-10-151-1/+1
|/ / | | | | | | mbstring, pcre, reflection
* | Fix invalid zend_string_frees in reflectionNikita Popov2014-10-121-3/+3
| | | | | | | | zend_lookup_class can share the name
* | Remove support for classes without class entriesNikita Popov2014-10-091-1/+1
| | | | | | | | get_class_entry must be non-NULL and return non-NULL.
* | Merge branch 'PHP-5.6'Johannes Schlüter2014-10-041-1/+1
|\ \ | |/
| * Merge branch 'PHP-5.5' into PHP-5.6Johannes Schlüter2014-10-041-1/+1
| |\
| | * Fix accidental edit in previous commitJohannes Schlüter2014-10-041-1/+1
| | |
* | | Merge branch 'PHP-5.6'Johannes Schlüter2014-10-041-2/+2
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.5' into PHP-5.6Johannes Schlüter2014-10-041-2/+2
| |\ \ | | |/
| | * Fix arginfoJohannes Schlüter2014-10-041-2/+2
| | |
* | | Replaced EG(This) and EX(object) with EX(This).Dmitry Stogov2014-10-031-1/+1
| | | | | | | | | | | | Internal functions now recieves zend_execute_data as the first argument.
* | | Fixed bug #68103 Dupplicate entry in Reflection (merged)Remi Collet2014-09-261-5/+17
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2014-09-261-5/+20
| |\ \ | | |/ | | | | | | | | | | | | * PHP-5.5: NEWS Fixed bug #68103 Dupplicate entry in Reflection
| | * Fixed bug #68103 Dupplicate entry in ReflectionRemi Collet2014-09-261-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ php -r '$r=new ReflectionExtension("pthreads"); print_r($r->getClassNames());' Array ( [0] => Threaded [1] => stackable [2] => Thread [3] => Worker [4] => Mutex [5] => Cond [6] => Collectable [7] => Pool ) In getClasses() output, it is possible to compare key (ex "stackable") with $obj->name (ex "Threaded") to detect class alias. ... [Threaded] => ReflectionClass Object ( [name] => Threaded ) [stackable] => ReflectionClass Object ( [name] => Threaded ) ...
| | * Bump yearXinchen Hui2014-01-031-1/+1
| | |
* | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| | |
* | | Avoid double IS_INTERNED() checkDmitry Stogov2014-09-191-15/+15
| | |
* | | Switch (un)mangle property name to size_t and zend_stringNikita Popov2014-09-161-13/+17
| | | | | | | | | | | | Also use the _ex variants where possible.
* | | zend_get_property_info takes a zend_string* nowNikita Popov2014-09-141-3/+2
| | |
* | | use nice way to achieve the property name lengthAnatol Belski2014-09-141-3/+1
| | |
* | | reduce struct size by 8 bytes on 64 bitAnatol Belski2014-09-141-2/+2
| | |
* | | avoid repeated strlen() usageAnatol Belski2014-09-141-2/+5
| | |
* | | fixed reference countingDmitry Stogov2014-09-021-1/+1
| | |
* | | Refactored INI subsystem to use zend_string* instead of char*Dmitry Stogov2014-09-011-5/+8
| | |
* | | 's' works with size_t round 2Anatol Belski2014-08-271-5/+6
| | |
* | | first show to make 's' work with size_tAnatol Belski2014-08-271-3/+3
| | |
* | | fixed several long vs zend_long castsAnatol Belski2014-08-261-2/+2
| | |
* | | master renames phase 2Anatol Belski2014-08-251-17/+17
| | |
* | | master renames phase 1Anatol Belski2014-08-251-97/+97
| | |
* | | fix zppAnatol Belski2014-08-211-6/+6
| | |