php-src/tests
Nikita Popov 604848188b Add additional double to string APIs
zend_double_to_str() converts a double to string in the way that
(string) would (using %.*H using precision).

smart_str_append_double() provides some more fine control over
the precision, and whether a zero fraction should be appeneded
for whole numbers.

A caveat here is that raw calls to zend_gcvt and going through
s*printf has slightly different behavior for the degenarate
precision=0 case. zend_gcvt will add a dummy E+0 in that case,
while s*printf convert this to precision=1 and will not. I'm
going with the s*printf behavior here, which is more common,
but does result in a minor change to the precision.phpt test.
2021-08-02 16:14:53 +02:00
..
basic Add additional double to string APIs 2021-08-02 16:14:53 +02:00
classes Merge branch 'PHP-8.0' 2021-07-29 12:49:17 +02:00
func Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
lang Declare tentative return types for Zend (#7251) 2021-07-19 13:44:20 +02:00
output Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
run-test run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
security Merge branch 'PHP-8.0' 2021-05-25 13:47:25 +02:00
strings Fix spelling and grammar mistakes 2021-04-13 12:09:37 +02:00