|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-11 21:15 UTC] sniper@php.net
[2002-07-12 20:52 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 15:00:01 2026 UTC |
While trying to make a directory on a system with safe_mode enabled and LANG enviroemnt variable fi_FI@euro I came across the problem that is best demonstrated by the script below: <?php $src = '/dir/another/dir2/src'; if( !is_dir($src) ) { echo "no dir $src<br>n"; if( !@mkdir($src, 0755) ) { echo "cannot make dir: $src<Br>n"; } } ?> On the 2nd echo $src string is corrupted, the last / is replaced with a special character, which Mozilla displayes as a square. If mkdir($src, 0755) is replaced with mkdir($src.'', 0755) the memory corruption goes away.