Running Magento under HHVM based on a Hypernode server

A couple of notes before going into a possible solution: 

  1. Magento itself does not support HHVM 
  2. HHVM is closer to PHP 5.5 than PHP 5.3/5.4 -€“ Magento support for 5.5 will only be released with 1.9.1 and 1.14.1 -€“ at minimum make sure that you have included Magento'€™s 5.4 patches if you are on an older version 
  3. Please confirm that Magento default pdfs work correctly without our extensions installed (including a logo) 
  4. Make sure the HHVM user has the same access rights as the PHP-FPM user

Make the following edit in lib/tcpdf/include/tcpdf_static.php change 

public static function objclone($object) {
	if (($object instanceof Imagick) AND (version_compare(phpversion('imagick'), '3.0.1') !== 1)) {
		// on the versions after 3.0.1 the clone() method was deprecated in favour of clone keyword
		return @$object->clone();
	}
	return @clone($object);
}

to

public static function objclone($object) {
if (($object instanceof Imagick) AND (version_compare(phpversion('imagick'), '3.0.1') !== 1)) {
// on the versions after 3.0.1 the clone() method was deprecated in favour of clone keyword
//return @$object->clone();
}
return @clone($object);
}

Still need help? Contact Us Contact Us