aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-18 08:48:23 +0900
committernsfisis <nsfisis@gmail.com>2024-07-18 08:48:23 +0900
commitededc5042a19f1c90df45f7c5a81baa77523f0b9 (patch)
tree76838b05533da1dbeb17b32d9b5f481a9846a59e
parentc44c6f91b89508a71a838406b286d114e461ca18 (diff)
downloadphp-waddiwasi-ededc5042a19f1c90df45f7c5a81baa77523f0b9.tar.gz
php-waddiwasi-ededc5042a19f1c90df45f7c5a81baa77523f0b9.tar.zst
php-waddiwasi-ededc5042a19f1c90df45f7c5a81baa77523f0b9.zip
fix: examples/rubyvm-on-php-on-wasm
-rw-r--r--examples/rubyvm-on-php-on-wasm/HelloWorld.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/rubyvm-on-php-on-wasm/HelloWorld.php b/examples/rubyvm-on-php-on-wasm/HelloWorld.php
index 1b5efda..b237637 100644
--- a/examples/rubyvm-on-php-on-wasm/HelloWorld.php
+++ b/examples/rubyvm-on-php-on-wasm/HelloWorld.php
@@ -1,10 +1,8 @@
<?php
-require_once __DIR__ . '/vendor/autoload.php';
+require_once __DIR__ . '/../../vendor/autoload.php';
\define('STDIN', fopen('php://stdin', 'r'));
-\define('STDOUT', fopen('php://stdout', 'r'));
-\define('STDERR', fopen('php://stderr', 'r'));
$rubyVM = new \RubyVM\VM\Core\Runtime\RubyVM(
new \RubyVM\VM\Core\Runtime\Option(