- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
foo.php
<?php //require_once('regions.php'); require_once (dirname(__FILE__) . '/regions.php'); // common may be called from other dirs
phpcbf --version
PHP_CodeSniffer version 2.4.0 (stable) by Squiz (http://www.squiz.net)
phpcbf foo.php
Changing into directory /home/john/public_html/v3
Processing foo.php [PHP => 17 tokens in 3 lines]... DONE in 0ms (2 fixable violations)
=> Fixing file: 0/2 violations remaining [made 2 passes]... DONE in 2ms
foo.php
<?php //require_once('regions.php'); require_oncedirname(__FILE__) . '/regions.php'; // common may be called from other dirs
php foo.php
PHP Fatal error: Call to undefined function require_oncedirname() in /home/john/public_html/v3/foo.php on line 3