Skip to content

Instantly share code, notes, and snippets.

@macintoshplus
macintoshplus / tests_Behat_Hook_DoctrineContext.php
Last active June 11, 2021 08:05
Behat Hooks : require Symfony plugin and Symfony Page Plugin
<?php
/**
* @copyright Macintoshplus (c) 2020
* Added by : Macintoshplus at 10/04/2020 21:58
*/
declare(strict_types=1);
namespace App\Tests\Behat\Hook;
/*
* GPLv2 Licence
* Author : Macintoshplus <814683+macintoshplus@users.noreply.github.com>
* Build Command Line : gcc main.c -o ds1631 -I/usr/local/include -L/usr/local/lib -lwiringPi
*/
#include <wiringPi.h>
#include <wiringPiI2C.h>
#include <stdio.h>
@macintoshplus
macintoshplus / index.php
Created January 10, 2018 21:47
Log All deprecated into file log (not web toolbar)
<?php
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
require_once("vendor/autoload.php");
$app = new \Silex\Application();
$app['debug'] = true;
@macintoshplus
macintoshplus / ResultForPHP7.0.23.txt
Last active January 10, 2018 21:44
Strange work for PHP 7+ for error_reporting reading
/Users/jb/Sites/testErrorHandler/index.php:5:int 0
/Users/jb/Sites/testErrorHandler/index.php:5:string '32767' (length=5)
/Users/jb/Sites/testErrorHandler/index.php:5:int 0
/Users/jb/Sites/testErrorHandler/index.php:5:string 'deprecated' (length=10)
/Users/jb/Sites/testErrorHandler/index.php:5:int 0
/Users/jb/Sites/testErrorHandler/index.php:5:string '32767' (length=5)
/Users/jb/Sites/testErrorHandler/index.php:5:int 0
/Users/jb/Sites/testErrorHandler/index.php:5:string 'user warning' (length=12)
/Users/jb/Sites/testErrorHandler/index.php:12:string '7.0.23' (length=6)