|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-04-03 08:33 UTC] harry at local dot ch
Description: ------------ Using the xhprof UI (through index.php), seeing errors like; Notice: Use of undefined constant FILE_BINARY - assumed 'FILE_BINARY' in /home/harry/public_html/xhprof_lib/utils/xhprof_runs.php on line 119 According to http://www.php.net/file; FILE_BINARY The content is read as binary data. This is the default setting and cannot be used with FILE_TEXT. This flag is only available since PHP 6. This package reports it requires PHP 5.2.0+ not PHP6 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
Harry, Thanks for reporting the issue and trying out the fix. -- To summarize/clarify: This issue shouldn't cause any functional incorrectness. It'll cause notice messages to be spewed when browsing your report. We'll put in the fix. Also note: the issue exists in XHProfRuns_Default() which is just meant to be a sample implementation of the iXHProfRuns interface. We anticipate users will provide their own implementation of iXHProfRuns (e.g., to save the results to a central DB, or to compress the data before saving, etc.). For example, in the save_run() step you can do a: gzcompress(serialize($xhprof_data) and in the get_run() you can return: unserialize(gzuncompress($contents))