ID: 32501
User updated by: Bjorn dot Wiberg at its dot uu dot se
Reported By: Bjorn dot Wiberg at its dot uu dot se
-Status: Feedback
+Status: Open
Bug Type: Directory function related
Operating System: IBM AIX 5.2.0.0 ML5
PHP Version: 5CVS-2005-03-31
New Comment:
Hi Tony!
I'm running it as an Apache 2 handler; the configuration is performed
in httpd.conf. Here is a text-format output of phpinfo(), if it helps:
---8<---
PHP Version 5.0.4
System AIX spinus 2 5 0058180C4C00
Build Date Apr 1 2005 17:11:56
Configure Command './configure' '--enable-bcmath'
'--enable-calendar'
'--enable-dba' '--enable-dbase' '--enable-dbx' '--enable-debug'
'--enable-dio' '--enable-exif' '--enable-embedded-mysqli'
'--enable-filepro' '--enable-ftp' '--enable-gd-jis-conv'
'--enable-gd-native-ttf' '--enable-mbstring'
'--enable-memory-limit'
'--enable-shmop' '--enable-soap' '--enable-sockets'
'--enable-sysvmsg'
'--enable-sysvsem' '--enable-sysvshm' '--enable-yp'
'--enable-zend-multibyte' '--prefix=/apache/php'
'--with-apxs2=/apache/bin/apxs' '--with-bz2' '--with-freetype-dir'
'--with-gd' '--with-gdbm' '--with-gettext' '--with-inifile'
'--with-jpeg-dir' '--with-ldap' '--with-libxml-dir'
'--with-mime-magic' '--with-mysql=/usr/local/mysql'
'--with-openssl=/opt/freeware' '--with-png-dir' '--with-tiff-dir'
'--with-ttf' '--with-xpm-dir' '--with-zlib' '--with-zlib-dir'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /apache/etc/php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build yes
Thread Safety disabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.bzip2,
compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl,
sslv3,
sslv2, tls
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
_________________________________________________________________
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off On
allow_url_fopen Off On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap /apache/etc/php_browscap.ini no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root /apache/php/lib/php:/apache/htdocs/bwiberg no value
docref_ext no value no value
docref_root no value no value
enable_dl Off On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 no value
expose_php Off Off
extension_dir
/apache/php/lib/php/extensions/debug-non-zts-20041030:/apache/php/lib/
php/PEAR /apache/php/lib/php/extensions/debug-non-zts-20041030
file_uploads On On
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 Off On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/apache/php/lib/php .:/apache/php/lib/php
log_errors On Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters -t -f [EMAIL PROTECTED] no value
max_execution_time 60 30
max_input_time 60 -1
memory_limit 64M 8M
open_basedir .:/apache/php/lib/php/:/apache/htdocs/bwiberg/ no
value
output_buffering 4096 0
output_handler no value no value
post_max_size 63M 8M
precision 14 14
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode On Off
safe_mode_exec_dir /usr/local/bin /usr/local/php/bin
safe_mode_gid On Off
safe_mode_include_dir /apache/php/lib/php/ no value
sendmail_from [EMAIL PROTECTED] no value
sendmail_path /usr/local/bin/smwrap /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag Off On
SMTP notforunix localhost
smtp_port no value 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 62M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off
apache2handler
Apache Version Apache
Apache API Version 20020903
Server Administrator [EMAIL PROTECTED]
Hostname:Port www.anst.uu.se:80
User/Group web(204)/203
Max Requests Per Child: 100 - Keep Alive: on - Max Per Connection:
100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server Yes
Server Root /apache
Loaded Modules core prefork http_core mod_so mod_access mod_auth
mod_auth_digest mod_cas util_ldap mod_auth_ldap mod_include
mod_log_config mod_env mod_mime_magic mod_expires mod_headers
mod_usertrack mod_setenvif mod_ssl mod_mime mod_status
mod_autoindex
mod_asis mod_info mod_cgi mod_negotiation mod_dir mod_imap
mod_actions
mod_speling mod_userdir mod_alias mod_rewrite mod_php5
Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
HTTP_HOST www.anst.uu.se
HTTP_ACCEPT text/html, text/plain, application/vnd.sun.xml.writer,
application/vnd.sun.xml.writer.global,
application/vnd.stardivision.writer,
application/vnd.stardivision.writer-global,
application/x-starwriter,
application/vnd.sun.xml.writer.template, application/msword,
application/vnd.sun.xml.calc, application/vnd.stardivision.calc,
application/x-starcalc, application/vnd.sun.xml.calc.template,
application/excel, application/msexcel, application/vnd.ms-excel,
application/x-msexcel, application/vnd.sun.xml.impress,
application/vnd.stardivision.impress,
application/vnd.stardivision.impress-packed,
application/x-starimpress,
application/vnd.sun.xml.impress.template,
application/powerpoint, application/mspowerpoint,
application/vnd.ms-powerpoint, application/x-mspowerpoint,
application/vnd.sun.xml.draw, application/vnd.stardivision.draw,
application/x-stardraw, application/vnd.sun.xml.draw.template,
application/vnd.sun.xml.math, application/vnd.stardivision.math,
application/x-starmath, text/xml,
application/vnd.sun.xml.writer.math,
application/x-archive, application/x-bzip, application/x-gzip,
application/x-lha, application/x-lzop, application/x-rar,
application/x-tar, application/x-tarz, application/x-tbz,
application/x-tgz, application/x-tzo, application/x-zip,
application/x-zoo, application/pdf, application/x-shellscript,
text/english, text/x-c++, text/x-c++hdr, text/x-c++src, text/x-c,
text/x-chdr, text/x-csrc, text/x-java, text/x-makefile, text/x-moc,
text/x-pascal, text/x-tcl, text/x-tex, application/x-deb,
application/x-rpm, application/x-dia-diagram, application/x-arj,
application/x-bzip-compressed-tar, application/x-compress,
application/x-compressed-tar, application/x-java-archive,
application/x-stuffit, application/zip, application/ghostview,
application/postscript, application/x-gnumeric,
text/comma-separated-values, application/x-applix,
application/x-troff-man, image/avs, image/bie, image/x-ms-bmp,
image/cmyk, image/dcx, image/eps, image/fax, image/fits, image/gif,
image/gray, image/gradation, image/hdf, image/jpeg, image/pjpeg,
image/map, image/miff, image/mono, image/mtv,
image/x-portable-bitmap,
image/pcd, image/pcx, image/pdf, image/x-portable-graymap,
image/pict,
image/png, image/x-portable-anymap, image/x-portable-pixmap,
image/ps,
image/rad, image/x-rgb, image/rgba, image/rla, image/rle,
image/sgi,
image/sun-raster, image/targa, image/tiff, image/uyvu, image/vid,
image/viff, image/x-xbitmap, image/x-xpixmap, image/x-xwindowdump,
image/yuv, image/fax-g3, image/x-eps, image/x-jng, image/x-xbm,
video/x-mng, image/bmp, image/x-xpm, audio/mpeg, application/ogg,
application/x-ogg, audio/mpegurl, audio/x-mp2, audio/x-mp3,
audio/x-wav, application/x-staroffice,
application/vnd.stardivision.chart, audio/x-scpls, audio/x-mpeg,
audio/x-mpegurl, application/x-flac, image/svg+xml, image/svg,
application/x-gtar, application/x-dvi, audio/x-ogg,
application/vnd.ms-word, application/rtf, application/x-msword,
application/wordperfect, application/wordperfect5.1,
application/vnd.wordperfect, application/x-abiword, text/abiword,
text/richtext, text/rtf, text/*, application/x-debian-package,
audio/basic, video/mpeg, */*;q=0.01
HTTP_ACCEPT_ENCODING gzip, compress
HTTP_ACCEPT_LANGUAGE en
HTTP_USER_AGENT Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1
OpenSSL/0.9.6c
PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/bin:/sbin:/usr/java14/j
re/bin:/usr/java14/bin:/opt/freeware/bin:/usr/local/bin:/usr/local/lib
/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/usr/nbin:/usr/local/mysql/bin:/
usr/opt/ifor/ls/os/aix/bin
SERVER_SIGNATURE <address>Apache Server at <a
href="mailto:[EMAIL PROTECTED]">www.anst.uu.se</a> Port
80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.anst.uu.se
SERVER_ADDR 130.238.7.27
SERVER_PORT 80
REMOTE_ADDR 130.238.131.190
DOCUMENT_ROOT /apache/htdocs
SERVER_ADMIN [EMAIL PROTECTED]
SCRIPT_FILENAME /apache/htdocs/bwiberg/test/safemode/phpinfo.php
REMOTE_PORT 36713
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /bwiberg/test/safemode/phpinfo.php
SCRIPT_NAME /bwiberg/test/safemode/phpinfo.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /bwiberg/test/safemode/phpinfo.php HTTP/1.0
Host www.anst.uu.se
Accept text/html, text/plain, application/vnd.sun.xml.writer,
application/vnd.sun.xml.writer.global,
application/vnd.stardivision.writer,
application/vnd.stardivision.writer-global,
application/x-starwriter,
application/vnd.sun.xml.writer.template, application/msword,
application/vnd.sun.xml.calc, application/vnd.stardivision.calc,
application/x-starcalc, application/vnd.sun.xml.calc.template,
application/excel, application/msexcel, application/vnd.ms-excel,
application/x-msexcel, application/vnd.sun.xml.impress,
application/vnd.stardivision.impress,
application/vnd.stardivision.impress-packed,
application/x-starimpress,
application/vnd.sun.xml.impress.template,
application/powerpoint, application/mspowerpoint,
application/vnd.ms-powerpoint, application/x-mspowerpoint,
application/vnd.sun.xml.draw, application/vnd.stardivision.draw,
application/x-stardraw, application/vnd.sun.xml.draw.template,
application/vnd.sun.xml.math, application/vnd.stardivision.math,
application/x-starmath, text/xml,
application/vnd.sun.xml.writer.math,
application/x-archive, application/x-bzip, application/x-gzip,
application/x-lha, application/x-lzop, application/x-rar,
application/x-tar, application/x-tarz, application/x-tbz,
application/x-tgz, application/x-tzo, application/x-zip,
application/x-zoo, application/pdf, application/x-shellscript,
text/english, text/x-c++, text/x-c++hdr, text/x-c++src, text/x-c,
text/x-chdr, text/x-csrc, text/x-java, text/x-makefile, text/x-moc,
text/x-pascal, text/x-tcl, text/x-tex, application/x-deb,
application/x-rpm, application/x-dia-diagram, application/x-arj,
application/x-bzip-compressed-tar, application/x-compress,
application/x-compressed-tar, application/x-java-archive,
application/x-stuffit, application/zip, application/ghostview,
application/postscript, application/x-gnumeric,
text/comma-separated-values, application/x-applix,
application/x-troff-man, image/avs, image/bie, image/x-ms-bmp,
image/cmyk, image/dcx, image/eps, image/fax, image/fits, image/gif,
image/gray, image/gradation, image/hdf, image/jpeg, image/pjpeg,
image/map, image/miff, image/mono, image/mtv,
image/x-portable-bitmap,
image/pcd, image/pcx, image/pdf, image/x-portable-graymap,
image/pict,
image/png, image/x-portable-anymap, image/x-portable-pixmap,
image/ps,
image/rad, image/x-rgb, image/rgba, image/rla, image/rle,
image/sgi,
image/sun-raster, image/targa, image/tiff, image/uyvu, image/vid,
image/viff, image/x-xbitmap, image/x-xpixmap, image/x-xwindowdump,
image/yuv, image/fax-g3, image/x-eps, image/x-jng, image/x-xbm,
video/x-mng, image/bmp, image/x-xpm, audio/mpeg, application/ogg,
application/x-ogg, audio/mpegurl, audio/x-mp2, audio/x-mp3,
audio/x-wav, application/x-staroffice,
application/vnd.stardivision.chart, audio/x-scpls, audio/x-mpeg,
audio/x-mpegurl, application/x-flac, image/svg+xml, image/svg,
application/x-gtar, application/x-dvi, audio/x-ogg,
application/vnd.ms-word, application/rtf, application/x-msword,
application/wordperfect, application/wordperfect5.1,
application/vnd.wordperfect, application/x-abiword, text/abiword,
text/richtext, text/rtf, text/*, application/x-debian-package,
audio/basic, video/mpeg, */*;q=0.01
Accept-Encoding gzip, compress
Accept-Language en
User-Agent Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1
OpenSSL/0.9.6c
HTTP Response Headers
Connection close
Content-Type text/html
bcmath
BCMath support enabled
bz2
BZip2 Support Enabled
BZip2 Version 1.0.2, 30-Dec-2001
calendar
Calendar support enabled
ctype
ctype functions enabled
dba
DBA support enabled
Supported handlers gdbm cdb cdb_make inifile flatfile
dbx
dbx support enabled
dbx version 1.1.0
supported databases MySQL ODBC PostgreSQL Microsoft SQL Server
FrontBase Oracle 8 (oci8) Sybase-CT SQLite
Directive Local Value Master Value
dbx.colnames_case unchanged unchanged
dio
dio support enabled
dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.8
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.162.2.8 2005/03/17 17:20:35 iliaa
Exp
$
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
ftp
FTP support enabled
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.5
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
gettext
GetText Support enabled
iconv
iconv support enabled
iconv implementation unknown
iconv library version unknown
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
ldap
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.154.2.2 2005/01/19 00:27:42 sniper
Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 20129
libxml
libXML support active
libXML Version 2.6.8
libXML streams enabled
mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 3.7.0
mbstring extension makes use of "streamable kanji code filter and
converter", which is distributed under the GNU Lesser General
Public
License version 2.1.
Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding ISO-8859-1 no value
mbstring.language neutral neutral
mbstring.script_encoding no value no value
mbstring.substitute_character no value no value
mime_magic
mime_magic support enabled
Directive Local Value Master Value
mime_magic.debug On Off
mime_magic.magicfile /apache/etc/magic /apache/etc/magic
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.0.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent Off On
mysql.connect_timeout 60 60
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
mysql.trace_mode Off Off
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.6m 17 Mar 2004
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5
01-December-2003
posix
Revision $Revision: 1.60.2.2 $
session
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off On
session.bug_compat_warn On On
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.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp no value
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0
shmop
shmop support enabled
SimpleXML
Simplexml support enabled
Revision $Revision: 1.139.2.4 $
Schema support enabled
soap
Soap Client enabled
Soap Server enabled
Directive Local Value Master Value
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_ttl 86400 86400
sockets
Sockets Support enabled
SPL
SPL support enabled
Interfaces RecursiveIterator, SeekableIterator
Classes ArrayObject, ArrayIterator, CachingIterator,
CachingRecursiveIterator, DirectoryIterator, FilterIterator,
LimitIterator, ParentIterator, RecursiveDirectoryIterator,
RecursiveIteratorIterator, SimpleXMLIterator
SQLite
SQLite support enabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.146.2.3 2004/09/26
01:41:40 wez Exp $
SQLite Library 2.8.14
SQLite Encoding iso8859
Directive Local Value Master Value
sqlite.assoc_case 0 0
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/local/bin/smwrap
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
auto_detect_line_endings 0 0
date.default_latitude 59.52 31.7667
date.default_longitude 17.38 35.2333
date.sunrise_zenith 90.0 90.83
date.sunset_zenith 90.0 90.83
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags
a=href,area=href,frame=src,input=src,form=fakeentry
a=href,area=href,frame=src,form=,fieldset=
user_agent no value no value
sysvmsg
sysvmsg support enabled
Revision $Revision: 1.16.2.3 $
tokenizer
Tokenizer Support enabled
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.8
yp
YP Support enabled
zlib
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Module Name
dbase
filepro
sysvsem
sysvshm
Environment
Variable Value
_ /apache/bin/httpd
MANPATH /usr/man:/usr/share/man:/opt/freeware/man:/usr/local/man
LANG sv_SE
LOGIN root
PAGER /usr/bin/less
YIELDLOOPTIME 8
PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/bin:/sbin:/usr/java14/j
re/bin:/usr/java14/bin:/opt/freeware/bin:/usr/local/bin:/usr/local/lib
/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/usr/nbin:/usr/local/mysql/bin:/
usr/opt/ifor/ls/os/aix/bin
OLDPWD /nynom
LC_ALL sv_SE
AIXTHREAD_MUTEX_DEBUG OFF
AIXTHREAD_RWLOCK_DEBUG OFF
LC__FASTMSG true
AIXTHREAD_COND_DEBUG OFF
CGI_DIRECTORY /var/docsearch/cgi-bin
EDITOR /usr/local/bin/nano
LOGNAME root
MAIL /usr/spool/mail/root
LOCPATH /usr/lib/nls/loc
PS1 [EMAIL PROTECTED]:\w\$
LDR_CNTRL MAXDATA=0x80000000
DOCUMENT_SERVER_MACHINE_NAME localhost
USER root
AUTHSTATE compat
DSM_LOG /var/adm
SHLVL 1
DEFAULT_BROWSER netscape
SHELL /usr/bin/bash
ODMDIR /etc/objrepos
DOCUMENT_SERVER_PORT 49213
HOME /
SPINLOOPTIME 1000
TERM xterm
DSM_DIR /usr/tivoli/tsm/client/ba/bin
MAILMSG [YOU HAVE NEW MAIL]
ITECONFIGSRV /etc/IMNSearch
PWD /
DOCUMENT_DIRECTORY /usr/docsearch/html
TZ NFT-1DFT,M3.5.0/02:00:00,M10.5.0/03:00:00
ITECONFIGCL /etc/IMNSearch/clients
ITE_DOC_SEARCH_INSTANCE search
MALLOCMULTIHEAP considersize,heaps:8
AIXTHREAD_SCOPE S
DSM_CONFIG /usr/tivoli/tsm/client/ba/bin/dsm.opt
LIBPATH
/apache/lib:/usr/lib:/lib:/opt/freeware/lib:/usr/local/lib:/usr/ccs/li
b:/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/opt/freeware/GN
UPro/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/:/usr/local/l
ib/graphviz
NLSPATH /usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
PHP Variables
Variable Value
_SERVER["HTTP_HOST"] www.anst.uu.se
_SERVER["HTTP_ACCEPT"] text/html, text/plain,
application/vnd.sun.xml.writer,
application/vnd.sun.xml.writer.global,
application/vnd.stardivision.writer,
application/vnd.stardivision.writer-global,
application/x-starwriter,
application/vnd.sun.xml.writer.template, application/msword,
application/vnd.sun.xml.calc, application/vnd.stardivision.calc,
application/x-starcalc, application/vnd.sun.xml.calc.template,
application/excel, application/msexcel, application/vnd.ms-excel,
application/x-msexcel, application/vnd.sun.xml.impress,
application/vnd.stardivision.impress,
application/vnd.stardivision.impress-packed,
application/x-starimpress,
application/vnd.sun.xml.impress.template,
application/powerpoint, application/mspowerpoint,
application/vnd.ms-powerpoint, application/x-mspowerpoint,
application/vnd.sun.xml.draw, application/vnd.stardivision.draw,
application/x-stardraw, application/vnd.sun.xml.draw.template,
application/vnd.sun.xml.math, application/vnd.stardivision.math,
application/x-starmath, text/xml,
application/vnd.sun.xml.writer.math,
application/x-archive, application/x-bzip, application/x-gzip,
application/x-lha, application/x-lzop, application/x-rar,
application/x-tar, application/x-tarz, application/x-tbz,
application/x-tgz, application/x-tzo, application/x-zip,
application/x-zoo, application/pdf, application/x-shellscript,
text/english, text/x-c++, text/x-c++hdr, text/x-c++src, text/x-c,
text/x-chdr, text/x-csrc, text/x-java, text/x-makefile, text/x-moc,
text/x-pascal, text/x-tcl, text/x-tex, application/x-deb,
application/x-rpm, application/x-dia-diagram, application/x-arj,
application/x-bzip-compressed-tar, application/x-compress,
application/x-compressed-tar, application/x-java-archive,
application/x-stuffit, application/zip, application/ghostview,
application/postscript, application/x-gnumeric,
text/comma-separated-values, application/x-applix,
application/x-troff-man, image/avs, image/bie, image/x-ms-bmp,
image/cmyk, image/dcx, image/eps, image/fax, image/fits, image/gif,
image/gray, image/gradation, image/hdf, image/jpeg, image/pjpeg,
image/map, image/miff, image/mono, image/mtv,
image/x-portable-bitmap,
image/pcd, image/pcx, image/pdf, image/x-portable-graymap,
image/pict,
image/png, image/x-portable-anymap, image/x-portable-pixmap,
image/ps,
image/rad, image/x-rgb, image/rgba, image/rla, image/rle,
image/sgi,
image/sun-raster, image/targa, image/tiff, image/uyvu, image/vid,
image/viff, image/x-xbitmap, image/x-xpixmap, image/x-xwindowdump,
image/yuv, image/fax-g3, image/x-eps, image/x-jng, image/x-xbm,
video/x-mng, image/bmp, image/x-xpm, audio/mpeg, application/ogg,
application/x-ogg, audio/mpegurl, audio/x-mp2, audio/x-mp3,
audio/x-wav, application/x-staroffice,
application/vnd.stardivision.chart, audio/x-scpls, audio/x-mpeg,
audio/x-mpegurl, application/x-flac, image/svg+xml, image/svg,
application/x-gtar, application/x-dvi, audio/x-ogg,
application/vnd.ms-word, application/rtf, application/x-msword,
application/wordperfect, application/wordperfect5.1,
application/vnd.wordperfect, application/x-abiword, text/abiword,
text/richtext, text/rtf, text/*, application/x-debian-package,
audio/basic, video/mpeg, */*;q=0.01
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, compress
_SERVER["HTTP_ACCEPT_LANGUAGE"] en
_SERVER["HTTP_USER_AGENT"] Lynx/2.8.4rel.1 libwww-FM/2.14
SSL-MM/1.4.1
OpenSSL/0.9.6c
_SERVER["PATH"]
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/bin:/sbin:/usr/java14/j
re/bin:/usr/java14/bin:/opt/freeware/bin:/usr/local/bin:/usr/local/lib
/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/usr/nbin:/usr/local/mysql/bin:/
usr/opt/ifor/ls/os/aix/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache Server at <a
href="mailto:[EMAIL PROTECTED]">www.anst.uu.se</a> Port
80</address>
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["SERVER_NAME"] www.anst.uu.se
_SERVER["SERVER_ADDR"] 130.238.7.27
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 130.238.131.190
_SERVER["DOCUMENT_ROOT"] /apache/htdocs
_SERVER["SERVER_ADMIN"] [EMAIL PROTECTED]
_SERVER["SCRIPT_FILENAME"]
/apache/htdocs/bwiberg/test/safemode/phpinfo.php
_SERVER["REMOTE_PORT"] 36713
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.0
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /bwiberg/test/safemode/phpinfo.php
_SERVER["SCRIPT_NAME"] /bwiberg/test/safemode/phpinfo.php
_SERVER["PHP_SELF"] /bwiberg/test/safemode/phpinfo.php
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["_"] /apache/bin/httpd
_ENV["MANPATH"]
/usr/man:/usr/share/man:/opt/freeware/man:/usr/local/man
_ENV["LANG"] sv_SE
_ENV["LOGIN"] root
_ENV["PAGER"] /usr/bin/less
_ENV["YIELDLOOPTIME"] 8
_ENV["PATH"]
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/bin:/sbin:/usr/java14/j
re/bin:/usr/java14/bin:/opt/freeware/bin:/usr/local/bin:/usr/local/lib
/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/usr/nbin:/usr/local/mysql/bin:/
usr/opt/ifor/ls/os/aix/bin
_ENV["OLDPWD"] /nynom
_ENV["LC_ALL"] sv_SE
_ENV["AIXTHREAD_MUTEX_DEBUG"] OFF
_ENV["AIXTHREAD_RWLOCK_DEBUG"] OFF
_ENV["LC__FASTMSG"] true
_ENV["AIXTHREAD_COND_DEBUG"] OFF
_ENV["CGI_DIRECTORY"] /var/docsearch/cgi-bin
_ENV["EDITOR"] /usr/local/bin/nano
_ENV["LOGNAME"] root
_ENV["MAIL"] /usr/spool/mail/root
_ENV["LOCPATH"] /usr/lib/nls/loc
_ENV["PS1"] [EMAIL PROTECTED]:\w\$
_ENV["LDR_CNTRL"] MAXDATA=0x80000000
_ENV["DOCUMENT_SERVER_MACHINE_NAME"] localhost
_ENV["USER"] root
_ENV["AUTHSTATE"] compat
_ENV["DSM_LOG"] /var/adm
_ENV["SHLVL"] 1
_ENV["DEFAULT_BROWSER"] netscape
_ENV["SHELL"] /usr/bin/bash
_ENV["ODMDIR"] /etc/objrepos
_ENV["DOCUMENT_SERVER_PORT"] 49213
_ENV["HOME"] /
_ENV["SPINLOOPTIME"] 1000
_ENV["TERM"] xterm
_ENV["DSM_DIR"] /usr/tivoli/tsm/client/ba/bin
_ENV["MAILMSG"] [YOU HAVE NEW MAIL]
_ENV["ITECONFIGSRV"] /etc/IMNSearch
_ENV["PWD"] /
_ENV["DOCUMENT_DIRECTORY"] /usr/docsearch/html
_ENV["TZ"] NFT-1DFT,M3.5.0/02:00:00,M10.5.0/03:00:00
_ENV["ITECONFIGCL"] /etc/IMNSearch/clients
_ENV["ITE_DOC_SEARCH_INSTANCE"] search
_ENV["MALLOCMULTIHEAP"] considersize,heaps:8
_ENV["AIXTHREAD_SCOPE"] S
_ENV["DSM_CONFIG"] /usr/tivoli/tsm/client/ba/bin/dsm.opt
_ENV["LIBPATH"]
/apache/lib:/usr/lib:/lib:/opt/freeware/lib:/usr/local/lib:/usr/ccs/li
b:/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2:/opt/freeware/GN
UPro/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/2.9-aix51-020209/:/usr/local/l
ib/graphviz
_ENV["NLSPATH"] /usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
PHP License
This program is free software; you can redistribute it and/or
modify
it under the terms of the PHP License as published by the PHP Group
and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any
questions about PHP licensing, please contact [EMAIL PROTECTED]
---8<---
Previous Comments:
------------------------------------------------------------------------
[2005-04-04 13:48:49] [EMAIL PROTECTED]
I can't reproduce it on AIX 5.3 & 5.1.
Please, make sure that you're editing the right php.ini and provide
more info about it.
------------------------------------------------------------------------
[2005-04-01 16:34:06] Bjorn dot Wiberg at its dot uu dot se
Tried php5-200503310630 (5.1.0-dev), but the problem is still present:
Warning: fopen(): open_basedir restriction in effect. File(a.txt) is
not within the allowed path(s):
(.:/apache/php/lib/php/:/apache/htdocs/bwiberg/) in
/apache/htdocs/bwiberg/test/safemode/testopen.php on line 3 Warning:
fopen(a.txt): failed to open stream: Not owner in
/apache/htdocs/bwiberg/test/safemode/testopen.php on line 3
(It appears that acinclude.m4 hasn't changed at all in this regard, so
this was probably expected?)
Best regards,
Bj�rn
------------------------------------------------------------------------
[2005-03-30 17:19:05] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-03-30 14:11:41] Bjorn dot Wiberg at its dot uu dot se
Description:
------------
As noted in other bug reports (PHP bug #24185), and the documentation
(http://www.php.net/manual/en/function.getcwd.php), getcwd() may fail
if some directory along a path doesn't have list (r) permissions, but
only access (x) permissions.
In acinclude.m4, the check for broken getcwd() checks the OS string to
determine whether HAVE_BROKEN_GETCWD should be set or not.
Currently, this check only detects (and sets HAVE_BROKEN_GETCWD) if the
OS is "SunOS". This should probably be changed to include "AIX", too:
[EMAIL PROTECTED]:/# uname -sr
AIX 2
...as the problem seems to be present on AIX.
Reproduce code:
---------------
<?php
$handle = fopen("./a.txt", "w", false);
if ( $handle ) {
fputs($handle, "testtext");
fclose($handle);
}
?>
Expected result:
----------------
No error message, file gets created.
Actual result:
--------------
Because fopen() + open_basedir seems to rely on getcwd() to check the
path to the file, we get the following error:
Warning: fopen(): open_basedir restriction in effect. File(./a.txt) is
not within the allowed path(s):
(.:/apache/php/lib/php/:/apache/htdocs/bwiberg/) in
/apache/htdocs/bwiberg/test/safemode/write.php on line 3 Warning:
fopen(./a.txt): failed to open stream: Not owner in
/apache/htdocs/bwiberg/test/safemode/write.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32501&edit=1