Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120572 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29505 invoked from network); 14 Jun 2023 09:39:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Jun 2023 09:39:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E7D6A180505 for ; Wed, 14 Jun 2023 02:39:54 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 14 Jun 2023 02:39:54 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-56d304ef801so5653067b3.0 for ; Wed, 14 Jun 2023 02:39:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686735594; x=1689327594; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=xwimQnipj6NIhYM3cxf75mmyjo9umzx5hZTaiWjfzo8=; b=T5cR1agP6pEdSW6D7BWS0mmUpFmdVgUUmHIu4eOX2lVXuncyxaDHgNCUVwuPwrttpq Y4l3PnbWripvKetrL+jstALMU4oZDEaBOm5YzXWRIBgHzGQPBWuiGci9wGo6Uy6kHMbz OQxu2s37JYWUSHiPvj9C1ina7bDrMomuKI9YFIcjNOgSVA7NyqEORNaFeYI7/9IJYrZi azXtgG5tPKwlQBJiM53pPR7CPyJ/d6UBuCW5cFDfGDbgcE5g0eG/SNcWmfDQG6esPs/Q rqyvdWhoHq6h6Oer8vfFmbK7gpVikQ1X4iB/WmdQc3u2GVq23t8VBMIchVxS6ossVB5W tFCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686735594; x=1689327594; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xwimQnipj6NIhYM3cxf75mmyjo9umzx5hZTaiWjfzo8=; b=a3Krdmj9IHui1ibGrzPTkBa3T9g/Tw5QA818rEEv7Npku2h+0SWlUopfkxaTuCdDSB 2vYM1nfAq3KEIgBXWt7NqyH/h6dA28AZ/2XLcs6c0kmpRFpUKkNCID4x5fNT8QXjD2zU dEhpc2yj4qrbvWi40e0txsyxLf3TwFnzXlLwpOt1/msInndyD2pkHVXTxRQFm1ZFiwed j5nltpqCsZZ2uPM0TRcCl8YUaTjv80rHWmj1b8vfSEd0TiDBrwI2UZ/jHt2hRo5OOsV9 SFtE+Mr5UC4UibX7VB6CUGvM1lKqMlPl1KujLQ73j1PrMImekMzPxoc5+XFnX+CjF1xZ j43g== X-Gm-Message-State: AC+VfDw6a7pqrRaXVEYNkontOMOpenMamxyz/1RIDmxsSpnuLNTSz9ZY T+sC3Dl42ThGsMRd5a5YLMCacK4HT1sy5YjgddSeqBZ19xBlPg== X-Google-Smtp-Source: ACHHUZ5eYiNJgToOMdcqHx+NnBPbxeu4OHPqvh/v7Z6e/V8KKOinr5VyZ9u05YSWY8ovL5HAO5wX4cvUTXMEmbM/vZo= X-Received: by 2002:a25:6911:0:b0:bc7:afaf:539b with SMTP id e17-20020a256911000000b00bc7afaf539bmr1338420ybc.43.1686735593700; Wed, 14 Jun 2023 02:39:53 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 14 Jun 2023 11:39:15 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: make FILE_ constants not collide with LOCK_ From: divinity76@gmail.com (Hans Henrik Bergan) thanks for the thumbs up and morrisonlevi's review, it's appreciated. still needs a maintainer/core-dev approval though. btw the old file() flags check was actually flawed and would miss some incorrect flags, for example `flags = 10` aka `flags= (1 << 1) | (1 << 3)` is, and always was, incorrect for file() because file() does not support PHP_FILE_APPEND, but the old flags error-check code would miss it (and miss the error in file("file", FILE_APPEND) ). the new check doesn't. As an added bonus, seems the new flags check is about 7% faster too: https://quick-bench.com/q/j3k_unXcE91gVdTRH9Dm0nxpDUA (guess it's because it avoids the `flags < 0` thing) On Tue, 6 Jun 2023 at 12:54, Hans Henrik Bergan wrote: > > Can I get some attention to https://github.com/php/php-src/pull/11254 > ? It's been 3 weeks and nothing so far