php7mar
php7mar copied to clipboard
PHP 7 Migration Assistant Report (MAR)
Wondering what is going wrong, getting this message: `PHP Notice: Undefined index: line in /home/xxxxxxi/public_html/testbed/mar.php on line 126` The report reads like this: ``` 2017-10-05T13:55:47-05:00 Scanning /home/xxxxxxi/public_html/testbed/mem Including file extensions:...
When the file can not be accessed (broken symlink, etc.), there will be [a warning](https://github.com/Alexia/php7mar/blob/9c3e0850542f332d10668ce94dd59fb0edcef475/classes/scanner.php#L101). ``` PHP Warning: file(/home/user/project/some-file.php): failed to open stream: No such file or directory in /home/user/php7mar/classes/scanner.php...
This may be useful on large codebases, to track issues that were investigated and found to be false positives (especially if changes will be made later before running php7mar again,...
Some directories may have test failures immediately noticed, especially test folders (E.g. /tests/, vendor/phpunit and it's dependencies, etc.) An exclude CLI flag with a regex to use to search the...
This is helpful on large projects, to confirm that progress is being made and to allow users to guess how much time is left.
So, something like: Put #!/usr/bin/env php at the begining of mar.php chmod +x mar.php Rename mar.php to mar Put "bin": ["mar"] in composer.json Then if vendor/bin is in the path,...
All ext/mssql functions were made incompatible with PHP 7, see http://php.net/manual/en/migration70.incompatible.php. This adds detection in and into the test cases. Tested working on an existing codebase.
It is not new operator withh reference ``` # critical #### D:\user.php * newOperatorWithReference * Line 174: ` if (isset($expiration_date) && new \DateTime($expiration_date) ```
`not_mysql_affected_rows()` or `namespace_mysql_affected_rows()` should not be considered a match, as they are different functions.