Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
124 views

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
130 views

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
111 views

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
138 views

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

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
289 views

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

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
131 views

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
700 views

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

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
789 views

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

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

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
101 views

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
0 votes
0 answers
130 views

I am creating my first extension but i have found this error compiling "ld library not found for -lphpcpp" how can i solve it? I am using mac osx yosemite
Kissema Eduardo Rafael's user avatar
0 votes
2 answers
300 views

I used php-cpp and create program and worked fine in shared library and Makefile is Here but i want compile with static library So i used this command: /opt/rh/devtool/opt/rh/devtoolset-3/root/usr/...
john smith's user avatar
1 vote
0 answers
120 views

I am writing a PHP extension using php-cpp to help me profile my code. Is there any way in php-cpp to track all calls to a specific function without modifying my php? e.g. track all calls to ...
user3178044's user avatar
1 vote
1 answer
405 views

I'm using php-cpp to create an extension for my php codes and when I try to compile just the simple structure of main.cpp file, I get some weird errors. this is the compile errors: g++ -std=gnu++...
Amir's user avatar
  • 571
1 vote
1 answer
195 views

I'm using php-cpp to create an extension for my php codes and when I try to compile just the simple structure of main.cpp file, I get this error.this is the compile errors: main.cpp:15:5: error: ‘...
mojtaba.sln's user avatar
1 vote
2 answers
602 views

I`m trying develop a extension to PHP with PHP-CPP on Windows. I build the .a and .so of PHP-CPP with MingW, but, when i go build the extension the compiler not found the phpcpp.h. My file Makefile: ...
Pedro Soares's user avatar
1 vote
1 answer
410 views

i want create a extension for php and i want install php-cpp http://www.php-cpp.com/documentation/install show error: ................ zend/constantimpl.h:185:38: error: ‘zend_constant’ has no ...
Stath Fither's user avatar
0 votes
0 answers
134 views

I am creating a simple PHP module with PHP-CPP library. I make this to limit process per IP address per php script file. I have found a solution for everything I needed, except 1 thing : I cant stop ...
user avatar
1 vote
1 answer
630 views

I was trying to make a Bencode extension for PHP by PHP-CPP, so there were several classes like: class BItem : public Php::Base { public: virtual std::string getType() const { return "BItem"; } };...
Frederick Zhang's user avatar
2 votes
2 answers
2k views

I'm compiling PHP-CPP source but i getting error in Windows 7.But, in Linux (for .so extension) it works fine. The error given by the compiler is: collect2.exe [Error] ld returned 1 exit status Note: ...
user avatar
3 votes
2 answers
899 views

I am trying to run simple Hello World PHP extension, but after make & install extension and when I want to run test script I am experiencing following issue: P Warning: PHP Startup: Unable to ...
Tom11's user avatar
  • 2,575
1 vote
0 answers
288 views

I have trouble with a custom extension in php. I am extening Php::ArrayAccess for a self made object and I am able to use my object in PHP juste like a native array. BUT I can not chain the operators [...
jav974's user avatar
  • 1,042
6 votes
1 answer
28k views

i am trying install php-cpp on centos 6,5. when i run command make, i am getting error: make: Warning: File `Makefile' has modification time 5.1e+05 s in the future mkdir -p shared/common mkdir -p ...
Mr Jerry's user avatar
  • 1,774
-1 votes
1 answer
101 views

I was interested in adding some feature to the php syntax, and definitly it's obvious for me it's different from writing modules for the language. I was wondering this requires to edit the resource in ...
Alex's user avatar
  • 713
0 votes
1 answer
339 views

I'm writing a C++ extension for PHP and I'm using regex in my code. Here is a snippet #include <phpcpp.h> #include <regex> #include <iterator> #include <iostream> #include <...
Daniel Wardin's user avatar
0 votes
1 answer
600 views

I am using PHP-CPP to create a php extension which contains a function that will parse a table from mysql. extension.cpp #include <phpcpp.h> #include <iostream> #include <mysql.h>...
shanks's user avatar
  • 75
3 votes
2 answers
3k views

I wanted to test the php-cpp possibilities but while using "make" it throughs "php.h" missing at me: g++ -Wall -c -g -std=c++11 -fpic `php-config --includes` -o zend/base.o zend/base.cpp In file ...
Adrian Z.'s user avatar
  • 944
0 votes
2 answers
360 views

I am using the PHP-CPP library to develop PHP extensions. When I try the following in C++: #include <phpcpp.h> static int number=0; Php::Value get_num() { number++; return number; } ...
LogicalException's user avatar
5 votes
1 answer
263 views

Working on a small extension for PHP using PHP-CPP, I receive at C++ side, an array with objects and I need retrieve the class name of it. The object Php::Value didn't looks like have any method for ...
mcuadros's user avatar
  • 4,165