-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My PHP-CPP Extension run perfectly in terminal but show errors in the browser #330
Comments
Have you restarted your web server after (re)installing your extension? |
please post your |
@sjinks yes i did that. But there are still issues. |
@hugdx here is my php code and error message. It shows error when i call the function or object form the cpp file.
|
@Muhammad-Mubeen can you create a php file with name
after that, please run this file and post results to here |
@hugdx Here are the results |
Please try:
If you want i help from me, please post your |
@hugdx i tried the different solutions again but still the same issues. can you come on skype? here is my skype ID: mohammad-mubeen1 |
@hugdx phpinfo() is showing the extension in it but still its not working, |
@Muhammad-Mubeen i added you via skype. |
@hugdx I am having a similar issue. I implemented the example dynamic loading module and when used from the commandline everything works just fine. However, when used through apache2 it does not seem to work correctly. Any advice? |
@vdeurzen In your Makefile replace INI_DIR = /etc/php5/conf.d with INI_DIR = /etc/fpm/conf.d Hope it will work |
@Muhammad-Mubeen We are not using FPM at this time, we are (afaik) still using mod_php5 -.-' |
@vdeurzen In my case, the real problem was with FPM folder. Becuase when you are going to run your program in the browser, it is necessary to make the file in FPM folder. |
I have the same issue - Removing xdebug makes it work in both browser and cli. I can't figure out why with xdebug it works on the cli but not the browser... |
I have been able to determine that when I have xdebug loaded my class suddenly is declared in the wrong namespace. For example, my classes are in the PDF namespace and I have a PDFDocument class. Without xdebug loaded get_declared_classes outputs...
with Xdebug I get
Still trying to figure out why this is the case. |
My PHP-CPP extension is running perfectly in the terminal but when it try to does not show output in the browser. Can anyone tell me what's the problem.? Here is the screenshot
The text was updated successfully, but these errors were encountered: