You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, PHP-CParser uses a hand-rolled parser for C pre-processor declarations. This turns out to be buggy on 18.04 since they use ternary if statements. Specifically, /usr/include/features.h contains:
#if defined __cplusplus ? __cplusplus >= 201402L : defined __USE_ISOC11# define__GLIBC_USE_DEPRECATED_GETS 0
#else# define__GLIBC_USE_DEPRECATED_GETS 1
#endif
The current parser syntax errors at the >= symbol since it's not expecting arbitrary nested expressions...
The text was updated successfully, but these errors were encountered:
ircmaxell
changed the title
Fix bug in PHP-CParser to support Ubuntu 18.04's GLIBC
Fix bug in PHP-CParser to support Ubuntu 18.04 (and modern libc)
Apr 22, 2019
Currently, PHP-CParser uses a hand-rolled parser for C pre-processor declarations. This turns out to be buggy on 18.04 since they use ternary if statements. Specifically,
/usr/include/features.h
contains:The current parser syntax errors at the
>=
symbol since it's not expecting arbitrary nested expressions...The text was updated successfully, but these errors were encountered: