|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-05 07:08 UTC] alan_k@php.net
[2012-05-05 09:26 UTC] gug at mail dot ru
[2012-06-28 10:35 UTC] icukeng at gmail dot com
[2012-06-28 11:10 UTC] gug at mail dot ru
[2017-01-10 07:59 UTC] kalle@php.net
-Status: Open
+Status: Suspended
[2017-01-10 07:59 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 08:00:01 2025 UTC |
Description: ------------ I've compile script at Windows: <?php echo 'test'; by second script: <?php $fh = fopen("out.php", "w"); bcompiler_write_header($fh); bcompiler_write_file($fh, "test.php"); bcompiler_write_footer($fh); fclose($fh); In Windows, when I open browser and point to http://localhost/out.php i've got correct result - compiled script says "test". It's correct! BUT if I copy this compiled script in Linux (CentOS el5 x86_64), script opens AS IS! (bcompiler v0.27s ����(test>����(N:\home\localhost\public_html\out.php����n����ine/temp����). Anyway how I've open that: in browser or console (php ./out.php) - its show me file as is. If compile test.php exactly in destination Linux, out.php will work fine! And otherwise, if compile at Linux - it's won't work on Windows. When i've transfer file (SFTP, binary mode), MD5SUM correct in Windows and Linux. Windows: 5.3.10 Apache 2.0 Handler Thread Safety enabled PHP API 20090626 PHP Extension 20090626 Zend Extension 220090626 Zend Extension Build API220090626,TS,VC9 PHP Extension Build API20090626,TS,VC9 bcompiler version 1.0.2s CentOS: 5.3.6 Apache 2.0 Handler Thread Safety disabled PHP API 20090626 PHP Extension 20090626 Zend Extension 220090626 Zend Extension Build API220090626,NTS PHP Extension Build API20090626,NTS bcompiler version 1.0.2s Test script: --------------- <?php echo 'test'; Expected result: ---------------- test Actual result: -------------- bcompiler v0.27s ����(test>����(N:\home\localhost\public_html\out.php����n����ine/temp����