classMysqliExtension
final class MysqliExtension
implements ExtensionInterface
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
The mysqli API, in both its object and its procedural form.
Methods§
public function name(): stringThe name the command line selects this extension by.
Returns
stringTest cases 1
public function description(): stringWhat the extension covers.
Returns
stringTest cases 1
public function sinks(): list<SinkSpec>The mysqli calls that carry a statement or bind a value to one.
Returns
list<SinkSpec>Test cases 6
CallEvaluatorTest::testEvaluateFunctionHandsBackWhatADatabaseCallHandsBackcallsInterpreterTest::testAnalyzeBindsWhatAQueryCallCarriesAlongsideItsStatementcallsInterpreterTest::testSinkOfReadsANullsafeCallAndAFunctionCallcallsSinkMatcherTest::testMatchFunctionFindsTheFreeFunctioncallsMysqliExtensionTest::testEverySinkIsDescribedExactlycallsMysqliExtensionTest::testSinksCoverBothTheObjectAndTheProceduralApicalls
Calls 3
- function-call
array_mergeline 46 - method-call MysqliExtension::methodSinks() line 46
- method-call MysqliExtension::functionSinks() line 46
public function methodSinks(): list<SinkSpec>The calls written on a mysqli or mysqli_stmt object.
Returns
list<SinkSpec>Test cases 1
Called from 1
Calls 6
- new SinkSpec line 57
- class-const SinkCallKind::Method() line 57
- class-const SinkRole::Query() line 57
- class-const SinkRole::Prepare() line 74
- class-const SinkRole::Bind() line 83
- class-const SinkRole::Execute() line 91
public function functionSinks(): list<SinkSpec>The calls written as mysqli_* functions.
Returns
list<SinkSpec>Called from 1
Calls 4
- new SinkSpec line 105
- class-const SinkCallKind::FunctionCall() line 105
- class-const SinkRole::Query() line 105
- class-const SinkRole::Prepare() line 122
public function globals(): array<string, string>The extension declares no globals.
Returns
array<string, string>Test cases 22§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 7
MysqliExtensionTest::testDescriptionMentionsWhatItCoverscallsMysqliExtensionTest::testEverySinkIsDescribedExactlycallsMysqliExtensionTest::testFunctionSinksTakeTheStatementAsTheSecondArgumentcallsMysqliExtensionTest::testGlobalsAreEmptyBecauseTheHandleIsNotReachedThroughOnecallsMysqliExtensionTest::testMethodSinksBindVariadicValuescallsMysqliExtensionTest::testNameIsHowTheCommandLineSelectsItcallsMysqliExtensionTest::testSinksCoverBothTheObjectAndTheProceduralApicalls
Other tests reaching this symbol 15
CatalogCommandTestcallsUsageTextTestcallsCallEvaluatorTest::testEvaluateFunctionHandsBackWhatADatabaseCallHandsBackcallsExpressionEvaluatorTestcallsInterpreterTest::testAnalyzeBindsWhatAQueryCallCarriesAlongsideItsStatementcallsInterpreterTest::testSinkOfReadsANullsafeCallAndAFunctionCallcallsSinkMatcherTest::testMatchFunctionFindsTheFreeFunctioncallsExtensionInterfaceTest::testDescriptionIsAlwaysWrittencallsExtensionInterfaceTest::testGlobalsAreDeclaredOnlyByAnExtensionThatHandsOneOutcallsExtensionInterfaceTest::testNameIsUniqueAcrossTheExtensionsThatShipcallsExtensionRegistryTest::testNamesAreAlphabeticalcallsCallModelTestcallsAnalyzerTestcallsJsonReporterTestcallsTextReporterTestcalls