Skip to content

Could not read file:  #4089

@bytestream

Description

@bytestream

Support question

I am seeing the below error when analysing a file:

[obfuscated].php
--- consumed 0 B, total 214.5 MB
Result cache was not saved because of non-ignorable exception: Could not read file: 
 ------ ----------------------------- 
  Line   [obfuscated].php  
 ------ ----------------------------- 
         Could not read file:         
 ------ ----------------------------- 

The issue occurs when the file uses a function which exists in an Ioncube encoded file. For example,

<?php

function foo() {
    ioncubeEncodedFunction();
}

If I delete the function usages, the issue goes away.

I have a PHPStan bootstrap file and have checked that ioncubeEncodedFunction exists using function_exists.

PHPStan logs no further output beyond what is mentioned above, even when --debug and -vvv are used.

Please can you help me to debug this further?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions