php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7030 Inconsisitant runtime results on Solaris 2.6 Only
Submitted: 2000-10-05 02:16 UTC Modified: 2000-10-20 14:49 UTC
From: brian dot camillo at eds dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.2 OS: Solaris 2.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: brian dot camillo at eds dot com
New email:
PHP Version: OS:

 

 [2000-10-05 02:16 UTC] brian dot camillo at eds dot com
>
> Well...
>
> It works fine on ...I appologize for the potential
insult...it works fine on
> w2k, IIS 5.0...please don't delete me...ha ha ha!!
>
	Shit happens. 8-)
>
> It also works fine on Linux...so I'm going to explore the
Solaris
> configuration for some options.
>
	Quite odd. Did you post to the list to see if anyone else can
validate your findings?

		Tuc/TTSG
> Thanks
> Brian
>
> > -----Original Message-----
> > From:	Tuc [SMTP:ttsg@ttsg.com]
> > Sent:	Monday, October 02, 2000 11:35 AM
> > To:	Brian.Camillo@attccc.com
> > Subject:	Re: PHP/Apache on Solaris
> >
> > My assumption about reconfiguration is that the php
module is going bad
> > not Apache.
> >
> > Thanks
> > Brian
> >
> > 	-----Original Message-----
> > 	From:	Tuc [SMTP:ttsg@ttsg.com]
> > 	Sent:	Monday, October 02, 2000 11:35 AM
> > 	To:	Brian.Camillo@attccc.com
> > 	Subject:	Re: PHP/Apache on Solaris
> >
> > 	>
> > 	> Thanks for the tip...if I must I will...
> > 	>
> > 		Something to look into.
> > 	>
> > 	> By cache issue...do you mean browser cache or Apache cache.
> > 	>
> > 		Browser.
> > 	>
> > 	> Also...I'm going to compare configurations on Solais
and Linux as
> > well as
> > 	> w2k.
> > 	>
> > 		Ok.
> > 	>
> > 	> I'm also thinking of changing the way php is integrated
with
> > Apache on
> > 	> Solaris...Rather than creating an apache module, I'll try a
> > loadable module.
> > 	>
> > 		All that does is keep the module out of the server until the
> > first
> > 	use, then it pulls it in.
> >
> > 				Tuc/TTSG
> > 	> Thanks
> > 	> Brian
> > 	> > -----Original Message-----
> > 	> > From:	Tuc [SMTP:ttsg@ttsg.com]
> > 	> > Sent:	Sunday, October 01, 2000 1:25 PM
> > 	> > To:	Brian.Camillo@attccc.com
> > 	> > Subject:	Re: PHP/Apache on Solaris
> > 	> >
> > 	> > >
> > 	> > > Hi Scott
> > 	> > >
> > 	> > > If you have a moment. I found an interesting
problem running
> > apache
> > 	> > 1.3.12
> > 	> > > with PHP 4.0.2 on Solaris 2.6.
> > 	> > >
> > 	> > 	Ok.
> > 	> > >
> > 	> > > I'm writing a PHP script to count files and stuff
like that.
> > I used the
> > 	> > > following functions to setup a working model.
> > 	> > > opendir, readdir, closedir.
> > 	> > >
> > 	> > 	Ok.
> > 	> > >
> > 	> > > Basically, I use these functions to tally counts
for certain
> > types of
> > 	> > files.
> > 	> > > Using the ereg function I scan for certain file
types.  I
> > enclose the re
> > 	> > in
> > 	> > > single ticks and depending on the results of the
compare I
> > print the
> > 	> > file
> > 	> > > and increment a counter.  It seems that the total files
> > processed using
> > 	> > the
> > 	> > > readdir function is in consistent on Solaris.  If I
begin by
> > starting
> > 	> > the
> > 	> > > apache server, I will get correct counts.  After a few
> > iterations the
> > 	> > counts
> > 	> > > begin to error and I have determined that it's not the
> > counters but the
> > 	> > > number of files read via the readdir function. What
resolves
> > the problem
> > 	> > > short term is to restart the server.
> > 	> > >
> > 	> > 	Er.... Thats odd. And its not a cache issue, right?
> > 	> > >
> > 	> > > I ported the directory to my Linux box and the same
code works
> > 	> > correctly.
> > 	> > > Apache and PHP are at the same release levels as on
Solaris.
> > I'm
> > 	> > running
> > 	> > > kernel 2.2.14.  Any ideas as to who the trouble
maker is. It
> > seems like
> > 	> > it's
> > 	> > > PHP, however, I could make an arguement for Apache
also.  I
> > was thinking
> > 	> > > about porting the test case to w2k and IIS 5.0 but
I didn't
> > want to risk
> > 	> > > insult until the end of my mail...ha ha ha!!.
> > 	> > >
> > 	> > > Any suggestions would be appreciated.
> > 	> > >
> > 	> > 	Back down to 3.0.16?
> > 	> >
> > 	> > 	Email php-general@lists.php.net ?
> > 	> >
> > 	> > 		Tuc
> > 	>
> >
> 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-17 17:26 UTC] sniper@php.net
Do you have any example script to reproduce this behaviour?

--Jani

 [2000-10-18 10:45 UTC] sniper@php.net
I just fixed one readdir specific (crash) problem.
Please get the latest CVS and try it out.

--Jani
 [2000-10-20 14:49 UTC] sniper@php.net
User reported bug fixed in snapshot.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 30 06:00:01 2026 UTC