GithubHelp home page GithubHelp logo

Comments (12)

EmielBruijntjes avatar EmielBruijntjes commented on August 26, 2024

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.

EmielBruijntjes avatar EmielBruijntjes commented on August 26, 2024

This has been solved.

from php-cpp.

 avatar commented on August 26, 2024

Thanks you are awesome !! 👍

from php-cpp.

 avatar commented on August 26, 2024

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.

EmielBruijntjes avatar EmielBruijntjes commented on August 26, 2024

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.

 avatar commented on August 26, 2024

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.

EmielBruijntjes avatar EmielBruijntjes commented on August 26, 2024

yes indeed, it looks like the compiler_globals variable is only used when ZTS is not enabled.

from php-cpp.

EmielBruijntjes avatar EmielBruijntjes commented on August 26, 2024

Could it be that PHP-CPP is (partially) compiled without ZTS by accident?

from php-cpp.

 avatar commented on August 26, 2024

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.

EmielBruijntjes avatar EmielBruijntjes commented on August 26, 2024

Yes, but I just updated the master branche to fix this.

from php-cpp.

 avatar commented on August 26, 2024

Oh ^^ sry didn't saw that BIG THX 👍

from php-cpp.

 avatar commented on August 26, 2024

works like a charm thx for your time and effort :D

from php-cpp.

Related Issues (20)

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.