| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2016-01-13 23:58 UTC] requinix@php.net
 
-Summary: Inconsistent handling of malformed integers
+Summary: No documentation on E_NOTICE for trailing characters
          with weak int/float hints
-Type:    Bug
+Type:    Documentation Problem
  [2016-01-13 23:58 UTC] requinix@php.net
  [2021-11-08 16:19 UTC] cmb@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 06:00:01 2025 UTC | 
Description: ------------ When using scalar type hinting, some malformed integers report a TypeError, while others raise a E_NOTICE. Test script: --------------- function test(int $a) {} test(null); // TypeError test("x"); // TypeError test("x1"); // TypeError test("1x"); // E_NOTICE Expected result: ---------------- test("1x"); // TypeError Actual result: -------------- test("1x"); // E_NOTICE