View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001592 | Xdebug | Uncategorized | public | 2018-12-10 12:38 | 2019-01-17 12:13 |
| Reporter | miksser | Assigned To | |||
| Priority | urgent | Severity | block | Reproducibility | unable to reproduce |
| Status | resolved | Resolution | duplicate | ||
| Platform | webasyst framework | OS | ubuntu | OS Version | 18.04.1 |
| Product Version | 2.7.0beta1 | ||||
| Summary | 0001592: Removes the default constant ENT_QUOTES | ||||
| Description | Under uncertain conditions, the value of the ENT_QUOTES constant disappears. What does the warning "PHP Warning: htmlentities() expects parameter 2 to be int". Turning off Xdebug helped fix the situation. For those who did not have xDebug, this problem was not reproduced. | ||||
| Steps To Reproduce | We could not reproduce this in CLI. But we randomly had a mistake in the sandbox of the framework. We ran this code: class R $arr = ['key' => rand(1, 20000)]; for ($i = 0; $i < 1000000; $i++) { }; echo $b; | ||||
| Additional Information | We also reduced the allocated memory to two megabytes. So the error appeared more often. | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 7.3-dev | ||||
|
|
I can't quite reproduce your problem, but I do see a problem on the CLI with both opcache and xdebug loaded and running the script through valgrind:
<code>ZEND_RECV_INIT_SPEC_CONST_HANDLER</code> is responsible for accepting variables into functions, so this might well be this problem. I don't know why this happens yet though. |
|
|
This is like the same issue as 0001583, which has a workaround described: https://bugs.xdebug.org/view.php?id=1583#c4774 |