In testing the patch, I have a problem with the moveFile function in
php_dir/symfony/request/sfWebRequest.class.php.
This line:
public function moveFile($name, $file, $fileMode =
sfConfig::get('sf_file_perm'), $create = true, $dirMode =
sfConfig::get('sf_directory_perm'))
throws error:
Parse error: syntax error, unexpected '(', expecting ')' in /path/to/
symfony/php_dir/symfony/request/sfWebRequest.class.php on line 559

Why can't the function 'look up' the directory & file permission
settings in constants.php?
Someone please help?

The API doc for moveFile: 
http://www.symfony-project.org/api/1_0/sfWebRequest#method_movefile
(boolean) moveFile ($name, $file, $fileMode = 0666, $create = true,
$dirMode = 0777)
$name   A file name
$file   An absolute filesystem path to where you would like the file
moved. This includes the new filename as well, since uploaded files
are stored with random names
$fileMode       The octal mode to use for the new file
$create         Indicates that we should make the directory before moving the
file
$dirMode        The octal mode to use when creating the directory

Moves an uploaded file.

returns true, if the file was moved, otherwise false

throws sfFileException If a major error occurs while attempting to
move the file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to