Nikita Popov
1266515e19
Fix uses of zval_add_ref and add comment on usage
...
zval_add_ref should be used as a copy ctor, after the value was
already copied.
In particular when used with hash insertions, it should be applied
to the return value of the insert function.
2015-01-05 17:02:11 +01:00
Dmitry Stogov
aa8ecbedcb
Simplify array_splice()
2014-12-30 18:15:15 +03:00
Dmitry Stogov
c6bc209e50
Simplify array_unshift()
2014-12-30 17:04:24 +03:00
Dmitry Stogov
f9a70c50a4
Simplify array_pad()
2014-12-30 17:03:38 +03:00
Dmitry Stogov
107ae86ca6
Introduce specialized functions to compare with integer and string, to eliminate repeatable checks on each loop iteration in in_array() function.
2014-12-27 11:11:40 +03:00
Xinchen Hui
31e978ff5c
Fixed tests fails
2014-12-25 11:33:07 +08:00
Xinchen Hui
94d26ad4b9
Add php_string_tolower/toupper which is locale depened
2014-12-25 11:29:11 +08:00
Xinchen Hui
3139ba6116
FAST_ZPP for hot functions
2014-12-23 23:07:55 -05:00
Dmitry Stogov
106b1017d4
API for fast construction of packed arrays
2014-12-23 19:08:28 +03:00
Xinchen Hui
62e2973602
Revert "Improve Hash foreach macros"
...
This reverts commit 95bb0a0f7a
.
2014-12-23 03:51:06 -05:00
Xinchen Hui
95bb0a0f7a
Improve Hash foreach macros
2014-12-23 00:50:39 -05:00
Dmitry Stogov
dedf44bacc
Improved array_keys()
2014-12-23 04:29:27 +03:00
Xinchen Hui
b5b617674e
Micro optimaztion (yeah, I know compiler supposed to do that)
2014-12-22 00:10:46 -05:00
Xinchen Hui
201e1b8a8d
Micro optimizations
2014-12-21 22:35:25 -05:00
Xinchen Hui
abb98080c7
Make it inline
2014-12-20 05:17:56 -05:00
Dmitry Stogov
f7b6518d10
don't sort array with single element
2014-12-19 13:07:35 +03:00
Dmitry Stogov
dae53dfc69
Improved array_diff() function (use simple and more efficient algorithm).
2014-12-19 05:06:54 +03:00
Anatol Belski
bd76a50019
Merge remote-tracking branch 'origin/master' into native-tls
...
* origin/master:
Removed deprecated checks
2014-12-15 20:18:40 +01:00
Dmitry Stogov
4e48bff3ce
Removed deprecated checks
2014-12-15 16:42:28 +03:00
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
2014-12-13 23:06:14 +01:00
Dmitry Stogov
381438e5df
Improved array_merge() and array_replace() (1-st array may be added using simple procedure).
2014-12-11 19:18:31 +03:00
Veres Lajos
4b9535341a
typo fixes - https://github.com/vlajos/misspell_fixer
2014-11-19 20:23:00 +00:00
Anatol Belski
53560ca06b
rework the previous fix for var names with size_t, no ugly casts anymore
2014-10-23 16:50:35 +02:00
Anatol Belski
09a01a834e
this should be uint32
2014-10-22 17:56:26 +02:00
Anatol Belski
36ce467402
fix datatype mismatches
2014-10-22 17:56:25 +02:00
Anatol Belski
1ea5982d07
fixing datatype mismatches
2014-10-22 17:56:23 +02:00
Dmitry Stogov
35dc0a2e30
array_pop/array_shift optimization
2014-10-17 12:30:27 +04:00
Nikita Popov
fc6ce7d1c1
Fix array_keys() on $GLOBALS
2014-10-16 14:44:35 +02:00
Nikita Popov
ee5b30fa19
Remove support for classes without class entries
...
get_class_entry must be non-NULL and return non-NULL.
2014-10-09 13:58:14 +02:00
Nikita Popov
e33f3d3b7c
Move smart_str implementation into Zend/
...
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.
2014-09-21 20:49:39 +02:00
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
2014-09-19 18:33:14 +02:00
Dmitry Stogov
bccc653185
Avoid double IS_INTERNED() check
2014-09-19 17:32:50 +04:00
Dmitry Stogov
3bc8a958c5
Fixed useless or duplicated IS_INTERNED() checks
2014-09-19 15:41:01 +04:00
Anatol Belski
8c4ab0d02e
fix signed/unsigned mismatch
2014-09-16 21:17:27 +02:00
Dmitry Stogov
c8ff3421a0
Duplicate array only if neccessary
2014-08-28 20:51:22 +04:00
Anatol Belski
af59e92b24
master renames phase 7
2014-08-25 21:51:49 +02:00
Anatol Belski
b9514bb8fd
master renames phase 6
2014-08-25 21:26:42 +02:00
Anatol Belski
4d997f63d9
master renames phase 3
2014-08-25 20:22:49 +02:00
Anatol Belski
6f9f0bf205
master renames phase 2
2014-08-25 19:28:33 +02:00
Anatol Belski
c3e3c98ec6
master renames phase 1
2014-08-25 19:24:55 +02:00
Anatol Belski
9d760498c1
fixed array_pad()
2014-08-21 22:13:22 +02:00
Anatol Belski
6d54e89916
Merge remote-tracking branch 'php/master'
2014-08-20 21:29:49 +02:00
Dmitry Stogov
cf09bc7825
Fixed bug #67874 (Crash in array_map())
2014-08-20 22:06:15 +04:00
Anatol Belski
97c5172ac7
Merge remote-tracking branch 'php/master'
...
Conflicts:
ext/date/lib/parse_date.c
2014-08-19 08:27:43 +02:00
Dmitry Stogov
0f5bad93fd
Fixed bug #67856 (Leak when using array_reduce with by-ref function)
2014-08-18 21:08:50 +04:00
Anatol Belski
b8324e6d63
further fixes to ext/standard
2014-08-18 16:50:54 +02:00
Anatol Belski
c586133d07
rename zval_get_long and fixes to some string functions
2014-08-18 08:39:39 +02:00
Anatol Belski
f2182ab845
some more pure naming replacements
2014-08-17 21:16:27 +02:00
Anatol Belski
7534bf125a
fix set_time_limit, substr and some more
2014-08-16 14:46:31 +02:00
Anatol Belski
1169de3e61
fix some cases with fast zpp
2014-08-16 14:00:02 +02:00