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
| #!/bin/bash | |
| if [ "$#" != "1" ] | |
| then | |
| echo "Usage: $0 <branch>" | |
| exit 1; | |
| fi | |
| if [ $1 == "master" ] | |
| then |
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
| #from boot2docker | |
| docker run -it dockerfile/ubuntu | |
| #from withini the new vm | |
| apt-get update && apt-get install -y git gcc bison autoconf libxml2-dev libssl-dev valgrind | |
| mkdir /dvl && cd /dvl | |
| git clone https://github.com/php/php-src.git php/php-src | |
| wget https://gist.githubusercontent.com/staabm/d95a5ee8296043fea30d/raw/112820accbb9f7014814d78868a43cc4782408e4/php.sh && chmod +x php.sh && bash php.sh master |
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 | |
| function checkPostSizeExceeded() { | |
| $maxPostSize = iniGetBytes('post_max_size'); | |
| if ($_SERVER['CONTENT_LENGTH'] > $maxPostSize) { | |
| throw new Exception( | |
| sprintf('Max post size exceeded! Got %s bytes, but limit is %s bytes.', | |
| $_SERVER['CONTENT_LENGTH'], | |
| $maxPostSize |
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
| { | |
| ... | |
| "scripts": { | |
| "post-update-cmd": [ | |
| "composer dump-autoload --optimize" | |
| ], | |
| "post-install-cmd": [ | |
| "composer dump-autoload --optimize" | |
| ] | |
| }, |
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
| { | |
| "require": { | |
| ... | |
| }, | |
| "require-dev": { | |
| "pear-phpunit/phpunit": "3.6.*" | |
| }, | |
| "repositories": [ | |
| { | |
| "type": "pear", |
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
| { | |
| "require": { | |
| "php": ">=5.2.0", | |
| "staabm/thincache": "0.*", | |
| "rmccue/requests": "1.6.*", | |
| "ircmaxell/password-compat": "1.0.*", | |
| "staabm/xhprof.io": "dev-master" | |
| }, | |
| "require-dev": { | |
| "lstrojny/phpunit-clever-and-smart": "dev-master", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| $ find . -name '*.php' > /tmp/files.list | |
| $ hvm --hphp -t analyze --input-list /tmp/files.list | |
| (snip...) | |
| $ ls -1 /tmp/hphp_xegBug/ |
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
| #!/bin/bash | |
| # vim:ft=sh:ts=3:sts=3:sw=3:et: | |
| # origin taken from http://bryan.ravensight.org/2010/07/remove-php-closing-tag/ | |
| # with some custom changes. | |
| ### | |
| # Strips the closing php tag `?>` and any following blank lines from the | |
| # end of any PHP file in the current working directory and sub-directories. Files | |
| # with non-whitespace characters following the closing tag will not be affected. |
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 | |
| // baseclass | |
| public abstract class AbstractWatsonSearcher { | |
| /** | |
| * @return string[] an array of supported keywords | |
| * / | |
| abstract function keywords(); | |
| /** |