Xinchen Hui
4f5d010269
Fixed segfault introduced in f869bf3829
2015-01-30 22:11:21 +08:00
Nikita Popov
d133e68bab
Remove support for hex number from is_numeric_string
2015-01-28 22:54:17 +01:00
Xinchen Hui
68f5eb7e71
minor CS fix
2015-01-27 20:35:25 +08:00
Márcio Almada
927ebc9789
add another test to #1022
2015-01-27 07:16:22 -03:00
Márcio Almada
f869bf3829
fix failure with shared zvals in php_str_replace_in_subject
2015-01-27 07:16:22 -03:00
Márcio Almada
1c0dcb268c
add failing test for string_replace and array replaces with references
...
```
make test TESTS=ext/standard/tests/strings/str_replace_*.phpt
```
2015-01-27 07:16:22 -03:00
Bob Weinand
5845f2c0c1
Merge branch 'PHP-5.6'
...
Conflicts:
NEWS
main/streams/filter.c
2015-01-26 22:53:36 +01:00
Bob Weinand
666cb333f7
Merge remote-tracking branch 'origin/PHP-5.5' into PHP-5.6
...
Conflicts:
NEWS
2015-01-26 22:51:37 +01:00
Bob Weinand
b8461eb9ac
Fix call after close if multiple filters are attached
2015-01-26 22:47:35 +01:00
Keyur Govande
4c6918ec17
Patch commit d9f85373e3
by moving the float_to_double function to
...
a header file.
2015-01-26 21:20:29 +00:00
Keyur Govande
b34f8ef599
Fix for bugs #68114 (Build fails on OS X due to undefined symbols)
...
and #68657 (Reading 4 byte floats with Mysqli and libmysqlclient
has rounding errors).
The patch removes support for Decimal floating point numbers and
now defaults to using similar logic as what libmysqlclient does:
convert a 4 byte floating point number into a string, and then the
string into a double. The quirks of MySQL are maintained as seen in
Field_Float::val_str()
2015-01-26 21:20:29 +00:00
Keyur Govande
1933b556b9
Patch commit d9f85373e3
by moving the float_to_double function to
...
a header file.
2015-01-26 21:19:00 +00:00
Keyur Govande
e51980f4e6
Fix for bugs #68114 (Build fails on OS X due to undefined symbols)
...
and #68657 (Reading 4 byte floats with Mysqli and libmysqlclient
has rounding errors).
The patch removes support for Decimal floating point numbers and
now defaults to using similar logic as what libmysqlclient does:
convert a 4 byte floating point number into a string, and then the
string into a double. The quirks of MySQL are maintained as seen in
Field_Float::val_str()
2015-01-26 21:19:00 +00:00
Nikita Popov
e05993dfa2
Remove dl() on fpm-fcgi
2015-01-26 21:00:23 +01:00
Nikita Popov
4d3e4d3bf9
Remove assignment of new by reference
2015-01-26 21:00:22 +01:00
Xinchen Hui
a98fd7125a
Fixed bug #68897 (Using variable for sort flag in array_multisort cause wrong results)
2015-01-24 22:51:37 +08:00
Márcio Almada
f27e96c2f8
remove unused var, make string.c compilation zero warnings
2015-01-24 00:26:01 -03:00
Dmitry Stogov
e427188755
Fixed memory leak
2015-01-23 21:47:26 +03:00
Reeze Xia
bdfe4d6558
Fix one more leak when wrong $needle type provide of strripos
2015-01-23 17:14:39 +08:00
Reeze Xia
d44b6e58ba
Fixed memory leak of strripos() when empty needle or haystack
2015-01-23 16:53:58 +08:00
Xinchen Hui
6ae57df70b
Revert "Fixed valgrind reported issue with setlocale"
...
This reverts commit fa06343d7e
.
2015-01-22 16:55:20 +08:00
Xinchen Hui
fa06343d7e
Fixed valgrind reported issue with setlocale
2015-01-21 12:03:19 +08:00
Anatol Belski
44cbba100a
fix leaking of locale_string in TS build
...
actually more like an attempt as i see the leaks on travis,
but don't repro on my boxes
2015-01-20 20:52:44 +01:00
Stanislav Malyshev
b16fdebcf8
Merge branch 'PHP-5.6'
...
* PHP-5.6:
5.4.38 next
Updated NEWS
Updated NEWS
Fix bug #68711 Remove useless checks. 'num' is unsigned and cannot be <0.
Fix bug #68799 : Free called on unitialized pointer
Fix for bug #68710 (Use After Free Vulnerability in PHP's unserialize())
Conflicts:
ext/exif/exif.c
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
2015-01-20 10:41:59 -08:00
Stanislav Malyshev
e18ec95687
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
5.4.38 next
Fix bug #68799 : Free called on unitialized pointer
Fix for bug #68710 (Use After Free Vulnerability in PHP's unserialize())
Conflicts:
ext/standard/var_unserializer.c
2015-01-20 10:40:39 -08:00
Stanislav Malyshev
e2744c51b6
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
5.4.38 next
Fix bug #68799 : Free called on unitialized pointer
Fix for bug #68710 (Use After Free Vulnerability in PHP's unserialize())
Conflicts:
configure.in
main/php_version.h
2015-01-20 10:40:11 -08:00
Anatol Belski
ea8415114a
fix premature freeing of BG(locale_string)
...
the returned string has to be refcounted
2015-01-20 16:54:04 +01:00
Xinchen Hui
afa666f650
Optimized range
2015-01-20 22:02:11 +08:00
Xinchen Hui
47b7d90703
NUM_KEY is useless here
2015-01-20 16:51:20 +08:00
Andrea Faulds
5c88d11243
Update remaining octal 32-bit tests
2015-01-20 05:54:13 +00:00
Xinchen Hui
c369a03407
Use zend_string in case we will optimize them
2015-01-20 10:59:28 +08:00
Xinchen Hui
020610ee40
Remove addslashes_str
2015-01-20 10:11:48 +08:00
Xinchen Hui
da7d8f45b2
Optimized php_addslashes
2015-01-19 10:46:39 -05:00
Xinchen Hui
d917484ab7
Micro optimization for array_diff
2015-01-19 08:08:35 -05:00
Xinchen Hui
ac9a1a7b0c
Optimized trim for what_len == 1
2015-01-19 07:45:30 -05:00
Xinchen Hui
020b51b46e
Don't use >= as sorting condition
...
which could avoid breaking usage like:
usort($a, function($a, $b) { return $a > $b; })
2015-01-19 01:36:56 -05:00
Xinchen Hui
0706032b73
Better fix
2015-01-18 21:38:25 -05:00
Xinchen Hui
f3052c5d2f
Fixed bug #68852 (broken strrpos with negative offset)
2015-01-18 10:05:27 -05:00
Andrea Faulds
5f29b98051
Error on invalid octal (fixes PHPSadness #31 )
...
Further error checks
2015-01-17 18:50:28 +00:00
Nikita Popov
ca11bc0325
Remove set_socket_blocking
2015-01-17 18:26:45 +01:00
Nikita Popov
a60efc5e11
Remove set_magic_quotes_runtime
...
And the alias magic_quotes_runtime
2015-01-17 18:26:45 +01:00
Nikita Popov
4c115b6b71
Remove string category support in setlocale()
2015-01-17 18:26:45 +01:00
Nikita Popov
83391b5518
Remove for #-style comments in ini files
2015-01-17 18:26:44 +01:00
Rasmus Lerdorf
ff6b4ad8c7
FAST ZPP for strtok() and nl2br()
...
Looking at some template-driven code that calls these
hundreds of times per request
2015-01-17 08:30:40 -08:00
Xinchen Hui
396e9cdb7f
Optimized extract
...
symbol table already be rebuilt.. no need use set_local_var
2015-01-16 18:12:33 +08:00
Xinchen Hui
865749e7b1
Optimized array_slice
2015-01-16 17:54:50 +08:00
Xinchen Hui
22084e1478
Added test for array_unique
2015-01-16 17:12:50 +08:00
Xinchen Hui
98a2498383
Revert "Optimize array_unique to save some comparation calls"
...
Unsafe optimization
This reverts commit b57dc41e07
.
2015-01-16 15:21:21 +08:00
Xinchen Hui
1c9f91e682
Revert "We could do more...."
...
This reverts commit 11f615b311
.
2015-01-16 15:21:12 +08:00
Xinchen Hui
584a43d601
Merge branch 'master' of https://git.php.net/repository/php-src
2015-01-16 00:53:26 -05:00