Re: [PHP-DEV] [RFC Idea] main() entry point for PHP

2025-07-06 Thread Rowan Tommins [IMSoP]
On 4 July 2025 15:49:59 BST, fennic log wrote: >This is basically an idea I have for PHP to support a main entry point. >Where regardless of execution, if you run a PHP file, in CLI or Web >request. >If the file that is executed contains a main function, that is >automatically executed by the engi

Re: [PHP-DEV] [RFC Idea] main() entry point for PHP

2025-07-05 Thread fennic log
On Fri, 4 Jul 2025 at 22:03, Iliya Miroslavov Iliev wrote: > > > On Fri, Jul 4, 2025 at 6:09 PM Kamil Tekiela wrote: > >> >> >> On Fri, Jul 4, 2025, 16:50 fennic log wrote: >> >>> This is basically an idea I have for PHP to support a main entry point. >>> Where regardless of execution, if you r

Re: [PHP-DEV] [RFC Idea] main() entry point for PHP

2025-07-04 Thread Iliya Miroslavov Iliev
On Fri, Jul 4, 2025 at 6:09 PM Kamil Tekiela wrote: > > > On Fri, Jul 4, 2025, 16:50 fennic log wrote: > >> This is basically an idea I have for PHP to support a main entry point. >> Where regardless of execution, if you run a PHP file, in CLI or Web >> request. >> If the file that is executed c

Re: [PHP-DEV] [RFC Idea] main() entry point for PHP

2025-07-04 Thread Kamil Tekiela
On Fri, Jul 4, 2025, 16:50 fennic log wrote: > This is basically an idea I have for PHP to support a main entry point. > Where regardless of execution, if you run a PHP file, in CLI or Web > request. > If the file that is executed contains a main function, that is > automatically executed by the

[PHP-DEV] [RFC Idea] main() entry point for PHP

2025-07-04 Thread fennic log
This is basically an idea I have for PHP to support a main entry point. Where regardless of execution, if you run a PHP file, in CLI or Web request. If the file that is executed contains a main function, that is automatically executed by the engine after any procedural code. Any procedural code in