[PHP-DEV] Bug #14104: uasort doesn't work with static functions from inside classes to compare
From: [EMAIL PROTECTED] Operating system: Linux RedHat 7.2 PHP version: 4.0.6 PHP Bug Type: Arrays related Bug description: uasort doesn't work with static functions from inside classes to compare If I have a static function inside a class that does the comparasion of two objects, I haven't found a way of passing a reference to it in uasort (u.*sort). I tried Classname::function, also Classname-function. If the function doesn't exists, not even an error is produced, so its very difficult to debug such things. Heres an example of what doesn't work: class TestObj { var $name; function TestObj($name) { $this-name = $name; } /* This is the static comparing function: */ function cmp_obj($a, $b) { $al = strtolower($a-name); $bl = strtolower($b-name); if ($al == $bl) return 0; return ($al $bl) ? +1 : -1; } } $a[] = new TestObj(b); $a[] = new TestObj(a); $a[] = new TestObj(d); uasort($a, TestObj::cmp_obj); printf(pre\n); print_r($a); printf(/pre\n); - Result: NOT SORTED. -- Edit bug report at: http://bugs.php.net/?id=14104edit=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] Ó¢ÎÄ°æ×ÔÖúÍøÕ¾,°ïÖúÆóÒµÓ½ÓÈëÊÀÌôÕ½
Öйú¼ÓÈëWTO,ÖÐСÐÍÆóÒµÃæÁÙ×ÅÇ°ËùδÓеĻúÓöºÍÌôÕ½,¿ÉÒÔ°ÑÉúÒâ×öµ½È«ÊÀ½ç,µ«È«ÊÀ½çµÄÆóÒµÒ²À´ºÍÄú¾ºÕù!Äú×¼±¸ºÃÁËÂð? www.my868.com ÆóÒµ¼ÒÔ°ÍøÍƳö¡±Ó¢ÎÄ°æÆóÒµ×ÔÖúÍøÕ¾¡±,ÏÖÍƳöÃâ·ÑÊÔÓ÷þÎñ,ÎÒÃÇΪÄú¹º½¨¹¦ÄÜÇ¿´óµÄ¡±Ó¢ÎÄÆóÒµ×ÔÖúÍøÕ¾¡±,Èç¹ûÄúʹÓúó²»ÂúÒâ,¿ÉÒÔ²»¸¶ÈκηÑÓÃ.Äú¿ÉÒÔ°ÑÆóÒµ×ÊÁϼĸøÎÒÃÇ,ÓÉÎÒÃǵŤ×÷ÈËԱΪÄú¹¹½¨ÍøÕ¾,»òÄúÖ±½Óµ½www.my868.com×¢²áµÇ¼Ç. Èç¹ûÄúÒѾÕýÔÚʹÓÃÆóÒµ¼ÒÔ°ÍøµÄÖÐÎÄ×ÔÖúÍøÕ¾·þÎñ,ÇëдПøÎÒÃÇ,ÎÒÃǽ«ÎªÄú¿ªÍ¨¶àÓïÑÔ°æ±¾µÄ·þÎñ. ʾ·¶ÍøÕ¾:http://caiyunbin.my868.com/ ÆóÒµ¼ÒÔ°Íø¿Í»§·þÎñÖÐÐÄ 20-34133319 20-34133346 ¹ãÖÝÊÐ º£ÖéÇø и۷ µÂ»ª½Ö ½ÄÏÃÀ¾°»¨Ô° B¶° 19E(510260) www.my868.com Guangzhou city tall and erect and department that science and technology put out to put out free trial serve now since service system large-scale platform www.my868.com,, We purchase and build the powerful Web site of enterprise for you, if you are unsatisfied after using, needn't pay any expenses . Free without being had independent domain name of Web sites of enterprise of you /only allow space for less than Web site /it is Web site automatic to turn into /upgrade whenever and wherever possible /style wanton to choose /automatic online camp Sell The Xiao 's( www.my868.com welcome to try out) A of 19 Es of B of garden of beautiful scenery of the South of street of Germany's China of way of new harbour of pearl district of sea of Guangzhou( 510260) telephone : 13802965713 20-34133319 20-34133346 -- 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 #14105: session_write_close() eats output
From: [EMAIL PROTECTED] Operating system: linux debian woody PHP version: 4.0.6 PHP Bug Type: Session related Bug description: session_write_close() eats output ?php session_start(); echo brsee thisbr\n; session_write_close(); echo brsee this toobr\n; ? http://cam031000.student.utwente.nl/test.php for by output http://cam031000.student.utwente.nl/phpinfo.php for phpinfo -- Edit bug report at: http://bugs.php.net/?id=14105edit=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 #14099 Updated: POST/GET - if there is a dot in the name it's changes to _
ID: 14099 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: HTTP related Operating System: Linux, Red-Hat 6.2 PHP Version: 4.0.6 New Comment: even if you use #046; it's been replaced to _. in many other languages this is possible. form action= method=post name=aaa input type=text size=12 name=12.13#046;14 value=66.66 input type=submit value=send me /form Previous Comments: [2001-11-18 12:52:38] [EMAIL PROTECTED] That's intended behaviour. You can't have dots in variable names, the dot is already used for string concatenation. Bogus. [2001-11-18 12:31:16] [EMAIL PROTECTED] When i submit a form where is a dot in the name it's changes to _. for example: form action=?=$PHP_SELF;? method=post name=aaa input type=text size=12 name=12.13.14 value=66.66 input type=submit value=send me /form when runing in PHP: foreach ($HTTP_POST_VARS as $key=$val){ echo $key = $valBR; } the output will be : 127_0_0_1 = 66.55 [2001-11-18 12:29:01] [EMAIL PROTECTED] When i submit a form where is a dot in the name it's changes to _. for example: lt;form action=lt;=$PHP_SELFgt; method=post name=aaagt; lt;input type=text size=12 name=127.0.0.1 value=66.55gt; lt;input type=submit value=send megt; lt;/formgt; when runing in PHP: foreach ($HTTP_POST_VARS as $key=$val){ echo $key = $valBR; } the output will be : 127_0_0_1 = 66.55 Edit this bug report at http://bugs.php.net/?id=14099edit=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 #14106: mysql_insert_id() fails
From: [EMAIL PROTECTED] Operating system: SuSe Linux 7.3 PHP version: 4.0.6 PHP Bug Type: MySQL related Bug description: mysql_insert_id() fails i do something like this: $result=mysql_query($query, $dblink); if(! $result) die($query); $messageid=mysql_insert_id($result); it worked with older versions of php but fails reporting Supplied argument is not a valid MySQL-Link resource now even if the query is inserted sucessfull. -- Edit bug report at: http://bugs.php.net/?id=14106edit=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 #14106 Updated: mysql_insert_id() fails
ID: 14106 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: MySQL related Operating System: SuSe Linux 7.3 PHP Version: 4.0.6 New Comment: It still does, but you need to give it a LINK identifier as parameter, and not a MySQL Result identifier. Script is buggy bogus Previous Comments: [2001-11-19 04:42:35] [EMAIL PROTECTED] i do something like this: $result=mysql_query($query, $dblink); if(! $result) die($query); $messageid=mysql_insert_id($result); it worked with older versions of php but fails reporting Supplied argument is not a valid MySQL-Link resource now even if the query is inserted sucessfull. Edit this bug report at http://bugs.php.net/?id=14106edit=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 #13988 Updated: get_meta_tags function failure if title tag contains a '
ID: 13988 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Unknown/Other Function Operating System: Windows 98 first edition PHP Version: 4.0.6 New Comment: Sorry but when typing I forget a =. This html and php is pasted from the source directly: test.html. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleQuesto e' un titolo di prova/title META http-equiv=Content-Type content=text/html; charset=iso-8859-1 meta name=description content=Il mio nome est pippo! meta name=author content=Andrea! /head body /body /html end of file test.html. pippo.php. ?php $tags = get_meta_tags(test.html); echo $tags['description'].br.$tags['author']; ? end of file pippo.php. As I said: This example (pippo.php) fails, because it does not display the description and author tags correctly. If I move the line title after the metas it works. If I remove the character ' from title it works. The file test.html has been validated at: http://validator.w3.org so the html code is correct. Previous Comments: [2001-11-18 19:05:50] [EMAIL PROTECTED] All your example html files are buggy: meta name=description contentciao ciao Note the missing '=' after content? --Jani [2001-11-12 05:11:15] [EMAIL PROTECTED] Yes, it happens with 4.0.6. [2001-11-09 09:43:31] [EMAIL PROTECTED] Reopen if this happens with PHP 4.0.6 [2001-11-08 04:09:22] [EMAIL PROTECTED] Example: pippo.html etc etc titleIl mio nome e' pippo/title meta name=description contentciao ciao etc pippo.php $tags = get_meta_tags(pippo.html); echo $tags['description']; Case A) Failed titleIl mio nome e' pippo/title meta name=description contentciao ciao echo $tags['description'], echos nothing Case B) OK meta name=description contentciao ciao titleIl mio nome e' pippo/title $tags['description'], echos ciao ciao Case C) OK, I remove the character ' titleIl mio nome est pippo/title meta name=description contentciao ciao $tags['description'], echos ciao ciao SUMMARY: It seems there is a problem of get_meta_tags parsing the meta from an html file. The problem is the ' character. If it is contained inside a tag title before a meta then get_meta_tags fails. If the title tag with the ' character is put after the meta, then it works. If I delete the ' character then it works always. Edit this bug report at http://bugs.php.net/?id=13988edit=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 #14107: file_exists() prints a warning when it shouldn't
From: [EMAIL PROTECTED] Operating system: Debian PHP version: 4.1.0RC1 PHP Bug Type: *Directory/Filesystem functions Bug description: file_exists() prints a warning when it shouldn't Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch -- Edit bug report at: http://bugs.php.net/?id=14107edit=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 #14108: file_exists() prints a warning when it shouldn't
From: [EMAIL PROTECTED] Operating system: Debian PHP version: 4.1.0RC1 PHP Bug Type: *Directory/Filesystem functions Bug description: file_exists() prints a warning when it shouldn't Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch -- Edit bug report at: http://bugs.php.net/?id=14108edit=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 #14110: file_exists() prints a warning when it shouldn't
From: [EMAIL PROTECTED] Operating system: Debian PHP version: 4.1.0RC1 PHP Bug Type: *Directory/Filesystem functions Bug description: file_exists() prints a warning when it shouldn't Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch -- Edit bug report at: http://bugs.php.net/?id=14110edit=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 #14111: file_exists() prints a warning when it shouldn't
From: [EMAIL PROTECTED] Operating system: Debian PHP version: 4.1.0RC1 PHP Bug Type: *Directory/Filesystem functions Bug description: file_exists() prints a warning when it shouldn't Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch -- Edit bug report at: http://bugs.php.net/?id=14111edit=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 #14107 Updated: file_exists() prints a warning when it shouldn't
ID: 14107 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Debian PHP Version: 4.1.0RC1 New Comment: Submitting once is enough! Previous Comments: [2001-11-19 05:35:46] [EMAIL PROTECTED] Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch Edit this bug report at http://bugs.php.net/?id=14107edit=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 #14108 Updated: file_exists() prints a warning when it shouldn't
ID: 14108 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Debian PHP Version: 4.1.0RC1 New Comment: Submitting once is enough Previous Comments: [2001-11-19 05:35:52] [EMAIL PROTECTED] Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch Edit this bug report at http://bugs.php.net/?id=14108edit=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 #14109 Updated: file_exists() prints a warning when it shouldn't
ID: 14109 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Debian PHP Version: 4.1.0RC1 New Comment: Submitting once is enough! Previous Comments: [2001-11-19 05:35:53] [EMAIL PROTECTED] Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch Edit this bug report at http://bugs.php.net/?id=14109edit=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 #14110 Updated: file_exists() prints a warning when it shouldn't
ID: 14110 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Debian PHP Version: 4.1.0RC1 New Comment: Submitting once is enough! Previous Comments: [2001-11-19 05:35:54] [EMAIL PROTECTED] Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch Edit this bug report at http://bugs.php.net/?id=14110edit=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 #14111 Updated: file_exists() prints a warning when it shouldn't
ID: 14111 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: Debian PHP Version: 4.1.0RC1 New Comment: Can you provide an URL to that Debian bugreport? Previous Comments: [2001-11-19 05:35:57] [EMAIL PROTECTED] Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch Edit this bug report at http://bugs.php.net/?id=14111edit=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 #9208 Updated: rename() not using current working directory
ID: 9208 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Filesystem function related Operating System: windows 98 PHP Version: 4.0.4pl1 New Comment: No feedback. Closing. Previous Comments: [2001-10-29 02:26:51] [EMAIL PROTECTED] Does this fail with PHP 4.0.6 too? [2001-02-10 17:04:00] [EMAIL PROTECTED] rename() function does not use current working directory, but c:\php\ instead (on windows system) so if I use rename('a','b') from any directory, it will try to rename c:\php\a to c:\php\b Edit this bug report at http://bugs.php.net/?id=9208edit=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 #9787 Updated: redirecting php-cgi stderr does not affect php://stderr
ID: 9787 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Filesystem function related Operating System: SCO Openserver5 (Any UNIX?) PHP Version: 4.0.4pl1 New Comment: No feedback. Closing. Previous Comments: [2001-10-29 02:30:36] [EMAIL PROTECTED] First of all, does this happen with PHP 4.0.6? Also, please explain HOW it affects it? [2001-03-16 10:26:25] [EMAIL PROTECTED] Redirecting php-cgi stderr when invoking a php script from the command line (as in 'myscript.php 2error.log') does not affect writing data to php://stderr, but it does affect writing to /dev/stderr. Edit this bug report at http://bugs.php.net/?id=9787edit=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 #10229 Updated: buffer error in fread
ID: 10229 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Filesystem function related Operating System: linux 2.2.14C11 PHP Version: 4.0.3pl1 4.0.4pl1 4.0.5 4.0.6 New Comment: No feedback. Closing. Previous Comments: [2001-10-29 02:41:28] [EMAIL PROTECTED] Please try latest CVS snapshot from http://snaps.php.net/ as I think this should be fixed now. --Jani [2001-07-06 05:09:46] [EMAIL PROTECTED] This error still exists, not de phpcode part, but the buffering errors, try this several times: ---start--- $fp = fopen(http://www.planetinternet.be/nl/vandaag/;, r); $content = fread($fp, 10); fclose($fp); $fp = fopen(http://www.google.com/;, r); $content = fread($fp, 10); mail(me@host, topic, $content); ---stop--- This is an error in the buffer handling routines and should be eliminated. It seems to occur at _every_ request with php4.0.6 ! [2001-04-27 15:34:42] [EMAIL PROTECTED] I assume this is a dead issue. If not reopen. -Chris [2001-04-08 05:04:10] [EMAIL PROTECTED] I have only seen php code once, and I was't able to reproduce it. I suppose it was a case where php code was stored in a variable (for online editing or something). This is only a guess, as it's not my code that I see, but code from someone else on the same server. [2001-04-07 20:51:58] [EMAIL PROTECTED] I ran it through a couple hundred times and absolutely no PHP code whatsoever. The only problem I see here is $content is never cleaned up properly and contains BOTH of the fread()s jumbled. Which is very strange. $fp = fopen(http://www.newsplanet.be/;, r); while (!feof($fp)) $content .= fread($fp, 4000); fclose($fp); You would be better off using the above as it works properly. Whomever is handling the fopen-wrappers should probably look at this. -Chris 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=10229 Edit this bug report at http://bugs.php.net/?id=10229edit=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 #11025 Updated: ftp_connect() does not work with IP address
ID: 11025 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: FTP related Operating System: Windows NT4 Server PHP Version: 4.0.5 New Comment: No feedback. Closing. Previous Comments: [2001-10-29 02:17:01] [EMAIL PROTECTED] status - feedback [2001-07-22 06:18:45] [EMAIL PROTECTED] I think this is just like bug #11000. Could you test fopen with ftp or http as well? If that works for you I think I know how to make ftp_connect() work as well. For more info, see what I wrote for bug #11000. [2001-07-21 21:35:08] [EMAIL PROTECTED] Whoa! This is exactly the OPPOSITE of what I expected. Usually in something like this, the IP works, and the name doesn't. I have no clue what would cause that. Can anyone duplicate this? [2001-05-22 13:34:53] [EMAIL PROTECTED] Setup: Windows NT4 Server with Apache 39 and PHP 4.0.5 as downloaded (big package) from PHP.NET Situation: phpInfo() says FTP is enabled. ftp_connect('192.168.0.55') does not give connection handle whereas an ftp client on the same machine works perfectly. Tried all kinds of quotes, no success. Solution: Entered a line in local hosts lookup file to replace the IP with a literal name. Replaced the faulty line with ftp_connect(theName) and got the connection right away. Edit this bug report at http://bugs.php.net/?id=11025edit=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 #14111 Updated: file_exists() prints a warning when it shouldn't
ID: 14111 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: *Directory/Filesystem functions Operating System: Debian PHP Version: 4.1.0RC1 New Comment: http://bugs.debian.org/114409 Previous Comments: [2001-11-19 05:40:05] [EMAIL PROTECTED] Can you provide an URL to that Debian bugreport? [2001-11-19 05:35:57] [EMAIL PROTECTED] Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch Edit this bug report at http://bugs.php.net/?id=14111edit=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 #14112 Updated: sprintf_array()
ID: 14112 Updated by: zak Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0RC1 New Comment: Why not just build your own function? function sprintf_array ($format) { if (1 == func_get_args () ) { return sprintf ($format); } $argv = func_get_args (); return call_user_func_array ('sprintf', $argv); } (Not tested, but something like this should work. :) Previous Comments: [2001-11-19 05:46:48] [EMAIL PROTECTED] Hi, During development i felt great need for function that could be named sprintf_array() That is ordinary sprintf() which would be able to take arguments from array: string sprintf_array(string format, array args) What do you think? Lenar Edit this bug report at http://bugs.php.net/?id=14112edit=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 #14111 Updated: file_exists() prints a warning when it shouldn't
ID: 14111 Updated by: derick Reported By: [EMAIL PROTECTED] Status: Assigned Bug Type: *Directory/Filesystem functions Operating System: Debian PHP Version: 4.1.0RC1 Old Assigned To: derick Assigned To: sterling New Comment: Assigning this to sterling, he 'fixed' the fix. Previous Comments: [2001-11-19 05:53:10] [EMAIL PROTECTED] Ok, I'll check it out [2001-11-19 05:47:06] [EMAIL PROTECTED] http://bugs.debian.org/114409 [2001-11-19 05:40:05] [EMAIL PROTECTED] Can you provide an URL to that Debian bugreport? [2001-11-19 05:35:57] [EMAIL PROTECTED] Running this code ?file_exists(/etc/passwd/bla);? (where /etc/passwd exists for those non-UNIX people) gives this warning Warning: stat failed for /etc/passwd/bla (errno=20 - Not a directory) in This worked in 4.0.6 and doesn't in 4.1.0RC (1 and 2). It's been reported as #114409 in Debian with a patch Edit this bug report at http://bugs.php.net/?id=14111edit=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 #14112 Updated: sprintf_array()
ID: 14112 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0RC1 New Comment: Yes something like this should work. But it's not as fast as it could be. And I personally like when thins are as fast as possible. Previous Comments: [2001-11-19 05:53:41] [EMAIL PROTECTED] Why not just build your own function? function sprintf_array ($format) { if (1 == func_get_args () ) { return sprintf ($format); } $argv = func_get_args (); return call_user_func_array ('sprintf', $argv); } (Not tested, but something like this should work. :) [2001-11-19 05:46:48] [EMAIL PROTECTED] Hi, During development i felt great need for function that could be named sprintf_array() That is ordinary sprintf() which would be able to take arguments from array: string sprintf_array(string format, array args) What do you think? Lenar Edit this bug report at http://bugs.php.net/?id=14112edit=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 #14113: transaction / postgres backend
From: [EMAIL PROTECTED] Operating system: linux (suse) PHP version: 4.0.6 PHP Bug Type: Feature/Change Request Bug description: transaction / postgres backend If I commit a transaction, if it is succesfully executed or not is not communicated: a pg_exec($conn, commit) will always return TRUE, since the commit command itself is succesfully carried out (tho maybe each item in the transaction is not!) if there were some way to see if you were in *ABORT STATE* (what you would see in the backend in fouled-up transactions), that would solve everything. Or: generally, it would be useful in some scenarios to be able to obtain messages from the backend. There is already a pg_errormessage() function. Why not a pg_message() function? This would also solve my problem. thanks a bunch, otherwise i am a very happy customer! Nathaniel Dose ps: features is misspelled as fatures when you click the + button to insert user notes into the online documentation. -- Edit bug report at: http://bugs.php.net/?id=14113edit=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 #14114: dc cdecdc
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.6 PHP Bug Type: XSLT related Bug description: dc cdecdc ce -- Edit bug report at: http://bugs.php.net/?id=14114edit=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 #14114 Updated: dc cdecdc
ID: 14114 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: XSLT related Operating System: PHP Version: 4.0.6 New Comment: Go play elsewhere. Previous Comments: [2001-11-19 06:34:29] [EMAIL PROTECTED] ce Edit this bug report at http://bugs.php.net/?id=14114edit=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 #9208 Updated: rename() not using current working directory
ID: 9208 Updated by: jmoore Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Filesystem function related Operating System: windows 98 PHP Version: 4.0.4pl1 New Comment: This is most probably because you are calling php from the command line in the following format: php -q c:\php_scripts\script.php which would make c:\php4\ your working directory rather than c:\php_scripts\, to correct this chdir() before you execute php and call it like c:\php4\php -q script.php or chdir() at the begining of your script. - James Previous Comments: [2001-11-19 05:42:07] [EMAIL PROTECTED] No feedback. Closing. [2001-10-29 02:26:51] [EMAIL PROTECTED] Does this fail with PHP 4.0.6 too? [2001-02-10 17:04:00] [EMAIL PROTECTED] rename() function does not use current working directory, but c:\php\ instead (on windows system) so if I use rename('a','b') from any directory, it will try to rename c:\php\a to c:\php\b Edit this bug report at http://bugs.php.net/?id=9208edit=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 #14112 Updated: sprintf_array()
ID: 14112 Updated by: zak Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0RC1 New Comment: I would guess that implementing it as a native PHP function would be at least 2x as fast. I suppose the issue now is finding out if the core PHP developers consider the function to have enough value to add it. My personal, non-core developer, opinion is that I don't like the idea of adding this function. Perhaps instead we could overload the current implementations of printf and sprintf so that they can accept a single-dimension array as the second parameter (and in this case, final, parameter)? Previous Comments: [2001-11-19 06:11:24] [EMAIL PROTECTED] Yes something like this should work. But it's not as fast as it could be. And I personally like when thins are as fast as possible. [2001-11-19 05:53:41] [EMAIL PROTECTED] Why not just build your own function? function sprintf_array ($format) { if (1 == func_get_args () ) { return sprintf ($format); } $argv = func_get_args (); return call_user_func_array ('sprintf', $argv); } (Not tested, but something like this should work. :) [2001-11-19 05:46:48] [EMAIL PROTECTED] Hi, During development i felt great need for function that could be named sprintf_array() That is ordinary sprintf() which would be able to take arguments from array: string sprintf_array(string format, array args) What do you think? Lenar Edit this bug report at http://bugs.php.net/?id=14112edit=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 #14112 Updated: sprintf_array()
ID: 14112 Updated by: zak Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0RC1 New Comment: I would guess that implementing it as a native PHP function would be at least 2x as fast. I suppose the issue now is finding out if the core PHP developers consider the function to have enough value to add it. My personal, non-core developer, opinion is that I don't like the idea of adding this function. Perhaps instead we could overload the current implementations of printf and sprintf so that they can accept a single-dimension array as the second parameter (and in this case, final, parameter)? vsprintf and vprintf don't work for you? -Sterling Previous Comments: [2001-11-19 06:11:24] [EMAIL PROTECTED] Yes something like this should work. But it's not as fast as it could be. And I personally like when thins are as fast as possible. [2001-11-19 05:53:41] [EMAIL PROTECTED] Why not just build your own function? function sprintf_array ($format) { if (1 == func_get_args () ) { return sprintf ($format); } $argv = func_get_args (); return call_user_func_array ('sprintf', $argv); } (Not tested, but something like this should work. :) [2001-11-19 05:46:48] [EMAIL PROTECTED] Hi, During development i felt great need for function that could be named sprintf_array() That is ordinary sprintf() which would be able to take arguments from array: string sprintf_array(string format, array args) What do you think? Lenar Edit this bug report at http://bugs.php.net/?id=14112edit=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 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 #14112 Updated: sprintf_array()
On November 19, 2001 05:04 am, Sterling Hughes wrote: ID: 14112 Updated by: zak Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0RC1 New Comment: I would guess that implementing it as a native PHP function would be at least 2x as fast. I suppose the issue now is finding out if the core PHP developers consider the function to have enough value to add it. My personal, non-core developer, opinion is that I don't like the idea of adding this function. Perhaps instead we could overload the current implementations of printf and sprintf so that they can accept a single-dimension array as the second parameter (and in this case, final, parameter)? vsprintf and vprintf don't work for you? ~zing~ e... apparently, I don't read the NEWS file that often. :) I will go document these now... --zak -- 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 #14112 Updated: sprintf_array()
ID: 14112 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0RC1 New Comment: Your solution seems fine to me. It doesn't change the functionality I requested, so no objections. Previous Comments: [2001-11-19 06:47:50] [EMAIL PROTECTED] I would guess that implementing it as a native PHP function would be at least 2x as fast. I suppose the issue now is finding out if the core PHP developers consider the function to have enough value to add it. My personal, non-core developer, opinion is that I don't like the idea of adding this function. Perhaps instead we could overload the current implementations of printf and sprintf so that they can accept a single-dimension array as the second parameter (and in this case, final, parameter)? [2001-11-19 06:11:24] [EMAIL PROTECTED] Yes something like this should work. But it's not as fast as it could be. And I personally like when thins are as fast as possible. [2001-11-19 05:53:41] [EMAIL PROTECTED] Why not just build your own function? function sprintf_array ($format) { if (1 == func_get_args () ) { return sprintf ($format); } $argv = func_get_args (); return call_user_func_array ('sprintf', $argv); } (Not tested, but something like this should work. :) [2001-11-19 05:46:48] [EMAIL PROTECTED] Hi, During development i felt great need for function that could be named sprintf_array() That is ordinary sprintf() which would be able to take arguments from array: string sprintf_array(string format, array args) What do you think? Lenar Edit this bug report at http://bugs.php.net/?id=14112edit=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 #14112 Updated: sprintf_array()
ID: 14112 Updated by: zak Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Feature/Change Request Operating System: Linux PHP Version: 4.1.0RC1 New Comment: Poof! Apparently Andrei is prescient. :) Use vprintf() and vsprintf() to do exactly what you requested. Previous Comments: [2001-11-19 07:09:54] [EMAIL PROTECTED] Your solution seems fine to me. It doesn't change the functionality I requested, so no objections. [2001-11-19 06:47:50] [EMAIL PROTECTED] I would guess that implementing it as a native PHP function would be at least 2x as fast. I suppose the issue now is finding out if the core PHP developers consider the function to have enough value to add it. My personal, non-core developer, opinion is that I don't like the idea of adding this function. Perhaps instead we could overload the current implementations of printf and sprintf so that they can accept a single-dimension array as the second parameter (and in this case, final, parameter)? [2001-11-19 06:11:24] [EMAIL PROTECTED] Yes something like this should work. But it's not as fast as it could be. And I personally like when thins are as fast as possible. [2001-11-19 05:53:41] [EMAIL PROTECTED] Why not just build your own function? function sprintf_array ($format) { if (1 == func_get_args () ) { return sprintf ($format); } $argv = func_get_args (); return call_user_func_array ('sprintf', $argv); } (Not tested, but something like this should work. :) [2001-11-19 05:46:48] [EMAIL PROTECTED] Hi, During development i felt great need for function that could be named sprintf_array() That is ordinary sprintf() which would be able to take arguments from array: string sprintf_array(string format, array args) What do you think? Lenar Edit this bug report at http://bugs.php.net/?id=14112edit=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] Fw: More Info
To: [EMAIL PROTECTED] From: () Subject: Fw: More Info () came by our site on Monday, November 19, 2001 at 07:23:39 and thought you'd like it too. The URL to visit is http://www.williemparents.com 's comments are below. --- message: Real Networker Leads, Real Powerful Cash We Have A True Lead System And We Will Make You Money! email us at [EMAIL PROTECTED] Include Your Name Email And PHONE NUMBER [INCLUDE YOUR PHONE OR WE WILL NOT GET BACK TO YOU] ** To Be Removed From Our List Email [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 #13650 Updated: ImageWBMP does not make correct output.
ID: 13650 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: GD related Operating System: Solaris 7 (SunOS 5.7) PHP Version: 4.0.6 New Comment: Here is the diff... diff php.ini php.ini-dist 217c217 log_errors = On --- log_errors = Off 223c223 error_prepend_string = font color=ff --- ;error_prepend_string = font color=ff 226c226 error_append_string = /font --- ;error_append_string = /font 229c229 error_log = /var/apache/logs/php_error_log --- ;error_log = filename 341c341 upload_tmp_dir = /var/apache/upload --- ;upload_tmp_dir = 344c344 upload_max_filesize = 12M --- upload_max_filesize = 2M / Johan Previous Comments: [2001-11-18 19:02:38] [EMAIL PROTECTED] Could you please attach the diff of your php.ini and the php.ini-dist from the release? (diff -u /path/to/php.ini /path/to/php.ini-dist ) --Jani [2001-11-12 04:10:24] [EMAIL PROTECTED] I have now recompiled vith gd 1.8.4. It did not help! Still the same problem. Regards, Johan Sörliden [2001-11-09 14:55:50] [EMAIL PROTECTED] No feedback. Closing. [2001-10-13 09:24:42] [EMAIL PROTECTED] Both work for me just fine. You could try updating GD to 1.8.4. --Jani [2001-10-12 06:12:26] [EMAIL PROTECTED] Hi, I have made a php script that make an image and should output this image directly to the client (WAP). There comes the same amount of bytes that the image should contain but it is all zeros. It works to output the image to an file but it does not work stright to the client. No crashes just wrong output. You could test curl http://wap.netcamp.se/test_img.php test_does_not_work.wbmp and curl http://wap.netcamp.se/test_img.wbmp test_works.wbmp Se script below. I have PHP 4.0.6 and GD 1.8.3. Configuration: './configure' '--with-apache=../apache_1.3.19' '--enable-track-vars' '--with-imap=/usr/local/src/download/src/apache_php_mm_2000-12-14/imap-4.7c/c-client' '--with-mysql=/usr/local/mysql' '--with-zlib=/usr/local' '--with-gd=/usr/local' '--with-jpeg-dir=/usr/local' '--with-xpm-dir=/usr/local' '--with-ttf=/usr/local' '--with-t1lib=/usr/local' '--with-curl=/usr/local' '--enable-exif' Regards Johan Sörliden [EMAIL PROTECTED] http://www.NetCamp.se This is the script that i made: ?PHP Header(Content-type: image/vnd.wap.wbmp); /* Create image and alocate colours */ $xmax = 95; $ymax = 35; $im = @imagecreate ( $xmax +1, $ymax +1 ) or die (Cannot initialize image stream); $background = ImageColorAllocate ( $im, 255, 255, 255 ); $black = ImageColorAllocate ( $im, 0, 0, 0 ); $white = ImageColorAllocate ( $im, 255, 255, 255 ); /* Draw testimage */ imageline ( $im, 0, 0, $xmax, $ymax, $black ); imageline ( $im, 0, $ymax, $xmax, 0, $black ); imageline ( $im, 0, 0, 0, $ymax, $black ); imageline ( $im, 0, $ymax, $xmax, $ymax, $black ); imageline ( $im, $xmax, $ymax, $xmax, 0, $black ); imageline ( $im, $xmax, 0, 0, 0, $black ); /* Send image */ /*ImageWBMP ( $im, /tmp/test.wbmp ); This works */ ImageWBMP ( $im ); /* This does not work */ ImageDestroy ( $im ); ? Edit this bug report at http://bugs.php.net/?id=13650edit=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 #14115: localtime() gives wrong year and month
From: [EMAIL PROTECTED] Operating system: SuSE Linux 7.1 PHP version: 4.0.6 PHP Bug Type: Date/time related Bug description: localtime() gives wrong year and month /* Output from my attached PHP script: -output starts here- Server script path: /httpd/kunden/admbping/de/bigping/www/localtime_y2k.php original 'localtime()' function: tm_sec = 41 tm_min = 14 tm_hour = 14 tm_mday = 19 tm_mon = 10 tm_year = 101 tm_wday = 1 tm_yday = 322 tm_isdst = 0 my 'localtime_y2k()' function: tm_sec = 41 tm_min = 14 tm_hour = 14 tm_mday = 19 tm_mon = 11 tm_year = 2001 tm_wday = 1 tm_yday = 322 tm_isdst = 0 -output ends here- 'date' command in bash: localhost:/httpd/kunden/admbping/de/bigping/www # date Mon Nov 19 14:14:57 CET 2001 */ ? function localtime_y2k ($time, $is_ass) { $t_arr = localtime ($time, $is_ass); if ($is_ass == 0) { $t_arr[5] = $t_arr[5] + 1900; $t_arr[4] = $t_arr[4] + 1; } if ($is_ass == 1) { $t_arr[tm_year] = $t_arr[tm_year] + 1900; $t_arr[tm_mon] = $t_arr[tm_mon] + 1; } return $t_arr; } ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd; html lang=en_us head meta http-equiv=content-type content=text/html; charset=iso-8859-1 title Untitled /title /head body bgcolor=#FF ? $the_time = time(); $timearray_old = localtime ($the_time, 1); $timearray = localtime_y2k ($the_time, 1); echo Server script path: .getenv (SCRIPT_FILENAME); echo brbrbroriginal 'localtime()' function:brbr; while (list ($key, $val) = each ($timearray_old)) { echo $key = $valbr; } echo brbrbrmy 'localtime()' function:brbr; while (list ($key, $val) = each ($timearray)) { echo $key = $valbr; } ? /body /html -- Edit bug report at: http://bugs.php.net/?id=14115edit=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 #14115 Updated: localtime() gives wrong year and month
ID: 14115 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Date/time related Operating System: SuSE Linux 7.1 PHP Version: 4.0.6 New Comment: tm_year is defined to be the number of years since 1900, so 101 is correct, and tm_mon starts with January = 0. This is to match the libc function of the same name. Do a man localtime on your system for proof. Previous Comments: [2001-11-19 08:37:25] [EMAIL PROTECTED] /* Output from my attached PHP script: -output starts here- Server script path: /httpd/kunden/admbping/de/bigping/www/localtime_y2k.php original 'localtime()' function: tm_sec = 41 tm_min = 14 tm_hour = 14 tm_mday = 19 tm_mon = 10 tm_year = 101 tm_wday = 1 tm_yday = 322 tm_isdst = 0 my 'localtime_y2k()' function: tm_sec = 41 tm_min = 14 tm_hour = 14 tm_mday = 19 tm_mon = 11 tm_year = 2001 tm_wday = 1 tm_yday = 322 tm_isdst = 0 -output ends here- 'date' command in bash: localhost:/httpd/kunden/admbping/de/bigping/www # date Mon Nov 19 14:14:57 CET 2001 */ ? function localtime_y2k ($time, $is_ass) { $t_arr = localtime ($time, $is_ass); if ($is_ass == 0) { $t_arr[5] = $t_arr[5] + 1900; $t_arr[4] = $t_arr[4] + 1; } if ($is_ass == 1) { $t_arr[tm_year] = $t_arr[tm_year] + 1900; $t_arr[tm_mon] = $t_arr[tm_mon] + 1; } return $t_arr; } ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd; html lang=en_us head meta http-equiv=content-type content=text/html; charset=iso-8859-1 title Untitled /title /head body bgcolor=#FF ? $the_time = time(); $timearray_old = localtime ($the_time, 1); $timearray = localtime_y2k ($the_time, 1); echo Server script path: .getenv (SCRIPT_FILENAME); echo brbrbroriginal 'localtime()' function:brbr; while (list ($key, $val) = each ($timearray_old)) { echo $key = $valbr; } echo brbrbrmy 'localtime()' function:brbr; while (list ($key, $val) = each ($timearray)) { echo $key = $valbr; } ? /body /html Edit this bug report at http://bugs.php.net/?id=14115edit=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] SAPI/Apache: Some characters in incomonig variable namesare silently changed (fwd)
resending due to no response: Hello list, It's fairly easy to fix this problem, by just estrdupping the keys before passing them on onto php_register_variabele (sapi/apachi/mod_php4.c:253). The problem is however where to free this estrdupped keys again. Can somebody with some deep knowlegde of the SAPI code look in into this? Derick On 7 Nov 2001 [EMAIL PROTECTED] wrote: Previous Comments: [2001-11-07 01:56:30] [EMAIL PROTECTED] I don't think that FAQ solves that problem. Look at the source code of Apache server. There are several tests of the variable force-response-1.0 there. The problem is not that php code variable is $force-response-1_0, that's OK, but the real problem is that apache variable name in r-subprocess_env is changed too. That's side effect and not pleasent. [2001-11-06 16:30:56] [EMAIL PROTECTED] This is mentioned in http://uk.php.net/manual/en/faq.html.php#AEN63677 . Impossible to find if you don't know where to find it. So changing this to a documentation problem. (the issue is that invalid characters in incoming variable names, like dots, are converted to underscores. This happens with any incoming variable name, be it GET, POST, ENV, or whatever.) Changed subject [2001-11-06 16:09:30] [EMAIL PROTECTED] Apache module mod_setenvif sets variables in r-subprocess_env. If variable name contains character ., then mod_php4.c/sapi_apache_register_server_variables() will replace it with _. This breaks internal variables like force-response-1.0 (php changes it to force-response-1_0). Solution: the key in the php_register_variable() call should be a copy of the real key. Edit this bug report at http://bugs.php.net/?id=13961edit=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] Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- 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] SAPI/Apache: Some characters in incomonig variable names are silently changed (fwd)
As soon as php_register_variable() returns, it's ok to free the variable name. The string itself gets duplicated inside the hash. We have to make sure that duplication/freeing only occurs iff (no typo :) it's necessary, so that the general case remains quick. Zeev At 15:58 19/11/2001, Derick Rethans wrote: resending due to no response: Hello list, It's fairly easy to fix this problem, by just estrdupping the keys before passing them on onto php_register_variabele (sapi/apachi/mod_php4.c:253). The problem is however where to free this estrdupped keys again. Can somebody with some deep knowlegde of the SAPI code look in into this? Derick On 7 Nov 2001 [EMAIL PROTECTED] wrote: Previous Comments: [2001-11-07 01:56:30] [EMAIL PROTECTED] I don't think that FAQ solves that problem. Look at the source code of Apache server. There are several tests of the variable force-response-1.0 there. The problem is not that php code variable is $force-response-1_0, that's OK, but the real problem is that apache variable name in r-subprocess_env is changed too. That's side effect and not pleasent. [2001-11-06 16:30:56] [EMAIL PROTECTED] This is mentioned in http://uk.php.net/manual/en/faq.html.php#AEN63677 . Impossible to find if you don't know where to find it. So changing this to a documentation problem. (the issue is that invalid characters in incoming variable names, like dots, are converted to underscores. This happens with any incoming variable name, be it GET, POST, ENV, or whatever.) Changed subject [2001-11-06 16:09:30] [EMAIL PROTECTED] Apache module mod_setenvif sets variables in r-subprocess_env. If variable name contains character ., then mod_php4.c/sapi_apache_register_server_variables() will replace it with _. This breaks internal variables like force-response-1.0 (php changes it to force-response-1_0). Solution: the key in the php_register_variable() call should be a copy of the real key. Edit this bug report at http://bugs.php.net/?id=13961edit=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] Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.net - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] Boulevard Heuvelink 102 - 6828 KT Arnhem - The Netherlands - -- 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 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] SAPI/Apache: Some characters in incomonig variablenames are silently changed (fwd)
On Mon, 19 Nov 2001, Zeev Suraski wrote: As soon as php_register_variable() returns, it's ok to free the variable name. The string itself gets duplicated inside the hash. Ok, that's what I thought. I'll commit my patch later today. Derick -- 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] buildconf
I reinstall aunoconf 2.13 only and buildconf work Ok Autoconf 2.52d not produce configure from configure.in [EMAIL PROTECTED] wrote: Hello, I suggest you use automake 1.4 and libtool 1.4 (not newer versions). (I think automake is the problem here though, you might to test that first). Derick On Fri, 16 Nov 2001, Serg Musichenko wrote: buidconf don't work correctly: PHP_SUBST is undefined macros autoconf 2.52 automake 1.5 libtool1.4.2 php4.0.6 and php4.1.oRC2 -- 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] compiled modules VS. code in php
Hi, I apologize in advance if this is not the place to ask. I just figured, I'd get a better answer from this group. Is there a performance increase by compiling your code into php (either dynamic or static) as opposed to writing complex code in php. Note: this bit of code would be used by every request in the application, reads many files and does a lot of string parsing. thanks, colin -- Colin McDonald - [EMAIL PROTECTED] home: http://nexus.carleton.ca/~colin/ public key: http://nexus.carleton.ca/~colin/pubkey.asc fingerprint: http://nexus.carleton.ca/~colin/fingerprint.asc -- 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 #13711 Updated: set_time_limit affects other requests on the same Apache process
ID: 13711 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Critical Status: Closed Bug Type: Apache related Operating System: Linux PHP Version: 4.0.6 New Comment: Zeev fixed it! One bottle of Kossu to him! Derick Previous Comments: [2001-10-19 03:02:13] [EMAIL PROTECTED] I could not reproduce this with CVS of 15-10-2001 on Linux/Apache 1.3.22 [2001-10-17 08:37:22] [EMAIL PROTECTED] Reproduced with 4.0.7RC3 on Apache_1.3.22 on Win2k, and 4.0.6 on 1.3.20 on Debian Linux. [2001-10-17 07:56:01] [EMAIL PROTECTED] Verified on W2k, Apache 1.3.20 and 4.0.6. However, can't reproduce on Linux with RC3. Can you try a newer version plz? - Markus [2001-10-17 07:41:44] [EMAIL PROTECTED] Checking it out... if it's true, it's a critical bug. Derick [2001-10-17 06:29:40] [EMAIL PROTECTED] set_time_limit, rather than applying to the currently running script, applies to other PHP scripts as well (including scripts from other domains on the same server). Apparently, set_time_limit affects any future PHP script that will be handled by the same instance of Apache (when using mod_php), i.e., the timeout value is not reset for every new script. Simple testing: (Warning: this test will reduce server availability for the duration of the test.) a. Make sure that PHP logs all errors in a file. b. create a web page (PHP script) that only does set_time_limit(1). c. Load that page (you might wish to reload it several times). Now watch the tail of the PHP error log, as more and more scrpit timed out after 1 second errors appear in completely unrelated PHP scripts running on the server. To stop the test, just run a different script that returns set_time_limit to its default. Edit this bug report at http://bugs.php.net/?id=13711edit=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 #13815 Updated: apache-module doesn't compile
ID: 13815 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Compile Failure Operating System: Windows 2000 PHP Version: 4.0CVS-2001-10-24 New Comment: Everything seems to work fine with the latest CVS so I'm closing this one... :) Previous Comments: [2001-10-24 11:44:13] [EMAIL PROTECTED] Compiling a CGI-binary works fine. During compilation of the apache-module, I got the following warnings errors: Configuration: php4apache - Win32 Release_TS Compiling... mod_php4.c E:\APACHE_1.3.22\SRC\OS\WIN32\os.h(123) : warning C4142: benign redefinition of type e:\apache_1.3.22\src\include\ap_config.h(1365) : warning C4005: 'XtOffsetOf' : macro redefinition ..\..\main\php.h(343) : see previous definition of 'XtOffsetOf' ..\..\ext/standard/file.h(51) : fatal error C1017: invalid integer constant expression php_apache.c E:\APACHE_1.3.22\SRC\OS\WIN32\os.h(123) : warning C4142: benign redefinition of type e:\apache_1.3.22\src\include\ap_config.h(1365) : warning C4005: 'XtOffsetOf' : macro redefinition ..\..\main\php.h(343) : see previous definition of 'XtOffsetOf' sapi_apache.c E:\APACHE_1.3.22\SRC\OS\WIN32\os.h(123) : warning C4142: benign redefinition of type e:\apache_1.3.22\src\include\ap_config.h(1365) : warning C4005: 'XtOffsetOf' : macro redefinition ..\..\main\php.h(343) : see previous definition of 'XtOffsetOf' ..\..\ext/standard/file.h(51) : fatal error C1017: invalid integer constant expression Error executing cl.exe. php4apache.dll - 2 error(s), 6 warning(s) I also get these warnings when I compile 4.1.0RC1 or 4.0.7RC3, but the fatal errors only show up with the latest CVS. I'm using Visual C++ on Windows 2000. Edit this bug report at http://bugs.php.net/?id=13815edit=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] compiled modules VS. code in php
Generally, a perfect C implementation will always be quicker than a PHP implementation, because the scripting engine has its overhead. However, whether or not you write perfect C code is a different question :) Zeev At 16:51 19/11/2001, colin mcdonald wrote: Hi, I apologize in advance if this is not the place to ask. I just figured, I'd get a better answer from this group. Is there a performance increase by compiling your code into php (either dynamic or static) as opposed to writing complex code in php. Note: this bit of code would be used by every request in the application, reads many files and does a lot of string parsing. thanks, colin -- Colin McDonald - [EMAIL PROTECTED] home: http://nexus.carleton.ca/~colin/ public key: http://nexus.carleton.ca/~colin/pubkey.asc fingerprint: http://nexus.carleton.ca/~colin/fingerprint.asc -- 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 #14116: imageTTFtext doesnt work with ImageCreateTrueColor
From: [EMAIL PROTECTED] Operating system: Slackware 8 PHP version: 4.0.6 PHP Bug Type: *General Issues Bug description: imageTTFtext doesnt work with ImageCreateTrueColor For some reason I hanent been able to get imageTTFtext to work with ImageCreateTrueColor. It works fine with ImageCreate but not with the true color. -- Edit bug report at: http://bugs.php.net/?id=14116edit=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 #14116 Updated: imageTTFtext doesnt work with ImageCreateTrueColor
ID: 14116 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: *General Issues Operating System: Slackware 8 PHP Version: 4.0.6 New Comment: Which version of GD/Freetype are you using? Derick Previous Comments: [2001-11-19 10:29:07] [EMAIL PROTECTED] For some reason I hanent been able to get imageTTFtext to work with ImageCreateTrueColor. It works fine with ImageCreate but not with the true color. Edit this bug report at http://bugs.php.net/?id=14116edit=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 #14116 Updated: imageTTFtext doesnt work with ImageCreateTrueColor
ID: 14116 Updated by: rasmus Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: *General Issues Operating System: Slackware 8 PHP Version: 4.0.6 New Comment: Luke, what do you mean by it doesn't work? There is a known problem with anti-aliasing of ttf fonts on truecolor images in gd-2.0.1, but apart from looking rather crappy, it does work. Previous Comments: [2001-11-19 10:32:57] [EMAIL PROTECTED] Which version of GD/Freetype are you using? Derick [2001-11-19 10:29:07] [EMAIL PROTECTED] For some reason I hanent been able to get imageTTFtext to work with ImageCreateTrueColor. It works fine with ImageCreate but not with the true color. Edit this bug report at http://bugs.php.net/?id=14116edit=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 #14116 Updated: imageTTFtext doesnt work with ImageCreateTrueColor
ID: 14116 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: *General Issues Operating System: Slackware 8 PHP Version: 4.0.6 New Comment: Can you post a sample script? You might be doing something wrong... Previous Comments: [2001-11-19 10:40:33] [EMAIL PROTECTED] I am using: GD-2.0.1 FREETYPE-1.3.1 When I use the ImageCreate then the imageTTFtext works, streaming the image to the screen. If I use imageCreateTrueColor then the browse says document contains no data. [2001-11-19 10:37:08] [EMAIL PROTECTED] Luke, what do you mean by it doesn't work? There is a known problem with anti-aliasing of ttf fonts on truecolor images in gd-2.0.1, but apart from looking rather crappy, it does work. [2001-11-19 10:32:57] [EMAIL PROTECTED] Which version of GD/Freetype are you using? Derick [2001-11-19 10:29:07] [EMAIL PROTECTED] For some reason I hanent been able to get imageTTFtext to work with ImageCreateTrueColor. It works fine with ImageCreate but not with the true color. Edit this bug report at http://bugs.php.net/?id=14116edit=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 #14117: Problems with ucwords(strtolower()) function
From: [EMAIL PROTECTED] Operating system: Win98/Linux-Conectiva PHP version: 4.0.6 PHP Bug Type: Strings related Bug description: Problems with ucwords(strtolower()) function html body ?php class texto { var $str1='', $str2='', $str3=''; } $str= new texto(); $str-str1='AÇÃO'; $str-str2=strtolower($str-str1); $str-str3=ucwords($str-str1); print(1: $str-str1 br. 2: $str-str2 br. 3: $str-str3 br); ? /body /html Expected $str-str3 = 'Ação', but isn't what I get. When I use this functions in strigs that are outside a object, this error don't happens. In instance: ?php $str1='AÇÃO'; $str2=strtolower($str1); $str3=ucwords($str2); ? // --- THIS OK * Sorry 'bout my poor english. -- Edit bug report at: http://bugs.php.net/?id=14117edit=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 #14117 Updated: Problems with ucwords(strtolower()) function
ID: 14117 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Strings related Operating System: Win98/Linux-Conectiva PHP Version: 4.0.6 New Comment: You should set the correct locale (see http://www.php.net/manual/en/function.setlocale.php) If that's not the case, show us your output and tell us what you exactly expect. Previous Comments: [2001-11-19 10:45:40] [EMAIL PROTECTED] html body ?php class texto { var $str1='', $str2='', $str3=''; } $str= new texto(); $str-str1='AÇÃO'; $str-str2=strtolower($str-str1); $str-str3=ucwords($str-str1); print(1: $str-str1 br. 2: $str-str2 br. 3: $str-str3 br); ? /body /html Expected $str-str3 = 'Ação', but isn't what I get. When I use this functions in strigs that are outside a object, this error don't happens. In instance: ?php $str1='AÇÃO'; $str2=strtolower($str1); $str3=ucwords($str2); ? // --- THIS OK * Sorry 'bout my poor english. Edit this bug report at http://bugs.php.net/?id=14117edit=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 #14117 Updated: Problems with ucwords(strtolower()) function
ID: 14117 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Bogus Bug Type: Strings related Operating System: Win98/Linux-Conectiva PHP Version: 4.0.6 New Comment: Your script is buggy. You're using the original string (str1) to ucwords. ucwords() will not lowercase any other letters. Not a bug - bogus Previous Comments: [2001-11-19 10:48:32] [EMAIL PROTECTED] You should set the correct locale (see http://www.php.net/manual/en/function.setlocale.php) If that's not the case, show us your output and tell us what you exactly expect. [2001-11-19 10:45:40] [EMAIL PROTECTED] html body ?php class texto { var $str1='', $str2='', $str3=''; } $str= new texto(); $str-str1='AÇÃO'; $str-str2=strtolower($str-str1); $str-str3=ucwords($str-str1); print(1: $str-str1 br. 2: $str-str2 br. 3: $str-str3 br); ? /body /html Expected $str-str3 = 'Ação', but isn't what I get. When I use this functions in strigs that are outside a object, this error don't happens. In instance: ?php $str1='AÇÃO'; $str2=strtolower($str1); $str3=ucwords($str2); ? // --- THIS OK * Sorry 'bout my poor english. Edit this bug report at http://bugs.php.net/?id=14117edit=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 #14117 Updated: Problems with ucwords(strtolower()) function
ID: 14117 Updated by: jpm Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Strings related Operating System: Win98/Linux-Conectiva PHP Version: 4.0.6 New Comment: Not a bug - bogus. But yeah, if you think thats not the case, please tell us what you would expect. Previous Comments: [2001-11-19 10:49:38] [EMAIL PROTECTED] Your script is buggy. You're using the original string (str1) to ucwords. ucwords() will not lowercase any other letters. Not a bug - bogus [2001-11-19 10:48:32] [EMAIL PROTECTED] You should set the correct locale (see http://www.php.net/manual/en/function.setlocale.php) If that's not the case, show us your output and tell us what you exactly expect. [2001-11-19 10:45:40] [EMAIL PROTECTED] html body ?php class texto { var $str1='', $str2='', $str3=''; } $str= new texto(); $str-str1='AÇÃO'; $str-str2=strtolower($str-str1); $str-str3=ucwords($str-str1); print(1: $str-str1 br. 2: $str-str2 br. 3: $str-str3 br); ? /body /html Expected $str-str3 = 'Ação', but isn't what I get. When I use this functions in strigs that are outside a object, this error don't happens. In instance: ?php $str1='AÇÃO'; $str2=strtolower($str1); $str3=ucwords($str2); ? // --- THIS OK * Sorry 'bout my poor english. Edit this bug report at http://bugs.php.net/?id=14117edit=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 #14116 Updated: imageTTFtext doesnt work with ImageCreateTrueColor
ID: 14116 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Old Bug Type: *General Issues Bug Type: GD related Operating System: Slackware 8 PHP Version: 4.0.6 New Comment: ?php $fontsize=11; $angle=0; $fontfile=./pub/fonts/ARIAL.TTF; $image = ImageCreateTrueColor(300, 16); $first=@imagecreatefromPNG(./pub/menuimg/$im1.png); $white = imageColorAllocate($image, 255, 255, 255); $black = imageColorAllocate($image, 0, 0, 0); imageCopyResized($image,$first,1,0,0,0,ImageSX($first),ImageSY($first),ImageSX($first),ImageSY($first)); imagettftext($image, $fontsize, $angle, 23, 11, $black,$fontfile, Main Page); Header( Content-type: image/png); imagePNG($image); ImageDestroy ($image); ? Previous Comments: [2001-11-19 10:44:11] [EMAIL PROTECTED] Can you post a sample script? You might be doing something wrong... [2001-11-19 10:40:33] [EMAIL PROTECTED] I am using: GD-2.0.1 FREETYPE-1.3.1 When I use the ImageCreate then the imageTTFtext works, streaming the image to the screen. If I use imageCreateTrueColor then the browse says document contains no data. [2001-11-19 10:37:08] [EMAIL PROTECTED] Luke, what do you mean by it doesn't work? There is a known problem with anti-aliasing of ttf fonts on truecolor images in gd-2.0.1, but apart from looking rather crappy, it does work. [2001-11-19 10:32:57] [EMAIL PROTECTED] Which version of GD/Freetype are you using? Derick [2001-11-19 10:29:07] [EMAIL PROTECTED] For some reason I hanent been able to get imageTTFtext to work with ImageCreateTrueColor. It works fine with ImageCreate but not with the true color. Edit this bug report at http://bugs.php.net/?id=14116edit=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 #14117 Updated: Problems with ucwords(strtolower()) function
ID: 14117 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Strings related Operating System: Win98/Linux-Conectiva PHP Version: 4.0.6 New Comment: ?php class texto { var $str=''; } $str= new texto(); $str-str='AÇÃO'; $str-str=ucwords(strtolower($str-str)); print(1: $str-str ); ? This is what I get in Win98(with PWS) using the script above: 1: AçÃo And with the same script, this is what I get in Linux(with Apache): 1: AÇÃo I expect: 1: Ação What I do wrong? Previous Comments: [2001-11-19 10:50:11] [EMAIL PROTECTED] Not a bug - bogus. But yeah, if you think thats not the case, please tell us what you would expect. [2001-11-19 10:49:38] [EMAIL PROTECTED] Your script is buggy. You're using the original string (str1) to ucwords. ucwords() will not lowercase any other letters. Not a bug - bogus [2001-11-19 10:48:32] [EMAIL PROTECTED] You should set the correct locale (see http://www.php.net/manual/en/function.setlocale.php) If that's not the case, show us your output and tell us what you exactly expect. [2001-11-19 10:45:40] [EMAIL PROTECTED] html body ?php class texto { var $str1='', $str2='', $str3=''; } $str= new texto(); $str-str1='AÇÃO'; $str-str2=strtolower($str-str1); $str-str3=ucwords($str-str1); print(1: $str-str1 br. 2: $str-str2 br. 3: $str-str3 br); ? /body /html Expected $str-str3 = 'Ação', but isn't what I get. When I use this functions in strigs that are outside a object, this error don't happens. In instance: ?php $str1='AÇÃO'; $str2=strtolower($str1); $str3=ucwords($str2); ? // --- THIS OK * Sorry 'bout my poor english. Edit this bug report at http://bugs.php.net/?id=14117edit=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 #14117 Updated: Problems with ucwords(strtolower()) function
ID: 14117 Updated by: derick Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Strings related Operating System: Win98/Linux-Conectiva PHP Version: 4.0.6 New Comment: Then it's a locale problem, check the url posted by sander. Derick Previous Comments: [2001-11-19 10:59:48] [EMAIL PROTECTED] ?php class texto { var $str=''; } $str= new texto(); $str-str='AÇÃO'; $str-str=ucwords(strtolower($str-str)); print(1: $str-str ); ? This is what I get in Win98(with PWS) using the script above: 1: AçÃo And with the same script, this is what I get in Linux(with Apache): 1: AÇÃo I expect: 1: Ação What I do wrong? [2001-11-19 10:50:11] [EMAIL PROTECTED] Not a bug - bogus. But yeah, if you think thats not the case, please tell us what you would expect. [2001-11-19 10:49:38] [EMAIL PROTECTED] Your script is buggy. You're using the original string (str1) to ucwords. ucwords() will not lowercase any other letters. Not a bug - bogus [2001-11-19 10:48:32] [EMAIL PROTECTED] You should set the correct locale (see http://www.php.net/manual/en/function.setlocale.php) If that's not the case, show us your output and tell us what you exactly expect. [2001-11-19 10:45:40] [EMAIL PROTECTED] html body ?php class texto { var $str1='', $str2='', $str3=''; } $str= new texto(); $str-str1='AÇÃO'; $str-str2=strtolower($str-str1); $str-str3=ucwords($str-str1); print(1: $str-str1 br. 2: $str-str2 br. 3: $str-str3 br); ? /body /html Expected $str-str3 = 'Ação', but isn't what I get. When I use this functions in strigs that are outside a object, this error don't happens. In instance: ?php $str1='AÇÃO'; $str2=strtolower($str1); $str3=ucwords($str2); ? // --- THIS OK * Sorry 'bout my poor english. Edit this bug report at http://bugs.php.net/?id=14117edit=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 #14035 Updated: Install fails on apsx -S command under Apache 1.3.6
ID: 14035 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Apache related Operating System: Cobalt RAQ 3-Red Hat 5 PHP Version: 4.0.6 New Comment: The newest release fixed the problems. Thanks for your quick response! Previous Comments: [2001-11-18 19:52:41] [EMAIL PROTECTED] Both of these problems are fixed in CVS (and in next release, 4.1.0 ) --Jani [2001-11-12 15:48:09] [EMAIL PROTECTED] Apache fails on apsx -S commmand upon install. I have read previous posts about this problem and we do not have the option to install a newer version of Apache beyond 1.3.6. Is there a way around this? Can we use previous install options (ie. -i -n) from 4.0.5? Also, we receive and error when we connect to a Postgres database using: ? session_start(); dl(pgsql.so) ; $db=pg_connect(dbname=fsagency user=fsagency); ? We receive a Segmentation Fault (11). We have deterimined that the error occurs in the pg_connect function call. Sometimes we receive a document cannot be displayed in the browser, sometimes we recieve our data. Will try to recompile to get a backtrace. Any help would be appreciated. Edit this bug report at http://bugs.php.net/?id=14035edit=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 #14117 Updated: Problems with ucwords(strtolower()) function
ID: 14117 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: Strings related Operating System: Win98/Linux-Conectiva PHP Version: 4.0.6 New Comment: Thanks. The setlocale('LC_ALL','pt_BR'); works in perfect way. And sorry annoy you. Previous Comments: [2001-11-19 11:03:49] [EMAIL PROTECTED] Then it's a locale problem, check the url posted by sander. Derick [2001-11-19 10:59:48] [EMAIL PROTECTED] ?php class texto { var $str=''; } $str= new texto(); $str-str='AÇÃO'; $str-str=ucwords(strtolower($str-str)); print(1: $str-str ); ? This is what I get in Win98(with PWS) using the script above: 1: AçÃo And with the same script, this is what I get in Linux(with Apache): 1: AÇÃo I expect: 1: Ação What I do wrong? [2001-11-19 10:50:11] [EMAIL PROTECTED] Not a bug - bogus. But yeah, if you think thats not the case, please tell us what you would expect. [2001-11-19 10:49:38] [EMAIL PROTECTED] Your script is buggy. You're using the original string (str1) to ucwords. ucwords() will not lowercase any other letters. Not a bug - bogus [2001-11-19 10:48:32] [EMAIL PROTECTED] You should set the correct locale (see http://www.php.net/manual/en/function.setlocale.php) If that's not the case, show us your output and tell us what you exactly expect. 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=14117 Edit this bug report at http://bugs.php.net/?id=14117edit=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 #13197 Updated: ImageTTFText broken on truecolor images
ID: 13197 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: GD related Operating System: Linux PHP Version: 4.0.6 New Comment: Remove the - in front of $white there in your ImageTTFText() call and you should see something. There is a known issue with anti-aliased ttf text on truecolor images in gd-2.0.1. Hopefully this will be fixed in gd-2.0.2, but regardless, it is not a PHP bug. Previous Comments: [2001-09-07 12:09:51] [EMAIL PROTECTED] The resulting image is blank, works fine for palette images. $img = ImageCreateTrueColor(300, 300); $black = ImageColorAllocate ($img, 0, 0, 0); $white = ImageColorAllocate ($img, 255, 255, 255); ImageTTFText ($img, 40, 0, 20, ImageSY($img)-20, -$white, /home/sageconspiracy/lib/fonts/bio.ttf, TextText); ImageJPEG($img, , 50); Edit this bug report at http://bugs.php.net/?id=13197edit=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 #14118: Upload file more than 1 Mb doesn´t work
From: [EMAIL PROTECTED] Operating system: linux redhat 7.1 PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: Upload file more than 1 Mb doesn´t work I have a little script for uploading files, all work fine with files lower than 1 mb but if I try to upload a higher file I get the next browser error The page cannot be displayed. My script is: ? //check for file upload if ($set==go) { if (is_uploaded_file($UploadedFile)) { print(Local File: $UploadedFile BR\n); print(Name: $UploadedFile_name BR\n); print(Size: $UploadedFile_size BR\n); print(Type: $UploadedFile_type BR\n); print(HR\n); } } ? FORM ENCTYPE=multipart/form-data ACTION=test.php METHOD=POST INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 INPUT NAME=UploadedFile TYPE=file INPUT TYPE=hidden name=set value=go INPUT TYPE=submit VALUE=Upload /FORM /BODY /HTML My php.ini has a very higher configuration limits. The parameters are: max_execution_time = 3000 memory_limit = 16M post_max_size = 80M ; File Uploads ; file_uploads= On upload_tmp_dir = /tmp upload_max_filesize = 80M I read that the solution is upgrade php, I´m hoping that there are other solutions. Thanks Mauricio -- Edit bug report at: http://bugs.php.net/?id=14118edit=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 #14116 Updated: imageTTFtext doesnt work with ImageCreateTrueColor
ID: 14116 Updated by: bate Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: GD related Operating System: Slackware 8 PHP Version: 4.0.6 New Comment: I say don't use Beta Software. GD-2.0.1 are beta and buggy. It's not a PHP Problem. Use GD-1.8.4. Previous Comments: [2001-11-19 11:01:08] [EMAIL PROTECTED] Looks like im getting the same problem to Jeremy BUG-ID 13197. [2001-11-19 10:56:22] [EMAIL PROTECTED] ?php $fontsize=11; $angle=0; $fontfile=./pub/fonts/ARIAL.TTF; $image = ImageCreateTrueColor(300, 16); $first=@imagecreatefromPNG(./pub/menuimg/$im1.png); $white = imageColorAllocate($image, 255, 255, 255); $black = imageColorAllocate($image, 0, 0, 0); imageCopyResized($image,$first,1,0,0,0,ImageSX($first),ImageSY($first),ImageSX($first),ImageSY($first)); imagettftext($image, $fontsize, $angle, 23, 11, $black,$fontfile, Main Page); Header( Content-type: image/png); imagePNG($image); ImageDestroy ($image); ? [2001-11-19 10:44:11] [EMAIL PROTECTED] Can you post a sample script? You might be doing something wrong... [2001-11-19 10:40:33] [EMAIL PROTECTED] I am using: GD-2.0.1 FREETYPE-1.3.1 When I use the ImageCreate then the imageTTFtext works, streaming the image to the screen. If I use imageCreateTrueColor then the browse says document contains no data. [2001-11-19 10:37:08] [EMAIL PROTECTED] Luke, what do you mean by it doesn't work? There is a known problem with anti-aliasing of ttf fonts on truecolor images in gd-2.0.1, but apart from looking rather crappy, it does work. 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=14116 Edit this bug report at http://bugs.php.net/?id=14116edit=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 #14118 Updated: Upload file more than 1 Mb doesn´t work
ID: 14118 Updated by: bate Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: Which version of Apache runs you? I note same problem with IE 5.x. Try you script with Netscape. I think its a problem with your Browser. Previous Comments: [2001-11-19 11:55:38] [EMAIL PROTECTED] I have a little script for uploading files, all work fine with files lower than 1 mb but if I try to upload a higher file I get the next browser error The page cannot be displayed. My script is: ? //check for file upload if ($set==go) { if (is_uploaded_file($UploadedFile)) { print(Local File: $UploadedFile BR\n); print(Name: $UploadedFile_name BR\n); print(Size: $UploadedFile_size BR\n); print(Type: $UploadedFile_type BR\n); print(HR\n); } } ? FORM ENCTYPE=multipart/form-data ACTION=test.php METHOD=POST INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 INPUT NAME=UploadedFile TYPE=file INPUT TYPE=hidden name=set value=go INPUT TYPE=submit VALUE=Upload /FORM /BODY /HTML My php.ini has a very higher configuration limits. The parameters are: max_execution_time = 3000 memory_limit = 16M post_max_size = 80M ; File Uploads ; file_uploads= On upload_tmp_dir = /tmp upload_max_filesize = 80M I read that the solution is upgrade php, I´m hoping that there are other solutions. Thanks Mauricio Edit this bug report at http://bugs.php.net/?id=14118edit=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 #14076 Updated: fopen() and touch() fail to create file under safe mode
ID: 14076 Updated by: bate Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Directory/Filesystem functions Operating System: Linux PHP Version: 4.0.6 New Comment: Post please the mod of your directory and tell me the user and group of your apache. Maybe the apache dont have rights to create a new file in your directory but he owns the newfile and can remove/edit this file. Previous Comments: [2001-11-15 18:53:16] [EMAIL PROTECTED] Under safe mode, fopen(filename, w) fails to create a file if it doesn't exist, complaining about open_basedir restriction. However, the filename refers to the file in the directory configured in the open_basedir. Besides, if the same file is created manually, fopen() can open it for writing without any problems. The directory is writeable to the web server. $dir = '/var/www/tmp/submit'; // Fails if the file doesn't exist. // Succeeds if the file does exist fopen( $dir/file.txt, w ); // Fails if the file doesn't exist. mkdir( $dir/foo, 0700 ); // SUCCEEDS!!! Notice the same path. Edit this bug report at http://bugs.php.net/?id=14076edit=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 #12691 Updated: Apache 2: Server variables don't get set
ID: 12691 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Apache related Operating System: SuSE7.1 PHP Version: 4.0CVS-2001-08-10 New Comment: ok, here's what I tried: o PHP4.0.2-dev (php4-2009 from snaps) o config line is: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql' '--with-dom' '--disable-posix' '--disable-pic' '--with-zlib' '--enable-wddx' o Apache2.0.28-beta o config line is: CFLAGS=-g; export CFLAGS ./configure \ --enable-layout=Apache \ --enable-auth-digest \ --enable-ext-filter \ --disable-include \ --enable-headers \ --enable-so \ --enable-ssl=shared \ --with-mpm=threaded \ --enable-http \ --enable-dav=shared \ --disable-asis \ --enable-info=shared \ --enable-suexec \ --enable-cgi=shared \ --enable-cgid=shared \ --enable-dav-fs=shared \ --enable-vhost-alias=shared \ --disable-imap \ --enable-rewrite=shared \ --with-suexec-uidmin=30 \ --with-suexec-gidmin=65534 Now env vars are set ok (either with or without seting I/O filters, just with an AddType), *BUT* :) I still found that one very important one is missing, namely PATH_INFO. If I say http://teo.gecadsoftware.com/i.php/x it gives a file not found error (where i.php exists and contains a phpinfo() call). I tried to catch that with FilesMatch, but couldn't figure (I think the test for $DOCUMENT_ROOT/i.php/x to exist is done before applying matches, which makes sense). I am having a look into it but my experience with Apache2 is less that epsilon :) so maybe somebody can have a look too? Previous Comments: [2001-11-17 12:10:10] [EMAIL PROTECTED] There has been a patch regarding this three days ago. Please try the latest snapshot from http://snaps.php.net/ and report, if the problem still comes up. [2001-11-03 21:53:17] [EMAIL PROTECTED] updated short desc. [2001-08-10 11:08:15] [EMAIL PROTECTED] hi alindeman, erm, you missed the essential 2 :) it's with Apache2 (apxs2) Additional note: printenv from /cgi-bin shows them just right. [2001-08-10 10:49:39] [EMAIL PROTECTED] works fine for me (Apache 1.3.20 + PHP Latest CVS). Try running ?phpinfo()? and see what variables are defined.. [2001-08-10 10:42:38] [EMAIL PROTECTED] Apache 2.0.24-dev PHP4-200108091635 CFLAGS='-O6 -fomit-frame-pointer' \ './configure' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--with-mysql' \ '--disable-posix' \ '--disable-pic' \ '--with-zlib' \ '--enable-wddx' \ Looks like PHP doesn't import SERVER_* environment variables: e.g. ?php print getenv('SERVER_NAME')? or ?php print $_SERVER['SERVER_NAME']? yeilds nothin' -- tedor Edit this bug report at http://bugs.php.net/?id=12691edit=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 #14118 Updated: Upload file more than 1 Mb doesn´t work
ID: 14118 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Closed Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: Should be fixed in CVS. Can you try a snapshot from snaps.php.net? Please reopen if the problem persists. Derick Previous Comments: [2001-11-19 12:39:27] [EMAIL PROTECTED] Maybe I am pointing out the obvious here, but this line would prevent you from doing so. INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 Cause I believe it OVERRIDES php.ini value. So if for some reason I am not stating the obvious remove this line and try again. -Chris [2001-11-19 12:34:19] [EMAIL PROTECTED] Which version of Apache runs you? I note same problem with IE 5.x. Try you script with Netscape. I think its a problem with your Browser. [2001-11-19 11:55:38] [EMAIL PROTECTED] I have a little script for uploading files, all work fine with files lower than 1 mb but if I try to upload a higher file I get the next browser error The page cannot be displayed. My script is: ? //check for file upload if ($set==go) { if (is_uploaded_file($UploadedFile)) { print(Local File: $UploadedFile BR\n); print(Name: $UploadedFile_name BR\n); print(Size: $UploadedFile_size BR\n); print(Type: $UploadedFile_type BR\n); print(HR\n); } } ? FORM ENCTYPE=multipart/form-data ACTION=test.php METHOD=POST INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 INPUT NAME=UploadedFile TYPE=file INPUT TYPE=hidden name=set value=go INPUT TYPE=submit VALUE=Upload /FORM /BODY /HTML My php.ini has a very higher configuration limits. The parameters are: max_execution_time = 3000 memory_limit = 16M post_max_size = 80M ; File Uploads ; file_uploads= On upload_tmp_dir = /tmp upload_max_filesize = 80M I read that the solution is upgrade php, I´m hoping that there are other solutions. Thanks Mauricio Edit this bug report at http://bugs.php.net/?id=14118edit=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] ext/magick
Hi I wrote in the last few days my first php-extension. It's an extension for the ImageMagick library. It can't do much at the moment, more or less only converting from one image-format to another (but since ImageMagick supports a lot of them, it will be the main feature of it anyway..) if anyone is interested, it's available from http://pear.chregu.tv/magick.tgz or web cvs http://cvs.bitflux.ch/index.cgi/pearlib/magick/ since it's my first extension you'll maybe find some errors. any hints/help would be appreciated :) Features to come are: - support multiple images - support all the manipulation stuff - documentation ... - and more :) Is there any interest to get that included in the main php4 cvs, or should I check that in in the pear/pecl-cvs? or even not check it in anywhere and just make it downloadable from my site? so long chregu -- 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 #14080 Updated: The doubledoublequote strikes again
ID: 14080 Updated by: bate Reported By: [EMAIL PROTECTED] Old Status: Open Status: Analyzed Bug Type: Session related Operating System: FreeBSD 4.4 PHP Version: 4.0.6 New Comment: I got the same problem. Tryed with 4.2.0-dev. Previous Comments: [2001-11-16 05:56:15] [EMAIL PROTECTED] I came across the bug described in Bug-ID #8311 with 4.03pl1 on our old Server, so I transfered it to the new Server running 4.0.6 and the behaviour is nearly the same. This: ?php session_start(); $somevar = a href=\javascript:;\ onClick=window.open(\/hardware/somevar.php?hinfoid=.$somevar_id.\,\chgti\,\location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=450,height=470\);Badlink/a; echo $somevar; ? produces this: a href=javascript:; onClick=window.open(/hardware/somevar.php?hinfoid=,chgti,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=450,height=470);Badlink/a Without the session, the Output is normal, both with 4.0.3pl1 and 4.06. The only difference is that 4.0.6 does a few less quotes than 4.0.3pl1. Trans-SID is enabled, PHP is running as an Apache-Module Edit this bug report at http://bugs.php.net/?id=14080edit=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] ext/magick
On Mon, 19 Nov 2001, Christian Stocker wrote: Hi I wrote in the last few days my first php-extension. It's an extension for the ImageMagick library. It can't do much at the moment, more or less only converting from one image-format to another (but since ImageMagick supports a lot of them, it will be the main feature of it anyway..) if anyone is interested, it's available from http://pear.chregu.tv/magick.tgz or web cvs http://cvs.bitflux.ch/index.cgi/pearlib/magick/ since it's my first extension you'll maybe find some errors. any hints/help would be appreciated :) PHP_FUNCTION(magick_read); PHP_FUNCTION(magick_sampleimage); PHP_FUNCTION(magick_save); PHP_FUNCTION(magick_listmagickinfo); PHP_FUNCTION(magick_dump); PHP_FUNCTION(magick_setattribute); PHP_FUNCTION(magick_getattribute); PHP_FUNCTION(magick_new); PHP_FUNCTION(magick_convert); I would suggest naming the functions with imagick_* prefix. You never know what other 'magick' might come along. Also, use underscores to separate words in the function names, i.e. imagick_sample_image() instead of magick_sampleimage(). -Andrei I still find each day too short for all the thoughts I want to think, all the walks I want to take, all the books I want to read, and all the friends I want to see. -John Burroughs -- 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 #8989 Updated: Bug#5493 resurfaced
ID: 8989 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Session related Operating System: Windows NT 4 SP5(IIS4)/2000 SP2 PHP Version: 4.0.6 New Comment: Is there any way to obtain the latest PHP release candidates in binary form for the Windows platform? I would like to test the latest RC for this bug, but I forgot that the PHP site doesn't provide binaries for RCs, and I unfortunately do not have the dev tools needed under Windows to compile the source. Otherwise, I will only be able to test the next version when it is released. Previous Comments: [2001-11-18 13:34:59] [EMAIL PROTECTED] You can find the example script I provided in the posting to this problem dated [2001-06-26 12:36:01], but here is the relevant portion to save you time: Note PHP v4.x has always been able to initially create a session variable. The challenge is NOT within a single page that the problem arises. The problem, described both here and in an earlier problem (#5493), is the maintenance of session variables BETWEEN pages. So... 1. Create the file page1.php as follows: __ ? session_start(); if (!$PHPSESSID) { $userid=100; $firstaccess=time(); $lastaccess=time(); session_register(userid); session_register(firstaccess); session_register(lastaccess); } $lastaccess = time(); ? HTML HEAD TITLEPage 1/TITLE /HEAD BODY This is page 1.br ? echo \$PHPSESSID = '$PHPSESSID'br; echo \$userid = '$userid'br; echo \$firstaccess = '$firstaccess'br; echo \$lastaccess = '$lastaccess'p; ? A HREF=page2.phpPage 2/A.p /BODY /HTML __ 2. Create files page2.php, page3.php, page4.php, copying the code above. The only changes that need to be made are to change * the TITLE for each file (optional really) * the one line reading This is page 1 (also optional really, but both help you to see the page transitions), and * the A HREF tag (this is important) so that essentially the links cause PAGE1.PHP - PAGE2.PHP - PAGE3.PHP - PAGE4.PHP - PAGE1.PHP thus creating a loop that cycles around the 4 pages. 3. Make sure the PHP.INI file is properly configured to store session files (for this example, \InetPub\sessions). Then either open a Command Prompt to this directory or use Explorer (whatever suits you). 4. Serving these files from IIS (say \InetPub\wwwroot), load page1.php. 5. Look in the session directory. You should see a session file created. Note its size (60 bytes in this case). 6. Now start clicking on the link on page1.php. This will load page2.php, which shows the current value of the session ID. Keep clicking on the links and keep watching the session directory. What you will find is that new session files are being created, session files that are 0 bytes and contain NOTHING. This is a serious problem, as it makes session management useless in PHP under Windows. As for the latest release candidate of PHP v4.1.0, I will download that as soon as I have some free time and see whether the issue has been resolved. Please note, as stated earlier in this problem, that this issue existed with earlier versions of PHP but was resolved up to v4.0.3pl1 (CGI version only). Then it resurfaced and has been part of PHP up and including v4.0.6. Due to this, I am still using PHP v4.0.3pl1 at this time. Also note that with the latest rash of IIS vulnerabilities, I am moving from IIS towards Apache. If I can, I will try to run the latest RC under both webservers. But thus far, since I tend to stick to the CGI version under Windows, the webserver used has made no difference. The issue exists under both IIS and Apache. [2001-11-18 01:21:49] [EMAIL PROTECTED] Please provide either a script to reproduce your problem with or grab the latest PHP 4.1.0 release candidate and test it yourself. Thanks for your help. [2001-08-23 12:30:16] [EMAIL PROTECTED] Any update on the PHP session problems in v4.0.4+? I've received several e-mails from people saying they're experiencing similar results, but apparently they can't post to this problem. Just curious. It's been a couple of months, so thought I'd ask. Also, any way for people to still get a copy of PHP v4.0.3pl1? I've had a few ask me, and noticed
[PHP-DEV] Bug #14118 Updated: Upload file more than 1 Mb doesn´t work
ID: 14118 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Open Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: My apache version is: Apache/1.3.14 I use internet explorer 5.5 and netscape 4.75 but the problem persist I erased the line INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 but doesn´t work. If you see my script I print the upload variables, if I upload a file lower 2 Mb, the variables are printed, but if I transfer a higher file the variables aren´t printed and not copy the file in server. Thanks Previous Comments: [2001-11-19 12:39:47] [EMAIL PROTECTED] Should be fixed in CVS. Can you try a snapshot from snaps.php.net? Please reopen if the problem persists. Derick [2001-11-19 12:39:27] [EMAIL PROTECTED] Maybe I am pointing out the obvious here, but this line would prevent you from doing so. INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 Cause I believe it OVERRIDES php.ini value. So if for some reason I am not stating the obvious remove this line and try again. -Chris [2001-11-19 12:34:19] [EMAIL PROTECTED] Which version of Apache runs you? I note same problem with IE 5.x. Try you script with Netscape. I think its a problem with your Browser. [2001-11-19 11:55:38] [EMAIL PROTECTED] I have a little script for uploading files, all work fine with files lower than 1 mb but if I try to upload a higher file I get the next browser error The page cannot be displayed. My script is: ? //check for file upload if ($set==go) { if (is_uploaded_file($UploadedFile)) { print(Local File: $UploadedFile BR\n); print(Name: $UploadedFile_name BR\n); print(Size: $UploadedFile_size BR\n); print(Type: $UploadedFile_type BR\n); print(HR\n); } } ? FORM ENCTYPE=multipart/form-data ACTION=test.php METHOD=POST INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 INPUT NAME=UploadedFile TYPE=file INPUT TYPE=hidden name=set value=go INPUT TYPE=submit VALUE=Upload /FORM /BODY /HTML My php.ini has a very higher configuration limits. The parameters are: max_execution_time = 3000 memory_limit = 16M post_max_size = 80M ; File Uploads ; file_uploads= On upload_tmp_dir = /tmp upload_max_filesize = 80M I read that the solution is upgrade php, I´m hoping that there are other solutions. Thanks Mauricio Edit this bug report at http://bugs.php.net/?id=14118edit=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 #14118 Updated: Upload file more than 1 Mb doesn´t work
ID: 14118 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: With an older 4.2.0-dev I can get up to about 6MB. Local File: /tmp/php4Za1Aa Name: ecdc_v502b_up.exe Size: 5855275 Type: application/octet-stream Like derick said please try latest CVS and report back. You can grab it from http://snaps.php.net/. I'll try it myself too. -Chris Previous Comments: [2001-11-19 12:59:50] [EMAIL PROTECTED] My apache version is: Apache/1.3.14 I use internet explorer 5.5 and netscape 4.75 but the problem persist I erased the line INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 but doesn´t work. If you see my script I print the upload variables, if I upload a file lower 2 Mb, the variables are printed, but if I transfer a higher file the variables aren´t printed and not copy the file in server. Thanks [2001-11-19 12:39:47] [EMAIL PROTECTED] Should be fixed in CVS. Can you try a snapshot from snaps.php.net? Please reopen if the problem persists. Derick [2001-11-19 12:39:27] [EMAIL PROTECTED] Maybe I am pointing out the obvious here, but this line would prevent you from doing so. INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 Cause I believe it OVERRIDES php.ini value. So if for some reason I am not stating the obvious remove this line and try again. -Chris [2001-11-19 12:34:19] [EMAIL PROTECTED] Which version of Apache runs you? I note same problem with IE 5.x. Try you script with Netscape. I think its a problem with your Browser. [2001-11-19 11:55:38] [EMAIL PROTECTED] I have a little script for uploading files, all work fine with files lower than 1 mb but if I try to upload a higher file I get the next browser error The page cannot be displayed. My script is: ? //check for file upload if ($set==go) { if (is_uploaded_file($UploadedFile)) { print(Local File: $UploadedFile BR\n); print(Name: $UploadedFile_name BR\n); print(Size: $UploadedFile_size BR\n); print(Type: $UploadedFile_type BR\n); print(HR\n); } } ? FORM ENCTYPE=multipart/form-data ACTION=test.php METHOD=POST INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 INPUT NAME=UploadedFile TYPE=file INPUT TYPE=hidden name=set value=go INPUT TYPE=submit VALUE=Upload /FORM /BODY /HTML My php.ini has a very higher configuration limits. The parameters are: max_execution_time = 3000 memory_limit = 16M post_max_size = 80M ; File Uploads ; file_uploads= On upload_tmp_dir = /tmp upload_max_filesize = 80M I read that the solution is upgrade php, I´m hoping that there are other solutions. Thanks Mauricio Edit this bug report at http://bugs.php.net/?id=14118edit=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] ext/magick
On Mon, 19 Nov 2001, Andrei Zmievski wrote: I would suggest naming the functions with imagick_* prefix. You never know what other 'magick' might come along. Also, use underscores to separate words in the function names, i.e. imagick_sample_image() instead of magick_sampleimage(). ok, done that :) it's now called imagick. chregu -- nam...christian stockeradr...bremgartnerstr. 66, ch-8003 zurich pho...+41 1 451 6021 www...http://phant.ch/chregu mob...+41 76 561 8860 [EMAIL PROTECTED] wor...+41 1 240 5670 gpg...0x5CE1DECB -- 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 #14121: Gif support?
From: [EMAIL PROTECTED] Operating system: Win32 Linux RedHat PHP version: 4.0.6 PHP Bug Type: GD related Bug description: Gif support? First sorry about my poor english. I don't understand what's happend with .gif format. When i tried to use that format, y get this error message: Warning: ImageGif: No GIF support in this PHP I know what's meaning this message, but my question is ... What is the reason to not support .Gif files and recognize .Png and other extensions. Thank you very much. I.Salís -- Edit bug report at: http://bugs.php.net/?id=14121edit=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 #14118 Updated: Upload file more than 1 Mb doesn´t work
ID: 14118 Updated by: cnewbill Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: Doesn't outright die anymore with today's (11/19) snapshot, but it still doesn't work. Just doesn't POST anything now. My max size 2GB, should be more than enough to cover the 9MB+ file(s) I am using to test. -Chris Previous Comments: [2001-11-19 13:21:19] [EMAIL PROTECTED] With an older 4.2.0-dev I can get up to about 6MB. Local File: /tmp/php4Za1Aa Name: ecdc_v502b_up.exe Size: 5855275 Type: application/octet-stream Like derick said please try latest CVS and report back. You can grab it from http://snaps.php.net/. I'll try it myself too. -Chris [2001-11-19 12:59:50] [EMAIL PROTECTED] My apache version is: Apache/1.3.14 I use internet explorer 5.5 and netscape 4.75 but the problem persist I erased the line INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 but doesn´t work. If you see my script I print the upload variables, if I upload a file lower 2 Mb, the variables are printed, but if I transfer a higher file the variables aren´t printed and not copy the file in server. Thanks [2001-11-19 12:39:47] [EMAIL PROTECTED] Should be fixed in CVS. Can you try a snapshot from snaps.php.net? Please reopen if the problem persists. Derick [2001-11-19 12:39:27] [EMAIL PROTECTED] Maybe I am pointing out the obvious here, but this line would prevent you from doing so. INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 Cause I believe it OVERRIDES php.ini value. So if for some reason I am not stating the obvious remove this line and try again. -Chris [2001-11-19 12:34:19] [EMAIL PROTECTED] Which version of Apache runs you? I note same problem with IE 5.x. Try you script with Netscape. I think its a problem with your Browser. 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=14118 Edit this bug report at http://bugs.php.net/?id=14118edit=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 #14121 Updated: Gif support?
ID: 14121 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: GD related Operating System: Win32 Linux RedHat PHP Version: 4.0.6 New Comment: Not a bug Bogus The GD library does not suport GIF due to licence issues with UniSys. THey patented the LZW algorithm used in GIF files. So, nothing that can be done on the pHP side. (And you might find a hacked version of the GD library at http://www.rhyme.com.au/gd/ Previous Comments: [2001-11-19 13:33:16] [EMAIL PROTECTED] First sorry about my poor english. I don't understand what's happend with .gif format. When i tried to use that format, y get this error message: Warning: ImageGif: No GIF support in this PHP I know what's meaning this message, but my question is ... What is the reason to not support .Gif files and recognize .Png and other extensions. Thank you very much. I.Salís Edit this bug report at http://bugs.php.net/?id=14121edit=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 #14076 Updated: fopen() and touch() fail to create file under safe mode
ID: 14076 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Directory/Filesystem functions Operating System: Linux PHP Version: 4.0.6 New Comment: Well, the fact that it can create a *new directory* in the same directory, already means that the apache process has sufficient permissions to also create a file in it. However, these are the permissions: webedit@penguin:/var/www/tmp/submit$ ls -lad ./ drwxrwx--- 18 webedit www 4096 Nov 15 19:13 ./ Apache runs as user `www', and the scripts are owned by user `webedit'. Note that the directory is owned by the same user as the script, and writeable to Apache, so the requirements of safe mode are met. Thank you for your response. -- Arcady Genkin Previous Comments: [2001-11-19 12:37:01] [EMAIL PROTECTED] Post please the mod of your directory and tell me the user and group of your apache. Maybe the apache dont have rights to create a new file in your directory but he owns the newfile and can remove/edit this file. [2001-11-15 18:53:16] [EMAIL PROTECTED] Under safe mode, fopen(filename, w) fails to create a file if it doesn't exist, complaining about open_basedir restriction. However, the filename refers to the file in the directory configured in the open_basedir. Besides, if the same file is created manually, fopen() can open it for writing without any problems. The directory is writeable to the web server. $dir = '/var/www/tmp/submit'; // Fails if the file doesn't exist. // Succeeds if the file does exist fopen( $dir/file.txt, w ); // Fails if the file doesn't exist. mkdir( $dir/foo, 0700 ); // SUCCEEDS!!! Notice the same path. Edit this bug report at http://bugs.php.net/?id=14076edit=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 #14118 Updated: Upload file more than 1 Mb doesn´t work
ID: 14118 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: My apache version is: Apache/1.3.14 I use internet explorer 5.5 and netscape 4.75 but the problem persist I erased the line INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 but doesn´t work. If you see my script I print the upload variables, if I upload a file lower 2 Mb, the variables are printed, but if I transfer a higher file the variables aren´t printed and not copy the file in server. Thanks Previous Comments: [2001-11-19 13:36:57] [EMAIL PROTECTED] Doesn't outright die anymore with today's (11/19) snapshot, but it still doesn't work. Just doesn't POST anything now. My max size 2GB, should be more than enough to cover the 9MB+ file(s) I am using to test. -Chris [2001-11-19 13:21:19] [EMAIL PROTECTED] With an older 4.2.0-dev I can get up to about 6MB. Local File: /tmp/php4Za1Aa Name: ecdc_v502b_up.exe Size: 5855275 Type: application/octet-stream Like derick said please try latest CVS and report back. You can grab it from http://snaps.php.net/. I'll try it myself too. -Chris [2001-11-19 12:59:50] [EMAIL PROTECTED] My apache version is: Apache/1.3.14 I use internet explorer 5.5 and netscape 4.75 but the problem persist I erased the line INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 but doesn´t work. If you see my script I print the upload variables, if I upload a file lower 2 Mb, the variables are printed, but if I transfer a higher file the variables aren´t printed and not copy the file in server. Thanks [2001-11-19 12:39:47] [EMAIL PROTECTED] Should be fixed in CVS. Can you try a snapshot from snaps.php.net? Please reopen if the problem persists. Derick [2001-11-19 12:39:27] [EMAIL PROTECTED] Maybe I am pointing out the obvious here, but this line would prevent you from doing so. INPUT TYPE=hidden name=MAX_FILE_SIZE value=1024000 Cause I believe it OVERRIDES php.ini value. So if for some reason I am not stating the obvious remove this line and try again. -Chris 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=14118 Edit this bug report at http://bugs.php.net/?id=14118edit=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 module calling php code
Hi, can anyone point me to some examples/documentation for any of the following: C code calling methods of an object defined in a user's php code. (I know you can call user's php functions, but can this be done?) OR How would I define a PHP Object in C that could be used in the php script as if it was defined in the php script. thanks, colin -- Colin McDonald - [EMAIL PROTECTED] home: http://nexus.carleton.ca/~colin/ public key: http://nexus.carleton.ca/~colin/pubkey.asc fingerprint: http://nexus.carleton.ca/~colin/fingerprint.asc -- 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 #14122: wrong $PHP_SELF value when executing script with params
From: [EMAIL PROTECTED] Operating system: Windows 98 Apache 1.3.22 PHP version: 4.0.6 PHP Bug Type: Variables related Bug description: wrong $PHP_SELF value when executing script with params * script index.php located alone in 'directory/site/' When calling it like 'http://server/directory/site/index/index' variable $SCRIPT_NAME = $PHP_SELF = $HTTP_SERVER_VARS[SCRIPT_NAME] = $HTTP_SERVER_VARS[PHP_SELF] = '/directory/site/index/index.php' instead of '/directory/site/index.php' * standart version 4.06 php4apache.dll php4ts.dll Build Date Jun 22 2001 running in safe mode. -- Edit bug report at: http://bugs.php.net/?id=14122edit=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 #14123: segfault (possibly dom/xml/xslt related)
From: [EMAIL PROTECTED] Operating system: linux redhat 7.0 PHP version: 4.1.0RC1 PHP Bug Type: Unknown/Other Function Bug description: segfault (possibly dom/xml/xslt related) configure options: ./configure \ --cache-file=/dev/null \ --with-config-file-path=/usr/local/apache/conf \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-trans-sid \ --enable-ftp \ --enable-track-vars \ --with-mysql=/usr/local/mysql \ --enable-libgcc \ --enable-debug \ --verbose \ --with-gd=shared \ --with-dom \ --with-ttf \ --with-xml \ --with-zlib \ --with-mhash \ --prefix=/usr/local/php \ --with-regex=system \ --enable-memory-limit \ --enable-sysvsem \ --enable-sysvshm \ --with-bz2 \ --with-gettext \ --with-jpeg-dir=/usr \ --with-xpm-dir=/usr/X11R6 \ --with-ldap \ --with-mm=/usr/local/mm \ --enable-exif \ --with-pcre-regex=/usr/local/lib \ --with-expat-dir=/usr \ --without-pgsql \ --enable-shmop \ --with-snmp \ --enable-sockets \ --with-pspell \ --with-pear \ --with-iconv \ --enable-mbstring \ --enable-mbstr-enc-trans \ --enable-xslt \ --with-xslt-sablot error_log output: php_domxml.c(2680) : Freeing 0x083B9F14 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(450) : Freeing 0x083B9ED4 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(446) : Freeing 0x083B9DF4 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(480) : Freeing 0x083B11A4 (12 bytes), script=/home/gub/public_html/SOLR2/index.php zend_hash.c(176) : Freeing 0x083B783C (32 bytes), script=/home/gub/public_html/SOLR2/index.php Last leak repeated 1 time zend_hash.c(404) : Freeing 0x083AD3F4 (35 bytes), script=/home/gub/public_html/SOLR2/index.php Last leak repeated 3 times php_domxml.c(551) : Freeing 0x083ABC2C (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(547) : Freeing 0x083ABB54 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(582) : Freeing 0x083AA20C (12 bytes), script=/home/gub/public_html/SOLR2/index.php zend_API.c(593) : Freeing 0x083B120C (44 bytes), script=/home/gub/public_html/SOLR2/index.php zend_API.c(581) : Actual location (location was relayed) Last leak repeated 1 time the above ALWAYS occurs, however, the segfault does NOT ALWAYS occur, i have to repeatedly reload the page. backtrace: Program received signal SIGSEGV, Segmentation fault. 0x4032c0c7 in _zval_dtor (zvalue=0x82c77b4, __zend_filename=0x40412abc zend_execute_API.c, __zend_lineno=268) at zend_variables.c:43 43 CHECK_ZVAL_STRING_REL(zvalue); (gdb) bt #0 0x4032c0c7 in _zval_dtor (zvalue=0x82c77b4, __zend_filename=0x40412abc zend_execute_API.c, __zend_lineno=268) at zend_variables.c:43 #1 0x40322e35 in _zval_ptr_dtor (zval_ptr=0x83880c0, __zend_filename=0x40412431 zend_execute.h, __zend_lineno=114) at zend_execute_API.c:268 #2 0x40320c96 in zend_ptr_stack_clear_multiple () at zend_execute.h:114 #3 0x4031dbd7 in execute (op_array=0x8177fdc) at ./zend_execute.c:1665 #4 0x4031d8d7 in execute (op_array=0x836db94) at ./zend_execute.c:1630 #5 0x4031f8d2 in execute (op_array=0x827cadc) at ./zend_execute.c:2133 #6 0x4032dfe8 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:814 #7 0x403401a2 in php_execute_script (primary_file=0xb5f0) at main.c:1310 #8 0x4033af5e in apache_php_module_main (r=0x81526d4, display_source_mode=0) at sapi_apache.c:90 #9 0x4033bdd4 in send_php (r=0x81526d4, display_source_mode=0, filename=0x81532d4 /home/gub/public_html/SOLR2/index.php) at mod_php4.c:575 #10 0x4033be4e in send_parsed_php (r=0x81526d4) at mod_php4.c:590 #11 0x805443f in ap_invoke_handler () #12 0x80681d3 in process_request_internal () #13 0x8068234 in ap_process_request () #14 0x805f6d5 in child_main () #15 0x805f880 in make_child () #16 0x805f9f4 in startup_children () #17 0x8060043 in standalone_main () #18 0x806085f in main () #19 0x40149b5c in __libc_start_main (main=0x80604c8 main, argc=2, ubp_av=0xba54, init=0x804ea70 _init, fini=0x80954ac _fini, rtld_fini=0x4000d634 _dl_fini, stack_end=0xba4c) at ../sysdeps/generic/libc-start.c:129 the output to the error_log appears to come AFTER the script has run. (ie, i've put an error_log() call at the very end of the script, and the above output comes after MY output.) -- Edit bug report at: http://bugs.php.net/?id=14123edit=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] php module calling php code
On November 19, 2001 12:23 pm, colin mcdonald wrote: Hi, can anyone point me to some examples/documentation for any of the following: C code calling methods of an object defined in a user's php code. (I know you can call user's php functions, but can this be done?) IIAGR, you should be able to find an example in call_user_func() OR How would I define a PHP Object in C that could be used in the php script as if it was defined in the php script. IIAGR, check out the dir functions -- Zak Greant PHP Quality Assurance Team http://qa.php.net/ We must be the change we wish to see. - M. K. Ghandi -- 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] ext/helmpe: calling a php function (not user defined function)
Hi All, I'm trying to write my first php extension. I studied the source and the api docs, also read the chapter about hacking the core in the phpwizards book. But I can not find any resources on what I want to do: calling a php function in a module. I know about calling a user defined function, but that's not what I wanna do. I want to call require_once() Anywhere you can point me to? Best, Andi -- 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] php module calling php code
you where close: call_user_method() colin Zak Greant wrote: IIAGR, you should be able to find an example in call_user_func() -- 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 #11221 Updated: mysql_pconnect causes Access violations
ID: 11221 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: MySQL related Operating System: Windows 2000 Server PHP Version: 4.0.5 New Comment: Can you try a recent version of PHP and check if this problem persists? Previous Comments: [2001-05-31 15:21:22] [EMAIL PROTECTED] Using mysql_pconnect() for persistent connections often causes PHP Access violations. Switching to mysql_connect() solves the problem. Mysql version 3.23.36-debug. Seen on two different systems so far, some symptoms and same resolution. Edit this bug report at http://bugs.php.net/?id=11221edit=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 #13641 Updated: Erroneous code makes PHP.EXE crash
ID: 13641 Updated by: sebastian Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Reproducible crash Operating System: Win32 (W2K) PHP Version: 4.0.6 New Comment: ?php $str = this is text; $var = strtok($str); echo ? does not crash with PHP_4_0_7 branch on Win32. Previous Comments: [2001-11-02 20:28:41] [EMAIL PROTECTED] not critical [2001-10-15 10:51:47] [EMAIL PROTECTED] Let's not assign this to me, as I've no Windows box to test. Derick [2001-10-12 12:06:15] [EMAIL PROTECTED] FYI: A freshly compiled 4.0.7RC3 doesn't crash either (on Win2K). [2001-10-12 10:29:10] [EMAIL PROTECTED] PHP-4.0.8-dev crashes (the latest build from php4win, 2001-10-04). PHP-4.0.7RC1 works fine. I don't have access to a more recent version of PHP-4.0.7, as I can't build Windows versions myself (yet). Tested on Win2K. [2001-10-12 10:03:19] [EMAIL PROTECTED] PHP-4.0.8-dev crashes (the latest build from php4win, 2001-10-04). PHP-4.0.7RC1 works fine. I don't have access to a more recent version of PHP-4.0.7, as I can't build Windows versions myself (yet). Tested on Win2K. 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=13641 Edit this bug report at http://bugs.php.net/?id=13641edit=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: ext/helmpe: calling a php function (not user defined function)
I'm trying to write my first php extension. I studied the source and the api docs, also read the chapter about hacking the core in the phpwizards book. But I can not find any resources on what I want to do: calling a php function in a module. Look in the ext/ catalogue of the php source, there is a script (ext-skel) there that will generate a sceleton for you to work with ! Look at the code it generates and discover that it is not all that difficult :-) Best regards Arne -- 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 #14123 Updated: segfault (possibly dom/xml/xslt related)
ID: 14123 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Unknown/Other Function Operating System: linux redhat 7.0 PHP Version: 4.1.0RC1 New Comment: after additional research i have found it is a dom xml function bug, specifically, xpath_new_context(). i realize that this function is experimental, so i won't even make a fuss over it. :) just letting you know. Chris Previous Comments: [2001-11-19 14:51:33] [EMAIL PROTECTED] configure options: ./configure \ --cache-file=/dev/null \ --with-config-file-path=/usr/local/apache/conf \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-trans-sid \ --enable-ftp \ --enable-track-vars \ --with-mysql=/usr/local/mysql \ --enable-libgcc \ --enable-debug \ --verbose \ --with-gd=shared \ --with-dom \ --with-ttf \ --with-xml \ --with-zlib \ --with-mhash \ --prefix=/usr/local/php \ --with-regex=system \ --enable-memory-limit \ --enable-sysvsem \ --enable-sysvshm \ --with-bz2 \ --with-gettext \ --with-jpeg-dir=/usr \ --with-xpm-dir=/usr/X11R6 \ --with-ldap \ --with-mm=/usr/local/mm \ --enable-exif \ --with-pcre-regex=/usr/local/lib \ --with-expat-dir=/usr \ --without-pgsql \ --enable-shmop \ --with-snmp \ --enable-sockets \ --with-pspell \ --with-pear \ --with-iconv \ --enable-mbstring \ --enable-mbstr-enc-trans \ --enable-xslt \ --with-xslt-sablot error_log output: php_domxml.c(2680) : Freeing 0x083B9F14 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(450) : Freeing 0x083B9ED4 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(446) : Freeing 0x083B9DF4 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(480) : Freeing 0x083B11A4 (12 bytes), script=/home/gub/public_html/SOLR2/index.php zend_hash.c(176) : Freeing 0x083B783C (32 bytes), script=/home/gub/public_html/SOLR2/index.php Last leak repeated 1 time zend_hash.c(404) : Freeing 0x083AD3F4 (35 bytes), script=/home/gub/public_html/SOLR2/index.php Last leak repeated 3 times php_domxml.c(551) : Freeing 0x083ABC2C (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(547) : Freeing 0x083ABB54 (12 bytes), script=/home/gub/public_html/SOLR2/index.php php_domxml.c(582) : Freeing 0x083AA20C (12 bytes), script=/home/gub/public_html/SOLR2/index.php zend_API.c(593) : Freeing 0x083B120C (44 bytes), script=/home/gub/public_html/SOLR2/index.php zend_API.c(581) : Actual location (location was relayed) Last leak repeated 1 time the above ALWAYS occurs, however, the segfault does NOT ALWAYS occur, i have to repeatedly reload the page. backtrace: Program received signal SIGSEGV, Segmentation fault. 0x4032c0c7 in _zval_dtor (zvalue=0x82c77b4, __zend_filename=0x40412abc zend_execute_API.c, __zend_lineno=268) at zend_variables.c:43 43 CHECK_ZVAL_STRING_REL(zvalue); (gdb) bt #0 0x4032c0c7 in _zval_dtor (zvalue=0x82c77b4, __zend_filename=0x40412abc zend_execute_API.c, __zend_lineno=268) at zend_variables.c:43 #1 0x40322e35 in _zval_ptr_dtor (zval_ptr=0x83880c0, __zend_filename=0x40412431 zend_execute.h, __zend_lineno=114) at zend_execute_API.c:268 #2 0x40320c96 in zend_ptr_stack_clear_multiple () at zend_execute.h:114 #3 0x4031dbd7 in execute (op_array=0x8177fdc) at ./zend_execute.c:1665 #4 0x4031d8d7 in execute (op_array=0x836db94) at ./zend_execute.c:1630 #5 0x4031f8d2 in execute (op_array=0x827cadc) at ./zend_execute.c:2133 #6 0x4032dfe8 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:814 #7 0x403401a2 in php_execute_script (primary_file=0xb5f0) at main.c:1310 #8 0x4033af5e in apache_php_module_main (r=0x81526d4, display_source_mode=0) at sapi_apache.c:90 #9 0x4033bdd4 in send_php (r=0x81526d4, display_source_mode=0, filename=0x81532d4 /home/gub/public_html/SOLR2/index.php) at mod_php4.c:575 #10 0x4033be4e in send_parsed_php (r=0x81526d4) at mod_php4.c:590 #11 0x805443f in ap_invoke_handler () #12 0x80681d3 in process_request_internal () #13 0x8068234 in ap_process_request () #14 0x805f6d5 in child_main () #15 0x805f880 in make_child () #16 0x805f9f4 in startup_children () #17 0x8060043 in standalone_main () #18 0x806085f in main () #19 0x40149b5c in __libc_start_main (main=0x80604c8 main, argc=2, ubp_av=0xba54, init=0x804ea70 _init, fini=0x80954ac _fini, rtld_fini=0x4000d634 _dl_fini, stack_end=0xba4c) at ../sysdeps/generic/libc-start.c:129 the output to the error_log appears to come AFTER the script has run. (ie, i've put an error_log() call at the very end of the script, and the above output comes after MY output.) Edit this bug report at http://bugs.php.net/?id=14123edit=1 -- PHP Development Mailing List
[PHP-DEV] 4.1.0 Final RC
www.php.net/~zeev/php-4.1.0RC3.tar.gz What does 'Final RC' mean? As discussed with php-qa guys (on IRC, you didn't miss a thread), we decided that the current release process is problematic (surprise surprise :). The particular issue we diagnosed this time was that RC branches were changing too much, and because basically each and every change requires a new RC - the release process can linger for quite a while. There are more issues, but this is definitely an issue on its own. So, we decided that there are going to be two stages for RC's: (a) RC a-la what we had until now. It will usually be in the range of weeks. (b) Once we feel enough bugs have been fixed, a final RC is created. For this RC, only *critical show stoppers* are fixed. That is, even bug fixes are not MFH'd unless they're for critical bugs. If a critical show stopper is found, a fix should be merged to the RC branch, and a new Final RC should be released. So, for the developers amongst you - please do not MFH anything before discussing it on php-dev and convincing everyone it really fixes a critical bug. I expect that the QA guys will phrase what I typed up about the 'Final RC' approach into the release process description. I apologize in advance in case it doesn't make sense to you - it may be a stupid idea, but it may just be me being high on this Finnish Kossu :) Cheers, 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-DEV] ÉϹØϵͨƽ̨£¬½»ÊÂÒµÅóÓÑ£¬ÖÐÐĶ¯´ó½±
Title: ÉϹØϵͨ£¬½±ÉÌÎñͨ£¡ ÉϹØϵͨ£¬½±ÉÌÎñͨ ¹ØϵͨÈí¼þÊÇÈýÊ®¶øÁ¢Íøwww.up30.com¹ØϵÁªÃËÊý¾Ý¿âµÄ·ÃÎÊƽ̨£¬ÕâÊÇÒ»¸ö¾ßÓÐÐÅÓÃÌصãµÄÍøÂç½»Íùƽ̨£¬ËùÓÐÓû§ÒÔ¸öÈËÕæʵÉí·Ý¼ÓÈë¡£ÈýÊ®¶øÁ¢ÍøϵĹØϵÁªÃËÊÇһȺҵÄÚÈËʿΪÁË·½±ãÉÌÎñÁªÏµ£¬½»»»ÐÅÏ¢¶ø½¨Á¢µÄÒ»¸ö¹ØϵÁªÃË£¬¸÷¸öÐÐÒµ¡¢µØÇø¾ùÓпÊÍû²»¶ÏÍØÕ¹¸öÈ˹ØϵµÄ¾«Ó¢¼ÓÈë¡£ÒªÔÚ¹Øϵͨ½¨Á¢¸öÈ˸ü¹ã·ºµÄÈ˼ʹØϵ£¬ÄãËùÒª×öµÄ¾ÍÊÇÒÔÕæʵµÄÉí·ÝºÍÆäËûÓû§Ö÷¶¯È¥½»»»ÐÅÏ¢¡£ ¿ªÍعØϵ£¬ÈýÊ®¶øÁ¢ÊÇÎÒÃǵĿںţ¡ µÇ½ÈýÊ®¶øÁ¢ÍøÕ¾www.up30.com£¬×¢²á³ÉΪ¹Øϵͨƽ̨Óû§£¬ÖÚ¶à¾ßÓÐÕæʵÉí·ÝºÍÐÅÓü¶±ðµÄÒµ½ç¾«Ó¢µÈ×ÅÄã¡£ÉϹØϵͨ£¬¿ªÍعØϵ£¬ÈýÊ®¶øÁ¢¡£ »î¶¯Ï¸Ôò£º £¨»î¶¯Ê±¼ä£º2001Äê11ÔÂ1ÈÕµ½2001Äê11ÔÂ30ÈÕ£© ¡ô ÏÖÔڵǽÈýÊ®¶øÁ¢ÍøÕ¾×¢²á¸öÈËÕæʵ×ÊÁϳÉΪ¹ØϵͨÓû§£»£¨Ê¹ÓÃÃûƬ½»»»¹¦ÄܾͿÉÒԺܿ콨Á¢ÆðÄãµÄ¹ØϵȦ£©£» ¡ô ÔÚ11ÔÂ30ÈÕÇ°ÔÚÈýÊ®¶øÁ¢ÍøÕ¾Ê×Ò³ÉϽøÐÐÍƼö3λ¹ØϵͨÉÏÄãÈÏΪ×îÓмÛÖµµÄÅóÓÑ£»£¨´ó¼ÒҪעÒâµ½ÍøÕ¾Éϲ鿴һÏÂÍƼöÅÅÃû£© ¡ô µÃµ½ÍƼö×î¶àµÄ1λÓû§½«»ñµÃ×îÓмÛÖµ»ï°é½±£¬½±£º¼ÛÖµ4680ÔªµÄÉÌÎñͨ±¼Ñï2186£» ¡ô¸ù¾ÝÓû§µÄÆÀÓÎÒÃÇÔÚ»ñµÃÍƼöµÄÇ°10ÃûÓû§ÖÐÑ¡³ö×îÕæʵÓû§½±1ÃûºÍ×îÈÈÇéÓû§½±¸÷1Ãû£¬½±£º¼ÛÖµ1380ÔªµÄÉÌÎñͨÏȽÝMBA8823£» ¡ô Ç°30ÃûÓû§³ÉΪ¹ØϵͨµÄVIPÓû§£¬ÔÚÈýÊ®¶øÁ¢ÍøÕ¾ÉϽøÐиöÐÔÍƼö½éÉÜ£¬²¢ÏíÓÐÒÔºóµÄ¶àÖÖÌØÊâ·þÎñ¡£ ¡ô ÿλÓû§ÔÚʹÓùØϵͨµÄÇ°3´Î¿ÉÒÔÓлú»á½éÉÜÄãµÄ10λÀÏÓÑ¡£ÔÚÈκÎÒ»´Î¹ØϵͨµÄ»î¶¯ÖÐÖ»ÒªÄãÖн±£¬ËûÃǾͻáÁ¬´øÖн±¡£±¾´Î»î¶¯×îÓмÛÖµÓû§µÄ10λºÃÓÑ¿ÉÔÚJAZZÄÐÊ¿ÏãË®¡¢¾µäÈ«¸ÖÔ˶¯±í¡¢SANFOÖпÕËÄ¿×ÃÞÂÃÐÐ˯´ü¡¢È«Ì׶¡¶¡ÀúÏÕ¼ÇÖÐÑ¡Ôñ1·ÝÀñÆ·¡£ ¡¡ 1. ½«¶Ô»ñ½±Õß½øÐÐ×ÊÁÏÓèÒԺ˶ԣ¬Èç¹û³öÏÖÐé¼ÙÇé¿ö£¬È¡Ïû²Î¼Ó»î¶¯×ʸñ¡£ 2. ÉîÛÚ°®¶ûÆÕÐÅÏ¢¿Æ¼¼ÓÐÏÞ¹«Ë¾ÓµÓжԻµÄ×îÖÕ½âÊÍȨ¡£ www.up30.com Copyright 2001 UP30com All rights reserved. -- PHP Development Mailing List 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 #14124: ImageFilledRectangle x1,y1,x2,y2 issue
From: [EMAIL PROTECTED] Operating system: FreeBSD 4.3 PHP version: 4.0.6 PHP Bug Type: GD related Bug description: ImageFilledRectangle x1,y1,x2,y2 issue I am actually using 4.0.7-dev (200108291635 snapshot) with GD 1.8.4. Both ImageRectangle and ImageFilledRectangle say that x1,y1 is the top left corner and x2,y2 is the bottom right corner. ImageRectangle will still draw if you swap these around, but ImageFilledRectangle will not. Granted, if I follow the manual it's not a problem, but I thought you'd want to know that one is more flexible than the other... -- Edit bug report at: http://bugs.php.net/?id=14124edit=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] Spam from UP30 postmaster@up30.com
Could one of the list-administrators please banish this email-address from the phplists? This is the third or fourth spam this week... Thanks in advance Alexander P.S. and yes, filters are a nice thing, I use them too, but we don't have to feed the entropy, do we? -- 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 #14125: Intermittent failed class wrapper to DB
From: [EMAIL PROTECTED] Operating system: Suse Linux 6.2/MySQL 3.22.25 PHP version: 4.0.6 PHP Bug Type: MySQL related Bug description: Intermittent failed class wrapper to DB Fatal: Cannot instantiate non-existent class DB_Sql in ... common.php line 23 and the program aborts. common.php: include(./db_mysql.inc); $db = new DB_Sql(); --line 23 $db-Database = DATABASE_NAME; etc. db_mysql.inc: class DB_Sql { /* public: connection parameters */ var $Host = ; var $Database = ; var $User = ; var $Password = ; etc. ./configure --with-mysql --with-apache=../apache_1.3.19 --enable-track-vars The error happens unpredictably, i.e. the application works fine for say 30 mins and then this message appears on one or more clients. Hitting Refresh allows recovery so it is a temporary failure. I am putting this here in case it relates to MySQL - could this be a result of connection problems? Or, if not, what would trigger this sort of message given that the code must be OK as it works most of the time - common.php is included in all pages. Thanks, Neil Munro. -- Edit bug report at: http://bugs.php.net/?id=14125edit=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 #13467 Updated: max_execution_time not as set in php.ini
ID: 13467 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Scripting Engine problem Operating System: Solaris PHP Version: 4.0.6 New Comment: This should be fixed in CVS. Please try the latest CVS snapshot from http://snaps.php.net/ Previous Comments: [2001-09-27 10:21:11] [EMAIL PROTECTED] I have a problem that seems to occur only on an occasional basis but with a number of different scripts and modules, but it basically characterised by one thing. The script will return an error such as Fatal error: Maximum execution time of 3 seconds exceeded in /includes/third_party/Snoopy.class.inc on line 702 .. but, the max_execution_time in the php ini file is set to 1 which is confirmed when looking at the output from phpinfo() There are no calls to set_time_limit anywhere in the script and yet, the max execution time still seems to be being ignored. The real frustration though, is that re-running this script can often result in the error not occuring at all. Configure Line : './configure' '--with-apache=../apache_1.3.20' '--enable-track-vars' '--without-mysql' '--with-oci8=/opt/oracle/product/8.1.7' '--enable-sigchild' Edit this bug report at http://bugs.php.net/?id=13467edit=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 #13982 Updated: set_time_limit (ref #13711) and ignore_user_abort affects later requests
ID: 13982 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Apache related Operating System: SunOS 5.8 Generic PHP Version: 4.0.6 New Comment: Fixed in CVS. Previous Comments: [2001-11-12 10:53:13] [EMAIL PROTECTED] Errors reproduced from todays snapshot (20020300) [2001-11-10 19:59:26] [EMAIL PROTECTED] Could you please try the latest CVS snapshot from http://snaps.php.net/ (instead of the RC) --Jani [2001-11-07 13:02:10] [EMAIL PROTECTED] Bug #13711 reproduced. In addition, ignore_user_abort() also affects the following requests to the same apache process. Apache/1.3.20 PHP 4.0.7RC2: './configure' '--prefix=/local/gnu' '--prefix=/local' '--with-apxs' '--enable-calendar' '--enable-discard-path' '--enable-exif' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-magic-quotes' '--enable-memory-limit' '--enable-safe-mode' '--enable-shared' '--enable-shmop' '--disable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-trans-sid' '--enable-ucd-snmp-hack' '--enable-versioning' '--enable-wddx' '--enable-xml' '--enable-gd-native-ttf' '--with-bz2=/local' '--with-db3=/local' '--with-exec-dir=/www' '--with-freetype-dir=/local' '--with-gd=/local' '--with-gdbm=/local/gnu' '--with-java=no' '--with-jpeg-dir=/local' '--with-ldap=/local' '--without-mm' '--with-mod_charset' '--with-mysql=/local/mysql' '--with-oci8=/local/oracle/8.1.6' '--with-openssl=/local' '--with-png-dir=/local' '--without-readline' '--without-recode' '--with-snmp=/local/snmp' '--with-zlib=/local' '--with-config-file-path=/etc/php/php.conf' Edit this bug report at http://bugs.php.net/?id=13982edit=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 #14126: PHP has encountered an Access Violation at 01192476
From: [EMAIL PROTECTED] Operating system: Win 2000 PHP version: 4.0.6 PHP Bug Type: Output Control Bug description: PHP has encountered an Access Violation at 01192476 My site works for about 30 min and then I start to get this PHP has encountered an Access Violation at 01192476 I do not know if this is the right place to go. I am trying to get this to run for my Church and I do not know what I am doing. The two paget that use PHP are a page with a counter that dose not use WinMySq and PHP that dose. I have ICQ 34722133 email [EMAIL PROTECTED] -- Edit bug report at: http://bugs.php.net/?id=14126edit=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 #14048 Updated: Configure issues
ID: 14048 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: Unknown/Other Function Operating System: BSD/OS 4.x PHP Version: 4.0.6 New Comment: You might be having an issue with old shared extension being loaded. Check it first. ie. try disabling the loading of such extensions in php.ini Previous Comments: [2001-11-18 22:28:12] [EMAIL PROTECTED] Ok: BSDi 4.2 i386 with GNUmake 3.79.1, autoconf 2.13, automake 1.5, libtool 1.4, configured as: #!/bin/sh ./configure \ --prefix=/php \ --with-perl=/perl/bin/perl \ --with-apxs=/apache/bin/apxs \ --with-config-file-path=/weblib/local/lib \ --with-openssl=/weblib/local \ --disable-short-tags \ --with-zlib \ --with-zlib-dir=/weblib/local \ --enable-bcmath \ --enable-calendar \ --with-curl=shared,/weblib/local \ --with-dom=shared,/weblib/local \ --enable-ftp \ --with-gd=/weblib/local \ --with-jpeg-dir=/weblib/local \ --with-png-dir=/weblib/local \ --with-freetype-dir=/weblib/local \ --with-iconv=shared,/weblib/local \ --enable-mailparse \ --enable-mbstring \ --with-mcal=shared,/weblib/local \ --with-mcrypt=shared,/weblib/local \ --with-mhash=shared,/weblib/local \ --with-mysql=/weblib/local \ --with-pdflib=/weblib/local \ --with-jpeg-dir=/weblib/local \ --with-png-dir=/weblib/local \ --with-tiff-dir=/weblib/local \ --with-pgsql=shared,/pgsql \ --enable-sockets \ --with-expat-dir=/weblib/local \ --enable-xslt \ --with-xslt-sablot=shared,/weblib/local \ --with-expat-dir=/weblib/local \ --with-iconv-dir=/weblib/local checking for res_search... no checking for res_search in -lsocket... no checking for res_search in -lresolv... no $ grep -i 'res_search' ./main/php_config.h /* Define if you have the `res_search' function. */ /* #undef HAVE_RES_SEARCH */ This means, that getmxrr() isn't available. checking whether to enable xslt support... yes checking whether to enable the XSLT Sablotron backend... yes, shared checking libexpat dir for Sablotron XSL support... yes checking for iconv_open in -lc... no checking for SablotSetEncoding in -lsablot... yes So - that works now. make now works (always does in snapshots - not in releases). But then, apache won't start: $ gdb -core ./httpd.core -exec apache/bin/httpd GNU gdb 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-unknown-bsdi4.2. Core was generated by `httpd'. Program terminated with signal 11, Segmentation fault. Reading symbols from /shlib/libdl.so...done. Reading symbols from /shlib/libgcc.so.1...done. Reading symbols from /shlib/libc.so.2...done. Reading symbols from /shlib/ld-bsdi.so...done. Reading symbols from /apache/libexec/libphp4.so...done. Reading symbols from /weblib/local/lib/libz.so...done. Reading symbols from /weblib/local/lib/libsablot.so.0...done. Reading symbols from /weblib/local/lib/libiconv.so.2...done. Reading symbols from /weblib/local/lib/libexpat.so.0...done. Reading symbols from /weblib/local/lib/libpdf.so.1...done. Reading symbols from /weblib/local/lib/mysql/libmysqlclient.so.10...done. Reading symbols from /weblib/local/lib/libgd.so...done. Reading symbols from /weblib/local/lib/libfreetype.so.6...done. Reading symbols from /weblib/local/lib/libpng.so.2...done. Reading symbols from /weblib/local/lib/libjpeg.so.62...done. Reading symbols from /weblib/local/lib/libssl.so.0.9.6...done. Reading symbols from /weblib/local/lib/libcrypto.so.0.9.6...done. Reading symbols from /shlib/libm.so.0.0...done. Reading symbols from /apache/libexec/mod_gzip.so...done. #0 0x481f2a67 in zend_register_functions (functions=0x48301e20, function_table=0x0, type=1) at zend_API.c:1046 1046if (zend_hash_add(target_function_table, ptr-fname, strlen(ptr-fname)+1, function, sizeof(zend_function), NULL) == FAILURE) { (gdb) bt #0 0x481f2a67 in zend_register_functions (functions=0x48301e20, function_table=0x0, type=1) at zend_API.c:1046 #1 0x481f2bd7 in zend_register_module (module=0x48301ea4) at zend_API.c:1099 #2 0x481f29c2 in zend_startup_module (module=0x48301ea4) at zend_API.c:1010 #3 0x481fcf14 in php_startup_extensions (ptr=0x482f8230, count=17) at main.c:780 #4 0x481fe333 in php_startup_internal_extensions () at internal_functions.c:78 #5 0x481fd3a5 in php_module_startup
[PHP-DEV] Bug #14101 Updated: imap_sort returns irregular sort sequence
ID: 14101 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: IMAP related Operating System: Linux 2.4.10 (rH7.1) PHP Version: 4.0.5 New Comment: First of all update your c-client to imap-2001a: ftp://ftp.cac.washington.edu/mail/imap.tar.Z also get the latest RC of PHP from: http://download.php.net/~zeev/php-4.1.0RC3.tar.gz --Jani Previous Comments: [2001-11-18 22:30:29] [EMAIL PROTECTED] Hello folks... Imap sort works only with small mailbox... --- snip --- $newstrm = imap_open ($ms.$selectedmb, $usr, $usrpwd) or die (cant connect: .imap_last_error()); switch ($sortby) { case date: $sorted_headers = imap_sort($newstrm,SORTDATE, $rev_flag,''); break; case subject: $sorted_headers = imap_sort($newstrm,SORTSUBJECT, $rev_flag,''); break; case tag: if ($tag == From) { $sorted_headers = imap_sort($newstrm,SORTFROM, $rev_flag,''); } else { $sorted_headers = imap_sort($newstrm,SORTTO, $rev_flag,''); } break; case size: $sorted_headers = imap_sort($newstrm,SORTSIZE, $rev_flag,''); break; } while (list(,$qq) = each($sorted_headers)) { $header = imap_headerinfo($newstrm, $qq); etc --- snip --- the sort sequence returned by imap_sort is incorrect for any mailbox where there is more than 10 emails in the mailbox, and especially if there is a mix of R and U type of unread. The function appears to sort partly by new, and then old, and then both... == php compiled with './configure' '--with-mysql=/usr/local/mysql' '--with-xml' '--with-apache=../apache_1.3.19/' '--with-imap=/usr/local/imap' '--enable-track-vars' imap specs === compiled from : imap-2001.BETA.SNAP-0106191041.tar = hardware intel Pentium 4 1.3 Ghz 640 meG ram 400MHZ BUS MOTHERBOARD Edit this bug report at http://bugs.php.net/?id=14101edit=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] 4.1.0 Final RC
www.php.net/~zeev/php-4.1.0RC3.tar.gz Lets get this bitch out the window :) Release on thurs if nothing else big comes up? - James -- 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: ext/helmpe: calling a php function (not user defined function)
Hi Arne, Look in the ext/ catalogue of the php source, there is a script (ext-skel) there that will generate a sceleton for you to work with ! Cool, that worked. Thanks! Look at the code it generates and discover that it is not all that difficult :-) Yeppers. But the problem I have is calling a Zend internal function from withing the module. There are some macros like STD_PHP_INI_ENTRY etc, but I found nothing about calling an internal function/language construct (in my case require_once()). Anyway, thanks a lot! Best Andi Im trying to write my first php extension. I studied the source and the api docs, also read the chapter about hacking the core in the phpwizards book. But I can not find any resources on what I want to do: calling a php function in a module. Look in the ext/ catalogue of the php source, there is a script (ext-skel) there that will generate a sceleton for you to work with ! Look at the code it generates and discover that it is not all that difficult :-) Best regards Arne -- 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 #14105 Updated: session_write_close() eats output
ID: 14105 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Session related Operating System: linux debian woody Old PHP Version: 4.0.99 ( think it's 4.1.0 beta ) PHP Version: 4.0.99 ( think it\'s 4.1.0 beta ) New Comment: Can not reproduce and your online test script seems to be outputting broken html too. Previous Comments: [2001-11-19 03:40:16] [EMAIL PROTECTED] ?php session_start(); echo brsee thisbr\n; session_write_close(); echo brsee this toobr\n; ? http://cam031000.student.utwente.nl/test.php for by output http://cam031000.student.utwente.nl/phpinfo.php for phpinfo Edit this bug report at http://bugs.php.net/?id=14105edit=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]