This file contains hidden or 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 | |
namespace AppBundle\Helpers; | |
/** | |
* Example | |
* Add to property's phpdoc `* RegexPattern(pattern="/[^\\]+/s", message="Unsupported symbol")` | |
*/ | |
trait ObjectFieldsValidationTrait | |
{ |
This file contains hidden or 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
server { | |
server_name xhprof.local; | |
root /var/www/xhprof-0.9.4/xhprof_html; | |
index index.php; | |
access_log off; | |
error_log /var/www/xhprof-0.9.4/log/nginx.error.log; | |
location ~ \.php$ { | |
fastcgi_pass unix:/var/run/php5-fpm-xhprof.sock; |
This file contains hidden or 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
server { | |
server_name redisadmin.local; | |
root /var/www/redisadmin; | |
index index.php; | |
# access_log off; | |
error_log /var/www/redisadmin/log/nginx.error.log; | |
location ~ \.php$ { | |
fastcgi_pass unix:/var/run/php5-fpm-redisadmin.sock; |
This file contains hidden or 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
<? | |
protected function strToInt($string) { | |
$unpacked = unpack('C*', $string); | |
return join( | |
array_map(function ($n) {return sprintf('%03d', $n);}, $unpacked) | |
); | |
} | |
protected function intToStr($number) { |