Skip to content

Commit f616341

Browse files
authored
Merge pull request #22 from richard67/richard67-patch-1
Correct warning "A non-numeric value encountered" in utf8.php
2 parents 05ec963 + cd78abd commit f616341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phputf8/utf8.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
* and https://github.com/php/php-src/commit/97df99a6d7d96a886ac143337fecad775907589a
4343
* for additional references
4444
*/
45-
if ( PHP_VERSION_ID < 80000 && ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING ) {
45+
if ( PHP_VERSION_ID < 80000 && ((int) ini_get('mbstring.func_overload')) & MB_OVERLOAD_STRING ) {
4646
trigger_error('String functions are overloaded by mbstring',E_USER_ERROR);
4747
}
4848
mb_internal_encoding('UTF-8');

0 commit comments

Comments
 (0)