Comments (6)
Can you show us the smallest amount of source code that is needed to reproduce this problem?
from php-cpp.
I just tested the code here
https://github.com/CopernicaMarketingSoftware/PHP-CPP/tree/master/Examples/FunctionWithParameters
Ubuntu
PHP 5.5.7
git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git
cd PHP-CPP
make
sudo make install
cd Examples/FunctionWithParameters
make
sudo make install
php functionwithparameters.php
Parameter 0: 1st
Parameter 1: 2nd
Parameter 2: 3rd
Parameter 3: 4th
Parameter 0: 21
Parameter 1: 42
63
The value of referenceVar: I am unchanged.
New value of referenceVar: I changed!
The array: a
The array: b
The array: c
The array: d
PHP Catchable fatal error: Argument 1 passed to my_with_defined_object_parameters_function() must be an instance of yextension.so, instance of MyPhpClass given in /home/zhuzx/work/PHP-CPP/Examples/FunctionWithParameters/functionwithparameters.php on line 70
from php-cpp.
@dreamsxin If you want to test the library, run make test
. The library is developing faster than the updated examples. It is therefore possible that the examples https://github.com/CopernicaMarketingSoftware/PHP-CPP/tree/master/Examples/ may not be compatible with the latest version of the library.
from php-cpp.
In FunctionWithParameters, I mainly want to test this:
ByVal(const char *name, const char *classname, bool nullable = false, bool required = true) : Argument(name, classname, nullable, required, false) {}
from php-cpp.
You found a couple of bugs. They have now been fixed. Thanks for your report.
from php-cpp.
Should, thanks for your work
from php-cpp.
Related Issues (20)
- 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
- Feature request: create PHP skeletons/stubs directly from the PHP-CPP code. HOT 2
- PHP-Gtk3 does not provide parameters on ReflectionMethod::getParameters() HOT 4
- __get and other magic methods are broken in PHP8 HOT 1
- Segfault comparing nonstring value to string: Php::Value(123) == "abcd"
- Support for simultaneous build for multiple PHP versions.
- Segfault on PHP8.3 with class type as a method parameter due to memory corruption HOT 4
- PHP8 - Segfault when using reflection and having a method parameter type ::Const
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.