This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( | |
foo() || | |
bar() | |
) { | |
$this->_registry->get( 'foo.bar' ) | |
->do_action() | |
->chain_call(); | |
if ( foo() ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dispatcher = new Ai1ec_Event_Dispatcher(); | |
$callback_filter = new Ai1ec_Event_Callback_Filter( $this->_registry, 'model.settings', 'modify2' ); | |
$dispatcher->register( 'title', $callback_filter, 19, 2 ); | |
$callback_filter2 = new Ai1ec_Event_Callback_Filter( $this->_registry, 'model.settings', 'modify' ); | |
$dispatcher->register( 'title', $callback_filter2, 17, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
+----------------------------------------------------------------------+ | |
| APC | | |
+----------------------------------------------------------------------+ | |
| Copyright (c) 2006-2011 The PHP Group | | |
+----------------------------------------------------------------------+ | |
| This source file is subject to version 3.01 of the PHP license, | | |
| that is bundled with this package in the file LICENSE, and is | | |
| available through the world-wide-web at the following url: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$start_memory = memory_get_usage( true ); | |
$generic_info = new stdClass(); | |
$generic_info->name = 'generic_info'; | |
$generic_info->hash = str_repeat( 'XOR', 333 ); | |
$objects_list = array(); | |
for ( $index = 0; $index < 10000; $index++ ) { |