NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[fixed] phpexpess and ReflectionClass
Veteran

Joined: 06 Mar 2007
Posts: 148
Location: Poland
Reply with quote
Eg. Php5 + Class Reflection + getFileName() and You can forgot about correctly working pages ... why ? bad encoding ! !

So I had to remove this module from servers, becouse some persons sent to me mails that their pages wont work correctly. Ive tested it (simple eg. is running Prado's samples) and if cache is turned on there are probs - probs with encoding cache data and data can be saved with different encode than user's page is using (or server), thats why if cache is turned off there are no probs. But I cannot turn off the cache globally for all adresses.

So NuSphere Team ... please add more features to PhpExpress (eg. config which users can change - eg. cache_charset?) Smile Regards

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
Quote:
Eg. Php5 + Class Reflection + getFileName() and You can forgot about correctly working pages ... why ? bad encoding ! !

PhpExpress cache is not supposed to be charset-dependant.
Could you please post one-two samples on how to replicate the problem?

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 06 Mar 2007
Posts: 148
Location: Poland
Reply with quote
Hi... simply do this:

Apache + php5 as module + phpexpress and ...

Eg. root for test folder: "/folder" ... then download eg. Prado and put "framework" folder to /folder. Then put eg. blog sample into /folder. Change root dir in index.php and try to run it.

In this eg. Prado uses class Reflection to getting file path (method getFileName). Then Youll see "Template not found". Ive tested it and save return of "getFileName" method - if cache was enabled there was strange strings.

So that means that some caching data is wrong encoded (eg. string with Template's path).

In this eg. Apache's directive AddDefaultCharset is set to ISO-8859-2 and scripts are coded UTF-8 and php's option default_charset is set to UTF-8.


Eg. string schould be "panel\protected\pages\Home.tpl" and is ".\Home.tplĎCˆ—". Nice ;-D

_________________
ML
View user's profileFind all posts by introSend private messageVisit poster's website
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
Thanks for the report!
The problem is fixed in version 1.4.2 which will be released in next few days.
All customers are welcome with their requests to get the modules right now! http://shop.nusphere.com/contact_us/

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[fixed] phpexpess and ReflectionClass
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic