Re: [PHP-DEV] PHP Bug #17868: Multiple Includes
Michael D. Petersen [EMAIL PROTECTED] wrote... : I have been following PHP Bug #17868 for some time now (since upgrading to Red Hat 8.0 and Apache 2.0) with quite a bit of interest. This is the bug where multiple include statements don't work and only the first one gets parsed by PHP. Yes, only the first one gets parsed by all the subsequent get executed. This speeds the process up - what's the problem? -- Maxim Maletsky [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] calling php__LINE__ php__FILE__ in a (zif) function
Hi all, For a (extension)-function (zif), is there a way to get __LINE__ and __FILE__ from the current php-script. I neet the php__LINE__ and php__FILE__ in my own ext.-function form where the function is calling. -- thanks Johannes G. Arlt [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Bug #17868: Multiple Includes
The problem is described in a little more detail here: http://bugs.php.net/bug.php?id=17868 Basically, if you have a document which has two or more include statements, each including a chunk of PHP code, only the first statement gets parsed by PHP. PHP is called everytime, but only the first statement gets executed as PHP code. All the rest just return the PHP code itself. For example: test.php: ?php printf(Hello!BR\n); ? test.shtml: First Include:BR !--#include virtual=test.php-- Second Include:BR !--#include virtual=test.php-- Requesting test.shtml via Apache 2 would return the following: First Include:BR Hello!BR Second Include:BR ?php printf(Hello!BR\n); ? The same thing happens even if the included PHP code is different each time -- only the first include gets parsed by PHP and the rest just return the code. This problem appeared with Apache 2 -- earlier versions would have parsed both include statements. Michael At 01:17 PM 1/20/2003 +0100, you wrote: Michael D. Petersen [EMAIL PROTECTED] wrote... : I have been following PHP Bug #17868 for some time now (since upgrading to Red Hat 8.0 and Apache 2.0) with quite a bit of interest. This is the bug where multiple include statements don't work and only the first one gets parsed by PHP. Yes, only the first one gets parsed by all the subsequent get executed. This speeds the process up - what's the problem? -- Maxim Maletsky [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Bug #17868: Multiple Includes
--- Maxim Maletsky [EMAIL PROTECTED] wrote: Michael D. Petersen [EMAIL PROTECTED] wrote... : I have been following PHP Bug #17868 for some time now (since upgrading to Red Hat 8.0 and Apache 2.0) with quite a bit of interest. This is the bug where multiple include statements don't work and only the first one gets parsed by PHP. Yes, only the first one gets parsed by all the subsequent get executed. This speeds the process up - what's the problem? I think you misinterpreted the bug (unless I am instead), but Rasmus already responded that the problem lies with Apache 2's filters and that the Apache guys are well aware of the problems with that API. Chris -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Bug #17868: Multiple Includes
Seems to me like there's not much that can be done on the php side but more on the apache side. In the meantime I'd suggest migrating your server to Apache 1.3.27 until the problem is fixed since this may take quite a while. On Mon, 2003-01-20 at 09:28, Michael D. Petersen wrote: The problem is described in a little more detail here: http://bugs.php.net/bug.php?id=17868 -- Xavier Spriet [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: didou
my purpose is to help maintain the French translation of the doc. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] function not found
Hi, I have installed httpd 2.0.43 with php5 (is this ok for development about a book for PHP5? Is this the correct cvs ??). I have a function with an error (this is a my problem) but this is the php-error page: Warning: main(zb_ng/Admin/globals.php) [function.main]: failed to create stream: No such file or directory in /home/httpd/html/zb_ng/test/c_faq/1.php on line 8 but [function.main] is a link to www.php.net/function.main that report: Sorry, no documents matched your search for function.main. Is this a bug ? bye and sorry for my bad english. -- michel 'ziobudda' morelli [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] CVS Account Request: traduim
I would like to translate PHP documentation into Catalan. I don't need any other kind of permission. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Bug #17868: Multiple Includes
Migrating back to Apache 1.3 is always a fallback solution. My main intent in mentioning this workaround was to get some feedback on what it may have inadvertantly broken, since commenting out the line of code seems to make Apache 2 work very well with PHP on my machine with no observable, negative side effects (yet). So, even though the apache2filter code is part of the PHP distribution, is it maintained by the Apache folks? Since the code in question (sapi_apache2.c) is part of the PHP distribution, I figured this (PHP-DEV) would be the correct forum, at least to start. Thanks for everyone's responses so far! Michael At 10:19 AM 1/20/2003 -0500, you wrote: Seems to me like there's not much that can be done on the php side but more on the apache side. In the meantime I'd suggest migrating your server to Apache 1.3.27 until the problem is fixed since this may take quite a while. On Mon, 2003-01-20 at 09:28, Michael D. Petersen wrote: The problem is described in a little more detail here: http://bugs.php.net/bug.php?id=17868 -- Xavier Spriet [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/gd/libgd gd.c
On Mon, 20 Jan 2003 21:01:28 -0500 Jon Parise [EMAIL PROTECTED] wrote: On Tue, Jan 21, 2003 at 01:49:34AM -, Pierre-Alain Joye wrote: + * Added on 2003/12 by Pierre-Alain Joye ([EMAIL PROTECTED]) + * (c) 2003 Pierre-Alain Joye I think receiving credit is important, but I don't think it's legal for you to claim copyright like this. It's contradictory to the PHP copyright statement at the top of the file, and, as I understood things, contributing to a project such as PHP essentially waves your individual copyright. Oh, sorry, I just asked the way to do it. I'll remove these (c) right now. thank's, pierre -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] php5.0.x-dev install error
php5-200301210030 # make install Installing PHP CLI binary:/usr/local/bin/ Installing PHP SAPI module [activating module `php4' in /usr/local/etc/apache/httpd.conf] cp libs/libphp4.so /usr/local/libexec/apache/libphp4.so cp: libs/libphp4.so: No such file or directory apxs:Break: Command failed with rc=1 *** Error code 1 Stop in /usr/home/harm/php/php5-200301210030. configure command: ./configure --with-apxs=/usr/local/sbin/apxs --with-config-file-path=/usr/lo cal/etc --with-regex=system --with-gd --with-zlib --with-mysql=/usr/local -- prefix=/usr/local Please CC me on this one, Im not on the -dev list, only the -win (bleh, winblows). Regards, Nick H. [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php