FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=18045&edit=1

ID: 18045
Updated by: janusz@fide.pl
Reported By: janusz at fide dot pl
Summary: Profiler::enterSection is broken
-Status: Closed
+Status: Open
Type: Bug
Package: Benchmark
Operating System: OS X
-Package Version: 1.2.8
+Package Version: 1.2.9
PHP Version: 5.3.3
Assigned To: doconnor
Roadmap Versions:
New Comment:

-Status: Closed
+Status: Open
-Package Version: 1.2.8
+Package Version: 1.2.9
Line 426 still is not fixed in 1.2.9:

Now it is:
if (isset($this->_calls[$item][$name])) {

It should be:
if (isset($this->_calls[$item["name"]][$name])) {


Previous Comments:
------------------------------------------------------------------------

[2011-12-10 04:57:46] doconnor

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

------------------------------------------------------------------------

[2010-11-12 00:44:06] jszczypk

Description:
------------
I am getting a lot of "Illegal offset type" for lines 423 and 426 of
Profiler.php
Looks like somebody forgot to put ["name"] after $item.

Expected result:
----------------
Profiler.php lines 420-430
if (isset($this->_callers[$name][$item["name"]])) {

$this->_callers[$name][$item["name"]]++;

} else {

$this->_callers[$name][$item["name"]] = 1;

}



if (isset($this->_calls[$item["name"]][$name])) {

$this->_calls[$item["name"]][$name]++;

} else {

$this->_calls[$item["name"]][$name] = 1;

}

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 12, '12 at 1:19p
activeJan 12, '12 at 1:19p
posts1
users1
websitepear.php.net

1 user in discussion

Janusz: 1 post

People

Translate

site design / logo © 2022 Grokbase