Skip to content

Instantly share code, notes, and snippets.

View guilhermeblanco's full-sized avatar

Guilherme Blanco guilhermeblanco

  • Orlando, FL, USA
  • 02:57 (UTC -04:00)
View GitHub Profile
root@mahem:/var/www/doctrine# hhvm spl_priotity_queue.php
HipHop Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function insert() on a non-object' in :
Stack trace:
#0 /var/www/doctrine/splpriotityqueue.php(30): SplPriorityQueue->insert()
#1 {main}
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "saucy64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.hostname = "<hostname>"
config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true
config.vm.network :private_network, ip: "192.168.56.101"
config.vm.provider :virtualbox do |vb|
<?php
namespace My\AdminBundle\Controller;
use My\AdminBundle\Form\Model\AuthenticationFormModel;
use My\AdminBundle\Form\Type\AuthenticationFormType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\SecurityContext;
PDO true false
Reflection true false
SPL true false
SimpleXML true false
apc true false
bcmath true false
bz2 true false
ctype true false
curl true false
date true false
www-data@gblanco:~/application$ ./console cache:clear
[Symfony\Component\Config\Exception\FileLoaderLoadException]
Cannot import resource "assetic/%kernel.environment%.yml" from "/var/www/application/config/prod.yml".
[InvalidArgumentException]
The file "assetic/%kernel.environment%.yml" does not exist (in: /var/www/application/config, ).
@guilhermeblanco
guilhermeblanco / CacheInterface.php
Created October 14, 2013 20:08
PSR 8 - Multi-operation Cache
<?php
namespace Psr\Cache;
interface CacheInterface extends PSR6SimplifiedCacheInterface, \IteratorAggregate
{
/**
* Gets a collection of entries from the CacheInterface, returning them as
* Map of the values associated with the set of keys requested.
* If no TransactionInterface is provided, it will return all entries stored
@guilhermeblanco
guilhermeblanco / CacheInterface.php
Last active December 25, 2015 13:08
PSR 7: Managed Cache
<?php
namespace Psr\Cache;
interface CacheInterface extends PSR6SimplifiedCacheInterface
{
/**
* Retrieve the Cache Manager.
*
* @return ManagerInterface
@guilhermeblanco
guilhermeblanco / CacheInterface.php
Created October 14, 2013 19:13
PSR-6: Simple Cache
<?php
namespace Psr\Cache;
interface CacheInterface extends \ArrayAccess
{
/**
* Retrieve a Cache Entry.
*
* @param string $key
root@hhvm:~/hphp# ./hphp/hhvm/hhvm --config hphp/test/zend/config.hdf -vEval.DumpBytecode=1 -vRepo.Local.Mode=-- -vRepo.Central.Path=/root/hphp/verify.hhbc -vEval.Jit=true -vEval.EnableArgsInBacktraces=true -vResourceLimit.CoreFileSize=0 --file 'hphp/test/zend/good/ext-spl/regexiterator_setflags_exception.php'
Pseudo-main at 0 (ID 0)
EH Catch for 38:54
Handle exception at 54
// line 3
0: DefCls 0
// line 14
2: DefCls 1
// line 16
root@hhvm:~/doctrine/annotations# ~/tools/vendor/bin/phpunit
PHPUnit 3.7.26 by Sebastian Bergmann.
Configuration read from /root/doctrine/annotations/phpunit.xml.dist
............................................................... 63 / 359 ( 17%)
............................................................... 126 / 359 ( 35%)
............................................................... 189 / 359 ( 52%)
............................................................... 252 / 359 ( 70%)
............................................................... 315 / 359 ( 87%)