Skip to content

Instantly share code, notes, and snippets.

View ekinhbayar's full-sized avatar

Ekin ekinhbayar

View GitHub Profile
struct Buffer {
var count: Int
subscript(at: Int) -> Any {
// get/set from storage
}
}
struct Buffer <Element> {
let count: Int
$signalHandler = function ( $signal ) use ( $refreshWatcher, $clearWatcher ) {
Loop::cancel( $refreshWatcher );
Loop::cancel( $clearWatcher );
Loop::stop();
print "Caught {$signal}, exiting...\n";
//exit;
};
try {
Loop::onSignal( SIGINT, $signalHandler, "SIGINT" );
/org/freedesktop/ModemManager1/Modem/23 (device id 'f9f15fa44cb11df18e1dee38529b60a0c212749f')
-------------------------
Hardware | manufacturer: 'ZTE CORPORATION'
| model: 'MF190'
| revision: 'BD_MF190TLF3V1.0.0B11'
| supported: 'gsm-umts'
| current: 'gsm-umts'
| equipment id: '123456789123456'
-------------------------
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 299459 $ -->
<refentry xml:id="normalizer.normalizer_get_raw_decomposition" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Normalizer::getRawDecomposition</refname>
<refname>normalizer_get_raw_decomposition</refname>
<refpurpose>Returns the Decomposition_Mapping property for the given UTF-8 encoded code point.</refpurpose>
</refnamediv>
This file has been truncated, but you can view the full file.
==12423== Memcheck, a memory error detector
==12423== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==12423== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==12423== Command: php test/t12.php
==12423== Parent PID: 29085
==12423==
==12423== Stack overflow in thread #1: can't grow stack to 0xffe801000
==12423==
==12423== Process terminating with default action of signal 11 (SIGSEGV)
==12423== Access not within mapped region at address 0xFFE801FF8
/** @noinspection PhpAssignmentInConditionInspection */
/** @noinspection PhpDeprecationInspection */
/** @noinspection PhpDocMissingReturnTagInspection */
/** @noinspection PhpDocSignatureInspection */
/** @noinspection PhpDynamicAsStaticMethodCallInspection */
#! /bin/sh
#
# Created by configure
'./configure' \
'--prefix=/usr/local/php' \
'--with-config-file-scan-dir=/usr/local/php/etc/conf.d' \
'--without-pear' \
'--enable-bcmath' \
'--with-bz2' \
opcache.opt_debug_level

Produces opcode dumps for debugging different stages of optimizations. php -d opcache.opt_debug_level=0x10000 test.php will output opcodes as the compiler produced them before any optimization occurs. 0x20000 will output optimized opcodes. 0x40000 will produce a control flow graph (CFG). 0x200000 will produce a type and range-inferred static single assignment (SSA) form.

...
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
root@GitAmp-Ubuntu:/opt/php-uv# make
/bin/bash /opt/php-uv/libtool --mode=compile cc -I. -I/opt/php-uv -DPHP_ATOM_INC -I/opt/php-uv/include -I/opt/php-uv/main -I/opt/php-uv -I/usr/local/php7/include/php -I/usr/local/php7/include/php/main -I/usr/local/php7/include/php/TSRM -I/usr/local/php7/include/php/Zend -I/usr/local/php7/include/php/ext -I/usr/local/php7/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O0 -c /opt/php-uv/php_uv.c -o php_uv.lo
mkdir .libs
@ekinhbayar
ekinhbayar / dnsWithOPcache.log
Last active June 30, 2017 21:21
amphp/dns tests on my end
➜ dns git:(master) vendor/bin/phpunit
PHPUnit 6.2.2 by Sebastian Bergmann and contributors.
..............................EEEE...EEEEE..FF.F.. 50 / 50 (100%)
Time: 1.02 seconds, Memory: 6.00MB
There were 9 errors:
1) Amp\Dns\Test\IntegrationTest::testResolve with data set #0 ('google.com')