-
Notifications
You must be signed in to change notification settings - Fork 494
ioncube segfault php-nginx:8.1/php-nginx:8.2 #531
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
Comments
The ionCube loader is definitely causing issues in PHP beyond just dealing with ionCube files. I was able to narrow down a segfault I've been getting to calls to Here's a script that works for me to reproduce the issue: <?php
#[Attribute()]
class Example {
public function __construct() {
}
}
class Foo {
#[Example]
public int $bar;
}
$foo = new Foo;
$reflection = new ReflectionObject($foo);
$properties = $reflection->getProperties();
foreach ($properties as $property) {
$attributes = $property->getAttributes();
foreach ($attributes as $attribute) {
$attribute->newInstance(); // Segfault here
}
}
echo 'OK' . PHP_EOL; The above script will segfault on the call to |
I've just discovered that my problem is also exactly this atttribute reflection problem, but I've never even heard of this @marcusball How did you disable Update: I decided that upgrading to 8.3 (where this problem doesn't exist) is going to be the better choice. |
Uh oh!
There was an error while loading. Please reload this page.
It appears that a build or ioncube loader version update has busted ioncube file loading. Trying to run an ioncube protected file causes an immediate segfault, but a normal PHP file is fine.
Executing a plain PHP file is fine.
I've tried WHMCS v8.10.1 (whmcs_v8101_full.zip) v8.11.2 (whmcs_v8112_full.zip) v8.8.0 (whmcs_v880_full.zip) on their respective compatible images (v8.8.0 only works on 8.1) and executing any ioncube protected file (I've tried a handful of files) with
php
results in this trace:Version info from 8.1 image (8.2 output is the same, minus obvious PHP version differences)
My last pull some months back at least the 8.1 image was working fine as I had WHMCS v8.8.0 working just fine.
Any questions please shout.
The text was updated successfully, but these errors were encountered: