Code Monkey home page Code Monkey logo

go-php's People

Contributors

deuill avatar elwinar avatar thekid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-php's Issues

library not found for -lphp7

I use Mac OS. I got php7 installed.

 /usr/bin/php -v                
PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

but when i execute "go get github.com/deuill/go-php" i getting this error:

# github.com/deuill/go-php
ld: library not found for -lphp7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
# github.com/deuill/go-php
engine.c:43:10: warning: enumeration values 'SAPI_HEADER_DELETE_ALL' and 'SAPI_HEADER_SET_STATUS' not handled in switch [-Wswitch]
engine.c:43:10: note: add missing switch cases
engine.c:97:2: warning: incompatible pointer types initializing 'void (*)(char *, int)' with an expression of type 'void (char *)' [-Wincompatible-pointer-types]
# github.com/deuill/go-php
receiver.c:79:1: warning: control reaches end of non-void function [-Wreturn-type]
# github.com/deuill/go-php
value.c:121:47: warning: incompatible pointer types passing 'unsigned long *' to parameter of type 'zend_ulong *' (aka 'unsigned long long *') [-Wincompatible-pointer-types]
../github.com/deuill/go-php/include/php7/_value.h:14:87: note: passing argument to parameter 'num_index' here

PHP 8.1.3

Hi, I'm trying to make it work in PHP8.1.3, but I find myself with a problem I can't really fix because I don't really understand Go.
You can read the error here: https://gitlab.com/sailenicolas/gophp/-/jobs/2191492914

Apparently the problematic function is: receiver_define.
Basically this line:
https://gitlab.com/sailenicolas/gophp/-/blob/php8/src/receiver.c#L236

The call to zend_register_internal_class causes a panic. If you don't mind, is there any way to make it work? I'm asking if you can point me in the right direction.
The function calls are as follows:
TestEngineDefine -> e.Define -> C.receiver_define -> zend_register_internal_class() and there it throws PANIC.
I already checked other SAPI modules, php-src and PHP7 internals, I can't find the problem from the PHP8 side, so I think the problem is in the Go tests (I am only assuming).

The code is mostly the same...

Sorry for my english.

Read globals (`$_GET`, `$_POST`, `$_FILES`, `$_REQUEST`, etc) from `http.Request` types

There is currently no easy way of populating request-specific globals in PHP contexts (apart from binding variables and setting globals in PHP). For go-php to be useful in replicating or replacing the standard apache/nginx/php-fpm stack, we need to be able to handle requests transparently.

One possible implementation is having Context conform to the http.Handler interface, therefore allowing for transparent handling of incoming requests.

PHP 7.0 has Released, we need Support PHP 7.0

Hello
PHP 7.0 has released . All us know that PHP 7.0 is much more modern than other version . So I think that we need sopport php 7.0 . I've tried to do this , bus php 7.0 have many changes in data pointor.

We need not to support other php versions so on .
And it's difficult to compile php libs so we need to download the php libs in github .And we need to upload the php head files in the project so that we'll never download the php source file .

thanks .

warning

engine.c:43:10: warning: enumeration values 'SAPI_HEADER_DELETE_ALL' and 'SAPI_HEADER_SET_STATUS' not handled in switch [-Wswitch]
engine.c:43:10: note: add missing switch cases
# github.com/deuill/go-php
receiver.c:79:1: warning: control reaches end of non-void function [-Wreturn-type]
# github.com/deuill/go-php
value.c:121:47: warning: incompatible pointer types passing 'unsigned long *' to parameter of type 'zend_ulong *' (aka 'unsigned long long *') [-Wincompatible-pointer-types]
src/github.com/deuill/go-php/include/php7/_value.h:14:87: note: passing argument to parameter 'num_index' here
/private/var/folders/w6/qc4d3cs57tb1zmnq81d91b_40000gn/T/___go_build_embed_go_darwin #gosetup
Hello World[Mon Oct  8 14:54:30 2018]  Script:  '-'
Zend/zend_string.h(122) :  Freeing 0x0000000009a01820 (40 bytes), script=-
Last leak repeated 1 time
=== Total 2 memory leaks detected ===

PHP 7 does support ZTS

I note the README says that PHP 7 has removed ZTS. That's not actually true, it's just that you don't need the TSRMLS macros sprinkled all over the place (and in fact on PHP 7 they just expand to nothing). I think you should be able to support ZTS mode in 7? Have you come across anything that didn't work?

"not a dynamic executable"

Hello
Do you plan to add the possibility of building a portable application?
--ldflags '-extldflags "-static"'

Install problem

Hello, I'm having an issue installing even when i followed all in #26
I already used go build -tags php7.debian
and still got the error:

/home/qdev/Documents/Code/pkg/linux_amd64/github.com/go-php ./context.go:11:23: fatal error: main/php.h: No such file or directory // #include <main/php.h>

im using PHP 7.0.22-0ubuntu0.16.04.1

Anyone have an idea of what it can be?

error: unknown type name 'zend_string'

$ go get github.com/deuill/go-php
# github.com/deuill/go-php
In file included from ../../../deuill/go-php/engine.go:14:
In file included from include/receiver.h:15:
include/php7/_receiver.h:12:34: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static int _receiver_method_call(zend_string *method, zend_object *object, INTERNAL_FUNCTION_PARAMETERS);
                                 ^~~~~~~~~~~
                                 zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
  ^
In file included from ../../../deuill/go-php/engine.go:14:
In file included from include/receiver.h:15:
include/php7/_receiver.h:13:66: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static zend_function *_receiver_method_get(zend_object **object, zend_string *name, const zval *key);
                                                                 ^~~~~~~~~~~
                                                                 zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
  ^
2 errors generated.
$ which php
/usr/local/bin/php

$ which phpize
/usr/bin/phpize

$ which php-config
/usr/local/bin/php-config

$ uname -a
Darwin bogon 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar  3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64

unknown type name 'uint32_t'

When I try to go-get go-php, I'm receiving the following error:

workspace/src/github.com/deuill/go-php/engine/context.c: In function ‘context_eval’:
workspace/src/github.com/deuill/go-php/engine/context.c:71:2: error: unknown type name ‘uint32_t’
  uint32_t compiler_options = CG(compiler_options);
  ^

My gcc version is 4.8.5.
I'm not familiar with C, so I'd be glad if you could help me to solve my issue.

Compilation Error

I am having this issue when trying to compile my project:

# github.com/deuill/go-php
src/github.com/deuill/go-php/context.go:11:23: fatal error: main/php.h: No such file or directory
 // #include <main/php.h>
                       ^
compilation terminated.

Could this be because I set up the project incorrectly or another reason

How do I configure the build environment with php library ?

Hi, I am a beginner in Golang.
Your package is essential to me.

I don't know whether it's right, but I downloaded php library source from below site.

Once build it, i met continue to encounter errors that header files can't find.

  • go get github.com/deuill/go-php
----- error
E:\WorkSpace\Dev\src\github.com\deuill\go-php>go get github.com/deuill/go-php
# github.com/deuill/go-php/engine
engine\context.go:11:23: fatal error: main/php.h: No such file or directory
 // #include <main/php.h>
                       ^
compilation terminated.

What is wrong with it? What should I do to correct this error?

thanks,

build error : go get -tags php5 github.com/deuill/go-php

Hi, I encountered below error at build.

I added php library path '/usr/include/php' in '/etc/ld.so.conf' file.
and then, i did execute this command line.

> go get -tags php5 github.com/deuill/go-php

What's wrong ?

[html@q352-0821 ~/goworkspace/src/github.com]$ go get -tags php5 github.com/deuill/go-php
# github.com/deuill/go-php/engine
In file included from include/receiver.h:15,
                 from deuill/go-php/engine/engine.go:14:
include/php5/_receiver.h:8: error: expected ';', ',' or ')' before '*' token
include/php5/_receiver.h:9: error: expected ';', ',' or ')' before '*' token
include/php5/_receiver.h:10: error: expected ';', ',' or ')' before '*' token
include/php5/_receiver.h:13: error: expected ';', ',' or ')' before '*' token

Confused about PHP7/ZTS

Hello, wondering what the is issue with ZTS in PHP7? For most part handing tsrm resources is easier in php7 (mostly unnecessary in fact).

Better tests

Currently, all tests reside in a single file, and test coverage is pretty awful...

Moving to per-go-file tests might prove a tad hard, since packages depending on the engine package are impossible to test in a standalone manner.

Needs to be thought out.

Installation Error

# go get -tags php5 github.com/deuill/go-php
# github.com/deuill/go-php/engine
work/src/github.com/deuill/go-php/engine/context.go:11:23: fatal error: main/php.h: No such file or directory
 // #include <main/php.h>
                       ^
compilation terminated.

golang defined php class not available after context destroy

package bug

import (
    "fmt"
    "github.com/deuill/go-php/engine"
    "os"
    "runtime"
    "testing"
)

type TestObj struct{}

func newTestObj(args []interface{}) interface{} {
    return &TestObj{}
}

func Test_bug(t *testing.T) {
    runtime.GOMAXPROCS(1)
    theEngine, err := engine.New()
    if err != nil {
        t.Fail()
    }
    theEngine.Define("TestObj", newTestObj)
    fmt.Println("1")
    context1, err := theEngine.NewContext()
    if err != nil {
        t.Fail()
    }
    fmt.Println("enter")
    _, err = context1.Eval("$testObj = new TestObj();")
    fmt.Println("back")
    if err != nil {
        t.Fail()
    }
    context1.Destroy()
    fmt.Println("1 done")
    fmt.Println("2")
    context2, err := theEngine.NewContext()
    context2.Output = os.Stdout
    if err != nil {
        t.Fail()
    }
    fmt.Println("enter")
    _, err = context2.Eval("$testObj = new TestObj();")
    fmt.Println("back")
    if err != nil {
        t.Fail()
    }
    context2.Destroy()
    fmt.Println("2 done")
    fmt.Println("all done")
}

The code will exit with 255. The php error log says

[27-Oct-2016 09:40:05 Asia/Chongqing] PHP Fatal error:  Class 'TestObj' not found in gophp-engine on line 1

However, if we change the code to

package bug

import (
    "fmt"
    "github.com/deuill/go-php/engine"
    "os"
    "runtime"
    "testing"
)

type TestObj struct{}

func newTestObj(args []interface{}) interface{} {
    return &TestObj{}
}

func Test_bug(t *testing.T) {
    runtime.GOMAXPROCS(1)
    theEngine, err := engine.New()
    if err != nil {
        t.Fail()
    }
    theEngine.Define("TestObj", newTestObj)
    fmt.Println("1")
    context1, err := theEngine.NewContext()
    if err != nil {
        t.Fail()
    }
    fmt.Println("enter")
    _, err = context1.Eval("$testObj = new TestObj();")
    fmt.Println("back")
    if err != nil {
        t.Fail()
    }
    context1.Destroy()
    fmt.Println("1 done")
    fmt.Println("2")
    context2, err := theEngine.NewContext()
    context2.Output = os.Stdout
    if err != nil {
        t.Fail()
    }
    fmt.Println("enter")
    _, err = context2.Eval("var_dump(new TestObj());")
    fmt.Println("back")
    if err != nil {
        t.Fail()
    }
    context2.Destroy()
    fmt.Println("2 done")
    fmt.Println("all done")
}

it finishes without any problem, and the output to console is:

1
enter
back
1 done
2
enter
object(TestObj)#1 (0) {
}
back
2 done
all done

Which means the TestObj class definition is not actually completely gone, after context1 destroyed.

Doesn't work in Go 1.6

I try to compile with Go 1.6rc1.
Here is compiler output:

/usr/local/go/bin/go run -tags php7 /home/me/gocode/src/github.com/hello/world/src/embed_php7/main.go
panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 1 [running]:
github.com/deuill/go-php/engine._cgoCheckPointer0(0x69aec0, 0xc820012500, 0x0, 0x0, 0x0, 0x0)
    ??:0 +0x4d
github.com/deuill/go-php/engine.NewContext(0xc8200c0000, 0x0, 0x0)
    /home/me/gocode/src/github.com/deuill/go-php/engine/context.go:45 +0x152
github.com/deuill/go-php/engine.(*Engine).NewContext(0xc820016f60, 0x0, 0x0, 0x0)
    /home/me/gocode/src/github.com/deuill/go-php/engine/engine.go:53 +0x2e
main.main()
    /home/me/gocode/src/github.com/hello/world/src/embed_php7/main.go:10 +0x36
exit status 2

maxos make install fail

# github.com/deuill/go-php
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from _cgo_export.c:4:
In file included from engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
# github.com/deuill/go-php
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from ./context.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
# github.com/deuill/go-php
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from ./engine.go:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
# github.com/deuill/go-php
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from ./receiver.go:11:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
# github.com/deuill/go-php
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from ./value.go:12:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
# github.com/deuill/go-php
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from context.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
# github.com/deuill/go-php
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from engine.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
engine.c:43:10: warning: enumeration values 'SAPI_HEADER_DELETE_ALL' and 'SAPI_HEADER_SET_STATUS' not handled in switch [-Wswitch]
engine.c:43:10: note: add missing switch cases
# github.com/deuill/go-php
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from receiver.c:8:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
receiver.c:79:1: warning: control reaches end of non-void function [-Wreturn-type]
# github.com/deuill/go-php
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2186:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2228:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2252:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2306:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2465:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:37:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php_compat.h:27:
/usr/include/php/main/php_config.h:2584:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2175:9: warning: 'ODBCVER' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2186:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2211:9: warning: 'PHP_BUILD_DATE' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2228:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2244:9: warning: 'PHP_ICONV_H_PATH' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2252:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2286:9: warning: 'PHP_UNAME' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2306:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2430:9: warning: 'ZEND_DEBUG' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2465:9: note: previous definition is here
In file included from value.c:7:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/main/php.h:411:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/Zend/zend_virtual_cwd.h:27:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config_common.h:13:
In file included from /Users/xingqiba/data/server/php7.1.20/include/php/TSRM/tsrm_config.h:1:
/Users/xingqiba/data/server/php7.1.20/include/php/main/php_config.h:2546:9: warning: 'zend_finite' macro redefined [-Wmacro-redefined]
/usr/include/php/main/php_config.h:2584:9: note: previous definition is here
value.c:121:47: warning: incompatible pointer types passing 'unsigned long *' to parameter of type 'zend_ulong *' (aka 'unsigned long long *') [-Wincompatible-pointer-types]
./include/php7/_value.h:14:87: note: passing argument to parameter 'num_index' here

Implement function and class bindings

Currently, we are unable to bind Go functions and method receivers to PHP functions and classes, respectively. Adding this functionality would allow for more complex use-cases.

windows build status2

Does go-php only work in Linux? I build it on windows, getting 'go build github.com/arnaud-lb/php-go/php-go: C:\Go\pkg\tool\windows_amd64\cgo.exe: exit status 2'

gc_possible_root: Assertion `(ref)->gc.u.v.type == 7 || (ref)->gc.u.v.type == 8' failed.

package php

import (
    "testing"
    "github.com/stretchr/testify/assert"
    "github.com/deuill/go-php/engine"
)

func Test_map_value(t *testing.T) {
    should := assert.New(t)
    theEngine, err := engine.New()
    should.Nil(err)
    defer theEngine.Destroy()
    context, err := theEngine.NewContext()
    should.Nil(err)
    defer context.Destroy()
    context.Bind("hello", map[string]interface{}{})
}
    for _, v := range c.values {
        v.Destroy()
    }
    c.values = nil

    C.context_destroy(c.context)
    c.context = nil

when the values destroyed, then the context destroy will trigger gc_possible_root assertion error. Found in php-7.0.12

Complete error message

php.test: /home/xiaoju/disf-php/php-src/php-7.0.12/Zend/zend_gc.c:226: gc_possible_root: Assertion `(ref)->gc.u.v.type == 7 || (ref)->gc.u.v.type == 8' failed.
SIGABRT: abort
PC=0x7f051472e428 m=0
signal arrived during cgo execution

Unexpected signal during runtime execution

This happens when running tests:

fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1f146af00 pc=0x7f42d0fc7207]

runtime stack:
runtime.throw(0x75b263, 0x2a)
        /usr/lib/go-1.10/src/runtime/panic.go:616 +0x81
runtime.sigpanic()
        /usr/lib/go-1.10/src/runtime/signal_unix.go:372 +0x28e

goroutine 22 [syscall]:
runtime.cgocall(0x69f870, 0xc420035f20, 0x27)
        /usr/lib/go-1.10/src/runtime/cgocall.go:128 +0x64 fp=0xc420035ee0 sp=0xc420035ea8 pc=0x405a24
github.com/deuill/go-php._C2func_engine_init(0x0, 0x0, 0x0)
        _cgo_gotypes.go:420 +0x56 fp=0xc420035f20 sp=0xc420035ee0 pc=0x692656
github.com/deuill/go-php.New(0x5bb35b12, 0x9c3a8e4, 0x5f511f9)
        /mnt/c/Tools/cygwin/home/friebe/devel/go/src/github.com/deuill/go-php/engine.go:44 +0x36 fp=0xc420035f80 sp=0xc420035f20 pc=0x694ab6
github.com/deuill/go-php.TestValueStart(0xc4200131d0)
        /mnt/c/Tools/cygwin/home/friebe/devel/go/src/github.com/deuill/go-php/value_test.go:13 +0x22 fp=0xc420035fa8 sp=0xc420035f80 pc=0x6905a2
testing.tRunner(0xc4200131d0, 0x764430)
        /usr/lib/go-1.10/src/testing/testing.go:777 +0xd0 fp=0xc420035fd0 sp=0xc420035fa8 pc=0x4e0a40
runtime.goexit()
        /usr/lib/go-1.10/src/runtime/asm_amd64.s:2361 +0x1 fp=0xc420035fd8 sp=0xc420035fd0 pc=0x45d861
created by testing.(*T).Run
        /usr/lib/go-1.10/src/testing/testing.go:824 +0x2e0

goroutine 1 [chan receive]:
testing.(*T).Run(0xc4200131d0, 0x750f3d, 0xe, 0x764430, 0x47b901)
        /usr/lib/go-1.10/src/testing/testing.go:825 +0x301
testing.runTests.func1(0xc4200121e0)
        /usr/lib/go-1.10/src/testing/testing.go:1063 +0x64
testing.tRunner(0xc4200121e0, 0xc420059df8)
        /usr/lib/go-1.10/src/testing/testing.go:777 +0xd0
testing.runTests(0xc4201002e0, 0xae2c80, 0x1d, 0x1d, 0x4143c9)
        /usr/lib/go-1.10/src/testing/testing.go:1061 +0x2c4
testing.(*M).Run(0xc420116000, 0x0)
        /usr/lib/go-1.10/src/testing/testing.go:978 +0x171
main.main()
        _testmain.go:98 +0x151
FAIL    github.com/deuill/go-php        0.146s

Some research shows that is has to do with accessing receivers after a context is destroyed.

Installation Error on OS X 10.11.6

Hi, @deuill . I'm making a portable server to help my graphic designers friends on FrontEnd development with golang/echo framework. https://github.com/walker-walks/quick_serv
They said it would be useful if the server executes php files. so I was trying to call and execute php from go in a way I don't have License problem..

So I'm trying to use go-php library but
I'm having the same issue with some people when I'm doing go get.

engine/context.go:11:11: error: 'main/php.h' file not found with <angled> include; use "quotes" instead
 #include <main/php.h>
          ^~~~~~~~~~~~
          "main/php.h

I don't know if it's correct but, I downloaded the php source file and put the php-7/main into go-php/engine/main and passed this part and them appeared another error which is.

In file included from engine/context.go:11:
./main/php.h:35:10: fatal error: 'zend.h' file not found
#include "zend.h"
         ^

I moved all the files were in php-7/Zend to go-php/engine/main. and Now I have the issue below that I can't understand.

In file included from engine/context.go:11:
In file included from ./main/php.h:35:
In file included from ./main/zend.h:31:
In file included from ./main/zend_types.h:27:
./main/zend_portability.h:48:11: fatal error: 'zend_config.h' file not found
# include <zend_config.h>

I wold be very happy if you could give me any suggestions.
thanks.

Error while getting dependencies

when i installed the package in my project, i had the following error:

`$ go get

github.com/deuill/go-php

In file included from ../github.com/deuill/go-php/engine.go:14:
In file included from ../github.com/deuill/go-php/include/receiver.h:15:
../github.com/deuill/go-php/include/php7/_receiver.h:12:34: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static int _receiver_method_call(zend_string *method, zend_object *object, INTERNAL_FUNCTION_PARAMETERS);
^~~~~~~~~~~
zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
^
In file included from ../github.com/deuill/go-php/engine.go:14:
In file included from ../github.com/deuill/go-php/include/receiver.h:15:
../github.com/deuill/go-php/include/php7/_receiver.h:13:66: error: unknown type name 'zend_string'; did you mean 'zend_stream'?
static zend_function *_receiver_method_get(zend_object **object, zend_string *name, const zval *key);
^~~~~~~~~~~
zend_stream
/usr/include/php/Zend/zend_stream.h:60:3: note: 'zend_stream' declared here
} zend_stream;
^
2 errors generated.`

Unable to import go-php library

I am having trouble importing the module using go get -tags php github.com/deuill/go-php
I have php7 installed in my system and wanted to use this library.
Can someone help me on this?

image

can you show more code example?

Your idea is very good, but I still do not really understand and understand your library package, you can introduce it in more detail?

Long running PHP script

How would you handle a long running PHP script? How would we get "sigterm" notifications to allow the PHP script to close gracefully?

Need a way to support mulitple include paths

I'm currently working in a docker to compile and run tests, and it happens that the docker container for golang is based upon Debian Jessie.

On Jessie (and probably many other distributions), the correct include path for main/php.h is /usr/include/php5, which is not the value given in the various CGO headers.

Any though on how to make this more portable ?

Status of the project?

There does not seem to be any updates since 2018? Is it still maintained?

There is now PHP 8 out. PHP 7 achieved end of life. PHP 5 is probably not something which needs to be supported anymore. Would removing support for PHP 5 allow code cleanup and easier support for ZTS?

Portability

Hi,

I am thinking about using this library for a project however I need to build a portable binary which I can easily move between different systems

I had a look at the issue queue and I noticed two items that are interesting.

#39 (comment)

you can, however, build PHP as a static binary yourself and try to build with.....

and
#52 (comment)

Distributing static libraries built against static PHP builds may also be useful, but their use might be a bit more narrow, depending on which modules we include.

So it looks like it's possible however I am struggling to work out how to actually do it! Can anyone point me in a direction of how implement this?

Thanks,
Stephen

Compilation Error

go:11:23: fatal error: main/php.h: No such file or directory
// #include <main/php.h>
^
compilation terminated.

OS -> windows 10.

i don't know how to fix it.

Clean up '_include.h' file mess

Implementing PHP 7 support (#12) required that we create separate implementations for certain C functions between PHP 5 and PHP 7 (due to changes to the internal APIs).

This was solved by providing version-specific include files (such as this one) which are loaded depending on the build tag passed. Unfortunately, these files are a mess of preprocessor macros which make understanding the code-base much more difficult.

Cleaning these up means we have to provide seperate .c and .h files for different build tags, and using proper function declarations and definitions as per the rest of the source.

Compile Error On Mac OS Catalina

I am trying to go get but it generates error.
Error;

 go get -u -v -tags 'php7 darwin' github.com/deuill/go-php
github.com/deuill/go-php
# github.com/deuill/go-php
../../../../../pkg/mod/github.com/deuill/[email protected]/context.go:11:11: fatal error: 'main/php.h' file not found
 #include <main/php.h>
          ^~~~~~~~~~~~
1 error generated.

I don't know how to fix it. please reply fast.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.