Results of 1 - 10 of about 29 for dummy (0.003 sec.)
- PHP/FFI/事前ロードの完全な例 13591
- « PHP のコールバック FFI » PHP Manual 例 PHP/FFI/事前ロードの完全な例 検索 PHP/FFI/事前ロードの完全な例 php.ini ffi.enable=preload opcache.preload=preload.php preload.php <?php FFI :: load ( __DIR__ . "/dummy.h" ); opcache_compile_file ( __
... DIR__ . "/dummy.php" ); ?> dummy.h #define FFI_SCOPE "DUMMY" #define FFI_LIB "libc.so.6" int printf(const char *format, ...); dummy.php <? ... php final class Dummy { private static $ffi = null ; function __construct () { if ( is_null ( self :: $ffi )) { self :: $ffi = FFI :: scope ( "D ... intf ( $format , ... $args ) { return (int) self :: $ffi -> printf ( $format , ... $args ); } } ?> test.php <?php $d = new Dummy (); $d -> printf ( "Hello %s!\n" , "world" ); ?> 関連キーワード: php ffi preload dummy printf 事前 ロード format self opca ...
-
https://man.mtool.work/php/8.3/ffi.examples-complete.html
- PHP/FFI/事前ロードの完全な例 13591
- « PHP のコールバック FFI » PHP Manual 例 PHP/FFI/事前ロードの完全な例 検索 PHP/FFI/事前ロードの完全な例 php.ini ffi.enable=preload opcache.preload=preload.php preload.php <?php FFI :: load ( __DIR__ . "/dummy.h" ); opcache_compile_file ( __
... DIR__ . "/dummy.php" ); ?> dummy.h #define FFI_SCOPE "DUMMY" #define FFI_LIB "libc.so.6" int printf(const char *format, ...); dummy.php <? ... php final class Dummy { private static $ffi = null ; function __construct () { if ( is_null ( self :: $ffi )) { self :: $ffi = FFI :: scope ( "D ... intf ( $format , ... $args ) { return (int) self :: $ffi -> printf ( $format , ... $args ); } } ?> test.php <?php $d = new Dummy (); $d -> printf ( "Hello %s!\n" , "world" ); ?> 関連キーワード: preload dummy printf ロード format self opcache define Du ...
-
https://man.mtool.work/php/8.3/ffi.examples-complete.html
- Lua 関数を呼び出す 8973
- « Lua::assign Lua::__construct » PHP Manual Lua Lua 関数を呼び出す 検索 Lua::call Lua::__call (PECL lua >=0.9.0) Lua::call -- Lua::__call — Lua 関数を呼び出す 説明 public function Lua::call ( callable $lua_func , array $args = ? , int $use_
... それ以外のエラーの場合は false を返します。 例 例1 Lua::call() の例 <?php $lua = new Lua (); $lua -> eval (<<<CODE function dummy(foo, bar) print(foo, ",", bar) end CODE ); $lua -> call ( "dummy" , array( "Lua" , "geiliable\n" )); $lua -> dummy ( "Lua" ... ble Lua,geiliable string(5) "1-2-3" 参考 __call() 関連キーワード: Lua call lua array self geiliable function func args use dummy callable int mixed 場合 foo bar assign Search construct ...
-
https://man.mtool.work/php/8.3/lua.call.html
- Lua 関数を呼び出す 8973
- « Lua::assign Lua::__construct » PHP Manual Lua Lua 関数を呼び出す 検索 Lua::call Lua::__call (PECL lua >=0.9.0) Lua::call -- Lua::__call — Lua 関数を呼び出す 説明 public function Lua::call ( callable $lua_func , array $args = ? , int $use_
... それ以外のエラーの場合は false を返します。 例 例1 Lua::call() の例 <?php $lua = new Lua (); $lua -> eval (<<<CODE function dummy(foo, bar) print(foo, ",", bar) end CODE ); $lua -> call ( "dummy" , array( "Lua" , "geiliable\n" )); $lua -> dummy ( "Lua" ... は以下となります。 Lua,geiliable Lua,geiliable string(5) "1-2-3" 参考 __call() 関連キーワード: call self geiliable func args dummy callable mixed assign construct 詳細 記述 eval print dump table concat 参考 ...
-
https://man.mtool.work/php/8.3/lua.call.html
- Copy a function 8761
- « uopz_compose uopz_del_function » PHP Manual Uopz 関数 Copy a function 検索 uopz_copy (PECL uopz 1 >= 1.0.4, PECL uopz 2) uopz_copy — Copy a function 警告 この関数は、PECL uopz 5.0.0 で 削除 されました。 説明 function uopz_copy ( string $f
... , $arg2 ) use( $strtotime ) { /* can call original strtotime from here */ var_dump ( $arg1 ); }); var_dump ( strtotime ( 'dummy' )); ?> 上の例の出力は以下となります。 string(5) "dummy" 関連キーワード: function uopz copy strtotime Copy string Closure ... class name arg var dump dummy compose Search del Uopz 警告 パラメータ containing ...
-
https://man.mtool.work/php/8.3/function.uopz-copy.html
- Copy a function 8761
- « uopz_compose uopz_del_function » PHP Manual Uopz 関数 Copy a function 検索 uopz_copy (PECL uopz 1 >= 1.0.4, PECL uopz 2) uopz_copy — Copy a function 警告 この関数は、PECL uopz 5.0.0 で 削除 されました。 説明 function uopz_copy ( string $f
... , $arg2 ) use( $strtotime ) { /* can call original strtotime from here */ var_dump ( $arg1 ); }); var_dump ( strtotime ( 'dummy' )); ?> 上の例の出力は以下となります。 string(5) "dummy" 関連キーワード: uopz copy strtotime Copy Closure dump dummy compo ...
-
https://man.mtool.work/php/8.3/function.uopz-copy.html
- 例 8598
- « Win32Service\RightInfo::isGrantAccess win32service 関数 » PHP Manual win32service 例 検索 例 例1 PHP スクリプトをサービスとして登録する <?php win32_create_service (array( 'service' => 'dummyphp' , # サービスの名前 'display' => 'sample dummy
... my PHP service' , # 短い説明 'description' => 'This is a dummy Windows service created using PHP.' , # 長い説明 'params' => '"' . __FILE__ . '" run' , # スクリプトへのパスとパラメータ ) ... ); ?> 例2 サービスの登録を解除する <?php win32_delete_service ( 'dummyphp' ); ?> 例3 サービスとして実行する <?php if ( $argv [ 1 ] == 'run' ) { win32_start_service_ctrl_dispatcher ( 'dummyphp' ... 容を書きます。 # 1 回のループに 30 秒以上かからないように心がけてください。 } } ?> 関連キーワード: service win サービス php dummyphp スクリプト 登録 dummy run Win Service RightInfo isGrantAccess Search create array display sample description Windows ...
-
https://man.mtool.work/php/8.3/win32service.examples.html
- 例 8598
- « Win32Service\RightInfo::isGrantAccess win32service 関数 » PHP Manual win32service 例 検索 例 例1 PHP スクリプトをサービスとして登録する <?php win32_create_service (array( 'service' => 'dummyphp' , # サービスの名前 'display' => 'sample dummy
... my PHP service' , # 短い説明 'description' => 'This is a dummy Windows service created using PHP.' , # 長い説明 'params' => '"' . __FILE__ . '" run' , # スクリプトへのパスとパラメータ ) ... ); ?> 例2 サービスの登録を解除する <?php win32_delete_service ( 'dummyphp' ); ?> 例3 サービスとして実行する <?php if ( $argv [ 1 ] == 'run' ) { win32_start_service_ctrl_dispatcher ( 'dummyphp' ... の作業内容を書きます。 # 1 回のループに 30 秒以上かからないように心がけてください。 } } ?> 関連キーワード: service サービス dummyphp スクリプト 登録 dummy Service RightInfo isGrantAccess create display sample description Windows created using params 解 ...
-
https://man.mtool.work/php/8.3/win32service.examples.html
- Yaf_Loader クラス 8435
- « Yaf_View_Simple::setScriptPath Yaf_Loader::autoload » PHP Manual Yaf Yaf_Loader クラス 検索 Yaf_Loader クラス (Yaf >=1.0.0) はじめに Yaf_Loader は、 Yaf 用に包括的なオートローディング機能を導入します。 最初に Yaf_Application のインスタンス
... /global_dir/Glo/Name.php class BarNon_Test // /global_dir/Barnon/Test.php 例4 名前空間つきのクラスのロード class \Foo\Bar\Dummy => // APPLICATION_PATH/library/Foo/Bar/Dummy.php class \FooBar\Bar\Dummy => // /global_dir/FooBar/Bar/Dummy.php すべてのフ ... ass IndexController // APPLICATION_PATH/controllers/Index.php class DataModel => // APPLICATION_PATH/models/Data.php class DummyPlugin => // APPLICATION_PATH/plugins/Dummy.php class A_B_TestModel => // APPLICATION_PATH/models/A/B/Test.php 注意 : 2.1.1 ... Path — ライブラリパスを変更する 関連キーワード: Loader library ロード autoload application オート Classes 登録 getInstance Dummy ライブラリ directory path static getLocalNamespace インスタンス スクリプト ローカル プレフィックス Controller controllers ...
-
https://man.mtool.work/php/8.3/class.yaf-loader.html
- SCM データベースに新しいサービスのエントリを作成する 8337
- « win32_continue_service win32_delete_service » PHP Manual win32service 関数 SCM データベースに新しいサービスのエントリを作成する 検索 win32_create_service (PECL win32service >=0.1.0) win32_create_service — SCM データベースに新しいサービスの
... ery_enabled , recovery_reboot_msg および recovery_command パラメータが追加されました。 例 例1 win32_create_service() の例 'dummyphp' というショートネームのサービスを作ります。 <?php $x = win32_create_service (array( 'service' => 'dummyphp' , // サービ ... スの名前 'display' => 'sample dummy PHP service' , // 短い説明 'description' => 'This is a dummy Windows service created using PHP.' , // 長い説明 'params' => ... スクリプトへのパスとパラメータ )); debug_zval_dump ( $x ); ?> 例2 依存性を用いた win32_create_service() の例 依存性がある 'dummyphp' というショートネームのサービスを作ります。 <?php $x = win32_create_service (array( 'service' => 'dummyphp' , // サービ ...
-
https://man.mtool.work/php/8.3/function.win32-create-service.html