This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Util/PHP.php b/src/Util/PHP.php | |
index d3d36a0..e173775 100644 | |
--- a/src/Util/PHP.php | |
+++ b/src/Util/PHP.php | |
@@ -84,7 +84,7 @@ public function runTestJob($job, PHPUnit_Framework_Test $test, PHPUnit_Framework | |
$_result = $this->runJob($job); | |
$this->processChildResult( | |
- $test, $result, $_result['stdout'], $_result['stderr'] | |
+ $test, $result, $_result['result'], $_result['stdout'], $_result['stderr'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ echo "<?php var_dump(STDOUT);" > y.stdout | |
$ php y.stdout | |
resource(2) of type (stream) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Drupal\Core\DrupalKernel; | |
use Drupal\simpletest\TestDiscovery; | |
use Sun\StaticReflection\ReflectionClass; | |
use Sun\StaticReflection\ReflectionDocComment; | |
use Symfony\Component\HttpFoundation\Request; | |
$autoloader = require __DIR__ . '/../vendor/autoload.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Simple PHP 5.4+ bench script for CLI. | |
const ITERATIONS = 10000; | |
error_reporting(E_ALL | E_STRICT); | |
setlocale(LC_ALL, 'C'); | |
register_shutdown_function(function () { | |
echo PHP_EOL; | |
$memory_peak_end = memory_get_peak_usage(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sites/default/settings.php b/sites/default/settings.php | |
index b2ce930..9d0514e 100644 | |
--- a/sites/default/settings.php | |
+++ b/sites/default/settings.php | |
@@ -611,7 +611,8 @@ | |
* The 'bootstrap_config_storage' setting needs to be a callable that returns | |
* core.services.yml. | |
*/ | |
- # $settings['bootstrap_config_storage'] = array('Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage'); | |
+$settings['bootstrap_config_storage'] = 'Drupal\Core\Config\BootstrapConfigStorageFactory::getFileStorage'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Script to flush all caches in Drupal 8. | |
* | |
* Place this script into your Drupal document root; i.e., /cc.php | |
* and request it in your browser. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
pd.test_id AS test_id, | |
-- Dataset is too large; sort in PHP instead. | |
pd.last_tested | |
FROM pift_data pd | |
-- Using an external aggregate as filter/join condition for a query | |
-- is the exact point where MySQL melts down :-/ | |
INNER JOIN ( | |
SELECT | |
MAX(pd2.test_id) AS maxid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Simple PHP 5.4+ bench script for CLI. | |
use Symfony\Component\HttpFoundation\Request; | |
const ITERATIONS = 1; | |
error_reporting(E_ALL | E_STRICT); | |
require_once 'core/vendor/autoload.php'; | |
require_once 'core/includes/bootstrap.inc'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Utility\Site. | |
*/ | |
namespace Drupal\Core\Utility; | |
use Drupal\Component\Utility\Settings; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This gist is no longer maintained - it is a proper repo now: | |
* | |
* @see https://github.com/sun/drupal-reinstall | |
*/ | |
# βββ ββββββββββ βββββββ ββββ βββ βββββββ |