I can't compile PHP 5.2 version.
I get error like this:
/tmp/php-build/php-5.2.17/ext/dom/node.c: In function 'dom_canonicalization':
/tmp/php-build/php-5.2.17/ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type
ret = buf->buffer->use;
^
In file included from /tmp/php-build/php-5.2.17/main/php.h:38:0,
from /tmp/php-build/php-5.2.17/ext/dom/node.c:26:
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
/tmp/php-build/php-5.2.17/Zend/zend_API.h:472:14: note: in definition of macro 'ZVAL_STRINGL'
char *__s=(s); int __l=l; \
^
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:5: note: in expansion of macro 'RETVAL_STRINGL'
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
make: *** [ext/dom/node.lo] Error 1
make: *** Waiting for unfinished jobs....
/bin/sh /tmp/php-build/php-5.2.17/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/dom/ -I/tmp/php-build/php-5.2.17/ext/dom/ -DPHP_ATOM_INC -I/tmp/php-build/php-5.2.17/include -I/tmp/php-build/php-5.2.17/main -I/tmp/php-build/php-5.2.17 -I/tmp/php-build/php-5.2.17/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/tmp/php-build/php-5.2.17/ext/mbstring/oniguruma -I/tmp/php-build/php-5.2.17/ext/mbstring/libmbfl -I/tmp/php-build/php-5.2.17/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/tmp/php-build/php-5.2.17/TSRM -I/tmp/php-build/php-5.2.17/Zend -I/usr/include -g -O2 -c /tmp/php-build/php-5.2.17/ext/dom/node.c -o ext/dom/node.lo
/tmp/php-build/php-5.2.17/ext/dom/node.c: In function 'dom_canonicalization':
/tmp/php-build/php-5.2.17/ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type
ret = buf->buffer->use;
^
In file included from /tmp/php-build/php-5.2.17/main/php.h:38:0,
from /tmp/php-build/php-5.2.17/ext/dom/node.c:26:
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
/tmp/php-build/php-5.2.17/Zend/zend_API.h:472:14: note: in definition of macro 'ZVAL_STRINGL'
char *__s=(s); int __l=l; \
^
/tmp/php-build/php-5.2.17/ext/dom/node.c:1955:5: note: in expansion of macro 'RETVAL_STRINGL'
RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);
^
make: *** [ext/dom/node.lo] Error 1
Redirecting to /bin/systemctl restart httpd.service