Installing Oracle for PHP
From MoodleDocs
Note: This article is a work in progress. Please use the page comments or an appropriate moodle.org forum for any recommendations/suggestions for improvement.
Important Note: Don't forget to enable this variable in your php.ini (or .htaccess) file:
magic_quotes_sybase = On
else, all your data will be escaped following MySQL rules, that are incorrect for Oracle