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 | |
/* | |
* Test how function calls compare to direct variable access for simple things | |
* like switching some flag/option. | |
* | |
* Output should show something like: | |
* | |
* Direct access took: 0.14991188049316s | |
* Function call took: 0.55304503440857s |
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 | |
/* | |
* Just upload it to root directory of Symphony CMS installation and access it through web browser, e.g., | |
* http://www.example.com/mutex.php | |
* | |
* It should output text like: | |
* | |
* Try: http://www.example.com/mutex.php?mode=block | |
* Blocking: Acquired |
NewerOlder