Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104268 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55046 invoked from network); 7 Feb 2019 04:50:41 -0000 Received: from unknown (HELO mail-wm1-f48.google.com) (209.85.128.48) by pb1.pair.com with SMTP; 7 Feb 2019 04:50:41 -0000 Received: by mail-wm1-f48.google.com with SMTP id b11so4462009wmj.1 for ; Wed, 06 Feb 2019 17:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oisHmluWlSse/Qv3/FEPpqE/te40wstQH/usSv1IphM=; b=qMmukpAX0X59MLW2YPEAyhloom1T5C+oWGp2LFV1YSNP4zYqZG5Xv3TIGSV30YmG5K klaJhUn3Id5001VLebYP+Kar74Zwg3+IQJgsDEEGfwB0fGbc2kZByE8zrwSkNn0g7TO7 mvl4NbXxp7sGEZq6g2QAjcgsnwgi/Fhc+576FlFVuAbpwqAtNPEfnrsHQYMoPuoHsC64 mR953+L1/IbHCtUV7bUhYrW3NRtOWCrHkc15epphoDsUS2EhF9MNBUe6IKVkfSyJ8Pc+ wqwciOCBUY/vZvWxoeUla2gcI1YSrdUOyflF2tBeJfRFzf9SVSeol0GHnOr757kIYaNk 5ouw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oisHmluWlSse/Qv3/FEPpqE/te40wstQH/usSv1IphM=; b=juFxvJjdPYihGZ5r+stf1upBFzjXStYSQegXX+ez946hq3pAp6FaJA8cDfnYow5xbq KP9gZqPmuiGEG7+GmsasivInp30nh1ojSRxg9wI9k0nfy6F5VYWQ4M3THxUeyLbGLGsr G+zi8MOsRIADPvg88rmABTMuDnGoGhiHSVRFwCXWS7JIM4wkvd0Kr/L08iwPPCwtZK+A lzO3pfeFLeEQepcFzi6QERMwTJRJD7jHdyKPeA+bwPEfsCXj22cBzX8HDUGjvMJOZlTD c0dt5XHeiwli9S6e3jjhAKMBd3mhrrh/a73Qowx1pDn+OATFxEwdXAtvRgAyckybrGqg m+Fw== X-Gm-Message-State: AHQUAuYRmQtFiDmLE+OpaVPIZ7FiFDRZWDujUinzhsJEtiHNea/msdAm paq8XON+AkZqdDwkBz6PuOYHXm/lDhxUUWrmQaY= X-Google-Smtp-Source: AHgI3IbPBVKdod5tFjTuFqtcuDDnC+PlMHzd5O4mok5bCoWTDSNUz0+ZkU0TBcYJ5quGcroCFB7/VPyrMBb5+jmW/fM= X-Received: by 2002:a1c:e10a:: with SMTP id y10mr5175429wmg.73.1549503131706; Wed, 06 Feb 2019 17:32:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 7 Feb 2019 08:32:00 +0700 Message-ID: To: Girgias Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="000000000000be6c21058143cf93" Subject: Re: [PHP-DEV] Don't silence fatal errors From: pierre.php@gmail.com (Pierre Joye) --000000000000be6c21058143cf93 Content-Type: text/plain; charset="UTF-8" On Thu, Feb 7, 2019, 8:07 AM Girgias > The most common case which comes to mind is to suppress erros while file > reading. > Because even if you check a file exists it could be deleted inbetween the > check and the > read command. As you can see this is even written in the documentation [1] > > Best regards > > George Peter Banyard > > [1] https://secure.php.net/manual/en/function.fopen.php > That is one the cases I meant. Also this is a bug in the user code. I can imagine doing it on purpose for performance reasons (if the file is created/deleted by other apps) tho'. flock is what should be used here. best, Pierre > > --000000000000be6c21058143cf93--