Alexis Lothoré
e11497dacb
package/php-lua: fix build with lua < 5.2
...
php-lua fails to build in buildroot 2025.08-rc3 on the following error:
in file included from [...]/usr/include/php/Zend/zend.h:32,
from [...]/usr/include/php/main/php.h:31,
from [...]/build/php-lua-2.0.7/lua.c:24:
[...]/build/php-lua-2.0.7/lua.c: In function ‘php_lua_write_property’:
[...]/build/php-lua-2.0.7/lua.c:247:37:
error: ‘val’ undeclared (first use in this function); did you mean
‘zval’?
247 | lua_pushlstring(L, ZSTR_VAL(val), ZSTR_LEN(val));
| ^~~
[...]/usr/include/php/Zend/zend_string.h:66:26:
note: in definition of macro ‘ZSTR_VAL’
66 | #define ZSTR_VAL(zstr) (zstr)->val
| ^~~~
[...]/build/php-lua-2.0.7/lua.c:247:37:
note: each undeclared identifier is reported only once for each function
it appears in
247 | lua_pushlstring(L, ZSTR_VAL(val), ZSTR_LEN(val));
| ^~~
[...]/usr/include/php/Zend/zend_string.h:66:26:
note: in definition of macro ‘ZSTR_VAL’
66 | #define ZSTR_VAL(zstr) (zstr)->val
| ^~~~
make[2]: *** [Makefile:214: lua.lo] Error 1
The issue triggers only if lua interpreter version is lower than 5.2. In
this case, php_lua_write_property calls ZSTR_VAL on the wrong variable.
Fix php-lua build by calling ZSTR_VAL on the correct variable.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/11271124501 (TestPhpLuaLuajit)
Suggested-by: Romain Naour <romain.naour@smile.fr >
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com >
[Romain: add link to failing TestPhpLuaLuajit]
Signed-off-by: Romain Naour <romain.naour@smile.fr >
(cherry picked from commit a1daf153bf )
Signed-off-by: Thomas Perale <thomas.perale@mind.be >
2025-09-18 10:22:13 +02:00
..
2025-09-03 18:12:41 +02:00
2025-09-04 18:08:12 +02:00
2025-08-06 14:57:07 +02:00
2025-09-03 18:20:37 +02:00
2025-07-30 01:29:59 +02:00
2025-07-19 15:46:10 +02:00
2025-09-03 18:24:59 +02:00
2025-08-29 10:51:27 +02:00
2025-08-16 23:05:24 +02:00
2025-09-04 18:10:48 +02:00
2025-08-16 22:39:20 +02:00
2025-07-29 00:11:01 +02:00
2025-08-24 15:50:59 +02:00
2025-07-19 16:30:23 +02:00
2025-08-31 16:59:11 +02:00
2025-08-09 17:47:28 +02:00
2025-08-29 12:15:18 +02:00
2025-07-25 23:43:04 +02:00
2025-08-10 18:40:43 +02:00
2025-08-24 17:10:27 +02:00
2025-08-09 23:54:57 +02:00
2025-07-23 23:14:34 +02:00
2025-08-10 19:00:54 +02:00
2025-08-24 16:14:50 +02:00
2025-08-22 22:07:39 +02:00
2025-09-03 18:20:28 +02:00
2025-08-19 17:19:14 +02:00
2025-08-19 16:47:19 +02:00
2025-08-03 17:40:00 +02:00
2025-09-05 18:36:19 +02:00
2025-08-29 17:38:56 +02:00
2025-09-03 19:05:11 +02:00
2025-08-10 18:43:24 +02:00
2025-07-24 21:27:46 +02:00
2025-08-06 14:58:11 +02:00
2025-08-13 16:15:04 +02:00
2025-08-16 21:39:15 +02:00
2025-09-06 22:37:18 +02:00
2025-08-23 23:27:59 +02:00
2025-08-10 19:33:05 +02:00
2025-08-07 23:42:23 +02:00
2025-08-04 22:11:23 +02:00
2025-08-08 00:03:52 +02:00
2025-08-29 20:45:53 +02:00
2025-08-23 18:50:11 +02:00
2025-08-09 18:38:08 +02:00
2025-09-04 18:08:12 +02:00
2025-07-20 15:17:56 +02:00
2025-07-29 01:13:37 +02:00
2025-08-06 21:59:19 +02:00
2025-08-12 17:54:34 +02:00
2025-09-03 18:15:38 +02:00
2025-07-30 01:24:18 +02:00
2025-09-03 18:18:30 +02:00
2025-07-25 19:09:33 +02:00
2025-08-04 21:39:34 +02:00
2025-08-04 21:40:01 +02:00
2025-09-06 18:57:17 +02:00
2025-08-12 16:44:52 +02:00
2025-08-31 21:17:34 +02:00
2025-08-10 16:25:20 +02:00
2025-08-10 17:17:05 +02:00
2025-09-03 18:17:49 +02:00
2025-08-21 08:44:05 +02:00
2025-07-25 19:06:00 +02:00
2025-07-24 00:24:30 +02:00
2025-07-26 16:38:39 +02:00
2025-08-10 20:19:42 +02:00
2025-08-29 19:49:54 +02:00
2025-08-03 17:29:18 +02:00
2025-08-16 22:55:10 +02:00
2025-07-26 13:32:25 +02:00
2025-08-04 22:08:40 +02:00
2025-08-29 20:41:14 +02:00
2025-08-28 22:13:10 +02:00
2025-07-23 23:29:19 +02:00
2025-08-07 16:02:54 +02:00
2025-08-29 20:31:21 +02:00
2025-08-08 00:26:50 +02:00
2025-08-04 22:02:10 +02:00
2025-08-21 23:20:44 +02:00
2025-08-29 21:35:12 +02:00
2025-08-23 18:34:35 +02:00
2025-07-26 13:07:05 +02:00
2025-08-04 22:10:37 +02:00
2025-07-23 23:50:28 +02:00
2025-07-23 23:50:32 +02:00
2025-07-29 01:17:55 +02:00
2025-08-09 17:02:48 +02:00
2025-08-29 17:38:15 +02:00
2025-08-03 17:01:06 +02:00
2025-08-06 14:54:36 +02:00
2025-08-16 21:57:26 +02:00
2025-08-25 22:05:07 +02:00
2025-07-26 13:54:36 +02:00
2025-08-03 16:46:31 +02:00
2025-07-29 00:24:19 +02:00
2025-08-10 00:10:14 +02:00
2025-08-29 19:20:37 +02:00
2025-09-17 16:26:12 +02:00
2025-08-29 10:17:30 +02:00
2025-08-09 19:15:25 +02:00
2025-08-07 23:42:23 +02:00
2025-08-22 12:32:50 +02:00
2025-07-30 02:55:25 +02:00
2025-09-06 19:57:24 +02:00
2025-08-11 12:01:21 +02:00
2025-09-04 18:08:12 +02:00
2025-08-11 12:03:04 +02:00
2025-09-04 18:01:36 +02:00
2025-07-19 14:51:12 +02:00
2025-09-04 21:52:39 +02:00
2025-07-22 19:21:03 +02:00
2025-08-23 22:03:56 +02:00
2025-08-23 22:03:56 +02:00
2025-08-04 22:01:54 +02:00
2025-09-07 16:57:30 +02:00
2025-09-04 18:08:12 +02:00
2025-08-12 17:18:15 +02:00
2025-09-01 13:16:05 +02:00
2025-08-09 16:08:51 +02:00
2025-08-04 21:39:24 +02:00
2025-08-10 18:52:41 +02:00
2025-07-22 19:10:40 +02:00
2025-09-03 18:12:41 +02:00
2025-07-19 16:19:10 +02:00
2025-07-19 16:45:51 +02:00
2025-08-10 17:21:37 +02:00
2025-08-09 23:39:49 +02:00
2025-07-20 11:54:09 +02:00
2025-07-24 21:27:50 +02:00
2025-08-13 18:32:45 +02:00
2025-09-04 18:08:12 +02:00
2025-07-30 14:48:58 +02:00
2025-07-30 14:48:58 +02:00
2025-07-30 14:48:58 +02:00
2025-08-16 22:54:59 +02:00
2025-07-24 21:27:57 +02:00
2025-08-20 16:44:38 +02:00
2025-07-24 21:28:01 +02:00
2025-08-16 22:55:08 +02:00
2025-07-29 00:54:41 +02:00
2025-08-23 18:40:46 +02:00
2025-07-25 18:39:03 +02:00
2025-08-03 17:06:10 +02:00
2025-09-18 10:22:13 +02:00
2025-08-09 22:16:05 +02:00
2025-08-04 19:05:13 +02:00
2025-09-05 21:22:51 +02:00
2025-08-16 22:49:13 +02:00
2025-08-22 22:14:10 +02:00
2025-08-09 23:54:53 +02:00
2025-09-07 17:47:23 +02:00
2025-08-25 21:54:57 +02:00
2025-07-20 22:53:33 +02:00
2025-07-20 22:53:37 +02:00
2025-07-20 22:53:41 +02:00
2025-07-20 22:53:45 +02:00
2025-07-20 22:53:48 +02:00
2025-07-20 22:53:52 +02:00
2025-07-20 15:08:14 +02:00
2025-07-20 13:31:35 +02:00
2025-09-03 18:16:57 +02:00
2025-08-31 16:58:31 +02:00
2025-07-19 21:15:07 +02:00
2025-07-24 21:27:53 +02:00
2025-08-15 00:22:19 +02:00
2025-08-04 21:33:28 +02:00
2025-07-21 00:20:24 +02:00
2025-08-26 23:55:36 +02:00
2025-07-22 19:12:41 +02:00
2025-08-28 22:15:31 +02:00
2025-08-08 00:34:32 +02:00
2025-07-29 00:52:09 +02:00
2025-08-03 16:29:49 +02:00
2025-08-16 22:11:23 +02:00
2025-08-09 17:47:28 +02:00
2025-08-24 13:01:48 +02:00
2025-08-16 22:55:04 +02:00
2025-08-14 00:09:11 +02:00
2025-09-04 17:45:10 +02:00
2025-08-10 19:16:24 +02:00
2025-07-21 22:28:23 +02:00
2025-07-21 22:28:23 +02:00
2025-08-11 11:18:58 +02:00
2025-08-11 11:18:58 +02:00
2025-08-16 21:55:54 +02:00
2025-08-29 19:53:17 +02:00
2025-07-30 01:39:45 +02:00
2025-07-25 19:42:51 +02:00
2025-07-25 22:18:58 +02:00
2025-08-23 20:19:37 +02:00
2025-08-18 22:58:27 +02:00
2025-08-09 23:06:32 +02:00
2025-07-20 16:37:24 +02:00
2025-09-04 18:08:12 +02:00
2025-09-03 18:14:45 +02:00
2025-08-31 16:58:49 +02:00
2025-08-04 21:37:59 +02:00
2025-09-05 13:18:07 +02:00
2025-08-16 22:37:54 +02:00
2025-07-30 03:07:41 +02:00
2025-08-11 11:18:58 +02:00
2025-09-04 18:08:12 +02:00
2025-09-04 18:08:12 +02:00
2025-08-29 14:58:07 +02:00
2025-08-08 16:36:20 +02:00
2025-09-04 17:58:05 +02:00
2025-08-09 22:51:29 +02:00
2025-08-16 22:08:00 +02:00
2025-08-12 17:07:47 +02:00
2025-09-01 09:58:31 +02:00
2025-07-25 19:33:09 +02:00
2025-08-29 19:24:03 +02:00
2025-09-01 23:29:22 +02:00
2025-08-11 11:25:35 +02:00
2025-08-29 17:48:28 +02:00
2025-08-07 03:02:51 +02:00
2025-08-29 19:35:34 +02:00
2025-08-25 20:47:59 +02:00
2025-08-20 18:41:36 +02:00
2025-07-20 12:43:46 +02:00
2025-08-24 14:10:57 +02:00
2025-08-29 17:34:42 +02:00
2025-08-24 16:08:23 +02:00
2025-07-21 22:54:21 +02:00
2025-09-03 18:19:28 +02:00
2025-09-03 18:13:27 +02:00
2025-08-24 00:09:33 +02:00
2025-08-29 10:32:41 +02:00
2025-08-06 15:18:54 +02:00
2025-08-09 23:54:53 +02:00
2025-07-22 19:04:45 +02:00
2025-08-24 19:24:06 +02:00
2025-07-24 21:28:05 +02:00
2025-09-03 19:47:24 +02:00
2025-08-29 19:49:53 +02:00
2025-08-29 17:15:21 +02:00