[PHP-DEV] Re: #19250 [Opn-Fbk]: Php_hostconnect error
We have finaly worked out the problem. It was to do with a dodgy reverse DNS lookup on the domain. This seems unrelated but is the cause. So if you get the problem in the future check your reverse DNS. [EMAIL PROTECTED] wrote in message news:20020905190043.11642.qmail;rack1.php.net... ID: 19250 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: FreeBSD 4.4 PHP Version: 4.2.1 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip There was a bug similiar sounding to this that was fixed recently in CVS. Hopefully it solves your problem as well. Previous Comments: [2002-09-05 10:05:45] [EMAIL PROTECTED] I have just built 2 new web servers to replace old ones. They are running FreeBSD 4.4 with Apache 1.3 and PHP 4.2.1 (compiled with mysql, pspell and pdf libs). They seem to be fine in testing but when they go live we get intermitant faults. At random times (roughly every 4-5 refreshes) one of the includes on the page gives up the error php_hostconnect: connect failed. This only happens when we include files over a http:// connection and not when we include directly. We have tried using both host names and IP addresses and neither seem to help. I have also noticed a much less frequent problem with the mysql connections failing every so oftern. Any ideas? Andy -- Edit this bug report at http://bugs.php.net/?id=19250edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Possible Cookie Bug
Ok, I hear what you are saying and accept that it isn't a bug but is it not possible to populate the cookie variable when you set the cookie. I have had many problems with cookies PHP in the past, usually due to the way they work and so anything that can be done to make cookies easier to use would be of benefit. If I use JavaScript to manipulate cookies, as soon as the cookie is set I can access it and I would imagine this behaviour to also be present in PHP and as it is not, it causes much confusion. I appreciate that this is not of prior importance but I've just spent quite a long time trying to figure out why my cookies were not behaving as they perhaps should have. As Sander pointed out from the manual Cookies will not become visible until the next loading of a page that the cookie should be visible for.. I think this could do with being looked into at some stage. I personally think the cookie should be available as soon as it is set. Regards Andy - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Andy Woolley [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 3:29 PM Subject: Re: [PHP-DEV] Possible Cookie Bug You have a basic misunderstanding about how cookies work. The first time you load up your page nothing is set and you issue: setcookie(C_name,$name); setcookie(C_email,$email); Since $name and $email are empty, this will generate these SetCookie headers in the response: Set-Cookie: C_name=deleted; expires=Tue, 13-Mar-01 15:30:14 GMT Set-Cookie: C_email=deleted; expires=Tue, 13-Mar-01 15:30:14 GMT ie. it deletes the cookies unless $name and $email are set. Now, when $name and $email are set, then of course these cookies will be sent. But sending a cookie during a request doesn't affect the current request in any way. A cookie is only effective on the subsequent request when the browser decides to send it back to you. You obviously cannot receive the cookie in the request that generated it. Universal rules of causality are working against you here. To summarize, there is absolutely no bug here. -Rasmus On Wed, 13 Mar 2002, Andy Woolley wrote: Hi All, I think I might have found a bug with cookies but I'm not sure if what is happening is actually a bug or a feature. I personally think it's a bug but there might well be a perfectly valid answer to this situation that I'm not seeing. If I have a cookie set and I then change the value of that cookie, changes are not being reflected in the cookie until a page refresh. In other words, if I change the value of a cookie the value contained inside the cookie name does not get updated with the new value. It's quite hard to explain so I created a little demo to try out at http://www.milonic.co.uk/cookietest.php If you enter some info in there you should the problem. I'm trying this out on 4.1.0 and 4.1.2 on Linux 7.2 There is a workaround for this by declaring the value in the cookie variable but I still think that the cookie should be updated when it is set. I apologise if this has been dealt with and explained in the past. Cheers Andy -- 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 Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #15054: copy has wrong permissions
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.1 PHP Bug Type: Filesystem function related Bug description: copy has wrong permissions copy() does not preserve file permissions. specifically, it will add execute permissions to the new file. -- Edit bug report at: http://bugs.php.net/?id=15054edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14416 Updated: -q and -d command line options seem to negate each other
ID: 14416 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: PHP options/info functions Operating System: Solaris 7 PHP Version: 4.1.0 New Comment: Yes, it still fails under the brand new 4.1.0 alester@flr4[~]$ cat dq #!/usr/local/bin/php -dinclude_path=.:../../Class:../../Include -q ?php print PHP version=.phpversion().\n; print include_path=.ini_get(include_path).\n; ? alester@flr4[~]$ cat qd #!/usr/local/bin/php -q -dinclude_path=.:../../Class:../../Include ?php print PHP version=.phpversion().\n; print include_path=.ini_get(include_path).\n; ? Results are still the same: # ignores the -q alester@flr4[~]$ ./dq Content-type: text/html PHP version=4.1.0 include_path=.:../../Class:../../Include # ignores the -d alester@flr4[~]$ ./qd PHP version=4.1.0 include_path=. Previous Comments: [2001-12-11 04:24:36] [EMAIL PROTECTED] Does this happen with the released PHP 4.1.0? I don't have the RC handy, but I can't reproduce (On linux) with 4.0.6 or 4.1.0 $ php410 -q -dinclude_path=.:../../Class:../../Include ? echo ini_get('include_path') . \n ? .:../../Class:../../Include $ php410 -dinclude_path=.:../../Class:../../Include -q ? echo ini_get('include_path') . \n ? .:../../Class:../../Include [2001-12-10 18:00:58] [EMAIL PROTECTED] It seems that -q and -d cannot exist on the same shebang line. We're using PHP for standalone shell scripts (i.e. no thru the web server). -q and -d seem to negate each other: Whichever comes first on the shebang line wins. alester@flr4[~]$ cat qd #!/usr/src/php-4.1.0RC4/php -q -dinclude_path=.:../../Class:../../Include ?php print include_path=; print ini_get(include_path); print \n; ? alester@flr4[~]$ ./qd include_path=. # The -q works, since we have no headers, but the include_path isn't changed. alester@flr4[~]$ cat dq #!/usr/src/php-4.1.0RC4/php -dinclude_path=.:../../Class:../../Include -q ?php print include_path=; print ini_get(include_path); print \n; ? alester@flr4[~]$ ./dq Content-type: text/html include_path=.:../../Class:../../Include alester@flr4[~]$ # The include path is changed, but now we have the Content-type header that -q should suppress. Edit this bug report at http://bugs.php.net/?id=14416edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14432: Have phpinfo() give the time as well as the date
From: [EMAIL PROTECTED] Operating system: Solaris 7 PHP version: 4.1.0 PHP Bug Type: Feature/Change Request Bug description: Have phpinfo() give the time as well as the date phpinfo() gives the build date of PHP, but it also needs to show the time. I'd like to be able to use the date/time to insure that I've got the latest/greatest install running in my Apache, but without the time part, that's not possible more than once a day. -- Edit bug report at: http://bugs.php.net/?id=14432edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14416: -q and -d command line options seem to negate each other
From: [EMAIL PROTECTED] Operating system: Solaris 7 PHP version: 4.1.0 PHP Bug Type: PHP options/info functions Bug description: -q and -d command line options seem to negate each other It seems that -q and -d cannot exist on the same shebang line. We're using PHP for standalone shell scripts (i.e. no thru the web server). -q and -d seem to negate each other: Whichever comes first on the shebang line wins. alester@flr4[~]$ cat qd #!/usr/src/php-4.1.0RC4/php -q -dinclude_path=.:../../Class:../../Include ?php print include_path=; print ini_get(include_path); print \n; ? alester@flr4[~]$ ./qd include_path=. # The -q works, since we have no headers, but the include_path isn't changed. alester@flr4[~]$ cat dq #!/usr/src/php-4.1.0RC4/php -dinclude_path=.:../../Class:../../Include -q ?php print include_path=; print ini_get(include_path); print \n; ? alester@flr4[~]$ ./dq Content-type: text/html include_path=.:../../Class:../../Include alester@flr4[~]$ # The include path is changed, but now we have the Content-type header that -q should suppress. -- Edit bug report at: http://bugs.php.net/?id=14416edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] PHP 4.1.0 Final RC QA Status
I do not know that we have time this RC to try and find people to build with other SAPIs and OSs. However, I feel that we should try to get a bit more testing on the various Win platforms. I will add Win32/Apache to my list of tests (if not now, at least for the next RC) but I'm going to need some help and advice from anyone that knows how to do this as I'm a little unsure what the pitfalls are going to be. I have a few questions about this though. First question is. What compiler should I use? 2. Do you want these tests doing on Multiple Win32 platforms? If so, I can probably test Win95, 98, 2000 Pro/Server and XP Pro. 3. Will you want the tests doing from the same build or compiled separately on each machine? That should do it for now :-) Regards Andy. - Original Message - From: Zak Greant [EMAIL PROTECTED] To: Zeev Suraski [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 21, 2001 12:34 PM Subject: [PHP-QA] PHP 4.1.0 Final RC QA Status PHP 4.1.0 Final RC QA Status Over the last few days, 12 people have submitted 26 build reports for the latest RC. (Hopefully, I have not missed anyone. :) A full listing of the reports can be viewed at: http://fooassociates.com/phpqa/ --- Overview --- There has been a good deal of testing on various flavours of Linux: SuSE: 8 builds Red Hat: 6 builds Debian: 3 builds Slackware: 1 build Each of these used Apache or CGI FreeBSD has also been built a few times using Apache and CGI Rounding out the other OSs: Mac OS X + Apache Sun OS 5.8 + CGI Win32 + Apache + ISAPI --- Plan? --- While we have had a good amount of testing for Un*x/Apache and Un*x/CGI builds of the RC, we have only had a few tests of other OSs and SAPIs. I do not know that we have time this RC to try and find people to build with other SAPIs and OSs. However, I feel that we should try to get a bit more testing on the various Win platforms. Any comments? --- Finally --- Thanks to everyone who has taken the time to build the RC and submit a report via the mailing lists and/or the PHP QA Wiki! -- Zak Greant PHP Quality Assurance Team http://qa.php.net/ We must be the change we wish to see. - M. K. Ghandi -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] 4.1.0 Final RC
Mac OS X Apache 1.3.20 Built fine, no problems. './configure' '--with-mysql' '--with-apache=../../apache_source/apache_1.3.20' '--enable-track-vars' '--enable-inline-optimization' '--disable-debug' ** Heres the output from run-tests ** X-Powered-By: PHP/4.1.0RC3 Content-type: text/html Running tests in /usr/home/php_source/php-4.1.0RC3/ext/crack/tests == [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/ctype/tests == [all 2 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/cybermut/tests = [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/db/tests === [all 6 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/dbplus/tests === [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/dbx/tests [all 8 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/gmp/tests [all 2 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/iconv/tests == [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/interbase/tests == [all 6 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/mailparse/tests == [all 2 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/mcrypt/tests === [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/ncurses/tests [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/pcntl/tests == [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/satellite/tests == [all 5 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/session/tests Session Object Serialization ... passed session_unset() without any session ... passed Session Object Deserialization ... passed session_set_save_handler test... passed Custom save handler, multiple session_start()s, complex data structu ... passed References between variables in sessions ... passed Running tests in /usr/home/php_source/php-4.1.0RC3/ext/skeleton/tests = [all 1 test(s) skipped] Running tests in /usr/home/php_source/php-4.1.0RC3/ext/standard/tests/assert assert() ... passed Running tests in /usr/home/php_source/php-4.1.0RC3/ext/standard/tests/file == File type functions (001.phpt) ... failed Running tests in /usr/home/php_source/php-4.1.0RC3/ext/standard/tests/general_functions === sprintf() function ... passed quoted_printable_decode() function test ... passed levenshtein() function test ... passed fgetcsv() with tab delimited fields (BUG #8258) ... passed is_scalar() function test... passed Running tests in /usr/home/php_source/php-4.1.0RC3/ext/standard/tests/math == Simple math tests... passed Various pow() tests (pow.phpt) ... failed Simple math tests... passed Running tests in /usr/home/php_source/php-4.1.0RC3/ext/standard/tests/reg = RegReplace test 1... passed
[PHP-DEV] Re: [PHP-QA] 4.1.0 Final RC - FreeBSD 4.3
FreeBSD 4.3 - Apache 1.3.22 Built fine and phpinfo() works. './configure' '--with-mysql=/usr/local/mysql' '--with-apache=../apache_1.3.22/' '--enable-track-vars' '--enable-inline-optimization' '--disable-debug' '-- *** Here's the output from the tests *** X-Powered-By: PHP/4.1.0RC3 Content-type: text/html Running tests in /usr/home/php-4.1.0RC3/ext/crack/tests === [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/ctype/tests === [all 2 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/cybermut/tests == [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/db/tests [all 6 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/dbplus/tests [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/dbx/tests = [all 8 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/gmp/tests = [all 2 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/iconv/tests === [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/interbase/tests === [all 6 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/mailparse/tests === [all 2 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/mcrypt/tests [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/ncurses/tests = [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/pcntl/tests === [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/satellite/tests === [all 5 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/session/tests = Session Object Serialization ... passed session_unset() without any session ... passed Session Object Deserialization ... passed session_set_save_handler test... passed Custom save handler, multiple session_start()s, complex data structu ... passed References between variables in sessions ... passed Running tests in /usr/home/php-4.1.0RC3/ext/skeleton/tests == [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC3/ext/standard/tests/assert = assert() ... passed Running tests in /usr/home/php-4.1.0RC3/ext/standard/tests/file === File type functions ... passed Running tests in /usr/home/php-4.1.0RC3/ext/standard/tests/general_functions sprintf() function ... passed quoted_printable_decode() function test ... passed levenshtein() function test ... passed fgetcsv() with tab delimited fields (BUG #8258) ... passed is_scalar() function test... passed Running tests in /usr/home/php-4.1.0RC3/ext/standard/tests/math === Simple math tests... passed Various pow() tests (pow.phpt) ... failed Simple math tests... passed Running tests in /usr/home/php-4.1.0RC3/ext/standard/tests/reg == RegReplace test 1... passed RegReplace test 2... passed ereg_replace single-quote test ... passed simple ereg test ... passed Test Regular expression register support in ereg ... passed Test ereg_replace of start-of-line ... passed Test empty result buffer in reg_replace
[PHP-DEV] Re: [PHP-QA] 4.1.0 Final RC - Linux 2.4.2
Build was fine and all apps appear to be running well. RedHat Linux 2.4.2 running Apache 1.3.22 './configure' '--with-mysql=/usr/local/mysql' '--with-apache=../apache_1.3.22/' '--enable-track-vars' '--enable-inline-optimization' '--disable-debug' '--with-gd=/usr' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-zlib=/usr/local' '--with-ming' as always, phpinfo can be seen at http://www.milonic.co.uk/phpinfo.php if you are interested. *** Here's the output from the tests *** X-Powered-By: PHP/4.1.0RC3 Content-type: text/html Running tests in /usr/home/andy/php-4.1.0RC3/ext/crack/tests [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/ctype/tests [all 2 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/cybermut/tests === [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/db/tests = [all 6 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/dbplus/tests = [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/dbx/tests == [all 8 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/gmp/tests == [all 2 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/iconv/tests [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/interbase/tests [all 6 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/mailparse/tests [all 2 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/mcrypt/tests = [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/ncurses/tests == [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/pcntl/tests [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/satellite/tests [all 5 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/session/tests == Session Object Serialization ... passed session_unset() without any session ... passed Session Object Deserialization ... passed session_set_save_handler test... passed Custom save handler, multiple session_start()s, complex data structu ... passed References between variables in sessions ... passed Running tests in /usr/home/andy/php-4.1.0RC3/ext/skeleton/tests === [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC3/ext/standard/tests/assert == assert() ... passed Running tests in /usr/home/andy/php-4.1.0RC3/ext/standard/tests/file File type functions ... passed Running tests in /usr/home/andy/php-4.1.0RC3/ext/standard/tests/general_functions = sprintf() function ... passed quoted_printable_decode() function test ... passed levenshtein() function test ... passed fgetcsv() with tab delimited fields (BUG #8258) ... passed is_scalar() function test... passed Running tests in /usr/home/andy/php-4.1.0RC3/ext/standard/tests/math Simple math tests... passed Various pow() tests (pow.phpt) ... failed Simple math tests... passed Running tests in /usr/home/andy/php-4.1.0RC3/ext/standard/tests/reg
Re: [PHP-DEV] Some more warnings
These definitely do not hide any sort of bug. They are simply scaling an image and the result needs to be an int as you can't have fractional pixels. So this data-loss is intentional. Perhaps a typecast to make it clear that it's intentional, and to eradicate the warning, would be appropriate. xoxo, Andy -- %_=split/;/,.;;n;u;e;ot;t;her;c; . # Andy Lester 'Perl ;@; a;a;j;m;er;y;t;p;n;d;s;o;'. # http://petdance.com hack;print map delete$_{$_},split//,q [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] 4.1.0RC2
Mac OS X 10.04 Compiled fine and without problem. There are some failures in the run-tests though. './configure' '--with-mysql' '--with-apache=../apache_1.3.22/' '--enable-track-vars' '--enable-inline-optimization' '--disable-debug' Regards Andy. PS: Here is the output from run-tests Running tests in /source_code/php-4.1.0RC2/ext/crack/tests == [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/ctype/tests == [all 2 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/cybermut/tests = [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/db/tests === [all 6 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/dbplus/tests === [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/dbx/tests [all 8 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/gmp/tests [all 2 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/iconv/tests == [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/interbase/tests == [all 6 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/mailparse/tests == [all 2 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/mcrypt/tests === [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/ncurses/tests [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/pcntl/tests == [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/satellite/tests == [all 5 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/session/tests Session Object Serialization ... passed session_unset() without any session ... passed Session Object Deserialization ... passed session_set_save_handler test... passed Custom save handler, multiple session_start()s, complex data structu ... passed References between variables in sessions ... passed Running tests in /source_code/php-4.1.0RC2/ext/skeleton/tests = [all 1 test(s) skipped] Running tests in /source_code/php-4.1.0RC2/ext/standard/tests/assert assert() ... passed Running tests in /source_code/php-4.1.0RC2/ext/standard/tests/file == File type functions (001.phpt) ... failed Running tests in /source_code/php-4.1.0RC2/ext/standard/tests/general_functions === sprintf() function ... passed quoted_printable_decode() function test ... passed levenshtein() function test ... passed fgetcsv() with tab delimited fields (BUG #8258) ... passed is_scalar() function test... passed Running tests in /source_code/php-4.1.0RC2/ext/standard/tests/math == Simple math tests... passed Various pow() tests (pow.phpt) ... failed Simple math tests (round.phpt) ... failed Running tests in /source_code/php-4.1.0RC2/ext/standard/tests/reg = RegReplace test 1... passed RegReplace test 2... passed ereg_replace single-quote test ... passed simple ereg test ... passed Test Regular expression register support in ereg ... passed Test ereg_replace
[PHP-DEV] Re: [PHP-QA] 4.1.0RC2 - Linux 2.4.2
Linux 2.4.2 running Apache 1.3.22 Compiled fine and all of my tests run fine. Again, there are a few failures in 'run-tests' './configure' '--with-mysql=/usr/local/mysql' '--with-apache=../apache_1.3.22/' '--enable-track-vars' '--enable-inline-optimization' '--disable-debug' '--with-gd=/usr' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-zlib=/usr/local' '--with-ming' This is now on a working server at http://www.milonic.co.uk/phpinfo.php and will let you know if something breaks or doesn't work as it should. Cheers Andy ** Here is the output from run-tests ** X-Powered-By: PHP/4.1.0RC2 Content-type: text/html Running tests in /usr/home/andy/php-4.1.0RC2/ext/crack/tests [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/ctype/tests [all 2 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/cybermut/tests === [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/db/tests = [all 6 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/dbplus/tests = [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/dbx/tests == [all 8 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/gmp/tests == [all 2 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/iconv/tests [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/interbase/tests [all 6 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/mailparse/tests [all 2 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/mcrypt/tests = [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/ncurses/tests == [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/pcntl/tests [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/satellite/tests [all 5 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/session/tests == Session Object Serialization ... passed session_unset() without any session ... passed Session Object Deserialization ... passed session_set_save_handler test... passed Custom save handler, multiple session_start()s, complex data structu ... passed References between variables in sessions ... passed Running tests in /usr/home/andy/php-4.1.0RC2/ext/skeleton/tests === [all 1 test(s) skipped] Running tests in /usr/home/andy/php-4.1.0RC2/ext/standard/tests/assert == assert() ... passed Running tests in /usr/home/andy/php-4.1.0RC2/ext/standard/tests/file File type functions (001.phpt) ... failed Running tests in /usr/home/andy/php-4.1.0RC2/ext/standard/tests/general_functions = sprintf() function ... passed quoted_printable_decode() function test ... passed levenshtein() function test ... passed fgetcsv() with tab delimited fields (BUG #8258) ... passed is_scalar() function test... passed Running tests in /usr/home/andy/php-4.1.0RC2/ext/standard/tests/math Simple math tests... passed Various pow() tests (pow.phpt) ... failed Simple math tests (round.phpt) ... failed Running tests in /usr/home/andy/php
[PHP-DEV] Re: [PHP-QA] 4.1.0RC2 - FreeBSD 4.3
FreeBSD 4.3 I've been a busy bloke today :-) Again Compiled fine and without problem but again, some failures in the tests. './configure' '--with-apache=../apache_1.3.22/' '--enable-track-vars' '--enable-inline-optimization' '--disable-debug' Regards Andy Here is the output from run-tests X-Powered-By: PHP/4.1.0RC2 Content-type: text/html Running tests in /usr/home/php-4.1.0RC2/ext/crack/tests === [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/ctype/tests === [all 2 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/cybermut/tests == [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/db/tests [all 6 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/dbplus/tests [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/dbx/tests = [all 8 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/gmp/tests = [all 2 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/iconv/tests === [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/interbase/tests === [all 6 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/mailparse/tests === [all 2 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/mcrypt/tests [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/ncurses/tests = [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/pcntl/tests === [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/satellite/tests === [all 5 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/session/tests = Session Object Serialization ... passed session_unset() without any session ... passed Session Object Deserialization ... passed session_set_save_handler test... passed Custom save handler, multiple session_start()s, complex data structu ... passed References between variables in sessions ... passed Running tests in /usr/home/php-4.1.0RC2/ext/skeleton/tests == [all 1 test(s) skipped] Running tests in /usr/home/php-4.1.0RC2/ext/standard/tests/assert = assert() ... passed Running tests in /usr/home/php-4.1.0RC2/ext/standard/tests/file === File type functions (001.phpt) ... failed Running tests in /usr/home/php-4.1.0RC2/ext/standard/tests/general_functions sprintf() function ... passed quoted_printable_decode() function test ... passed levenshtein() function test ... passed fgetcsv() with tab delimited fields (BUG #8258) ... passed is_scalar() function test... passed Running tests in /usr/home/php-4.1.0RC2/ext/standard/tests/math === Simple math tests... passed Various pow() tests (pow.phpt) ... failed Simple math tests (round.phpt) ... failed Running tests in /usr/home/php-4.1.0RC2/ext/standard/tests/reg == RegReplace test 1... passed RegReplace test 2... passed ereg_replace single-quote test ... passed simple ereg test ... passed Test Regular expression register support in ereg ... passed Test ereg_replace of start-of-line ... passed Test
[PHP-DEV] Re: [PHP-QA] RC3 MacOSX Good but problem with Apache2 on Linux
Hi all, Just to let you know that RC3 installed OK on Mac OSX. ./configure --with-mysql --with-apache=../../apachesource/apache1_3 --enable -track-vars However, I'm having trouble with Apache 2.0.16 on Linux 7.1 (2.4.2-2) when I configure like so: ./configure --with-mysql --with-apache=../httpd-2_0_16 --enable-track-vars It falls over with unable to find httpd.h under ../../blah/blah/httpd-2_0_16 I know it's probably something silly that I'm either doing, or not doing, but if you can point me in the right direction I can get this thing up and running to give it a real good going over. Cheers Andy. - Original Message - From: Zeev Suraski [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 04, 2001 1:04 AM Subject: [PHP-QA] RC3 Finally, it's out. www.php.net/~zeev/php-4.0.7RC3.tar.gz -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] A php's patch for support xhtml
Hi. I don't think that php support xhtml well now, throught php-4.0.6 support script language=php tag. I modify some php source, mainly about sapi_apache zend language scanner. So that the xhtml file which comprises php code will be well xml formed. 1.Add a mime/type application/x-httpd-php-xhtml to mark xhtml mode. 2.disable short-tags and asp-tags in xhtml mode. 3.add php ... /php instead ? ... ? and php-v eval=/ instead ?= ? 4.ignore '![CDATA[' and ']]' in script block. The patch is atteching the mail. Regards Andy Yu --- php-4.0.6/sapi/apache/mod_php4.c.xhtml Wed Oct 3 01:11:21 2001 +++ php-4.0.6/sapi/apache/mod_php4.cWed Oct 3 01:32:37 2001 @@ -71,6 +71,7 @@ int sapi_apache_send_headers(sapi_headers_struct *sapi_headers SLS_DC); static int send_php(request_rec *r, int display_source_mode, char *filename); static int send_parsed_php(request_rec * r); +static int send_parsed_php_xhtml(request_rec * r); static int send_parsed_php_source(request_rec * r); int php_xbithack_handler(request_rec * r); void php_init_handler(server_rec *s, pool *p); @@ -547,7 +548,10 @@ return send_php(r, 0, NULL); } - +static int send_parsed_php_xhtml(request_rec * r) +{ + return send_php(r, 2, NULL); +} static int send_parsed_php_source(request_rec * r) { return send_php(r, 1, NULL); @@ -758,6 +762,7 @@ handler_rec php_handlers[] = { {application/x-httpd-php, send_parsed_php}, + {application/x-httpd-php-xhtml, send_parsed_php_xhtml}, {application/x-httpd-php-source, send_parsed_php_source}, {text/html, php_xbithack_handler}, {NULL} --- php-4.0.6/sapi/apache/sapi_apache.c.xhtml Wed Oct 3 01:34:13 2001 +++ php-4.0.6/sapi/apache/sapi_apache.c Wed Oct 3 15:45:41 2001 @@ -70,6 +70,17 @@ // so let zend open it. */ + if (display_source_mode == 2) { + CG(short_tags) = 0; + CG(xhtml_tags) = 1; + CG(asp_tags) = 0; + display_source_mode = 0; + } else { + CG(short_tags) = 1; + CG(xhtml_tags) = 0; + CG(asp_tags) = 1; + } + if (display_source_mode) { zend_syntax_highlighter_ini syntax_highlighter_ini; --- php-4.0.6/Zend/zend_globals.h.xhtml Wed Oct 3 01:08:54 2001 +++ php-4.0.6/Zend/zend_globals.h Wed Oct 3 01:16:06 2001 @@ -96,6 +96,7 @@ zend_bool in_compilation; zend_bool short_tags; + zend_bool xhtml_tags; zend_bool asp_tags; zend_bool allow_call_time_pass_reference; --- php-4.0.6/Zend/zend.c.xhtml Wed Oct 3 01:16:14 2001 +++ php-4.0.6/Zend/zend.c Wed Oct 3 01:16:34 2001 @@ -255,6 +255,7 @@ /* default compile-time values */ CG(asp_tags) = 0; CG(short_tags) = 1; + CG(xhtml_tags) = 0; CG(allow_call_time_pass_reference) = 1; CG(extended_info) = 0; } --- php-4.0.6/Zend/zend_language_scanner.l.xhtmlWed Oct 3 01:37:50 2001 +++ php-4.0.6/Zend/zend_language_scanner.l Wed Oct 3 15:08:55 2001 @@ -1062,7 +1062,7 @@ } -INITIAL(([^]|[^?%s]){1,400})|s| { +INITIAL(([^]|[^?%sp]){1,400})|s|p| { zendlval-value.str.val = (char *) estrndup(yytext, yyleng); zendlval-value.str.len = yyleng; zendlval-type = IS_STRING; @@ -1070,7 +1070,7 @@ return T_INLINE_HTML; } -INITIAL?|script{WHITESPACE}+language{WHITESPACE}*={WHITESPACE}*(php|\php\|\'php\'){WHITESPACE}* { +INITIAL?|php{WHITESPACE}*{WHITESPACE}*{NEWLINE}*![CDATA[?|script{WHITESPACE}+language{WHITESPACE}*={WHITESPACE}*(php|\php\|\'php\'){WHITESPACE}* + { HANDLE_NEWLINES(yytext,yyleng); if (CG(short_tags) || yyleng2) { /* yyleng2 means it's not ? but script */ zendlval-value.str.val = yytext; /* no copying - intentional */ @@ -1087,9 +1087,10 @@ } -INITIAL%=|?= { +INITIAL%=|?=|php-v{WHITESPACE}*eval{WHITESPACE}*={WHITESPACE}*\ { if ((yytext[1]=='%' CG(asp_tags)) - || (yytext[1]=='?' CG(short_tags))) { + || (yytext[1]=='?' CG(short_tags)) + || (yytext[1]=='p' CG(xhtml_tags))) { zendlval-value.str.val = yytext; /* no copying - intentional */ zendlval-value.str.len = yyleng; zendlval-type = IS_STRING; @@ -1228,7 +1229,16 @@ yymore(); } -ST_IN_SCRIPTING(?|/script{WHITESPACE}*){NEWLINE}? { +ST_IN_SCRIPTING]]{WHITESPACE}*{NEWLINE}?/php{WHITESPACE}* { + zendlval-value.str.val = yytext; /* no copying - intentional */ + zendlval-value.str.len = yyleng; + zendlval-type = IS_STRING; + HANDLE_NEWLINES(yytext, yyleng); + BEGIN(INITIAL); + return T_CLOSE_TAG; /* implicit ';' at php-end tag */ + +} +ST_IN_SCRIPTING(?|\{WHITESPACE}*/|/php|/script{WHITESPACE}*){NEWLINE}? + { zendlval-value.str.val = yytext; /* no copying - intentional */ zendlval-value.str.len = yyleng
[PHP-DEV] Feature?
After some days spent in a hospital reading Programming Perl and Oracle Web Applications I found that a language construct which appears in Perl and PL/SQL is not available in PHP. As in most 3G languages function call is like that $bar=foo($bar1,$bar2,$bar3,'bar4'); function foo($par1=1,$par2=2,$par3=3,$par4='foo_bar',...){ ... } In the case when I've few parameters I've to remember their order, so why not $bar=foo('par2'=10); I want to pass value to only one or more but not to all params. Also this will make the code clearer I think. Comments are welcome! Andrey Hristov -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] mod_php4 question...
I posted a previous message that, I must admit, was probably not that well thought out. I've looked a little further and I'm getting a better feel for what is going on, but I was wondering if someone in the know would be able to clarify. I'm using php with Apache. When I truss a simple file, I see the majority of the system calls in stat calls. It tracks down to a getcwd ( defined with VCWD_GETCWD ), which seems to do alot of I/O on solaris. Given that on a heavily loaded box, avoid that much I/O ( especially if it is just checking the same filepath that was checked previously), seems wasteful and can lead to high I/O waits. The call stack is something along the lines of: 1 send_php 2 zend_execute_scripts 3 zend_compile_file 4 complie_file 5 open_file_for_scanning 6 zend_fopen 7 php_fopen_wrapper_for_zend 8 php_fopen_wrapper 9 php_fopen_url_wrapper 10 php_fopen_with_path 11 php_fopen_and_set_opened_path 12 expand_filepath 13 vcwd_getcwd It seems to me that the path is available from apache ( either through the request structure or as part of the filename ). My question is, what would be the harm in doing something like have mod_php4.c open the file and set file_handle-handle.fp and close it ( or some other mechanism from having to call the whole php_fopen_and_set_opened_path ) to avoid the getcwd? Any thoughts? I'll do some more testing, but I wanted to get some expert feedback before I went too far down the wrong path. Thanks Andy -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Question about php_fopen_and_set_opened_path...
Not 100% sure what my question is here, but I'm curious. A little while back I was running PHP-4.0.6 on Solaris8 using apache and wanted to get an idea of expect performance and configuration issues ( was mostly curious about my apache configuration to make sure the .htaccess calls were removed ). I ran a perl script to hit the following script: ? print Test; ? I trussed an apache/php httpd process and was a little suprised by the results. There is a string of open/fstat/getdents64/close calls that are the majority of the system activity for the above simple example and I'm assuming is the majority of the I/O wait under load. I think I traced it down to a call to expand_filepath in php_fopen_and_set_opened_path. Not sure why this is done or what it is for. Could someone please enlighten me? It is my belief that if it could be minimized that it could significantly reduce system load for simple php scripts. Thanks. Hope this makes sense. What follows is the truss for a single HTTP Get to the above simple script: umask(077) = 022 umask(022) = 077 setitimer(ITIMER_PROF, 0xFFBEF520, 0x) = 0 sigaction(SIGPROF, 0xFFBEF3F0, 0xFFBEF470) = 0 sigprocmask(SIG_UNBLOCK, 0xFFBEF510, 0x) = 0 pathconf(., _PC_PATH_MAX) = 1024 stat64(./, 0xFFBEE408) = 0 stat64(/, 0xFFBEE370) = 0 open64(./../, O_RDONLY|O_NDELAY) = 5 fcntl(5, F_SETFD, 0x0001) = 0 fstat64(5, 0xFFBECD90) = 0 fstat64(5, 0xFFBEE408) = 0 close(5) = 0 chdir(/local/home/usr/local/apache/htdocs) = 0 open(/local/home/usr/local/apache/htdocs/f.php, O_RDONLY) = 5 pathconf(., _PC_PATH_MAX) = 1024 stat64(./, 0xFFBED730) = 0 stat64(/, 0xFFBED698) = 0 open64(./../, O_RDONLY|O_NDELAY) = 6 fcntl(6, F_SETFD, 0x0001) = 0 fstat64(6, 0xFFBECCB8) = 0 fstat64(6, 0xFFBED730) = 0 getdents64(6, 0x0016A538, 1048) = 320 close(6) = 0 open64(./../../, O_RDONLY|O_NDELAY) = 6 fcntl(6, F_SETFD, 0x0001) = 0 fstat64(6, 0xFFBECCB8) = 0 fstat64(6, 0xFFBED730) = 0 getdents64(6, 0x0016A538, 1048) = 144 close(6) = 0 open64(./../../../, O_RDONLY|O_NDELAY) = 6 fcntl(6, F_SETFD, 0x0001) = 0 fstat64(6, 0xFFBECCB8) = 0 fstat64(6, 0xFFBED730) = 0 getdents64(6, 0x0016A538, 1048) = 648 close(6) = 0 open64(./../../../../, O_RDONLY|O_NDELAY) = 6 fcntl(6, F_SETFD, 0x0001) = 0 fstat64(6, 0xFFBECCB8) = 0 fstat64(6, 0xFFBED730) = 0 getdents64(6, 0x0016A538, 1048) = 208 close(6) = 0 open64(./../../../../../, O_RDONLY|O_NDELAY) = 6 fcntl(6, F_SETFD, 0x0001) = 0 fstat64(6, 0xFFBECCB8) = 0 fstat64(6, 0xFFBED730) = 0 getdents64(6, 0x0016A538, 1048) = 432 close(6) = 0 open64(./../../../../../../, O_RDONLY|O_NDELAY) = 6 fcntl(6, F_SETFD, 0x0001) = 0 fstat64(6, 0xFFBECCB8) = 0 fstat64(6, 0xFFBED730) = 0 open(/etc/mnttab, O_RDONLY) = 7 fstat64(7, 0xFFBEC678) = 0 ioctl(7, TCGETA, 0xFFBEC604) Err#22 EINVAL read(7, / d e v / d s k / c 0 t.., 512) = 455 ioctl(7, (('m'8)|1), 0xFF238BE0) = 0 ioctl(7, (('m'8)|2), 0x000BEA18) = 0 lstat64(/local, 0xFFBEC898) = 0 lstat64(/local/.., 0xFFBEC898) = 0 llseek(7, 0, SEEK_CUR) = 455 close(7) = 0 close(6) = 0 resolvepath(/local/home/usr/local/apache/htdocs/f.php, /local/home/usr/local/apache/htdocs/f.php, 1024) = 46 ioctl(5, TCGETA, 0xFFBEE224) Err#25 ENOTTY fstat64(5, 0xFFBECAB8) = 0 ioctl(5, TCGETA, 0xFFBECA44) Err#25 ENOTTY read(5, ? p r i n t T e.., 8192) = 339 read(5, 0x001927B4, 8192) = 0 ioctl(5, TCGETA, 0xFFBECB1C) Err#25 ENOTTY llseek(5, 0, SEEK_CUR) = 339 close(5) = 0 chdir(/) = 0 umask(022) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12774: phpinfo()'s Build Date should show the time as well.
From: [EMAIL PROTECTED] Operating system: Solaris PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: phpinfo()'s Build Date should show the time as well. phpinfo() shows useful stuff like: System SunOS flr4 5.7 Generic_106541-04 sun4u sparc Build Date Aug 15 2001 But boy, it would be a big help if we had the time on that system date, too. I've spent most of today fighting with Apache/mod_php, and I've been unable to tell via timestamps if I'm running the last one I built, or if I've still goofed something up. Just a simple little 16:42:03 after the Aug 15 2001 would mean the world to me. -- Edit bug report at: http://bugs.php.net/?id=12774edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12608 Updated: $REDIRECT_QUERY_STRING isn't parsed into $HTTP_GET_VARS
ID: 12608 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Variables related Old Operating System: Debian potato GNU/Linux Operating System: Debian potato GNU/Linux PHP Version: 4.0.5 New Comment: I don't know if I read this right, because it was a bit confusing, but I'll take a shot. $HTTP_GET_VARS parses the query string for the current page... I can't think of a good example right now, but it could mess things up if REDIRECT_QUERY_STRING broke up into HTTP_GET_VARS. If you wanted to do something like that try a script like the following... [not tested] ? $splitby=split(,$HTTP_SERVER_VARS[REDIRECT_QUERY_STRING]); for ($i=0;$icount($splitby);$i++){ $splitfurther=split(=,$splitby[$i]); $$splitfurther[0]=$splitfurther=[1]; } This should put the REDIRECT_QUERY_STRING into variables, like if the redirect query string was foo=bar, then your script should parse it so that $foo=bar; Does this help? Previous Comments: [2001-08-06 18:57:51] [EMAIL PROTECTED] The summary field really says it all: Upon writing a customized 404 script, I stumbled upon the fact that the $HTTP_SERVER_VARS[REDIRECT_QUERY_STRING] didn't break up into $HTTP_GET_VARS, even though one would expect it to. Is there a reason to this? I tried going through the bug database and the email archives, but I didn't seem to find anything similar. My apologies if this still is a second bug report, or if there's some perfectly valid explanation given somewhere. Thanks for a great tool, by the way. Edit this bug report at http://bugs.php.net/?id=12608edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12616 Updated: Apache make fails, can't find php header files
ID: 12616 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Compile Failure Operating System: Redhat Linux 7.1 PHP Version: 4.0.5 New Comment: does this stil happen with latest CVS??? http://snaps.php.net Previous Comments: [2001-08-07 06:52:48] [EMAIL PROTECTED] apache_1.3.19# ./configure --prefix=/usr/local/apache php-4.05# ./configure --with-mysql --enable-track-vars --with-apache=../apache_1.3.19 php-4.05# make -ok, make install - ok apache_1.3.19# ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libmodphp4.a - ok apache_1.3.19# make -errors see below gcc -c -I../../os/unix -I../../include -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_ph4.c mod_php4.c:28:18: zend.h: No such file or directory mod_php4.c:29:17: php.h: No such file or directory mod_php4.c:30:27: php_variables.h: No such file or directory mod_php4.c:47:21: php_ini.h: No such file or directory mod_php4.c:48:25: php_globals.h: No such file or directory mod_php4.c:49:18: SAPI.h: No such file or directory mod_php4.c:50:22: php_main.h: No such file or directory mod_php4.c:52:26: zend_compile.h: No such file or directory mod_php4.c:53:26: zend_execute.h: No such file or directory mod_php4.c:54:28: zend_highlight.h: No such file or directory mod_php4.c:55:25: zend_indent.h: No such file or directory mod_php4.c:57:39: ext/standard/php_standard.h: No such file or directory make[4]: *** [mod_php4.o] Error 1 etc. I tried to change the gcc command to include the /usr/local/include directory in which the missing files are located (well they are under that directory) however it caused another bunch of dependency problems. I have had this problem with Redhat7.0 all versions of php and apache I could get my hands on. I can't find any reports of this problem, and don't see what I may be doing wrong. Edit this bug report at http://bugs.php.net/?id=12616edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11964 Updated: libphp4.so fails during load
ID: 11964 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Bogus Bug Type: Apache related Operating System: Solaris 5.8 4/01 (Sparc) PHP Version: 4.0.6 New Comment: user error - bogus Previous Comments: [2001-08-07 11:10:12] [EMAIL PROTECTED] My bad not reading the Apache documentation: htdocs/manual/dso.html Sorry for the inconvenience! [2001-07-09 01:08:14] [EMAIL PROTECTED] I can't get php 4.0.6 to load as an Apache module - running configtest I get the following. --- bash-2.05# /www/bin/apachectl configtest Syntax error on line 205 of /www/conf/httpd.conf: Cannot load /www/libexec/libphp4.so into server: ld.so.1: /www/bin/httpd: fatal: relocation error: file /www/libexec/libphp4.so: symbol ap_block_alarms: referenced symbol not found --- Apache 1.3.20 is configured like this: -- % ./configure --prefix=/www --enable-module=so -- PHP 4.0.6 is configured like this: % ./configure --prefix=/www/local/php \ --with-apxs=/www/bin/apxs As you see, I've taken it down to a bare minimum to reduse the number of error source. I also tried to include libpthread.so in apache, though this had no effect. My setup is like this: - Solaris 5.8 4/01 (Sparc) (with only core software) - Apache 1.3.20 - PHP 4.0.6 - gcc 2.95.3 - GNU ld 2.11.2 - GNU make 3.79.1 --- bash-2.05# ldd /www/bin/httpd libpthread.so.1 = /usr/lib/libpthread.so.1 libsocket.so.1 =/usr/lib/libsocket.so.1 libnsl.so.1 = /usr/lib/libnsl.so.1 libc.so.1 = /usr/lib/libc.so.1 libdl.so.1 =/usr/lib/libdl.so.1 libmp.so.2 =/usr/lib/libmp.so.2 libthread.so.1 =/usr/lib/libthread.so.1 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 --- --- bash-2.05# ldd /www/libexec/libphp4.so libpam.so.1 = /usr/lib/libpam.so.1 libdl.so.1 =/usr/lib/libdl.so.1 libcrypt_i.so.1 = /usr/lib/libcrypt_i.so.1 libresolv.so.2 =/usr/lib/libresolv.so.2 libm.so.1 = /usr/lib/libm.so.1 libsocket.so.1 =/usr/lib/libsocket.so.1 libc.so.1 = /usr/lib/libc.so.1 libgen.so.1 = /usr/lib/libgen.so.1 libnsl.so.1 = /usr/lib/libnsl.so.1 libmp.so.2 =/usr/lib/libmp.so.2 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 --- If it's of any interest... - bash-2.05# gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs gcc version 2.95.3 20010315 (release) bash-2.05# ld -v GNU ld version 2.11.2 (with BFD 2.11.2) bash-2.05# make -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for sparc-sun-solaris2.8 Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to [EMAIL PROTECTED]. Edit this bug report at http://bugs.php.net/?id=11964edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] RE: Bug #12536 Updated: fread does not look to be working right
4.0.6 is stable get it at http://php.net/downloads.php On Sun, 05 Aug 2001, knight wrote: I have not tried it with the 4.0.6 php, is that a stable version yet??? Can I use the ms 6.0 compiler to compile php? Does it matter what compiler I use?? What compiler do you recommend? I will update the message with a example Brendan Ferguson -Original Message- From: Bug Database [mailto:[EMAIL PROTECTED]] Sent: August 2, 2001 5:38 PM To: [EMAIL PROTECTED] Subject: Bug #12536 Updated: fread does not look to be working right ID: 12536 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Performance problem Operating System: win 98 box PHP Version: 4.0.4pl1 New Comment: Have you tried with PHP 4.0.6? And could you also add a short example script into this bug report? --Jani Previous Comments: [2001-08-02 17:34:06] [EMAIL PROTECTED] fread does not look like it is reading the EOF. when i use a large (HUDGE) number to tell the fread() how many characters to read, it takes a l o n g time for this to complete this happens even when the file is very short. i descoverd this when i was trying to read an entire file into a string. is fread the best way to do this?? it does not seem to be working very well. there is also a error reporting problem with fread. after the same number gets too big, php stops processing the entire page, (it does check syntax) there is als no error message when this happens. Knight ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=12536edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #12581 Updated: boolean fields not imported (patches enclosed)
I didn't think that opening a bug report just to put a patch in it was correct. Patches are supposed to be sent to the php-dev mailing list. Was I wrong? On Sun, 05 Aug 2001, Jani Taskinen wrote: Could you please tell me what is the 'Bogus' in this report? It's a bug report which happens to have a patch for the bug too. This is far from bogus report. Reopened. --Jani On 5 Aug 2001 [EMAIL PROTECTED] wrote: ID: 12581 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: dBase related Operating System: Linux 2.2.16-3 PHP Version: 4.0.6 New Comment: status - bogus Previous Comments: [2001-08-05 16:18:03] [EMAIL PROTECTED] this is not a bug...already forwarded to [EMAIL PROTECTED] Thanks for your help, but next time just send it to [EMAIL PROTECTED] and don't open a bug about it. [2001-08-05 16:17:47] [EMAIL PROTECTED] The file name to which the patches apply is ext/dbase/dbase.c. [2001-08-05 16:16:32] [EMAIL PROTECTED] Below are patches that fix the problem reported 10/20/2000 in bug report #7374. The problem is that when boolean (TRUE or FALSE) fields are present in an imported Dbase file, the value is always imported as FALSE (0). This problem has been present since 4.0.3. The patches below were generated using distribution 4.0.6. 466,467c466 case 'N': /* FALLS THROUGH */ case 'L': /* FALLS THROUGH */ --- case 'N': 473a473,486 case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N and insert 1 or 0, respectively. db_fdc is the number of decimals, which we don't care about. 3/14/01 LEW */ if ( (*str_value == 'T') || ( *str_value == 'Y' ) ){ add_next_index_long(return_value, strtol(1, NULL, 10)); } else { if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ add_next_index_long(return_value, strtol(0, NULL, 10)); } else { add_next_index_long(return_value, strtol( , NULL, 10)); } } break; 544,545c557 case 'N': /* FALLS THROUGH */ case 'L': /* FALLS THROUGH */ --- case 'N': 551a564,578 case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N and insert 1 or 0, respectively. db_fdc is the number of decimals, which we don't care about. 3/14/01 LEW */ if ( (*str_value == 'T') || ( *str_value == 'Y') ){ add_assoc_long(return_value, cur_f-db_fname, strtol(1, NULL, 10)); } else { if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ add_assoc_long(return_value, cur_f-db_fname,strtol(0, NULL, 10)); } else { add_assoc_long(return_value, cur_f-db_fname,strtol( , NULL, 10)); } } break; Edit this bug report at http://bugs.php.net/?id=12581edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10895 Updated: Segmentation Fault
ID: 10895 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Session related Operating System: Sun Solaris 5.8 on Intel PHP Version: 4.0.5 New Comment: no feedback Previous Comments: [2001-06-14 23:42:56] [EMAIL PROTECTED] We need a GDB backtrace of the crash, otherwise it is impossible to know what causes it. First get the latest RC from here: http://www.php.net/~andi/php-4.0.6RC3.tar.gz If above link doesn't work, try with RC4. Then configure it using same options as before but change the --disable-debug to --enable-debug otherwise the result of GDB is useless. [2001-05-16 04:02:52] [EMAIL PROTECTED] I had got Segmentation Faults using the sessions with PHP 4.05. After installing PHP 4.04pl1 the same code works fine. I use the session_start(),session_register(),session_unregister() functions. But i could not localize which of them causes the problems, i'd expect that it is session_unregister(). ./configure \ --with-mysql=/usr/local/mysql \ --with-apache=../apache_1.3.19 \ --enable-dbg=shared \ --with-ttf=/usr/local \ --with-gd \ --with-xml \ --with-zlib=/usr/local \ --with-jpeg-dir=/usr/local \ --enable-track-vars \ --enable-url-includes \ --disable-debug \ Claus Edit this bug report at http://bugs.php.net/?id=10895edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10955 Updated: session configured with session_set_save_handler and a database
ID: 10955 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Session related Operating System: Red Hat Linux release 6.2 (Zoot) PHP Version: 4.0.5 New Comment: no feedback Previous Comments: [2001-06-12 16:23:32] [EMAIL PROTECTED] any chance you can try one of the latest RCs for 4.0.6? There was an update for the set_save function done recently I believe. [2001-05-18 11:08:06] [EMAIL PROTECTED] The problem is that when i'm using session_set_save_handler to store session data on an oracle base with php4.0.5, the 'write' function is never called, whereas on a 4.0.4pl1 it works fine ! The 4.0.4pl1 PHP (the good one) is running on a 2000 system, with the same php.ini as below php4.0.5 (the bad one ?) was installed on a linux like this: Configure Command: './configure' '--with-oci8' '--with-apache=../apache_1.3.19' '--enable-track-vars' with this php.ini: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string (foo). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo = ; sets foo to an empty string ; foo = none ; sets foo to an empty string ; foo = none; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine = On ; Enable the PHP scripting language engine under Apache short_open_tag = On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags= Off ; allow ASP-style % % tags precision = 14 ; number of significant digits displayed in floating point numbers y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering= Off ; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler = ; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to ob_gzhandler, than output
[PHP-DEV] Bug #11573 Updated: Malformed HTTP response Header
ID: 11573 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Session related Operating System: Linux PHP Version: 4.0.5 New Comment: no feedback Previous Comments: [2001-06-20 12:04:09] [EMAIL PROTECTED] Which broswser and what version of it? Please include a short but complete not working script into this report. --Jani [2001-06-20 05:04:48] [EMAIL PROTECTED] I'm using the session*() functions and test them with a browser which refuses cookies. So I add PHPSESSID=. as a parameter of the requested url. For example, I call qcmcreate.php?parm1=xxxparm2=yyyPHPSESSID=z. I noticed that the HTTP header returned by my script contain an extra line that confuses my client. The end of the HTTP header looks like: Content-Type: test/html \r\n \r\n xxx \r\n \r\n (\r\n means a blank and empty line) What's wrong here are the xxx\r\n\r\n lines. Where xxx is up to 3 characters. These 3 lines make my client misinterpret the server response. If I make my browser accept cookies, the problem disappears. To make sure I did not echo anything, the 1st instruction of my qcmcreate.php script is die; What's wrong ? Thank you, Jerome Pl Edit this bug report at http://bugs.php.net/?id=11573edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11883 Updated: unmotivated memory exhausting
ID: 11883 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Scripting Engine problem Operating System: Linux Kernel 2.2.16 PHP Version: 4.0.6 New Comment: no feedback Previous Comments: [2001-07-04 14:30:24] [EMAIL PROTECTED] Please try the patch found at: http://www.php.net/do_download.php?download_file=php-4.0.6-memlimit.diff.gzsource_site=www.php.net [2001-07-04 13:47:36] [EMAIL PROTECTED] using apache with php-module v4.0.6, mysql3.23.35; configure: './configure' '--with-apxs=/virtual/development/httpd/bin/apxs' '--without-debug' '--with-config-file-path=/virtual/development/httpd/conf' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--with-ftp' '--enable-track-vars=yes' '--enable-gd-native-ttf' '--enable-memory-limit=yes' '--enable-magic-quotes=yes' '--enable-trans-sid=yes' '--enable-inline-optimization' '--with-mysql=/usr/local/mysql' '--with-ttf=/usr/lib/freetype2' '--with-zlib' '--enable-calendar' '--with-jpeg-dir=/usr/local/lib' '--with-pnglib=/usr/local/lib' '--with-gd' '--enable-sockets' we had no problems at all with 4.0.5, but since we have 4.0.6 on our server, we get unmotivated memory exhausting at any script on any line. the error does not occure regularly, but when it happens, it comes many times in a row, just like php needs a bit of time to eat the memory, then crashes multiple times, and finally finds peace for a few hours working correctly. till the next day or so. I can't give you a code-snippet to reproduce it, because when the error occurs, you can simply reload the page and most of the times it then works, but only most of the times... Edit this bug report at http://bugs.php.net/?id=11883edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11914 Updated: Segmentation fault on Apache 1.3.20/1.3.19
ID: 11914 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Apache related Operating System: SuSE 7.0 PHP Version: 4.0.6 New Comment: no feedback Previous Comments: [2001-07-06 03:28:38] [EMAIL PROTECTED] What is your configure line? (To both Apache and PHP) Derick [2001-07-05 15:50:29] [EMAIL PROTECTED] I was installing PHP support on my Apache 1.3.19 as Static Module, when after I done the steps for installing and starting Apache daemon I was the following error messages on apache's log: [Thu Jul 5 15:44:43 2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6 configured -- resuming normal operations [Thu Jul 5 15:45:31 2001] [notice] child pid 24328 exit signal Segmentation fault (11) [Thu Jul 5 15:45:34 2001] [notice] child pid 24327 exit signal Segmentation fault (11) And all requests I did to my webserver I received that messages and nothing was returned back to my browser After some tries to compile with different apache versions, I tried to compile a different PHP version, 3.0.5, with my Apache on Static Mode, and I got it! I don't know what is going on with PHP/4.0.6, but I couldn't install with Apache/1.3.20 on a SuSE 7.0 p.s. - I tried once a installation as Dynamic Module and I hadn't sucessful too. p.s. 2 - I used the following parameters to configure PHP, other parameters were default: ./configure --with-pgsql=/usr/lib/pgsql/ --with-apache=../apache_1.3.20 --enable-track-vars [2001-07-05 15:38:30] [EMAIL PROTECTED] I was installing PHP support on my Apache 1.3.19 as Static Module, when after I done the steps for installing and starting Apache daemon I was the following error messages on apache's log: [Thu Jul 5 15:44:43 2001] [notice] Apache/1.3.20 (Unix) PHP/4.0.6 configured -- resuming normal operations [Thu Jul 5 15:45:31 2001] [notice] child pid 24328 exit signal Segmentation fault (11) [Thu Jul 5 15:45:34 2001] [notice] child pid 24327 exit signal Segmentation fault (11) And all requests I did to my webserver I received that messages and nothing was returned back to my browser After some tries to compile with different apache versions, I tried to compile a different PHP version, 3.0.5, with my Apache on Static Mode, and I got it! I don't know what is going on with PHP/4.0.6, but I couldn't install with Apache/1.3.20 on a SuSE 7.0 p.s. I tried once a installation as Dynamic Module and I hadn't sucessful too. Edit this bug report at http://bugs.php.net/?id=11914edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11951 Updated: HTML encoding problem
ID: 11951 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Unknown/Other Function Operating System: Any PHP Version: 4.0.5 New Comment: no feedback Previous Comments: [2001-07-07 19:52:59] [EMAIL PROTECTED] Have you checked the default_charset in your php.ini? [2001-07-07 18:18:16] [EMAIL PROTECTED] There definately seems to be a problem using any operating system I've tried (Linux Debian, RedHat, Windows 98, Windows 2000). The problem is that the following piece of HTML: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type CONTENT=text/html; charset=windows-1251 ... will somehow be ignored, i.e. the document will not have this encoding set, instead ISO-8859-1 will be used. The biggest problem is that if try to change the encoding in the browser it won't change it, even though the browser will show it changed or if it changes it (very rare), after you reload the page the encoding is set back to ISO-8859-1, even though the browser always shows that the encoding is changed. This happens for all files that are processed by the php engine. I've correctly set the encoding option in the php.ini, even though it is always best for php, not to set this at all, since if you're using a remote server, for example hosting you site in the USA, but the page is in cyrillic, your php pages will never display properly. Probably the best thing is to leave the encoding up to the HTML headers set by each page. My workaround for this problem is (it always works correctly): ? include set_encoding.inc; ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type CONTENT=text/html; charset=windows-1251 where set_encoding.inc, contains in my case the following: header(Content-type: text/html;charset=windows-1251); header(Content-Language: bg); Edit this bug report at http://bugs.php.net/?id=11951edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
I disagree, is there any way dl() can be fixed, because it is a useful function... On Mon, 06 Aug 2001, Zeev Suraski wrote: At 17:49 06/08/2001, Stig Sæther Bakken wrote: [Zeev Suraski [EMAIL PROTECTED]] By the way, if it's really important, we can look into supporting it. The way it was before - it worked in most cases (assuming you never tried to use a class before you dl() the corresponding extension), but could result in crashes in other cases. I don't think it's very important, though. dl() should most probably be deprecated from the language, as it's not supported in thread safe mode, it's slow and insecure. It also creates a host of interesting bugs/buglets that are difficult to hunt and fix. Other than that - it's great :) Uhm, are you suggesting we take away the possibility of loading extensions at run-time? Depending on which run-time you mean, yes. I don't think it should be possible to load extensions from within a PHP script. Note that dl() never really behaved properly. It was always broken to one degree or another. Also, it'll be completely unavailable in the thread safe version of PHP, so we might as well deprecate it completely. Loading extensions in the php.ini file is still very much possible. Zeev -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12603 Updated: incorrect --enable-native-ttf, correct - --enable-native-tt
ID: 12603 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: *Configuration Issues Operating System: PHP Version: 4.0.6 New Comment: This has been fixed in the CVS for a LOOONG time... Previous Comments: [2001-08-06 12:06:42] [EMAIL PROTECTED] in configure mistake in --enable-native-tt (--enable-native-ttf) Edit this bug report at http://bugs.php.net/?id=12603edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: Bug #12599 Updated: ImageTTFText doesn't open font file
Well, then you didn't search for the right thing... On Mon, 06 Aug 2001, Carlos Viana wrote: I did search it before, with no results. ID: 12599 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: GD related Operating System: Win98 PHP Version: 4.0.6 New Comment: This has been fixed in CVS already. Next time, use the search before submitting bug reports.. --Jani Previous Comments: -- -- [2001-08-06 10:56:33] [EMAIL PROTECTED] The following code generates this warning (doesn't happen with 4.0.5): bWarning/b: Could not find/open font in bd:\public_html\image_create.php/b on line b357/bbr Code: ?php Header (Content-type: image/jpeg); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, D:/public_html/fonts/a.ttf, Testing... Omega: #937;); ImageJpeg ($im); ImageDestroy ($im); ? -- -- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/? id=12599edit=2 - Carlos Viana [[EMAIL PROTECTED]] [[EMAIL PROTECTED]] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11933 Updated: array_map causes segfault
ID: 11933 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Reproducible crash Old Operating System: Debian GNU/Linux sid (kernel 2 Operating System: Debian GNU/Linux sid (kernel 2 PHP Version: 4.0.6 New Comment: status - feedback Previous Comments: [2001-08-06 12:47:45] [EMAIL PROTECTED] Are you running Zend optimizer by any chance? [2001-07-06 10:25:03] [EMAIL PROTECTED] I have a script which seems to arbitrarily crash. Removing all uses of array_map corrects the problem, even though the apparent point of crash isn't anywhere near a call to array_map. I'd attach the script but it's rather long and I don't have time to whittle it down to a minimum case. gdb backtrace: #0 0x4024e390 in call_user_function_ex () from /usr/lib/apache/1.3/libphp4.so #1 0x402967eb in php_if_array_map () from /usr/lib/apache/1.3/libphp4.so #2 0x40247d09 in execute () from /usr/lib/apache/1.3/libphp4.so #3 0x40247f5c in execute () from /usr/lib/apache/1.3/libphp4.so #4 0x40247f5c in execute () from /usr/lib/apache/1.3/libphp4.so #5 0x4025654e in zend_execute_scripts () from /usr/lib/apache/1.3/libphp4.so #6 0x40268224 in php_execute_script () from /usr/lib/apache/1.3/libphp4.so #7 0x4026488f in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so #8 0x4026526e in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #9 0x402652aa in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #10 0x8054204 in ap_invoke_handler () #11 0x806306c in ap_some_auth_required () #12 0x80630c8 in ap_process_request () #13 0x805cc29 in ap_child_terminate () #14 0x805cdbc in ap_child_terminate () #15 0x805ced9 in ap_child_terminate () #16 0x805d395 in ap_child_terminate () #17 0x805da5d in main () #18 0x400e438b in __libc_start_main () from /lib/libc.so.6 Edit this bug report at http://bugs.php.net/?id=11933edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12477 Updated: preg_replace evaluates dollar signs as variables (eg $1,000 becomes ,000)
ID: 12477 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Open Old Bug Type: PCRE related Bug Type: Feature/Change Request Operating System: Linux and SCO PHP Version: 4.0.6 New Comment: reopened and reclassified as a feature request. Previous Comments: [2001-08-06 17:26:15] [EMAIL PROTECTED] If you don't want to use \n or $n substitution, then maybe you are better off using str_replace()? [2001-08-06 17:24:10] [EMAIL PROTECTED] Is it possible to ask that the this be included as a new feature? A switch to tell the PCRE engine? to ignore variable substitution? It would make things a lot easier, I think. Thanks [2001-08-06 12:49:00] [EMAIL PROTECTED] That's right, you need to escape $ in your replacement strings. [2001-07-31 00:40:54] [EMAIL PROTECTED] The setup for my templating system: $template=array( /({PAGETOP})/, /({PAGENAVBAR})/, /({PAGEMAIN})/, /({PAGELINKS})/, /({PAGESPACE})/, /({PAGETEXT})/, /({PAGENEWS})/, /({PAGEBOTTOM})/, /({PAGEDATA})/ ); $pagevars=array( PAGETOP = get_page($site-page_top), PAGENAVBAR = get_page($site-page_top), PAGEMAIN = get_page($site-page_main), PAGELINKS = get_page($site-page_links),, PAGESPACE = get_page($site-page_space), PAGETEXT = get_page($site-page_text), PAGENEWS = get_page($site-page_news),, PAGEBOTTOM = get_page($site-page_bottom), PAGEDATA = ); $page = {PAGETOP}{PAGENAVBAR}{PAGEMAIN}{PAGEBOTTOM}; $page = preg_replace($template,$pagevars,$page); echo $page; Basically each physical page referenced via the get_page function is a text template that may contain HTML, text or variables in the form {VAR}. Eventually content from a database ends up in a variable called PAGEDATA which is in the template stored in the page main variable. The problem: PAGEDATA ends up containing page text and it has something like would cost around $16,000 to complete in that text. When the preg_replace is performed, something somewhere is assuming that $16 is a variable (which doesn't exist) and the text ends up as would cost around ,000 to complete Edit this bug report at http://bugs.php.net/?id=12477edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP Notes
Since I have started maintaining the document notes, I have roughly estimated that 1/2-2/3 of the notes have to be deleted because people are not following the guidelines. The page that tells these guidelines is setup in paragraph form, which not too many people seem to read. I propose shortening this page and/or putting the guidelines in bulleted form. Anybody agree/disagree? (*Andy*) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12581 Updated: boolean fields not imported (patches enclosed)
ID: 12581 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Bug Type: dBase related Operating System: Linux 2.2.16-3 PHP Version: 4.0.6 New Comment: this is not a bug...already forwarded to [EMAIL PROTECTED] Thanks for your help, but next time just send it to [EMAIL PROTECTED] and don't open a bug about it. Previous Comments: [2001-08-05 16:17:47] [EMAIL PROTECTED] The file name to which the patches apply is ext/dbase/dbase.c. [2001-08-05 16:16:32] [EMAIL PROTECTED] Below are patches that fix the problem reported 10/20/2000 in bug report #7374. The problem is that when boolean (TRUE or FALSE) fields are present in an imported Dbase file, the value is always imported as FALSE (0). This problem has been present since 4.0.3. The patches below were generated using distribution 4.0.6. 466,467c466 case 'N': /* FALLS THROUGH */ case 'L': /* FALLS THROUGH */ --- case 'N': 473a473,486 case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N and insert 1 or 0, respectively. db_fdc is the number of decimals, which we don't care about. 3/14/01 LEW */ if ( (*str_value == 'T') || ( *str_value == 'Y' ) ){ add_next_index_long(return_value, strtol(1, NULL, 10)); } else { if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ add_next_index_long(return_value, strtol(0, NULL, 10)); } else { add_next_index_long(return_value, strtol( , NULL, 10)); } } break; 544,545c557 case 'N': /* FALLS THROUGH */ case 'L': /* FALLS THROUGH */ --- case 'N': 551a564,578 case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N and insert 1 or 0, respectively. db_fdc is the number of decimals, which we don't care about. 3/14/01 LEW */ if ( (*str_value == 'T') || ( *str_value == 'Y') ){ add_assoc_long(return_value, cur_f-db_fname, strtol(1, NULL, 10)); } else { if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ add_assoc_long(return_value, cur_f-db_fname,strtol(0, NULL, 10)); } else { add_assoc_long(return_value, cur_f-db_fname,strtol( , NULL, 10)); } } break; Edit this bug report at http://bugs.php.net/?id=12581edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12581 Updated: boolean fields not imported (patches enclosed)
ID: 12581 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: dBase related Operating System: Linux 2.2.16-3 PHP Version: 4.0.6 New Comment: status - bogus Previous Comments: [2001-08-05 16:18:03] [EMAIL PROTECTED] this is not a bug...already forwarded to [EMAIL PROTECTED] Thanks for your help, but next time just send it to [EMAIL PROTECTED] and don't open a bug about it. [2001-08-05 16:17:47] [EMAIL PROTECTED] The file name to which the patches apply is ext/dbase/dbase.c. [2001-08-05 16:16:32] [EMAIL PROTECTED] Below are patches that fix the problem reported 10/20/2000 in bug report #7374. The problem is that when boolean (TRUE or FALSE) fields are present in an imported Dbase file, the value is always imported as FALSE (0). This problem has been present since 4.0.3. The patches below were generated using distribution 4.0.6. 466,467c466 case 'N': /* FALLS THROUGH */ case 'L': /* FALLS THROUGH */ --- case 'N': 473a473,486 case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N and insert 1 or 0, respectively. db_fdc is the number of decimals, which we don't care about. 3/14/01 LEW */ if ( (*str_value == 'T') || ( *str_value == 'Y' ) ){ add_next_index_long(return_value, strtol(1, NULL, 10)); } else { if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ add_next_index_long(return_value, strtol(0, NULL, 10)); } else { add_next_index_long(return_value, strtol( , NULL, 10)); } } break; 544,545c557 case 'N': /* FALLS THROUGH */ case 'L': /* FALLS THROUGH */ --- case 'N': 551a564,578 case 'L': /* we used to FALLS THROUGH, but now we check for T/Y and F/N and insert 1 or 0, respectively. db_fdc is the number of decimals, which we don't care about. 3/14/01 LEW */ if ( (*str_value == 'T') || ( *str_value == 'Y') ){ add_assoc_long(return_value, cur_f-db_fname, strtol(1, NULL, 10)); } else { if ( (*str_value == 'F') || ( *str_value == 'N' ) ){ add_assoc_long(return_value, cur_f-db_fname,strtol(0, NULL, 10)); } else { add_assoc_long(return_value, cur_f-db_fname,strtol( , NULL, 10)); } } break; Edit this bug report at http://bugs.php.net/?id=12581edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12584 Updated: Var. comparison
ID: 12584 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *General Issues Operating System: Debian GNU/Linux [woody] PHP Version: 4.0.5 New Comment: any string that is not empty evaluates true. (*Andy*) Previous Comments: [2001-08-05 18:39:20] [EMAIL PROTECTED] Hi $reader, perhaps I'm tired out...but: ? $testvar = true; if ($testvar == DOUBLE) echo WHY?; ? ...why the script output is 'WHY?' ? Bug or feature? :-) Bye, Oliver Edit this bug report at http://bugs.php.net/?id=12584edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: [PHP-DOC] Bug #10398 Updated: configuration chapter still has the old php 3 error_reporting values
ok, i'll change it to closed... On Sun, 05 Aug 2001, Cynic wrote: Hi Egon. I checked the page, and it seems like it's been corrected meanwhile. It now contains info for both PHP 3 and 4. The bug should be prolly closed, not bogusified. At 02:30 8/6/2001, [EMAIL PROTECTED] wrote the following: -- On Sun, Aug 05, 2001 at 11:51:19PM -, [EMAIL PROTECTED] wrote: ID: 10398 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Documentation problem Operating System: * PHP Version: 4.0.4pl1 New Comment: status - bogus [...] Why? I know Hartmut very well, and he writes no nonsens on the bugs.list. Please reopen that bug. -Egon [EMAIL PROTECTED] - And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12530 Updated: Shuffle shouldn't use the least significant bit of rand()
ID: 12530 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Arrays related Bug Type: Feature/Change Request Operating System: Solaris (most unices) PHP Version: 4.0.6 New Comment: reclassified Previous Comments: [2001-08-02 07:24:41] [EMAIL PROTECTED] In ext/standard/array.c, the sorting algorithm of shuffle is defined as (php_rand() % 2) ? 1 : -1 This is fine for rand algorithms in which all bits are random but with Solaris and other unices this is not so. Quoting man random(): The difference is that rand(3C) produces a much less random sequence-in fact, the low dozen bits generated by rand go through a cyclic pattern. All the bits generated by random() are usable. This is not true however - the LSB of random() calls are predictable on some systems. You can verify if your system is affected by running this: ?PHP $a = array(); $b = array(); for($i=0; $i1000; $i++) // iterate 1000 times { $foo = ; // initialize random seq with new seed srand ($i); // create a string with the LSB of first 24 random numbers for($j=0; $j24; $j++) { $c = rand(); // $c = rand(0,32000); works on all systems // store the random number so we can check how many different // numbers were really generated $b[$c]= 1; // append the least signicant bit to the string $foo .= ($c % 2); } // store the parity string $a[$foo]= 1; } echo Parity string count: . count($a), BR; echo Random number count: . count($b), BR; ? If the counts are 1000/24000 you're fine. Affected systems I've tried this on return 4/24000. Proposed fix: change shuffle to call PHP's own rand function with limits, ie, rand(0,32000). This introduces randomness into the LSB and fixes shuffle. Edit this bug report at http://bugs.php.net/?id=12530edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] HTML in phpinfo()
the functions obviously uses something like html_entites() On Sat, 04 Aug 2001, Sebastian Bergmann wrote: I just noticed that, for instance with Apache 1.3 phpinfo() shows HTML tags like in Per Child: 0brKeep Alive: onbrMax Per Connection: 100 What can be done about this? -- Sebastian Bergmann Measure Traffic Usability http://sebastian-bergmann.de/http://phpOpenTracker.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11828 Updated: Useless flock()
ID: 11828 Updated by: andy Reported By: Hot Soon [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Filesystem function related Operating System: Windows 98 SE PHP Version: 4.0.6 New Comment: i don't believe win32 can use flock, but anyway no user feedback. closing... Previous Comments: [2001-07-02 06:09:33] [EMAIL PROTECTED] CGI or server module ? [2001-07-02 03:56:12] [EMAIL PROTECTED] Does Win32 implement flock()?? That might be why it doesn't do anything... --Wez. [2001-07-02 02:55:38] [EMAIL PROTECTED] Please provide a short reproducing script. [2001-07-01 21:38:39] Hot Soon [EMAIL PROTECTED] Both flock($fp,1) and flock($fp,2) always return false. It makes flock() a useless function. Edit this bug report at http://bugs.php.net/?id=11828edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] stop a file called foo.bar
Technically, this is not a PHP problem, but I will be nice... Add this the your .htaccess file Files foo.bar order allow,deny deny from all /Files You can also... Files *.bar order allow, deny deny from all /Files On Fri, 03 Aug 2001, void wrote: stop a file called foo.bar from being downloaded with a web server ? Say you'r web site's name is foobar.net. ...and... Script-kiddy Johny knows that, but also knows that you'r secret file is called foo.bar and it is saved in the root dir. of you'r web site. in a http browser little Johny can simply type in http://www.foobar.net/foo.bar; to download it, since the web server (i am on) will trigger the clients download box to open, because its not a wrapped extension, or php, or htm, or so . I have looked into the .htaccess file and added the directive IndexIgnore *.* there'r millions of directives and i am looking at them now, But please tell me if there IS NOT a directive I can add to the htacces file to keep little Johny from downloading the file. Because then i might just look the whole day long for nothing ! Thanx a lot for your time Ben enjoy the day :-) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12545 Updated: Configuration File (php.ini) Path
ID: 12545 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Configuration Issues Operating System: windows2000 pro eng PHP Version: 4.0.6 New Comment: status - bogus (user error) Previous Comments: [2001-08-03 07:20:01] [EMAIL PROTECTED] sorry for bothering, it looks good after cleaning and reinstalling php. [2001-08-03 06:23:35] [EMAIL PROTECTED] %SYSTEMROOT% is set to d:\winnt, but php looks after php.ini in c:\winnt [phpinfo: Configuration File (php.ini) Path c:\winnt] Edit this bug report at http://bugs.php.net/?id=12545edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Latest CVS Problem
In the latest CVS (200108021935) I can't get PHP to get anything off the internet. For example ? $stuff=fopen(http://yahoo.com,r;); ? produces this Segmentation Fault (core dumped) This has happened with every site I've tried. Anybody know what's going on? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12547 Updated: Segmentation fault
ID: 12547 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Unknown/Other Function Operating System: Mandrake 7.1 (2.4.3) PHP Version: 4.0.6 New Comment: unable to reproduce with latest CVS, please try it with the latest version at http://snaps.php.net Previous Comments: [2001-08-03 06:52:31] [EMAIL PROTECTED] I'm trying to install php with apache 1.3.20 but it Segmentation faults on a test script: ? if (!isset($code)) { exit(No code submitted.); } ? html body Executing:br ? highlight_string(?php \n$code\n?); ? hr width=40% ? eval($code); ? /body /html Config: ./configure --enable-debug --with-oci8=/db01/app/oracle/product/8.1.7/ --with-apache=../apache_1.3.20 --enable-track-vars BackTrace: GNU gdb 4.18 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-mandrake-linux... (gdb) (gdb) gdb httpd Undefined command: gdb. Try help. (gdb) Undefined command: gdb. Try help. (gdb) run -X -f /usr/local/apache/conf/httpd.test Starting program: /usr/local/src/apache_1.3.20/src/httpd -X -f /usr/local/apache /conf/httpd.test Program received signal SIGSEGV, Segmentation fault. 0x80846e3 in php_treat_data (arg=1, str=0x0, destArray=0x0) at php_variables.c:257 257 if (c_var *c_var) { (gdb) bt #0 0x80846e3 in php_treat_data (arg=1, str=0x0, destArray=0x0) at php_variables.c:257 #1 0x807f4a9 in php_hash_environment () at main.c:1038 #2 0x807eb00 in php_request_startup () at main.c:621 #3 0x8117749 in apache_php_module_main (r=0x8236c34, display_source_mode=0) at sapi_apache.c:66 #4 0x807c901 in send_php (r=0x8236c34, display_source_mode=0, filename=0x0) at mod_php4.c:536 #5 0x807c943 in send_parsed_php (r=0x8236c34) at mod_php4.c:547 #6 0x8146fc9 in ap_invoke_handler () #7 0x815baaf in process_request_internal () #8 0x815bb1a in ap_process_request () #9 0x81529f6 in child_main () #10 0x8152bb1 in make_child () #11 0x8152d2c in startup_children () #12 0x815339c in standalone_main () #13 0x8153bcc in main () #14 0x40625c7e in __libc_start_main () at ../sysdeps/generic/libc-start.c:122 Edit this bug report at http://bugs.php.net/?id=12547edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12554 Updated: switch() bug
ID: 12554 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Scripting Engine problem Bug Type: Feature/Change Request Operating System: linux PHP Version: 4.0.6 New Comment: reclassified (This is not a bug) Previous Comments: [2001-08-03 10:15:28] [EMAIL PROTECTED] ? switch($search) { case 'date': echo 'date'; break; case 'people': echo 'people'; break; case 'keyword': echo 'keyword'; break; default: echo 'default'; break; } ? Warning: Undefined variable: search in /home/httpd/vhosts/mediawaveonline/test2.php on line 4 Warning: Undefined variable: search in /home/httpd/vhosts/mediawaveonline/test2.php on line 7 Warning: Undefined variable: search in /home/httpd/vhosts/mediawaveonline/test2.php on line 10 if you ask me, I should get a warning on line 2 where the switch is, not on 4, 7, 10 where the case statements are. php 4.0.5 cgi does not do this. Chris Lee [EMAIL PROTECTED] Edit this bug report at http://bugs.php.net/?id=12554edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12531 Updated: undefined symbol: mxdriver
ID: 12531 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: IMAP related Operating System: RedHat 7.1 PHP Version: 4.0.6 New Comment: what errors exactly are you getting? Previous Comments: [2001-08-02 15:22:03] [EMAIL PROTECTED] I got them from: ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/i386 the src rpm comes from ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/SRPMS However, when you don't call out a directory for imap during configure, PHP will use its own extensions. It doesn't matter. any imap support and I get undefigned symbol: mxdriver. I've downloaded the source tarball from UW and I've compiled it. I have not had a chance to run a make clean and reconfigured from the PHP directory yet. Its still not supposed to be this hard. [2001-08-02 15:13:50] [EMAIL PROTECTED] I got them from: ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/i386 the src rpm comes from ftp://sunsite.unc.edu/pub/distributions/redhat/updates/7.1/en/os/SRPMS However, when you don't call out a directory for imap during configure, PHP will use its own extensions. It doesn't matter. any imap support and I get undefigned symbol: mxdriver. I've downloaded the source tarball from UW and I've compiled it. I have not had a chance to run a make clean and reconfigured from the PHP directory yet. Its still not supposed to be this hard. [2001-08-02 12:28:32] [EMAIL PROTECTED] I just tried this with RH 7.1: 1. Installed imap-* rpms from RedHat distribution 2. Installed apache 1.3.20 with DSO support 3. Got the 4.0.6 sources and did these steps: # tar zxfv php-4.0.6.tar.gz # cd php-4.0.6 # ./configure \ --prefix=/www/apache \ --with-apxs=/www/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-zlib \ --with-imap \ --with-imap-ssl=/usr \ --with-kerberos \ --with-openssl # make ; make install # /www/apache/bin/apachectl start And no problems at all..so my next question is: WHERE did you get those imap-rpms from?? --Jani [2001-08-02 08:52:52] [EMAIL PROTECTED] I just tried a new wrinkle. I used the following: --with-mysql=/usr --with-imap=/usr --with-apache=/home/curtis/apache/apache_1.3.20 Still no joy. [2001-08-02 07:42:14] [EMAIL PROTECTED] When compiling PHP with imap support, I always get the same error when starting apache. When I run configure using the following directives: --with-mysql=/usr \ --with-apxs=/usr/local/apache/bin/apxs --with-imap=/usr/local/apache/imap --with-gd=/usr I have copied all of the include files to /usr/local/apache/imap/include and the libs the corresponding lib directory. I've grepped both the headers and the libraries for mxdriver and its in there. If I remove imap support apache will run fine. Since headers and libraries are kept in /usr/lib and /usr/include on RedHat. I find all of the libraries there. I downloaded and installed the latest imap-2000c, imap-2000c-devel and imap-2000c-src rpms. I've downloaded and compiled my own apache binaries. I re-compiled apache with all the new headers installed. WTF, over? I'm not the only one to have this problem and I've been working on this problem off and on for a couple of weeks and using the self help features here, but now I'm totally frustrated and this blasted thing will still not work with imap support and I need imap support. Its not supposed to be this hard. Edit this bug report at http://bugs.php.net/?id=12531edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Fwd: FW: [PHP-DEV] print_r
-- Forwarded Message -- Subject: FW: [PHP-DEV] print_r Date: Wed, 1 Aug 2001 08:19:09 +0300 From: Emanuel Dejanu [EMAIL PROTECTED] Sorry to forward this to you but I really have problems in printing a doubled linked class. Can you take a look at the following message and give me an answer. Thanks, Emanuel Dejanu -Original Message- From: Emanuel Dejanu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: [PHP-DEV] print_r Hi, Is there a posibility to print an object but to not print some fields. If I use print_r he will print all variabiles from my object, but I want on variabile to not be printed. I do not want to write my own function. Ex. class Node { var $name; var $parent = '/' var $children = array(); function Node($name, $parent) { $this-parent = $parent; $this-name = $name; } } $rootNode = new Node('root', ''); array_push($rootNode-children, new Node('child1', $rootNode)); $child1Node = $rootNode-children[0]; array_push($child1Node-children, new Node('child1', $child1Node)); print_r($rootNode); will print make a recursivity. What will be nice is to allow that some variabiles to not be printed like this: class Node { var $name; var $__parent = '/' var $children = array(); function Node($name, $parent) { $this-__parent = $parent; $this-name = $name; } } . /* add the root and childrens */ print_r($rootNode); will print now the corret tree. Bellow you find the only modification that need to be done for this to work. Best regards, Emanuel Dejanu File: Zend/zend.c static void print_hash(HashTable *ht, int indent) { zval **tmp; char *string_key; HashPosition iterator; unsigned long num_key, str_len; int i, key_type; /** HERE */ for (i=0; iindent; i++) { ZEND_PUTS( ); } ZEND_PUTS((\n); indent += PRINT_ZVAL_INDENT; zend_hash_internal_pointer_reset_ex(ht, iterator); while (zend_hash_get_current_data_ex(ht, (void **) tmp, iterator) == SUCCESS) { / HERE **/ key_type = zend_hash_get_current_key_ex(ht, string_key, str_len, num_key, 0, iterator); if (key_type == HASH_KEY_IS_STRING) if (string_key[0] == '_' string_key[1] == '_') continue; /*** HERE **/ for (i=0; iindent; i++) { ZEND_PUTS( ); } ZEND_PUTS([); switch (key_type) { case HASH_KEY_IS_STRING: ZEND_PUTS(string_key); break; case HASH_KEY_IS_LONG: zend_printf(%ld,num_key); break; } ZEND_PUTS(] = ); zend_print_zval_r(*tmp, indent+PRINT_ZVAL_INDENT); ZEND_PUTS(\n); zend_hash_move_forward_ex(ht, iterator); } indent -= PRINT_ZVAL_INDENT; for (i=0; iindent; i++) { ZEND_PUTS( ); } ZEND_PUTS()\n); } -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12505 Updated: array_sum function total calculate error
ID: 12505 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: Arrays related Operating System: Red Hat Linux 6.1 PHP Version: latest CVS (08/01/01) New Comment: status - analyzed Previous Comments: [2001-08-01 05:56:08] [EMAIL PROTECTED] The problem is with the typecasting to LONG, if you use the code: ?php $tt=array(382478633.0,367687181.0,452504275.0,471367521.0,848270658.0,1181944543.0); echo array_sum($tt).\n; ? The result is the correct one (3704252811) Solution would be to 1) use floating point representation for bign numbers in PHP code (add caveat to the manual perhaps?) or 2) check that the array_sum result is nor overflowing LONG in the C code implementation and bump the type to DOUBLE if it does. second option would be better IMHO [2001-08-01 04:02:52] [EMAIL PROTECTED] $tt=array(382478633,367687181,452504275,471367521,848270658,1181944543); $total_tt=array_sum($tt); echo Total_tt=.$total_tt; // Prints Total_tt=-590714485 Must be 3704252811. Edit this bug report at http://bugs.php.net/?id=12505edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12510 Updated: checkdnsrr gives strange answers
ID: 12510 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Network Functions Operating System: Linux PHP Version: 4.0.6 New Comment: When I used nslookup on your site I got... set type=MX (The default type that PHP looks for) 7thGuard.net 7thGuard.net preference=10, mail exchanger = mail.7thGuard.net [...] *.7thGuard.net Name: *.7thGuard.net *.7thGuard.net preference=10, mail exchanger = mail.7thGuard.net [...] So, *.7thGuard.net has MX records. By default, checkdnsrr looks for MX records. Not a PHP bug. Previous Comments: [2001-08-01 06:48:25] [EMAIL PROTECTED] checkdnsrr for *.domanname.com gives not found. It's okay. It works for most domains in internet. But on my system checkdnsrr(*.7thGuard.net) and checkdnsrr(*.7thGuard.com) returns true. Should't it always return fasle? Edit this bug report at http://bugs.php.net/?id=12510edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12510 Updated: checkdnsrr gives strange answers
ID: 12510 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *Network Functions Operating System: Linux PHP Version: 4.0.6 New Comment: no it doesn't 7bulls.com may have MX records, but no *.7bulls.com nslookup on *.7bulls.com set type=MX *.7bulls.com **207-230-75-222.deltacom.net can't find *.7bulls.com: Non- existant host/domain Previous Comments: [2001-08-01 09:01:03] [EMAIL PROTECTED] adny wrote: *.7thGuard.net has MX records. By default, checkdnsrr looks for MX recors. Not a PHP bug but, for example, checkdnsrr(*.7bulls.com) returns false. 7bulls.com also has MX. [2001-08-01 08:57:57] [EMAIL PROTECTED] When I used nslookup on your site I got... set type=MX (The default type that PHP looks for) 7thGuard.net 7thGuard.net preference=10, mail exchanger = mail.7thGuard.net [...] *.7thGuard.net Name: *.7thGuard.net *.7thGuard.net preference=10, mail exchanger = mail.7thGuard.net [...] So, *.7thGuard.net has MX records. By default, checkdnsrr looks for MX records. Not a PHP bug. [2001-08-01 08:57:56] [EMAIL PROTECTED] When I used nslookup on your site I got... set type=MX (The default type that PHP looks for) 7thGuard.net 7thGuard.net preference=10, mail exchanger = mail.7thGuard.net [...] *.7thGuard.net Name: *.7thGuard.net *.7thGuard.net preference=10, mail exchanger = mail.7thGuard.net [...] So, *.7thGuard.net has MX records. By default, checkdnsrr looks for MX records. Not a PHP bug. [2001-08-01 06:48:25] [EMAIL PROTECTED] checkdnsrr for *.domanname.com gives not found. It's okay. It works for most domains in internet. But on my system checkdnsrr(*.7thGuard.net) and checkdnsrr(*.7thGuard.com) returns true. Should't it always return fasle? Edit this bug report at http://bugs.php.net/?id=12510edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12513 Updated: Automatic Rollback of open transactions in persistent links
ID: 12513 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: MySQL related Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0.6 New Comment: reclassified Previous Comments: [2001-08-01 09:06:41] [EMAIL PROTECTED] When using mysql_pconnect() the connection to the database (abviously) persists. This has the site-effect that open transactions at the end of the page request remain open if you do not explicitly commit/rollback the transaction. This can happen very easily if you have an error in your script. The Postgres driver does an automatic rollback at request shutdown, the mysql driver should do the same. Edit this bug report at http://bugs.php.net/?id=12513edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12485 Updated: Exec() doesn't work
ID: 12485 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Analyzed Bug Type: Program Execution Operating System: windows 2000 PHP Version: 4.0.6 New Comment: Confirmed under Windows 98 w/ PHP 4.0.6 Previous Comments: [2001-08-01 19:33:31] [EMAIL PROTECTED] User comment (gebruik aub het web-formulier): - Yes sorry for not mentioning it before: Something like cannot fork [dir] Regards, Max - [2001-07-31 08:45:10] [EMAIL PROTECTED] any error messages? [2001-07-31 08:43:15] [EMAIL PROTECTED] Exec doesnt work in 4.0.6 in cgi mode. Installed 4.0.5 now and it is ok. Edit this bug report at http://bugs.php.net/?id=12485edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11822 Updated: Warning: mail() ist not supported in this PHP build in ...
ID: 11822 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Mail related Operating System: SuSE 7.0 PHP Version: 4.0.6 New Comment: no feedback Previous Comments: [2001-07-02 03:07:24] [EMAIL PROTECTED] If you don't have sendmail installed, or sendmail could not be found in $PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib then HAVE_SENDMAIL will not be defined. What is the name of your nullmailer binary? Derick [2001-07-01 10:44:48] [EMAIL PROTECTED] Hi, config.log tells me: configure:4628: checking for sendmail Nothing else. (-- I have installed Nullmailer in a different location than /usr/.. -- is that bad?) Thank you for answering so fast, By(t)e, matthias [2001-07-01 10:25:07] [EMAIL PROTECTED] What does config.log tells about mail or sendmail? Derick [2001-07-01 10:16:08] [EMAIL PROTECTED] Hi, I've configured PHP 4.0.6 for CGI. Problem: Everytime mail()-function is called it returns the error: Waring - mail () is not supported in this PHP build I tried to add: #define HAVE_SENDMAIL 1 in the php_config.h - but the error stayed. By(t)e, Matthias Edit this bug report at http://bugs.php.net/?id=11822edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11838 Updated: Apache crashed after PHP inicialization
ID: 11838 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Reproducible crash Operating System: RedHat Linux 6.2 PHP Version: 4.0.6 New Comment: no feedback Previous Comments: [2001-07-02 12:37:57] [EMAIL PROTECTED] Please add the backtrace that gdb showed. Derick [2001-07-02 12:06:03] [EMAIL PROTECTED] Compiling Apache 1.3.20, PHP 4.0.6 and mod_ssl 2.8.4 (with OpenSSL/0.9.6a) produced correctly httpd, but when httpd is started (httpd with or without -DSSL), it generates /core file... - gdb says usefull informations...:-) Version PHP4.0.5 and the same way works correctly. PaJaSoft Edit this bug report at http://bugs.php.net/?id=11838edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12453 Updated: comparing 0==null is true?
ID: 12453 Updated by: andy Reported By: [EMAIL PROTECTED] Old Summary: comparing 0==null is true? Status: Open Bug Type: Scripting Engine problem Operating System: Win2k PHP Version: 4.0.6 New Comment: i thought that any integer =0 was also equal to any string... for example (in your script): $MyVar=0; if ($MyVar==blahblahblahblah) echo yes; else echo no; will echo yes I don't know if this is supposed to happen, but it does. If you set the $MyVar=1, the script prints no. Can anybody else verify if this is supposed to happen, or if this is actually a bug? Previous Comments: [2001-07-28 22:54:40] [EMAIL PROTECTED] If you compare the integer(0) to the string null, PHP thinks they are the same. Am I hopped up on goofballs, or whats up here? $MyVar=0; if($MyVar==null) print(apparently $MyVar is equal to \null\); else print(its not null, its $MyValue); Edit this bug report at http://bugs.php.net/?id=12453edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Fwd: [PHP-DEV](roberto ask)
Can anybody help this person? -- Forwarded Message -- Subject: [PHP-DEV](roberto ask) Date: Fri, 27 Jul 2001 14:04:39 -0300 From: Celestino Roberto Alejandro [EMAIL PROTECTED] Hello, andy, please excuse me, to bother you, in your personal account, but i want to help in the develop of php, and reading the most recently code of the cvs that i get, and do you know where i can get more information about the PHP API and Zend API, and read the .txt about the api that get together at the code, and im try translate it to spanisf, for some fast reference, and while read the code, i try begin with the standar, etc, for can begin to develop, but have some doubt, and more, so, do you know where i cand found more information? reference? or documentation? about how develop an extension, etc? - Original Message - From: Andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 24, 2001 12:49 PM Subject: [PHP-DEV] Fwd: PHP Bug 8664 Does anyone have an opinion on this? -- Forwarded Message -- Subject: PHP Bug 8664 Date: Tue, 24 Jul 2001 17:48:31 +0200 From: Frank Loeffler [EMAIL PROTECTED] Hi, you adviced in this bug to use ImageColorExtract to set a color transparent. As far as I know, this information is already in a (loaded) picture (ImageCreateFromPNG). I tried - in PHP this information is not used. I would like to have PHP set the transparent color in ImageCreateFromPNG (or GIF), then the user does not have to take care about the RGB of the transparent color (the PHP-script maybe does not know anything about the picture). Using ImageColorExtract has maybe also another problem: what happens, if two or more colors have the same RGB-value? So, my question is, if it would be ok to report this as bug or if I am wrong. Thanks, Frank --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12484 Updated: Want to construct JPGS with GD how to config
ID: 12484 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: *Compile Issues Operating System: Linux (2.2.16) PHP Version: 4.0.6 New Comment: Do you have GD installed (correctly)? Did PHP compile correctly? Do you have a sample script to show me? Does this only happen with JPGS? Previous Comments: [2001-07-31 08:39:48] [EMAIL PROTECTED] Hello, i tried to configure php so that i can use GD Lib to make JPGS and so on. Bit it dunn work. what do i have to put into the config string? i tried like this: ./configure \ --with-apache=../apache_1.3.20 \ --with-mysql \ --enable-versioning \ --enable-track-vars=yes \ --enable-url-includes \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --enable-ftp \ --with-gd \ --with-config-file-path=/etc Edit this bug report at http://bugs.php.net/?id=12484edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12485 Updated: Exec() doesn't work
ID: 12485 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Program Execution Operating System: windows 2000 PHP Version: 4.0.6 New Comment: any error messages? Previous Comments: [2001-07-31 08:43:15] [EMAIL PROTECTED] Exec doesnt work in 4.0.6 in cgi mode. Installed 4.0.5 now and it is ok. Edit this bug report at http://bugs.php.net/?id=12485edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: Bug #12485 Updated: Exec() doesn't work
can you please post this on the bug database, not email it. On Tue, 31 Jul 2001, Max Dammers wrote: Yes sorry for not mentioning it before: Something like cannot fork [dir] Regards, Max - Original Message - From: Bug Database [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 2:45 PM Subject: Bug #12485 Updated: Exec() doesn't work ID: 12485 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Program Execution Operating System: windows 2000 PHP Version: 4.0.6 New Comment: any error messages? Previous Comments: [2001-07-31 08:43:15] [EMAIL PROTECTED] Exec doesnt work in 4.0.6 in cgi mode. Installed 4.0.5 now and it is ok. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=12485edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12484 Updated: Want to construct JPGS with GD how to config
ID: 12484 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *Compile Issues Operating System: Linux (2.2.16) PHP Version: 4.0.6 New Comment: Please read the documentation... http://php.net/manual/en/install.apache.php BEFORE any of this, you need to install gd http://www.boutell.com/gd/ Previous Comments: [2001-07-31 09:08:02] [EMAIL PROTECTED] This is NOT a support forum, ask these kind of questions on proper mailing list, in this case: [EMAIL PROTECTED] Answer to your question: Your gd library needs to have jpeg support. And you need to add this configure option: --with-jpeg-dir=/path/to/libjpeg/install/prefix --Jani [2001-07-31 08:44:11] [EMAIL PROTECTED] Do you have GD installed (correctly)? Did PHP compile correctly? Do you have a sample script to show me? Does this only happen with JPGS? [2001-07-31 08:39:48] [EMAIL PROTECTED] Hello, i tried to configure php so that i can use GD Lib to make JPGS and so on. Bit it dunn work. what do i have to put into the config string? i tried like this: ./configure \ --with-apache=../apache_1.3.20 \ --with-mysql \ --enable-versioning \ --enable-track-vars=yes \ --enable-url-includes \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --enable-ftp \ --with-gd \ --with-config-file-path=/etc Edit this bug report at http://bugs.php.net/?id=12484edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12437 Updated: string incrementing is different from before
ID: 12437 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Strings related Operating System: Linux RH 7.1 PHP Version: 4.0.6 New Comment: no bug here... Previous Comments: [2001-07-27 18:43:53] [EMAIL PROTECTED] when incrementing a numerical string with leading zeros with the '++' operator, the result is different in 4.0.6 than in eariler version of PHP. for example: for($i=01;$i=10;$i++) { echo $i. ; } in 4.0.5 the output was 01 02 03 04 05 06 07 08 09 10 but in 4.0.6 the output is 01 2 3 4 5 6 7 8 9 10 Edit this bug report at http://bugs.php.net/?id=12437edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12440 Updated: kaola404
ID: 12440 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Bogus Bug Type: Informix related Operating System: linux PHP Version: 4.0.6 New Comment: not enough info read: http://php.net/bugs-dos-and-donts.php Previous Comments: [2001-07-27 20:55:25] [EMAIL PROTECTED] Not much information, give mor details, reproducable able small error scripts, log files, etc. [2001-07-27 20:49:39] [EMAIL PROTECTED] php+informix Edit this bug report at http://bugs.php.net/?id=12440edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #12432 Updated: not valid mysql ressource
STOP SENDING THESE EMAILS To unsubscribe... send a message to [EMAIL PROTECTED] or go to http://php.net/support.php, click on PHP-DEV, type your email and hit unsubscribe. On Mon, 30 Jul 2001, Ramsi Sras wrote: UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!!UNSUBSCRIBE ME PLEASE!! [EMAIL PROTECTED] schrieb: ID: 12432 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Open Bug Type: MySQL related Operating System: GNU Linux PHP Version: 4.0.6 New Comment: The eMail system is not working correctly, there is some more sourcecode in my message, please watch it directly http://www.php.net/bugs.php?id=12432 First I thought it is some sort of scope problem, but it is also reproducable with different var Names. I think he ignores the link variable totally. Maybe closes the default link (first created) Previous Comments: [2001-07-27 20:43:22] [EMAIL PROTECTED] This is currently a feature. Although you haven't given full source I assume both 'mysql_connect()'s were the same. Two or more connects with the same parameter reuse the allready established connection and don't create a new one. So, closing one of them closes all other, too. Re-Open if my assumption were wrong. [2001-07-27 13:31:35] [EMAIL PROTECTED] $eLink = mysql_connect(...); . . . class test { function einTest() { $eLink = mysql_connect(); mysql_close($eLink); } } $aVar = new test(); $aVar-einTest(); mysql_query(...,$eLink); - not valid mysql ressource After einTest() it looks like it closes the outside mysql_connection ($eLink) no matter how the connection var in einTest() is named! Serious stuff! Edit this bug report at http://bugs.php.net/?id=12432edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Content-Type: text/html; name=unnamed Content-Transfer-Encoding: 7bit Content-Description: -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12324 Updated: arg_separator.output broken
ID: 12324 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Open Bug Type: *Configuration Issues Operating System: linux PHP Version: 4.0.6 New Comment: i have gotten emails from people saying that they have reproduced this error. Can anybody from PHP verify this? I have not been able to reproduce this error (using the script in my last post.) Previous Comments: [2001-07-24 09:20:39] [EMAIL PROTECTED] you have your params mixed up. replace arg_separator.output with arg_separator.input and things will work. I modified your script below. This one works as you wanted it to. ?php global $HTTP_POST_VARS,$HTTP_GET_VARS, $HTTP_COOKIE_VARS, $PHP_SELF; ini_set(arg_separator.input, ;); define(a, ini_get(arg_separator.input)); if($HTTP_GET_VARS){ $total = count($HTTP_GET_VARS); echo Displaying GET variables; while(list($key, $val) = each($HTTP_GET_VARS)) { echo br /Key: '$key' Value '$val'; } } echo hr; echo A HREF=\$PHP_SELF?i=am.a.do=one\Click to activate test/a; echo hr; ? [2001-07-23 20:22:46] [EMAIL PROTECTED] I've tested this problem on both php4.0.5 and 4.0.6, and it has also reproduced on other machines. I will not however, that this problem does not seem to occur on windows/apache machines. the problem is that get vars using an arg_separator.output other than '' will be ignored when attempting to parse HTTP_GET_VARS. there is an example avaliable at http://wart.phpking.org/test.php the source is visible at http://wart.phpking.org/test.phps a side note - it would seem that the transparent session info appended to a url by php will also not follow a new 'arg_separator.output' value.. for example - if i set the arg_separator.output to ';'.. my PHPSESSID will still be appended to the url with a '' -voudras Edit this bug report at http://bugs.php.net/?id=12324edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12324 Updated: arg_separator.output broken
ID: 12324 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: *Configuration Issues Operating System: linux PHP Version: 4.0.6 New Comment: ok... the problem exists in your script at http://wart.phpking.org/test.php but using the EXACT script that I created, it works fine... Please use this one... (EXACTLY) status - closed Previous Comments: [2001-07-31 10:55:35] [EMAIL PROTECTED] i have gotten emails from people saying that they have reproduced this error. Can anybody from PHP verify this? I have not been able to reproduce this error (using the script in my last post.) [2001-07-24 09:20:39] [EMAIL PROTECTED] you have your params mixed up. replace arg_separator.output with arg_separator.input and things will work. I modified your script below. This one works as you wanted it to. ?php global $HTTP_POST_VARS,$HTTP_GET_VARS, $HTTP_COOKIE_VARS, $PHP_SELF; ini_set(arg_separator.input, ;); define(a, ini_get(arg_separator.input)); if($HTTP_GET_VARS){ $total = count($HTTP_GET_VARS); echo Displaying GET variables; while(list($key, $val) = each($HTTP_GET_VARS)) { echo br /Key: '$key' Value '$val'; } } echo hr; echo A HREF=\$PHP_SELF?i=am.a.do=one\Click to activate test/a; echo hr; ? [2001-07-23 20:22:46] [EMAIL PROTECTED] I've tested this problem on both php4.0.5 and 4.0.6, and it has also reproduced on other machines. I will not however, that this problem does not seem to occur on windows/apache machines. the problem is that get vars using an arg_separator.output other than '' will be ignored when attempting to parse HTTP_GET_VARS. there is an example avaliable at http://wart.phpking.org/test.php the source is visible at http://wart.phpking.org/test.phps a side note - it would seem that the transparent session info appended to a url by php will also not follow a new 'arg_separator.output' value.. for example - if i set the arg_separator.output to ';'.. my PHPSESSID will still be appended to the url with a '' -voudras Edit this bug report at http://bugs.php.net/?id=12324edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10327 Updated: urldecode decodes url-encoded cyrillic strings incorrectly.
ID: 10327 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *URL Functions Operating System: FreeBSD 4.1-RELEASE PHP Version: 4.0.3pl1 New Comment: works fine for me. Please upgrade and re-open if still exists. Previous Comments: [2001-04-14 14:00:21] [EMAIL PROTECTED] Sorry! dump of phpinfo() function is here: http://www.77rus.ru/a.php [2001-04-14 13:52:23] [EMAIL PROTECTED] ?php //Write encoding echo Src: .urlencode(Çàïèñü óñïåøíî èçìåíåíà).br\n; //Wrong decoding echo Src-Dst: .urldecode(urlencode(Çàïèñü óñïåøíî èçìåíåíà)).br\n; //Write encoding of wrong decoding. See the difference!!! echo Src-Dst-Src: .urlencode(urldecode(urlencode(Çàïèñü óñïåøíî èçìåíåíà))).br\n; ? './configure' '--without-x' '--enable-track-vars' '--with-apache=../apache_1.3.14rusPL30.0' '--with-mod_charset' '--with-gd' '--enable-ftp' '--with-mysql=/usr/local' '--with-pcre-regex' Here you can see dump of phpinfo() function in our system. http://www.77rus.ru/manager/questions/a.php Edit this bug report at http://bugs.php.net/?id=10327edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8398 Updated: Php can not get any message from RAISEERROR
ID: 8398 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: MSSQL related Operating System: sql2000+windowsMe PHP Version: 4.0.4 New Comment: no feedback. Previous Comments: [2001-06-30 15:46:00] [EMAIL PROTECTED] Could you provide some saple code. When I do a mssql_query(RAISERROR ('Test', 15, 1) with nowait); I get the error message right away. [2000-12-24 03:24:08] [EMAIL PROTECTED] Even I try Rasinerrorwith nowait the error_level is bigger that 10. The message will apear as php warning when scripts end. Same level error generated by server will be retrieved at once. Edit this bug report at http://bugs.php.net/?id=8398edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8780 Updated: difference in fwrite with cgi/apachemodule
ID: 8780 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Filesystem function related Operating System: Windows NT/2000 PHP Version: 4.0.3pl1 New Comment: ok... Does this happen in the latest version of PHP? Previous Comments: [2001-07-21 19:02:33] [EMAIL PROTECTED] What's the bug??? I don't see this as a bug... [2001-01-18 08:20:51] [EMAIL PROTECTED] If I use PHP as CGI with Apache 1.3.12, I must add chr(13).chr(10) to textfiles, when I write them with fwrite and I want some linefeed. If PHP is used as a Apache module, in textfiles there are double linefeed [one from PHP the other from chr(13).chr(10)]. Why is it different and will one or the other case be corrected? Thanks, Rolf. Edit this bug report at http://bugs.php.net/?id=8780edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #9128 Updated: Memory Leak or Memory Problem.
ID: 9128 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Filesystem function related Operating System: Linux PHP Version: 4.0.4pl1 New Comment: I get 404 Not Found errors when I go to these pages, please include a valid address. Previous Comments: [2001-06-04 16:28:59] [EMAIL PROTECTED] Here are the example: http://www.bate.de/bug/ http://www.bate.de/bug/bug.phps (source) Bat[e] [2001-06-03 02:15:27] [EMAIL PROTECTED] Please include shortest possible example script which can be used to reproduce this. [2001-04-29 13:49:31] [EMAIL PROTECTED] Ok, to code my shit i used $fp = fopen(http://weburl;); but i forgotten to close the handler with fclose($fp). SO i tested and tested my script and now... pl0nk my apache crached and i found in error log Zend Stack crashed at xxx.c line 42. I tested it again and i found ~20 httpd proccesses with ~ 15mb per proccess. Maybe i can post some code. [2001-04-28 09:35:07] [EMAIL PROTECTED] ok. really reclassify. [2001-04-28 09:34:07] [EMAIL PROTECTED] reclassify The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=9128 Edit this bug report at http://bugs.php.net/?id=9128edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12149 Updated: PHP 4.0.6 upgrade seems to break cURL https
ID: 12149 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Bug Type: cURL related Operating System: WinNT4sp6a PHP Version: 4.0.6 New Comment: you can get the latest cvs at http://snaps.php.net/ Previous Comments: [2001-07-31 15:46:27] [EMAIL PROTECTED] I haven't set anything up that would allow me to build php here; I'd need binaries to test right away. [2001-07-30 18:13:53] [EMAIL PROTECTED] can you try this with the latest cvs on a windows system and let me know if it still happens? Thanks. [2001-07-13 14:17:02] [EMAIL PROTECTED] After reverting to 4.0.5, https works fine. ? $curl= curl_init('https://www.thawte.com/'); curl_exec($curl); curl_close($curl); ? Edit this bug report at http://bugs.php.net/?id=12149edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #8097 Updated: printf() and float data vs.setlocale()
ID: 8097 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Strings related Operating System: Linux (SuSE 7.0) PHP Version: 4.0.3pl1 New Comment: unable to reproduce with latest version of PHP, please upgrade and re-open if still a problem. Previous Comments: [2000-12-04 13:08:55] [EMAIL PROTECTED] Changing the locale setting to a country that uses comma (,) as the decimal seperator will stip off decimal places from the float value in printf/sprintf. Example: MySQL table: create table test ( name varchar(100), value float(16,2) ); insert into test values ('bla', 3.789); PHP code: setlocale(LC_ALL, de_DE); // mysql_connect etc. $row = mysql_fetch_array($result); printf(%s: %.2f, $row[name], $row[value]); Result: bla: 3.00 Edit this bug report at http://bugs.php.net/?id=8097edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12385 Updated: getmxrr returns an invalid false message when...
ID: 12385 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Mail related Bug Type: Feature/Change Request Operating System: FreeBSD PHP Version: 4.0.6 New Comment: reclassified Previous Comments: [2001-07-25 22:27:09] [EMAIL PROTECTED] getmxrr is designed to return a list of mx records found for a host. According to smtp rfcs, if no mx records are found, then the hostname's A record is considered to be the lowest mx. Take for example the following hostname: genet.sickkids.on.ca This is a separate zone which does not have any MX records. It has an A record and that suffices for people to receive email on that hostname. getmxrr should be changed so that it should also return true if: no mx records are found, BUT an A record exists for the hostname. Why? Because smtp rfc's state that if there are no mx records, the A record should be considered to be the lowest priority mx record. Edit this bug report at http://bugs.php.net/?id=12385edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12377 Updated: Socket error
ID: 12377 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Unknown/Other Function Operating System: Linux 2.2.14 PHP Version: 4.0.6 New Comment: can you include a sample script for me to test... Previous Comments: [2001-07-25 15:27:23] [EMAIL PROTECTED] While working with sockets, when returning a port from a function, you need to do intvalue($myvariable) for bind() to accept the port. It doesn't error out, but just doesn't open the port. Edit this bug report at http://bugs.php.net/?id=12377edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12370 Updated: Feature suggestion
ID: 12370 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Variables related Bug Type: Feature/Change Request Operating System: Linux 2.4.3 PHP Version: 4.0.6 New Comment: reclassified Previous Comments: [2001-07-25 12:28:25] [EMAIL PROTECTED] After reading the documentation on integers, I found myself wondering why PHP does not allow a 64-bit Long Integer type instead of converting values that overflow 32bit Integers to Double? Edit this bug report at http://bugs.php.net/?id=12370edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Fwd: Bug id #12378 2000 is not a leapyear!
Is this right??? Also, look at bug #12378 (http://php.net/bugs.php?id=12378) -- Forwarded Message -- Subject: Bug id #12378 2000 is not a leapyear! Date: Thu, 26 Jul 2001 06:01:13 -0400 From: Christian Hansen [EMAIL PROTECTED] Sorry i didn't write on the bugtracing system. I didn't provite a password the first time and is unable to apply my comment there. According to the gregorian calender every data where $year % 4 = 0 is a leapyear unless $year % 400 = 0. Therefore the year 2000 is not a leapyear Greetings from Christian, denmark --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12374 Updated: PHP Manual
ID: 12374 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Feature/Change Request Operating System: Linux 2.4.3 PHP Version: 4.0.6 New Comment: try going to http://php.net/manual/browse-errata.php Previous Comments: [2001-07-25 13:49:39] [EMAIL PROTECTED] bogus [2001-07-25 13:36:31] [EMAIL PROTECTED] The user comments at the bottom of each page are invaluable. Perhaps periodically, you could provide a gzipped mirror of these included in the manual. This would no doubt be very successful. Edit this bug report at http://bugs.php.net/?id=12374edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12376 Updated: PHP isn't loading the extension modules...
ID: 12376 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: GD related Operating System: Win 98 Second Edition PHP Version: 4.0.6 New Comment: can you please include your php.ini file... Previous Comments: [2001-07-25 15:55:28] [EMAIL PROTECTED] I use Apache 1.3.14. I have specified that I wanted PHP to use ./extensions/ for the module extensions directory so I could build images with GD, but it still doesn't see the modules. I even set the extension=php_gd.dll, and when I do a phpinfo(); it reports entension_dir as having no value. Why won't it let me include the file so I can build images? [2001-07-25 15:17:05] [EMAIL PROTECTED] I use Apache 1.3.14. I have specified that I wanted PHP to use ./extensions/ for the module extensions directory so I could build images with GD, but it still doesn't see the modules. I even set the extension=php_gd.dll, and when I do a phpinfo(); it reports entension_dir as having no value. Why won't it let me include the file so I can build images? Edit this bug report at http://bugs.php.net/?id=12376edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12381 Updated: Data Structure Dumper Feature Needed
ID: 12381 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0.6 New Comment: have you tried something like the serialize and unserialize functions? http://php.net/manual/en/function.serialize.php http://php.net/manual/en/function.unserialize.php Previous Comments: [2001-07-25 18:30:49] [EMAIL PROTECTED] I'd like to suggest that a built in function for dumping PHP data structures (arrays, variables, etc.) into a string which could then be exported to a file be created. This would work something like the Perl Data::Dumper module. This would be extremely useful for creation of persistent datastructures, especially helpful for programs which include web interfaces to edit settings which are used by another portion of the program. I find myself writing simple code to do this a lot, but it is something that gets pretty messy whenever I'm trying to recreate multidimensional arrays and such so that they can later be required into a PHP page. I'm sure that a function of this type would be useful to a lot of PHP users and I hope you'll consider adding it. I've looked at a lot of the code repository sites by the way, and I haven't found anything that seems to resemble what I'm looking for already available, but I think it's the type of thing that should really be a part of the base PHP. Edit this bug report at http://bugs.php.net/?id=12381edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12381 Updated: Data Structure Dumper Feature Needed
ID: 12381 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.0.6 New Comment: i meant to make this bogus... Previous Comments: [2001-07-26 14:27:11] [EMAIL PROTECTED] have you tried something like the serialize and unserialize functions? http://php.net/manual/en/function.serialize.php http://php.net/manual/en/function.unserialize.php [2001-07-25 18:30:49] [EMAIL PROTECTED] I'd like to suggest that a built in function for dumping PHP data structures (arrays, variables, etc.) into a string which could then be exported to a file be created. This would work something like the Perl Data::Dumper module. This would be extremely useful for creation of persistent datastructures, especially helpful for programs which include web interfaces to edit settings which are used by another portion of the program. I find myself writing simple code to do this a lot, but it is something that gets pretty messy whenever I'm trying to recreate multidimensional arrays and such so that they can later be required into a PHP page. I'm sure that a function of this type would be useful to a lot of PHP users and I hope you'll consider adding it. I've looked at a lot of the code repository sites by the way, and I haven't found anything that seems to resemble what I'm looking for already available, but I think it's the type of thing that should really be a part of the base PHP. Edit this bug report at http://bugs.php.net/?id=12381edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12407 Updated: if else statement correct in 4.0.5 but not 4.0.6
ID: 12407 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: *General Issues Operating System: win2000 PHP Version: 4.0.6 New Comment: reproduced. If you put the if and else statement between the same ? ? tags, it works fine. Previous Comments: [2001-07-26 14:40:01] [EMAIL PROTECTED] the script below runs correctly in 4.0.5 but there is parse error in 4.0.6. It seems that you can't break if else into two parts. ?php if (1==1) echo 1; ? ? else echo 0; ? Edit this bug report at http://bugs.php.net/?id=12407edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12396 Updated: no errors, no php
ID: 12396 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: PWS related Operating System: win 98 PHP Version: 4.0.6 New Comment: does anything happen??? If you view the source on a .php page, do you see the php code? Try making a php page (name it something like phpinfo.php) ?php phpinfo(); ? can you see anything on this page? Previous Comments: [2001-07-26 08:52:17] [EMAIL PROTECTED] I installed PHP 4.0.6 and chose the automatic installation for PWS. It all seemed to install fine, and from what I read, it was suposed to set up the server as well. It has installed ok, the folder c:\php is there and all seems well, but nothing has changed in PWS and no PHP scripting works. When trying to run php scripts, no errors are returned either. Edit this bug report at http://bugs.php.net/?id=12396edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12411 Updated: Filesystem return zero
ID: 12411 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Filesystem function related Operating System: Linux 2.4.4 PHP Version: 4.0.6 New Comment: unable to reproduce on RH Linux 7 (2.2.16-22) Previous Comments: [2001-07-26 17:44:26] [EMAIL PROTECTED] // Assume dir/file exists $file = dir/file; echo filesize($file); It always return 0 Edit this bug report at http://bugs.php.net/?id=12411edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12360 Updated: fsockopen timeout doesn't work
ID: 12360 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Sockets related Operating System: RedHat 6.2 PHP Version: 4.0.6 New Comment: are you saying that is eventually times out (but not a the number you specified) or are you saying it never times out. Previous Comments: [2001-07-25 07:08:38] [EMAIL PROTECTED] When I try to connect to a port on a server that isn't reachable or the packets are dropped the timeout doesn't work... This worked when I was using PHP 4.0.4pl1 #!/usr/local/bin/php ?php echo opening socket... \n; fsockopen(microsoft.com, 12, $errno, $errstr, 5.0); echo $errno\n$errstr\n; echo done!\n; ? I have also tried this on a Red Hat 7.1 machine and it's just the samee there... My configure line: './configure' '--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' '--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/' Edit this bug report at http://bugs.php.net/?id=12360edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12360 Updated: fsockopen timeout doesn't work
ID: 12360 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Analyzed Bug Type: Sockets related Operating System: RedHat 6.2 PHP Version: 4.0.6 New Comment: I have reproduced this error. When requesting an valid address, but a port that the server does not listen on, the script hangs. (*Andy*) Previous Comments: [2001-07-25 09:30:06] [EMAIL PROTECTED] or at least it doesn't time out until after a very long time [2001-07-25 09:29:17] [EMAIL PROTECTED] it never times out... [2001-07-25 09:24:26] [EMAIL PROTECTED] are you saying that is eventually times out (but not a the number you specified) or are you saying it never times out. [2001-07-25 07:08:38] [EMAIL PROTECTED] When I try to connect to a port on a server that isn't reachable or the packets are dropped the timeout doesn't work... This worked when I was using PHP 4.0.4pl1 #!/usr/local/bin/php ?php echo opening socket... \n; fsockopen(microsoft.com, 12, $errno, $errstr, 5.0); echo $errno\n$errstr\n; echo done!\n; ? I have also tried this on a Red Hat 7.1 machine and it's just the samee there... My configure line: './configure' '--with-zlib-dir=/usr/lib' '--with-png-dir=/usr/local/lib' '--with-gd=/usr/local' '--with-ttf=/software/freetype' '--with-apxs=/software/web/bin/apxs' '--with-mysql=/software/mysql/' Edit this bug report at http://bugs.php.net/?id=12360edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12378 Updated: checkdate returns TRUE on false date
ID: 12378 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Date/time related Operating System: linux PHP Version: 4.0.6 New Comment: 2000 is a leap year... Previous Comments: [2001-07-25 15:47:33] [EMAIL PROTECTED] The checkdate doesn't validate correcly on all dates. checkdate(2,29,2000); returns true even thoug the year 2000 was not a leapyear. Edit this bug report at http://bugs.php.net/?id=12378edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #9906 Updated: Problems with result-set from temporary tables
ID: 9906 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Sybase-ct (ctlib) related Operating System: Linux RedHat 7.0 PHP Version: 4.0.3pl1 New Comment: no feedback... Previous Comments: [2001-06-26 17:07:51] [EMAIL PROTECTED] Have you tried my example? If so, what results do you have? It may very well be that I simply didn't create a complex enough example, or something, but I don't see a bug, so this'll be closed if you don't have anything further to add. [2001-03-22 10:36:57] [EMAIL PROTECTED] I have a hard time believing that this is a PHP bug. #1: Try upgrading to a newer release. #2: Here is what I tried to test your bug: create proc phpb as begin create table #phpb (id int, foo varchar(255)) insert into #phpb values (1, a) insert into #phpb values (1, a) insert into #phpb values (1, a) insert into #phpb values (1, a) insert into #phpb values (1, a) insert into #phpb values (1, a) insert into #phpb values (1, a) insert into #phpb values (1, a) select * from #phpb end PHP script looks like: ?php $db = sybase_connect(...); $qu = sybase_query(phpb); while ($a = sybase_fetch_array($qu)) { var_dump($a); } ? I got the exact same result from both PHP and isql... [2001-03-21 17:46:07] [EMAIL PROTECTED] I have some stored procedures that return a result from a temporary table. When via ct-lib i try to get the rows it didn´t return anything. I try with the function sybase_query , and when i get the resource handler none of this functions give me any result: sybase_num_rows, sybase_fetch_array,sybase_fetch_row. the reproduction is easy just create a stored procedure that create, fill and select a temporary table. if you use the php ct-lib functions they didn´t return any result. Edit this bug report at http://bugs.php.net/?id=9906edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11648 Updated: Configure fails to detect crypt()
ID: 11648 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: *Encryption and hash functions Operating System: Mac OS X 10.0.4 (Darwin 1.3.7) PHP Version: 4.0.6 New Comment: no feedback... Previous Comments: [2001-06-25 10:11:28] [EMAIL PROTECTED] It also checks for unistd.h. But it doesn't affect whether or not crypt() is found. The check for crypt() is later in the configure and it shouldn't matter if crypt.h is found or not. Please send me your config.log file so I can see what might be the cause. I wonder if there is libcrypt in your system? Or is crypt() provided by some other library? --Jani [2001-06-25 03:30:08] [EMAIL PROTECTED] When I run configure, it says : checking for crypt.h... no And so disables crypt() function. My system doesn't have crypt.h ; crypt() function is in unistd.h. I've managed to compile a small C program which includes unistd.h, and then uses crypt(), and everything works properly. Can configure check for crypt() in unistd.h ? Edit this bug report at http://bugs.php.net/?id=11648edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12335 Updated: mail() function returns false but the email was sent.
ID: 12335 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Mail related Operating System: Sun Solaris 2.6 PHP Version: 4.0.6 New Comment: works fine on RH Linux 7. Can anybody with Solaris reproduce this? Previous Comments: [2001-07-24 08:03:30] [EMAIL PROTECTED] I had first the bug with id 12024 and I have fixed it like described in the bug report. Now I can send mails, but the mail() function returns false altough the mail was sent. I use the following script to test the mail() function. ?php $mail_to = [EMAIL PROTECTED]; $mail_subject = PHP test mail() gesendet obwohl failed gemeldet.; $mail_body = i hope that this mail() function works ! \n; $mail_body .= this is supposed to come on the second line \n; $mail_body .= and this on the third line \n; if (mail($mail_to, $mail_subject, $mail_body)) echo Successfully sent the email \$mail_subject\ to $mail_to .; else echo Failed to send the e-mail \$mail_subject\. ; ? Edit this bug report at http://bugs.php.net/?id=12335edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11976 Updated: image_copy_resized does not work properly
ID: 11976 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: GD related Operating System: windows 98 SE PHP Version: 4.0.6 New Comment: exactly the result I got. Can anybody else reproduce this? I still think this is bogus. Previous Comments: [2001-07-24 03:08:00] [EMAIL PROTECTED] The image result supposed to be a png image like this: ---|- | | | | | | | | | | | | | | | - | | | | | | | -| | | | | - - | | | -| | | So it is supposed to be a graph with blue rectangles and two black lines, not a black square. [2001-07-23 11:43:58] [EMAIL PROTECTED] My script should not draw a black image but a blue graph( blue rectangles). Actually, with php4.0.6, my script draw a black square and with php4.0.5 my script draw a graphics with blue rectangles. It works with php4.0.6 only if I don't use the function image_copy_resized. So In conclusion, I think that there is a problem with this function on php4.0.6 with W98 OS?? [2001-07-23 09:33:38] [EMAIL PROTECTED] so what is the problem. The image works now... Just make sure you set the header to image/png or whatever file type the image is. [2001-07-23 06:24:34] [EMAIL PROTECTED] When I removed the header function (or set it to text/html), I have this on my browser: PNG ?? If I keept image/png or image/jpeg, I have a all-in black image?? [2001-07-21 20:51:42] [EMAIL PROTECTED] Works fine for me (I am using Linux.) Try removing the header function (or set it to text/html) and see if there are any errors/warnings that are corrupting the image. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=11976 Edit this bug report at http://bugs.php.net/?id=11976edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12329 Updated: dfdf
ID: 12329 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: IIS related Operating System: win PHP Version: 4.0.6 New Comment: obviosly somebody trying to be funny... Previous Comments: [2001-07-24 03:28:23] [EMAIL PROTECTED] dfdf dfd dfdf dfdf Edit this bug report at http://bugs.php.net/?id=12329edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12324 Updated: arg_separator.output broken
ID: 12324 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Configuration Issues Operating System: linux PHP Version: 4.0.6 New Comment: you have your params mixed up. replace arg_separator.output with arg_separator.input and things will work. I modified your script below. This one works as you wanted it to. ?php global $HTTP_POST_VARS,$HTTP_GET_VARS, $HTTP_COOKIE_VARS, $PHP_SELF; ini_set(arg_separator.input, ;); define(a, ini_get(arg_separator.input)); if($HTTP_GET_VARS){ $total = count($HTTP_GET_VARS); echo Displaying GET variables; while(list($key, $val) = each($HTTP_GET_VARS)) { echo br /Key: '$key' Value '$val'; } } echo hr; echo A HREF=\$PHP_SELF?i=am.a.do=one\Click to activate test/a; echo hr; ? Previous Comments: [2001-07-23 20:22:46] [EMAIL PROTECTED] I've tested this problem on both php4.0.5 and 4.0.6, and it has also reproduced on other machines. I will not however, that this problem does not seem to occur on windows/apache machines. the problem is that get vars using an arg_separator.output other than '' will be ignored when attempting to parse HTTP_GET_VARS. there is an example avaliable at http://wart.phpking.org/test.php the source is visible at http://wart.phpking.org/test.phps a side note - it would seem that the transparent session info appended to a url by php will also not follow a new 'arg_separator.output' value.. for example - if i set the arg_separator.output to ';'.. my PHPSESSID will still be appended to the url with a '' -voudras Edit this bug report at http://bugs.php.net/?id=12324edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12325 Updated: Query_string not defined
ID: 12325 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Unknown/Other Function Operating System: Win 2k PHP Version: 4.0.6 New Comment: Can you include a copy of your php.ini file? Previous Comments: [2001-07-23 21:30:26] [EMAIL PROTECTED] Here is the code I am trying to run: if ($QUERY_STRING != ) { $insertFormAction .= ? . $QUERY_STRING; When I call the page from the browser with no querystring I get: Warning: Undefined variable: QUERY_STRING in c:\inetpub\wwwroot\gabe\deleteParam.php on line 3 This only reproduces when using the installer for windows from the download section at php.net. I cannot reproduce on Linux or OSX. Also I installed the zip version and cannot reproduce it. Only the installer. Edit this bug report at http://bugs.php.net/?id=12325edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12339 Updated: Seg Fault in PHP under 2k /w ODBC and Globals (apparently)...
ID: 12339 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: ODBC related Operating System: Win2k PHP Version: 4.0.6 New Comment: could you send in a short, yet more complete script than what you have given us now. Previous Comments: [2001-07-24 10:20:04] [EMAIL PROTECTED] All right, this is a rough one to report as I only have vagure ideas as to what's going on ... but it really sucks either way. the function call... report($queryusa,$uasusa_trans,$uasusa_style,User does not have access to any systems,sizeof($uasusa_trans)*2,0,System Access); the function function report($query, $tarray,$sarray, $empty_msg,$total,$is_last = 0, $zhead=) The crash the overwrite (I'm convinced it's an overwrite because EIP is 0x00d72f10 and memory is the same value, and a rudimentary jump (albeit confusedly)into msdev vdebug showed something similar) happens at the call to odbc prepare... $sh = odbc_prepare($DBH,$query) or die (odbc_errormsg().$query); the odbc_connect looks like $DBH = odbc_connect($GLOBALS['DSN'],$GLOBALS['DSN_USER'],$GLOBALS['DSN_PW']) or die (odbc_errormsg()); as it stands now I am under a deadline so I can't dig too deep (I have to find a workaround) ,but I'll follow up with any supplemental material I can.. oh, ODBC Driver is Tandem NONStop.. Edit this bug report at http://bugs.php.net/?id=12339edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Fwd: PHP Bug 8664
Does anyone have an opinion on this? -- Forwarded Message -- Subject: PHP Bug 8664 Date: Tue, 24 Jul 2001 17:48:31 +0200 From: Frank Loeffler [EMAIL PROTECTED] Hi, you adviced in this bug to use ImageColorExtract to set a color transparent. As far as I know, this information is already in a (loaded) picture (ImageCreateFromPNG). I tried - in PHP this information is not used. I would like to have PHP set the transparent color in ImageCreateFromPNG (or GIF), then the user does not have to take care about the RGB of the transparent color (the PHP-script maybe does not know anything about the picture). Using ImageColorExtract has maybe also another problem: what happens, if two or more colors have the same RGB-value? So, my question is, if it would be ok to report this as bug or if I am wrong. Thanks, Frank --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12341 Updated: Don't is appears the object
ID: 12341 Updated by: andy Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: COM related Operating System: NT 4.0 WorkStation PHP Version: 4.0.6 New Comment: Did the document save correctly? Previous Comments: [2001-07-24 10:43:11] [EMAIL PROTECTED] A take a sample of function COM. $word = new COM(word.application) or die(Unable to instanciate Word); print Loaded Word, version {$word-Version}\n; $word-Visible = 1; // command that show window $word-Documents-Add(); $word-Selection-TypeText(This is a test...); $word-Documents[1]-SaveAs(Useless test.doc); The commands execute, but the window of word don't appears. I make a test with Autocad too, but the window don't appears. When a had a ohter version PHP, don't remember, the window appears thanks Luiz Fernando Edit this bug report at http://bugs.php.net/?id=12341edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12341 Updated: Don't is appears the object
ID: 12341 Updated by: andy Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: COM related Operating System: NT 4.0 WorkStation PHP Version: 4.0.6 New Comment: I thought this is what the commands were supposed to do. If you wanted to open word wouldn't you do something like this: exec(c:\path\to\winword); Previous Comments: [2001-07-24 12:17:04] [EMAIL PROTECTED] Did the document save correctly? [2001-07-24 10:43:11] [EMAIL PROTECTED] A take a sample of function COM. $word = new COM(word.application) or die(Unable to instanciate Word); print Loaded Word, version {$word-Version}\n; $word-Visible = 1; // command that show window $word-Documents-Add(); $word-Selection-TypeText(This is a test...); $word-Documents[1]-SaveAs(Useless test.doc); The commands execute, but the window of word don't appears. I make a test with Autocad too, but the window don't appears. When a had a ohter version PHP, don't remember, the window appears thanks Luiz Fernando Edit this bug report at http://bugs.php.net/?id=12341edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]