用户评论:

volomike (2012-08-14 04:07:53)

I'm using bencoder v1.6 and latest bcompiler (http://pecl.php.net/get/bcompiler) -- 1.0.2 at time of writing this -- and I ran a test on PHP5 static class functions and regular class functions, and then ran a test with __FILE__. I encountered no problems. So, at least the static class issue and the __FILE__ issue is resolved now.

However, please continue your testing and reporting bugs (https://bugs.php.net/report.php?package=bcompiler).

mail - at- albertkok - dot - com (2009-10-01 04:06:34)

It's been a while since my past post, but yes, I'm still using bcompiler. I just found another problem that I think you should be aware of. It took me hours to find.

It pretty much comes to this: When compiling on a 64-bit Linux operating system, your compiled code will NOT run on a 32-bit version, and visa versa. It will merely echo the file's content.

Regards,

Albert Kok

codeslinger+uph80111 at compsalot dot com (2008-01-11 09:16:12)

try this, I believe that it will solve the problem with __FILE__

echo"\n
FILE = '$Foo'\n";?>

Albert Kok (2007-10-24 04:08:34)

A few notes to succesfully configure PHP5 to load bcompiler.

In case of using Debian/Ubuntu Linux: When installing from the PECL (PEAR) package, make sure you have the php5-dev library installed in your system (apt-get install php5-dev).

Newer versions of Ubuntu may error out while installing bcompiler thru PECL, asking you to reinstall bzip2. This will not fix the installation. Instead, install the libbz2-dev library (apt-get install libbz2-dev) and try installing bcompiler from PECL again.

After installing bcompiler from PECL, don't forget to make sure you load the bcompiler.so library in your PHP configuration for the new bcompiler functions to become available. This is done by adding the following line to the bottom of your php.ini file(s):

extension=bcompiler.so

If you were to use the bcompiler functions thru your webserver, you need to restart it to reload the php configuration.

Regards,

Albert Kok

roberto at spadim dot net dot br (2007-06-24 22:33:00)

hello guys, since bencoder don't work for __FILE__ constants i have a bcompiler script working, anyone that want it can send me an email

the source is 100% compatible with original file, the only problem is php5 new function methods that

if (!function_exists('function_name')){

function function_name()

}

?>

don't work but it's a php5 new method for understand bytecode

cdsheen+bencoder at gmail dot com (2006-07-25 05:58:41)

Here's a script to act as a front-end for bcompiler, which may be very similar to the eA ones:

http://bbs.giga.net.tw/bencoder.php

BENCODER v1.1 - Encode your PHP script using bcompiler

Usage: bencoder [-f] -o FILE file1.php

bencoder [-f] -o OUTDIR file1.php file2.php ...

bencoder [-f] -o OUTDIR -a SRCDIR [-s SUFFIX] [-c] [-r]

-f : force overwriting even if the target exists

-o FILE : the file name to write the encoded script

(default to '-encoded.php' suffix)

-o OUTDIR : the directory to write all encoded files

-a SRCDIR : encode all files in this source directory

-s SUFFIX : encode the files with the SUFFIX extension only (default: php)

-c : copy files those shouldn't be encoded (no by default)

arplynn at gmail dot com (2006-04-28 08:49:42)

PHP seems to choke on trying to compile PHP5 classes with the private, protected or public modifiers. Additionally, when including files with properly compiled classes on PHP5, it works fine but when php tries to exit it throws a segmentation fault.

It's just not a great idea to use bcompiler for anything other than functions on PHP5, at least for now.

tda at example dot com (2006-02-07 05:50:24)

Creating a function after checking if a function exists using function_exists will result in a "Zero Sized Reply" error.

this does NOT work any longer:

if (!function_exists("file_get_contents")) {

functionfile_get_contents($filename,$use_include_path=0)

{/*...define your own function here...*/}

}?>

Apache returns: "Zero Sized Reply" after compilation.

bcompiler php,PHP bcompiler 函数相关推荐

  1. bcompiler php,bcompiler 函数

    用户评论: [#1] volomike [2012-08-14 04:07:53] I'm using bencoder v1.6 and latest bcompiler (http://pecl. ...

  2. CMake搭建编译环境总结

    前言   交叉编译算是每个嵌入式开发者都会经历的一道坎吧,通俗的描述就是搭建Arm板代码编译环境,让代码能够在Arm板子上跑起来.常用到的编译工具为Makefile和CMake,本篇记录下CMake的 ...

  3. php调试加密代码,使用bcompiler对PHP文件进行加密的代码

    在网上无意间看到这个功能代码,还没有去试,以后有机会用到时在试一试.收藏一下. 使用说明: //载入函式 include_once('phpCodeZip.php'); //建立加密文件(source ...

  4. bcompiler php,php_bcompiler.dll,下载,简介,描述,修复,等相关问题一站搞定_DLL之家

    如何选择&使用 第一步:您从我们网站下载下来文件之后,先将其解压(一般都是zip压缩包). 第二步:然后根据您系统的情况选择X86/X64,X86为32位电脑,X64为64位电脑. 如果您不知 ...

  5. May 18:PHP 函数

    a 函数    说明 abs    绝对值 acos    反余弦 acosh    反双曲余弦 addcslashes    以 C 语言风格使用反斜线转义字符串中的字符 addslashes    ...

  6. 数据库中自定义排序规则,Mysql中自定义字段排序规则,Oracle中自定义字段排序规则,decode函数的用法,field函数的用法

    数据库中自定义排序 场景:有一张banner表,表中有一个status字段,有0, 1, 2三个状态位,我想要 1,0,2的自定义排序(这里是重点),然后再进行之上对sequence字段进行二次排序( ...

  7. Mysql函数group_concat、find_in_set 多值分隔字符字段进行数据库字段值翻译

    Mysql函数group_concat.find_in_set进行数据库字段值翻译 场景 配方表:记录包含的原料 sources表示原料,字段值之间用逗号分隔 原料表:对应原料id和原料名称 现需要查 ...

  8. C++ 笔记(34)— C++ exit 函数

    当遇到 main 函数中的 return 语句时,C++ 程序将停止执行.但其他函数结束时,程序并不会停止.程序的控制将返回到函数调用之后的位置.然而,有时候会出现一些非常少见的情况,使得程序有必要在 ...

  9. C++ 笔记(30)— 友元函数与友元类

    我们知道类的私有成员只能在类的成员函数内部访问,如果想在别处访问对象的私有成员,只能通过类提供的接口(成员函数)间接地进行.这固然能够带来数据隐藏的好处,利于将来程序的扩充,但也会增加程序书写的麻烦. ...

最新文章

  1. 最小二乘拟合,L1、L2正则化约束--转
  2. .bashrc和.vimrc以及一些比较有用的linux命令
  3. 推荐CVer的总结 | 性能最强的One-stage目标检测算法
  4. Java异常处理深入理解_关于java异常处理机制的深入理解.doc
  5. 内推学弟进了腾讯,看看他的标杆简历!
  6. LIBUV学习笔记(三)libuv中pipe/tty相关操作以及一个简单的unix域回射服务器/客户端例子...
  7. window-linux移植
  8. 使用CSS实现透明边框的效果——兼容当前各种主流浏览器[xyytIT]
  9. 图像处理基础(8):图像的灰度直方图、直方图均衡化、直方图规定化(匹配)
  10. SQL文件导入数据库【保姆级教程】
  11. namesilo如何使用BTC支付:
  12. uni-app:uni-icons的使用及如何自定义图标
  13. gaussDB200 单节点安装
  14. 【AWVS】python调AWVS接口 新建扫描并导出扫描报告(一)
  15. iBatis框架batch处理优化
  16. 带计算机的笔记本图片,带上这些高性能的轻薄笔记本 出差旅行再也不用怕
  17. 腾讯阿里打通生态,针锋相对的时代或将结束?
  18. mysql外键约束的作用_如何在MySQL中设置外键约束以及外键的作用
  19. 如何围绕用户数字化运营?
  20. 【在线支付】在线支付的方式

热门文章

  1. 到底什么是谱聚类算法?
  2. Js 设置css属性
  3. ThinkPHP关于隐藏入口文件
  4. 电脑可以任意正常上网,然后右下角的小电脑是地球的形状
  5. java中动态输入_根据特定输入动态生成字符串的代码 - java
  6. 论二、我们喝过的毒鸡汤
  7. geany配置python win1_(亲测十分方便)win10下 配置python编辑器Geany配置
  8. Z-Score标准化(z-score normalization)
  9. 面向对象编程(十二)——final关键字
  10. 服务器进tp5项目报nginx404错误,TP5框架在nginx环境下路由报404错误解决方法 亲测可用...