php.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --- php-4.3.2/ext/oci8/config.m4.dist 2003-07-01 09:55:33.000000000 +0200
  2. +++ php-4.3.2/ext/oci8/config.m4 2003-07-01 0:56:01.000000000 +0200
  3. @@ -100,7 +100,6 @@
  4. PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
  5. PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
  6. AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])
  7. - AC_DEFINE(HAVE_OCI8_SHARED_MODE,1,[ ])
  8. dnl These functions are only available in version >= 9.2
  9. PHP_CHECK_LIBRARY(clntsh, OCIEnvNlsCreate,
  10. --- php-4.3.2/configure.dist 2003-07-01 13:52:41.000000000 +0200
  11. +++ php-4.3.2/configure 2003-07-01 13:53:15.000000000 +0200
  12. @@ -51349,10 +51349,6 @@
  13. #define HAVE_OCI8_ATTR_STATEMENT 1
  14. EOF
  15. - cat >> confdefs.h <<\EOF
  16. -#define HAVE_OCI8_SHARED_MODE 1
  17. -EOF
  18. -
  19. save_old_LDFLAGS=$LDFLAGS
  20. --- php-4.3.2/pear/PEAR/Installer.php.dist 2003-07-28 13:57:01.000000000 +0200
  21. +++ php-4.3.2/pear/PEAR/Installer.php 2003-07-28 14:00:12.000000000 +0200
  22. @@ -115,7 +115,6 @@
  23. parent::PEAR_Common();
  24. $this->setFrontendObject($ui);
  25. $this->debug = $this->config->get('verbose');
  26. - $this->registry = &new PEAR_Registry($this->config->get('php_dir'));
  27. }
  28. // }}}
  29. @@ -786,6 +785,19 @@
  30. function checkDeps(&$pkginfo)
  31. {
  32. + if ($this->registry == null) {
  33. + $php_dir = $this->config->get('php_dir');
  34. + if (isset($options['installroot'])) {
  35. + if (substr($options['installroot'], -1) == DIRECTORY_SEPARATOR) {
  36. + $options['installroot'] = substr($options['installroot'], 0, -1);
  37. + }
  38. + $this->installroot = $options['installroot'];
  39. + $php_dir = $this->_prependPath($php_dir, $this->installroot);
  40. + } else {
  41. + $this->installroot = '';
  42. + }
  43. + $this->registry = &new PEAR_Registry($php_dir);
  44. + }
  45. $depchecker = &new PEAR_Dependency($this->registry);
  46. $error = $errors = '';
  47. $failed_deps = array();