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

Discussion in 'Install/Configuration' started by bobykus, Oct 18, 2016.

  1. bobykus

    bobykus Well-Known Member

    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);
     
  2. bobykus

    bobykus Well-Known Member

    haha, they decided to change some functions while minor release :)
    what a nice surprise....
     
  3. bobykus

    bobykus Well-Known Member

    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...
     

Share This Page