1.2.967. Path lists

List of all paths that were found in the code.

Path are identified with this regex : ^(.*/)([^/]*)\.\w+$. In particular, the directory <https://www.php.net/`directory>`_ delimiter is / : Windows delimiter \ are not detected. URL are ignored when the protocol is present in the literal : http://www.example.com is not mistaken with a file.

<?php

// the first argument is recognized as an URL
fopen('/tmp/my/file.txt', 'r+');

// the string argument  is recognized as an URL
$source = 'https://www.other-example.com/';

?>

See also Dir predefined constants and Supported Protocols and Wrappers.

1.2.967.1. Specs

Short name

Type/Path

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

1.5.8

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Available in

Entreprise Edition, Community Edition, Exakat Cloud