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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 20:01:36 2025 UTC