ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder

Composer (1.0 stable), php5.6 +

Author Message
ex_mac



Joined: 24 Aug 2016
Posts: 2

PostPosted: Wed Aug 24, 2016 6:03 pm    Post subject: Composer (1.0 stable), php5.6 + Reply with quote

On stable composer was add static autoloader. (autoload_static.php)

Code:

    $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
        if ($useStaticLoader) {
            require_once __DIR__ . '/autoload_static.php';

            call_user_func(\Composer\Autoload\ComposerStaticInit6ad5457f13e98e95ebb92fc4e0d581e3::getInitializer($loader));


on php5.5, 5.4 all fine, but on php5.6 problem looks:
Quote:

PHP Warning: composerRequire6ad5457f13e98e95ebb92fc4e0d581e3(IONCUBE__DIR__/../paragonie/random_compat/lib/random.php): failed to open stream: No such file or directory in /var/www/splynx/vendor/composer/autoload_real.php on line 66
PHP Warning: composerRequire6ad5457f13e98e95ebb92fc4e0d581e3(IONCUBE__DIR__/../paragonie/random_compat/lib/random.php): failed to open stream: No such file or directory in /var/www/splynx/vendor/composer/autoload_real.php on line 66
PHP Fatal error: composerRequire6ad5457f13e98e95ebb92fc4e0d581e3(): Failed opening required 'IONCUBE__DIR__/../paragonie/random_compat/lib/random.php' (include_path='.:/usr/share/php') in /var/www/splynx/vendor/composer/autoload_real.php on line 66



Code:

      foreach ($includeFiles as $fileIdentifier => $file) {
            composerRequire6ad5457f13e98e95ebb92fc4e0d581e3($fileIdentifier, $file);
        }

        return $loader;
    }
}

function composerRequire6ad5457f13e98e95ebb92fc4e0d581e3($fileIdentifier, $file)
{
    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
        require $file; // line 66

        $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    }
}



and part of code from autoload_static.php:
Code:

class ComposerStaticInit6ad5457f13e98e95ebb92fc4e0d581e3
{
    public static $files = array (
        '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
        '2c102faa651ef8ea5874edb585946bce' => __DIR__ . '/..' . '/swiftmailer/swiftmailer/lib/swift_required.php',
    );
....


ps: encoder 9, for php5.6
Quote:

PHP 5.6.21-9+donate.sury.org~xenial+1 (cli)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.2, Copyright (c) 2002-2016, by ionCube Ltd.
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Back to top
View user's profile Send private message
grupowebex



Joined: 18 Dec 2015
Posts: 2

PostPosted: Thu Nov 03, 2016 8:22 pm    Post subject: Same problem Reply with quote

Same problem here.

I had to do a downgrade to keep working.
New composer autoload is not working.
No parse errors on encoding (encoder 9, loader 5.6)


Thanks for help
Back to top
View user's profile Send private message
ex_mac



Joined: 24 Aug 2016
Posts: 2

PostPosted: Thu Nov 03, 2016 8:24 pm    Post subject: Re: Same problem Reply with quote

grupowebex wrote:
Same problem here.

I had to do a downgrade to keep working.
New composer autoload is not working.
No parse errors on encoding (encoder 9, loader 5.6)


Thanks for help


I will write to support this problem, as i see forum is die.
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2771

PostPosted: Mon Nov 07, 2016 7:24 pm    Post subject: Reply with quote

Smile It's not dead, but as it's primarily community supported and because so few people have problems and we've made the software easy to use, there tends to be little input.
_________________
Community Admin
Back to top
View user's profile Send private message
bernd01



Joined: 29 Mar 2017
Posts: 1

PostPosted: Wed Mar 29, 2017 1:09 pm    Post subject: Reply with quote

The problem still exists.
Tried with encoder version 9.0.5 and loader 6.0.9

How can we solve this issue?

Kind regards,
Bernd
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 190

PostPosted: Wed Mar 29, 2017 1:23 pm    Post subject: Reply with quote

Hi Bernd,

Please could you create a ticket about this in our Support Help Desk at http://support.ioncube.com and include a self-contained test case that reproduces the problem that you are currently having.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 190

PostPosted: Wed Mar 29, 2017 2:54 pm    Post subject: Reply with quote

Hi Bernd,

Please could you also run the Encoder with the -V option and paste in what is output from that.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
alastair



Joined: 23 Feb 2010
Posts: 190

PostPosted: Fri Mar 31, 2017 9:46 am    Post subject: Reply with quote

Hi Bernd,

Thanks for creating the ticket. As we have mentioned there, it appears that you have been running files produced by the 9.0.2 Encoder. If you re-encode using the 9.0.5 Encoder and run the files with a 6.0.9 Loader then the problem should disappear.

Please let us know if you do get any other problems.
_________________
Alastair

ionCube
Back to top
View user's profile Send private message
Jean Louis



Joined: 17 Aug 2017
Posts: 1

PostPosted: Thu Aug 17, 2017 7:21 pm    Post subject: Reply with quote

Thank you, that also help me Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum