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 | |
$a = new SplFixedArray(1); | |
$a[0] = array(); | |
$a[0][] = 'test'; // notice error | |
// --------------- | |
$a = new SplFixedArray(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
<?php | |
/* | |
* Several strings to interpret | |
* With possibly several expressions in each of those | |
* In the service where the cloud lies within | |
* One string to interpret, One string to ease the perfs | |
* One string to bring out some stats, and in an array binds them | |
* In the service where the cloud lies within | |
*/ | |
// some code bitch § |
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
server { | |
server_name localhost; | |
listen 8080; | |
root /my/relative/project/web; | |
access_log /var/log/nginx/my_project.access.log; | |
error_log /var/log/nginx/my_project.error.log; | |
include /etc/nginx/symfony_default.conf; | |
} |
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 | |
trait ArrayTestCaseTrait | |
{ | |
/** | |
* Asserts that two associative arrays are similar. | |
* | |
* Both arrays must have the same indexes with identical values | |
* without respect to key ordering | |
* |
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 | |
const FILE_LOG = 'webhook.log'; | |
ensure_log_access(); | |
switch ($_SERVER['REQUEST_METHOD']) { | |
case 'HEAD': | |
add_log("Subscription works!"); |