derickr / vld

BSD 2-Clause "Simplified" License
464 stars 87 forks source link

Does not compile PHP 7.0.13 #27

Closed asgrim closed 7 years ago

asgrim commented 7 years ago
$ phpize
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303

And trying to make:

/home/james/workspace/vld/srm_oparray.c: In function ‘vld_dump_op’:
/home/james/workspace/vld/srm_oparray.c:689:29: error: ‘ZEND_FAST_RET_TO_FINALLY’ undeclared (first use in this function)
    if (op.extended_value == ZEND_FAST_RET_TO_FINALLY) {
                             ^
/home/james/workspace/vld/srm_oparray.c:689:29: note: each undeclared identifier is reported only once for each function it appears in
/home/james/workspace/vld/srm_oparray.c:691:36: error: ‘ZEND_FAST_RET_TO_CATCH’ undeclared (first use in this function)
    } else if (op.extended_value == ZEND_FAST_RET_TO_CATCH) {
                                    ^
/home/james/workspace/vld/srm_oparray.c:696:29: error: ‘ZEND_FAST_CALL_FROM_FINALLY’ undeclared (first use in this function)
    if (op.extended_value == ZEND_FAST_CALL_FROM_FINALLY) {
                             ^
/home/james/workspace/vld/srm_oparray.c:770:62: error: ‘EXT_TYPE_UNUSED’ undeclared (first use in this function)
  if ((flags & RES_USED) && !(op.VLD_EXTENDED_VALUE(result) & EXT_TYPE_UNUSED)) {
                                                              ^
Makefile:197: recipe for target 'srm_oparray.lo' failed
make: *** [srm_oparray.lo] Error 1

PHP version:

$ php -v
PHP 7.0.13-1+deb.sury.org~xenial+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.13-1+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
derickr commented 7 years ago

The error messages that you see are the ones you would have gotten with PHP 7.1. Are you sure it was 7.0.13? I have just tested that version, and it compiled fine. For PHP 7.1, I just pushed some commits.

asgrim commented 7 years ago

Yes, sorry. It seems phpize on my machine configures for 7.1 but php is for 7.0. User error (also, tried it with latest master and it builds now anyway - thanks!)