be38e15323
PR: 146453 Submitted by: olli hauer <ohauer@gmx.de> (maintainer)
19 lines
800 B
PHP
19 lines
800 B
PHP
--- ./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("<td[^>]*>pslib Version *<\/td><td[^>]*>([^<]*)<\/td>",
|
|
+ if (preg_match("/<td[^>]*>pslib Version *<\/td><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;
|