PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Tests/Files/IncludingFileUnitTest.inc.fixed
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 1,657 bytes
 

Contents

Class file image Download
<?php // These are statements and should not have brackets. require_once 'blank.inc'; require 'blank.inc'; $test = true; // Conditionally including a class file: use include_once if ($test) { include_once 'blank.inc'; include 'blank.inc'; } // Unconditionally including a class file: use require_once require_once 'blank.inc'; require 'blank.inc'; // These are ok if ($test) { include_once 'blank.inc'; include 'blank.inc'; } require_once 'blank.inc'; require 'blank.inc'; ?> <pre> Some content goes here. <?php require_once 'blank.inc'; require 'blank.inc'; require_once 'blank.inc'; require 'blank.inc'; ?> </pre> <?php if (include_once 'blank.inc') { $var = include_once 'blank.inc'; if ($var === true) { } } if (include_once 'blank.inc') { $var = include_once 'blank.inc'; if ($var === true) { } } function get_some_value() { include_once 'blank.inc'; include 'blank.inc'; // These are ok if ($test) { include_once 'blank.inc'; include 'blank.inc'; } include_once 'blank.inc'; include 'blank.inc'; ?> <pre> Some content goes here. <?php include_once 'blank.inc'; include 'blank.inc'; include_once 'blank.inc'; include 'blank.inc'; ?> </pre> <?php if (include_once 'blank.inc') { $var = include_once 'blank.inc'; if ($var === true) { } } if (include_once 'blank.inc') { $var = include_once 'blank.inc'; if ($var === true) { } } } $var = include_once 'blank.inc'; if ($var == false) { } require_once 'blank.inc'; require_once 'blank.inc';