Skip to content
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

String Constant has PHP Fatal error at Mac OS #438

Open
sofire opened this issue Mar 30, 2020 · 0 comments
Open

String Constant has PHP Fatal error at Mac OS #438

sofire opened this issue Mar 30, 2020 · 0 comments

Comments

@sofire
Copy link

sofire commented Mar 30, 2020

test.cpp
myExtension.add(Php::Constant("MY_CONSTANT_5", std::string("Another constant value")));
myExtension.add(Php::Constant("MY_CONSTANT_6", "Another constant value"));

test.php
var_dump(MY_CONSTANT_5);
var_dump(MY_CONSTANT_6);

On Mac OS v10.14.6, PHP is 7.2.28
PHP Fatal error: Allowed memory size of 1342177280 bytes exhausted (tried to allocate 3753801417272 bytes)

On Linux Centos 7.x, PHP is 7.2.28
string(22) "Another constant value"
string(22) "Another constant value"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant