php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-02 13:37 UTC] sander@php.net
Works fine for me. Can you try RC1 from www.php.net/~derick ?
 [2002-07-02 16:41 UTC] sterling@php.net
yep, that's how surpressing errors works, if you register an error handler that'll always be called.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC