[PHP-DEV] PHP 4.0 Bug #9740: wrong xml node content
From: [EMAIL PROTECTED] Operating system: Linux 2.2.16-3 (RH) PHP version: 4.0.4pl1 PHP Bug Type: DOM XML related Bug description: wrong xml node content Element nodes contain the wrong content When I loop through all the children of the node "root" of the following xml then the fourth child (second my)contains ($node-content) "2newlinenewline3newlinenewline" which should be nothing since its empty. When I examine the output of a domxml_dumpmem dump of the $xml variable it does contain the correct data. Libxml version is 2.3.2 xml: ?xml version="1.0"? root my1/my my/ my2/my my/ my3/my /root output of my script: idx=0 name=text content= idx=1 name=my content=1 idx=2 name=text content= idx=3 name=my content= 2 3 idx=4 name=text content= idx=5 name=my content=2 idx=6 name=text content= idx=7 name=my content= 3 idx=8 name=text content= idx=9 name=my content=3 idx=10 name=text content= end of output my script: ?php $txt = "?xml version=\"1.0\"?\n"; $txt .= "root\n"; $txt .= "my1/my\n"; $txt .= "my/\n"; $txt .= "my2/my\n"; $txt .= "my/\n"; $txt .= "my3/my\n"; $txt .= "/root\n"; $xml = xmldoc($txt); $root = $xml-children(); $children = $root[0]-children(); echo "pre\n"; for($i=0; $i count($children); $i++) { echo "idx=$i name=" . $children[$i]-name; echo " content=" . $children[$i]-content; echo "\n"; } echo "/pre\n"; ? -- Edit Bug report at: http://bugs.php.net/?id=9740edit=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 4.0 Bug #9728 Updated: I cannot post any string over any form or send through a GET method....
ID: 9728 User Update by: [EMAIL PROTECTED] Old-Status: Closed Status: Open Bug Type: Apache related Description: I cannot post any string over any form or send through a GET method OK thanks Jani but that doesnt work at all This is my configure line: PHP: ./configure --with-apache=../apache(version) --with-mysql=/usr/local/mysql --with-pdflib --with-gd --with-jpeg-dir=/usr/lib --with-bcmath --enable-track-vars make; make install APACHE: ./configure --prefix=/home/apache --activate-module=src/modules/php4/lib...a make; make install The script is: ? echo "hrbrTest = ".$test."brhr\n"; ? form action=self.php method=post Test:input type=text name=test input type=submit /form With PERL All is ok under cgi-bin folder: #!/usr/bin/perl -w print "Content-type: text/plain\n\n"; print "body bgcolor=white\n"; print "Test=$testbr"; print "form./form\n"; and that works This is under a DELL PowerEdge Server RedHAT 7.0 Apache 1.3.14, PHP the latest snapshot... At home i have no problems... and never had... with PHP :-( I have at home a Duron 750 with Apache 1.3.14 too and PHP 4.0.2 ... Any Ideas ? thanks ! :) regards , José PLANS Whos having a GREAT Headache.. Previous Comments: --- [2001-03-13 22:46:53] [EMAIL PROTECTED] Did you compile PHP yourself? Or did you install it from RPM? If latter, there is (somewhere) an updated PHP rpm in the RedHat FTP sites. (ftp://updates.redhat.com/ perhaps?) And if you did compile it from sources yourself, get the latest CVS snapshot from http://snaps.php.net/ as this should be fixed. If none of this helps, reopen this bug report and include a shortest possible example script which can be used to reproduce this problem. --Jani --- [2001-03-13 18:57:27] [EMAIL PROTECTED] Hi there, I'm in trouble with the new RedHat release... too many bugs, and I havent a clue of . i know this is too "space"... but Why I cant post any data through the POST method or GET one ??? My config is RedHAT 7.0, apache 1.3.14 , PHP 4.0.4pl1, ... With PERL i have no problems posting data. so its PHP who doesnt know how to do it I have to say I have installed PHP succesfully about a hundred of times under RedHAT 6.X . so is it 7.0 the problem ??? many thanks!!! regards, José PLANS who begins with the famous RedHAT 7.0 bugs... ::-( --- Full Bug description available at: http://bugs.php.net/?id=9728 -- 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] X-Powered-by
Dear all, When I upload my php4 work to my ISP, the following is displayed at the beginning of each php page. "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html" Now, after reading numerous support pages, I know that this can be turned off if php is in 'quiet' mode. Having emailed this information to my ISP, their response was as follows. "Your site is on a server with a shared enviroment, changing it would mean changing it for everyone else. We are unable to make the change you require at this time." Great !!! Is there anyway way around this ? - I'm sure I can't be the only one using this particular ISP that doesn't want X-Powered-by etc... displaying on each php page ? Best regards, Mark (: -- 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] X-Powered-by
At 11:22 14/3/2001, Mark Taylor wrote: Dear all, When I upload my php4 work to my ISP, the following is displayed at the beginning of each php page. "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html" Now, after reading numerous support pages, I know that this can be turned off if php is in 'quiet' mode. No, that's wrong. X-Powered-By is a head that can be turned off, however, this isn't your problem; Your problem is that you're getting the HTTP headers as a part of the response body, for one reason or another. What kind of server is this? (operating system, Web server PHP as a CGI or a module, etc.) Having emailed this information to my ISP, their response was as follows. "Your site is on a server with a shared enviroment, changing it would mean changing it for everyone else. We are unable to make the change you require at this time." Well, first off, again, this wouldn't solve your problem anyway. But just FYI, they can actually set this (and pretty much any other) option off for you specifically if they want to. They probably don't know that though. 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]
Re: [PHP-DEV] Adding oneself as Author
There's no established criteria really. Once you feel you made a substantial contribution to the development of a certain module, add yourself. Fixing a buglet here or there usually doesn't cut it. Making an overhaul, adding a new set of functions/functionality, etc. - that usually cuts it... Zeev At 02:18 14/3/2001, Sean R. Bright wrote: At what point would one add themselves to the list of Authors in a given source file? This may sound like a dumb question and I am not going to start submitting patches specifically to add myself as author or anything, I was just curious as to if there was some criteria it was based on. Thanks, -- === Sean Bright [EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/ === -- 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] -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- 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] X-Powered-by
Mark Taylor wrote: When I upload my php4 work to my ISP, the following is displayed at the beginning of each php page. "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html" Tell your ISP, he should set "expose_php = Off" in php.ini. -Egon -- SIX Offene Systeme GmbH Stuttgart - Berlin Sielminger Strae 63 D-70771 Leinfelden-Echterdingen Fon +49 711 9909164 Fax +49 711 9909199 http://www.six.de Besuchen Sie uns auf der CeBIT 2001, Halle 6, Stand F62/4 -- 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] X-Powered-by
At 11:39 14/3/2001, Egon Schmid (@work) wrote: Mark Taylor wrote: When I upload my php4 work to my ISP, the following is displayed at the beginning of each php page. "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html" Tell your ISP, he should set "expose_php = Off" in php.ini. The problem is that the HTTP header is sent inside the response body. Even if expose_php is set to off, he'd still get 'Content-type: text/html' in the response body... 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] PHP 4.0 Bug #9741: MacOS / Skandinavian alphabets
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Mail related Bug description: MacOS / Skandinavian alphabets In order to print the skandinavian alphabets succesfully in the mail message with mac, Mime-Version: 1.0 should be announced in the first row of the message header: Doesn't work sent with php 4.0.4 Date: Wed, 14 Mar 2001 13:03:09 +0200 To: [EMAIL PROTECTED] Subject: Test subject ÂÂÂÂÂÂ MIME-Version: 1.0 From: äöåööäöåööäöå [EMAIL PROTECTED] Status: O Works sent with Eudora/Mac Mime-Version: 1.0 X-Sender: [EMAIL PROTECTED] Date: Wed, 14 Mar 2001 12:07:27 +0200 To: [EMAIL PROTECTED] From: Jussi Ranta [EMAIL PROTECTED] Subject: test äöåäöåöäöåäö Status: --- mail() -function does not have a feature to change the order of header information. Now Mime-Version 1.0 can be announced after subject-line. -- Edit Bug report at: http://bugs.php.net/?id=9741edit=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 4.0 Bug #9742: die crash
From: [EMAIL PROTECTED] Operating system: Windows 98 SE 4.10. PHP version: 4.0.4pl1 PHP Bug Type: Reproduceable crash Bug description: "die" crash if you declare more than one class in a file,and place 'die();' as the final excutable statement,PHP will crash e.g: ?php class T{ var $q; function W(){ echo 'Q'; } } ob_start(); show_source(__FILE__); $result=ob_get_contents(); ob_end_clean(); $a=false; if ($a=='1'): echo 'Hi'; endif; while(false){ echo 'No'; } $result=str_replace ("br", "\n", $result); echo 'pre'.strip_tags($result,'font').'/pre'; die(''); class V{ var $q; function W(){ echo 'Q'; } } ? will make PHP crash,but ?php /* *** == V == Designed by Alexander Fractal Soon ( Outrules ) Published under LGPL(ANY version). *** */ class T{ var $q; function W(){ echo 'Q'; } } ob_start(); show_source(__FILE__); $result=ob_get_contents(); ob_end_clean(); $a=false; if ($a=='1'): echo 'Hi'; endif; while(false){ echo 'No'; } $result=str_replace ("br", "\n", $result); echo 'pre'.strip_tags($result,'font').'/pre'; die(''); ;//if you add a executable statement here, it will be fine. class V{ var $q; function W(){ echo 'Q'; } } ? is fine. -- Edit Bug report at: http://bugs.php.net/?id=9742edit=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] X-Powered-by
(note that this thread is off-topic. This list is about developing PHP, not developing with PHP. Further emails on this topic should be send to php-general.) A possible cause is passing a string to header (or SetCookie) which contains a CRLF. header("Foo: bar\r\n"); Get rid of that CRLF and it should work. - Sascha Experience IRCG http://schumann.cx/ http://schumann.cx/ircg -- 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 4.0 Bug #9743: can exec() or system() return the pid ?
From: [EMAIL PROTECTED] Operating system: linux PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: can exec() or system() return the pid ? hi, its possible to implement, that exec saves the new pid of the executed external programm into another parameter? (like the output) -- Edit Bug report at: http://bugs.php.net/?id=9743edit=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 4.0 Bug #9741 Updated: MacOS / Skandinavian alphabets
ID: 9741 Updated by: wez Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Mail related Assigned To: wez Comments: This isn't a bug in PHP - yes you need to specify the correct MIME headers in order for your email client to understand the content. I suggest that you take a quick look at the mime RFCs. You should be adding headers to you email that looks like: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 You can use the headers parameter of the mail() function for this purpose. I'm not too sure if that's the correct charset, but should get the right idea! Hope that helps. If you are sending these headers and the problem persists, please re-open this report. --Wez. Previous Comments: --- [2001-03-14 11:13:32] [EMAIL PROTECTED] In order to print the skandinavian alphabets succesfully in the mail message with mac, Mime-Version: 1.0 should be announced in the first row of the message header: Doesn't work sent with php 4.0.4 Date: Wed, 14 Mar 2001 13:03:09 +0200 To: [EMAIL PROTECTED] Subject: Test subject ÂÂÂÂÂÂ MIME-Version: 1.0 From: äöåööäöåööäöå [EMAIL PROTECTED] Status: O Works sent with Eudora/Mac Mime-Version: 1.0 X-Sender: [EMAIL PROTECTED] Date: Wed, 14 Mar 2001 12:07:27 +0200 To: [EMAIL PROTECTED] From: Jussi Ranta [EMAIL PROTECTED] Subject: test äöåäöåöäöåäö Status: --- mail() -function does not have a feature to change the order of header information. Now Mime-Version 1.0 can be announced after subject-line. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9741edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9741 Updated: MacOS / Skandinavian alphabets
ID: 9741 Updated by: wez Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Mail related Assigned To: wez Comments: Sorry - I just re-read your report. It sounds like a bug in your mail client rather than PHP - PHP just passes the mail on to sendmail, and it is down to your mail client to parse and understand the message. The rfc822 doesnt say anything about the order in which the headers should appear. Can you try reading the message with other software? --Wez. Previous Comments: --- [2001-03-14 14:26:52] [EMAIL PROTECTED] This isn't a bug in PHP - yes you need to specify the correct MIME headers in order for your email client to understand the content. I suggest that you take a quick look at the mime RFCs. You should be adding headers to you email that looks like: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 You can use the headers parameter of the mail() function for this purpose. I'm not too sure if that's the correct charset, but should get the right idea! Hope that helps. If you are sending these headers and the problem persists, please re-open this report. --Wez. --- [2001-03-14 11:13:32] [EMAIL PROTECTED] In order to print the skandinavian alphabets succesfully in the mail message with mac, Mime-Version: 1.0 should be announced in the first row of the message header: Doesn't work sent with php 4.0.4 Date: Wed, 14 Mar 2001 13:03:09 +0200 To: [EMAIL PROTECTED] Subject: Test subject ÂÂÂÂÂÂ MIME-Version: 1.0 From: äöåööäöåööäöå [EMAIL PROTECTED] Status: O Works sent with Eudora/Mac Mime-Version: 1.0 X-Sender: [EMAIL PROTECTED] Date: Wed, 14 Mar 2001 12:07:27 +0200 To: [EMAIL PROTECTED] From: Jussi Ranta [EMAIL PROTECTED] Subject: test äöåäöåöäöåäö Status: --- mail() -function does not have a feature to change the order of header information. Now Mime-Version 1.0 can be announced after subject-line. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9741edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9727 Updated: Unable to use @ in URL passwords with fopen()
ID: 9727 User Update by: [EMAIL PROTECTED] Old-Status: Closed Status: Open Bug Type: Filesystem function related Description: Unable to use @ in URL passwords with fopen() Here's my exact code with only the username and password changed (oops - i sent a slightly altered version before, to change the server names/passwords). This version has the following behaviour: If I use a password containing only letters/numbers, I can open and read the file no problem. If I use the same password, and specify a file that does not exist, I get a message saying 'file not found' and one saying 'file or directory does not exist'. If I use a password containing the @ symbol, I get a message that says 'invalid file descriptor', no matter if the file exists or not. Code: $pword = 'password'; $server = "prefix"; $pword = urlencode($pword); echo $filename = 'ftp://username:' . $pword . "@$server.domain.com/path/file.txt"; $fd = fopen ($filename, "r"); echo $contents = fread ($fd, 100); fclose ($fd); Previous Comments: --- [2001-03-13 22:54:48] [EMAIL PROTECTED] There is one bug in your script: . . $server = "servername"; . . echo $filename = 'ftp://username:'.$pword."@$servername/$filename"; . . You haven't got $servername set but $server. Try changing that. Reopen if this wasn't the problem. --Jani --- [2001-03-13 18:21:51] [EMAIL PROTECTED] I'm running 4.0.4pl1 on redhat 6.1. I've tried (raw and regular) urlencoding my ftp password to use with fopen, but if there's a @ in it it says 'bad file descriptor'. I can open any file via ftp just fine, as long as there's no @ in the filename. The 'allow url fopen' (can't remember the exact name) is set to ON in my php.ini. Here's my script: html body ? $pword = 'stuff@stuff'; $server = "servername"; $filename = "filename"; $pword = urlencode($pword); echo $filename = 'ftp://username:' . $pword . "@$servername/$filename"; $fd = fopen ($filename, "r"); echo $contents = fread ($fd, 100); fclose ($fd); ? /body /html --- Full Bug description available at: http://bugs.php.net/?id=9727 -- 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 4.0 Bug #8202 Updated: exec(java -cp classpath classname inputArgument); has no effect
ID: 8202 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Function Specific Assigned To: Comments: Can you please tell which SAPI you're using, ISAPI or CGI? --Jani Previous Comments: --- [2001-03-14 04:34:32] [EMAIL PROTECTED] ID 8202 I don't get any error messages. A student of mine tried the code on his system, and claimed it worked. Using 4.0.3 as CGI installation Not urgent - our work-around - re-wrote the Java code in PHP, and that works. Lee --- [2001-02-24 12:40:58] [EMAIL PROTECTED] are you not getting any errors?? Can you try exec with other programs and see if it happens with them? Not getting a unable to fork eror are you? what SAPI are you using ISAPI or CGI? --- [2000-12-11 22:57:15] [EMAIL PROTECTED] The command prompt line java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm runs the java class HTML_HL7translator with input file Dis-2000-11-28-1.htm jdk1.3 is installed and works None of the commands in the following cause HTML_HL7translator to run: ?php $javaHL7 = exec("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm"); echo "did execn"; passthru("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-2.htm"); echo "did passthrun"; $javaHL7s = system("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-4.htm"); echo "did system()"; ? [PHP] extracts ; Language Options ; engine = On ; Enable the PHP scripting language engine under Apache short_open_tag = On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags= Off ; allow ASP-style % % tags precision = 14 ; number of significant digits displayed in floating point numbers y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering= Off ; Output buffering allows you to send header lines (including cookies) implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself allow_call_time_pass_reference = On; whether to enable the ability to force arguments to be safe_mode = Off safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables safe_mode_protected_env_vars = LD_LIBRARY_PATH ; This directive contains a comma- disable_functions = ; Colors for Syntax Highlighting mode. Anything that's acceptable in font color=??? would work. highlight.string= #DD highlight.comment = #FF8000 highlight.keyword = #007700 highlight.bg= #FF highlight.default = #BB highlight.html = #00 ; Misc expose_php = On ;;; ; Resource Limits ; ;;; max_execution_time = 30 ; Maximum execution time of each script, in seconds memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) ;; ; Error handling and logging ; ;; ; error_reporting is a bit-field. Or each number up to get desired error reporting level E_ALL - All errors and warnings error_reporting =E_ALL; display all errors, warnings and notices display_errors = Off ; Print out errors (as a part of the output) display_startup_errors = Off; Even when display_errors is on, errors that occur during log_errors = On track_errors= Off ; Store the last error/warning message in $php_errormsg (boolean) error_log = E:Health_InfoHealthWebDirectoryphp_error.txt ; log errors to specified file warn_plus_overloading = Off ; warn if the + operator is used with strings ; ; Data Handling ; ; ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3 variables_order = "EGPCS" ; This directive describes the order in which PHP registers register_argc_argv
[PHP-DEV] PHP 4.0 Bug #9728 Updated: I cannot post any string over any form or send through a GET method....
ID: 9728 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Apache related Assigned To: Comments: Works for me just fine. Does it print any error messages for you? Is the register_globals directive set "on" in php.ini? Try changing the $test to $HTTP_POST_VARS['test'] to test if it's the register_globals setting.. --Jani Previous Comments: --- [2001-03-14 10:15:58] [EMAIL PROTECTED] OK thanks Jani but that doesnt work at all This is my configure line: PHP: ./configure --with-apache=../apache(version) --with-mysql=/usr/local/mysql --with-pdflib --with-gd --with-jpeg-dir=/usr/lib --with-bcmath --enable-track-vars make; make install APACHE: ./configure --prefix=/home/apache --activate-module=src/modules/php4/lib...a make; make install The script is: ? echo "hrbrTest = ".$test."brhrn"; ? form action=self.php method=post Test:input type=text name=test input type=submit /form With PERL All is ok under cgi-bin folder: #!/usr/bin/perl -w print "Content-type: text/plainnn"; print "body bgcolor=whiten"; print "Test=$testbr"; print "form./formn"; and that works This is under a DELL PowerEdge Server RedHAT 7.0 Apache 1.3.14, PHP the latest snapshot... At home i have no problems... and never had... with PHP :-( I have at home a Duron 750 with Apache 1.3.14 too and PHP 4.0.2 ... Any Ideas ? thanks ! :) regards , José PLANS Whos having a GREAT Headache.. --- [2001-03-13 22:46:53] [EMAIL PROTECTED] Did you compile PHP yourself? Or did you install it from RPM? If latter, there is (somewhere) an updated PHP rpm in the RedHat FTP sites. (ftp://updates.redhat.com/ perhaps?) And if you did compile it from sources yourself, get the latest CVS snapshot from http://snaps.php.net/ as this should be fixed. If none of this helps, reopen this bug report and include a shortest possible example script which can be used to reproduce this problem. --Jani --- [2001-03-13 18:57:27] [EMAIL PROTECTED] Hi there, I'm in trouble with the new RedHat release... too many bugs, and I havent a clue of . i know this is too "space"... but Why I cant post any data through the POST method or GET one ??? My config is RedHAT 7.0, apache 1.3.14 , PHP 4.0.4pl1, ... With PERL i have no problems posting data. so its PHP who doesnt know how to do it I have to say I have installed PHP succesfully about a hundred of times under RedHAT 6.X . so is it 7.0 the problem ??? many thanks!!! regards, José PLANS who begins with the famous RedHAT 7.0 bugs... ::-( --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9728edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9680 Updated: Segmentation fault
ID: 9680 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Dynamic loading Assigned To: Comments: 1. What was the configure line EXACTLY like? 2. Do you have something else in Apache that uses mysql? If so, you have to add the path to mysql install base dir for --with-mysql 3. Your addtype set's the php extension to be .php4 so of course your .php files won't be parsed. --Jani Previous Comments: --- [2001-03-11 03:17:58] [EMAIL PROTECTED] PHP 4.04pl1 Apache 1.3.12 MySQL 3.23.32 Linux 2.2.14-5mdk I just downloaded PHP 4.04pl1 and compiled it as module: --withmysql --with-apxs --enable-versioning First i had some problems compiling with mysql (due to the -lz at the linking) but it worked for me, then it appears to compile all fine, but when i loaded the php4 module with Apache the following happens: The .PHP files are shown as source files (i just see the entire code) The HTML files aren't shown, and the error logs report this: [notice] child pid x exit signal Segmentation fault (11) Some idea?? pd. I do added the: LoadModule php4_module modules/libphp4.so AddModule mod_php4.c AddType application/x-httpd-php .php4 lines... --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9680edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9687 Updated: x-httpd-source fails with zero length
ID: 9687 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: PHP options/info functions Assigned To: Comments: Try changing the httpd.conf directives to: AddType application/x-httpd-php .php .inc AddType application/x-httpd-php-source .phps .incs --Jani p.s. Fancy coloring works for me just fine.. I guess you know that you have to copy (or link) the original file to that extension to get it colored? Previous Comments: --- [2001-03-11 17:22:19] [EMAIL PROTECTED] For a while, I have been experiencing an irksome problem since about 4.0.4, but I can't pinpoint when exactly it started. On RedHat 7.0, I have the following webserver running: Apache/1.3.19 (Unix) PHP/4.0.5-dev mod_ssl/2.8.1 OpenSSL/0.9.5a on a 500 Mhz P3 with 240 MB of RAM. The PHP DSO module is built from the CVS pull from about 12pm PDT today (3/11/2001). Anyway, whenever I try to access a pretty colored source code version of any of my files via .phps (where .phps is one of the extensions setup as an application/x-httpd-source type), I get a "zero data" message from my browser. The physical configruation line shows: AddType application/x-httpd-php-source .phps .inc I compiled PHP as a CGI version to see if it was an Apache issue, and the same thing happens. The Apache child processes aren't dying, either. And the logs show a content legth of 0 and a successful request, so i don't have any idea what's really going on. I'm willing to assist anyone in determining the cause of the problem, but I haven't seen it listed anywhere else. I have the following PHP configuration: './configure' '--with-apxs=/opt/apache/sbin/apxs' '--enable-track-vars' '--enable-inline-optimizations' '--enable-trans-sid' '--with-mysql' '--with-pgsql=/usr/local/pgsql' '--with-curl=/usr/local/curl' '--with-gd' '--with-t1lib-dir=/usr/local/t1lib' '--with-ttf' '--enable-pcre' '--with-bz2=/usr/local/bzip2' '--with-zlib' '--with-zlib-dir=/usr' '--enable-wddx' '--with-dom=/usr/local/libxml' Any help or pointers to provide more help is welcome. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9687edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9744: libgd linking problem
From: [EMAIL PROTECTED] Operating system: HP-UX 11.0 PHP version: 4.0.4pl1 PHP Bug Type: Compile Problem Bug description: libgd linking problem I tried to compile PHP with Apache and GD support. cd apache_1.3.19 CC="cc -Ae" CXX="aCC" ./configure --prefix=/opt/apache cd ../php-4.0.4pl1 CC="cc -Ae" CXX="aCC" ./configure --prefix=/opt/apache \ --with-apache=../apache_1.3.19 \ --enable-memory-limit=yes \ --enable-debug=no \ --with-config-file-path=/opt/apache \ --with-mysql=/opt/mysql \ --enable-gd-imgstrttf \ --with-gd=/opt/gnu \ --with-jpeg-dir=/opt/gnu make make install cd ../apache_1.3.19 CC="cc -Ae" CXX="aCC" ./configure \ --prefix=/opt/apache \ --activate-module=src/modules/php4/libphp4.a \ --enable-module=php4 make cc -Ae -c -I./os/unix -I./include -DHPUX11 -I/opt/apache/src/php-4.0.4pl1 -I/opt/apache/src/php-4.0.4pl1/main -I/opt/apache/src/php-4.0.4pl1/main -I/opt/apache/src/php-4.0.4pl1/Zend -I/opt/apache/src/php-4.0.4pl1/Zend -I/opt/apache/src/php-4.0.4pl1/TSRM -I/opt/apache/src/php-4.0.4pl1/TSRM -I/opt/apache/src/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci modules.c cc -Ae -c -I./os/unix -I./include -DHPUX11 -I/opt/apache/src/php-4.0.4pl1 -I/opt/apache/src/php-4.0.4pl1/main -I/opt/apache/src/php-4.0.4pl1/main -I/opt/apache/src/php-4.0.4pl1/Zend -I/opt/apache/src/php-4.0.4pl1/Zend -I/opt/apache/src/php-4.0.4pl1/TSRM -I/opt/apache/src/php-4.0.4pl1/TSRM -I/opt/apache/src/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci buildmark.c cc -Ae -DHPUX11 -I/opt/apache/src/php-4.0.4pl1 -I/opt/apache/src/php-4.0.4pl1/main -I/opt/apache/src/php-4.0.4pl1/main -I/opt/apache/src/php-4.0.4pl1/Zend -I/opt/apache/src/php-4.0.4pl1/Zend -I/opt/apache/src/php-4.0.4pl1/TSRM -I/opt/apache/src/php-4.0.4pl1/TSRM -I/opt/apache/src/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci -o httpd buildmark.o modules.o modules/php4/libphp4.a modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -L/opt/gnu/lib -L/opt/mysql/lib/mysql -L/opt/gnu/lib -L/opt/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lmysqlclient -lgd -ljpeg -lm -lcrypt -lnsl -L/opt/gnu/lib -ljpeg -lm -lpthread /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (buildmark.o) was detected. The linked output may not run on a PA 1.x system. /usr/ccs/bin/ld: Duplicate symbol "gdImageColorResolve" in files modules/php4/libphp4.a(gd.o) and /opt/gnu/lib/libgd.a(gd.o) /usr/ccs/bin/ld: Found 1 duplicate symbol(s) -- Edit Bug report at: http://bugs.php.net/?id=9744edit=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 4.0 Bug #9745: PHP Warning: Unable to load dynamic library './msql.dll'
From: [EMAIL PROTECTED] Operating system: Windows 98 PHP version: 4.0.4pl1 PHP Bug Type: MySQL related Bug description: PHP Warning: Unable to load dynamic library './msql.dll' I have just installed php on Windows 98 using PWS. Then followed configuration steps and installed MySQL. My.ini seems okay and comes up with traffic light task icon. When trying to parse my .php page (NB first go at using php, coming from a C, Java and ASP background) the following error message is displayed: X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Parse error: parse error, expecting `','' or `';'' in C:\Inetpub\wwwroot/php/neuquote/startquote.php on line 62 PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 Heres lines 60 to 62 (though I think its more likely that I have configured php and mysql wrongly as oposed to the page having errors in it): while ($row = mysql_fetch_row ($result)) { echo "option value=".$row[0]."".$row[1]."/option" } Heres my 'configured' php.ini file: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive=value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string ("foo"). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo=; sets foo to an empty string ; foo=none; sets foo to an empty string ; foo="none" ; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine=On ; Enable the PHP scripting language engine under Apache short_open_tag=On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags=Off ; allow ASP-style % % tags precision=14; number of significant digits displayed in floating point numbers y2k_compliance=Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering=Off; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler=; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to "ob_gzhandler", than output ; will be transparently compressed for browsers that support gzip or ; deflate encoding. Setting an output handler automatically turns on ; output buffering. implicit_flush=Off ; Implicit flush tells PHP to tell the output layer to flush itself ; automatically after every output block. This is equivalent to ; calling the PHP function flush() after each and every call to print() ; or echo() and each and every HTML block. ; Turning this option on has serious performance implications, and ; is generally recommended for debugging purposes only. allow_call_time_pass_reference=On ;
[PHP-DEV] PHP 4.0 Bug #9745 Updated: PHP Warning: Unable to load dynamic library './msql.dll'
ID: 9745 Updated by: joey Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: MySQL related Assigned To: Comments: The error says it all. You need to escape the double quotes inside a string. Please read the manual at www.php.net/manual/en Previous Comments: --- [2001-03-14 16:02:03] [EMAIL PROTECTED] I have just installed php on Windows 98 using PWS. Then followed configuration steps and installed MySQL. My.ini seems okay and comes up with traffic light task icon. When trying to parse my .php page (NB first go at using php, coming from a C, Java and ASP background) the following error message is displayed: X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Parse error: parse error, expecting `','' or `';'' in C:Inetpubwwwroot/php/neuquote/startquote.php on line 62 PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 Heres lines 60 to 62 (though I think its more likely that I have configured php and mysql wrongly as oposed to the page having errors in it): while ($row = mysql_fetch_row ($result)) { echo "option value=".$row[0]."".$row[1]."/option" } Heres my 'configured' php.ini file: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive=value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string ("foo"). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo=; sets foo to an empty string ; foo=none; sets foo to an empty string ; foo="none" ; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine=On ; Enable the PHP scripting language engine under Apache short_open_tag=On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags=Off ; allow ASP-style % % tags precision=14; number of significant digits displayed in floating point numbers y2k_compliance=Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering=Off; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler=; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to "ob_gzhandler", than output ; will be transparently compressed for browsers that support gzip or ; deflate encoding. Setting an output handler automatically turns on ; output buffering. implicit_flush=Off ; Implicit flush tells PHP to tell the output layer to flush itself ; automatically after every output block. This is
[PHP-DEV] PHP 4.0 Bug #9745 Updated: PHP Warning: Unable to load dynamic library './msql.dll'
ID: 9745 Updated by: joey Reported By: [EMAIL PROTECTED] Old-Status: Bogus Status: Open Bug Type: MySQL related Assigned To: Comments: Ooops. Too tired, did not see your .'s. My bad Previous Comments: --- [2001-03-14 16:06:26] [EMAIL PROTECTED] The error says it all. You need to escape the double quotes inside a string. Please read the manual at www.php.net/manual/en --- [2001-03-14 16:02:03] [EMAIL PROTECTED] I have just installed php on Windows 98 using PWS. Then followed configuration steps and installed MySQL. My.ini seems okay and comes up with traffic light task icon. When trying to parse my .php page (NB first go at using php, coming from a C, Java and ASP background) the following error message is displayed: X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Parse error: parse error, expecting `','' or `';'' in C:Inetpubwwwroot/php/neuquote/startquote.php on line 62 PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 Heres lines 60 to 62 (though I think its more likely that I have configured php and mysql wrongly as oposed to the page having errors in it): while ($row = mysql_fetch_row ($result)) { echo "option value=".$row[0]."".$row[1]."/option" } Heres my 'configured' php.ini file: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive=value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string ("foo"). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo=; sets foo to an empty string ; foo=none; sets foo to an empty string ; foo="none" ; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine=On ; Enable the PHP scripting language engine under Apache short_open_tag=On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags=Off ; allow ASP-style % % tags precision=14; number of significant digits displayed in floating point numbers y2k_compliance=Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering=Off; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler=; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to "ob_gzhandler", than output ; will be transparently compressed for browsers that support gzip or ; deflate encoding. Setting an output handler automatically turns on ;
[PHP-DEV] PHP 4.0 Bug #9741 Updated: MacOS / Skandinavian alphabets
ID: 9741 User Update by: [EMAIL PROTECTED] Status: Closed Bug Type: Mail related Description: MacOS / Skandinavian alphabets I tried to read the same headers with Mac/Netscape Messenger. Worked fine. It seems that there is a bug in mac-version of Eudora. Previous Comments: --- [2001-03-14 14:32:25] [EMAIL PROTECTED] Sorry - I just re-read your report. It sounds like a bug in your mail client rather than PHP - PHP just passes the mail on to sendmail, and it is down to your mail client to parse and understand the message. The rfc822 doesnt say anything about the order in which the headers should appear. Can you try reading the message with other software? --Wez. --- [2001-03-14 14:26:52] [EMAIL PROTECTED] This isn't a bug in PHP - yes you need to specify the correct MIME headers in order for your email client to understand the content. I suggest that you take a quick look at the mime RFCs. You should be adding headers to you email that looks like: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 You can use the headers parameter of the mail() function for this purpose. I'm not too sure if that's the correct charset, but should get the right idea! Hope that helps. If you are sending these headers and the problem persists, please re-open this report. --Wez. --- [2001-03-14 11:13:32] [EMAIL PROTECTED] In order to print the skandinavian alphabets succesfully in the mail message with mac, Mime-Version: 1.0 should be announced in the first row of the message header: Doesn't work sent with php 4.0.4 Date: Wed, 14 Mar 2001 13:03:09 +0200 To: [EMAIL PROTECTED] Subject: Test subject ÂÂÂÂÂÂ MIME-Version: 1.0 From: äöåööäöåööäöå [EMAIL PROTECTED] Status: O Works sent with Eudora/Mac Mime-Version: 1.0 X-Sender: [EMAIL PROTECTED] Date: Wed, 14 Mar 2001 12:07:27 +0200 To: [EMAIL PROTECTED] From: Jussi Ranta [EMAIL PROTECTED] Subject: test äöåäöåöäöåäö Status: --- mail() -function does not have a feature to change the order of header information. Now Mime-Version 1.0 can be announced after subject-line. --- Full Bug description available at: http://bugs.php.net/?id=9741 -- 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 4.0 Bug #9745 Updated: PHP Warning: Unable to load dynamic library './msql.dll'
ID: 9745 Updated by: joey Reported By: [EMAIL PROTECTED] Status: Open Bug Type: MySQL related Assigned To: Comments: I meant: put a ; at the end of that line (thanks, maz) Previous Comments: --- [2001-03-14 16:07:22] [EMAIL PROTECTED] Ooops. Too tired, did not see your .'s. My bad --- [2001-03-14 16:06:26] [EMAIL PROTECTED] The error says it all. You need to escape the double quotes inside a string. Please read the manual at www.php.net/manual/en --- [2001-03-14 16:02:03] [EMAIL PROTECTED] I have just installed php on Windows 98 using PWS. Then followed configuration steps and installed MySQL. My.ini seems okay and comes up with traffic light task icon. When trying to parse my .php page (NB first go at using php, coming from a C, Java and ASP background) the following error message is displayed: X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Parse error: parse error, expecting `','' or `';'' in C:Inetpubwwwroot/php/neuquote/startquote.php on line 62 PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 Heres lines 60 to 62 (though I think its more likely that I have configured php and mysql wrongly as oposed to the page having errors in it): while ($row = mysql_fetch_row ($result)) { echo "option value=".$row[0]."".$row[1]."/option" } Heres my 'configured' php.ini file: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive=value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string ("foo"). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo=; sets foo to an empty string ; foo=none; sets foo to an empty string ; foo="none" ; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine=On ; Enable the PHP scripting language engine under Apache short_open_tag=On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags=Off ; allow ASP-style % % tags precision=14; number of significant digits displayed in floating point numbers y2k_compliance=Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering=Off; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler=; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to "ob_gzhandler", than
[PHP-DEV] PHP 4.0 Bug #9745 Updated: PHP Warning: Unable to load dynamic library './msql.dll'
ID: 9745 Updated by: joey Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MySQL related Assigned To: Comments: *sigh* Previous Comments: --- [2001-03-14 16:13:55] [EMAIL PROTECTED] I meant: put a ; at the end of that line (thanks, maz) --- [2001-03-14 16:07:22] [EMAIL PROTECTED] Ooops. Too tired, did not see your .'s. My bad --- [2001-03-14 16:06:26] [EMAIL PROTECTED] The error says it all. You need to escape the double quotes inside a string. Please read the manual at www.php.net/manual/en --- [2001-03-14 16:02:03] [EMAIL PROTECTED] I have just installed php on Windows 98 using PWS. Then followed configuration steps and installed MySQL. My.ini seems okay and comes up with traffic light task icon. When trying to parse my .php page (NB first go at using php, coming from a C, Java and ASP background) the following error message is displayed: X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Parse error: parse error, expecting `','' or `';'' in C:Inetpubwwwroot/php/neuquote/startquote.php on line 62 PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 Heres lines 60 to 62 (though I think its more likely that I have configured php and mysql wrongly as oposed to the page having errors in it): while ($row = mysql_fetch_row ($result)) { echo "option value=".$row[0]."".$row[1]."/option" } Heres my 'configured' php.ini file: [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive=value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string ("foo"). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo=; sets foo to an empty string ; foo=none; sets foo to an empty string ; foo="none" ; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine=On ; Enable the PHP scripting language engine under Apache short_open_tag=On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags=Off ; allow ASP-style % % tags precision=14; number of significant digits displayed in floating point numbers y2k_compliance=Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering=Off; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler=; You can redirect all of the output of your
[PHP-DEV] PHP 4.0 Bug #9746: pg_close (or autoclose) closes wrong connections
From: [EMAIL PROTECTED] Operating system: Linux 2.2.15-2.9.0 ppc PHP version: 4.0.4pl1 PHP Bug Type: PostgreSQL related Bug description: pg_close (or autoclose) closes wrong connections I recall this coming up before, but I can't find it in the list of open or closed postgres bugs. It appears as though PHP is using the arguments to pg_connect to uniquely identify connections. For example: $dba = pg_connect("user=foo pass=bar dbname=baz"); $dbb = pg_connect("user=foo pass=bar dbname=baz"); pg_close($dba); # $dbb is closed now too Were one to use $dbb at this point, one would see PHP Warning: 1 is not a valid PostgreSQL link resource in [file] at [line]. But, $dba = pg_connect("user=foo pass=bar dbname=baz"); $dbb = pg_connect("pass=bar user=foo dbname=baz"); pg_close($dba); # $dbb is still open and $dba = pg_connect("user=foo pass=bar dbname=baz"); $dbb = pg_connect("user=foo pass=bar dbname=baz"); pg_close($dba); # $dbb is still open The bug doesn't require that the handle be closed explicitly; I discovered it here where one of our programmers was having connections close when one fell out of scope. I tried moving back to PHP 4.0.2 but the bug's there too (so it doesn't look to be a regression problem); on the other hand, a DEC Alpha running Digital Unix 4.0e and PHP 4.0.2 does *not* exhibit this behaviour. If you're unable to duplicate it, please get in touch with me, and I'll see if I can make arrangements for a testing environment. I'll poke through the code myself for something obvious, but I'm unfamiliar with PHP internals in the first place (up to now, at least). -- Edit Bug report at: http://bugs.php.net/?id=9746edit=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 4.0 Bug #9716: internal_functions.c:32: `#include'expects FILENAME or FILENAME
I bet this is related to getting those line endings correct...ie, it's "\n" on Unix, "\r\n" on Win32...and so on. Most likely not a PHP bug. On 13 Mar 2001, [EMAIL PROTECTED] wrote the following to [EMAIL PROTECTED]: From: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Operating system: Mac OS X RC1 PHP version: 4.0 Latest CVS (12/03/2001) PHP Bug Type: *Install and Config Bug description: internal_functions.c:32: `#include' expects "FILENAME" or lt;FILENAMEgt; After configuration the this error occurs" Making all in main /bin/sh /Users/Shared/php4-200103121645/libtool --silent --mode=compile cc -I. -I/Users/Shared/php4-200103121645/main -I/Users/Shared/php4-200103121645/main -I/Users/Shared/php4-200103121645 -I/usr/include/httpd -I/Users/Shared/php4-200103121645/Zend -I/usr/local/mysql/include/mysql -I/Users/Shared/php4-200103121645/ext/xml/expat/xmltok -I/Users/Shared/php4-200103121645/ext/xml/expat/xmlparse -I/Users/Shared/php4-200103121645/TSRM -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g -O2 -c internal_functions.c internal_functions.c:32: `#include' expects "FILENAME" or FILENAME make[2]: *** [internal_functions.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1 This error is caused by the following line: #include "ext/mysql/php_mysql.h"n#include "ext/pcre/php_pcre.h"n#include "ext/posix/php_posix.h"n#include "ext/session/mod_mm.h"n#include "ext/session/php_session.h"n#$ p_zlib.h"n This line should be broken into multiple lines: #include "ext/mysql/php_mysql.h" #include "ext/pcre/php_pcre.h" #include "ext/posix/php_posix.h" #include "ext/session/mod_mm.h" #include "ext/session/php_session.h" #include "ext/standard/php_standard.h" #include "ext/xml/php_xml.h" #include "ext/zlib/php_zlib.h" The file can be manually edited after configuration and the build will proceed normally with success. However running configuration again will revert this file to the broken state again. -- 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 4.0 Bug #9728 Updated: I cannot post any string over any form or send through a GET method....
ID: 9728 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Apache related Description: I cannot post any string over any form or send through a GET method Ok, that worked !! it was php.ini the problem, switching the register_gloabals to ON .. thanks a lot Jani : i'll try to explore all the PHP 'man' pages (when i'll have enough time..) ;) regards, José whos really happy now and will compile the apache server again ;) Previous Comments: --- [2001-03-14 15:23:41] [EMAIL PROTECTED] Works for me just fine. Does it print any error messages for you? Is the register_globals directive set "on" in php.ini? Try changing the $test to $HTTP_POST_VARS['test'] to test if it's the register_globals setting.. --Jani --- [2001-03-14 10:15:58] [EMAIL PROTECTED] OK thanks Jani but that doesnt work at all This is my configure line: PHP: ./configure --with-apache=../apache(version) --with-mysql=/usr/local/mysql --with-pdflib --with-gd --with-jpeg-dir=/usr/lib --with-bcmath --enable-track-vars make; make install APACHE: ./configure --prefix=/home/apache --activate-module=src/modules/php4/lib...a make; make install The script is: ? echo "hrbrTest = ".$test."brhrn"; ? form action=self.php method=post Test:input type=text name=test input type=submit /form With PERL All is ok under cgi-bin folder: #!/usr/bin/perl -w print "Content-type: text/plainnn"; print "body bgcolor=whiten"; print "Test=$testbr"; print "form./formn"; and that works This is under a DELL PowerEdge Server RedHAT 7.0 Apache 1.3.14, PHP the latest snapshot... At home i have no problems... and never had... with PHP :-( I have at home a Duron 750 with Apache 1.3.14 too and PHP 4.0.2 ... Any Ideas ? thanks ! :) regards , José PLANS Whos having a GREAT Headache.. --- [2001-03-13 22:46:53] [EMAIL PROTECTED] Did you compile PHP yourself? Or did you install it from RPM? If latter, there is (somewhere) an updated PHP rpm in the RedHat FTP sites. (ftp://updates.redhat.com/ perhaps?) And if you did compile it from sources yourself, get the latest CVS snapshot from http://snaps.php.net/ as this should be fixed. If none of this helps, reopen this bug report and include a shortest possible example script which can be used to reproduce this problem. --Jani --- [2001-03-13 18:57:27] [EMAIL PROTECTED] Hi there, I'm in trouble with the new RedHat release... too many bugs, and I havent a clue of . i know this is too "space"... but Why I cant post any data through the POST method or GET one ??? My config is RedHAT 7.0, apache 1.3.14 , PHP 4.0.4pl1, ... With PERL i have no problems posting data. so its PHP who doesnt know how to do it I have to say I have installed PHP succesfully about a hundred of times under RedHAT 6.X . so is it 7.0 the problem ??? many thanks!!! regards, José PLANS who begins with the famous RedHAT 7.0 bugs... ::-( --- Full Bug description available at: http://bugs.php.net/?id=9728 -- 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 4.0 Bug #9626 Updated: unable to use sybase-extension
ID: 9626 Updated by: joey Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Sybase-ct (ctlib) related Assigned To: Comments: Never was a PHP bug. :) Previous Comments: --- [2001-03-13 17:29:58] [EMAIL PROTECTED] PS! The subdirectory "dll" is a subdirectory of open client. --- [2001-03-13 17:28:56] [EMAIL PROTECTED] Sybase Open Client - EBF 9464 12.0 05 Feb 2001 EBF/Patch I have downloaded this client from sybase, which includes the requested dll's. I have also added the the subdirectory called dll to my system path. After a reboot no errors occurred while running dependcy walker on php-sybase-ct.dll, but I still got this weird "warning" from php. --- [2001-03-13 10:16:21] [EMAIL PROTECTED] After following your guide, I've no longer errors on php-sybase-ct.dll when opening it in dependency walker. However, I've still got problems using the sybase-functions. sybase_connect for example, returns: Warning: Sybase: Unable to allocate connection record in c:internwebhtmltrondsybase.php on line 21 When running from the dos-prompt, the same good'ol error: Call to undefined function is displayed. What is wrong? --- [2001-03-13 09:34:08] [EMAIL PROTECTED] After following your guide, I've no longer errors on php-sybase-ct.dll when opening it in dependency walker. However, I've still got problems using the sybase-functions. sybase_connect for example, returns: Warning: Sybase: Unable to allocate connection record in c:internwebhtmltrondsybase.php on line 21 When running from the dos-prompt, the same good'ol error: Call to undefined function is displayed. What is wrong? --- [2001-03-13 07:04:29] [EMAIL PROTECTED] libct.dll, libcs.dll and php4ts.dll are not found. Where can I find these dll's and where should I place them? I'm getting pretty desperate here, so if you have any solutions, I would be very glad. -- Trond Straume --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9626edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] RE: PHP 4.0 Bug #9745 Updated: PHP Warning: Unable to load dynamic library './msql.dll'
Lets start again. My php page: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" html head titleUntitled/title /head body ?php echo "Hello world"; ? /body /html My error message: PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] RE: PHP 4.0 Bug #9745 Updated: PHP Warning: Unable toload dynamic library './msql.dll'
Open a new bug. You reported two bugs in the same place. You had the msql.dll bug, and: Parse error: parse error, expecting `','' or `';'' On Wed, 14 Mar 2001, John Stoops wrote the following to Bug Database : Lets start again. My php page: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" html head titleUntitled/title /head body ?php echo "Hello world"; ? /body /html My error message: PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 -- 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] 4.0.5RC1 packaged
Everything looks clean on Debian Potato and Debian Woody as a CGI. I'll run the Apache through some testing tonight. (I think everyone knows by now that I need sleep. :) On Tue, 13 Mar 2001, Zeev Suraski wrote the following to [EMAIL PROTECTED] : http://www.php.net/distributions/RCs/php-4.0.5RC1.tar.gz Do your thing :) 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] PHP 4.0 Bug #9728 Updated: I cannot post any string over any form or send through a GET method....
ID: 9728 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Apache related Assigned To: Comments: Another happy customer. :) --Jani Previous Comments: --- [2001-03-14 16:26:29] [EMAIL PROTECTED] Ok, that worked !! it was php.ini the problem, switching the register_gloabals to ON .. thanks a lot Jani : i'll try to explore all the PHP 'man' pages (when i'll have enough time..) ;) regards, José whos really happy now and will compile the apache server again ;) --- [2001-03-14 15:23:41] [EMAIL PROTECTED] Works for me just fine. Does it print any error messages for you? Is the register_globals directive set "on" in php.ini? Try changing the $test to $HTTP_POST_VARS['test'] to test if it's the register_globals setting.. --Jani --- [2001-03-14 10:15:58] [EMAIL PROTECTED] OK thanks Jani but that doesnt work at all This is my configure line: PHP: ./configure --with-apache=../apache(version) --with-mysql=/usr/local/mysql --with-pdflib --with-gd --with-jpeg-dir=/usr/lib --with-bcmath --enable-track-vars make; make install APACHE: ./configure --prefix=/home/apache --activate-module=src/modules/php4/lib...a make; make install The script is: ? echo "hrbrTest = ".$test."brhrn"; ? form action=self.php method=post Test:input type=text name=test input type=submit /form With PERL All is ok under cgi-bin folder: #!/usr/bin/perl -w print "Content-type: text/plainnn"; print "body bgcolor=whiten"; print "Test=$testbr"; print "form./formn"; and that works This is under a DELL PowerEdge Server RedHAT 7.0 Apache 1.3.14, PHP the latest snapshot... At home i have no problems... and never had... with PHP :-( I have at home a Duron 750 with Apache 1.3.14 too and PHP 4.0.2 ... Any Ideas ? thanks ! :) regards , José PLANS Whos having a GREAT Headache.. --- [2001-03-13 22:46:53] [EMAIL PROTECTED] Did you compile PHP yourself? Or did you install it from RPM? If latter, there is (somewhere) an updated PHP rpm in the RedHat FTP sites. (ftp://updates.redhat.com/ perhaps?) And if you did compile it from sources yourself, get the latest CVS snapshot from http://snaps.php.net/ as this should be fixed. If none of this helps, reopen this bug report and include a shortest possible example script which can be used to reproduce this problem. --Jani --- [2001-03-13 18:57:27] [EMAIL PROTECTED] Hi there, I'm in trouble with the new RedHat release... too many bugs, and I havent a clue of . i know this is too "space"... but Why I cant post any data through the POST method or GET one ??? My config is RedHAT 7.0, apache 1.3.14 , PHP 4.0.4pl1, ... With PERL i have no problems posting data. so its PHP who doesnt know how to do it I have to say I have installed PHP succesfully about a hundred of times under RedHAT 6.X . so is it 7.0 the problem ??? many thanks!!! regards, José PLANS who begins with the famous RedHAT 7.0 bugs... ::-( --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9728edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] RE: PHP 4.0 Bug #9745 Updated: PHP Warning: Unable toload dynamic library './msql.dll'
On Wed, 14 Mar 2001, John Stoops wrote: Lets start again. My php page: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" html head titleUntitled/title /head body ?php echo "Hello world"; ? /body /html My error message: PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 msql.dll ?? Weren't you using mysql? It's mysql.dll then. --Jani -- 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] web site bug report
I'm not sure where to send this bug report, but when I try to add a user note to the online PHP manual, I get this error: Your submission was successful -- thanks for contributing! Warning: Could not execute mail delivery program in /local/Web/sites/phpweb/manual/add-note.php on line 58 -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- 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 4.0 Bug #9748: wrong behavior of is_dir() and is_file() on a dir-link
From: [EMAIL PROTECTED] Operating system: winnt 4.0 PHP version: 4.0.4 PHP Bug Type: *Directory/Filesystem functions Bug description: wrong behavior of is_dir() and is_file() on a dir-link on a directory link, is_dir() returns false while is_file() returns true. i don't think this is the desired behavior, is it? i see that ppl are confused here also http://www.php.net/manual/en/function.is-dir.php http://www.php.net/manual/en/function.is-file.php -- Edit Bug report at: http://bugs.php.net/?id=9748edit=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 4.0 Bug #9749: ucwords() problem
From: [EMAIL PROTECTED] Operating system: Windows NT Server 4.0 PHP version: 4.0.4pl1 PHP Bug Type: Strings related Bug description: ucwords() problem echo ucwords("céline"); outputs: CéLine but should output: Céline The "é" (ascii 130) character is one of many accented characters considered valid alphabetical lettrs in the French language. -- Edit Bug report at: http://bugs.php.net/?id=9749edit=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 4.0 Bug #9749 Updated: ucwords() problem
ID: 9749 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Strings related Assigned To: Comments: can't reproduce this on unix what kind of character set (and locale settings) are you using? in the ISO character set used by Windows and Unix "é" should be 231 or 232, not 130 the range of 128-160 is undefined in the ISO 8859 character sets and might be treatet as a space character by windows c-lib so that isspace() which is used by ucwords returns true? Previous Comments: --- [2001-03-14 11:18:32] [EMAIL PROTECTED] echo ucwords("céline"); outputs: CéLine but should output: Céline The "é" (ascii 130) character is one of many accented characters considered valid alphabetical lettrs in the French language. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9749edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9750: Informix Fetch Array
From: [EMAIL PROTECTED] Operating system: Linux - INFORMIX PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Informix Fetch Array I would like to have an Informix function very similar in nature to mysql_fetch_array, where I can access returns by either an index number or the associated field name. This would be IMMENSLY helpful, allowing me to change code a bit faster. As well, it would make changing application database backends a BIT easier if the software was previously written to make use of enumerated array returns. Thanks for your consideration. -- Edit Bug report at: http://bugs.php.net/?id=9750edit=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 4.0 Bug #9751: WANTED: Informix RESET
From: [EMAIL PROTECTED] Operating system: Linux - INFORMIX 2 (very low priority) PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: WANTED: Informix RESET Also on my Informix wishlist for backend portability is a function that allows me to reset the database cursor. This isn't too bad for porting, as I can just use a do-while, but it'd still be nice... Thanks, Michael -- Edit Bug report at: http://bugs.php.net/?id=9751edit=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 4.0 Bug #9749 Updated: ucwords() problem
ID: 9749 Updated by: sbergmann Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Strings related Assigned To: Comments: ?php echo ucwords("céline"); ? outputs Céline on PHP 4.0.5-dev on Win32. Previous Comments: --- [2001-03-14 11:33:31] [EMAIL PROTECTED] can't reproduce this on unix what kind of character set (and locale settings) are you using? in the ISO character set used by Windows and Unix "é" should be 231 or 232, not 130 the range of 128-160 is undefined in the ISO 8859 character sets and might be treatet as a space character by windows c-lib so that isspace() which is used by ucwords returns true? --- [2001-03-14 11:18:32] [EMAIL PROTECTED] echo ucwords("céline"); outputs: CéLine but should output: Céline The "é" (ascii 130) character is one of many accented characters considered valid alphabetical lettrs in the French language. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9749edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9752: Auto Table Generation (ifx_htmltbl_result)
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Auto Table Generation (ifx_htmltbl_result) One feature I *REALLY* love that I've only seen under Informix is the ifx_htmltbl_result function, which makes a table out of the results -- this is a GREAT timesaver when debugging select statements! My co-workers get very envious when they see me hack away on the SQL and not have to touch any display loops to get my results. I'd love to be able to do this under MySQL and Oracle, as well. Thanks a lot -- I really love this language! :) Michael -- Edit Bug report at: http://bugs.php.net/?id=9752edit=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 4.0 Bug #9749 Updated: ucwords() problem
ID: 9749 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old-Status: Feedback Status: Closed Bug Type: Strings related Assigned To: Comments: é is 130 in the DOS character set it works fine in ANSI/ISO8859 Previous Comments: --- [2001-03-14 11:47:16] [EMAIL PROTECTED] ?php echo ucwords("céline"); ? outputs Céline on PHP 4.0.5-dev on Win32. --- [2001-03-14 11:33:31] [EMAIL PROTECTED] can't reproduce this on unix what kind of character set (and locale settings) are you using? in the ISO character set used by Windows and Unix "é" should be 231 or 232, not 130 the range of 128-160 is undefined in the ISO 8859 character sets and might be treatet as a space character by windows c-lib so that isspace() which is used by ucwords returns true? --- [2001-03-14 11:18:32] [EMAIL PROTECTED] echo ucwords("céline"); outputs: CéLine but should output: Céline The "é" (ascii 130) character is one of many accented characters considered valid alphabetical lettrs in the French language. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9749edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] RE: PHP 4.0 Bug #9745 Updated: PHP Warning: Unable toload dynamic library './msql.dll'
Actually, he doesn't need either. Just put a semi-colon in front of the line starting: extension=msql.dll Note the section a few lines down: ;Note that MySQL and ODBC support is now built in, so no dll is needed for it. On Wed, 14 Mar 2001, Jani Taskinen wrote the following to John Stoops : On Wed, 14 Mar 2001, John Stoops wrote: Lets start again. My php page: !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" html head titleUntitled/title /head body ?php echo "Hello world"; ? /body /html My error message: PHP Warning: Unable to load dynamic library './msql.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0 msql.dll ?? Weren't you using mysql? It's mysql.dll then. --Jani -- 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 4.0 Bug #9753: MySQL Connection Failed: Can't initialize character set 14 (path: default)
From: [EMAIL PROTECTED] Operating system: RedHat 7.0 PHP version: 4.0.4pl1 PHP Bug Type: MySQL related Bug description: MySQL Connection Failed: Can't initialize character set 14 (path: default) php compiled with build-in mysql support my.cnf: default-character-set=cp1251 script.php: mysql_connect(...); Warning appears: Warning: MySQL Connection Failed: Can't initialize character set 14 (path: default) in /path/script.php on line 14 Connection to SQL server is not established. This warning didn't appear n previous versions. -- Edit Bug report at: http://bugs.php.net/?id=9753edit=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 4.0 Bug #9753 Updated: MySQL Connection Failed: Can't initialize character set 14 (path: default)
ID: 9753 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: MySQL related Assigned To: Comments: This is fixed in CVS. Try the latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-03-14 11:57:40] [EMAIL PROTECTED] php compiled with build-in mysql support my.cnf: default-character-set=cp1251 script.php: mysql_connect(...); Warning appears: Warning: MySQL Connection Failed: Can't initialize character set 14 (path: default) in /path/script.php on line 14 Connection to SQL server is not established. This warning didn't appear n previous versions. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9753edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Fwd: RE: [PHP-DEV] 4.0.5RC1
Any idea what the problem could be? I doubt Mac OS X uses \r\n. Andi From: Lon Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED], "Zeev Suraski" [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: RE: [PHP-DEV] 4.0.5RC1 The source compiles and installs as a DSO under: Mac OS X 10.0 RC1 Apache 1.3.19 MySQL 3.23.34a Config line used: ./configure --with-apxs=/usr/sbin/apxs --enable-track-vars --with-mysql=/usr/local/mysql --with-zlib With the following issues: Requires corrected lines in internal_functions.c @ line 32 as noted in bug report #9716 -After this edit the compile proceeds as normal and runs fine. Outstanding bugs that still affect 4.0.5 RC1: #8828 mktime still does not produce correct information. - No known work-around for this issue. A show stopper in my opinion. Lon Baker -- 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] PHP 4.0 Bug #9754: Canceled stdout streams end up in apache's error_log
From: [EMAIL PROTECTED] Operating system: Linux 2.4.2 PHP version: 4.0.4pl1 PHP Bug Type: Filesystem function related Bug description: Canceled stdout streams end up in apache's error_log If you readfile() a large file, then cancel the stream, the entire file ends up in the error_log. For some reason, on stream cancel, it then writes the file into Apache's error_log. Simple script: header("Content-type: audio/mpeg"); header("Content-length: $song[size]"); @readfile($song[filename]); Just start this, cancel the stream, and watch your error_log. I tried manipulating php.ini's error log attributes, but it didn't help. I turned off all logging, and it still showed up. It's important to note it's not only readfile() that can place its contents into error_log. I see this with other large (very large) outputs of just text. If I cancel the downloading of a very large result page from PHP, it too will end up in the error_log. -- Edit Bug report at: http://bugs.php.net/?id=9754edit=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 4.0 Bug #9755: browscap.c, line 209: undefined symbol: core_globals
From: [EMAIL PROTECTED] Operating system: Solaris 2.6 PHP version: 4.0 Latest CVS (13/03/2001) PHP Bug Type: Compile Failure Bug description: "browscap.c", line 209: undefined symbol: core_globals Hello there, this is php4-200103131945 compiling with Sun Workshop Pro 5.0 on Solaris 2.6 with NSAPI for iPlanet 4.1. I'm getting the following error: /bin/sh /local/tmp/php4-200103131945/libtool --silent --mode=compile cc -I. -I/local/tmp/php4-200103131945/ext/standard -I/local/tmp/php4-200103131945/main -I/local/tmp/php4-200103131945 -I/local/netscape/server4/plugins/include -I/local/tmp/php4-200103131945/Zend -I/local/gnu/include -I/local/misc/include -I/local/mysql/include/mysql -I/local/ora816/rdbms/public -I/local/ora816/rdbms/demo -I/local/ora816/network/public -I/local/tmp/php4-200103131945/ext/xml/expat/xmltok -I/local/tmp/php4-200103131945/ext/xml/expat/xmlparse -I/local/tmp/php4-200103131945/TSRM -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM -g -mt -c browscap.c "browscap.c", line 209: undefined symbol: core_globals "browscap.c", line 209: left operand of "-" must be pointer to struct/union "browscap.c", line 210: left operand of "-" must be pointer to struct/union cc: acomp failed for browscap.c *** Error code 1 make: Fatal error: Command failed for target `browscap.lo' Current working directory /local/tmp/php4-200103131945/ext/standard Configuration is: CCC=CC CC=cc ./configure --prefix=/local/misc --with-nsapi=/local/netscape/server4 --with-jpeg-dir=/local/misc --with-tiff-dir=/ local/misc --with-gdbm=/local/gnu --with-zlib=/local/gnu --with-mysql=/local/mysql --with-oracle=/local/ora816 --with-png-dir=/lo cal/gnu --with-zlib-dir=/local/gnu --with-oci8 --with-exec-dir=/local/misc/lib/php/bin --with-config-file-path=/local/misc/lib/ph p --enable-ftp --with-imap=/local/misc --enable-sysvsem --enable-sysvshm --enable-yp -- Edit Bug report at: http://bugs.php.net/?id=9755edit=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 4.0 Bug #9755 Updated: browscap.c, line 209: undefined symbol: core_globals
ID: 9755 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Failure Description: "browscap.c", line 209: undefined symbol: core_globals Fixed with browscap.c 1.43 Previous Comments: --- [2001-03-14 13:08:11] [EMAIL PROTECTED] Hello there, this is php4-200103131945 compiling with Sun Workshop Pro 5.0 on Solaris 2.6 with NSAPI for iPlanet 4.1. I'm getting the following error: /bin/sh /local/tmp/php4-200103131945/libtool --silent --mode=compile cc -I. -I/local/tmp/php4-200103131945/ext/standard -I/local/tmp/php4-200103131945/main -I/local/tmp/php4-200103131945 -I/local/netscape/server4/plugins/include -I/local/tmp/php4-200103131945/Zend -I/local/gnu/include -I/local/misc/include -I/local/mysql/include/mysql -I/local/ora816/rdbms/public -I/local/ora816/rdbms/demo -I/local/ora816/network/public -I/local/tmp/php4-200103131945/ext/xml/expat/xmltok -I/local/tmp/php4-200103131945/ext/xml/expat/xmlparse -I/local/tmp/php4-200103131945/TSRM -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM -g -mt -c browscap.c "browscap.c", line 209: undefined symbol: core_globals "browscap.c", line 209: left operand of "-" must be pointer to struct/union "browscap.c", line 210: left operand of "-" must be pointer to struct/union cc: acomp failed for browscap.c *** Error code 1 make: Fatal error: Command failed for target `browscap.lo' Current working directory /local/tmp/php4-200103131945/ext/standard Configuration is: CCC=CC CC=cc ./configure --prefix=/local/misc --with-nsapi=/local/netscape/server4 --with-jpeg-dir=/local/misc --with-tiff-dir=/ local/misc --with-gdbm=/local/gnu --with-zlib=/local/gnu --with-mysql=/local/mysql --with-oracle=/local/ora816 --with-png-dir=/lo cal/gnu --with-zlib-dir=/local/gnu --with-oci8 --with-exec-dir=/local/misc/lib/php/bin --with-config-file-path=/local/misc/lib/ph p --enable-ftp --with-imap=/local/misc --enable-sysvsem --enable-sysvshm --enable-yp --- Full Bug description available at: http://bugs.php.net/?id=9755 -- 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 4.0 Bug #8828 Updated: mktime using mday=0
ID: 8828 Updated by: jason Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Date/time related Assigned To: Comments: This actually is part of the Ansi C standard. Solaris 8 manpage --- The original values of the components may be either greater than or less than the specified range. For example, a tm_hour of -1 means 1 hour before midnight, tm_mday of 0 means the day preceding the current month, and tm_mon of -2 means 2 months before January of tm_year --- Alg from c standard #define QUOT(a,b) ((a)0 ? (a)/(b) : -(((b)-(a)-1)/(b))) #define REM(a,b) ((a)-(b)*QUOT(a,b)) SS = tm_hour*3600 + tm_min*60 + tm_sec + (tm_leapsecs == _NO_LEAP_SECONDS ? X1 : tm_leapsecs) - (tm_zone == _LOCALTIME ? X2 : tm_zone) * 60; // X1 is the appropriate number of leap seconds, determined by // the implementation, or 0 if it cannot be determined. // X2 is the appropriate offset from local time to UTC, // determined by the implementation, or // (tm_isdst = 0 ? tm_isdst : 0) // if the offset cannot be determined M = REM(tm_mon, 12); Y = tm_year + 1900 + QUOT(tm_mon, 12); Z = Y - (M 2 ? 1 : 0); D = Y*365 + (Z/400)*97 + (Z%400)/4 + M[(int []){0,31,59,90,120,151,181,212,243,273, 304,335}] + tm_mday + QUOT(SS, 86400); S = REM(SS, 86400); -- Mac OS X is not following this standard -Jason Previous Comments: --- [2001-01-27 07:26:19] [EMAIL PROTECTED] I have send a bug report to darwin-developers and apple, too, but i have check some UNIX-systems and i haven't found any man-page, where is describe what should be happend on "tm_mday" = 0. IMHO this is a undocumented feature, which is used by PHP. man mktime (Linux 2.2.13) tm_mday The day of the month, in the range 1 to 31. Sun Release 4.1 -- int tm_mday; /* day of month (1 - 31) */ SunOS 5.5 --- int tm_mday; /* day of the month - [1, 31] */ HP-UX Release 10.20 -- int tm_mday; /* day of month - [1,31] */ HP-UX Release 11.00 --- int tm_mday; /* day of month - [1,31] */ AIX 4.3.2 int tm_mday;/* Day of month (1 - 31) */ Darwin 1.0.2 - int tm_mday; /* day of month (1 - 31) */ I think i should by much better to check mktime() on configure and set a #define for compilation. Only on "datetime.c" must be made a patch to support MacOS X's / Darwin's mktime()-systemcall, i think! --- [2001-01-22 22:32:57] [EMAIL PROTECTED] macos x is behaving in a non-standard way. we just use the underlying mktime() function. you might try reporting it to the darwin developers. http://www.opensource.apple.com/projects/bugs.html --- [2001-01-21 08:06:36] [EMAIL PROTECTED] On PHP documantation: mktime(hour,min,sec, year,0,mon) refers the last day of month 'mon-1'. On MacOS X this failed, there it refers the first day of month 'mon' and mktime(hour,min,sec, year,-1,mon) refers the last day of month 'mon-1'. See the test: [aragorn:~/Downloads] dieter% cat A.c #include stdio.h #include time.h main() { struct tm mytm; int i; mytm.tm_sec = 0; mytm.tm_min = 0; mytm.tm_hour = 0; mytm.tm_year = 101; mytm.tm_wday = 0; mytm.tm_yday = 0; mytm.tm_isdst = 0; mytm.tm_gmtoff = 0; mytm.tm_zone = 0; for (i = 2; i = -2; i--) { mytm.tm_mday = i; mytm.tm_mon = 2; printf ("%02d.%02d ", mytm.tm_mday, mytm.tm_mon+1); printf (" -- %ld", mktime(mytm)); printf (" -- %02d.%02dn", mytm.tm_mday, mytm.tm_mon+1); } } [aragorn:~/Downloads] dieter% cc -o A A.c [aragorn:~/Downloads] dieter% ./A 02.03 -- 983487600 -- 02.03 01.03 -- 983401200 -- 01.03 00.03 -- 983401200 -- 01.03 -1.03 -- 983314800 -- 28.02 -2.03 -- 983228400 -- 27.02 [aragorn:~/Downloads] dieter% --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8828edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list
Re: RE: [PHP-DEV] 4.0.5RC1
Andi + Zeev, I wouldn't consider bug number 8828 a show-stopper, unless you want to implement a work-around for OS X. If you read my comments on 8828 you will see that PHP's mktime + documentation is clearly following the standard, its OS X that isn't -Jason - Original Message - From: "Andi Gutmans" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 11:17 AM Subject: Fwd: RE: [PHP-DEV] 4.0.5RC1 Any idea what the problem could be? I doubt Mac OS X uses \r\n. Andi From: Lon Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED], "Zeev Suraski" [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: RE: [PHP-DEV] 4.0.5RC1 The source compiles and installs as a DSO under: Mac OS X 10.0 RC1 Apache 1.3.19 MySQL 3.23.34a Config line used: ./configure --with-apxs=/usr/sbin/apxs --enable-track-vars --with-mysql=/usr/local/mysql --with-zlib With the following issues: Requires corrected lines in internal_functions.c @ line 32 as noted in bug report #9716 -After this edit the compile proceeds as normal and runs fine. Outstanding bugs that still affect 4.0.5 RC1: #8828 mktime still does not produce correct information. - No known work-around for this issue. A show stopper in my opinion. Lon Baker -- 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]
[PHP-DEV] PHP 4.0 Bug #9687 Updated: x-httpd-source fails with zero length
ID: 9687 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: PHP options/info functions Description: x-httpd-source fails with zero length I must be missing something, but it would seem your suggestion/solution is to symlink all my files for which I want to see coloring to different file extensions to see their source. For curiosity's sake, I tried this, but it as well didn't work. The issue is not mistaken file extension association, or misspelled directives, so I can only assume it's either related to Apache when it tries to retrieve the data from PHP after an application/x-httpd-php-source directive, or related to the application/x-httpd-php-source directive handler in PHP itself. Either way, I'd like to track it down. What should I do? Previous Comments: --- [2001-03-14 13:44:18] [EMAIL PROTECTED] I must be missing something, but it would seem your suggestion/solution is to symlink all my files for which I want to see coloring to different file extensions to see their source. For curiosity's sake, I tried this, but it as well didn't work. The issue is not mistaken file extension association, or misspelled directives, so I can only assume it's either related to Apache when it tries to retrieve the data from PHP after an application/x-httpd-php-source directive, or related to the application/x-httpd-php-source directive handler in PHP itself. Either way, I'd like to track it down. What should I do? --- [2001-03-11 17:22:19] [EMAIL PROTECTED] For a while, I have been experiencing an irksome problem since about 4.0.4, but I can't pinpoint when exactly it started. On RedHat 7.0, I have the following webserver running: Apache/1.3.19 (Unix) PHP/4.0.5-dev mod_ssl/2.8.1 OpenSSL/0.9.5a on a 500 Mhz P3 with 240 MB of RAM. The PHP DSO module is built from the CVS pull from about 12pm PDT today (3/11/2001). Anyway, whenever I try to access a pretty colored source code version of any of my files via .phps (where .phps is one of the extensions setup as an application/x-httpd-source type), I get a "zero data" message from my browser. The physical configruation line shows: AddType application/x-httpd-php-source .phps .inc I compiled PHP as a CGI version to see if it was an Apache issue, and the same thing happens. The Apache child processes aren't dying, either. And the logs show a content legth of 0 and a successful request, so i don't have any idea what's really going on. I'm willing to assist anyone in determining the cause of the problem, but I haven't seen it listed anywhere else. I have the following PHP configuration: './configure' '--with-apxs=/opt/apache/sbin/apxs' '--enable-track-vars' '--enable-inline-optimizations' '--enable-trans-sid' '--with-mysql' '--with-pgsql=/usr/local/pgsql' '--with-curl=/usr/local/curl' '--with-gd' '--with-t1lib-dir=/usr/local/t1lib' '--with-ttf' '--enable-pcre' '--with-bz2=/usr/local/bzip2' '--with-zlib' '--with-zlib-dir=/usr' '--enable-wddx' '--with-dom=/usr/local/libxml' Any help or pointers to provide more help is welcome. --- Full Bug description available at: http://bugs.php.net/?id=9687 -- 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 4.0 Bug #8828 Updated: mktime using mday=0
Hi Sascha, Look at 7.23.2.6 Normalization of broken-down times -Jason - Original Message - From: "Sascha Schumann" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 12:49 PM Subject: Re: [PHP-DEV] PHP 4.0 Bug #8828 Updated: mktime using mday=0 This actually is part of the Ansi C standard. Solaris 8 manpage --- The original values of the components may be either greater than or less than the specified range. For example, a tm_hour of -1 means 1 hour before midnight, tm_mday of 0 means the day preceding the current month, and tm_mon of -2 means 2 months before January of tm_year This seems to be a Solaris extension. It does not contradict C99, but I would not consider it portable. Neither section 7.23.1, "Components of time" nor 7.23.2.3, "The mktime function" say anything with regard to values which exceed the normal ranges as specified in 7.23.1. - Sascha Experience IRCG http://schumann.cx/ http://schumann.cx/ircg -- 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] PHP 4.0 Bug #8828 Updated: mktime using mday=0
On Wed, 14 Mar 2001, Jason Greene wrote: Hi Sascha, Look at 7.23.2.6 Normalization of broken-down times Which version of the "Ansi C standard" are you referring to? C99 (ANSI/IEC/ISO 9899:1999) does not contain such a section nor does it contain the term normalization. The Single Unix Spec II which predates C99 also does not say anything with regard to ``normalization''. - Sascha Experience IRCG http://schumann.cx/ http://schumann.cx/ircg -- 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 4.0 Bug #8828 Updated: mktime using mday=0
I think i was looking at a draft, is there anything in the your copy oflC99 that resembles?: 7.23.2.6 Normalization of broken-down times [#1] A broken-down time is normalized by the mkxtime function in the following manner. A broken-down time is normalized by the mktime function in the same manner, but as if the struct tm structure had been replaced by a struct tmx structure containing the same values except: tm_versionis 1 tm_zone is _LOCALTIME 7.23.2.4 Library 7.23.2.6 WG14/N843August 3, 1998 389 tm_leapsecs is _NO_LEAP_SECONDS tm_isdst is -1, 0, or an implementation-defined positive value according to whether the original member is less than, equal to, or greater than zero [#2] If any of the following members is outside the indicated range (where L is LONG_MAX/8), the behavior is undefined: tm_year [-L/366, +L/366] tm_mon[-L/31, +L/31] tm_mday [-L, +L] tm_hour [-L/3600, +L/3600] tm_min[-L/60, +L/60] tm_sec[-L, +L] tm_leapsecs [-L, +L] or _NO_LEAP_SECONDS tm_zone [-L/60, +L/60] tm_isdst [-L/60, +L/60] or _LOCALTIME The tm_version member shall be 1. [#3] Values S and D shall be determined as follows: 7.23.2.6 Library 7.23.2. #define QUOT(a,b) ((a)0 ? (a)/(b) : -(((b)-(a)-1)/(b))) #define REM(a,b) ((a)-(b)*QUOT(a,b)) - Original Message - From: "Sascha Schumann" [EMAIL PROTECTED] To: "Jason Greene" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 1:00 PM Subject: Re: [PHP-DEV] PHP 4.0 Bug #8828 Updated: mktime using mday=0 On Wed, 14 Mar 2001, Jason Greene wrote: Hi Sascha, Look at 7.23.2.6 Normalization of broken-down times Which version of the "Ansi C standard" are you referring to? C99 (ANSI/IEC/ISO 9899:1999) does not contain such a section nor does it contain the term normalization. The Single Unix Spec II which predates C99 also does not say anything with regard to ``normalization''. - Sascha Experience IRCG http://schumann.cx/ http://schumann.cx/ircg -- 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] PHP 4.0 Bug #8828 Updated: mktime using mday=0
On Wed, 14 Mar 2001, Jason Greene wrote: I think i was looking at a draft, is there anything in the your copy oflC99 that resembles?: 7.23.2.6 Normalization of broken-down times Jason, [#1] A broken-down time is normalized by the mkxtime ^^^ this refers to a proposed new function mkxtime which has not made it into the final C99. The full proposal can be found here: http://anubis.dkuug.dk/JTC1/SC22/WG14/www/docs/n793.htm And the responding items here: http://anubis.dkuug.dk/JTC1/SC22/WG14/www/docs/n735.htm - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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] X-Powered-by
hi, header("Foo: bar\r\n"); Get rid of that CRLF and it should work. this is an idea. what about if header stripped all \n \r? i cant see a reasonable use of \n in a header line... b. -- 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 4.0 Bug #9756: Module activation line in wrong place with ssl
From: [EMAIL PROTECTED] Operating system: Redhat6.1 / Redhat7.0 PHP version: 4.0.4pl1 PHP Bug Type: *Install and Config Bug description: Module activation line in wrong place with ssl When executing 'make install', php4 activates the php module by adding 2 lines to httpd.conf. If I have SSL installed, then php4 activates itself by adding the lines thus: IfDefine SSL LoadModule ssl_module libexec/libssl.so LoadModule php4_modulelibexec/libphp4.so /IfDefine ...and... IfDefine SSL AddModule mod_ssl.c AddModule mod_php4.c /IfDefine Starting apache without ssl excludes the php module. Apache is 1.3.19, but I think it happens with 1.3.14 and 1.3.17 as well. -- Edit Bug report at: http://bugs.php.net/?id=9756edit=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 4.0 Bug #8828 Updated: mktime using mday=0
Hi, Either way though, you are saying that this has not been excepted into the final C99? Correct. A bit of googling brought up this page where Paul Eggert documents why the proposal is broken. http://www.cl.cam.ac.uk/~mgk25/c-time/comment-eggert.html So should we depend on this being a portable standard yet? I have used the mday=0 on Solaris, and Linux and have seen it in the IRIX manpages It is not portable as the Mac OS X case shows. It would be hard to convince a vendor to implement a certain feature, if even the proposal for that feature was rejected by the responsible language committee. - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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: RE: [PHP-DEV] 4.0.5RC1
Yes, I agree. At 20:42 14/3/2001, Jason Greene wrote: Andi + Zeev, I wouldn't consider bug number 8828 a show-stopper, unless you want to implement a work-around for OS X. If you read my comments on 8828 you will see that PHP's mktime + documentation is clearly following the standard, its OS X that isn't -Jason - Original Message - From: "Andi Gutmans" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 11:17 AM Subject: Fwd: RE: [PHP-DEV] 4.0.5RC1 Any idea what the problem could be? I doubt Mac OS X uses \r\n. Andi From: Lon Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED], "Zeev Suraski" [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: RE: [PHP-DEV] 4.0.5RC1 The source compiles and installs as a DSO under: Mac OS X 10.0 RC1 Apache 1.3.19 MySQL 3.23.34a Config line used: ./configure --with-apxs=/usr/sbin/apxs --enable-track-vars --with-mysql=/usr/local/mysql --with-zlib With the following issues: Requires corrected lines in internal_functions.c @ line 32 as noted in bug report #9716 -After this edit the compile proceeds as normal and runs fine. Outstanding bugs that still affect 4.0.5 RC1: #8828 mktime still does not produce correct information. - No known work-around for this issue. A show stopper in my opinion. Lon Baker -- 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] -- Zeev Suraski [EMAIL PROTECTED] CTO co-founder, Zend Technologies Ltd. http://www.zend.com/ -- 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 4.0 Bug #8828 Updated: mktime using mday=0
Sascha + Everyone, Thanks for pointing that out ( I should have known better to argue standards with Sascha: ) I reviewed the official C99 ANSI/ISO/IEC 9899-1999 and it does make no mention as to the use of mday=0 or the normalization of tm structs as specified in the proposal that I was citing. This is not potable, though I have seen many Unix's act this way. So should we a) just change our docs to say something to the effect of "Some UNIX's support mday=0 (Possible list of known os's) , but this is not the defacto standard and you should refer to your system docs". b) remove all references from it or c) detect when it doesn't work and emulate the functionality. I vote for (A), seeing as there is no set standard for this, and there is no guarantee that the mday=0 functionality will stay. What do you guys think? -Jason - - Original Message - From: "Sascha Schumann" [EMAIL PROTECTED] To: "Jason Greene" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 1:39 PM Subject: Re: [PHP-DEV] PHP 4.0 Bug #8828 Updated: mktime using mday=0 Hi, Either way though, you are saying that this has not been excepted into the final C99? Correct. A bit of googling brought up this page where Paul Eggert documents why the proposal is broken. http://www.cl.cam.ac.uk/~mgk25/c-time/comment-eggert.html So should we depend on this being a portable standard yet? I have used the mday=0 on Solaris, and Linux and have seen it in the IRIX manpages It is not portable as the Mac OS X case shows. It would be hard to convince a vendor to implement a certain feature, if even the proposal for that feature was rejected by the responsible language committee. - Sascha Experience IRCG http://schumann.cx/http://schumann.cx/ircg -- 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] PHP 4.0 Bug #9757: Php.exe Process doesnt kill itself
From: [EMAIL PROTECTED] Operating system: WinNT 4 SP6 PHP version: 4.0.4pl1 PHP Bug Type: *General Issues Bug description: Php.exe Process doesnt kill itself We use Windows NT 4 Server and IIS, and Php is running in cgi script mode. We use php to connect to our MSSQL 7 database, If a user clicks on a HTML page that returns alot of fields and then cancels that request before all the fields get returned. The Php.exe process hangs and does not kill itself. Sometimes there are 10 to 15 php.exe process's when I go and look in task manager. When I try to end them from task manager It says access denied. So then I have to use another process killing utility to end them. Any Ideas??? Matt Weigand -- Edit Bug report at: http://bugs.php.net/?id=9757edit=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 4.0 Bug #9746 Updated: pg_close (or autoclose) closes wrong connections
ID: 9746 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: PostgreSQL related Description: pg_close (or autoclose) closes wrong connections I tried with php4-200103141145; still as described above. Previous Comments: --- [2001-03-14 15:37:28] [EMAIL PROTECTED] I tried with php4-200103141145; still as described above. --- [2001-03-14 16:21:41] [EMAIL PROTECTED] I recall this coming up before, but I can't find it in the list of open or closed postgres bugs. It appears as though PHP is using the arguments to pg_connect to uniquely identify connections. For example: $dba = pg_connect("user=foo pass=bar dbname=baz"); $dbb = pg_connect("user=foo pass=bar dbname=baz"); pg_close($dba); # $dbb is closed now too Were one to use $dbb at this point, one would see PHP Warning: 1 is not a valid PostgreSQL link resource in [file] at [line]. But, $dba = pg_connect("user=foo pass=bar dbname=baz"); $dbb = pg_connect("pass=bar user=foo dbname=baz"); pg_close($dba); # $dbb is still open and $dba = pg_connect("user=foo pass=bar dbname=baz"); $dbb = pg_connect("user=foo pass=bar dbname=baz"); pg_close($dba); # $dbb is still open The bug doesn't require that the handle be closed explicitly; I discovered it here where one of our programmers was having connections close when one fell out of scope. I tried moving back to PHP 4.0.2 but the bug's there too (so it doesn't look to be a regression problem); on the other hand, a DEC Alpha running Digital Unix 4.0e and PHP 4.0.2 does *not* exhibit this behaviour. If you're unable to duplicate it, please get in touch with me, and I'll see if I can make arrangements for a testing environment. I'll poke through the code myself for something obvious, but I'm unfamiliar with PHP internals in the first place (up to now, at least). --- Full Bug description available at: http://bugs.php.net/?id=9746 -- 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 4.0 Bug #9729 Updated: --enable-sockets problem
Hi, I have download the latest version of php4(13/3/2001) and follow the last comment in#8667. I did help me to install the sockets. I browsed the php settings by using phpinfo(). It shows that "socket support enabled". But when the php program calls socket() , I got error : "Fatal error: Call to undefined function: socket()". Do you know how to solve this problem? Thanks ---Xuemei - Original Message - From: "Bug Database" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 1:29 PM Subject: PHP 4.0 Bug #9729 Updated: --enable-sockets problem ID: 9729 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Install and Config Assigned To: Comments: Please get the latest CVS snapshot from http://snaps.php.net/ and try the solution mentioned in #8667 (last comment) --Jani Previous Comments: -- - [2001-03-13 19:34:28] [EMAIL PROTECTED] I tried to configure the php-4.0.4pl1 with options "--enable-sockets" under Solaris 2.8. The commands that I typed in are shown next. /export/xmtang/php-4.0.4pl1./configure --prefix="/export/xmtang/php" --with -apache=../apache_1.3.14 --enable-sockets /export/xmtang/php-4.0.4pl1make Then I got some errors. make[3]: Entering directory `/export/xmtang/php-4.0.4pl1/ext/sockets' gcc -I. -I/export/xmtang/php-4.0.4pl1/ext/sockets -I/export/xmtang/php-4.0. 4pl1 /main -I/export/xmtang/php-4.0.4pl1 -I/export/xmtang/apache_1.3.14/src/inclu de - I/export/xmtang/apache_1.3.14/src/os/unix -I/export/xmtang/php-4.0.4pl1/Zend -I/ export/xmtang/php-4.0.4pl1/ext/mysql/libmysql -I/export/xmtang/php-4.0.4pl1/ ext/ xml/expat/xmltok -I/export/xmtang/php-4.0.4pl1/ext/xml/expat/xmlparse -I/exp ort/ xmtang/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -c sockets.c touch sockets.lo sockets.c: In function `php_if_recvmsg': sockets.c:1728: structure has no member named `msg_control' sockets.c:1729: structure has no member named `msg_controllen' sockets.c:1731: structure has no member named `msg_control' sockets.c:1732: structure has no member named `msg_controllen' sockets.c:1735: structure has no member named `msg_flags' sockets.c:1741: structure has no member named `msg_control' sockets.c:1750: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1754: structure has no member named `msg_controllen' sockets.c:1755: structure has no member named `msg_flags' sockets.c:1787: structure has no member named `msg_control' sockets.c:1788: structure has no member named `msg_controllen' sockets.c:1790: structure has no member named `msg_control' sockets.c:1791: structure has no member named `msg_controllen' sockets.c:1794: structure has no member named `msg_flags' sockets.c:1800: structure has no member named `msg_control' sockets.c:1810: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1812: structure has no member named `msg_controllen' sockets.c:1814: structure has no member named `msg_flags' make[3]: *** [sockets.lo] Error 1 make[3]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 -- - ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9729edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #8828 Updated: mktime using mday=0
ID: 8828 Updated by: jason Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Date/time related Assigned To: Comments: I was incorrect, This is not a part of C99(ANSI/ISO/IEC9899-1999) this is just implemented in Solaris, Linux, Irix, and possibly a few others. -Jason Previous Comments: --- [2001-03-14 13:34:47] [EMAIL PROTECTED] This actually is part of the Ansi C standard. Solaris 8 manpage --- The original values of the components may be either greater than or less than the specified range. For example, a tm_hour of -1 means 1 hour before midnight, tm_mday of 0 means the day preceding the current month, and tm_mon of -2 means 2 months before January of tm_year --- Alg from c standard #define QUOT(a,b) ((a)0 ? (a)/(b) : -(((b)-(a)-1)/(b))) #define REM(a,b) ((a)-(b)*QUOT(a,b)) SS = tm_hour*3600 + tm_min*60 + tm_sec + (tm_leapsecs == _NO_LEAP_SECONDS ? X1 : tm_leapsecs) - (tm_zone == _LOCALTIME ? X2 : tm_zone) * 60; // X1 is the appropriate number of leap seconds, determined by // the implementation, or 0 if it cannot be determined. // X2 is the appropriate offset from local time to UTC, // determined by the implementation, or // (tm_isdst = 0 ? tm_isdst : 0) // if the offset cannot be determined M = REM(tm_mon, 12); Y = tm_year + 1900 + QUOT(tm_mon, 12); Z = Y - (M 2 ? 1 : 0); D = Y*365 + (Z/400)*97 + (Z%400)/4 + M[(int []){0,31,59,90,120,151,181,212,243,273, 304,335}] + tm_mday + QUOT(SS, 86400); S = REM(SS, 86400); -- Mac OS X is not following this standard -Jason --- [2001-01-27 07:26:19] [EMAIL PROTECTED] I have send a bug report to darwin-developers and apple, too, but i have check some UNIX-systems and i haven't found any man-page, where is describe what should be happend on "tm_mday" = 0. IMHO this is a undocumented feature, which is used by PHP. man mktime (Linux 2.2.13) tm_mday The day of the month, in the range 1 to 31. Sun Release 4.1 -- int tm_mday; /* day of month (1 - 31) */ SunOS 5.5 --- int tm_mday; /* day of the month - [1, 31] */ HP-UX Release 10.20 -- int tm_mday; /* day of month - [1,31] */ HP-UX Release 11.00 --- int tm_mday; /* day of month - [1,31] */ AIX 4.3.2 int tm_mday;/* Day of month (1 - 31) */ Darwin 1.0.2 - int tm_mday; /* day of month (1 - 31) */ I think i should by much better to check mktime() on configure and set a #define for compilation. Only on "datetime.c" must be made a patch to support MacOS X's / Darwin's mktime()-systemcall, i think! --- [2001-01-22 22:32:57] [EMAIL PROTECTED] macos x is behaving in a non-standard way. we just use the underlying mktime() function. you might try reporting it to the darwin developers. http://www.opensource.apple.com/projects/bugs.html --- [2001-01-21 08:06:36] [EMAIL PROTECTED] On PHP documantation: mktime(hour,min,sec, year,0,mon) refers the last day of month 'mon-1'. On MacOS X this failed, there it refers the first day of month 'mon' and mktime(hour,min,sec, year,-1,mon) refers the last day of month 'mon-1'. See the test: [aragorn:~/Downloads] dieter% cat A.c #include stdio.h #include time.h main() { struct tm mytm; int i; mytm.tm_sec = 0; mytm.tm_min = 0; mytm.tm_hour = 0; mytm.tm_year = 101; mytm.tm_wday = 0; mytm.tm_yday = 0; mytm.tm_isdst = 0; mytm.tm_gmtoff = 0; mytm.tm_zone = 0; for (i = 2; i = -2; i--) { mytm.tm_mday = i; mytm.tm_mon = 2; printf ("%02d.%02d ", mytm.tm_mday, mytm.tm_mon+1); printf (" -- %ld", mktime(mytm)); printf (" -- %02d.%02dn", mytm.tm_mday, mytm.tm_mon+1); } } [aragorn:~/Downloads] dieter% cc -o A A.c [aragorn:~/Downloads] dieter% ./A 02.03 -- 983487600 -- 02.03 01.03 -- 983401200 -- 01.03 00.03 -- 983401200 -- 01.03 -1.03 -- 983314800 -- 28.02 -2.03 -- 983228400 -- 27.02 [aragorn:~/Downloads] dieter% --- ATTENTION! Do NOT
[PHP-DEV] PHP 4.0 Bug #9729 Updated: --enable-sockets problem
ID: 9729 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: *Install and Config Description: --enable-sockets problem I have downloaded the latest version PHP4 (3/13/2001)followed the ticket #8667(last comment). It did solve the problem that I metioned before. I have wrote a simple php program to test the socket() function. The code is shown next. $socket = socket (AF_INET, SOCK_STREAM, 0); if ($socket 0) { echo "socket() failed: reason: " . strerror ($socket) . "\n"; } else { "socket() successful: " . strerror ($socket) . "\n"; } But it causes proble: Fatal error: Call to undefined function: socket() I have checked the php.ini. It shows sockets.use_system_read=On. Do you know how to solve this problem? Thanks Previous Comments: --- [2001-03-13 22:29:17] [EMAIL PROTECTED] Please get the latest CVS snapshot from http://snaps.php.net/ and try the solution mentioned in #8667 (last comment) --Jani --- [2001-03-13 19:34:28] [EMAIL PROTECTED] I tried to configure the php-4.0.4pl1 with options "--enable-sockets" under Solaris 2.8. The commands that I typed in are shown next. /export/xmtang/php-4.0.4pl1./configure --prefix="/export/xmtang/php" --with -apache=../apache_1.3.14 --enable-sockets /export/xmtang/php-4.0.4pl1make Then I got some errors. make[3]: Entering directory `/export/xmtang/php-4.0.4pl1/ext/sockets' gcc -I. -I/export/xmtang/php-4.0.4pl1/ext/sockets -I/export/xmtang/php-4.0. 4pl1 /main -I/export/xmtang/php-4.0.4pl1 -I/export/xmtang/apache_1.3.14/src/inclu de - I/export/xmtang/apache_1.3.14/src/os/unix -I/export/xmtang/php-4.0.4pl1/Zend -I/ export/xmtang/php-4.0.4pl1/ext/mysql/libmysql -I/export/xmtang/php-4.0.4pl1/ ext/ xml/expat/xmltok -I/export/xmtang/php-4.0.4pl1/ext/xml/expat/xmlparse -I/exp ort/ xmtang/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -c sockets.c touch sockets.lo sockets.c: In function `php_if_recvmsg': sockets.c:1728: structure has no member named `msg_control' sockets.c:1729: structure has no member named `msg_controllen' sockets.c:1731: structure has no member named `msg_control' sockets.c:1732: structure has no member named `msg_controllen' sockets.c:1735: structure has no member named `msg_flags' sockets.c:1741: structure has no member named `msg_control' sockets.c:1750: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1754: structure has no member named `msg_controllen' sockets.c:1755: structure has no member named `msg_flags' sockets.c:1787: structure has no member named `msg_control' sockets.c:1788: structure has no member named `msg_controllen' sockets.c:1790: structure has no member named `msg_control' sockets.c:1791: structure has no member named `msg_controllen' sockets.c:1794: structure has no member named `msg_flags' sockets.c:1800: structure has no member named `msg_control' sockets.c:1810: warning: passing arg 3 of `add_assoc_string' makes pointer from integer without a cast sockets.c:1812: structure has no member named `msg_controllen' sockets.c:1814: structure has no member named `msg_flags' make[3]: *** [sockets.lo] Error 1 make[3]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext/sockets' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/xmtang/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 --- Full Bug description available at: http://bugs.php.net/?id=9729 -- 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 4.0 Bug #8202 Updated: exec(java -cp classpath classname inputArgument); has no effect
ID: 8202 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: *Function Specific Description: exec("java -cp classpath classname inputArgument"); has no effect Using CGI, i.e. php.exe with the correspondng extension (.php) in the IIS 4 list pointing to php.exe %s %s C:\Java\bin, etc are in the CLASSPATH (system environment setup) Previous Comments: --- [2001-03-14 15:08:33] [EMAIL PROTECTED] Can you please tell which SAPI you're using, ISAPI or CGI? --Jani --- [2001-03-14 04:34:32] [EMAIL PROTECTED] ID 8202 I don't get any error messages. A student of mine tried the code on his system, and claimed it worked. Using 4.0.3 as CGI installation Not urgent - our work-around - re-wrote the Java code in PHP, and that works. Lee --- [2001-02-24 12:40:58] [EMAIL PROTECTED] are you not getting any errors?? Can you try exec with other programs and see if it happens with them? Not getting a unable to fork eror are you? what SAPI are you using ISAPI or CGI? --- [2000-12-11 22:57:15] [EMAIL PROTECTED] The command prompt line java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm runs the java class HTML_HL7translator with input file Dis-2000-11-28-1.htm jdk1.3 is installed and works None of the commands in the following cause HTML_HL7translator to run: ?php $javaHL7 = exec("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm"); echo "did execn"; passthru("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-2.htm"); echo "did passthrun"; $javaHL7s = system("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-4.htm"); echo "did system()"; ? [PHP] extracts ; Language Options ; engine = On ; Enable the PHP scripting language engine under Apache short_open_tag = On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags= Off ; allow ASP-style % % tags precision = 14 ; number of significant digits displayed in floating point numbers y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering= Off ; Output buffering allows you to send header lines (including cookies) implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself allow_call_time_pass_reference = On; whether to enable the ability to force arguments to be safe_mode = Off safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables safe_mode_protected_env_vars = LD_LIBRARY_PATH ; This directive contains a comma- disable_functions = ; Colors for Syntax Highlighting mode. Anything that's acceptable in font color=??? would work. highlight.string= #DD highlight.comment = #FF8000 highlight.keyword = #007700 highlight.bg= #FF highlight.default = #BB highlight.html = #00 ; Misc expose_php = On ;;; ; Resource Limits ; ;;; max_execution_time = 30 ; Maximum execution time of each script, in seconds memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) ;; ; Error handling and logging ; ;; ; error_reporting is a bit-field. Or each number up to get desired error reporting level E_ALL - All errors and warnings error_reporting =E_ALL; display all errors, warnings and notices display_errors = Off ; Print out errors (as a part of the output) display_startup_errors = Off; Even when display_errors is on, errors that occur during log_errors = On track_errors= Off ; Store the last error/warning message in $php_errormsg (boolean) error_log = E:Health_InfoHealthWebDirectoryphp_error.txt ; log errors to specified file
[PHP-DEV] PHP 4.0 Bug #9756 Updated: Module activation line in wrong place with ssl
ID: 9756 Updated by: wez Reported By: [EMAIL PROTECTED] Status: Open Bug Type: *Install and Config Assigned To: Comments: I also find this problem using SuSE 7.0 (apache 1.3.12), BUT I think this is a problem with apxs and not the PHP installer. A quick grep for the word "activating" through the PHP tree reveals that it is not PHP which does the activating. Previous Comments: --- [2001-03-14 14:33:03] [EMAIL PROTECTED] When executing 'make install', php4 activates the php module by adding 2 lines to httpd.conf. If I have SSL installed, then php4 activates itself by adding the lines thus: IfDefine SSL LoadModule ssl_module libexec/libssl.so LoadModule php4_modulelibexec/libphp4.so /IfDefine ...and... IfDefine SSL AddModule mod_ssl.c AddModule mod_php4.c /IfDefine Starting apache without ssl excludes the php module. Apache is 1.3.19, but I think it happens with 1.3.14 and 1.3.17 as well. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9756edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9758: Is there any way that you can create a random letter from A-Z?
From: [EMAIL PROTECTED] Operating system: Unix PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Is there any way that you can create a random letter from A-Z? I would like to be able to create a random letter from A-Z for a member login authorization code. I would like to have a 7 digit number ie: A543BC21 so that they can create a username and password. I know how to randomize a number (ie: mt_rand( 0, 9 );) but how can I randomize letters? I tried using mt_rand( "A", "Z" ) but as I expected, it gave me an "Invalid Range" error. I could do this: ? $letter = mt_rand( 1, 36 ); if( $letter == "1" ) { $letter = "A"; } //etc. like this for A-Z ? but it would be exceptionally messy and way too long. Is there any other way to do it? If it doesn't exist, can you add this to the next version of PHP? Thanks so much! Brad Taylor Senior Web Developer BradCom Industries LTD www.simplysmarter.org -- Edit Bug report at: http://bugs.php.net/?id=9758edit=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 4.0 Bug #9758 Updated: Is there any way that you can create a random letter from A-Z?
ID: 9758 Updated by: torben Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Feature/Change Request Assigned To: Comments: This isn't the place for questions. Something like the following should work. I haven't tested it. ?php $ind = mt_rand(0, 25); $alphabet = 'abcdefghijklmnopqrstuvwxyz'; $my_random_char = $alphabet[$ind]; ? In the future, please use the mailing lists for coding questions. http://www.php.net/support.php Previous Comments: --- [2001-03-14 17:41:46] [EMAIL PROTECTED] I would like to be able to create a random letter from A-Z for a member login authorization code. I would like to have a 7 digit number ie: A543BC21 so that they can create a username and password. I know how to randomize a number (ie: mt_rand( 0, 9 );) but how can I randomize letters? I tried using mt_rand( "A", "Z" ) but as I expected, it gave me an "Invalid Range" error. I could do this: ? $letter = mt_rand( 1, 36 ); if( $letter == "1" ) { $letter = "A"; } //etc. like this for A-Z ? but it would be exceptionally messy and way too long. Is there any other way to do it? If it doesn't exist, can you add this to the next version of PHP? Thanks so much! Brad Taylor Senior Web Developer BradCom Industries LTD www.simplysmarter.org --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9758edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9759: 3
From: [EMAIL PROTECTED] Operating system: 2 PHP version: 4.0.4pl1 PHP Bug Type: *General Issues Bug description: 3 5 -- Edit Bug report at: http://bugs.php.net/?id=9759edit=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 4.0 Bug #9759 Updated: 3
ID: 9759 Updated by: torben Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: *General Issues Assigned To: Comments: Previous Comments: --- [2001-03-14 18:30:40] [EMAIL PROTECTED] 5 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9759edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9735 Updated: Mysql / IMAP issues
ID: 9735 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: MySQL related Description: Mysql / IMAP issues I will try to attach a script soon. The problem does not seem to happen when a smaller script (20 or so lines) runs, but does when larger ones run (~100 lines). The imap server see's no traffic (tcpdump, which makes sense). I am trying to match it specifically down to a situation, but have noticedthe issue with four different scripts I have created. I have switched to a homegrown fsocket approach in the meantime. I can attach the scripts I am having issues with, if needed. By simply switching the mysql_dbconnect and the imap_open()/imap_createmailbox() calls, the problem occurs and doesn't occur. Previous Comments: --- [2001-03-14 18:37:20] [EMAIL PROTECTED] I will try to attach a script soon. The problem does not seem to happen when a smaller script (20 or so lines) runs, but does when larger ones run (~100 lines). The imap server see's no traffic (tcpdump, which makes sense). I am trying to match it specifically down to a situation, but have noticedthe issue with four different scripts I have created. I have switched to a homegrown fsocket approach in the meantime. I can attach the scripts I am having issues with, if needed. By simply switching the mysql_dbconnect and the imap_open()/imap_createmailbox() calls, the problem occurs and doesn't occur. --- [2001-03-13 22:34:01] [EMAIL PROTECTED] Please attach short as possible example script into this bug report. --Jani --- [2001-03-13 22:04:30] [EMAIL PROTECTED] WHen using imap and mysql modules together, the imap will fail with a "Unable to find stream error" anytime that the imap_open is called after a mysql_connect call. I am using rpms, all same version. If oyu put the imap calls beore the ysql_connect, no problem, just in that psecific order. I can send specific code if needed. Dan Ellis --- Full Bug description available at: http://bugs.php.net/?id=9735 -- 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 4.0 Bug #9760: disable functions.
From: [EMAIL PROTECTED] Operating system: BSD/OS PHP version: 4.0.1pl2 PHP Bug Type: *Install and Config Bug description: disable functions. the `disable functions`can't be working. disable_functions =phpinfo After configuared the php.ini file and restart the apache,but the 'phpinfo()' function is still work and it show like: Directive Local Value Master Value allow_call_time_pass_reference On On arg_separator asp_tags Off Off auto_append_file no value no value auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html define_syslog_variables Off Off disable_functions phpinfo phpinfo what do I do? -- Edit Bug report at: http://bugs.php.net/?id=9760edit=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] Memory corruption in Zend, should we allow this?
Hi have found an interesting behaviour, watch below... 1) $foobar-rfoo=$a; $foobar-r2foo=$foobar-rfoo; $foobar-rfoo=4; What are we assigning 4 here to? The first question is, should we allow this? I think no, references to non-existing variables should be disallowed (although Zend allows a lot, this is no good). This is not even a reference to a variable, which could have been magically created, named ${''} or another undefined variable, let's say $b... 2) I tried to simply do a echo $a; afterwards and wow!!! It works, sometimes! Intermittently PHP crashes, without reasons, in this case I put this code below by accident function strlens($string){ return $string; } ob_start('strlens'); echo 'PRE'; var_dump($foobar); echo '/PRE'; ob_end_flush(); I do not know what this crash relates to what made me assuming Zend randomly corrupted some memory using this undefined behaviour? If I put a die() below the echo it works in any case... +1 disallowing this or modifying behaviour that it does nothing or anything else but referencing to nirvana andr -- Andr Langhorstt: +49 331 5811560 [EMAIL PROTECTED] m: +49 173 9558736 * PHP Quality Assurance http://qa.php.net * -- 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: Chunked buffered output
Joey Smith wrote: Can I get what you've been using to test chunked buffered output? sure you can, I just found out that chunked output *seems* to work for values from 2 to [?], it puts something out, I do not know how if it really was chunked... crash: ob_start('strlen',123); // crashes with any value echo str_repeat('test',5500); ob_end_flush(); hang: ob_start('strlens',1); echo str_repeat('t',4096); ob_end_flush(); this one adds an additional '0' as you can see, but if you change it to "return $string;" it does not do this: function strlens($string){ return strlen($string); } ob_start('strlens',2048); // seems to work with values from 2 to X echo str_repeat('t',4096); ob_end_flush(); andr -- Andr Langhorstt: +49 331 5811560 [EMAIL PROTECTED] m: +49 173 9558736 * PHP Quality Assurance http://qa.php.net * -- 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] Chunked output compression
Read: You can now efficiently have your outgoing PHP/HTTP traffic compressed with good compression ratios without sacrificing memory. Comments extremely welcome - and if people can also test it and let me know whether it works for them, it'd be great. Taking your example... ob_start("ob_gzhandler", 64)10KB and if I got this right, The output handler should be called 10 times for 640kB file right? If this was the case the following script was supposed to end in (10*50(total output) / 128 (buffer size) ) * 3 (seconds for sleep) This is not the case!!! (at least on win32 again) $x=str_repeat('t',6).'BR'; function strlens($string){ //return str_replace("\n",'br',$string); sleep(3); return $string; } ob_start('strlens',128); echo str_repeat($x,50); ob_end_flush(); I tried to find some code to test if I get the stuff chunked or not, I do know other way, is there any? andr -- Andr Langhorstt: +49 331 5811560 [EMAIL PROTECTED] m: +49 173 9558736 * PHP Quality Assurance http://qa.php.net * -- 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] Chunked output compression
$x=str_repeat('t',6).'BR'; function strlens($string){ //return str_replace("\n",'br',$string); sleep(3); return $string; } ob_start('strlens',128); echo str_repeat($x,50); ob_end_flush(); in addition this code crashes ;) dealing with these amounts of crashes tends to lead to laziness reporting each and every crash andr -- Andr Langhorstt: +49 331 5811560 [EMAIL PROTECTED] m: +49 173 9558736 * PHP Quality Assurance http://qa.php.net * -- 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: Memory corruption in Zend, should we allow this?
I tried the following (command line): ? $foobar-rfoo=$a; $foobar-r2foo=$foobar-rfoo; $foobar-rfoo=4; print $a; and it didn't crash. Are you sure this reproduces a crash for you? On which platform? And any other information you can give us. Andi At 03:27 AM 3/15/2001 +0100, Andr Langhorst wrote: Hi have found an interesting behaviour, watch below... 1) $foobar-rfoo=$a; $foobar-r2foo=$foobar-rfoo; $foobar-rfoo=4; What are we assigning 4 here to? The first question is, should we allow this? I think no, references to non-existing variables should be disallowed (although Zend allows a lot, this is no good). This is not even a reference to a variable, which could have been magically created, named ${''} or another undefined variable, let's say $b... 2) I tried to simply do a echo $a; afterwards and wow!!! It works, sometimes! Intermittently PHP crashes, without reasons, in this case I put this code below by accident function strlens($string){ return $string; } ob_start('strlens'); echo 'PRE'; var_dump($foobar); echo '/PRE'; ob_end_flush(); I do not know what this crash relates to what made me assuming Zend randomly corrupted some memory using this undefined behaviour? If I put a die() below the echo it works in any case... +1 disallowing this or modifying behaviour that it does nothing or anything else but referencing to nirvana andr -- Andr Langhorstt: +49 331 5811560 [EMAIL PROTECTED] m: +49 173 9558736 * PHP Quality Assurance http://qa.php.net * -- 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 4.0 Bug #9761: open failed: No such file or directory
From: [EMAIL PROTECTED] Operating system: Solaris 2.6 PHP version: 4.0.4pl1 PHP Bug Type: *Install and Config Bug description: open failed: No such file or directory Greetings, If the naspi_readme.txt a mistake: #note place following two lines after mime types init! Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/php4/nsapiPHP4.dll" This .dll looks like windows and could not find this file: nsapiPHP4.dll anywhere else. I have done all the steps mentioned in the nsapi_readme.txt, but I am still getting the following error: open failed: No such file or directory My configuration information follows: PHP Version:php-4.0.4pl1 Solaris 2.6 Netscape Enterprise Server 3.6 Please enlighten me how to solve this problem. Thanks. Good day. Philip Lee -- Edit Bug report at: http://bugs.php.net/?id=9761edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: Memory corruption in Zend, should we allow this?
Andi Gutmans wrote: $foobar-rfoo=$a; $foobar-r2foo=$foobar-rfoo; $foobar-rfoo=4; print $a; and it didn't crash. This doesn't produce a crash here on Win32, PHP 4.0.5-dev (CVS from last night). -- sebastian bergmann[EMAIL PROTECTED] http://www.sebastian-bergmann.de bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]