Re: [SMARTY] OS X issues?

From: Date: Thu, 02 May 2002 15:16:49 +0000
Subject: Re: [SMARTY] OS X issues?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3991@lists.php.net to get a copy of this message
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 (#3991) next »