Re: [PHP-DEV] [RFC] Preloading

2018-10-29 Thread Dmitry Stogov
Yes. --rf/--rc work for preloaded classes/functions. From: Crocodile Sent: Monday, October 29, 2018 1:44:08 PM To: Dmitry Stogov Cc: Michael Wallner; Sara Golemon; PHP internals Subject: Re: [PHP-DEV] [RFC] Preloading Just a side question: will the information

Re: [PHP-DEV] [RFC] Preloading

2018-10-29 Thread Crocodile
Just a side question: will the information on preloaded userland classes and functions be available via php --rc / php --rf commands? On Thu, Oct 25, 2018 at 10:42 AM Dmitry Stogov wrote: > > On 10/25/18 10:47 AM, Michael Wallner wrote: > > On 20/10/2018 15:06, Dmitry Stogov wrote: > >> > >> On

Re: [PHP-DEV] [RFC] Preloading

2018-10-25 Thread Dmitry Stogov
On 10/25/18 10:47 AM, Michael Wallner wrote: > On 20/10/2018 15:06, Dmitry Stogov wrote: >> >> On Oct 19, 2018 5:20 PM, Sara Golemon wrote: >> On Fri, Oct 19, 2018 at 3:17 AM Dmitry Stogov wrote: >>> I would like to start discussion on a Preloadng RFC >>> https://wiki.php.net/rfc/preload >>> >>

Re: [PHP-DEV] [RFC] Preloading

2018-10-25 Thread Michael Wallner
On 20/10/2018 15:06, Dmitry Stogov wrote: > > > On Oct 19, 2018 5:20 PM, Sara Golemon wrote: > On Fri, Oct 19, 2018 at 3:17 AM Dmitry Stogov wrote: >> I would like to start discussion on a Preloadng RFC >> https://wiki.php.net/rfc/preload >> > 4) "In conjunction with ext/FFI (dangerous extens

Re: [PHP-DEV] [RFC] Preloading

2018-10-22 Thread Florian Anderiasch
On Fri, Oct 19, 2018 at 10:17 AM, Dmitry Stogov wrote: > Hi Internals, > > > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > This sounds great, but something about the last paragraph: > And also, this approach will not be compatible with servers that

Re: [PHP-DEV] [RFC] Preloading

2018-10-22 Thread Dmitry Stogov
On Oct 20, 2018 11:48 PM, Benjamin Eberlei wrote: Jakub Zelenka mailto:bu...@php.net>> schrieb am Fr. 19. Okt. 2018 um 19:13: On Fri, Oct 19, 2018 at 9:17 AM Dmitry Stogov mailto:dmi...@zend.com>> wrote: > Hi Internals, > > > I would like to start discussion on a Preloadng RFC > https://wik

Re: [PHP-DEV] [RFC] Preloading

2018-10-22 Thread Dmitry Stogov
On Oct 21, 2018 1:29 AM, Rasmus Lerdorf wrote: On Fri, Oct 19, 2018 at 1:17 AM, Dmitry Stogov mailto:dmi...@zend.com>> wrote: I would like to start discussion on a Preloadng RFC https://wiki.php.net/rfc/preload I have been playing with this a bit this weekend. It is tricky to tell if it is w

Re: [PHP-DEV] [RFC] Preloading

2018-10-21 Thread Dmitry Stogov
On Oct 20, 2018 5:28 AM, Levi Morrison wrote: > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > > This technology would allow loading some PHP files on server startup and make > all the defined classes and functions to be permanently available in the >

Re: [PHP-DEV] [RFC] Preloading

2018-10-21 Thread Dmitry Stogov
On Oct 19, 2018 9:39 PM, Rasmus Lerdorf wrote: On Fri, Oct 19, 2018 at 1:17 AM, Dmitry Stogov mailto:dmi...@zend.com>> wrote: Hi Internals, I would like to start discussion on a Preloadng RFC https://wiki.php.net/rfc/preload This technology would allow loading some PHP files on server startu

Re: [PHP-DEV] [RFC] Preloading

2018-10-21 Thread Dmitry Stogov
On Oct 19, 2018 8:12 PM, Jakub Zelenka wrote: On Fri, Oct 19, 2018 at 9:17 AM Dmitry Stogov mailto:dmi...@zend.com>> wrote: Hi Internals, I would like to start discussion on a Preloadng RFC https://wiki.php.net/rfc/preload Nice! Apology if I missed it in the RFC but can't find in which st

Re: [PHP-DEV] [RFC] Preloading

2018-10-20 Thread Rasmus Lerdorf
On Fri, Oct 19, 2018 at 1:17 AM, Dmitry Stogov wrote: > > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload I have been playing with this a bit this weekend. It is tricky to tell if it is working. I think it would be helpful if the opcache section on the ph

Re: [PHP-DEV] [RFC] Preloading

2018-10-20 Thread Benjamin Eberlei
Jakub Zelenka schrieb am Fr. 19. Okt. 2018 um 19:13: > On Fri, Oct 19, 2018 at 9:17 AM Dmitry Stogov wrote: > > > Hi Internals, > > > > > > I would like to start discussion on a Preloadng RFC > > https://wiki.php.net/rfc/preload > > > > > Nice! > > Apology if I missed it in the RFC but can't fin

Re: [PHP-DEV] [RFC] Preloading

2018-10-20 Thread Dmitry Stogov
On Oct 19, 2018 5:20 PM, Sara Golemon wrote: On Fri, Oct 19, 2018 at 3:17 AM Dmitry Stogov wrote: > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > Overall, big +1. A few questions: 1) "Only classes without unresolved parent, interfaces, traits and con

Re: [PHP-DEV] [RFC] Preloading

2018-10-19 Thread Levi Morrison
> I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > > This technology would allow loading some PHP files on server startup and make > all the defined classes and functions to be permanently available in the > context of future request (without any includes)

Re: [PHP-DEV] [RFC] Preloading

2018-10-19 Thread Rasmus Lerdorf
On Fri, Oct 19, 2018 at 1:17 AM, Dmitry Stogov wrote: > Hi Internals, > > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > > This technology would allow loading some PHP files on server startup and > make all the defined classes and functions to be permanen

Re: [PHP-DEV] [RFC] Preloading

2018-10-19 Thread Jakub Zelenka
On Fri, Oct 19, 2018 at 9:17 AM Dmitry Stogov wrote: > Hi Internals, > > > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > > Nice! Apology if I missed it in the RFC but can't find in which stage the preloading is done (also haven't checked the patch so so

Re: [PHP-DEV] [RFC] Preloading

2018-10-19 Thread Sebastian Bergmann
Am 19.10.2018 um 16:19 schrieb Sara Golemon: Thank you for everything you do. Hear, hear. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Preloading

2018-10-19 Thread Sara Golemon
On Fri, Oct 19, 2018 at 3:17 AM Dmitry Stogov wrote: > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload > Overall, big +1. A few questions: 1) "Only classes without unresolved parent, interfaces, traits and constant values may be preloaded." Is this determin

Re: [PHP-DEV] [RFC] Preloading

2018-10-19 Thread Jordi Boggiano
On Fri, 19 Oct 2018 at 10:18, Dmitry Stogov wrote: > I would like to start discussion on a Preloadng RFC > https://wiki.php.net/rfc/preload This sounds great! If I understand correctly, this could also be included in Composer as a new autoload type "preload" (which would be an array of files to

[PHP-DEV] [RFC] Preloading

2018-10-19 Thread Dmitry Stogov
Hi Internals, I would like to start discussion on a Preloadng RFC https://wiki.php.net/rfc/preload This technology would allow loading some PHP files on server startup and make all the defined classes and functions to be permanently available in the context of future request (without any inc