Dmitry Stogov
588e803e85
Ipmrove strtr() by maintaining a set of characters that may start a matched pattern and avoid zend_hash_find() calls for other paterns.
2015-01-14 15:04:04 +03:00
Dmitry Stogov
ade7a41040
Optimized str_[i]replace to aviod reallocations and repeatable conversions to lowercase
2015-01-13 23:23:50 +03:00
Dmitry Stogov
a7ce679578
Fixed type (case sensetive/insensetive mess)
2015-01-12 22:30:55 +03:00
Dmitry Stogov
c5047d1f11
Use FAST_ZPP in few more frequently used functions
2015-01-12 19:26:12 +03:00
Dmitry Stogov
8d2a7e98db
Added special optimized cases when strtr() called with zero or one search/replace pair.
2015-01-12 16:51:59 +03:00
Dmitry Stogov
b277d360e9
Fixed reference support
2015-01-12 14:43:32 +03:00
Xinchen Hui
2f1ddff2a5
Faster strrpos implementation
2015-01-12 17:24:37 +08:00
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Bob Weinand
773c8b0c09
Fix missing ZVAL_DEREF()
2015-01-10 22:29:00 +01:00
krakjoe
b99dd1e895
Merge branch 'master' of git://git.php.net/php-src
2015-01-09 07:48:29 +00:00
krakjoe
159c331844
optimization for bug report #68679
2015-01-09 07:45:21 +00:00
Dmitry Stogov
7b4808a647
Fixed bug #68636 (setlocale no longer returns current value per category).
2015-01-09 01:41:13 +03:00
Adam Harvey
ed8ebd6ce4
Merge branch 'PHP-5.6'
...
* PHP-5.6:
Calling crypt() with a salt of *0 should always return *1.
Conflicts:
configure.in
main/php_version.h
2015-01-08 19:17:53 +00:00
Adam Harvey
16b6f6c7f4
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Calling crypt() with a salt of *0 should always return *1.
5.5.22 now
Conflicts:
configure.in
main/php_version.h
2015-01-08 19:16:32 +00:00
Adam Harvey
8b0f105761
Calling crypt() with a salt of *0 should always return *1.
2015-01-08 19:13:23 +00:00
Xinchen Hui
7ebdc8d70d
Fixed #68692
2015-01-08 16:29:33 +08:00
Xinchen Hui
f3ea1b0b6a
Fixed #68694
2015-01-08 16:28:32 +08:00
Xinchen Hui
1b4f7c3a77
Fixed #68711
2015-01-08 16:20:20 +08:00
Levi Morrison
bb7ceb046e
Fix bug #55416
...
Remove extra, unnecessary warning when the callback fails for
array_map, array_reduce and array_filter
2015-01-05 17:27:25 -07:00
Anatol Belski
a26ecbd572
Merge branch 'PHP-5.6'
...
* PHP-5.6:
fix ACLs tests, make it create dir where it has to, not file
2015-01-05 19:20:33 +01:00
Anatol Belski
4756207e7e
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix ACLs tests, make it create dir where it has to, not file
2015-01-05 19:20:07 +01:00
Anatol Belski
339139f876
fix ACLs tests, make it create dir where it has to, not file
2015-01-05 19:19:24 +01:00
Anatol Belski
923394c509
fix ACLs setup for tests
2015-01-05 19:14:44 +01:00
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
Stanislav Malyshev
f2fc1bdb33
Make the code lesss suspicious (can't be really 0 but it's not obvious)
2014-12-30 00:16:21 -08:00
Stanislav Malyshev
b946621333
fix "comparing size_t to <0" warning
2014-12-28 23:46:28 -08: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
Nikita Popov
2d212b426a
Drop duplicate arg from hash_get_current_key_ex
2014-12-26 21:06:18 +01: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
f26c50e320
Revert "Use zend_string_tolower in zif_strtolower"
...
This reverts commit 06abeab50c
.
2014-12-25 10:41:10 +08:00
Xinchen Hui
06abeab50c
Use zend_string_tolower in zif_strtolower
2014-12-24 08:16:17 -05:00
Xinchen Hui
231db90b28
Merge branch 'master' of https://git.php.net/repository/php-src
2014-12-24 07:45:25 -05:00
Dmitry Stogov
c42ac09518
Added new API function 'zend_string* zend_string_tolower(zend_string*)'.
...
It simplifies code and avoids unnecessary allocation and copying if string is already in lower case.
2014-12-24 15:04:51 +03: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
6ec5ab77df
Improved trim/ltrim/rtrim functions.
...
Now php_trim() operates on zend_string and returns zend_string (it may return the same zend_string).
2014-12-23 04:29:41 +03:00
Dmitry Stogov
dedf44bacc
Improved array_keys()
2014-12-23 04:29:27 +03:00
Dmitry Stogov
6a6cdecbdb
Improved unserialize()
2014-12-23 02:49:33 +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
c24125e2f9
Micro optimization
2014-12-21 23:16:25 -05:00
Xinchen Hui
201e1b8a8d
Micro optimizations
2014-12-21 22:35:25 -05:00
Xinchen Hui
0adceaa87b
Merge branch 'master' of https://git.php.net/repository/php-src
2014-12-21 21:53:32 -05:00
Andrea Faulds
e5eb9530ab
Use "float" and "integer" in typehint and zpp errors
2014-12-21 13:23:02 +00:00
Andrea Faulds
e20cbdbe97
Unify HTTP status code maps
2014-12-21 03:12:39 +00:00