php-7.0.12 and php-7.0.x-mail-header patch

bobykus

Well-Known Member
#1
Anybody tried to compile latest php 7 with X-PHP-Script patch from http://choon.net/ ?
For me it fails with


/usr/local/lsws/phpbuild/php-7.0.12/ext/standard/mail.c: In function ‘php_mail’:
/usr/local/lsws/phpbuild/php-7.0.12/ext/standard/mail.c:340: warning: passing argument 1 of ‘zend_is_auto_global’ from incompatible pointer type
/usr/local/lsws/phpbuild/php-7.0.12/Zend/zend_compile.h:776: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/usr/local/lsws/phpbuild/php-7.0.12/ext/standard/mail.c:340: error: too many arguments to function ‘zend_is_auto_global’
/usr/local/lsws/phpbuild/php-7.0.12/ext/standard/mail.c:342: error: used struct type value where scalar is required
/usr/local/lsws/phpbuild/php-7.0.12/ext/standard/mail.c:345: error: invalid type argument of ‘->’ (have ‘zval’)


Looks like zend_is_auto_global is not the same as in older php 7. So the tool can not get global variable _SERVER to form an entry.

/* hint php that we are going to use global variable _SERVER */
zend_is_auto_global("_SERVER", sizeof("_SERVER") - 1 TSRMLS_CC);
 

bobykus

Well-Known Member
#3
I've sent a patch to Giam Teck Choon aka CHOON.NET Support <support@choon.net> for review, so may be soon it will be available in public...
 
Top