Bug #34 [Com]: "0" is false
| From: | lildurk34 at gmail dot com | Date: | Wed, 01 Sep 2021 17:52:14 +0000 |
| Subject: | Bug #34 [Com]: "0" is false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236224@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=34&edit=1
ID: 34
Comment by: lildurk34 at gmail dot com
Reported by: torben at coastnet dot com
Summary: "0" is false
Status: Closed
Type: Bug
Package: Other
Operating System: Linux 2.0.33
PHP Version: 3.0 Latest CVS
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[2020-02-10 09:10:59] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=349194
Log: Remove hint to security purpose of disable_functions
Patch by jsmmo.
Closes php/doc-en#34.
------------------------------------------------------------------------
[2010-10-10 21:05:07] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=304287
Log: - Revamp of the decoding portion of html.c.
- Dramatic improvements on the performance of html_entity_decode and htmlspecialchars_decode, as the
string is now traversed only once. Speedups of 20 to 25 times with Windows release builds and a
~250 characters string (for 2nd and subsequent calls).
- Consistent behavior on html_entity_decode. For instance, the entity in
"&<" would be decoded,
but not "&é". Not anymore. The code path for
"basic" and non-basic entities is now mostly
shared.
- Code of html_entity_decode and htmlspecialchars_decode is now shared.
- [DOC] More consistent behavior of htmlspecialchars_decode. Instead of translating only
<, >,
&, ", ' and ', now e.g. ",
', ', ', etc. are also decoded.
- [DOC] Previous translation of unicode code points in numerical entities was seriously broken. When
the code points for some character were not the same in unicode and the target encoding, the
behavior could be an erroneous translation (e.g. 0x80-0xA0 in win-1252) or no translation at all.
Added unicode translation tables for all single-byte encodings. Entities are not translated for
multi-byte entities, except for ASCII characters whose code points are shared. We could add
the huge translation tables (several thousand elements) for those encodings in the future.
- Fixed numerical entities that after # had text accepted by strcol being accepted.
- Much more commented and well-structured code...
- Tests for get_html_translation_table()) are broken. I stared fixing the tests, but then I realized
it was completely helpless because get_html_translation_table() is broken by not handling
multi-byte characters correctly.
------------------------------------------------------------------------
[1998-02-04 17:13:02] andi
This was a bug in the documentation.
------------------------------------------------------------------------
[1998-02-04 03:12:58] torben at coastnet dot com
The following script prints "Weird":
<? echo "0" ? "OK" : "Weird" ?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=34&edit=1