Bug #73484 [NEW]: phpdbg executes code incorrectly

From: Date: Wed, 09 Nov 2016 21:00:15 +0000
Subject: Bug #73484 [NEW]: phpdbg executes code incorrectly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205269@lists.php.net to get a copy of this message
From: deviantintegral at gmail dot com Operating system: Linux PHP version: 7.1.0RC5 Package: phpdbg Bug Type: Bug Bug description:phpdbg executes code incorrectly Description: ------------ I've been attempting to use phpdbg for code coverage reports with phpunit. I've had rather strange behaviour with it running Drupal 8's test suite. phpunit 4.8 tests simply stop running, with no error or segfault. I switched over to phpunit 5.4, so the warnings below can be ignored for now. Under PHP 7, tests pass, but on further inspection, the assertions are not all being run correctly. For example, under php7: Time: 14.94 seconds, Memory: 120.00Mb OK (15 tests, 176 assertions Under phpdbg: Time: 5.31 seconds, Memory: 140.00Mb OK (15 tests, 8 assertions) This also affects PHP7.0, as I see similar behaviour there in the Ubuntu PPA for it: https://github.com/oerdnj/deb.sury.org/issues/485 Test script: --------------- Here's a Dockerfile to replicate this bug against the latest RC: FROM php:7.1-rc RUN curl -OJ https://ftp.drupal.org/files/projects/drupal-8.2.2.tar.gz RUN tar xzvf drupal-8.2.2.tar.gz ENV SIMPLETEST_DB="sqlite://localhost//tmp/drupal.sqlite" CMD cd drupal-8.2.2 \ && php vendor/bin/phpunit --verbose --debug -c core/phpunit.xml.dist --group aggregator \ && phpdbg -rrq vendor/bin/phpunit --verbose --debug -c core/phpunit.xml.dist --group aggregator Build it with docker build, and then use docker run <image id> and note that the assertion counts are different. -- Edit bug report at https://bugs.php.net/bug.php?id=73484&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73484&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73484&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73484&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73484&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73484&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73484&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73484&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73484&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73484&r=support Expected behavior: https://bugs.php.net/fix.php?id=73484&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73484&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73484&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73484&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73484&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73484&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73484&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73484&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73484&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73484&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73484&r=mysqlcfg

« previous php.bugs (#205269) next »