Broken in PHP 7.0+

Found a bug?

Broken in PHP 7.0+

Postby goldfish » Sat Oct 14, 2017 12:01 am

I've been running your converter locally and recently did a system upgrade. With the new version of PHP 7.0 the split function was removed. I noticed it was only used in one spot to figure out the extension of the uploaded file in step2.php. I've included the function with a fix below that I used to get it working. The commented out lines are the original code. Thanks for writing this, and the tutorials... all really great.
Code: Select all
//extract file extension
function findext ($filename)
{
$filename = strtolower($filename) ;
//$exts = split("[/\\.]", $filename) ;
//$n = count($exts)-1;
//$ext = $exts[$n];
$ext = pathinfo($filename, PATHINFO_EXTENSION);
return $ext;
}
goldfish
 
Posts: 2
Joined: Fri Oct 13, 2017 11:53 pm

Re: Broken in PHP 7.0+

Postby svg2embr » Fri Oct 27, 2017 10:00 pm

Thank you so much for fixing this! I have not worked neither on this code nor embroidery-design for a long while now so it would take me some time both to discover the error and to fix it.
Working mother of two.
Sewing on Singer Futura C-350.
User avatar
svg2embr
Site Admin
 
Posts: 14
Joined: Fri Feb 28, 2014 8:15 pm


Return to Error reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron