I have tracked it down to the src attribute of the image.
Example:
In the function file /admin/includes/functions/html_functions.php: function tep_image I have added this at the end of the function
Code: Select all
// DEBUG
$start = microtime(true);
// convert to string
$str_image = "$image";
$time_elapsed_secs = microtime(true) - $start;
print_r("<br>ConversionTime(sec):" . $time_elapsed_secs." , src:" . $src . "<br>");
return $str_image;
// END DEBUG
// return = "$image";
Image Object ( [prefix] => .../web/V2_Phoenix/admin/ [parameters:protected] => Array (
[src] => images/CE-Phoenix-30-30.png
[border] => 0
[alt] => CE Phoenix v1.0.8.1
[width] => 30
[height] => 30
[title] => CE Phoenix v1.0.8.1
)
)
ConversionTime(sec):0.00018000602722168 , src:images/CE-Phoenix-30-30.png
...
Result for image WITH full url in src:
Image Object ( [prefix] => .../web/V2_Phoenix/admin/ [parameters:protected] => Array (
[src] => http://localhost:8000/includes/language ... s/icon.png
[border] => 0
[alt] => Swedish
[class] => img-fluid
[title] => Swedish
)
)
ConversionTime(sec):60.008405923843 , src:http://localhost:8000/includes/language ... s/icon.png
Environment:
OS: Windows 10
IDE: Apache NetBeans IDE 12.1
PHP: 7.3
Running on NetBeans Built in web server.
It is consistent behavior with my setup.
However - no production site should be run with this setup it is annoying!
Change tep_catalog_href_link function with DIR_WS_CATALOG constant where "local" images are used will fix this for me.
Is there any specific reason to have the full url as source for some image:s when the images is on the local filesystem?