Re: [PHP-DEV] Migrating php extension from 5 to 7, ZVAL_STRINGL no value returned

2018-03-13 Thread Richard Klingler
Hello Sara Seems my post to news.php.net went somehow through though my NNTP client complained about errors...anyway (o; "mycount" is defined in here: FUN_ACCESSOR(mycount) Which is the updated by the read function. The function macro itself is defined as: ZEND_FE(readmydevice,

Re: [PHP-DEV] Migrating php extension from 5 to 7, ZVAL_STRINGL no value returned

2018-03-13 Thread Sara Golemon
On Tue, Mar 13, 2018 at 3:52 AM, Richard Klingler wrote: > Hello Sara > The function macro itself is defined as: > > ZEND_FE(readmydevice, NULL) > > So would the arg_info go in here? There isn't any arg_info in the original > code. > Yep. You'll want something like this: ZEND

[PHP-DEV] [PATCH] new function for real local date

2018-03-13 Thread ruud.bakker
As there is no function for getting a real local date for day names and month names, I wrote a function for that. Maybe an option for a new PHP version? with kind regards, Ruud Bakker -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] new function for real local date

2018-03-13 Thread Andreas Heigl
Hey Ruud. Am 13.03.18 um 20:18 schrieb ruud.bak...@caiway.nl: > As there is no function for getting a real local date for day names and month > names, I wrote a function for that. Maybe an option for a new PHP version? > > > function localdate(string $format, int $timestamp, string $locale) {