Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124160 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 5D0691AD8EA for ; Mon, 1 Jul 2024 20:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719865403; bh=ZGD8gwWteTp/YJqBB4RU/YT9vFZkXD/lGG+TFv/Rsr8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QlDr2ZMgQYCw30yWgemRdKsnHpTMWDSu8y4dSUl3vSpPm/fjfmKqV3XWJJnL1iPhU cjtdFvoT1eefx+yT3PFnbOnpUKWIIjn6i9ZARHO1O1AGqQVxDLhEid7BrJcvspiKs+ +OKB/QEsiYRI0oExgpV6yHKG5reqeOA0THbCxgC08w9MWDC4hyTuK6TKk5E2XrmlPg bUSAqjWFEKqVzWac2Kno087P8vLLE9Q5Wc45knc+cUzRTrEnAQjZkAhghqurpXtAhL okWOLibOPyyWsy6N9vp4vprjJZzNc9zgetRkvJ1+H4C4V8r8x+YSLMlGOoTwlR8Hq7 /KcCr70aqqbNQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 58825180545 for ; Mon, 1 Jul 2024 20:23:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 1 Jul 2024 20:23:19 +0000 (UTC) Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-725a7b0fc55so1974091a12.3 for ; Mon, 01 Jul 2024 13:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719865318; x=1720470118; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZGD8gwWteTp/YJqBB4RU/YT9vFZkXD/lGG+TFv/Rsr8=; b=LJKUxDBVLwq6wt6GkJJaXa6NEpjSg+Lyloar0xIIaNQdT32zLE2PCNHZXGLNHDfCET WroevXKkW6xnnoU89ZX2w4U6fHD7Rybt8NbOyEcPY27T/VPnRLV+4ucFq7YY3E+XOft7 U2/uaHq9f0pDwhdfg1eTqPlvPezHK1wFnLS5qVr4LqGFVCxDA+zSTCllu5hC10VvBbFk HCbARpZkvclyWxX9ljinK4V4SswRg5Ir2HHkXn7cxZiX1AAvG3VUijmpUnWdjBa7cBKf YZm7oB+x6ZvF63EFIrFlyOOrPSO5UOhJGyWpo24Je7FYtqyGLxJnGlF8cZ1s0iIBL3Sk GTUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719865318; x=1720470118; h=cc: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=ZGD8gwWteTp/YJqBB4RU/YT9vFZkXD/lGG+TFv/Rsr8=; b=U+QQqdwwVbgV3AW4Gso47yK7YWvL8oAlnFzMKUt3qWOedaXdvy9P/jgSauqwKtIGEF pDTjCyYhWPZlHIV27JLm9ZoJz2qcaCTrnmErRWuQvwWhxt2FnqRIa3DW7EsArxSkksMV eMVufzMXsJu0wuJdV8qip8R07fQ5xRUrbtaxNlp40xn0HViQUepYkOgXL3NcRWfWhLvN 3A759jBUvPH0ulYZIp7fxgyWMNdgnzRe93pmT9H0+vBTEhNNDyw3hsSMwmEJ4d9i+5tn +kdS1GmmmRr2QfIwT29hc6J1qJpnanv2EScnMWeIl+HGgTZv+9NKdBiF48be+a8hVCsT fv2Q== X-Forwarded-Encrypted: i=1; AJvYcCW4kpgaEXpD9pps/CQvdVRQaA57q169XHMLzDeZ8P3socvGImOx7TWaNGh+RPHm3cAnJbostpGCsHKjinHpe38Ujy7VS6VcPQ== X-Gm-Message-State: AOJu0YyXGh+KvympMjWG8HU4WbElF9J2jgBsuAap8AAjLhSnD17Ri3xN XMM2M5VeFujQhk6H8C2bfFAXdVLVdL2TUdUy/DbwQsQHr7/ZKbGFMo0kNwzenGwnbowYFIQsJ/l 8Yhafduwz+ddJ8yE1JLZG0BOvWw5NElGw X-Google-Smtp-Source: AGHT+IHBXBuJsJhX52gm0UB5EAMbqHrcTswotDeCDv0HzsG04bJUSRRG9ftl6SyOdy4AsamHGqJ7T5vJpSqXTmobd1E= X-Received: by 2002:a05:6a20:3d83:b0:1bd:232a:946f with SMTP id adf61e73a8af0-1bef61989a4mr6257231637.34.1719865317650; Mon, 01 Jul 2024 13:21:57 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 1 Jul 2024 22:21:45 +0200 Message-ID: Subject: Re: [PHP-DEV] Re: [Discussion] Add date_test_set_now() function To: Lanre Cc: Larry Garfield , php internals Content-Type: multipart/alternative; boundary="00000000000051fb29061c35591a" From: jorg.sowa@gmail.com (Jorg Sowa) --00000000000051fb29061c35591a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > You don=E2=80=99t make any effort to help or provide constructive critici= sm; you just love to (incorrectly) tell everyone what they're doing wrong and how they should be doing it, without adding anything constructive to the conversation. Please limit to the arguments on the topic, not a person. The argument "Relying on the global mutable state is a bug" is completely valid and in most of the cases is the signal of bad design. And it has been already addressed in some of the functions, look at https://wiki.php.net/rfc/deprecations_php_8_3 for deprecations on rand functions. However, it's not so trivial to fix everything introducing compatibility-breaking changes. So it shouldn't be advised to add more of such functions. Kind regards, Jorg --00000000000051fb29061c35591a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> You don=E2=80=99t make any effort= to help or provide constructive criticism; you just love to (incorrectly) tell everyone what they're doing wrong and= =20 how they should be doing it, without adding anything constructive to the conversation.

Please limit to the arguments on the topic, not= a person.

The argument "Relying on the global mutable st= ate is a bug" is completely valid and in most of the cases is the sign= al of bad design. And it has been already addressed in some of the function= s, look at https:= //wiki.php.net/rfc/deprecations_php_8_3 for deprecations on rand functi= ons. However, it's not so trivial to fix everything introducing compati= bility-breaking changes. So it shouldn't be advised to add more of such= functions.

Kind regards,
Jorg
--00000000000051fb29061c35591a--