This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Tester { | |
function testUser(User $user): void { | |
$user->returnsUserInterface(); | |
$user->returnsUser(); | |
} | |
function testUserInterface(UserInterface $user): void { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fromLive = fopen('../var/tmp/from_live.csv', 'r'); | |
$fromTest = fopen('../var/tmp/from_test.csv', 'r'); | |
$fromLiveSame = fopen('../var/tmp/from_live_same.csv', 'w'); | |
$fromTestSame = fopen('../var/tmp/from_test_same.csv', 'w'); | |
$fromLiveDiff = fopen('../var/tmp/from_live_diff.csv', 'w'); | |
$fromTestDiff = fopen('../var/tmp/from_test_diff.csv', 'w'); | |
while (($lineLive = fgets($fromLive)) !== false) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface WrapperInterface { | |
} | |
class Wrapper implements WrapperInterface { | |
public function __construct(private readonly Wrapped $wrapped) {} | |
public function __call(string $name, array $arguments): mixed { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
numbers = [511.925,512.925,654.925,655.925] | |
functions = [ | |
"decimalFormat(##x##)", | |
"right(dollarFormat(##x##), -1)", | |
'numberFormat(##x##, "9.00")' | |
] | |
</cfscript> | |
<cfoutput> | |
<table border="1"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export SCRIPT_NAME="/ping" | |
export SCRIPT_FILENAME="/ping" | |
export REQUEST_METHOD="GET" | |
cgi-fcgi -bind -connect localhost:9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
data = [ | |
{ org: "A0", path: [0,0,0] }, | |
{ org: "A0->B1", path: [0,1,0] }, | |
{ org: "A0->B1->C1", path: [0,1,1] }, | |
{ org: "A0->B1->C2", path: [0,1,2] }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
query name="getData" { | |
``` | |
<cfsavecontent variable="sql"> | |
SELECT * FROM test WHERE id = | |
</cfsavecontent> | |
``` | |
writeOutput(sql) | |
``` | |
<cfqueryparam cfsqltype="CF_SQL_INTEGER" value="101"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
```<!--- | |
make | |
hyper text | |
transfer | |
protocol | |
request | |
--->``` | |
http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset level = 0> | |
<cfscript> | |
level++ | |
``` | |
<cfoutput>Hello from level #level#<br></cfoutput> | |
<cfscript> | |
level++ | |
``` | |
<cfoutput>Hello from level #level#<br></cfoutput> | |
<cfscript> |
NewerOlder