V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
luoer
V2EX  ›  PHP

help!有哪位大哥见过这种错误哇。

  •  
  •   luoer · 2015-08-24 16:18:48 +08:00 · 2040 次点击
    这是一个创建于 3174 天前的主题,其中的信息可能已经有所发展或是发生改变。

    运行 php 脚本 起了 20 个进程 用长连接链接数据库 然后就报这个错误
    Fatal error: Call to private H,Պ9::__destruct ()

    3 条回复    2015-08-26 12:25:45 +08:00
    lvfujun
        1
    lvfujun  
       2015-08-25 00:00:07 +08:00
    调用了一个私有的方法.
    private 修改为 public.
    析构函数最好别设置成 private.
    可能导致子类无法访问.
    话说 H,Պ9 这是个什么名称?
    leeyuzhe
        2
    leeyuzhe  
       2015-08-25 11:14:09 +08:00
    H,Պ9 这难道是个中文类名乱码了?
    luoer
        3
    luoer  
    OP
       2015-08-26 12:25:45 +08:00
    类名是没有中文的 而且我没有声明析构函数的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   939 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:27 · PVG 07:27 · LAX 16:27 · JFK 19:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.