Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104795 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84097 invoked from network); 19 Mar 2019 13:39:10 -0000 Received: from unknown (HELO mail-oi1-f171.google.com) (209.85.167.171) by pb1.pair.com with SMTP; 19 Mar 2019 13:39:10 -0000 Received: by mail-oi1-f171.google.com with SMTP id y84so3163826oia.12 for ; Tue, 19 Mar 2019 03:30:47 -0700 (PDT) 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:content-transfer-encoding; bh=hAn/WHRZJQqhGYSiKN2tK4wGglVAfCbBq8V0UOr3Bo4=; b=q46BhU/TtSiFxmxtKxg+GzIONLpeyesM5JTDz45QpRF/JGXduNRzzKAIIvtM5JnoZS mwr8xDpc7KhAnjOWfWUEgitF5IpRTsK++k9qJEELYenKd3TS7Nev43/zlRMF4TuTzov/ 42TZ7aMP3nDb3b5jROm4f6MdWi26YL+GK4DPqOA4NvfENLnMQ3JmOPntrtNYB8oK9Jqz 76gCHyoW2rMY/UNQr+RSgX0DDjE6Vvo9AE962f4KIXrPiBtIrmzqywERGorXUXV5Ubmp XUaUTwOqL/+S70njFFR/wt3KToZm7qyPMkegAnZDK2r0Kbs8KX4TC1kPkhRcZJmqmtzs ECvg== 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:content-transfer-encoding; bh=hAn/WHRZJQqhGYSiKN2tK4wGglVAfCbBq8V0UOr3Bo4=; b=WajiX7suV9LAWqTtp6R7GhpB0DpG0DF1QhkMrnNYpNQ4RbAn6z9WM3AZQoMgkSDp1i yUyBlhV29xa9CD7R0JazZEeWox8wTReO071QzJcxOmo2BQX9Ri5iv8MhZoNDduZK7LYc GTNxe3t/Uroznfx31SWR8KYdWg2Op3vsLSdJbFxL2kMEstIWxDgOFT7JjV1S2/J3MlwA lkxd8huHbeMIAmknlzrx11+k4WKqeKy18iBFNCtR/2ppL7ZyhKcDWt+z+bjshh1zpBoA 90MWNCMjAO9HUL7EO92/OH+5ofsuIb4P4JtpkMeKC+OYDDiS3QD1LoevwdGqbdpqGw00 Z+eQ== X-Gm-Message-State: APjAAAX5DP+T2UsKorSzbkSZVfJ9TsGXLDJ1uUXcs6VPrMPZdbDAsf/f 3DCMC7gOo1aXAJKXRUmBwue8NUi6CozOGke3bEU= X-Google-Smtp-Source: APXvYqzs8JLmvTuya3oPZuz0HxrQz5PVrjGux3vN6vmZ3uv4N31+nlXV4ktX+yapUzVRgaBb91fVhyJQUdOg+HHInhM= X-Received: by 2002:aca:3983:: with SMTP id g125mr886419oia.24.1552991447357; Tue, 19 Mar 2019 03:30:47 -0700 (PDT) MIME-Version: 1.0 References: <4CEE9D11-AAFE-4FC5-9A71-3B1BA823E212@benramsey.com> In-Reply-To: <4CEE9D11-AAFE-4FC5-9A71-3B1BA823E212@benramsey.com> Date: Tue, 19 Mar 2019 10:30:34 +0000 Message-ID: To: Ben Ramsey Cc: Rasmus Schultz , PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] unload/reload classes? From: robehickman@gmail.com (Robert Hickman) On Tue, 19 Mar 2019 at 00:55, Ben Ramsey wrote: > > > On Mar 18, 2019, at 18:45, Robert Hickman wrote: > > > 1: I have seen an extension which allows functions/classes to be > redefined, although I can't remember what it is called. > > > > Maybe you=E2=80=99re thinking of the runkit extension? https://secure.php= .net/manual/en/book.runkit.php > > Cheers, > Ben Yes that's what I was thinking of. Looking at it there is 'runkit_function_redefine' but no 'runkit_class_redefine', only facility to redefine individual methods of an existing class. Thus not matching Rasmus Schultz request. The sandboxing facility of runkit may make dynamic reload possible, if a new sandbox were created when reload was desired. That's just me reading the API docs though, I haven't tried it.