freebsd-ports/graphics/pear-Image_Canvas/files/patch-Image__Canvas__PS.php
Martin Wilke be38e15323 - Update to 0.3.2
PR:		146453
Submitted by:	olli hauer <ohauer@gmx.de> (maintainer)
2010-06-02 16:28:38 +00:00

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;