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 | |
| set_include_path($_SERVER['HOME'].'/dev/zendframework_zf2/library/'); | |
| require_once 'Zend/Loader/StandardAutoloader.php'; | |
| $loader = new Zend\Loader\StandardAutoloader; | |
| $loader->registerNamespace('Hasty', $_SERVER['HOME'].'/dev/padraic_hasty/src/Hasty'); | |
| $loader->registerNamespace('Symfony', $_SERVER['HOME'].'/dev/symfony_symfony/src/Symfony'); | |
| $loader->registerNamespace('Guzzle', $_SERVER['HOME'].'/dev/guzzle_guzzle/src/Guzzle'); | |
| $loader->registerNamespace('React', $_SERVER['HOME'].'/dev/react-php_react/src/React'); | |
| $loader->register(); |
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
| diff --git library/Zend/Code/Generator/ClassGenerator.php library/Zend/Code/Generator/ClassGenerator.php | |
| index 5e633cf..2fa7724 100644 | |
| --- library/Zend/Code/Generator/ClassGenerator.php | |
| +++ library/Zend/Code/Generator/ClassGenerator.php | |
| @@ -139,7 +139,8 @@ class ClassGenerator extends AbstractGenerator | |
| $methods = array(); | |
| foreach ($classReflection->getMethods() as $reflectionMethod) { | |
| /* @var $reflectionMethod \MethodReflection\Code\Reflection\ReflectionMethod */ | |
| - if ($reflectionMethod->getDeclaringClass()->getName() == $cg->getName()) { | |
| + // @todo should check namespace |
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 | |
| $count = 100; | |
| $data = "あいうえお"; | |
| for ($i= 1; $i < 10; $i++) { | |
| $data .= $data; | |
| } | |
| echo phpversion(), PHP_EOL; |
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
| I feel require separating target components into 4 or 5 sets | |
| for "Which component should test?" | |
| [a]. ".travis/new-and-upgrading-components" | |
| - Stdlib, EventManager, Cache, Http, Loader, Log, Mail, Session, | |
| Db , Uri, View | |
| Serializer, Markup, | |
| Module, Mvc & Docbook | |
| [b-1]. ".travis/tested-components" (apply namespace & CS from zf1, not | |
| planned updating for zf2) |
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 Miffie; | |
| use Miffie\Runner, | |
| Zend\Config\Config, | |
| Zend\Di\Configuration as DiConfiguration, | |
| Zend\Di\Di; | |
| class Bootstrap | |
| { |
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
| library/Zend/File/Transfer/Adapter/AbstractAdapter.php:1012: * @deprecated Will be changed to be a filter!!! | |
| library/Zend/Ldap/Exception.php:152: * @deprecated not necessary any more - will be removed | |
| library/Zend/Ldap/Exception.php:165: * @deprecated will be removed | |
| library/Zend/Ldap/Ldap.php:96: * @deprecated will be removed, use {@see Zend_Ldap_Filter_Abstract::escapeValue()} | |
| library/Zend/Ldap/Ldap.php:106: * @deprecated will be removed, use {@see Zend_Ldap_Dn::checkDn()} | |
| library/Zend/Server/AbstractServer.php:39: * @deprecated | |
| library/Zend/Server/AbstractServer.php:97: * @deprecated | |
| library/Zend/Filter/Inflector.php:128: * @deprecated Use setOptions() instead | |
| library/Zend/Validator/ValidatorChain.php:56: * @deprecated Since 1.5.0 | |
| library/Zend/Validator/ValidatorChain.php:122: * @deprecated Since 1.5.0 |
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 | |
| static $retry = 0; | |
| retry: | |
| try { | |
| echo time(), PHP_EOL; | |
| throw new \RuntimeException; | |
| } catch (RuntimeException $e) { | |
| if (++$retry < 3) goto retry; | |
| } | |
| echo 'done'; |
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
| casper = require('casper').create() | |
| ret ={} | |
| casper.start "http://d.hatena.ne.jp/keyword/%BA%B0%CC%EE%A4%A2%A4%B5%C8%FE", -> | |
| ret = | |
| title: @fetchText "div.keyword-container a.title" | |
| url: @evaluate -> document.querySelector("div.keyword-container a.title").getAttribute('href') | |
| furigana: @fetchText "div.keyword-container span.furigana" |
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 ~/tmp/phpunit36/bin/phpunit -c tests/phpunit.xml tests/Zend/Http/Client/StaticTest.php PHPUnit 3.6.10 by Sebastian Bergmann. | |
| Configuration read from /home/sasezaki/zf2/tests/phpunit.xml | |
| .........................string(18) "POST \/ HTTP\/1\.1" | |
| string(15) "POST / HTTP/1.1" | |
| string(18) "Host: example\.com" | |
| string(17) "Host: example.com" | |
| string(17) "Connection: close" | |
| string(17) "Connection: close" |
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
| @echo off | |
| REM casperjs | |
| REM | |
| if "%PHANTOMJS_EXECUTABLE%" == "" set | |
| PHANTOMJS_EXECUTABLE=d:\programs\phantomjs\phantomjs.exe | |
| GOTO RUN | |
| :RUN |