Re: [PHP-DEV] Detect if function is disabled from c ext

2020-11-29 Thread Nikita Popov
On Sun, Nov 29, 2020 at 11:20 PM Michael Voříšek - ČVUT FEL < voris...@fel.cvut.cz> wrote: > How can a php function can be checked from extension if that function is > disabled or not? > > In php7.x, I used: > > #ifdef HAVE_CONFIG_H > #include "config.h" > #endif > > #include > #include "php.h" >

[PHP-DEV] Detect if function is disabled from c ext

2020-11-29 Thread Michael Voříšek - ČVUT FEL
How can a php function can be checked from extension if that function is disabled or not? In php7.x, I used: #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include "php.h" bool is_php_function_disabled(const char *func_name) { zend_internal_function *func; if ((func = zend_h

Re: [PHP-DEV] Thank you to JetBrains (PHP 8 Announcement page)

2020-11-29 Thread Sebastian Bergmann
Am 27.11.2020 um 16:40 schrieb Sara Golemon: I've been receiving fantastic feedback on the PHP 8.0 Announcement landing page ( https://www.php.net/releases/8.0 ), and I just wanted to extend a big Thank You to all the folks at JetBrains for making this suggestion and putting forth the work on the