1 |
snetram |
1.1 |
diff -up e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes.remove-version-check e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes |
2 |
|
|
--- e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes.remove-version-check 2011-09-19 16:41:57.000000000 +0200 |
3 |
|
|
+++ e-smith-php-2.2.0/root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes 2011-09-19 16:42:31.000000000 +0200 |
4 |
|
|
@@ -1,18 +1,5 @@ |
5 |
|
|
{ |
6 |
|
|
|
7 |
|
|
- use version; |
8 |
|
|
- |
9 |
|
|
- open (PHP, 'php -v | grep built | cut -d " " -f 2 |'); |
10 |
|
|
- my $current = <PHP> || "0.0.0"; |
11 |
|
|
- close PHP; |
12 |
|
|
- |
13 |
|
|
- chomp $current; |
14 |
|
|
- $current = "v$current"; |
15 |
|
|
- |
16 |
|
|
- my $treshold = version->new("v5.3.0"); |
17 |
|
|
- |
18 |
|
|
- return unless $current >= $treshold; |
19 |
|
|
- |
20 |
|
|
$DB->get_prop_and_delete ('php', 'MagicQuotes'); |
21 |
|
|
|
22 |
|
|
} |