php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6589 Fatal error: Call to undefined function: ocilogon()
Submitted: 2000-09-07 03:21 UTC Modified: 2005-01-31 23:03 UTC
From: william_t_lee at hotmail dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.0.2 OS: RedHat Linux 6.2
Private report: No CVE-ID:
 [2000-09-07 03:21 UTC] william_t_lee at hotmail dot com
php 4.0.2
oracle 8.1.5
apache 1.3.12

When I try and run a php script that accesses the database, I get the "Call to undefined function: ocilogon()" error.
The code I am running is:
    putenv("ORACLE_SID=orcl");
    putenv("ORACLE_HOME=/u01/app/oracle/product/8.1.5");
    $conn = OCILogon("scott","tiger");
    ...

Oracle SQL*Net has been configured and works fine.

I have compiled php with apache and oracle as listed:
> cd /usr/local/src/apache_1.3.12
> ./configure --prefix=/usr/local/apache
> cd /usr/local/src/php-4.0.2
> ./configure --with-oci8=/u01/app/oracle/product/8.1.5 --with-apache=/usr/local/src/apache_1.3.12 --enable-track-vars
> make
> make install
> cd /usr/local/src/apache_1.3.12
> ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
> make
> make install

Running phpinfo() gives:
PHP Version 4.0.2 

System Linux nmdos-orat 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown 
Build Date Sep 6 2000 
Configure Command './configure' '--with-oracle=/u01/app/oracle/product/8.1.5' '--with-apache=../apache_1.3.12' '--enable-track-vars' 
Server API Apache 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /usr/local/lib 
ZEND_DEBUG disabled 
Thread Safety disabled 

 This program makes use of the Zend scripting language engine:
Zend Engine v1.0.2, Copyright (c) 1998-2000 Zend Technologies

 


--------------------------------------------------------------------------------

PHP 4.0 Credits

--------------------------------------------------------------------------------

Configuration
PHP Core 
Directive Local Value Master Value 
allow_call_time_pass_reference
 On On 
arg_separator
 & & 
asp_tags
 Off Off 
auto_append_file
 no value no value 
auto_prepend_file
 no value no value 
browscap
 no value no value 
default_charset
 no value no value 
default_mimetype
 text/html text/html 
define_syslog_variables
 Off Off 
disable_functions
 no value no value 
display_errors
 On On 
doc_root
 no value no value 
enable_dl
 On On 
error_append_string
 Off Off 
error_log
 no value no value 
error_prepend_string
 Off Off 
error_reporting
 2039 2039 
expose_php
 On On 
extension_dir
 ./ ./ 
gpc_order
 GPC GPC 
highlight.bg
 #FFFFFF #FFFFFF 
highlight.comment
 #FF8000 #FF8000 
highlight.default
 #0000BB #0000BB 
highlight.html
 #000000 #000000 
highlight.keyword
 #007700 #007700 
highlight.string
 #DD0000 #DD0000 
html_errors
 On On 
ignore_user_abort
 Off Off 
implicit_flush
 Off Off 
include_path
 .:/usr/local/lib/php .:/usr/local/lib/php 
log_errors
 Off Off 
magic_quotes_gpc
 On On 
magic_quotes_runtime
 Off Off 
magic_quotes_sybase
 Off Off 
max_execution_time
 30 30 
open_basedir
 no value no value 
output_buffering
 Off Off 
precision
 14 14 
register_argc_argv
 On On 
register_globals
 On On 
safe_mode
 Off Off 
safe_mode_exec_dir
 no value no value 
sendmail_from
 me@localhost.com me@localhost.com 
sendmail_path
 /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i  
short_open_tag
 On On 
SMTP
 localhost localhost 
sql.safe_mode
 Off Off 
track_errors
 Off Off 
track_vars
 On On 
upload_max_filesize
 2097152 2097152 
upload_tmp_dir
 no value no value 
user_dir
 no value no value 
variables_order
 EGPCS EGPCS 
y2k_compliance
 Off Off 


xml
XML Support active 


standard
Regex Library Bundled library enabled 
Dynamic Library Support enabled 
Path to sendmail /usr/sbin/sendmail -t -i  

Directive Local Value Master Value 
assert.active
 1 1 
assert.bail
 0 0 
assert.callback
 no value no value 
assert.quiet_eval
 0 0 
assert.warning
 1 1 
safe_mode_allowed_env_vars
 PHP_ PHP_ 
safe_mode_protected_env_vars
 LD_LIBRARY_PATH LD_LIBRARY_PATH 


session
Session Support enabled 

Directive Local Value Master Value 
session.auto_start
 Off Off 
session.cache_expire
 180 180 
session.cache_limiter
 nocache nocache 
session.cookie_domain
 no value no value 
session.cookie_lifetime
 0 0 
session.cookie_path
 / / 
session.entropy_file
 no value no value 
session.entropy_length
 0 0 
session.gc_maxlifetime
 1440 1440 
session.gc_probability
 1 1 
session.name
 PHPSESSID PHPSESSID 
session.referer_check
 no value no value 
session.save_handler
 files files 
session.save_path
 /tmp /tmp 
session.serialize_handler
 php php 
session.use_cookies
 On On 


posix
Revision $Revision: 1.22 $ 


pcre
PCRE (Perl Compatible Regular Expressions) Support enabled 
PCRE Library Version 3.1 09-Feb-2000 


oracle
Oracle Support enabled 
Oracle Version 8.1 
Compile-time ORACLE_HOME /u01/app/oracle/product/8.1.5 
Libraries Used   


mysql
MySQL Support enabled 
Active Persistent Links 0 
Active Links 0 
Client API version 3.23.10-alpha 
MYSQL_INCLUDE   
MYSQL_LFLAGS   
MYSQL_LIBS   

Directive Local Value Master Value 
mysql.allow_persistent
 On On 
mysql.default_host
 no value no value 
mysql.default_password
 no value no value 
mysql.default_port
 no value no value 
mysql.default_socket
 no value no value 
mysql.default_user
 no value no value 
mysql.max_links
 Unlimited Unlimited 
mysql.max_persistent
 Unlimited Unlimited 


gd
GD Support enabled 
GD Version between 1.3 and 1.6.1 
GIF Support enabled 


db
This is GDBM version 1.8.0, as of May 19, 1999. 


apache
APACHE_INCLUDE   
APACHE_TARGET   
Apache Version Apache/1.3.12 
Apache Release 10312100 
Apache API Version 19990320 
Hostname:Port nmdos-orat.dcis.nt.gov.au:80 
User/Group nobody(99)/99 
Max Requests Per Child: 0
Keep Alive: on
Max Per Connection: 100 
Timeouts Connection: 300
Keep-Alive: 15 
Server Root /usr/local/apache 
Loaded Modules mod_php4, mod_setenvif, mod_auth, mod_access, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core 


Apache Environment
Variable Value 
DOCUMENT_ROOT /usr/local/apache/htdocs 
HTTP_ACCEPT */* 
HTTP_ACCEPT_ENCODING gzip, deflate 
HTTP_ACCEPT_LANGUAGE en-au 
HTTP_CONNECTION Keep-Alive 
HTTP_HOST nmdos-orat 
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) 
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/scripts:/root/bin 
REMOTE_ADDR 155.205.27.89 
REMOTE_PORT 2305 
SCRIPT_FILENAME /usr/local/apache/htdocs/info.php4 
SERVER_ADDR 155.205.27.178 
SERVER_ADMIN root@nmdos-orat.nt.gov.au 
SERVER_NAME nmdos-orat.dcis.nt.gov.au 
SERVER_PORT 80 
SERVER_SIGNATURE Apache/1.3.12 Server at nmdos-orat.dcis.nt.gov.au Port 80 
SERVER_SOFTWARE Apache/1.3.12 (Unix) PHP/4.0.2 
GATEWAY_INTERFACE CGI/1.1 
SERVER_PROTOCOL HTTP/1.1 
REQUEST_METHOD GET 
QUERY_STRING   
REQUEST_URI /info.php4 
SCRIPT_NAME /info.php4 


HTTP Headers Information
HTTP Request Headers 
HTTP Request GET /info.php4 HTTP/1.1 
Accept */* 
Accept-Encoding gzip, deflate 
Accept-Language en-au 
Connection Keep-Alive 
Host nmdos-orat 
User-Agent Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) 
HTTP Response Headers 
X-Powered-By PHP/4.0.2 
Keep-Alive timeout=15, max=98 
Connection Keep-Alive 
Transfer-Encoding chunked 
Content-Type text/html 


Additional Modules


Environment
Variable Value 
USERNAME root 
ENV /root/.bashrc 
HISTSIZE 1000 
HOSTNAME nmdos-orat 
LOGNAME root 
HISTFILESIZE 1000 
MAIL /var/spool/mail/root 
TERM vt220 
HOSTTYPE i386 
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/scripts:/root/bin 
KDEDIR /usr 
HOME /root 
INPUTRC /etc/inputrc 
SHELL /bin/bash 
USER root 
QTDIR /usr/lib/qt-2.0.1 
LC_ALL en_US 
ORACLE_HOME /u01/app/oracle/product/8.1.5 
LANG en_US 
OSTYPE Linux 
LINGUAS en_US 
SHLVL 2 
EDITOR vi 
_ /usr/local/apache/bin/httpd 


PHP Variables
Variable Value 
PHP_SELF /info.php4 
HTTP_SERVER_VARS["DOCUMENT_ROOT"] /usr/local/apache/htdocs 
HTTP_SERVER_VARS["HTTP_ACCEPT"] */* 
HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"] gzip, deflate 
HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"] en-au 
HTTP_SERVER_VARS["HTTP_CONNECTION"] Keep-Alive 
HTTP_SERVER_VARS["HTTP_HOST"] nmdos-orat 
HTTP_SERVER_VARS["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) 
HTTP_SERVER_VARS["PATH"] /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/scripts:/root/bin 
HTTP_SERVER_VARS["REMOTE_ADDR"] 155.205.27.89 
HTTP_SERVER_VARS["REMOTE_PORT"] 2305 
HTTP_SERVER_VARS["SCRIPT_FILENAME"] /usr/local/apache/htdocs/info.php4 
HTTP_SERVER_VARS["SERVER_ADDR"] 155.205.27.178 
HTTP_SERVER_VARS["SERVER_ADMIN"] root@nmdos-orat.nt.gov.au 
HTTP_SERVER_VARS["SERVER_NAME"] nmdos-orat.dcis.nt.gov.au 
HTTP_SERVER_VARS["SERVER_PORT"] 80 
HTTP_SERVER_VARS["SERVER_SIGNATURE"] Apache/1.3.12 Server at nmdos-orat.dcis.nt.gov.au Port 80 
HTTP_SERVER_VARS["SERVER_SOFTWARE"] Apache/1.3.12 (Unix) PHP/4.0.2 
HTTP_SERVER_VARS["GATEWAY_INTERFACE"] CGI/1.1 
HTTP_SERVER_VARS["SERVER_PROTOCOL"] HTTP/1.1 
HTTP_SERVER_VARS["REQUEST_METHOD"] GET 
HTTP_SERVER_VARS["QUERY_STRING"]  
HTTP_SERVER_VARS["REQUEST_URI"] /info.php4 
HTTP_SERVER_VARS["SCRIPT_NAME"] /info.php4 
HTTP_SERVER_VARS["PATH_TRANSLATED"] /usr/local/apache/htdocs/info.php4 
HTTP_SERVER_VARS["PHP_SELF"] /info.php4 
HTTP_SERVER_VARS["argv"] Array
(
)

 
HTTP_SERVER_VARS["argc"] 0 
HTTP_ENV_VARS["USERNAME"] root 
HTTP_ENV_VARS["ENV"] /root/.bashrc 
HTTP_ENV_VARS["HISTSIZE"] 1000 
HTTP_ENV_VARS["HOSTNAME"] nmdos-orat 
HTTP_ENV_VARS["LOGNAME"] root 
HTTP_ENV_VARS["HISTFILESIZE"] 1000 
HTTP_ENV_VARS["MAIL"] /var/spool/mail/root 
HTTP_ENV_VARS["TERM"] vt220 
HTTP_ENV_VARS["HOSTTYPE"] i386 
HTTP_ENV_VARS["PATH"] /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/scripts:/root/bin 
HTTP_ENV_VARS["KDEDIR"] /usr 
HTTP_ENV_VARS["HOME"] /root 
HTTP_ENV_VARS["INPUTRC"] /etc/inputrc 
HTTP_ENV_VARS["SHELL"] /bin/bash 
HTTP_ENV_VARS["USER"] root 
HTTP_ENV_VARS["QTDIR"] /usr/lib/qt-2.0.1 
HTTP_ENV_VARS["LC_ALL"] en_US 
HTTP_ENV_VARS["ORACLE_HOME"] /u01/app/oracle/product/8.1.5 
HTTP_ENV_VARS["LANG"] en_US 
HTTP_ENV_VARS["OSTYPE"] Linux 
HTTP_ENV_VARS["LINGUAS"] en_US 
HTTP_ENV_VARS["SHLVL"] 2 
HTTP_ENV_VARS["EDITOR"] vi 
HTTP_ENV_VARS["_"] /usr/local/apache/bin/httpd 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-29 00:32 UTC] sniper@php.net
You should use --with-oci8 if you want to use the oci8 functions.
In that phpinfo() output there is no oci8 enabled..

--Jani
 
PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Mon Mar 02 16:02:05 2015 UTC