PHP + Stream Wrapper + Stream Filter // Reproducer
Reproducer for php/php-src#8219
Usage
Run php index.php
<?php | |
namespace Tests\Integration; | |
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | |
use Symfony\Component\Config\Util\XmlUtils; | |
class ContainerTest extends KernelTestCase | |
{ | |
private const FILTER_LIST = [ |
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Symfony\Component\Console\Output\StreamOutput; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
$k = new class('prod', false) extends AppKernel implements CompilerPassInterface { | |
public function process(ContainerBuilder $container) |
watch -n 1 cp -u -R ./source ./dest | |
# Run every seconds: `-n 1` | |
# Copy everything from "source" to "dest": | |
# `-R ./source ./dest` | |
# But only if the content is different `-u` |
Reproducer for php/php-src#8219
Run php index.php
<?php | |
function m() | |
{ | |
$memory = round(memory_get_usage() / 1024 / 1024, 2); | |
$frame = debug_backtrace(0, 1)[0]; | |
$file = basename($frame['file']); | |
$line = $frame['line']; | |
printf("%s:%d | %sMb\n", $file, $line, $memory); |
I moved everything to a real repository: https://github.com/lyrixx/slack-to-spotify
TL;DR: There is a bug in gnome that have been fixed in 3.3.
But you can temporary fix this issue with: pkill gsd-media-keys
We check logs
/vendor/ |
<?php | |
const STREAM_OPEN_FOR_INCLUDE = 128; | |
final class HardCoreDebugLogger | |
{ | |
public static function register(string $output = 'php://stdout') | |
{ | |
register_tick_function(function () use ($output) { | |
$bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
-----BEGIN CERTIFICATE----- | |
MIIEjTCCAvWgAwIBAgIQcxWNVb9OEeS51am6xUW6FzANBgkqhkiG9w0BAQsFADBf | |
MR4wHAYDVQQKExVta2NlcnQgZGV2ZWxvcG1lbnQgQ0ExGjAYBgNVBAsMEWdyZWdv | |
aXJlQGdyZWdvaXJlMSEwHwYDVQQDDBhta2NlcnQgZ3JlZ29pcmVAZ3JlZ29pcmUw | |
HhcNMTkwMTIzMTAyNjMzWhcNMjkwMTIzMTAyNjMzWjBfMR4wHAYDVQQKExVta2Nl | |
cnQgZGV2ZWxvcG1lbnQgQ0ExGjAYBgNVBAsMEWdyZWdvaXJlQGdyZWdvaXJlMSEw | |
HwYDVQQDDBhta2NlcnQgZ3JlZ29pcmVAZ3JlZ29pcmUwggGiMA0GCSqGSIb3DQEB | |
AQUAA4IBjwAwggGKAoIBgQDz7qMbfPDd3tn8Q1RYMZBuQiQclK/MRi9mwOT78rnw | |
Oy520t2VqThX6Cp47JnSgmglOQK0LuY2YuYXIVAMusnC5M+oP6vRK2H4DIFq/9Pc | |
HVIgPDsbx1e4hyEodqDK0G8Q0sufvmWqHu7olvHpXIVSvp+1nGtOgkJ8kTkjrHWR |