Tag

hexadecimal

0 views collected around this technical thread.

IT Services Circle
IT Services Circle
Jan 19, 2025 · Backend Development

Analysis of PHP Hexadecimal Addition Bug Caused by Lexer Change from Flex to re2c

An in‑depth examination of a long‑standing PHP bug where the expression 0x00+2 incorrectly evaluates to 4, tracing its origin to the switch from flex to re2c in the lexer of PHP 5.3, detailing affected versions, code behavior, and the eventual fix in PHP 5.3.11.

LexerPHPParser
0 likes · 8 min read
Analysis of PHP Hexadecimal Addition Bug Caused by Lexer Change from Flex to re2c
Laravel Tech Community
Laravel Tech Community
Jan 26, 2021 · Backend Development

hexdec() – Convert Hexadecimal Strings to Decimal in PHP

hexdec() is a PHP built‑in function that converts a hexadecimal string to its decimal value, ignoring any non‑hex characters, and returns the corresponding integer; the article explains its syntax, parameters, return value, and provides example code demonstrating conversions such as "See" and "a0".

PHPbackendconversion
0 likes · 2 min read
hexdec() – Convert Hexadecimal Strings to Decimal in PHP
Laravel Tech Community
Laravel Tech Community
Jan 18, 2021 · Backend Development

PHP dechex() – Convert Decimal Numbers to Hexadecimal Strings

The article explains PHP's dechex() function, detailing its purpose of converting a decimal integer to a hexadecimal string, describing the valid input range, parameter definition, return value, and providing example code with expected output.

Number ConversionPHPbackend
0 likes · 2 min read
PHP dechex() – Convert Decimal Numbers to Hexadecimal Strings