|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74579 No notice
Submitted: 2017-05-12 11:39 UTC Modified: 2017-05-12 12:09 UTC
From: vasoczki dot ferenc at gmail dot com Assigned:
Status: Duplicate Package: Scripting Engine problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vasoczki dot ferenc at gmail dot com
New email:
PHP Version: OS:


 [2017-05-12 11:39 UTC] vasoczki dot ferenc at gmail dot com
When initialize a variable as an integer, and later try to dump a non existent key, PHP dump it as null, and do not drop notice.

If you assign string, it drops the notice.

Test script:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
$array = 666;
$a = $array['test'];

Expected result:
Notice: Undefined index: test

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-05-12 12:09 UTC]
-Status: Open +Status: Duplicate -Package: PHP Language Specification +Package: Scripting Engine problem
 [2017-05-12 12:09 UTC]
Duplicate of
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Nov 30 17:01:30 2023 UTC