Community
Participate
Working Groups
When debugging the following code, and hovering on top of the word "$_logFile" the evaluated expression is wrong. See this code: <?php class A { public function testUpdateEmployee () { if ($zendLogDir) { $logPath = $zendLogDir . "/deployment_lib.log" ; self::$_logFile = fopen($logPath, "a+"); ini_set("error_log", $logPath); } } } Look at the attached screen-shot
Created attachment 192521 [details] screen-shot
Created attachment 196264 [details] patch
applied the patch,thanks!
I used this code for verifying. I started debugging and set BP before and after the self::$_logFile = fopen ( $logPath, "a+" ); line and checked the state of the $_logFile. <?php class A { public static $_logFile; public function testUpdateEmployee() { if (1) { $logPath = "C:\zendLogDir\deployment_lib.log"; self::$_logFile = fopen ( $logPath, "a+" ); ini_set ( "error_log", $logPath ); } } } $a = new A (); $a->testUpdateEmployee (); Correct hover words. Seems OK. Closing.
I used this code for verifying. I started debugging and set BP before and after the self::$_logFile = fopen ( $logPath, "a+" ); line and checked the state of the $_logFile. <?php class A { public static $_logFile; public function testUpdateEmployee() { if (1) { $logPath = "C:\zendLogDir\deployment_lib.log"; self::$_logFile = fopen ( $logPath, "a+" ); ini_set ( "error_log", $logPath ); } } } $a = new A (); $a->testUpdateEmployee (); Correct hover words. Seems OK. Closing. Ilina Stefanova