[packages/php-symfony] Rel 8; restore original symfony behaviour
arekm
arekm at pld-linux.org
Sat May 30 23:30:21 CEST 2026
commit eba015f36157e9ad3701a9a17d4f7356196df148
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat May 30 23:29:57 2026 +0200
Rel 8; restore original symfony behaviour
php-symfony.spec | 2 +-
symfony1.4_php56.patch | 17 ++++++++---------
2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/php-symfony.spec b/php-symfony.spec
index b730cec..8c84cfb 100644
--- a/php-symfony.spec
+++ b/php-symfony.spec
@@ -8,7 +8,7 @@ Summary: Open-source PHP web framework
Summary(pl.UTF-8): Szkielet aplikacji WWW w PHP o otwartych źródłach
Name: php-%{pkgname}
Version: 1.4.20
-Release: 7
+Release: 8
License: various free licenses (distributable)
Group: Development/Languages/PHP
Source0: http://www.symfony-project.org/get/symfony-%{version}.tgz
diff --git a/symfony1.4_php56.patch b/symfony1.4_php56.patch
index 0eb05d1..21ef5f0 100644
--- a/symfony1.4_php56.patch
+++ b/symfony1.4_php56.patch
@@ -108,21 +108,20 @@ diff -Naurp symfony/lib/util/sfInflector.class.php symfony_php56/lib/util/sfInfl
diff -Naurp symfony/lib/util/sfToolkit.class.php symfony_php56/lib/util/sfToolkit.class.php
--- symfony/lib/util/sfToolkit.class.php 2010-05-19 15:01:43.000000000 +0200
+++ symfony_php56/lib/util/sfToolkit.class.php 2015-11-22 12:40:22.655537197 +0100
-@@ -608,4 +608,17 @@ class sfToolkit
+@@ -608,4 +608,16 @@ class sfToolkit
return set_include_path(join(PATH_SEPARATOR, $paths));
}
+
+ public static function camelize($text)
+ {
-+ if (preg_match('#/(.?)#', $text, $matches))
-+ {
-+ $text = str_replace($matches[0], '::'.strtoupper($matches[1]), $text);
-+ }
-+ if (preg_match('/(^|_|-)+(.)/', $text, $matches))
-+ {
-+ $text = str_replace($matches[0], strtoupper($matches[2]), $text);
-+ }
++ $text = preg_replace_callback('#/(.?)#', function ($matches) {
++ return '::'.strtoupper($matches[1]);
++ }, $text);
++ $text = preg_replace_callback('/(^|_|-)+(.)/', function ($matches) {
++ return strtoupper($matches[2]);
++ }, $text);
++
+ return $text;
+ }
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-symfony.git/commitdiff/eba015f36157e9ad3701a9a17d4f7356196df148
More information about the pld-cvs-commit
mailing list