| Summary: | Expression evaluated wrong during debug | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Sylvia Tancheva <silviya> | ||||||
| Component: | PDT | Assignee: | PHP Debug <php.debug-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P1 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
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
|
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