Comments (12)
I have exactly the same problem. In CLI mode it does work, but not when loaded as Apache webserver module. Let's see how to solve this.
from php-cpp.
This has been solved.
from php-cpp.
Thanks you are awesome !! 👍
from php-cpp.
Only problem i have now is that i get lots of unreloved external symbols errors :3
4>phpcpp.lib(value.obj) : error LNK2001: unresolved external symbol __imp__compiler_globals
4>phpcpp.lib(value.obj) : error LNK2001: unresolved external symbol __imp__executor_globals
4>phpcpp.lib(classimpl.obj) : error LNK2001: unresolved external symbol __imp__executor_globals
4>phpcpp.lib(parameters.obj) : error LNK2001: unresolved external symbol __imp__executor_globals
4>phpcpp.lib(super.obj) : error LNK2001: unresolved external symbol __imp__core_globals
from php-cpp.
That's no fun is it? It seems to be a Windows problem. Maybe you need an additional linker flag?
I do not yet have a windows environment, so it is difficult for me to help you.
Do the errors appear when you're compiling/linking, or when running it?
from php-cpp.
Nope it's not >.< maybe i don't know either.
The errors occurs when i finally link everything together.
I managed to get the information that the symbol "compiler_globals" is defined in "zend_globals_macros.h" Line 38 and if not ZTS is defined, declared in "zend_compile.c" Line 104 but I didn't find out where it will be declared in a c file when ZTS is aktive oO ? Do you know where because this seems the problem. Maybe some file will not be included in the building process under windows.
from php-cpp.
yes indeed, it looks like the compiler_globals variable is only used when ZTS is not enabled.
from php-cpp.
Could it be that PHP-CPP is (partially) compiled without ZTS by accident?
from php-cpp.
Indeed that was my problem >.< BIG THX my fault -.-'
But now i have this strange error ->
Error 10 error C2664: 'void zend_class_implements(zend_class_entry ,void *__,int,...)' : cannot convert argument 2 from 'int' to 'void **' php-cpp\src\classimpl.cpp 1409
i think there is a TSRMLS_CC missing ->
zend_class_implements(_entry TSRMLS_CC, 1, interface->_entry);
from php-cpp.
Yes, but I just updated the master branche to fix this.
from php-cpp.
Oh ^^ sry didn't saw that BIG THX 👍
from php-cpp.
works like a charm thx for your time and effort :D
from php-cpp.
Related Issues (20)
- Do std::mutex work if I export it by phpcpp? HOT 2
- Supporting generators / yield HOT 1
- zend_mm_heap corrupted when 2 PHPCPP extensions are loaded HOT 1
- error: expected class-name before '(' token HOT 3
- http://www.php-cpp.com/documentation/ 500 Error HOT 1
- phpcpp compiled for windows HOT 1
- Cannot build for windows HOT 2
- Is an Apache-PHP extension compiled with PHP-CPP v2.2 compatible with PHP-CPP v2.3 ? HOT 1
- Release v2.3.0 compile error on php7.0 7.1 HOT 3
- Support for PHP 8.1 HOT 4
- Can I install this library by vcpkg?
- Build with Cmake on Windows (MSVC) and Linux
- PHP v8 HOT 5
- Find an alternative to building in Travis-CI
- MAINTAINED FORK AVAILABLE HOT 3
- error on install on php70 and centos 7 HOT 1
- do a job in back after user disconnect HOT 2
- error when add mysql_driver.h HOT 2
- Calling serialize() from C++ HOT 1
- PHP-CPP extension, Unable to initialize module because Module and PHP are using different API versions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-cpp.