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
 [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-2020 The PHP Group
All rights reserved.
Last updated: Wed Jul 08 01:01:25 2020 UTC