Skip to content

Instantly share code, notes, and snippets.

View sgrossberndt's full-sized avatar

Stephan Großberndt sgrossberndt

  • side by site GmbH & Co. KG
  • Köln, Germany
View GitHub Profile
@sgrossberndt
sgrossberndt / JsonView.php
Last active August 30, 2017 11:46
A JsonView extending ExtbaseJsonView to circumvent some of the performance problems
<?php
declare(strict_types=1);
namespace MyVendor\MyExtension\View;
use TYPO3\CMS\Extbase\Mvc\View\JsonView as ExtbaseJsonView;
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
use TYPO3\CMS\Extbase\Reflection\ObjectAccess;
@sgrossberndt
sgrossberndt / gist:de0e93ca7524894088ab84216b6e7f79
Created May 30, 2017 12:29
SIGABRT / SIGSEGV using libpcre3 8.35-3.3+deb8u4 with PHP 7.0.19-1~dotdeb+8.1
root@gaffel:/tmp# aptitude versions libpcre3
Paket libpcre3:
i A 2:8.35-3.3+deb8u4 stable 500
p A 2:8.39-1~dotdeb+8.1 jessie 500
root@gaffel:/tmp# php7.0 -v
PHP 7.0.19-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
<?php
define('CR', chr(13));
class ResourceCompressor {
/**
* Callback function for preg_replace
*
* @see compressCssFile