« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 60 for tests (0.003 sec.)
例外によるエラー処理の有効化および無効化を行う 10703
« RarException::isUsingExceptions Zip » PHP Manual RarException 例外によるエラー処理の有効化および無効化を行う 検索 RarException::setUsingExceptions (PECL rar >= 2.0.0) RarException::setUsingExceptions — 例外によるエラー処理の有効化および無 ... ol(false) Warning: RarArchive::open(): Failed to open does_not_exist.rar: ERAR_EOPEN (file open error) in C:\php_rar\trunk\tests\test.php on line 3 bool(false) bool(true) Fatal error: Uncaught exception 'RarException' with message 'unRAR internal erro ... r: Failed to open does_not_exist.rar: ERAR_EOPEN (file open error)' in C:\php_rar\trunk\tests\test.php:8 Stack trace: #0 C:\php_rar\trunk\tests\test.php(8): RarArchive::open('does_not_exist....') #1 {main} thrown in ... C:\php_rar\trunk\tests\test.php on line 8 参考 RarException::isUsingExceptions() - 例外によるエラー処理を使っているかどうかを調べる 関連キーワード ...
https://man.mtool.work/php/8.3/rarexception.setusingexceptions.html
例外によるエラー処理の有効化および無効化を行う 10557
« RarException::isUsingExceptions Zip » PHP Manual RarException 例外によるエラー処理の有効化および無効化を行う 検索 RarException::setUsingExceptions (PECL rar >= 2.0.0) RarException::setUsingExceptions — 例外によるエラー処理の有効化および無 ... ol(false) Warning: RarArchive::open(): Failed to open does_not_exist.rar: ERAR_EOPEN (file open error) in C:\php_rar\trunk\tests\test.php on line 3 bool(false) bool(true) Fatal error: Uncaught exception 'RarException' with message 'unRAR internal erro ... r: Failed to open does_not_exist.rar: ERAR_EOPEN (file open error)' in C:\php_rar\trunk\tests\test.php:8 Stack trace: #0 C:\php_rar\trunk\tests\test.php(8): RarArchive::open('does_not_exist....') #1 {main} thrown in ... C:\php_rar\trunk\tests\test.php on line 8 参考 RarException::isUsingExceptions() - 例外によるエラー処理を使っているかどうかを調べる 関連キーワード ...
https://man.mtool.work/php/8.3/rarexception.setusingexceptions.html
変数が数字または数値形式の文字列であるかを調べる 9845
« is_null is_object » PHP Manual 変数操作 関数 変数が数字または数値形式の文字列であるかを調べる 検索 is_numeric (PHP 4, PHP 5, PHP 7, PHP 8) is_numeric — 変数が数字または数値形式の文字列であるかを調べる 説明 function is_numeric ( mixed $val ... の関数は true を返すようになりました。 これより前のバージョンでは、 false を返していました。 例 例1 is_numeric() の例 <?php $tests = array( "42" , 1337 , 0x539 , 02471 , 0b10100111001 , 1337e0 , "0x539" , "02471" , "0b10100111001" , "1337e0" , "not nume ... ric" , array(), 9.1 , null , '' , ); foreach ( $tests as $element ) { if ( is_numeric ( $element )) { echo var_export ( $element , true ) . " is numeric" , PHP_EOL ; } else { e ... eric array ( ) is NOT numeric 9.1 is numeric NULL is NOT numeric '' is NOT numeric 例2 空白文字と is_numeric() 関数 <?php $tests = [ " 42" , "42 " , "\u{A0}9001" , // non-breaking space "9001\u{A0}" , // non-breaking space ]; foreach ( $tests as $elem ...
https://man.mtool.work/php/8.3/function.is-numeric.html
変数が数字または数値形式の文字列であるかを調べる 9845
« is_null is_object » PHP Manual 変数操作 関数 変数が数字または数値形式の文字列であるかを調べる 検索 is_numeric (PHP 4, PHP 5, PHP 7, PHP 8) is_numeric — 変数が数字または数値形式の文字列であるかを調べる 説明 function is_numeric ( mixed $val ... の関数は true を返すようになりました。 これより前のバージョンでは、 false を返していました。 例 例1 is_numeric() の例 <?php $tests = array( "42" , 1337 , 0x539 , 02471 , 0b10100111001 , 1337e0 , "0x539" , "02471" , "0b10100111001" , "1337e0" , "not nume ... ric" , array(), 9.1 , null , '' , ); foreach ( $tests as $element ) { if ( is_numeric ( $element )) { echo var_export ( $element , true ) . " is numeric" , PHP_EOL ; } else { e ... eric array ( ) is NOT numeric 9.1 is numeric NULL is NOT numeric '' is NOT numeric 例2 空白文字と is_numeric() 関数 <?php $tests = [ " 42" , "42 " , "\u{A0}9001" , // non-breaking space "9001\u{A0}" , // non-breaking space ]; foreach ( $tests as $elem ...
https://man.mtool.work/php/8.3/function.is-numeric.html
This method checks whether a key is part of the hash 9132
« QuickHashIntHash::delete QuickHashIntHash::get » PHP Manual QuickHashIntHash This method checks whether a key is part of the hash 検索 QuickHashIntHash::exists (PECL quickhash >= Unknown) QuickHashIntHash::exists — This method checks whet ... ments: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $hash -> add ( $key , 56 ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries as $key ) { $foundCount += $hash -> exists ( $key ); } echo "Done ... 上の例の出力は、 たとえば以下のようになります。 Creating hash: 1263588703.0748 Adding elements: 1263588703.0757 Doing 1000 tests: 1263588703.7851 Done, 898 found: 1263588703.7897 関連キーワード: hash QuickHashIntHash exists whether method checks entry ... found microtime part elements foundCount existingEntries rand flip testForEntries Creating Adding foreach Doing tests delete quickhash Unknown provided ...
https://man.mtool.work/php/8.3/quickhashinthash.exists.html
This method checks whether a key is part of the set 9132
« QuickHashIntSet::delete QuickHashIntSet::getSize » PHP Manual QuickHashIntSet This method checks whether a key is part of the set 検索 QuickHashIntSet::exists (PECL quickhash >= Unknown) QuickHashIntSet::exists — This method checks whethe ... ng elements: " , microtime ( true ), "\n" ; foreach( $existingEntries as $key ) { $set -> add ( $key ); } echo "Doing 1000 tests: " , microtime ( true ), "\n" ; foreach( $testForEntries as $key ) { $foundCount += $set -> exists ( $key ); } echo "Done, ... 上の例の出力は、 たとえば以下のようになります。 Creating set: 1263588703.0748 Adding elements: 1263588703.0757 Doing 1000 tests: 1263588703.7851 Done, 898 found: 1263588703.7897 関連キーワード: QuickHashIntSet exists whether method checks entry found ... microtime part elements foundCount existingEntries rand flip testForEntries Creating Adding foreach Doing tests delete getSize quickhash Unknown provided ...
https://man.mtool.work/php/8.3/quickhashintset.exists.html
テキスト形式で取得する 8841
« RarArchive::setAllowBroken RarEntry » PHP Manual RarArchive テキスト形式で取得する 検索 RarArchive::__toString (PECL rar >= 2.0.0) RarArchive::__toString — テキスト形式で取得する 説明 public function RarArchive::__toString (): string この ... arch -> close (); echo $rar_arch . "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" (closed) 関連キーワード: RarArchive rar テキスト ... toString arch close php latest winrar オブジェクト 表現 パラメータ open echo Archive trunk tests setAllowBroken Search RarEntry ...
https://man.mtool.work/php/8.3/rararchive.tostring.html
テキスト形式で取得する 8710
« RarArchive::setAllowBroken RarEntry » PHP Manual RarArchive テキスト形式で取得する 検索 RarArchive::__toString (PECL rar >= 2.0.0) RarArchive::__toString — テキスト形式で取得する 説明 public function RarArchive::__toString (): string この ... arch -> close (); echo $rar_arch . "\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" RAR Archive "D:\php_rar\trunk\tests\latest_winrar.rar" (closed) 関連キーワード: RarArchive テキスト toS ... tring arch latest winrar 表現 Archive trunk tests setAllowBroken RarEntry オープン アーカイブ ボリューム フルパス リソース デバッグ 書式 保証 中身 未定義 closed ...
https://man.mtool.work/php/8.3/rararchive.tostring.html
テスト 8565
« インストール手順 実行時設定 » PHP Manual インストール/設定 テスト 検索 テスト OCI8 のテストスイートは ext/oci8/tests にあります。 OCI8 のテストを実行すると、テストが失敗したときのログがこのディレクトリに記録されます。 PHP のテストを実行す ... hp_src_directory $ make test OCI8 のテストだけを実行する場合は、このようにします。 $ cd your_php_src_directory $ make test TESTS=ext/oci8 テストが終了したら、失敗したテストを見直します。 遅いシステムで実行した場合は、 run-tests.php のデフォルトのタイム ... 関連キーワード: Oracle 場合 oracle データベース 失敗 接続 環境 export php 編集 test 変数 インストール 手順 スイート ext oci tests details inc ...
https://man.mtool.work/php/8.3/oci8.test.html
テスト 8565
« インストール手順 実行時設定 » PHP Manual インストール/設定 テスト 検索 テスト OCI8 のテストスイートは ext/oci8/tests にあります。 OCI8 のテストを実行すると、テストが失敗したときのログがこのディレクトリに記録されます。 PHP のテストを実行す ... hp_src_directory $ make test OCI8 のテストだけを実行する場合は、このようにします。 $ cd your_php_src_directory $ make test TESTS=ext/oci8 テストが終了したら、失敗したテストを見直します。 遅いシステムで実行した場合は、 run-tests.php のデフォルトのタイム ... ータベースを再起動します。 SQL> startup force 関連キーワード: Oracle oracle データベース 接続 環境 export 編集 変数 スイート tests details 方法 system シェル マシン oraenv variables order directory make 実行時 ログ 記録 user password ...
https://man.mtool.work/php/8.3/oci8.test.html
PREV 1 2 3 4 5 6 NEXT