Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123111 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 713E11A009C for ; Thu, 11 Apr 2024 14:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712844729; bh=GPy85Sl40l8+Nk16Aq9T62b/Z0X1zv0RjOAc0WWGcNA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CsD1fS6iJMwam1Gs5SuPuIYecN4wmKgK6iDA5EfMDnLQFRczJ9HN7Cn/89IV7wEQj QmFARlQ2kIMJSxQFt1jqttMgIEyLVhKZ1vE99tllxPHmAi1tPmLgkxFOzLYFJr0COo MOnI0+zB79nRqy23+xq2jqmO9JRjsg9WkmxK5EuhS7UeLr51OOL67T6zdDHGYA+pkT ofgftlda1QLnpkYaczrhvK/Rbu6rKbm//RF62BZTOZxGzzUzwhi8VtLY+ixq9+4/73 H24U3Td8p9wZZCSKObMJarJwCcw6nqgnWYx4MKWXXDi5cVI4EwSDftOABDkBEdDuek WVOQQTS0Hmu+A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9E2F118007A for ; Thu, 11 Apr 2024 14:12:08 +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.2 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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: No X-Envelope-From: Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) (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 ; Thu, 11 Apr 2024 14:12:07 +0000 (UTC) Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-69625f89aa2so59725226d6.3 for ; Thu, 11 Apr 2024 07:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunglas.fr; s=google; t=1712844693; x=1713449493; 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=GPy85Sl40l8+Nk16Aq9T62b/Z0X1zv0RjOAc0WWGcNA=; b=MK39RPMxc5V3FaEzT3xatKc4yAZZ4XEtN2ly4eN+BYezUhMJ1pQYv/4o0g1l9ADSVp a2nUJnMFttfO3ZQGyikzN6ybRePW5IkaSi02ELtne6M4ArcuJ4KGmWGz4EQckZ1TWTwI 9IaBhiFsNM1wEmdMBiGG6efryaYf+djjQ2mO8oeNfAwClvlDrnmPGIFXB12abcj65rOV UTbUkJdRS9BclOkcV8tq8LAjQgzlUjC2n08AuFRCrgJPal+kdTT9YAWQiDKqnpL7Lh48 GHHBJNZIR95vE/EwAilDJBW3qBJkyDPu6dF4cYy8Z2OCNdizHFopd6mQ1sAYweMbAGpe DjSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712844693; x=1713449493; 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=GPy85Sl40l8+Nk16Aq9T62b/Z0X1zv0RjOAc0WWGcNA=; b=ffyFpIb4N5cchgLGyiDde5Bs3yveM5YBHpHGLbsC1UhKBZ9/Cyr9cIJWllwuwksIKr DFPldbbj0zvP7tG+2dWVy2DEuxIG9LrKqAVEGJDORPPt1UkRwvkPIQWFg1Z37Ggc67yM q6FgLBX8wVdrAkGcAc0ixffbojAJA0CRM+GMxbpo555ZKZB1oK0Jhe8rFPReyn1lhDu2 h9Irn33sBnfVmeWuaol32DJCK1E6tpsB+1/faGomrDTJKJey6mvn6mDP8Fxv5lAbIOBW +I0p95iuAb28S8ENrSXOiOsovgnXe5wjMFBgnZWDSqDM+NBRPmjK+amuh3+JObIoN2Oi nqoQ== X-Gm-Message-State: AOJu0Yy5b1Lyn2heaMImcCJQHsYsHfL85AaFg447+kX2Eaw246XCUzYy 3fjW20hrpLllZqxMBHWYldDQ5BOr2wJu0bsAlityayjQHsFG+DRKDbwhs61pYMmBQ0WeMrNNj/4 /JK/Aa0tAHTp1rkcgptNSCTCPHKrG7KTom9FOKQ== X-Google-Smtp-Source: AGHT+IERG+VhfjqOpcYNW1INxFD0Hx2LWVTGGTpFD/5+UC4iFDCwjyWqi2AK2eh6YEX3phGtyjhqiy9PSVeCejjS5Sc= X-Received: by 2002:a05:6214:766:b0:69b:20c8:7b5b with SMTP id f6-20020a056214076600b0069b20c87b5bmr6690463qvz.17.1712844692095; Thu, 11 Apr 2024 07:11:32 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 11 Apr 2024 16:11:21 +0200 Message-ID: Subject: [PHP-DEV] Re: [proposal] max_execution_time to a negative number To: Robert Landers Cc: internals Content-Type: multipart/alternative; boundary="0000000000006d9ebb0615d2bb1d" From: kevin@dunglas.fr (=?UTF-8?Q?K=C3=A9vin_Dunglas?=) --0000000000006d9ebb0615d2bb1d Content-Type: text/plain; charset="UTF-8" According to "man 2 setitimer", the same error should happen on Linux even without zend_max_execution_timer: https://github.com/php/php-src/blob/2079da0158bc91fff4edd85ac66c89b40c4faf3a/Zend/zend_execute_API.c#L1566 A C error will also occur if the value is superior to 999,999,999. We should at least prevent the C error in such cases. I proposed a patch normalizing these values to 0: https://github.com/php/php-src/pull/13942 It's still better than the current situation, and can still be considered as "undefined" until the RFC is voted. --0000000000006d9ebb0615d2bb1d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
According to "man 2 setitimer&q= uot;, the same error should happen on Linux even without zend_max_execution= _timer: https://github.com/php/= php-src/blob/2079da0158bc91fff4edd85ac66c89b40c4faf3a/Zend/zend_execute_API= .c#L1566

A C error will also occur if the valu= e is superior to 999,999,999.

We should at least p= revent the C error in such cases. I proposed a patch normalizing these valu= es to 0: https://gith= ub.com/php/php-src/pull/13942
It's still better than the = current situation, and can still be considered as "undefined" unt= il the RFC is voted.
--0000000000006d9ebb0615d2bb1d--