PHP operation Problem
Stefan Held
obi at unixkiste.org
Tue Jun 21 02:40:21 UTC 2005
Am Dienstag, den 21.06.2005, 12:21 +1000 schrieb stefaan:
> It's happening on Fedora core 2, I'm not running Selinux, unless FC turned
> it on by itself.
>
> Nothing of significance in the message log, the logs simply show the script
> being accessed and executed without errors.
>
>
> This is a basic test script that fails
>
> <?php
>
> $test1 = array(1, 2, 3, 4, 5, 6);
>
> foreach($test1 as $out)
> {
> echo $out."\n";
> }
>
> ?>
>
> And it just prints the words array rather then the 1,2,3...
>
>
Tested that on a few boxes, including one Core2 works on every machine
like expected. ( With official updates, not self compiled ).
maybe you try moving your php.ini.org and look for the original php.ini
As foreach is a core function this should not happen. Sure that this box
is clean and not compromised?
Try a verify of the files on the file system with the rpm command.
rpm -V php
>
> --------------------------
>
>
> > -----Original Message-----
> > From: fedora-list-bounces at redhat.com
> > [mailto:fedora-list-bounces at redhat.com] On Behalf Of Stefan Held
> > Sent: Tuesday, 21 June 2005 11:25 AM
> > To: For users of Fedora Core releases
> > Subject: Re: PHP operation Problem
> >
> > Am Dienstag, den 21.06.2005, 10:56 +1000 schrieb stefaan:
> > > It seems that some of my php scripts don't get executed
> > properly on a
> > > FC2 install, php is installed and seems to be working OK
> > until I put
> > > in a foreach loop which just doesn't work.
> >
> > Don't get me wrong. I use foreach loops on Core[1-4] to.
> > Maybe you have selinux enabled?
> >
> > What do you see in /var/log/messages?
> >
> > > The script is definitely OK as it works on other servers.
> > >
> > > So I'm looking at rebuilding PHP on this machine, do I
> > first need to
> > > rpm -e
> > > php* and reinstall or is there a better way?
> > > Can I also use yum to reinstall it maybe?
> > >
> >
> > Why do all of you think that compiling is the mother of all goods?
> >
> > Afterwards you compile your php version, who is fixing for
> > you the security stuff? And if you do that please build a package.
> >
> > But i do not think your issue regards to an broken php version.
> >
> > Else tons of boxes out there would not work.
> > >
> > > Stefaan
> > >
> > >
> >
>
>
--
___ ____ ____ ____
/ _ \ _ __ ___ _ __ | __ ) ___|| _ \ On the side of the Box stands:
| | | | '_ \ / _ \ '_ \| _ \___ \| | | |
| |_| | |_) | __/ | | | |_) |__) | |_| | This Software runs with:
\___/| .__/ \___|_| |_|____/____/|____/ Win98/Me/2000/XP or better.
|_| Then i installed OpenBSD :)
---------------------------------------------------------------------------
perl -e'map{print pack c,($|++?1:13)+ord,select$,,$,,$,,$|}split//,ESEL.$/'
---------------------------------------------------------------------------
GPG-Keyprint = EAF2 6A65 D102 F2DB 4970 2A67 455B 98F2 572C 3FA9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050621/b0139923/attachment-0002.bin
More information about the users
mailing list