V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
luoer
V2EX  ›  PHP

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

  •  
  •   luoer · Aug 24, 2015 · 2437 views
    This topic created in 3899 days ago, the information mentioned may be changed or developed.

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

    3 replies    2015-08-26 12:25:45 +08:00
    lvfujun
        1
    lvfujun  
       Aug 25, 2015
    调用了一个私有的方法.
    private 修改为 public.
    析构函数最好别设置成 private.
    可能导致子类无法访问.
    话说 H,Պ9 这是个什么名称?
    ThisDay
        2
    ThisDay  
       Aug 25, 2015
    H,Պ9 这难道是个中文类名乱码了?
    luoer
        3
    luoer  
    OP
       Aug 26, 2015
    类名是没有中文的 而且我没有声明析构函数的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1223 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:51 · PVG 01:51 · LAX 10:51 · JFK 13:51
    ♥ Do have faith in what you're doing.