php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8023 Mystyping reset(X) cause script dies whithout diag
Submitted: 2000-11-29 00:21 UTC Modified: 2000-11-29 00:44 UTC
From: sp at alkor dot ru Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: FreeBSD 4.1-RELEASE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sp at alkor dot ru
New email:
PHP Version: OS:

 

 [2000-11-29 00:21 UTC] sp at alkor dot ru
When you mistype reset(X) instead of reset($X) script
dies [probably at parse state] without any diag/output.
When you're mistyping in complex script it's hard to
understand where's error.

Type foo.php and see results

<?
reset(X);
die("foo");
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-29 00:44 UTC] hholzgra@php.net
please check your error_reporting settings in php.ini

i'm pretty sure you have something like 
error_reporting=7 or error_reporting=15 in there

theese were valid settings in php3 but php4 has some
additional error states so you should use the symbolic
E_* constants instead

error_reporting=E_ALL or error_reporting=E_ALL & ~E_NOTICE
are the equivalents to the values 15 or 7 in php3
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 21:00:01 2026 UTC