Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block flack

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7437117
namespace Doctrine\Tests\ORM\Functional;
use Doctrine\Tests\Models\CMS\CmsUser;
use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Events;
require_once __DIR__ . '/../../TestInit.php';
View gist:1149423
==6441== Memcheck, a memory error detector
==6441== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==6441== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==6441== Command: php /usr/bin/phpunit --no-globals-backup test/org/openpsa/invoices/
==6441== Parent PID: 6439
--6441-- Valgrind options:
--6441-- --suppressions=/usr/lib/valgrind/debian-libc6-dbg.supp
--6441-- --log-file=valgrind3.out
View gist:1026811
$qb = new midgard_query_builder('midgard_user');
$qb->add_constraint('person', '=', $this->_person->guid);
$qb->add_constraint('authtype', '=', $GLOBALS['midcom_config']['auth_type']);
$result = $qb->execute();
View gist:1018474
execve("/usr/bin/php-cgi", ["/usr/bin/php-cgi", "openpsa/test.php"], [/* 24 vars */]) = 0
brk(0) = 0xa18e000
access("/etc/", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7792000
access("/etc/", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=98905, ...}) = 0
mmap2(NULL, 98905, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7779000
close(3) = 0
access("/etc/", F_OK) = -1 ENOENT (No such file or directory)
View gist:1018463
<type name="org_openpsa_products_product" table="org_openpsa_products_product" parent="org_openpsa_products_product_group" parentfield="productGroup">
<property name="id" type="unsigned integer" primaryfield="id" />
<property name="productGroup" link="org_openpsa_products_product_group:id" type="unsigned integer" parentfield="productGroup"/>
<type name="org_openpsa_products_product_group" table="org_openpsa_products_product_group" upfield="up">
<property name="id" type="unsigned integer" primaryfield="id" />
<property name="up" upfield="up" link="org_openpsa_products_product_group:id" type="unsigned integer"/>
View gist:1018451
/etc/php5/apache2/conf.d/midgard2.ini~:; midgard.engine = On
/etc/php5/apache2/conf.d/midgard2.ini~:; midgard.http = Off
/etc/php5/apache2/conf.d/midgard2.ini~:; midgard.superglobals_compat = Off
/etc/php5/apache2/conf.d/midgard2.ini~:; midgard.memory_debug = Off
View gist:1016930
# This is example configuration file
# Do not create config files with conf extension
# Shared files, architecture independent
# Default is $prefix/share/midgard
# Application specific files
View gist:962345
cat /etc/php5/cgi/conf.d/midgard2.ini
midgard.engine = On
midgard.http = Off
midgard.superglobals_compat = On
; midgard.memory_debug = Off
View gist:962319
(gdb) run -D -f /etc/lighttpd/lighttpd.conf
Starting program: /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
PHP Warning: Failed to read midgard config file. Permission denied in Unknown on line 0
PHP Warning: [Midgard2 minit] Failed to initialize configs in Unknown on line 0
PHP Fatal error: Unable to start midgard2 module in Unknown on line 0
View gist:962251
Code to reproduce:
$mc = new midgard_collector('midgard_article', 'metadata.deleted', false);
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
You can’t perform that action at this time.