Results of 1 - 10 of about 14 for dummy (0.001 sec.)
- PHP/FFI/事前ロードの完全な例 | PHP 8.3 14634
- 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_LI
... B "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 ( "DUMMY" ); } } function printf ( $format , ... $args ) { return (int) self :: $ffi -> printf ( $format , ... $args ); } } ?> test ... .php <?php $d = new Dummy (); $d -> printf ( "Hello %s!\n" , "world" ); ?> 他のマニュアルの関連ページ Linux JM bootparams(5) Linux JM undocumented(3 ...
-
https://man.mtool.work/php/8.3/ffi.examples-complete.html
- Lua::call — Lua 関数を呼び出す | PHP 8.3 9452
- 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_self = 0 ): mixed public function Lua::__call ( callable $lua_func , arr
... それ以外のエラーの場合は 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" ...
-
https://man.mtool.work/php/8.3/lua.call.html
- Yaf_Loader クラス | PHP 8.3 9085
- Yaf_Loader クラス (Yaf >=1.0.0) はじめに Yaf_Loader は、 Yaf 用に包括的なオートローディング機能を導入します。 最初に Yaf_Application のインスタンスを取得するときに、 Yaf_Loader はシングルトンのインスタンスを作って それを spl_autoload に登録
... /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 ...
-
https://man.mtool.work/php/8.3/class.yaf-loader.html
- uopz_copy — Copy a function | PHP 8.3 8927
- 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 $function ): Closure function uopz_copy ( string $class , string $function ): C
... , $arg2 ) use( $strtotime ) { /* can call original strtotime from here */ var_dump ( $arg1 ); }); var_dump ( strtotime ( 'dummy' )); ?> 上の例の出力は以下となります。 string(5) "dummy" 他のマニュアルの関連ページ Linux JM bootparams(5) Docker docker-c ...
-
https://man.mtool.work/php/8.3/function.uopz-copy.html
- win32_create_service — SCM データベースに新しいサービスのエントリを作成する | P... 8927
- win32_create_service (PECL win32service >=0.1.0) win32_create_service — SCM データベースに新しいサービスのエントリを作成する 説明 function win32_create_service ( array $details , string $machine = null ): void 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
- 例 | PHP 8.3 8787
- 例 例1 PHP スクリプトをサービスとして登録する <?php win32_create_service (array( 'service' => 'dummyphp' , # サービスの名前 'display' => 'sample dummy PHP service' , # 短い説明 'description' => 'This is a dummy Windows service created using
... . __FILE__ . '" run' , # スクリプトへのパスとパラメータ )); ?> 例2 サービスの登録を解除する <?php win32_delete_service ( 'dummyphp' ); ?> 例3 サービスとして実行する <?php if ( $argv [ 1 ] == 'run' ) { win32_start_service_ctrl_dispatcher ( 'dummyphp' ...
-
https://man.mtool.work/php/8.3/win32service.examples.html
- Yaf_Controller_Abstract クラス | PHP 8.3 8489
- Yaf_Controller_Abstract クラス (Yaf >=1.0.0) はじめに Yaf_Controller_Abstract は Yaf システムの中心となるクラスです。 MVC は Model-View-Controller の略で、 アプリケーションのロジックと表示のロジックを切り離すためのデザインパターンです。 すべ
... ァイルでのアクションの定義 <?php class IndexController extends Yaf_Controller_Abstract { protected $actions = array( /** now dummyAction is defined in a separate file */ "dummy" => "actions/Dummy_action.php" , ); /* action method may have arguments */ p ... name == $this -> getRequest ()-> getParam ( "name" )); assert ( $id == $this -> _request -> getParam ( "id" )); } } ?> 例2 Dummy_action.php <?php class DummyAction extends Yaf_Action_Abstract { /* an action class shall define this method as the entry ...
-
https://man.mtool.work/php/8.3/class.yaf-controller-abstract.html
- Yaf_Route_Regex::__construct — Yaf_Route_Regex のコンストラクタ | PHP 8.3 8104
- Yaf_Route_Regex::__construct (Yaf >=1.0.0) Yaf_Route_Regex::__construct — Yaf_Route_Regex のコンストラクタ 説明 public function Yaf_Route_Regex::__construct ( string $match , array $route , array $map = ? , array $verify = ? , string $rever
... , //match arbitrary request uri "route" => array( 'controller' => "product" , //route to product controller, 'action' => "dummy" , //route to dummy action ), "map" => array( 1 => "uri" , // now you can call $request->getParam("uri") ), ), ); Yaf_Disp ...
-
https://man.mtool.work/php/8.3/yaf-route-regex.construct.html
- Yaf_View_Simple::assignRef — The assignRef purpose | PHP 8.3 7737
- Yaf_View_Simple::assignRef (Yaf >=1.0.0) Yaf_View_Simple::assignRef — The assignRef purpose 説明 public function Yaf_View_Simple::assignRef ( string $name , mixed &$value ): bool Yaf_View_Simple::assign() とは異なり、 このメソッドは参照で値
... ew ()-> assign ( "foo" , $value ); /* Yaf 2.1.4 より前のバージョンにはバグがあり、 * この出力が "bar" になっていました */ $dummy = $this -> getView ()-> render ( "index/index.phtml" ); echo $value ; // 自動レンダリングを無効にします Yaf_Dispatcher :: ...
-
https://man.mtool.work/php/8.3/yaf-view-simple.assignref.html
- mqseries_connx — MQSeries MQCONNX | PHP 8.3 7667
- mqseries_connx (PECL mqseries >= 0.10.0) mqseries_connx — MQSeries MQCONNX 説明 function mqseries_connx ( string $qManagerName , array &$connOptions , resource &$hconn , resource &$compCode , resource &$reason ): void The mqseries_connx() (
... ound 'MQAIR' => array( 'Version' => 2 , //MQAIR_VERSION_2 'AuthInfoType' => 2 , //MQAIT_OCSP 'OCSPResponderURL' => 'http://dummy.OCSP.responder' ) ) ); mqseries_connx ( 'QUEUEMGR' , $mqcno , $conn , $comp_code , $reason ); if ( $comp_code !== MQSERIES ...
-
https://man.mtool.work/php/8.3/function.mqseries-connx.html