Bug #60636 [Fbk->Opn]: Dots in folders results in a open_basedir restriction warning
Edit report at https://bugs.php.net/bug.php?id=60636&edit=1 ID: 60636 User updated by:fernando at consultorpc dot com Reported by:fernando at consultorpc dot com Summary:Dots in folders results in a open_basedir restriction warning -Status: Feedback +Status: Open Type: Bug Package:Safe Mode/open_basedir Operating System: Linux PHP Version:5.3.8 Block user comment: N Private report: N New Comment: Yes, /home/example exists. If i rename myfolder.example to myfolderexample ( no dots ), them it works as expected. Meaning that it will return false without any warnings. Previous Comments: [2012-01-03 17:06:24] larue...@php.net does that /home/example exists? I think this might has nothing to do with the *dot*, but a mis-understand warning. [2012-01-02 13:56:27] fernando at consultorpc dot com Description: If you try to access a file within a folder that has a dot, an open_basedir restriction warning will show up even if the folder is in the allowed paths list. Test script: --- function.file- exists]: open_basedir restriction in effect. File(/home/example/public_html/myfolder.example/file.php) is not within the allowed path(s): (/home/example:/usr/lib/php:/tmp) in /home/example/public_html/test.php on line 3 -- Edit this bug report at https://bugs.php.net/bug.php?id=60636&edit=1
[PHP-BUG] Bug #60636 [NEW]: Dots in folders results in a open_basedir restriction warning
From: Operating system: Linux PHP version: 5.3.8 Package: Safe Mode/open_basedir Bug Type: Bug Bug description:Dots in folders results in a open_basedir restriction warning Description: If you try to access a file within a folder that has a dot, an open_basedir restriction warning will show up even if the folder is in the allowed paths list. Test script: --- function.file- exists]: open_basedir restriction in effect. File(/home/example/public_html/myfolder.example/file.php) is not within the allowed path(s): (/home/example:/usr/lib/php:/tmp) in /home/example/public_html/test.php on line 3 -- Edit bug report at https://bugs.php.net/bug.php?id=60636&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60636&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60636&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60636&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60636&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60636&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60636&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60636&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60636&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60636&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60636&r=support Expected behavior: https://bugs.php.net/fix.php?id=60636&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60636&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60636&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60636&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60636&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=60636&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60636&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60636&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60636&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60636&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60636&r=mysqlcfg
#49590 [NEW]: htmlentities doesn't convert euro symbols
From: fernando at consultorpc dot com Operating system: Linux/Mac OSX Leopard PHP version: 5.3.0 PHP Bug Type: Strings related Bug description: htmlentities doesn't convert euro symbols Description: Htmlentities() doens't convert euro symbol correctly even when i set charset to ISO-8859-15. Reproduce code: --- http://bugs.php.net/?id=49590&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49590&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49590&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49590&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49590&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49590&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49590&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49590&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49590&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49590&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49590&r=support Expected behavior: http://bugs.php.net/fix.php?id=49590&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49590&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49590&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49590&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49590&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49590&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49590&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49590&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49590&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49590&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49590&r=mysqlcfg
#49588 [NEW]: Json_encode returns null for certain strings
From: fernando at consultorpc dot com Operating system: Linux/Mac OSX Leopard PHP version: 5.3.0 PHP Bug Type: JSON related Bug description: Json_encode returns null for certain strings Description: At my specific case, if a string contains an Euro symbol ( ), json_encode will return null for that string. It might also happens with other special characters. Reproduce code: --- htmlentities( 'My euro symbol .' ) ); var_dump( $array ); var_dump( json_encode( $array ) ); Expected result: array(1) { ["name"]=> string(29) "My euro symbol €." } string(13) "{"name":"My euro symbol €."}" Actual result: -- array(1) { ["name"]=> string(29) "My euro symbol â?¬." } string(13) "{"name":null}" -- Edit bug report at http://bugs.php.net/?id=49588&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49588&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49588&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49588&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49588&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49588&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49588&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49588&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49588&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49588&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49588&r=support Expected behavior: http://bugs.php.net/fix.php?id=49588&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49588&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49588&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49588&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49588&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49588&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49588&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49588&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49588&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49588&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49588&r=mysqlcfg