1 since php-7.3.0 array_init() and array_init_size() are converted into macros
2 calling zend_new_array(). They are not functions anymore and don't return
5 this change was introduced in following commit:
6 https://github.com/php/php-src/commit/44e0b79ac64b344fc1335c126e548f00d8308602
8 --- cups-filters-1.21.4/scripting/php/phpcups.c 2018-11-24 19:42:09.905418408 +0100
9 +++ cups-filters-1.21.4.orig/scripting/php/phpcups.c 2018-11-24 19:40:21.903078482 +0100
14 +#if PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3
15 + array_init(return_value);
17 if (array_init(return_value) == SUCCESS)
20 for (i = 0, dest = dests; i < num_dests; i ++, dest ++)
23 MAKE_STD_ZVAL(optionsobj);
26 +#if PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3
27 + array_init(optionsobj);
29 if (array_init(optionsobj) == SUCCESS)
32 for (j = 0, option = dest->options;
33 j < dest->num_options;
39 +#if PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3
40 + array_init(return_value);
42 if (array_init(return_value) == SUCCESS)
45 for (i = 0, job = jobs; i < num_jobs; i ++, job ++)