|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16393 @ does not mask E-WARNING produced by unlink
Submitted: 2002-04-02 12:16 UTC Modified: 2002-07-02 16:41 UTC
From: ricko at garagegames dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.1.2 OS: Linux
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: ricko at garagegames dot com
New email:
PHP Version: OS:


 [2002-04-02 12:16 UTC] ricko at garagegames dot com
@unlink("bogus") still triggers an E_WARNING even though the @ is supposed to suppress the error when the file doesn't exist or any error condition.  

I currently have a custom error handler installed and get E_WARNINGs comming in when the file does not exist.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-02 13:37 UTC]
Works fine for me. Can you try RC1 from ?
 [2002-07-02 16:41 UTC]
yep, that's how surpressing errors works, if you register an error handler that'll always be called.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jun 12 15:01:23 2021 UTC