MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001400XdebugRemote Debuggingpublic2017-02-22 08:462017-03-04 10:43
Reporterbscheshirwork 
Assigned Toderick 
PriorityhighSeveritycrashReproducibilityalways
StatusfeedbackResolutionopen 
Platformdocker composition link belowOSOS Version
Product Version2.5.0 
Target VersionFixed in Version 
Summary0001400: catch wrong classes
Descriptionhttps://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 Reproduce1. 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
Attached Files

- Relationships

-  Notes
(0004226)
derick (administrator)
2017-03-04 10:43

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.

- 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


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker