RE: PHP 4.0 Bug #7030 Updated: Inconsisitant runtime results on S olaris 2.6 Only
| From: | Camillo, Brian J | Date: | Wed, 18 Oct 2000 14:32:08 +0000 |
| Subject: | RE: PHP 4.0 Bug #7030 Updated: Inconsisitant runtime results on S olaris 2.6 Only | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35428@lists.php.net to get a copy of this message | ||
Sample code and thanks for the response.
<?php
//$aSqlObjs = array('.cp$', '.c$', '.sql$');
$aSqlObjs = array('.cp$', '.sql$');
//$aSqlObjs = array('.cp$');
//$aSqlObjs = array('.c$');
//$aSqlObjs = array('.sql$');
$rDir = dir("/ecam/dev/src/sql");
$nFileCnt = 0;
while ($szFileEntry = $rDir->read())
{
//print("$szFileEntry<BR>");
for ($x = 0; $x < count($aSqlObjs); ++$x)
{
if (ereg($aSqlObjs[$x], $szFileEntry))
{
print("$szFileEntry\n<BR>");
$aFileEntries[] = $szFileEntry;
}
}
}
print(count($aFileEntries));
$rDir->close();
exit();
?>
ID: 7059
Updated by: sniper
Reported By: brian.camillo@attccc.com
Status: Duplicate
Bug Type: Apache related
Assigned To:
Comments:
This is duplicate of 7030. No relevant information in this report.
Previous Comments:
---------------------------------------------------------------------------
[2000-10-06 22:32:23] brian.camillo@attccc.com
Scott
I downgraded php to 3.0.16 and the problem went away. So the most that I
can conclude at this point is either PHP has a problem or that PHP and
Apache have a problem. I can't say if its valid to ride the fence or
emphasize a resolution on the php side more than on the Apache side.
I'm going to link php with the Netscape server and see if the problem
persists.
Thanks
Brian
-----Original Message-----
From: Brian Camillo
Sent: Wednesday, October 04, 2000 10:53 AM
To: 'Tuc'
Subject: RE: PHP/Apache on Solaris
Scott
I may post my finding today.
Thanks
Brian
-----Original Message-----
From: Tuc [SMTP:ttsg@ttsg.com]
Sent: Monday, October 02, 2000 6:31 PM
To: Brian.Camillo@attccc.com
Subject: Re: PHP/Apache on Solaris
>
> 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
> > >
> >
>
---------------------------------------------------------------------------
Full Bug description available at:
http://bugs.php.net/?id=7059
> -----Original Message-----
> From: Bug Database [SMTP:php-dev@lists.php.net]
> Sent: Tuesday, October 17, 2000 5:27 PM
> To: Camillo, Brian J
> Subject: PHP 4.0 Bug #7030 Updated: Inconsisitant runtime results on
> Solaris 2.6 Only
>
> ID: 7030
> Updated by: sniper
> Reported By: brian.camillo@eds.com
> Status: Feedback
> Bug Type: *General Issues
> Assigned To:
> Comments:
>
> Do you have any example script to reproduce this behaviour?
>
> --Jani
>
>
> Previous Comments:
> --------------------------------------------------------------------------
> -
>
> [2000-10-05 02:16:16] brian.camillo@eds.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
> > > >
> > >
> >
>
> --------------------------------------------------------------------------
> -
>
>
> Full Bug description available at: http://bugs.php.net/?id=7030