Further improvements
This commit is contained in:
parent
89fed994ad
commit
6f578c6647
@ -191,6 +191,8 @@ class ADNLConnection
|
|||||||
''
|
''
|
||||||
);
|
);
|
||||||
(yield $this->stream->getWriteBuffer(\strlen($data)))->bufferWrite($data);
|
(yield $this->stream->getWriteBuffer(\strlen($data)))->bufferWrite($data);
|
||||||
return ($this->requests[$id] = new Deferred)->promise();
|
$this->requests[$id] = new Deferred;
|
||||||
|
|
||||||
|
return $this->requests[$id]->promise();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,9 +54,11 @@ cd ..
|
|||||||
composer global require spatie/7to5 dev-master#0420ad3
|
composer global require spatie/7to5 dev-master#0420ad3
|
||||||
[ -f $HOME/.composer/vendor/bin/php7to5 ] && php7to5=$HOME/.composer/vendor/bin/php7to5
|
[ -f $HOME/.composer/vendor/bin/php7to5 ] && php7to5=$HOME/.composer/vendor/bin/php7to5
|
||||||
[ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5
|
[ -f $HOME/.config/composer/vendor/bin/php7to5 ] && php7to5=$HOME/.config/composer/vendor/bin/php7to5
|
||||||
|
|
||||||
|
find phar7/vendor/league/uri -type f -name '*.php' -exec sed 's/withScheme[(]\$scheme[)]: UriInterface/withScheme(?string $scheme): UriInterface/g' -i {} +
|
||||||
|
|
||||||
php7.3 $php7to5 convert --copy-all phar7 phar5t >/dev/null
|
|
||||||
php7.3 $php7to5 convert --copy-all phar5t phar5 >/dev/null
|
php7.3 $php7to5 convert --copy-all phar7 phar5 >/dev/null
|
||||||
|
|
||||||
sed 's/^Loop::set.*;//g' -i phar5/vendor/amphp/amp/lib/Loop.php
|
sed 's/^Loop::set.*;//g' -i phar5/vendor/amphp/amp/lib/Loop.php
|
||||||
echo 'Loop::set((new DriverFactory())->create());' >> phar5/vendor/amphp/amp/lib/Loop.php
|
echo 'Loop::set((new DriverFactory())->create());' >> phar5/vendor/amphp/amp/lib/Loop.php
|
||||||
@ -67,8 +69,6 @@ cd ..
|
|||||||
|
|
||||||
find phar5/vendor/amphp -type f -name '*.php' -exec sed "s/extension_loaded[(]'zlib'[)]/false/g;s/new[(]/new_(/g;s/clone[(]/clone_(/g" -i {} +
|
find phar5/vendor/amphp -type f -name '*.php' -exec sed "s/extension_loaded[(]'zlib'[)]/false/g;s/new[(]/new_(/g;s/clone[(]/clone_(/g" -i {} +
|
||||||
|
|
||||||
find phar5/vendor/league/uri -type f -name '*.php' -exec sed 's/withScheme[(]\$scheme[)]: UriInterface/withScheme(?string $scheme): UriInterface/g' -i {} +
|
|
||||||
|
|
||||||
find phar5/vendor/danog/madelineproto -type f -name '*.php' -exec sed 's/: EncryptableSocket/: \\Amp\\Socket\\Socket/g' -i {} +
|
find phar5/vendor/danog/madelineproto -type f -name '*.php' -exec sed 's/: EncryptableSocket/: \\Amp\\Socket\\Socket/g' -i {} +
|
||||||
|
|
||||||
php -v
|
php -v
|
||||||
@ -80,9 +80,10 @@ cd ..
|
|||||||
composer global require danog/7to70
|
composer global require danog/7to70
|
||||||
[ -f $HOME/.composer/vendor/bin/php7to70 ] && php7to70=$HOME/.composer/vendor/bin/php7to70
|
[ -f $HOME/.composer/vendor/bin/php7to70 ] && php7to70=$HOME/.composer/vendor/bin/php7to70
|
||||||
[ -f $HOME/.config/composer/vendor/bin/php7to70 ] && php7to70=$HOME/.config/composer/vendor/bin/php7to70
|
[ -f $HOME/.config/composer/vendor/bin/php7to70 ] && php7to70=$HOME/.config/composer/vendor/bin/php7to70
|
||||||
|
|
||||||
|
find phar7/vendor/league/uri -type f -name '*.php' -exec sed 's/withScheme[(]\$scheme[)]: UriInterface/withScheme(?string $scheme): UriInterface/g' -i {} +
|
||||||
|
|
||||||
$php7to70 convert --copy-all phar7 phar5 >/dev/null
|
$php7to70 convert --copy-all phar7 phar5 >/dev/null
|
||||||
find phar5/vendor/league/uri -type f -name '*.php' -exec sed 's/withScheme[(]\$scheme[)]: UriInterface/withScheme(?string $scheme): UriInterface/g' -i {} +
|
|
||||||
|
|
||||||
find phar5/vendor/danog/madelineproto -type f -name '*.php' -exec sed 's/: EncryptableSocket/: \\Amp\\Socket\\Socket/g' -i {} +
|
find phar5/vendor/danog/madelineproto -type f -name '*.php' -exec sed 's/: EncryptableSocket/: \\Amp\\Socket\\Socket/g' -i {} +
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user