Changeset View
Changeset View
Standalone View
Standalone View
externals/xhprof/xhprof_lib.php
Context not available. | |||||
* @author Kannan | * @author Kannan | ||||
*/ | */ | ||||
function xhprof_parse_parent_child($parent_child) { | function xhprof_parse_parent_child($parent_child) { | ||||
$ret = explode("==>", $parent_child); | $ret = @explode("==>", $parent_child); | ||||
// Return if both parent and child are set | // Return if both parent and child are set | ||||
if (isset($ret[1])) { | if (isset($ret[1])) { | ||||
Context not available. | |||||
if ($use_script_name) { | if ($use_script_name) { | ||||
// if this is an old edge originating from main(), it now | // if this is an old edge originating from main(), it now | ||||
// needs to be from '__script::$page' | // needs to be from '__script::$page' | ||||
if (substr($parent_child, 0, 9) == "main()==>") { | if (@substr($parent_child, 0, 9) == "main()==>") { | ||||
$child =substr($parent_child, 9); | $child =@substr($parent_child, 9); | ||||
// ignore the newly added edge from main() | // ignore the newly added edge from main() | ||||
if (substr($child, 0, 10) != "__script::") { | if (@substr($child, 0, 10) != "__script::") { | ||||
$parent_child = xhprof_build_parent_child_key("__script::$page", | $parent_child = xhprof_build_parent_child_key("__script::$page", | ||||
$child); | $child); | ||||
} | } | ||||
Context not available. | |||||
// trim leading/trailing whitespace | // trim leading/trailing whitespace | ||||
$val = trim($val); | $val = trim($val); | ||||
switch (strtolower($val)) { | switch (@strtolower($val)) { | ||||
case '0': | case '0': | ||||
case '1': | case '1': | ||||
$val = (bool)$val; | $val = (bool)$val; | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0