Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126065 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 9B8FB1A00BD for ; Tue, 26 Nov 2024 20:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1732651959; bh=8ECs1veGBZo5f9q4I9FasybLw5qP+aLCCNo6MWo5OXo=; h=From:Date:Subject:To:From; b=G4ESsa9T3BOjnUW/QfJZ3mIdRv9BbuE9j/EH5a2u52SnUW8Ze225hKC6VmtunK23x hRwCqaGyVMFJPOZxRGK3hF3zsLfRx4vq8M77yYHNLyzOaePLC+CXNvDq5ED1sN74WH 1E6zyPBoSSKIqQd9OfukNQ4SkpHXHZEYwGNCDAK+ujVG+RS8gvtxdB5eacsTBsKrRL kuVyBNS4TPS2IOXBE1ptIzCgOtknsDJpLbKIbK1WfSRRna1xRV2YEiRQh+hwS2gExM C8eO/hEYVd5xkHYz7SOJqv5uVIc72+ixevzcS+XDODjo7L7rgte+sSKHasOAaXCKYV 5iKz7GHAWv1yA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 60375180078 for ; Tue, 26 Nov 2024 20:12:39 +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_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) (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 ; Tue, 26 Nov 2024 20:12:39 +0000 (UTC) Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-2969dc28d9eso3716504fac.0 for ; Tue, 26 Nov 2024 12:15:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732652148; x=1733256948; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=8ECs1veGBZo5f9q4I9FasybLw5qP+aLCCNo6MWo5OXo=; b=bnPjWWAfTMK1dWDBUhC8evsJMRGSeiOytoh4zgqMfYp4DHSrINROnJ4EpTPf9qD2Pn AUECjILMiizhTdnW6SSIIJMe3ZIKvSNs11J6FvDR5ZW1OE4E9YZOSn/sM2TlPjJSWO6+ jCCK1Pe6VQ1bRfevfBNyHtn/lA8O7k+d+sw980fIhffpflAQgv1RNdxrjYBEGHBF/zi1 O2uAqWqTRgGSW1VDw9K+rJRC1mjK9wixGuIfwYxSSOAYMIRmhIUJD6Vf9TCjZ2TzkuGK RUSa72uec3QhlKhGjtSqLXx9Lo9eD2TQW/4J7OzKkPJvCUMNfzgH7crtzhUStltjz3lh RWpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732652148; x=1733256948; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8ECs1veGBZo5f9q4I9FasybLw5qP+aLCCNo6MWo5OXo=; b=b1Nh01fcThCJJaLIN296z1Y6NWTz/YKZ1SUyAhKB9SJNvqqI0d7MqGVloMTtUhZkIw fKMcnVUHu+Jry8R6AE1WDxbyMDMgUh+OtGe/PoGIRUnt5GpI5I3wUYOgdPf2Wucfy9A0 2cxdHUN+yuWfViPM5gynLJXsMWiYWeWDDJ4GZd4BE2rVaGkurp2WebSCLGAPi0oyn1jL 2m2BEUetuw/1ZBwFsIU1YTZ9yw3zV4wxcK1vs38vLGCMeZyMfvULF6jS1qy7YXbwtxBJ gjdoD+8JFsmHtjfbKvPbYkxTTkq87ReM7CDSVgIEmT/1U+4uRxAvCOrDc8SDp/EGFxIT /QjA== X-Gm-Message-State: AOJu0YwdaQhrPZe7xTjxsdj7SVCeM/x1gDt+GLlI+F+Xg3QxVRD7jSNP uTJgQFotKFO7iQEYo/myevRYqjaqG+FWjjm3gciy0qfU3F0Ucu5p91UqKXZYB+pFacVq61z38x4 A/X+zPubNdMaxaegmlsiYK3isFlzEhuhx X-Gm-Gg: ASbGncvoncHDuRc56p4Eitp6v4RISZg6oovGrzPvZTVOb05X+A1anENOotcZjZ33hwi 7l8Dno138jeJux/f9jwQ5DF6/2/l0x+Ebswklvatj+agqDZUm9FAVXDTqTngZeIM= X-Google-Smtp-Source: AGHT+IE0hv7YooKGmfcqWMV5zysY85NgxEBMzhcKMlhMLEKzO2FtSSSViGNSp8R3I6y2/2shl45xZrrBqO6Xn1mTdjU= X-Received: by 2002:a05:6358:678c:b0:1ca:8ec3:ef5e with SMTP id e5c5f4694b2df-1cab15f6305mr147325155d.11.1732652148567; Tue, 26 Nov 2024 12:15:48 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 26 Nov 2024 12:15:12 -0800 Message-ID: Subject: [PHP-DEV] Adding attributes to compile-time constants To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000d5b8df0627d68384" From: daniel.e.scherzer@gmail.com (Daniel Scherzer) --000000000000d5b8df0627d68384 Content-Type: text/plain; charset="UTF-8" Hi internals, For the last few weeks, I've been working on a patch[1] that I just uploaded that adds support for attributes on compile-time non-class constants (those declared with `const` rather than via `define()`). The patch has a memory leak that I have been unable to resolve, but otherwise the functionality is there and seems to work. Is anyone willing to help with the memory issue? Separately, once the memory issue is fixed, would this need to go through an RFC process? Thanks, --Daniel Scherzer [1] https://github.com/php/php-src/pull/16952 --000000000000d5b8df0627d68384 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi internals,

For the last few weeks, I= 've been working on a patch[1] that I just uploaded that adds support f= or attributes on compile-time non-class constants (those declared with `con= st` rather than via `define()`). The patch has a memory leak that I have be= en unable to resolve, but otherwise the functionality is there and seems to= work. Is anyone willing to help with the memory issue?

Separately, once the memory issue is fixed, would this need to go thr= ough an RFC process?

Thanks,
--Daniel Sc= herzer

--000000000000d5b8df0627d68384--