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

2019-08-16 Thread Umberto Salsi
ted or involved 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
ore libraries involved, no dependencies 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 for

[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); foru

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

2016-01-22 Thread Umberto Salsi
s badly encoded. 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
ications). 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] Throwable and Error exceptions break existing PHP 5.x code

2016-01-12 Thread Umberto Salsi
of what?) 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
useful, (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
he implementation of this function 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
ge, but paying more attention designing its features (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 Developme

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

2012-08-23 Thread Umberto Salsi
Windows code page very similar, but not equal, to ISO-8859-1; so file names and paths specified in the require*() and include*() must be encoded accordingly. 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

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

2008-07-22 Thread Umberto Salsi
ating point numbers are usually erroneusly using "float" values to store monetary values as if PHP were a desk calculator, rather than use BCMath or other specialized high-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
= rnd(); # ERROR: assigning double to int function textToattribute(/*.string.*/ $a) { return "\"" . 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

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

2007-10-15 Thread Umberto Salsi
ing "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 \/_\/ 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
cref("ref.mbstring" > TSRMLS_CC, E_WARNING, "mbstring cannot decode '%s'", buffer); */ > mbfl_filt_conv_html_dec_flush(filter); 195,197d247 < CK((*filter->output_function)(ent, filter->data)); < filter->status = 0; < /*php_error_docref("ref.mbstring" TSRMLS_CC, E_NOTICE, "mbstring decoded '%s'=%d", buffer, ent);*/ Best regards, ___ /_|_\ Umberto Salsi \/_\/ www.icosaedro.it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php