[PHP-DEV] Bug #12444: require_once doesn't support relative paths completely
From: [EMAIL PROTECTED] Operating system: FreeBSD PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: require_once doesn't support relative paths completely I was unable to alter the previous report because I had not entered a password when I reported the bug... It appears to work in simple cases: ie when: /php/test.php /common.php in test.php ? require_once('../common.php'); display_test(); ? in common.php ? function display_test() { echo 'test'; } ? But it fails in the following case: /usr/home/willwong/public_html/common.php /usr/home/willwong/public_html/php/common2.php /usr/home/willwong/public_html/php/php2/test.php in test.php ? require_once('../../common.php'); display_test(); ? in common.php ? require_once('php/common2.php'); ? in common2.php ? function display_test() { echo 'test'; } ? This fails with the error: Fatal error: Failed opening required 'php/common2.php' (include_path='') in /usr/home/willwong/public_html/common.php on line 2 -- Edit bug report at: http://bugs.php.net/?id=12444edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12385: getmxrr returns an invalid false message when...
From: [EMAIL PROTECTED] Operating system: FreeBSD PHP version: 4.0.6 PHP Bug Type: Mail related Bug description: getmxrr returns an invalid false message when... getmxrr is designed to return a list of mx records found for a host. According to smtp rfcs, if no mx records are found, then the hostname's A record is considered to be the lowest mx. Take for example the following hostname: genet.sickkids.on.ca This is a separate zone which does not have any MX records. It has an A record and that suffices for people to receive email on that hostname. getmxrr should be changed so that it should also return true if: no mx records are found, BUT an A record exists for the hostname. Why? Because smtp rfc's state that if there are no mx records, the A record should be considered to be the lowest priority mx record. -- Edit bug report at: http://bugs.php.net/?id=12385edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12387: require_once doesn't support relative paths
From: [EMAIL PROTECTED] Operating system: FreeBSD PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: require_once doesn't support relative paths require_once doesn't support relative paths. ie. require_once('../blah.php'); won't work. Only absolute paths work and this makes the function very unuseful at times. Suggestion: Make require_once support relative paths. -- Edit bug report at: http://bugs.php.net/?id=12387edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]