From d7e83b4012bd2bc3e6bf0eb98b3fe41b2e12343b Mon Sep 17 00:00:00 2001 From: Pedro Mello Date: Mon, 17 Apr 2023 14:38:10 -0300 Subject: [PATCH 1/2] Fix warning when session_regenerate_id is called uppon an already started session and self:: is still false; --- lib/storage/sfSessionStorage.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/storage/sfSessionStorage.class.php b/lib/storage/sfSessionStorage.class.php index ebd669c3e..3dc599edf 100644 --- a/lib/storage/sfSessionStorage.class.php +++ b/lib/storage/sfSessionStorage.class.php @@ -164,7 +164,7 @@ public function regenerate($destroy = false) } // regenerate a new session id once per object - session_regenerate_id($destroy); + @session_regenerate_id($destroy); self::$sessionIdRegenerated = true; } From 67b0c2c87295556cb8f8522b6f8c808b984f15f5 Mon Sep 17 00:00:00 2001 From: Pedro Mello Date: Mon, 16 Sep 2024 16:53:30 -0300 Subject: [PATCH 2/2] * fix: notice on sfFormField __construct --- lib/form/sfFormField.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/form/sfFormField.class.php b/lib/form/sfFormField.class.php index 0d04cd478..fc111e6da 100644 --- a/lib/form/sfFormField.class.php +++ b/lib/form/sfFormField.class.php @@ -41,7 +41,7 @@ class sfFormField * @param string $value The field value * @param sfValidatorError $error A sfValidatorError instance */ - public function __construct(sfWidgetForm $widget, ?sfFormField $parent = null, $name, $value, ?sfValidatorError $error = null) + public function __construct(sfWidgetForm $widget, ?sfFormField $parent = null, $name = '', $value = null, ?sfValidatorError $error = null) { $this->widget = $widget; $this->parent = $parent;