|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-07-27 15:27 UTC] cmb@php.net
-Package: Unknown/Other Function
+Package: PHP options/info functions
[2021-03-12 11:25 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
[2021-03-12 11:25 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
Description: ------------ The $description argument of assert() is not binary-safe. When the description is displayed, it will get truncated at the first null (\0) byte. Test script: --------------- <?php // run with: php -d zend.assertions=1 -f /tmp/test.php error_reporting(E_ALL); ini_set("display_errors", 1); assert_options(ASSERT_ACTIVE, true); assert_options(ASSERT_WARNING, true); assert(false, "foo\000bar"); Expected result: ---------------- Warning: assert(): foobar failed in /tmp/test.php on line 10 Actual result: -------------- Warning: assert(): foo failed in /tmp/test.php on line 10