--- ./Image/Canvas/PS.php.orig 2010-05-15 11:53:04.000000000 +0200
+++ ./Image/Canvas/PS.php 2010-05-15 11:53:04.000000000 +0200
@@ -991,14 +991,14 @@
$php_info = ob_get_contents();
ob_end_clean();
- if (ereg("
]*>pslib Version *<\/td> | ]*>([^<]*)<\/td>",
+ if (preg_match("/ | ]*>pslib Version *<\/td> | ]*>([^<]*)<\/td>/",
$php_info, $result))
{
$version = $result[1];
}
}
- if (ereg('([0-9]{1,2})\.[0-9]{1,2}(\.[0-9]{1,2})?', trim($version), $result)) {
+ if (preg_match('/([0-9]{1,2})\.[0-9]{1,2}(\.[0-9]{1,2})?/', trim($version), $result)) {
return $result[1];
} else {
return $version;
|