heguangyu5 最近的时间轴更新
heguangyu5's repos on GitHub
PHP · 2 人关注
bpc-thinkphp8-ourblog
Shell · 1 人关注
6.2TB-20.3B-dedup
PHP · 1 人关注
bpc-carbon
A simple PHP API extension for DateTime.
PHP · 1 人关注
bpc-doctrine-inflector-2.0.x-branch
Doctrine Inflector is a small library that can perform string manipulations with regard to uppercase/lowercase and singular/plural forms of words.
C · 1 人关注
bpc-ext-raygui
PHP · 1 人关注
bpc-illuminate-container-7.x-branch
[READ ONLY] Subtree split of the Illuminate Container component (see laravel/framework)
PHP · 1 人关注
bpc-illuminate-contracts-7.x-branch
[READ ONLY] Subtree split of the Illuminate Contracts component (see laravel/framework)
PHP · 1 人关注
bpc-illuminate-database-7.x-branch
[READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework)
PHP · 1 人关注
bpc-illuminate-events-7.x-branch
[READ ONLY] Subtree split of the Illuminate Events component (see laravel/framework)
PHP · 1 人关注
bpc-illuminate-pagination-7.x-branch
[READ ONLY] Subtree split of the Illuminate Pagination component (see laravel/framework)
PHP · 1 人关注
bpc-illuminate-support-7.x-branch
[READ ONLY] Subtree split of the Illuminate Support component (see laravel/framework)
PHP · 1 人关注
bpc-intervention-image-2.7-branch
PHP Image Manipulation
PHP · 1 人关注
bpc-monolog-2.x-branch
Sends your logs to files, sockets, inboxes, databases and various web services
PHP · 1 人关注
bpc-nikic-fast-route-1.3.0
PHP · 1 人关注
bpc-psr-container-2.0.1
PHP · 1 人关注
bpc-psr-container-2.0.2
PHP · 1 人关注
bpc-psr-http-message-1.1
PHP · 1 人关注
bpc-psr-log-1.1.4
PHP · 1 人关注
bpc-psr-log-3.0.0
PHP · 1 人关注
bpc-psr-simple-cache-3.0.0
PHP · 1 人关注
bpc-symfony-polyfill-php80
This component provides functions unavailable in releases prior to PHP 8.0.
PHP · 1 人关注
bpc-symfony-translation-5.0-branch
Provides tools to internationalize your application
PHP · 1 人关注
bpc-symfony-translation-contracts-2.5-branch
A set of translation abstractions extracted out of the Symfony components
PHP · 1 人关注
bpc-topthink-framework-8.0.3
C · 0 人关注
auto-increment
C · 0 人关注
bigloo-4.4a
PHP · 0 人关注
bpc-amp-2.x-branch
A non-blocking concurrency framework for PHP applications. 🐘
Scheme · 0 人关注
bpc-ext-raylib
Scheme · 0 人关注
bpc-ext-skeleton
PHP · 0 人关注
bpc-reactphp-promise-2.x-branch
Promises/A implementation for PHP.
heguangyu5

heguangyu5

🏢  云招科技 / PHP
V2EX 第 159374 号会员,加入于 2016-02-18 14:10:24 +08:00
今日活跃度排名 10118
PHP 编译器 BPC 7.3 发布,成功编译 ThinkPHP8
  •  1   
    PHP  •  heguangyu5  •  6 天前  •  最后回复来自 heguangyu5
    10
    PHP 编译器 BPC 7.1 发布,成功编译 webman-admin
    PHP  •  heguangyu5  •  82 天前  •  最后回复来自 lhyannis
    6
    heguangyu5 最近回复了
    6 天前
    回复了 heguangyu5 创建的主题 PHP PHP 编译器 BPC 7.3 发布,成功编译 ThinkPHP8
    @sunchuo 这个也不好说,3 年前还不支持 namespace,closure,generators,traits 呢,现在都支持了.需求来了的时候,就跟上了.
    6 天前
    回复了 heguangyu5 创建的主题 PHP PHP 编译器 BPC 7.3 发布,成功编译 ThinkPHP8
    @sunchuo 目前 bpc 对 PHP 的支持足够我们自己用,所以没有跟进最新版 PHP 的计划.

    另外 PHP 新版本的一些改进我并不觉得很好,所以不打算在 bpc 中支持.

    ioncube 的话,从 easytoyou 上可以看到 ioncube11.x 是可以在线 decode 的,我自己并没有项目使用过,不确定其加密强度.
    不需要 zendvm.

    转译后的 scm 代码和 C 代码你都可以看到, [How_BPC_works]( https://github.com/bob-php-compiler/bpc-release/wiki/03_How_BPC_works).

    扩展可以自己加的,简单地对 C lib 的封装是很容易的.

    1. 扩展模板 [bpc-ext-skeleton]( https://github.com/heguangyu5/bpc-ext-skeleton)
    2. 扩展示例 [bpc-ext-raylib]( https://github.com/heguangyu5/bpc-ext-raylib) [bpc-ext-raygui]( https://github.com/heguangyu5/bpc-ext-raygui)

    但像 swow 这种要想集成进 BPC,得重写了.

    还有一点就是,BPC 目标在于源码保护和软件授权,性能不是第一位的,所以一般谈高性能的东西,就和 BPC 无缘了,现阶段应该是这样.
    36 天前
    回复了 heguangyu5 创建的主题 PHP PHP 编译器 BPC 7.3 发布,成功编译 ThinkPHP8
    @ModiKa2022 BPC 主要解决源码保护和软件授权这两个问题.

    "PHP 代码加密已经比较成熟" 这个认知不清楚从哪儿来的.
    我了解到的几乎所有的加密方案都有现成的或者可能的还原方法.
    @hubaq 笑死,你想想 UDP 机制,封了 IP,IDC 的攻击就没了吗?
    上周我们的一台放在 IDC 机房的服务器遭到了 UDP Flood 攻击,机房的处理方式一模一样,不管是不是你的问题,先把你的 IP 给封了.

    感觉这些人就是自己能力不足,不能解决问题,只能解决遇到问题的机器.

    遇到攻击,不是和客户一起防护,而是先杀掉客户,然后自己再承受攻击,害人不利己.
    @a33291 非常感谢!
    @skyworker 另外 php 和 BPC 不是二选一的问题,我们自己日常还是用 php 环境开发,只是在本地部署的项目上用 BPC 编译后发布出去.
    @janus77 BPC 的测试就是随 PHP 源码发布的 phpt 测试, @see https://github.com/bob-php-compiler/bpc-release/wiki/04_phpt_tests
    @skyworker

    一段 php 程序,给定一个输入,得到一个或一些输出.
    用 BPC 编译替换掉这段 php 程序,给定同样的输入,如果能得到同样的输出,那就够了.
    此时外部已经无法分辨处理这处事情的程序是 php 还后 BPC 编译后的程序.

    "底层可能有 bug"这种担心怎么说呢?我在开发 BPC 的过程中还发现了 php 的两个 bug,但是这并不影响我每天都用 php.

    1. https://bugs.php.net/bug.php?id=81312
    2. https://github.com/php/php-src/issues/12715

    测试覆盖到你觉得你的程序没问题就够了.

    比如 BPC 跑过了 php 的 phpt 测试后,我觉得 BPC 做到这里就够了.
    BPC 跑通了云招 OurATS 的测试用例后,我觉得云招 OurATS 就够了.

    如果你觉得无论多少测试都不能让你放心,那这就无解了,总要有个信任基础的.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1151 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 23:02 · PVG 07:02 · LAX 16:02 · JFK 19:02
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.