PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #7163 Random "Failed opening" errors for both php pages and included/required files
Submitted:12 Oct 2000 12:46pm UTC Modified: 28 Apr 2001 3:34pm UTC
From:adamh at aristoi dot org Assigned to:
Status:Closed Category:iPlanet related
Version:4.0.3 OS:Solaris 2.6
View/Vote Developer Edit Submission

Welcome! If you don't have a SVN account, you can't do anything here. You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
SVN Username: SVN Password:
Quick Fix:
Status: Assign to:
Category:
Summary:
From: adamh at aristoi dot org
New email:
Version: OS:
New/Additional Comment:

[12 Oct 2000 12:46pm UTC] adamh at aristoi dot org
I've read a few bug reports that seem to have been lumped together
regarding this bug, but none of the final bug reports seem to stay on
the topic of this problem.  Here's what happens:

I compile PHP4 (any version- although the deepest analysis I've done is
on 4.0.3) with NSAPI support on a Solaris 2.6 box.  I've enabled it for
Netscape Enterprise Server, made the changes to server configuration to
load it, and it works.  The problem is, a transient error occurs with
files that looks like:

Warning: Failed opening
'/export/home/www/azc/htdocs/class/emp/searchresults.php' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0

It mostly occurs on the source page I'm attempting to get to, but it
does occur with includes within the page as well.  I've tried compiling
PHP with a nearly-bare set of modules.  I've had to --enable-libgcc in
order to the the shared object to work at all.

I've done some debugging of my own in the source and have identified the
base source of the error generated (since that one can come from several
spots) as line 2879 in Zend/zend-scanner-cc.cc.  Following through the
trail that would lead to that error arising, I've dug as deep as the
virtual_fopen function in TSRM/tsrm_virtual_cwd.c, but my expertise is
limited and I can't put my finger on the exact location of the problem.

Any suggestions or could someone just let me know if they're
experiencing this as well?
[3 Nov 2000 8:30pm UTC] sniper@php.net
reclassify
[29 Mar 2001 9:46am UTC] sniper@php.net
Does this happen with 4.0.4pl1? And if it does could you
please try the latest CVS snapshot from http://snaps.php.net/ ?

--Jani
[28 Apr 2001 3:34pm UTC] derick@php.net
No feedback. If this problem persists with PHP 4.0.5 which
will be released next week, please reopen this report.

Derick
[8 Apr 2002 8:07am UTC] hans at westerlund dot dk
Just encountered the same problem under Netscape-Enterprise/4.1 on
Solaris with PHP 4.1.2.
[27 Feb 2003 5:52pm UTC] davidleach at hotmail dot com
I'm experiencing a similar problem to those listed below, with Nes3.63
and PHP 4.22.  The same errors are being returned intermittently.  It
appears that the primary occurence is when NeS is running MT (3 procs). 
A restart of the service appears to resolve the problem.  It could also
be that killing the child process might resolve the problem, not sure.

The telltale error:

Warning: Failed opening
'/data01/www/...../test.php' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0

I've done some preliminary analysis using truss - one of the child
processes is stuffed, where the other children are fine.  Whenever that
ns child gets the request it fails...

any thoughts would be appreciated! 

thanks,

-dave.

23558:  read(179, 0x00175DF8, 2048)                     = 308
23558:     G E T   / t e s t . p h p   H T T P / 1 . 0\r\n C o n n
23558:     e c t i o n :   K e e p - A l i v e\r\n U s e r - A g e n t
:
23558:     M o z i l l a / 4 . 7 8   [ e n ]   ( X 1 1 ;   U ;   S u n O
S
23558:       5 . 9   s u n 4 u )\r\n P r a g m a :   n o - c a c h e\r\n
H
23558:     o s t :   l o c a l h o s t : 8 0 8 0\r\n A c c e p t :   i m
a
23558:     g e / g i f ,   i m a g e / x - x b i t m a p ,   i m a g e /
j
23558:     p e g ,   i m a g e / p j p e g ,   i m a g e / p n g ,   * /
*
23558:    \r\n A c c e p t - E n c o d i n g :   g z i p\r\n A c c e p t
-
23558:     L a n g u a g e :   e n\r\n A c c e p t - C h a r s e t :   i
s
23558:     o - 8 8 5 9 - 1 , * , u t f - 8\r\n\r\n
23558:  fcntl(179, F_GETFD, 0x00000000)                 = 1
23558:  fcntl(179, F_SETFD, 0x00000001)                 = 0
23558:  lwp_sema_wait(0xFCF81E30)                       = 0
23558:          sema type: USYNC_PROCESS  count = 0
23558:  lwp_sema_post(0xFCF81E30)                       = 0
23558:          sema type: USYNC_PROCESS  count = 0
23558:  lwp_mutex_lock(0xFEEF5558)                      = 0
23558:          mutex type: USYNC_THREAD
23558:  lwp_mutex_lock(0xFEEF5558)                      = 0
23558:          mutex type: USYNC_THREAD
23558:  lwp_mutex_wakeup(0xFEEF5558)                    = 0
23558:          mutex type: USYNC_THREAD
23558:  lwp_mutex_wakeup(0xFEEF5558)                    = 0
23558:          mutex type: USYNC_THREAD
23558:  lwp_mutex_lock(0xFEEF5558)                      = 0
23558:          mutex type: USYNC_THREAD
23558:  lwp_sema_post(0xFD371E30)                       = 0
23558:          sema type: USYNC_PROCESS  count = 1
23558:  lwp_sema_wait(0xFD371E30)                       = 0
23558:          sema type: USYNC_PROCESS  count = 0
23558:  lwp_mutex_wakeup(0xFEEF5558)                    = 0
23558:          mutex type: USYNC_THREAD
23558:  lwp_mutex_lock(0xFEEF5558)                      = 0
23558:          mutex type: USYNC_THREAD
23558:  stat("/data/docs/blah.net/data/html/test.php", 0x00A06ED0) = 0
23558:      d=0x01540023 i=506899 m=0100664 l=1  u=102   g=62104
sz=4743
23558:          at = Feb 19 08:37:03 EST 2003  [ 1045604223 ]
23558:          mt = Jan 10 08:58:17 EST 2003  [ 1042149497 ]
23558:          ct = Jan 16 14:09:17 EST 2003  [ 1042686557 ]
23558:      bsz=8192  blks=10    fs=ufs
23558:  lwp_sema_post(0xFCE11E30)                       = 0
23558:          sema type: USYNC_PROCESS  count = 1
23558:  lwp_sema_wait(0xFCE11E30)                       = 0
23558:          sema type: USYNC_PROCESS  count = 0
23558:  setitimer(ITIMER_PROF, 0xFCE11A90, 0x00000000)  = 0
23558:           value:  interval:    0.000000 sec  value:   30.000000
sec
23558:  sigaction(SIGPROF, 0xFCE118E0, 0xFCE119E0)      = 0
23558:      new: hand = 0xFEED7DD0 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x0008
23558:      old: hand = 0xFEED7DD0 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x0008
23558:  uname(0xFCE10E70)                               = 1
23558:          sys=SunOS nod=fubar rel=5.8 ver=Generic_108528-17
mch=sun4u
23558:  door_info(8, 0xFCE0F080)                        = 0
23558:  door_call(8, 0xFCE0F068)                        = 0
23558:  resolvepath("/data/docs/blah.net/data/html",
"/data/docs/blah.net/data/html", 1024) = 45
23558:  stat("/data/docs/blah.net/data/html", 0xFCE103E0) = 0
23558:      d=0x01540023 i=506880 m=0042775 l=14 u=102   g=62104
sz=2048
23558:          at = Feb 19 08:25:35 EST 2003  [ 1045603535 ]
23558:          mt = Jan 30 16:56:34 EST 2003  [ 1043906194 ]
23558:          ct = Jan 30 16:56:34 EST 2003  [ 1043906194 ]
23558:      bsz=8192  blks=4     fs=lofs
23558:  resolvepath("/data/docs/blah.net/data/html/test.php",
"/data/docs/blah.net/data/html/test.php", 1024) = 58
23558:  open("/data/docs/blah.net/data/html/test.php", O_RDONLY) = 331
23558:  close(331)                                      = 0
23558:  send(179, 0x00A07418, 143, 0)                   = 143
23558:     H T T P / 1 . 1   2 0 0   O K\r\n S e r v e r :   N e t s c a
p
23558:     e - E n t e r p r i s e / 3 . 6   S P 3\r\n D a t e :   T u e
,
23558:       1 8   F e b   2 0 0 3   2 1 : 3 7 : 0 4   G M T\r\n X - P o
w
23558:     e r e d - B y :   P H P / 4 . 2 . 2\r\n C o n t e n t - t y p
e
23558:     :   t e x t / h t m l\r\n\r\n
23558:  send(179, 0xFCE0EE78, 193, 0)                   = 193
23558:     < b r   / >\n < b > W a r n i n g < / b > :     F a i l e d  
o
23558:     p e n i n g   ' / d a t a / d o c s / b l a h . n e t / d a t
a
23558:     / h t m l / t e s t . p h p '   f o r   i n c l u s i o n   (
i
23558:     n c l u d e _ p a t h = ' . : / u s r / l o c a l / l i b / p
h
23558:     p ' )   i n   < b > U n k n o w n < / b >   o n   l i n e   <
b
23558:     > 0 < / b > < b r   / > \n

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC