Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

fRequest::get and php 5.3.6 not returning a result

posted by darren 8 years ago

Hi Guys,

I have just upgraded to php 5.3.6 and am using the lastest version of flourish.

fRequest::get() no longer returns a result and have tracked it down to the fUTF8::clean() method.

at line 622 the iconv seems to be the issue...

echo $value; //returns the value
$value = iconv('UTF-8', 'UTF-8' . (self::$can_ignore_invalid ? '//IGNORE' : ''), (string) $value);
echo $value; //returns nothing

(

Thanks,

Darren

Further investigation reveals that it does not like the //IGNORE and changing it to the following works...

$value = iconv('UTF-8', 'UTF-8', (string) $value);

Can you tell me what operating system you are running on and what the output of the following code is?

echo ICONV_IMPL;
posted by wbond 8 years ago

I am guessing you are probably using MAMP. Some other users have experienced a pretty critical bug in MAMP where the iconv extension is broken. Please see ticket #646 for more details.

posted by wbond 8 years ago

Hi WB,

Sorry for the late reply...

I am using IBM AIX 5.3 and the echo statement above produces

IBM iconv

If you need me to do anything else please let me know.

Thanks,

Darren

posted by darren 8 years ago

Can you try using r1018 or newer? I made some changes that fixed issues with iconv() there for MAMP, and hopefully it will fix it for you also.

posted by wbond 8 years ago

Actually, looking at this a little longer, I'm pretty sure that fix won't help you. I believe the issue is that IBM's iconv implementation doesn't support the //IGNORE flag. I'll commit a new revision that should fix it.

posted by wbond 8 years ago

Ok, this should be fixed for you in r1022.

posted by wbond 8 years ago

Hi Will,

As always you are the man :)

Thanks,

Darren

posted by darren 8 years ago