php.net on PHP5

php.internals

Lester Caine

22 years ago
OK I've downloaded phpweb and tried to run it on PHP5, but have fallen at the first hurdle. index.php calls for include/pregen-events.inc but I can't see that on the CVS - where am I going wrong :) Second problem - it seems to be hard coded to be the root web directory, is that the same in PHP4? If I want to run it I have to make phpweb my root Apache directory. I'm normally designing to a subdirectory which can be changed without affecting operations, such as running a new version, so fixed paths through me a bit ;)
-- Lester Caine ----------------------------- L.S.Caine Electronic Services

Timm Friebe

22 years ago
Hello Lester, On Sat, 2004-06-19 at 18:22, Lester Caine wrote:
> OK I've downloaded phpweb and tried to run it on PHP5, but have fallen > at the first hurdle. > > index.php calls for > include/pregen-events.inc > but I can't see that on the CVS - where am I going wrong :)
Use rsync: -- snip rsync.sh from our php.net mirror -- #!/bin/sh base="/home/httpd/php3.de" /usr/local/bin/rsync -avzC --delete --delete-after rsync.php.net::phpweb $base/doc_root >/dev/null -- /snip --
> Second problem - it seems to be hard coded to be the root web directory, > is that the same in PHP4? If I want to run it I have to make phpweb my > root Apache directory. I'm normally designing to a subdirectory which > can be changed without affecting operations, such as running a new > version, so fixed paths through me a bit ;)
How about virtualhosts? - Timm

Lester Caine

22 years ago
Timm Friebe wrote:
> Hello Lester, > > On Sat, 2004-06-19 at 18:22, Lester Caine wrote: > >>OK I've downloaded phpweb and tried to run it on PHP5, but have fallen >>at the first hurdle. >> >>index.php calls for >>include/pregen-events.inc >>but I can't see that on the CVS - where am I going wrong :) > > > Use rsync: > > -- snip rsync.sh from our php.net mirror -- > #!/bin/sh > > base="/home/httpd/php3.de" > /usr/local/bin/rsync -avzC --delete --delete-after rsync.php.net::phpweb > $base/doc_root >/dev/null > -- /snip --
And now in English ? I'm running CVS on Eclipse3 (on Windows) - pregen-events.inc is not present in HEAD as far as I can see so what should I be 'syncing' with ?
>>Second problem - it seems to be hard coded to be the root web directory, >>is that the same in PHP4? If I want to run it I have to make phpweb my >>root Apache directory. I'm normally designing to a subdirectory which >>can be changed without affecting operations, such as running a new >>version, so fixed paths through me a bit ;) > > How about virtualhosts?
I've only just sorted out real ones :)
-- Lester Caine ----------------------------- L.S.Caine Electronic Services

Timm Friebe

22 years ago
On Sat, 2004-06-19 at 18:37, Lester Caine wrote:
> Timm Friebe wrote:
[...]
> > Use rsync: > > > > -- snip rsync.sh from our php.net mirror -- > > #!/bin/sh > > > > base="/home/httpd/php3.de" > > /usr/local/bin/rsync -avzC --delete --delete-after rsync.php.net::phpweb > > $base/doc_root >/dev/null > > -- /snip -- > > And now in English ?
Don't use a cvs checkout, use the above shell script. If you use a cvs checkout, you'll have to start the build script, which takes quite a while to complete. The rsync should be faster and you can be sure you have an exact copy of php.net, including all generated files. - Timm

Lester Caine

22 years ago
Timm Friebe wrote:
> On Sat, 2004-06-19 at 18:37, Lester Caine wrote: > >>Timm Friebe wrote: > > [...] > >>>Use rsync: >>> >>>-- snip rsync.sh from our php.net mirror -- >>>#!/bin/sh >>> >>>base="/home/httpd/php3.de" >>>/usr/local/bin/rsync -avzC --delete --delete-after rsync.php.net::phpweb >>>$base/doc_root >/dev/null >>>-- /snip -- >> >>And now in English ? > > > Don't use a cvs checkout, use the above shell script. If you use a cvs > checkout, you'll have to start the build script, which takes quite a > while to complete. The rsync should be faster and you can be sure you > have an exact copy of php.net, including all generated files.
So I'm basically stuffed ? And I'm only trying to help. Anybody know how to use this script with Eclipse CVS on Windows ?
-- Lester Caine ----------------------------- L.S.Caine Electronic Services

Timm Friebe

22 years ago
On Sat, 2004-06-19 at 19:00, Lester Caine wrote:
> Timm Friebe wrote:
[...]
> Anybody know how to use this script with Eclipse CVS on Windows ?
Get cygwin (http://cygwin.com/) or check Google on a Windows version of it (http://www.google.com/search?q=rsync%20Windows). - Timm

Lester Caine

22 years ago
Timm Friebe wrote:
>>Anybody know how to use this script with Eclipse CVS on Windows ? > > Get cygwin (http://cygwin.com/) or check Google on a Windows version of > it (http://www.google.com/search?q=rsync%20Windows).
No thanks - I've been there before. I'm running Eclipse with PHPEclipse and if I need anything other than that then - 'Sorry I can't help' ;) Thanks for the download Jan. Just need to make sure I don't mix up what should and what should not be in HEAD :)
-- Lester Caine ----------------------------- L.S.Caine Electronic Services

Sebastian Bergmann

22 years ago
Lester Caine wrote:
> I'm running Eclipse with PHPEclipse and if I need anything other than > that then - 'Sorry I can't help' ;)
What does an IDE (Eclipse in your case) have to do with running phpweb?
-- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

Lester Caine

22 years ago
Sebastian Bergmann wrote:
> Lester Caine wrote: > >> I'm running Eclipse with PHPEclipse and if I need anything other than >> that then - 'Sorry I can't help' ;) > > What does an IDE (Eclipse in your case) have to do with running phpweb?
Eclipse also has all my code management tools, such as CVS client, and debugging with PHPEclipse. It is all that I have needed so far in developing and testing PHP applications. So I don't need to start loading and learning anything else - especially where I have already tried them and dropped them as a waste of space :) p.s. Thanks Jan - 15 mins and everything was running fine, so now I just need to sort out how to replace the 'extra' bits. Not done a comprehensive test, but php.net working fine on W2k/Apache2/PHP5 as was probably expected. The fun will come with running an update ;)
-- Lester Caine ----------------------------- L.S.Caine Electronic Services

Adam Maccabee Trachtenberg

22 years ago
On Sat, 19 Jun 2004, Lester Caine wrote:
> need to sort out how to replace the 'extra' bits. Not done a > comprehensive test, but php.net working fine on W2k/Apache2/PHP5 as was > probably expected. The fun will come with running an update ;)
I just set up phpweb on Mac OS X / Apache 1.3 / PHP 5 CVS and it also seems to be working great. Since the site doesn't really tickle any of the changed PHP 5 features (OOP, MySQL, XML), it seems to have emerged unscathed. :) -adam
-- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!

Andi Gutmans

22 years ago
At 06:59 PM 6/19/2004 +0100, Lester Caine wrote:
>p.s. Thanks Jan - 15 mins and everything was running fine, so now I just >need to sort out how to replace the 'extra' bits. Not done a comprehensive >test, but php.net working fine on W2k/Apache2/PHP5 as was probably >expected. The fun will come with running an update ;)
Sounds good. I assume you didn't check the bugs database right? We should check that too, and if possible, I suggest we install 5.0.0-dev on php.net as soon as possible. Can anyone think of other stuff we need to test before upgrading? It would also be nice to write a short case study on php.net once we're done to explain what things did have to be fixed and how much time the process took. Andi

Lester Caine

22 years ago
Andi Gutmans wrote:
>> p.s. Thanks Jan - 15 mins and everything was running fine, so now I >> just need to sort out how to replace the 'extra' bits. Not done a >> comprehensive test, but php.net working fine on W2k/Apache2/PHP5 as >> was probably expected. The fun will come with running an update ;) > > Sounds good. > I assume you didn't check the bugs database right? We should check that > too, and if possible, I suggest we install 5.0.0-dev on php.net as soon > as possible. Can anyone think of other stuff we need to test before > upgrading? > It would also be nice to write a short case study on php.net once we're > done to explain what things did have to be fixed and how much time the > process took.
I have tried to get SQLite running on PHP5 / Windows but for some reason it's built with links to the PHP4 files. Anybody got a PHP5 version for Windows ?
-- Lester Caine ----------------------------- L.S.Caine Electronic Services

Curt Zirzow

22 years ago
* Thus wrote Andi Gutmans:
> At 06:59 PM 6/19/2004 +0100, Lester Caine wrote: > > Sounds good. > I assume you didn't check the bugs database right? We should check that > too, and if possible, I suggest we install 5.0.0-dev on php.net as soon as > possible. Can anyone think of other stuff we need to test before upgrading? > It would also be nice to write a short case study on php.net once we're > done to explain what things did have to be fixed and how much time the > process took.
I set up the bugs database here: http://phpbugs.zirzow.dyndns.org/ It seems to work fine, i haven't tested all the stuff yet, though. It's set up, for testing purposes, so it doesn't email reports and the 'developers' username and password are ok everytime, What about news.php.net and cvs.php.net? Curt
-- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

Zeev Suraski

22 years ago
At 14:08 22/06/2004, Andi Gutmans wrote:
>At 06:59 PM 6/19/2004 +0100, Lester Caine wrote: > >>p.s. Thanks Jan - 15 mins and everything was running fine, so now I just >>need to sort out how to replace the 'extra' bits. Not done a >>comprehensive test, but php.net working fine on W2k/Apache2/PHP5 as was >>probably expected. The fun will come with running an update ;) > >Sounds good. >I assume you didn't check the bugs database right? We should check that >too, and if possible, I suggest we install 5.0.0-dev on php.net as soon as >possible. Can anyone think of other stuff we need to test before upgrading? >It would also be nice to write a short case study on php.net once we're >done to explain what things did have to be fixed and how much time the >process took.
One thing we could do pretty easily, I guess, is to add something like v5.php.net, which will be a complete replica of www.php.net, but running on PHP 5. We're doing something similar with zend.com right now (it actually runs quite well, except for some broken array_merge() behavior). Then we can have bugs.v5.php.net and so on, so that we can test everything before we actually upgrade. Any objections / thoughts? Zeev

Edin Kadribasic

22 years ago
On Tuesday 22 June 2004 15:37, Zeev Suraski wrote:
> One thing we could do pretty easily, I guess, is to add something like > v5.php.net, which will be a complete replica of www.php.net, but running on > PHP 5. We're doing something similar with zend.com right now (it actually > runs quite well, except for some broken array_merge() behavior). Then we > can have bugs.v5.php.net and so on, so that we can test everything before > we actually upgrade. > > Any objections / thoughts?
www.php.net code runs fine on php5. I guess the only question is load testing php5 on the main www.php.net site. Edin

Olivier Hill

22 years ago
Lester Caine wrote:
> > Anybody know how to use this script with Eclipse CVS on Windows ?
rsync has nothing to do with CVS. Try getting a Windows client of rsync. On the other hand, since the PHP website is running on UNIX, I don't think it should be tested on Windows. We have recently seen bugs with PHP5 that only happened on Windows. The opposite might be true, and while it could run fine on Windows, maybe it'd segfault on UNIX. Sincerely, Olivier
-- GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) !O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ h(*) r y+(?)

George Schlossnagle

22 years ago
On Jun 19, 2004, at 1:31 PM, Olivier Hill wrote:
> Lester Caine wrote: >> Anybody know how to use this script with Eclipse CVS on Windows ? > > rsync has nothing to do with CVS. Try getting a Windows client of > rsync. > > On the other hand, since the PHP website is running on UNIX, I don't > think it should be tested on Windows. We have recently seen bugs with > PHP5 that only happened on Windows. The opposite might be true, and > while it could run fine on Windows, maybe it'd segfault on UNIX.
Why eliminate a testing platform? PHP5 should be tested wherever possible and bugs reported. George

Olivier Hill

22 years ago
George Schlossnagle wrote:
> > Why eliminate a testing platform? PHP5 should be tested wherever > possible and bugs reported.
+1 ;) You are right. What I meant was more: "Let's test it on Windows, but before we can conclude the website is PHP5 ready, let's test it on the same platform it is already running on". Which raise another question: Is someone hosting a PHP website mirror would be ready to migrate to PHP5? While it would give a good indication, it would not shut down the main site in case of problems. Is it something we would like to do? If I'm being ridiculous, I'm terribly sorry, Olivier
-- GB/E/IT d+ s+:+ a-- C++$ UL++++$ P++++ L+++$ E- W++$ N- ?o ?K w--(---) !O M+$ V- PS+ PE- Y PGP t++ 5-- X+@ R- tv++ b++(+++) DI++++ D+ G++ e+>++ h(*) r y+(?)

Nuno Lopes

22 years ago
> You are right. What I meant was more: "Let's test it on Windows, but > before we can conclude the website is PHP5 ready, let's test it on the > same platform it is already running on". > > Which raise another question: Is someone hosting a PHP website mirror > would be ready to migrate to PHP5? While it would give a good > indication, it would not shut down the main site in case of problems. Is > it something we would like to do?
There are already two mirrors running PHP 5! I'm also running PHP 5 in my windows box since the first beta and now it doesn't crash. (bah, when I restart/stop apache2 it sometimes gives an error....). Nuno

Lester Caine

22 years ago
Nuno Lopes wrote:
>>You are right. What I meant was more: "Let's test it on Windows, but >>before we can conclude the website is PHP5 ready, let's test it on the >>same platform it is already running on". >> >>Which raise another question: Is someone hosting a PHP website mirror >>would be ready to migrate to PHP5? While it would give a good >>indication, it would not shut down the main site in case of problems. Is >>it something we would like to do? > > There are already two mirrors running PHP 5! > > I'm also running PHP 5 in my windows box since the first beta and now it > doesn't crash. (bah, when I restart/stop apache2 it sometimes gives an > error....).
Had that with RC1. It's been fine on RC2 and 3
-- Lester Caine ----------------------------- L.S.Caine Electronic Services

Jan Lehnardt

22 years ago
Hi, I did the rsync for Lester and put up an archive for him to download, excluding extra/ distributions/ and manual/ I sent him the URL to the archive in a private mail, if anyone else is interested, please drop me a note. Jan
-- GPG Key: BB96 56B0 Q: Thank Jan? - A: http://geschenke.an.dasmoped.net/