|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesfix-66797.patch (last revision 2014-02-28 19:24 UTC by astewart at online-buddies dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-30 11:43 UTC] cmb@php.net
-Status: Open
+Status: Analyzed
-Assigned To:
+Assigned To: cmb
[2016-08-30 11:43 UTC] cmb@php.net
[2016-08-30 13:27 UTC] cmb@php.net
[2016-08-30 13:27 UTC] cmb@php.net
-Status: Analyzed
+Status: Closed
[2016-10-17 10:08 UTC] bwoebi@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 17:00:02 2025 UTC |
Description: ------------ mb_substr takes an int argument for length, but does not accept all integers on a 64-bit compiled PHP. Instead, the number is treated as -(1<<31), and the string is therefore truncated to zero length. Test script: --------------- <?php assert('"1" == mb_substr("1", 0, PHP_INT_MAX)'); Expected result: ---------------- No output Actual result: -------------- PHP Warning: assert(): Assertion ""1" == mb_substr("1", 0, PHP_INT_MAX)" failed in t.php on line 2 PHP Stack trace: PHP 1. {main}() t.php:0 PHP 2. assert() t.php:2