dongmaqiu6084 2013-12-20 08:42
浏览 60

自PHP 5.4升级以来,RRDTool函数返回void值

We have a php application that makes a heavy use of RRDTool both in Web scripts and CLI scripts.

Since we upgraded to debian wheezy on which php 5.4 is the default, our rrdtool functions return just void at each call, with absolutely no error. These function seem to be really called, as changing the name to a fake one rises an error, but the result is empty (even for rrd_version())

PHP 5.4 is compiled with rrd support, rrdtool and librrd4 are installed. The commmand line ̀ rrdtoolworks well. We tried to installphp5-rrdtool`, we tried the same stack on another machine which worked well and we can't find any similar experience on internet.

strace shows no external call to rrd files (so it doesn't even start to read the file we provide), LD_DEBUG=all shows plenty of symbols from librrd4 (so the library seems to be really linked)

We do think it's a problem bound to our very system, a conflict or something like that, but we can't figure out how to debug it. Do you have some idea on how to debug this painful problem [ah, and I forgot to say it's a production-only problem, with thousands of graphs not served since yesterday to our clients :-(]

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python按要求编写程序
    • ¥15 Python输入字符串转化为列表排序具体见图,严格按照输入
    • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
    • ¥15 opencv图像处理,需要四个处理结果图
    • ¥15 无线移动边缘计算系统中的系统模型
    • ¥15 深度学习中的画图问题
    • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
    • ¥15 Python报错怎么解决
    • ¥15 simulink如何调用DLL文件
    • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离