View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001496 | Xdebug | Step Debugging | public | 2017-11-23 06:31 | 2017-11-23 18:30 |
| Reporter | ildar | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| OS | archlinux | ||||
| Summary | 0001496: Server Error 500 related to throw new \Exception | ||||
| Description | The script does not work on PHP Version 7.2.0RC6 <code> try { echo 'Test Passed'; </code> The fix is in | ||||
| Steps To Reproduce | compiled on
aim-server[~/tmp/xdebug]$ git branch
via /opt/phpfarm/inst/php-7.2.0RC6/bin/phpize | ||||
| Additional Information | If I remove the line /var/log/httpd/error_log shows | ||||
| Tags | No tags attached. | ||||
| Operating System | Linux aim-server.crtdev.local 4.13.12-1-ARCH #1 SMP PREEMPT Wed Nov 8 11:54:06 CET 2017 x86_64 GNU/Linux | ||||
| PHP Version | 7.2-dev | ||||
|
|
The fix is |
|
|
I'm not having success reproducing this. Can you reproduce this on the command line? |
|
|
It happens always. aim-server[~/public_html]$ /opt/phpfarm/inst/php-7.2.0RC6/bin/php p.php class XCLowOpensslCryptor try { echo 'Test Passed'; |
|
|
It works without exception aim-server[~/public_html]$ /opt/phpfarm/inst/php-7.2.0RC6/bin/php p.php class XCLowOpensslCryptor try { echo 'Test Passed'; |
|
|
I have used It shows aim-server[~/tmp/xdebug]$ git bisect bad
:100644 100644 d278ac14c635c5b4d5c7acfd70edf2d0aed8ac96 da488fa6ae1e975fc768d375ed886261f8a126f1 M php_xdebug.h So it works on the commit but it doesn't work aim-server[~/tmp/xdebug]$ git checkout 669a81c9ba59905b2177c4dde77899027a7a8953 |
|
|
OK, as you're running this with PHP having debug enabled, could you run this with gdb: gdb --args /opt/phpfarm/inst/php-7.2.0RC6/bin/php p.php end then on the GDB prompt: run and when it crashes: bt full and add all the output as a file to this ticket. |
|
|
I have uploaded gdb.txt |
|
|
Can you run the following in the Xdebug source directory: phpize && ./configure && make clean && make -j 5 all (and then copy the generated xdebug.so to the right place, or use "make install") I am thinking it might not have picked up a change in a .h file. |
|
|
I have tried 1) As result it works! 2) It works in this way too. It seems Sorry for the false bug request. Thank you. |
|
|
I have changed my instruction to build /opt/phpfarm/inst/php-7.2.0RC6/bin/phpize |
|
|
May be |
|
|
and here |
|
|
Thanks for the great report. And good to know it wasn't actually a bug after all. The "make clean" is only really needed when you have already compiled Xdebug in the same directory before and I have changed a header file. There is a "./rebuild.sh" script in Xdebug's source checkout to do all the steps for you. I've updated the documentation at https://github.com/xdebug/xdebug#xdebug |