[TYPO3-dam] The new DAM only with PHP5?
Peter Kühn
peter.kuehn at wmdb.de
Mon Jan 2 13:48:21 CET 2006
Hello,
at first: I wish you all a DAMned great 2006!
There are two PHP5-only functions (stripos and str_ireplace) used in
snapshot dam_src-20051228-01.
stripos:
typo3conf\ext\dam\lib\class.tx_dam_actionbase.php (Line 405)
typo3conf\ext\dam\lib\class.tx_dam_scbase.php (Line 1301)
str_ireplace:
typo3conf\ext\dam\lib\class.tx_dam_actionbase.php (Line 406)
typo3conf\ext\dam\lib\class.tx_dam_scbase.php (Line 1302)
To get around this quickly I used PHP_Compat quickNdirty wrapped in an
extension (you can get it here: http://www.wmdb.de/index.php?id=197)
@Rene: maybe this is generally a solution that works for you as well?
Just including the two files (stripos.php and str_ireplace.php) - maybe
your dam/compat/-folder might be a good place - and require them in the
ext_localconf if (!function_exists('stripos')) and you dont have to
rework your code.
greetings from ddorf
pekue
Christoforos Christou schrieb:
> Hello,
>
> does the new DAM work only with PHP5?
> On my debian with:
> Apache 1.3
> PHP4
> TYPO3 4beta
> and the developersnapshot dam_src-20051228-01
> I receive this error message when clicking on the menu media>file:
>
> Fatal error: Call to undefined function: stripos() in
> /web/t34beta/htdocs/typo3conf/ext/dam/lib/class.tx_dam_actionbase.php
> on line 405
> (all chmod- and owner/group-settings are correct)
>
> http://www.php.net/stripos says, stripos() is a PHP5-function
>
> have a nice year
>
> Christoforos
>
>
More information about the TYPO3-project-dam
mailing list