Re: [SMARTY] OS X issues?

From: Date: Thu, 02 May 2002 15:28:58 +0000
Subject: Re: [SMARTY] OS X issues?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3993@lists.php.net to get a copy of this message
Yup, same thing. Ed's script returns: Making directory "./foo" with a umask of 0000 Listing /bin/ls -al ./mkdirtests/: total 0
drwxr-xr-x   3 www  www     58 May  2 16:23 .
drwxrwxrwx 10 ben staff 296 May 2 16:22 ..
d---------   2 www  www     24 May  2 16:23 foo
At some point later on today I'll try building PHP from Fink (fink.sourceforge.net). They have 4.0.6-4 and 4.1.2-1, so I'll try 4.1.2-1 first. If I can get it out of their unstable tree... Ben On Thursday, May 2, 2002, at 04:16 PM, Ed Finkler wrote:
From what I can tell, the issue is with the entropy.ch build of PHP4.2.0. My initial testing of the mkdir() func gives me the same results I was seeing with smarty: the directory is made, but no permissions are set, as if the www user's umask was set to 0777. Specifically setting the umask to 0000 didn't help. Here's the script I used to test this. I'd be curious to know what results other OS X users get, and which PHP build they are using. Note that the "mkdirtests" directory was set up ahead of time, with ownership set to www:www. <? $basedir = "./mkdirtests/"; $newdir = "foo"; $fullpath = $basedir . $newdir; $lscmd = "/bin/ls -al $basedir"; ?> <p>Making directory "./foo" with a umask of 0000<br> <? $oldumask = umask(0000); mkdir ($fullpath, 0700); umask($oldumask); ?> <p>Listing <?="$lscmd"?>:<br> <pre> <? passthru( "$lscmd"); ?> </pre> -- Ed Finkler Web and Security Archive Administrator CERIAS - Purdue University http://www.cerias.purdue.edu/ v: 765.496.6771 f: 764.496.3181


« previous php.smarty.general (#3993) next »