- 1
- 2
- 3
} catch (\Exception $e) {
echo "<h1>Noooooooooooooooooooo!!!!!!</h1>";
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
Всего: 30
+52
} catch (\Exception $e) {
echo "<h1>Noooooooooooooooooooo!!!!!!</h1>";
}
+53
$this->_requestUri = 0 === strpos($_SERVER['REQUEST_URI'], $_SERVER['SCRIPT_NAME'])
? substr(
$_SERVER['REQUEST_URI'], strlen($_SERVER['SCRIPT_NAME'])
)
: $_SERVER['REQUEST_URI'];
+141
C:\>php -r "echo mb_convert_encoding('хуй', 'cp866', 'windows-1251') . chr(7);"
+51
<?php
$person = new stdClass();
$person->create = function (array $data) use (& $person) {
foreach ($data as $property => $value) {
if (empty($person->{$property})) {
$person->{$property} = $value;
}
};
};
$person->info = function () use (& $person) {
echo "My name is $person->name and I'm an $person->age years old";
};
$person->create->__invoke(array(
'name' => 'John',
'age' => 42,
));
$person->info->__invoke();
?>
+35
assert( -(PHP_INT_MAX + 1) === -PHP_INT_MAX - 1 );
assert( -(PHP_INT_MAX + 2) === -PHP_INT_MAX - 2 );
+73
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
resources.log.khuy.writerName = "Firebug"
resources.view.helperPath.Zend_View_Helper = APPLICATION_PATH "/../library/Zend/View/Helper"
resources.view.helperPath.My_View_Helper = APPLICATION_PATH "/views/helpers"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
+154
escape = function(string) {
return (''+string).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''').replace(/\//g,'/');
};
Ваше мнение?
+167
unlink(__FILE__);
+168
jQuery(jQuery);
+148
eval(' ~ function ( __ , ___ ) { _ = __ ( ___ ( "__", "return __ ") ({}) ) } (eval, Function) , _[("_")] = _ ');
не могу понять как работает =(