php-dependencies icon indicating copy to clipboard operation
php-dependencies copied to clipboard

Problem with "phps" files

Open danielmarschall opened this issue 5 years ago • 1 comments

Hello,

I have found a small problem. In my source codes, I have some ".phps" files (PHP source)

These files make some trouble in scan-dependencies.php :

Example:

PHP Warning: file_get_contents(/..../example.php): Failed to open stream: No such file or directory in /.../php-dependencies/CodeDependency.php on line 59

The actual existing file is called example.phps .

I think the RegEx php_file_match should be adjusted so that also .phps, .php3, .php4, etc. files are allowed.

But there is still another issue:

Eclipse creates the following files:

$ ls -l /.../.settings/
-rw-r--r-- 1 root root   359 Nov  7 12:26 org.eclipse.core.resources.prefs
-rw-r--r-- 1 root root  1363 Nov  7 12:26 org.eclipse.php.core.prefs
-rw-r--r-- 1 root root 18836 Nov  7 12:26 org.eclipse.php.formatter.core.prefs
-rw-r--r-- 1 root root   148 Nov  7 12:26 org.eclipse.php.ui.prefs
-rw-r--r-- 1 root root   308 Nov  7 12:26 org.eclipse.wst.common.project.facet.core.xml
-rw-r--r-- 1 root root   870 Nov  7 12:26 org.eclipse.wst.html.core.prefs
-rw-r--r-- 1 root root  2901 Nov  7 12:26 org.eclipse.wst.jsdt.core.prefs
-rw-r--r-- 1 root root    49 Nov  7 12:26 org.eclipse.wst.jsdt.ui.superType.container
-rw-r--r-- 1 root root     6 Nov  7 12:26 org.eclipse.wst.jsdt.ui.superType.name

These files give the error message:

PHP Warning: file_get_contents(/.../.settings/org.eclipse.php): Failed to open stream: No such file or directory in /.../php-dependencies/CodeDependency.php on line 59

However, these files are obviously no PHP files.

danielmarschall avatar Nov 07 '20 18:11 danielmarschall

i have another app which use sqlmap when i checked i got the some warning message. i checked the directory theni found that the file is called "example.php_" i just renamed it to "example.php" then the error gone

DonXirus avatar Jul 25 '22 15:07 DonXirus