You are not logged in.
im having a problem running this command using php
php /usr/share/pear/DB/DataObject/createTables.php /home/myuser/public_html/dev/DB_DatabaseObjectSite/lib/db_do_basic.ini
i get an output of
DB_DataObject_Generator : 0 : CREATING FOR dbdo_site
DB_DataObject_Generator : 0 : calling generateDefinitions
DB_DataObject_Generator : 0 : Generating Definitions file:
DB_DataObject_Generator : 0 : calling generateForeignKeys
DB_DataObject_Generator : 0 : calling generateClasses
DB_DataObject_Generator : 0 : writing Do Genre
DB_DataObject_Generator : 0 : writing Do Movie
DB_DataObject_Generator : 0 : DONE
but only the directory is created, but is left empty. so it appears to do nothing. the files just wont output, i keep expecting to see them, but they are not being created.
i am running as root, i have messed with the permissions and tried setting the /home/user/public_html/ to chmod -R 777 and also chown myuser:users, i also went into the file that creates the files called Generator.php and changed all the 0755 to 0777 temporarily, that didnt work either. i see the function that writes the files is basically this
if (!file_exists(dirname($file))) {
require_once 'System.php';
System::mkdir(array('-p','-m',0755,dirname($file)));
}
does this look kosher? the -p is supposed to be capital, but its not, and is for making the parent directory if it doesnt exist, and the -m tells it that the permission mode will be chmod, the rest is self explanitory.
do you think this could be a permission problem or what could be going on here?
Last edited by wolfdogg (2011-12-13 13:24:32)
Offline
[solved]
i found the problem, it was in PEAR itself. i posted a bug report here
https://pear.php.net/bugs/bug.php?id=19134
Offline