Nothing will run after a return, plus this will make filtersie work in php7.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | filtersie-2503541-2.patch | 353 bytes | derjochenmeyer |
| remove-break.patch | 422 bytes | joshtaylor |
Nothing will run after a return, plus this will make filtersie work in php7.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | filtersie-2503541-2.patch | 353 bytes | derjochenmeyer |
| remove-break.patch | 422 bytes | joshtaylor |
Comments
Comment #1
drikc commentedHello,
What does php7 complain for this portion of code?
PS: the code is the one from http://vikjavev.no/computing/ump.php and is inserted in filtersie "as a library".
Comment #2
derjochenmeyer commentedIts enough to remove the useless
breakto resolve the error. What so ever the first patch fixes an addtional error.Drush teriminates with the following error on every site that uses FiltersIE, since Drush sometimes uses a different PHP version, this error makes drush unusable even on sites running PHP 5.x.
Comment #4
drikc commentedComment #6
hkirsman commentedWhy is the 'imagedestroy($img);' there. It's not executed because it's after return..
Comment #7
drikc commentedSee comment #1; that code was inserted as it is: http://vikjavev.no/computing/ump.php
Comment #8
hkirsman commentedok, but it still doesn't make sense :)