Category
bug · php-src-strict · AOT · pillar 4 · sibling of closed #27018 (cosh)
Problem
sinh(1) is 1.175201… on Zend/VM/JIT, but the AOT binary prints 0 (exit 0).
Probed 2026-08-03 on master (user_release_ready: no; inventory OK 6841/6841). #27018 fixed cosh NestedJIT returning 0; sinh still wrong.
| Repro |
Zend / VM (2026-08-03) |
AOT phpc build |
echo round(sinh(1), 6); |
1.175201 |
0 |
php-src reference
PHP implementation target
Repro
./script/docker-exec.sh -- bash -lc '
cat > /tmp/aot_sinh.php <<'"'"'PHP'"'"'
<?php
echo round(sinh(1), 6), "\n";
PHP
php bin/vm.php /tmp/aot_sinh.php
PHP_COMPILER_HELPER_RUNTIME_O=0 php bin/compile.php -o /tmp/aot_sinh /tmp/aot_sinh.php
/tmp/aot_sinh
'
Done when
Category
bug· php-src-strict · AOT · pillar 4 · sibling of closed #27018 (cosh)Problem
sinh(1)is1.175201…on Zend/VM/JIT, but the AOT binary prints0(exit 0).Probed 2026-08-03 on master (
user_release_ready: no; inventoryOK 6841/6841).#27018fixedcoshNestedJIT returning 0;sinhstill wrong.phpc buildecho round(sinh(1), 6);1.1752010php-src reference
ext/standard/math.c—PHP_FUNCTION(sinh)PHP implementation target
ext/standard/sinh.php+lib/JIT/Builtin/MathSinh.php— NestedJIT / thin AOT path (same class of bug as Regression: AOT cosh() returns 0 — VM/JIT match Zend (ext/standard/math.c) #27018 cosh)Repro
Done when
1.175201(matches VM/Zend forround(sinh(1), 6))test/compliance/ortest/repro/