View Issue Details

IDProjectCategoryView StatusLast Update
0001400XdebugStep Debuggingpublic2018-01-29 21:47
Reporterbscheshirwork Assigned Toderick  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionunable to reproduce 
Platformdocker composition link below 
Product Version2.5.0 
Summary0001400: catch wrong classes
Description

https://github.com/bscheshirwork/docker-yii2-app-advanced/tree/master/docker-run

If I catch connection in PHPSTORM throw "green handset" my classes shuffle and terminate normal run the application, its way to crash.

For example

$cdr = new \common\models\CallCdr();
$cdr->number;

rise error "Getting unknown property".
Xdebug/vardump show correct class

class common\models\CallCdr#39

but the "attributes" property show attributes from the another class. (first run)
If turn off debug this code is work correctly (second run):

root@0ce07e652797:/var/www/html# ./yii mts/download
/var/www/html/console/controllers/MtsController.php:14:
array(12) {
  'id' =>
  NULL
  'name' =>
  NULL
  'description' =>
  NULL
  'leadTypeId' =>
  NULL
  'projectId' =>
  NULL
  'projectFormId' =>
  NULL
  'createdAt' =>
  NULL
  'createdBy' =>
  NULL
  'updatedAt' =>
  NULL
  'updatedBy' =>
  NULL
  'stateOfFlags' =>
  NULL
  'blockedAt' =>
  NULL
}
root@0ce07e652797:/var/www/html# ./yii mts/download
/var/www/html/console/controllers/MtsController.php:14:
array(7) {
  'id' =>
  NULL
  'managerPhoneId' =>
  NULL
  'number' =>
  NULL
  'type' =>
  NULL
  'time' =>
  NULL
  'duration' =>
  NULL
  'fileName' =>
  NULL
}

code

use common\models\CallCdr;
use Yii;
use yii\console\Controller;

class MtsController extends Controller {

    public function actionDownload() {
        $cdr = new CallCdr();
        var_dump($cdr->attributes);
        return Controller::EXIT_CODE_NORMAL;
}}
Steps To Reproduce
  1. Set "green handset"
  2. Run application (console/web).
  3. Got strange result:(
TagsNo tags attached.
Operating Systemhttps://github.com/bscheshirwork/docker-yii2-app-advanced/tree/master/docker-run
PHP Version7.1.0-7.1.4

Activities

derick

2017-03-04 10:43

administrator   ~0004226

Sorry, I don't do docker.

Can I please have a short reproducible script, and an accompanying remote debug log as is explained on https://xdebug.org/support.php#remote ? Without that, I can not investigate and fix this alleged issue.

derick

2018-01-29 21:47

administrator   ~0004577

Can't reproduce this, and no feedback provided.

Issue History

Date Modified Username Field Change
2017-02-22 08:46 bscheshirwork New Issue
2017-03-04 10:43 derick Note Added: 0004226
2017-03-04 10:43 derick Assigned To => derick
2017-03-04 10:43 derick Status new => feedback
2018-01-29 21:47 derick Note Added: 0004577
2018-01-29 21:47 derick Status feedback => resolved
2018-01-29 21:47 derick Resolution open => unable to reproduce
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging