1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/graphics/pear-Image_Canvas/files/patch-Image__Canvas__GD.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

24 lines
834 B
PHP

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