View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001714 | Xdebug | Stacktraces | public | 2019-10-10 17:03 | 2019-10-12 18:58 |
Reporter | Roze | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 2.8.0beta2 | ||||
Summary | 0001714: mysqli_options with xdebug.collect_params=3 and above creates Warning: Property access is not allowed yet | ||||
Description | I'm not exactly sure if it is the same bug as https://bugs.php.net/bug.php?id=67348 (also reported here https://stackoverflow.com/questions/29401923/property-access-not-allowed-yet-when-using-mysqli-init-trying-to-skip-secure ) which leads to next SO topic and then to https://github.com/php/php-src/commit/579562176b71820ad49d43b2c841642fef12fe57 But a simple: <?php with xdebug.collect_params=3 (0-2 work fine) and xdebug.auto_trace=1 (I imagine also any other way producing a trace) leads to Warning: mysqli_options(): Property access is not allowed yet in /data/php740/t.php on line 3 Call Stack: The same thing in OOP style runs fine PHP version 7.4.0RC3 (same with 7.3.10) with xdebug-2.8.0beta2 and 2.7.2 | ||||
Steps To Reproduce | php -dzend_extension=xdebug.so -dxdebug.collect_params=3 -dxdebug.auto_trace=1 -r '$con=mysqli_init();mysqli_options($con,MYSQLI_OPT_CONNECT_TIMEOUT,2);' | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 7.4-dev | ||||
|
This is not quite the same issue, but also not a bug in Xdebug. Even without Xdebug loaded (see the -n) and var_dump(), you'll see the same message: Script
Output
You'll have to convince the mysqli driver authors to fix this one. |
|
I see, thank you for feedback. p.s. out of curiosity why doesn't the OOP style trigger this with Xdebug while var_dump() still makes the Warning? |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-10-10 17:03 | Roze | New Issue | |
2019-10-11 17:04 | derick | Assigned To | => derick |
2019-10-11 17:04 | derick | Status | new => resolved |
2019-10-11 17:04 | derick | Resolution | open => no change required |
2019-10-11 17:04 | derick | Note Added: 0005171 | |
2019-10-12 18:58 | Roze | Note Added: 0005173 |