Bug #62368 [NEW]: IonCube encoded files cannot work inside PHAR
| From: | stawi at plusnet dot pl | Date: | Wed, 20 Jun 2012 07:49:06 +0000 |
| Subject: | Bug #62368 [NEW]: IonCube encoded files cannot work inside PHAR | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-171382@lists.php.net to get a copy of this message | ||
From: stawi at plusnet dot pl
Operating system: Debian
PHP version: 5.4.4
Package: PHAR related
Bug Type: Bug
Bug description:IonCube encoded files cannot work inside PHAR
Description:
------------
=== uname -a ===
Linux debian 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64
GNU/Linux
=== php -v ===
PHP 5.4.0-2 (cli) (built: Mar 5 2012 12:52:15)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with the ionCube PHP Loader v4.2.1, Copyright (c) 2002-2012, by ionCube
Ltd.
When i put a IonCube encoded file into PHAR archive and then try to include
it I get that says file is corrupted.
I mailed to IonCube and they said this is PHP issue not theirs ;)
I believe that this will happen to all encoders and maybe optimizers.
Test script:
---------------
=== dummy.php ===
echo "Hello world!\n";
=== encoded.php
// Same as dummy.php but encoded.
=== test.phar ===
// Nothing special here, just added 2 files.
=== test.php ===
include 'phar://test.phar/dummy.php';
include 'phar://test.phar/encoded.php';
echo "DONE!\n";
Expected result:
----------------
Hello world!
Hello world!
DONE!
Actual result:
--------------
Hello world!
The file phar:///home/www/test.phar/encoded.php is corrupted.
--
Edit bug report at https://bugs.php.net/bug.php?id=62368&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62368&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62368&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62368&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62368&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62368&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62368&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62368&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62368&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62368&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62368&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62368&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62368&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62368&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62368&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62368&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62368&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62368&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62368&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62368&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62368&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62368&r=mysqlcfg