]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
php: fix emalloc/efree/estrdup/... undefined references
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 5 Apr 2018 21:06:22 +0000 (23:06 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 9 Apr 2018 15:49:03 +0000 (17:49 +0200)
commitd44357175bd7c711c54fd6c2df5637a181c1d03b
tree108f9d04aaea03d5dcd574e63434c784826d54ef
parentdd730312e509ab40c3ebcc18a121a2aa637be184
php: fix emalloc/efree/estrdup/... undefined references

zend_alloc.h defines some macros such as:

Where _estrdup is the actual function implemented by the PHP core. If
this header file is not included, and some code uses estrdup, one ends
up with an undefined reference. This happens when libexpat support is
enabled. This commit adds a PHP patch that fixes this issue. The patch
has been submitted upstream through a Github pull request.

Fixes:

  http://autobuild.buildroot.net/results/889d2c1f509c035cd506e36061939bfddc8f1500/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit fc4b66dbc1b71e871129ce14b289fcda6eb3ea10)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/php/0009-ext-xml-expat_compat.h-add-missing-php.h-include.patch [new file with mode: 0644]