Skip to main content
1 vote
1 answer
45 views

Is it safe to invoke php callback on multiple threads? [closed]

In my PHP-CPP extension, I use C++ threads to implement asynchronous workers that invoke passed PHP callbacks. Is it safe to run PHP callbacks in parallel as long as they are not using shared data?
p3n's user avatar
  • 109
1 vote
0 answers
122 views

XAMPP Unable to load dynamic library (/opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found

I am using XAMPP for my PHP project to run it locally. It utilizes PHP extensions written with PHP-CPP library. I am having this error when I check for my /opt/lampp/bin/php -m PHP Warning: PHP ...
reham501's user avatar
  • 159
0 votes
1 answer
128 views

Linking phpcpp fails when building PHP extension

Environment: I am trying to develop a PHP-CPP extension and have downloaded the the empty extension file from https://www.php-cpp.com/documentation/your-first-extension to start. I have also modified ...
gearDev's user avatar
  • 39
0 votes
2 answers
110 views

PHP-CPP returning a string results in the strlen instead of plain string

So i wrote a little extension with the help of php-cpp. In this function, i just simply calculate the pow, which works perfectly fine. After calculating the result, i return the string from the ...
Tyralcori's user avatar
  • 1,067
1 vote
2 answers
135 views

Having extreme difficulty with determining the correct value type for std::map

Addendum: Let me simplify my question, to try this one step at a time, because I feel I've created too much confusion about what I'm trying to achieve. Mind you, I'm using C++11 and I think I'm ...
Decent Dabbler's user avatar
0 votes
0 answers
112 views

how to install and configure phpcpp legacy module with phpv5.3.3 over centos 6.9

Getting the error after installation and compiling phpcpp legacy version module with phpv5.3.3 php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/libphpcpp....
ghilman's user avatar
0 votes
1 answer
277 views

Linking PHP-CPP library to a Linux project in Visual Studio 2017

I have a small C++ test project which should result in a .so-library on Windows Subsystem for Linux (WSL, more or less = Ubuntu 14.x). In order to get a PHP extension the current version of the PHP-...
Robert's user avatar
  • 97
0 votes
0 answers
1k views

use php-cpp error: undefined symbol: executor_globals in Unknown on line 0

I successfully compiled the EmptyExtension and got salamander_php.so(my extension name). Then I copied it to the php extension_dir and added the row to the php.ini extension=salamander_php.so when I ...
pigLoveRabbit520's user avatar
0 votes
1 answer
124 views

how to add an static array in php class with php-cpp

I want to add a static member like below class BaseYii{ public static $map = [1,2,3]//sutff } this is my c++ code , class BaseYii : public Php::Base { public: Php::Array hehe; BaseYii() = ...
Big Pig's user avatar
0 votes
1 answer
699 views

How to convert C++ map<string,map<string>> to Php::Value in PHPCPP library?

I'm am creating PHP extension using PHP library, and I am having difficulties converting C++ map variable to PHPCPP Php::Value returned by a function. The reason I'm doing this is to get ...
anonymous007's user avatar
0 votes
1 answer
507 views

How to pass Array of Objects using PHPCPP, loop through each object and return associative array

I have recently started learning PHPCPP - A C++ library for developing PHP extensions and trying to understand: how to pass an Array of objects from php to C++ through PHPCPP library as examples give ...
anonymous007's user avatar
2 votes
1 answer
783 views

why phpcpp extension function written in C++ is slower then function written in php

I have recently created a php extension with PHPCPP - C++ library for developing PHP extensions and was expecting a performance boost, however instead of seeing a boost i m only seeing degradation in ...
anonymous007's user avatar
-2 votes
1 answer
126 views

Print PHP-CPP results in browser

I am developing a PHP-CPP extension with c++. My extension is working perfectly when i run it through the command line. But when i try to run it in browser then the browser shows the error that class ...
Muhammad Mubeen's user avatar
0 votes
1 answer
166 views

no matching function for call to ‘Php::Extension::add()

I am using PHP-CPP for creating PHP extension to call c++ function. I have resolved many error after integrating my cpp to example code of cpp by PHP-CPP. But I am stuck at following error, ...
Amit's user avatar
  • 49
1 vote
0 answers
97 views

How to call my extension method to detect written annotation?

Hi i'm tring to write an extension for php in zephir or php-cpp to call my customMethod from my extention when comment block like code below added to php file any suggestion note will be appreciate &...
phpniki's user avatar
  • 758

15 30 50 per page