[PHP-DEV] P-- or when less is more

2019-08-16 Thread Umberto Salsi
olved in this project: 0.1%. Continuing dreaming... ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Inconsistent float to string vs. string to float casting

2019-01-02 Thread Umberto Salsi
ependencies from the locale, not so short but the best I found up now. Things like NumberFormatter require the 'intl' extension be enabled, and often it isn't. By using these functions all the possible "float" values pass the round-trip back and forth, including NAN, INF, -INF, -0 (zero

[PHP-DEV] Re: Inconsistent float to string vs. string to float casting

2018-12-27 Thread Umberto Salsi
cmbecke...@gmx.de ("Christoph M. Becker") wrote: > Hi! > > Regarding the decimal separator (aka. decimal point), the behavior of > casting float to string is inconsistent with casting string to float. > [...] I'm shocked... Lot of code here assumes (float) does the exact reverse of (string);

Re: [PHP-DEV] Severe safety fail in file access and stream filters

2016-01-22 Thread Umberto Salsi
coded. Then all the specific stream and filter implementations can be adjusted to set that error string; for those still not fixed that string remains NULL and fopen, ferror, etc. will not report the error just as they do today, and will be fixed later step by step. Just an idea. Regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Severe safety fail in file access and stream filters

2016-01-20 Thread Umberto Salsi
, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Throwable and Error exceptions break existing PHP 5.x code

2016-01-12 Thread Umberto Salsi
hat?) but it is also unsafe (it may generate another error, which is not a good thing). Regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Throwable::getCode() inconsistencies

2016-01-11 Thread Umberto Salsi
l, (and if it is only a string, the getMessage() method already fits the need). Regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] php_stream_read(...) may return less than expected

2015-03-12 Thread Umberto Salsi
in ext/standard/image.c, I just found the pattern above. If this is really a bug, many other functions might be affected. Regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [VOTE] Scalar Type Hints

2015-02-09 Thread Umberto Salsi
(syntax, libraries, etc.) so that static validation and eventually compilation into an efficient binary executable code can be performed. Regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net

[PHP-DEV] Re: UTF-8 files and include

2012-08-23 Thread Umberto Salsi
. Under Windows, UTF-8 IS NOT a valid code page. More details about this issue in my comment to the bug 47096: https://bugs.php.net/bug.php?id=47096 Regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http

[PHP-DEV] Re: Rounding in PHP and floating point numbers in general

2008-07-22 Thread Umberto Salsi
-precision library suitable for business applications. Just my 0.0199 Euros. Regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: AW: [PHP-DEV] Method overloading by method signature

2007-10-15 Thread Umberto Salsi
. This feature is used by many developers. Please stop using unless you do it my way, nobody will use PHP argument - it doesn't work. -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] Ciao, ___ /_|_\ Umberto Salsi

Re: AW: [PHP-DEV] Method overloading by method signature

2007-10-15 Thread Umberto Salsi
\ . htmlspecialchars($a) . \; } # signature string(string) Best regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] mbstring: missing support for hex numeric entities xHHHH;

2007-05-23 Thread Umberto Salsi
);*/ Best regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php