contao/test — Issue #1004: Compatibility problem with hooks and PHP 5.2.10
Author: importer
Created: 2011-11-29 07:10:49+00:00
State: open
Labels: Defect, framework, Invalid

When testing my site in PHP 5.2.10, I've seen strange errors due to the "getPageIdFromUrl" hook I used:

```
Runtime notice: Declaration of ProcessForm::getPageIdFromUrl() should be compatible with that of Frontend::getPageIdFromUrl() in /Applications/MAMP/htdocs/macrogram27/system/modules/processform/ProcessForm.php on line 167
```

The problem is the original declaration of this function in Frontend.php is

```
protected function getPageIdFromUrl()
```

and the one used in the hook from file ProcessForm.php is

```
public function getPageIdFromUrl($arrFragments)
```

As I can see in [this french site](http://blog.mageekbox.net/?post/2009/08/07/Il-y-avait-longtemps...,) the problem will not be solved in PHP 5.3

--- _Originally created by anonymous on September 11th, 2009, at 05:13pm (ID 1004)_