[PHP-DEV] PHP 4.0 Bug #9474: php_java problem still exists in php 4.0.5
From: [EMAIL PROTECTED] Operating system: Win2k PHP version: 4.0 Latest CVS (27/02/2001) PHP Bug Type: Reproduceable crash Bug description: php_java problem still exists in php 4.0.5 The bug with php_java (introduced with php 4.0.4) still exists in php 4.0.5 Bug: After running Java (in PHP 4.0.4, 4.0.4p1, or any 4.0.5) using Sun's Java Hotspot Server VM, then close windows and try to log out or shut down Windows. There will be some kind of error message. With php 4.0.5, I got a different error message then when I had php 4.0.4 I also tried both JDK 1.3 and JDK 1.3.0_001 I use the Java HotSpot Server VM 2.0 (downloadable from java.sun.com) This bug is very reproducible in PHP 4.0.4 and above. -- Edit Bug report at: http://bugs.php.net/?id=9474edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] ctype function (re?)naming
RC "Accident" generally does not have a good meaning here Hmm... I guess I'm not so good in local slang. RC (AZ,USA)... while we (PHP) may not have a good naming schema for RC all functions, I think it is helpful for the PHP user base to be RC able to comprehend the use of a function based on the name. On its name, yes - but not on underscores in it. Do you really think anybody will remember/care for those underscores? RC Now, based on what I've seen from Stanislav's code, he's used to RC this nightmare, to thousands of include files where *one* typo RC annhilates an entire compile. But our users, our base, is not at Well, life's female canis familiaris. No naming scheme would resolve the problem that if you make typos it probably won't compile. RC the level of Stas. Some have never used anything else. Others RC came to PHP because it didn't have the [method nightmare|tag RC bondage| forced typing] of other languages. No computer language known to me fixes the errors for you. I doubt any would exist some 50 years from now. What's your point here? RC Yes, ctype *could* be prefixed with VGH45i97_*. But it wouldn't RC be very helpful. Yes. But who you ague with here? Certainly not me, since I never said anything like that. Whoever said that, I fully support you in disapproving his statements. RC skilled coders can differentiate between 89DEGU567S_open() and RC 89D3GU5675_open().. it's because new language adopters *can't* RC differentiate. I don't see how it proves that is_alpha is better than isapha. For unwashed masses, it's manual lookup anyway - they have no idea how it even _could_ be called. For people knowing C and descendants, it's a cookie (not http one, the pleasant one) - one more function they already know. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.115 -- PHP Development Mailing List http://www.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] ftp_put problem
hi : i don't understand what is the meaning the"source file" and "destination file" ? i only want to upload the filefrom window95 c:\temp\1.txt to linux /tmp but the following error return "cannot open the file "i don't understand this ftp_put usage ? Can you get me the detail example and information.thanks regard Jovi
[PHP-DEV] TODO
* find a better way to implement script timeouts. SIGVTALRM is used by some POSIX threads implementations (i.e. OpenBSD) and is not available in ZTS mode. Is this related to Message-ID: [EMAIL PROTECTED] and can the proposed solution be used to solve this problem? * implement javadoc based function docs template system. Isn't this what Ulf Wendel's great PHPDoc system is about? -- sebastian bergmann e-mail : [EMAIL PROTECTED] homepage : http://www.sebastian-bergmann.de make a gift : http://wishlist.sebastian-bergmann.de measure the usability of your web application - http://phpOpenTracker.de -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] CVS Account Request
Full name: Jaykumar Ahir Email: [EMAIL PROTECTED] ID: jay_ahir Purpose: Helping in Documentaion and Building extension modules. -- PHP Development Mailing List http://www.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 #9475: shebang appearing with suexec
From: [EMAIL PROTECTED] Operating system: RH 6.1 PHP version: 4.0.4pl1 PHP Bug Type: Apache related Bug description: shebang appearing with suexec I have installed php-4.0.4pl1 and apache_1.3.14, but there is a problem with suexec. I have a php script that looks something like this: #!/usr/local/bin/php ? echo "hello\n"; ? When I run it from a shell (./something.php) it just prints the content-type header and "hello", but when it's started by suexec it also outputs the "#!/usr/local/bin/php". I have not been able to find any mention of this problem anywhere, so I'm quite baffled. If this isn't a bug, I'd appreciate some feedback on what I'm doing wrong. Thank you. //Círdan -- Edit Bug report at: http://bugs.php.net/?id=9475edit=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] ZEND_MINIT_FUNCTION and ZEND_INIT_MODULE_GLOBALS question
Hi! I'm writing a php-module that uses some globals. I use the ZEND_MINIT_FUNCTION as sort of a constructor, and call ZEND_INIT_MODULE_GLOBALS here. When my module ends, the ZEND_MSHUTDOWN_FUNCTION is called, but the globals are already destroyed by then! In ZEND_INIT_MODULE_GLOBALS, I've defined the ctor and dtor functions. The ctor function gets called, but the dtor function NOT. Effectively, this gives me no way to control destruction of my own globals, unless I've missed something??? Can anyone help me with this? I'm developing under VC6.0 and the thread-safe stuff. Thanks, Marc. -- PHP Development Mailing List http://www.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 #9476: can't use 'system', 'passthru',... from apache. works when direct php.exe
From: [EMAIL PROTECTED] Operating system: w2k PHP version: 4.0.4pl1 PHP Bug Type: Program Execution Bug description: can't use 'system', 'passthru',... from apache. works when direct php.exe php 4.0.4 AND php 4.0.4pl1 apache 1.3.14 w2k both as cgi and as apache module program execution functions don't work. ("warning.. can't fork... ") when using direct php.exe to run the file (i.e. \php\php dir.php) works fine where dir.php contains: ?php passthru("dir"); ? regards avi ps it would have been more appropriate to return "file not found" in php 404, and "access forbidden" in php 403 :) -- Edit Bug report at: http://bugs.php.net/?id=9476edit=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 #9366 Updated: bin2hex() outputs non-hex digits
ID: 9366 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: *Function Specific Description: bin2hex() outputs non-hex digits I've tryed the 4.0.5-dev from www.php4win.de released on 20 febr. and I've got the same result; I'll work on compiling the latest CVS.. Previous Comments: --- [2001-02-22 05:39:04] [EMAIL PROTECTED] Please see if current CVS snapshot fixes the problem. --- [2001-02-21 07:33:16] [EMAIL PROTECTED] I've just found that the "reconstrunction" not ever works; only the rewrite/reread technique does; bye again --- [2001-02-21 06:59:31] [EMAIL PROTECTED] it seems an unpredictable problem, I couldn't reproduce it with a string as input: I've attached a base64_encoded file containg the suitable binary data (I'm sorry it there was a simpler way); I'm still not completely sure if it is due to bin2hex() or strstr(), but this latter is very unlikely; this is the script: just change the fopen() with the filename you want; ?php $f1 = fopen( 'c:\temp\---filename.bin','rb'); //open the attached file $s = fread( $f1, 50 ); //read it all fclose($f1); $s2= bin2hex($s); echo "lung s2=".strlen($s2)."brbr"; // displays correctly filesize()*2, that is 4412 * 2 echo "s2=$s2brbr"; /* M$'IE5 displays not writeble characters: tryign to select the end of the string, I get evermore of it (just while I'm selecting !) but this should be a M$'bug; Netscape 4.03 works properly; */ $ris= strstr( $s2, "0d0a0d0a") ; // I'm looking for the first occurrence of that string; I know it is on position x0176 // - here's the problem: echo "lung ris= ".strlen($ris). "brbr"; // I get variable results, between 8077 and 8083 echo "ris=$risbrbr"; /* I get again not writeble or "invisible" characters in IE5; on Netscape I get (eg) "04ffd9R" at the end of the string; */ ? and this is the file (base64_encoded):
[PHP-DEV] ZEND_MINIT_FUNCTION and ZEND_INIT_MODULE_GLOBALS question: additional info
I can see where the problem is coming from: the global that is freed is of type zval * and allocated (eg in the ZEND_MINIT_FUNCTION) using MAKE_STD_ZVAL... the auto-cleanup works per request, and cleans up everything that is allocated with emalloc... also what was intended to be global. This probably means I have to work around it. OK. Cheerio, Marc. Hi! I'm writing a php-module that uses some globals. I use the ZEND_MINIT_FUNCTION as sort of a constructor, and call ZEND_INIT_MODULE_GLOBALS here. When my module ends, the ZEND_MSHUTDOWN_FUNCTION is called, but the globals are already destroyed by then! In ZEND_INIT_MODULE_GLOBALS, I've defined the ctor and dtor functions. The ctor function gets called, but the dtor function NOT. Effectively, this gives me no way to control destruction of my own globals, unless I've missed something??? Can anyone help me with this? I'm developing under VC6.0 and the thread-safe stuff. Thanks, Marc. -- PHP Development Mailing List http://www.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 #9366 Updated: bin2hex() outputs non-hex digits
ID: 9366 Updated by: stas Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Function Specific Assigned To: Comments: As you see, I wrote this comment on Feb. 22th, so please try more recent version. Previous Comments: --- [2001-02-27 07:52:14] [EMAIL PROTECTED] I've tryed the 4.0.5-dev from www.php4win.de released on 20 febr. and I've got the same result; I'll work on compiling the latest CVS.. --- [2001-02-22 05:39:04] [EMAIL PROTECTED] Please see if current CVS snapshot fixes the problem. --- [2001-02-21 07:33:16] [EMAIL PROTECTED] I've just found that the "reconstrunction" not ever works; only the rewrite/reread technique does; bye again --- [2001-02-21 06:59:31] [EMAIL PROTECTED] it seems an unpredictable problem, I couldn't reproduce it with a string as input: I've attached a base64_encoded file containg the suitable binary data (I'm sorry it there was a simpler way); I'm still not completely sure if it is due to bin2hex() or strstr(), but this latter is very unlikely; this is the script: just change the fopen() with the filename you want; ?php $f1 = fopen( 'c:\temp\---filename.bin','rb'); //open the attached file $s = fread( $f1, 50 ); //read it all fclose($f1); $s2= bin2hex($s); echo "lung s2=".strlen($s2)."brbr"; // displays correctly filesize()*2, that is 4412 * 2 echo "s2=$s2brbr"; /* M$'IE5 displays not writeble characters: tryign to select the end of the string, I get evermore of it (just while I'm selecting !) but this should be a M$'bug; Netscape 4.03 works properly; */ $ris= strstr( $s2, "0d0a0d0a") ; // I'm looking for the first occurrence of that string; I know it is on position x0176 // - here's the problem: echo "lung ris= ".strlen($ris). "brbr"; // I get variable results, between 8077 and 8083 echo "ris=$risbrbr"; /* I get again not writeble or "invisible" characters in IE5; on Netscape I get (eg) "04ffd9R" at the end of the string; */ ? and this is the file (base64_encoded):
[PHP-DEV] RE: PHP 4.0 Bug #9003 Updated: mod_ssl + php4.0.4pl1 crash
BTW, here what I got with ldd httpd libpthread.so.0 = /lib/libpthread.so.0 (0x40019000) libm.so.6 = /lib/libm.so.6 (0x4002c000) libcrypt.so.1 = /lib/libcrypt.so.1 (0x40049000) libdb.so.3 = /lib/libdb.so.3 (0x40077000) libdl.so.2 = /lib/libdl.so.2 (0x400b2000) libc.so.6 = /lib/libc.so.6 (0x400b6000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000) anything wrong thanks, Sherman -Original Message- From: Bug Database [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 February 2001 7:57 PM To: [EMAIL PROTECTED] Subject: PHP 4.0 Bug #9003 Updated: mod_ssl + php4.0.4pl1 crash ID: 9003 Updated by: sniper Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: And as you're using OCI8 make sure you have all the required environment variables set ( http://www.php.net/oci8 ) before starting Apache. --Jani Previous Comments: --- [2001-02-26 03:54:04] [EMAIL PROTECTED] User feedback: --- I try that, but it doesn't work, any version of pthread i need to install 1st??? --- This is what I have: /lib/libpthread-0.8.so Check that apache really is linked with pthread lib: # ldd /usr/local/apps/apache_1.3.14/bin/httpd --Jani --- [2001-02-22 18:58:22] [EMAIL PROTECTED] I think this is the old pthreadg/glibc bug. ie. you have to link your apache with pthread lib. you can configure apache like this: # LDFLAGS=-lpthread ./configure --Jani --- [2001-02-22 09:15:56] [EMAIL PROTECTED] further test, I done the exactly same configuration on RedHat 7.0, it works fine, php + mod_ssl startup perfect. it seems the problem is relate to glibc, pthread??. However, I have to get it work RedHat 6.1, any idea? thanks in advance --- [2001-02-10 07:43:53] [EMAIL PROTECTED] here is GDS trace (gdb) run -X -DSSL -f /usr/local/apps/apache_1.3.14/conf/httpd.conf Starting program: /usr/local/apps/apache_1.3.14/./bin/httpd -X -DSSL -f /usr/local/apps/apache_1.3.14/conf/httpd.conf Program received signal SIGILL, Illegal instruction. 0x40353715 in modf () from /usr/local/apps/apache_1.3.14/libexec/libphp4.so (gdb) bt #0 0x40353715 in modf () from /usr/local/apps/apache_1.3.14/libexec/libphp4.so #1 0x6023ddff in ?? () #2 0x8073547 in ap_fcvt () #3 0x8073c0b in conv_fp () #4 0x8074894 in ap_vformatter () #5 0x8074f98 in ap_snprintf () #6 0x40b09fe4 in ?? () from /usr/local/apps/apache_1.3.14/libexec/libssl.so #7 0x40b09d7e in ?? () from /usr/local/apps/apache_1.3.14/libexec/libssl.so #8 0x40b051c7 in ?? () from /usr/local/apps/apache_1.3.14/libexec/libssl.so #9 0x80571b9 in ap_init_modules () #10 0x8060d15 in standalone_main () #11 0x8061533 in main () #12 0x400b61eb in __libc_start_main (main=0x80611dc main, argc=5, argv=0xbc04, init=0x804f344 _init, fini=0x8097a4c _fini, rtld_fini=0x4000a610 _dl_fini, stack_end=0xbbfc) at ../sysdeps/generic/libc-start.c:90 --- [2001-02-04 13:02:57] [EMAIL PROTECTED] Instructions how to generate a GDB backtrace can be found here: http://bugs.php.net/bugs-generating-backtrace.php --Jani --- 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=9003edit=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 #9450 Updated: File uploading problem
ID: 9450 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: HTTP related Assigned To: Comments: This is fixed in CVS. Try a CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-02-26 09:52:16] [EMAIL PROTECTED] Ooops, I'm very sorry, it was my mistake... Of course everthing works fine, except when uploading picture, it contains "Content-type: " at the beginnig. But I guess it's different bug-report. --- [2001-02-25 21:32:34] [EMAIL PROTECTED] Ok, I have simple form: form type="multipart/form-data" action="./upld.php" method="post" ... input type="file" name="userfile" ... /form and upld.php contains something like this: ... copy($userfile, $newfile); ... The problem is: $userfile, instead of temporary file name, contains original senders's local file name $userfile_name is empty If I didn't provide enought information, please drop me a note :-) Good luck, Korba --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9450edit=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 #9468 Updated: fread stops reading
ID: 9468 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Filesystem function related Assigned To: Comments: $filenum=fopen($path . "/" . $attachment_name,"rb"); Read the manual page: http://www.php.net/fopen Where it says: "The mode may contain the letter 'b'. This is useful only on systems which differentiate between binary and text files (i.e., it's useless on Unix)." --Jani Previous Comments: --- [2001-02-26 14:40:36] [EMAIL PROTECTED] i am using php 4.0.4 (build 20.12.2000) on w2k (build 2195)with iis5. pls. note that fread function has a problem reading a binary file (*.zip) afer uploading. fread stops after reading 389 bytes instead of reading the whole file using following code: $filesize=filesize($path . "/" . $attachment_name); $filenum=fopen($path . "/" . $attachment_name,"r"); $filestuff=fread($filenum,$filesize); fclose($filenum); pls. help --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9468edit=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 #9473 Updated: Blank screen. Scripting engine does not run
ID: 9473 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: *Configuration Issues Assigned To: Comments: Please ask support questions on [EMAIL PROTECTED] / [EMAIL PROTECTED] --Jani Previous Comments: --- [2001-02-27 00:39:07] [EMAIL PROTECTED] I am not sure what to send as I have done every thing in the documentation. My Internet Explorer 5.5 browser shows me my file phpinfo.php as blank. When I do a view source, I see the contents ? phpinfo(); ?. I changed the text to be ?php phpinfo(); ?. Same problem. It 1) I unzipped php-4.0.4pl1-Win32.zip into my L: drive as L:php on my Windows 2000 professional PC. Followed the instructions. In regards to the MM console, created a virtual directory php and provided read, write, script and execute. Restarted service no luck. 2) Decided to install Apache 1.3. Followed the instructions to modify the httpd.conf file. Restarted the service same symptoms. It process normal htm files but refuses to process the php commands. 3) Decided to install windows 98 and use PWS. Followed the instructions which included modifying registry settings. Still nothing. 4) Backed off all 3 approaches and tried to install easywindows in case I made mistakes manually for IIS 5, Apache 1.3, and PWS. Same problem. 5) Tried to do a google search and went to the bugs.php.net and found an article on my symptoms. One of them was for PWs which indicated that I should modify my php.ini and change the document root and modify for browscap. Still nothing. Anyways, here is a php.ini from my windows 2000 PC. I don't know why IIS 5 will not process php.exe when I used configuration to define php or even my isapi file php4ts.dll from isapi tab for my php files. Thanks in advance Ken [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
[PHP-DEV] Session string (a comment)
Hey, I've recently developed a parser which understands PHP serialized objects (both read and write), and therefore I had to understand how the objects are serialized in PHP - 100%. This is only meant as a comment. Feel free to shrug it off. 1. The way associative arrays are implemented bites. The counting up which occurs in the array to figure out what is associative and what is not should be implemented fully that way instead of a mix. 2. Data comes in tuples of two: myvar-declmyvar-data. Meaning: s:12:"creationTime";i:974886470; The two tuples are always seperated by a ";" UNLESS the datatype is an array. This makes tokenizing a bitch basically. Change: s:"5":"types";a:0:{}s:7:. To: s:"5":"types";a:0:{};s:7:. ^ (Same thing with Objects inside objects I think, not checked) Just my $0.02 Soeren Staun-Pedersen - [EMAIL PROTECTED] -- "The internet is full, beat it" - Me. -- PHP Development Mailing List http://www.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 #9418 Updated: Upload image file is broken
ID: 9418 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *General Issues Assigned To: Comments: And the example script is where? --Jani Previous Comments: --- [2001-02-25 22:28:23] [EMAIL PROTECTED] Hi! 1. yes, uploaded file exsit 2. filesize uploaded file equal filesize of original, but cmp say, what this files differ cmp file1.gif file2.gif file1.gif file2.gif differ: char 8, line 1 3. both file begin with string: GIF89 4. I open files in browser using http address: http://my.website.com/path/file.gif --- [2001-02-25 18:28:55] [EMAIL PROTECTED] Reopening. jmoore : what's the hurry to close something just one day after the issue is reported? nekto replied "What info yuo need?" nekto: well does the uploaded file exist? does the file 0 filesize? what are the differences between the files - is the uploaded file prepended with a content-type header? what code are you using to reference the uploaded file? --- [2001-02-24 13:23:34] [EMAIL PROTECTED] Not enough information supplied closing. --- [2001-02-23 05:04:14] [EMAIL PROTECTED] I have a problem with upload gif image (original differ from upload image). With yours recommendation, i install last cvs version of php4. But this not solved my problem. What i must doing for solving my problem? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9418edit=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 #9477: Object is destroyed before references all released
From: [EMAIL PROTECTED] Operating system: Linux-Mandrake PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: Object is destroyed before references all released standard php rpm 4.04p1 from rpmfind.net Scripts are clearly marked and available in source format as well as showing necessary details at this URL. http://www.poetryunlimited.com/test This bug will create significant problems when dealing with object references as needed in advanced patterns (GoF 1994). Hope you guys can figure it out. I would hate to have to have extra objects kicking around just because of whatever. -- Edit Bug report at: http://bugs.php.net/?id=9477edit=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 #9478: Two different types compare problem!
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Math related Bug description: Two different types compare problem! ### CODE ### $Flag = 0; if ( $Flag == 'N' ) echo "1"; else echo "2"; ### END ### Result: 1 If the $Flag is integer value and 'N' non integer, why this operation gives true as the result? This is different types 0 and 'N', but if the programm can compare this values, it will be better to give "false"! Can you explane this ? -- Edit Bug report at: http://bugs.php.net/?id=9478edit=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 #9478 Updated: Two different types compare problem!
ID: 9478 Updated by: stas Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Math related Assigned To: Comments: Use === for exact comparison. == is 'numeric' comparison. Previous Comments: --- [2001-02-27 08:59:02] [EMAIL PROTECTED] ### CODE ### $Flag = 0; if ( $Flag == 'N' ) echo "1"; else echo "2"; ### END ### Result: 1 If the $Flag is integer value and 'N' non integer, why this operation gives true as the result? This is different types 0 and 'N', but if the programm can compare this values, it will be better to give "false"! Can you explane this ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9478edit=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] CVS Account Request
Full name: Ivan Ivanov Email: [EMAIL PROTECTED] ID: johnt Purpose: web programming -- PHP Development Mailing List http://www.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 #9468 Updated: fread stops reading
great !!! thanks for your quick reply. my problem ist solved now. could not find this in my printed manual. best regards helmut On 27 Feb 2001 13:29:36 - Bug Database [EMAIL PROTECTED] wrote: ID: 9468 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Filesystem function related Assigned To: Comments: $filenum=fopen($path . "/" . $attachment_name,"rb"); Read the manual page: http://www.php.net/fopen Where it says: "The mode may contain the letter 'b'. This is useful only on systems which differentiate between binary and text files (i.e., it's useless on Unix)." --Jani Previous Comments: --- [2001-02-26 14:40:36] [EMAIL PROTECTED] i am using php 4.0.4 (build 20.12.2000) on w2k (build 2195)with iis5. pls. note that fread function has a problem reading a binary file (*.zip) afer uploading. fread stops after reading 389 bytes instead of reading the whole file using following code: $filesize=filesize($path . "/" . $attachment_name); $filenum=fopen($path . "/" . $attachment_name,"r"); $filestuff=fread($filenum,$filesize); fclose($filenum); pls. help --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9468edit=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 #8320 Updated: Comiling with Adabas failes
ID: 8320 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Adabas-D related Description: Comiling with Adabas failes 4.0.4pl1 still has the same problem ./configure --with-mysql --with-adabas=/var/adabas/ --with-apache=../apache_1.3.17 --enable-track-vars - no problems make [...] Making all in odbc make[2]: Entering directory `/usr/src/php-4.0.4pl1/ext/odbc' make[3]: Entering directory `/usr/src/php-4.0.4pl1/ext/odbc' gcc -I. -I/usr/src/php-4.0.4pl1/ext/odbc -I/usr/src/php-4.0.4pl1/main -I/usr/src/php-4.0.4pl1 -I/usr/src/apache_1.3.17/src/include -I/usr/src/apache_1.3.17/src/os/unix -I/usr/src/php-4.0.4pl1/Zend -I/usr/src/php-4.0.4pl1/ext/mysql/libmysql -I/var/adabas//incl -I/usr/src/php-4.0.4pl1/ext/xml/expat/xmltok -I/usr/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr/src/php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c php_odbc.c touch php_odbc.lo php_odbc.c: In function `odbc_column_lengths': php_odbc.c:650: `SQLUSMALLINT' undeclared (first use in this function) php_odbc.c:650: (Each undeclared identifier is reported only once php_odbc.c:650: for each function it appears in.) make[3]: *** [php_odbc.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.0.4pl1/ext/odbc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.4pl1/ext/odbc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 is no one developing the odbc interface for php? Previous Comments: --- [2001-01-03 09:50:04] [EMAIL PROTECTED] ./configure (with ./configure --with-mysql --with-adabas=/var/adabas --with-apache=../apache_1.3.14 --enable-track-vars ) makes no problems. make end with the folowing: Making all in odbc make[2]: Entering directory `/usr/src/php-4.0.4/ext/odbc' make[3]: Entering directory `/usr/src/php-4.0.4/ext/odbc' gcc -I. -I/usr/src/php-4.0.4/ext/odbc -I/usr/src/php-4.0.4/main -I/usr/src/php-4.0.4 -I/usr/src/apache_1.3.14/src/include -I/usr/src/apache_1.3.14/src/os/unix -I/usr/src/php-4.0.4/Zend -I/usr/src/php-4.0.4/ext/mysql/libmysql -I/var/adabas/incl -I/usr/src/php-4.0.4/ext/xml/expat/xmltok -I/usr/src/php-4.0.4/ext/xml/expat/xmlparse -I/usr/src/php-4.0.4/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c php_odbc.c touch php_odbc.lo php_odbc.c: In function `odbc_column_lengths': php_odbc.c:650: `SQLUSMALLINT' undeclared (first use in this function) php_odbc.c:650: (Each undeclared identifier is reported only once php_odbc.c:650: for each function it appears in.) php_odbc.c:651: `len' undeclared (first use in this function) make[3]: *** [php_odbc.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4/ext' make: *** [all-recursive] Error 1 my ext/odbc/php_odbc.c looks like: #if defined(HAVE_SOLID) || defined(HAVE_SOLID_30) /* this seems to be necessary for Solid2.3 ( tested by * [EMAIL PROTECTED]) and Solid 3.0 (tested by [EMAIL PROTECTED]) * Solid does not seem to declare a SQLINTEGER, but it does declare a * SQL_INTEGER which does not work (despite being the same type as a SDWORD. * Solid 3.5 does not have this issue. */ defined(HAVE_ADABAS); SQLINTEGER len; #endif --- [2000-12-21 04:09:53] [EMAIL PROTECTED] The error still occures in version 4.0.4 Making all in odbc make[2]: Entering directory `/usr/src/php-4.0.4/ext/odbc' make[3]: Entering directory `/usr/src/php-4.0.4/ext/odbc' gcc -I. -I/usr/src/php-4.0.4/ext/odbc -I/usr/src/php-4.0.4/main -I/usr/src/php-4.0.4 -I/usr/src/apache_1.3.14/src/include -I/usr/src/apache_1.3.14/src/os/unix -I/usr/src/php-4.0.4/Zend -I/usr/src/php-4.0.4/ext/mysql/libmysql -I/var/adabas/incl -I/usr/src/php-4.0.4/ext/xml/expat/xmltok -I/usr/src/php-4.0.4/ext/xml/expat/xmlparse -I/usr/src/php-4.0.4/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c php_odbc.c touch php_odbc.lo php_odbc.c: In function `odbc_column_lengths': php_odbc.c:650: `SQLUSMALLINT' undeclared (first use in this function) php_odbc.c:650: (Each undeclared identifier is reported only once php_odbc.c:650: for each function it appears in.) make[3]: *** [php_odbc.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4/ext' make: *** [all-recursive] Error 1 --- [2000-12-19 07:25:13] [EMAIL PROTECTED] ./configure --with-mysql --with-adabas=/var/adabas --with-apache=../apache_1.3.14 --enable-track-vars no errors make:
[PHP-DEV] PHP 4.0 Bug #8320 Updated: Comiling with Adabas failes
ID: 8320 Updated by: kara Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Adabas-D related Assigned To: Comments: Fixed in CVS As to the missing symbols reported, please upgrade to a newer version of the Adabas libs. Previous Comments: --- [2001-02-27 10:33:14] [EMAIL PROTECTED] 4.0.4pl1 still has the same problem ./configure --with-mysql --with-adabas=/var/adabas/ --with-apache=../apache_1.3.17 --enable-track-vars - no problems make [...] Making all in odbc make[2]: Entering directory `/usr/src/php-4.0.4pl1/ext/odbc' make[3]: Entering directory `/usr/src/php-4.0.4pl1/ext/odbc' gcc -I. -I/usr/src/php-4.0.4pl1/ext/odbc -I/usr/src/php-4.0.4pl1/main -I/usr/src/php-4.0.4pl1 -I/usr/src/apache_1.3.17/src/include -I/usr/src/apache_1.3.17/src/os/unix -I/usr/src/php-4.0.4pl1/Zend -I/usr/src/php-4.0.4pl1/ext/mysql/libmysql -I/var/adabas//incl -I/usr/src/php-4.0.4pl1/ext/xml/expat/xmltok -I/usr/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr/src/php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c php_odbc.c touch php_odbc.lo php_odbc.c: In function `odbc_column_lengths': php_odbc.c:650: `SQLUSMALLINT' undeclared (first use in this function) php_odbc.c:650: (Each undeclared identifier is reported only once php_odbc.c:650: for each function it appears in.) make[3]: *** [php_odbc.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.0.4pl1/ext/odbc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.4pl1/ext/odbc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 is no one developing the odbc interface for php? --- [2001-01-03 09:50:04] [EMAIL PROTECTED] ./configure (with ./configure --with-mysql --with-adabas=/var/adabas --with-apache=../apache_1.3.14 --enable-track-vars ) makes no problems. make end with the folowing: Making all in odbc make[2]: Entering directory `/usr/src/php-4.0.4/ext/odbc' make[3]: Entering directory `/usr/src/php-4.0.4/ext/odbc' gcc -I. -I/usr/src/php-4.0.4/ext/odbc -I/usr/src/php-4.0.4/main -I/usr/src/php-4.0.4 -I/usr/src/apache_1.3.14/src/include -I/usr/src/apache_1.3.14/src/os/unix -I/usr/src/php-4.0.4/Zend -I/usr/src/php-4.0.4/ext/mysql/libmysql -I/var/adabas/incl -I/usr/src/php-4.0.4/ext/xml/expat/xmltok -I/usr/src/php-4.0.4/ext/xml/expat/xmlparse -I/usr/src/php-4.0.4/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c php_odbc.c touch php_odbc.lo php_odbc.c: In function `odbc_column_lengths': php_odbc.c:650: `SQLUSMALLINT' undeclared (first use in this function) php_odbc.c:650: (Each undeclared identifier is reported only once php_odbc.c:650: for each function it appears in.) php_odbc.c:651: `len' undeclared (first use in this function) make[3]: *** [php_odbc.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4/ext' make: *** [all-recursive] Error 1 my ext/odbc/php_odbc.c looks like: #if defined(HAVE_SOLID) || defined(HAVE_SOLID_30) /* this seems to be necessary for Solid2.3 ( tested by * [EMAIL PROTECTED]) and Solid 3.0 (tested by [EMAIL PROTECTED]) * Solid does not seem to declare a SQLINTEGER, but it does declare a * SQL_INTEGER which does not work (despite being the same type as a SDWORD. * Solid 3.5 does not have this issue. */ defined(HAVE_ADABAS); SQLINTEGER len; #endif --- [2000-12-21 04:09:53] [EMAIL PROTECTED] The error still occures in version 4.0.4 Making all in odbc make[2]: Entering directory `/usr/src/php-4.0.4/ext/odbc' make[3]: Entering directory `/usr/src/php-4.0.4/ext/odbc' gcc -I. -I/usr/src/php-4.0.4/ext/odbc -I/usr/src/php-4.0.4/main -I/usr/src/php-4.0.4 -I/usr/src/apache_1.3.14/src/include -I/usr/src/apache_1.3.14/src/os/unix -I/usr/src/php-4.0.4/Zend -I/usr/src/php-4.0.4/ext/mysql/libmysql -I/var/adabas/incl -I/usr/src/php-4.0.4/ext/xml/expat/xmltok -I/usr/src/php-4.0.4/ext/xml/expat/xmlparse -I/usr/src/php-4.0.4/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c php_odbc.c touch php_odbc.lo php_odbc.c: In function `odbc_column_lengths': php_odbc.c:650: `SQLUSMALLINT' undeclared (first use in this function) php_odbc.c:650: (Each undeclared identifier is reported only once php_odbc.c:650: for each function it appears in.) make[3]: *** [php_odbc.lo] Error 1 make[3]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/php-4.0.4/ext/odbc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4/ext' make: *** [all-recursive] Error 1
[PHP-DEV] PHP 4.0 Bug #9483: Wrong information about version of HTTP in function phpinfo()
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: Apache related Bug description: Wrong information about version of HTTP in function phpinfo() Function phpinfo() tells me, that SERVER_PROTOCOL is HTTP/1.0, but correct information have to be HTTP/1.1 Apache version -- 1.3.17 configur command -- './configure' '--with-pgsql' '--with-apache=/usr/src/apache_1.3.17' On WIN95 with the same PHP and APACHE mentioned mistake?? does not appear. -- Edit Bug report at: http://bugs.php.net/?id=9483edit=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 #9484: can't find OCI.dll
From: [EMAIL PROTECTED] Operating system: PHP version: 4.0.4pl1 PHP Bug Type: OCI8 related Bug description: can't find OCI.dll We use an apache server. When we start apache, an error message say that it can't find OCI.dll in the directory apache and OCI.dll doesn't exist in this directory. Where we can find this file or what we can do please ? -- Edit Bug report at: http://bugs.php.net/?id=9484edit=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 #9485: Missing libsasl.dll
From: [EMAIL PROTECTED] Operating system: Windows NT 4 SP5 PHP version: 4.0.4pl1 PHP Bug Type: LDAP related Bug description: Missing libsasl.dll PHP4 Win32 binaries distribution contains a dll called "php_ldap.dll", but it needs a missing dll called "libsasl.dll" -- Edit Bug report at: http://bugs.php.net/?id=9485edit=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 #9456 Updated: dns.c
ID: 9456 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Failure Description: dns.c Yep, you seem to be right. I changed to an older version and it worked. Thanks! - Rob. Previous Comments: --- [2001-02-26 08:02:48] [EMAIL PROTECTED] It sounds like gcc doesn't know enough about the StrongArm - the code dump is of the internal retargetable code that gcc generates. I would suggest trying to either update gcc or perhaps move back to an earlier version where this problem is not present, or using some other C compiler, if possible. --- [2001-02-26 07:04:27] [EMAIL PROTECTED] I'm trying to compile 4.0.4pl1 on a StromARM machine (www.netwinder.org) gcc version=2.95.1 My configureline: ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-xml --with-sybase-ct=/usr/local/freeds It stops when compiling "dns.c" with errormessage: /bin/sh /opt/php-4.0.4pl1/libtool --silent --mode=compile gcc -I. -I/opt/php-4.0.4pl1/ext/standard -I/opt/php-4.0.4pl1/main -I/opt/php-4.0.4pl1 -I/usr/include/apache -I/opt/php-4.0.4pl1/Zend -I/opt/php-4.0.4pl1/ext/mysql/libmysql -I/usr/local/freetds/include -I/opt/php-4.0.4pl1/ext/xml/expat/xmltok -I/opt/php-4.0.4pl1/ext/xml/expat/xmlparse -I/opt/php-4.0.4pl1/TSRM -DLINUX=2 -DUSE_EXPAT -DXML_BYTE_ORDER=12 -g -O2 -c dns.c dns.c: In function `php_if_getmxrr': dns.c:306: internal error--unrecognizable insn: (insn 785 784 309 (set (reg:SI 0 r0) (umin:SI (reg/v:SI 0 r0) (const_int 8192 [0x2000]))) -1 (nil) (nil)) Why? I'm not an expert. Could it be because I'm on a StrongArm processor machine...? The configure script does not fail, so this would be the problem... Regards, Roberth Edberg, REMANDO AB [EMAIL PROTECTED] --- Full Bug description available at: http://bugs.php.net/?id=9456 -- PHP Development Mailing List http://www.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] Functions still execure when arguments are omitted
?php function my_func($a) { echo 'a'; } my_func(); ? The above code snippet will result in "a" being printed, is there a reason why functions execute even when arguments are omitted? -Marten. Icq# 38863127 -- PHP Development Mailing List http://www.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] ctype function (re?)naming
One of the below IMO. Andi At 10:26 AM 2/26/2001 +0100, Hartmut Holzgraefe wrote: RFC: what should their names be in 4.0.5? ( ) stay with ctype_alpha() ... (X) switch to ctype_isalpha() ... () switch to ctype_isalpha() ... and have ctype_alpha() aliases (X) switch to ctype_is_alpha() ... ( ) switch to ctype_is_alpha() ... and have ctype_alpha() aliases ( ) (fill in your idea here) -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 Besuchen Sie uns auf der CeBIT 2001 - in 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] -- PHP Development Mailing List http://www.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] SLEEP and MAXEXECUTIONTIME and NAUGHTY modules
At 12:11 PM 2/26/2001 +, Sam Liddicott wrote: I notice that usleep and sleep both clash on solaris with Max-execution-time. 1) I notice various modules using sleep: db, hyperwave, mysql, oci8, satellite which seems to break max execution time. Any idea why and where they are using sleep()? 2) Could we not use: #include unistd.h #define sleep (n) \ { struct timeval tv; \ tv.tv_sec=n; \ tv.tv_usec=0; \ select(0,NULL,NULL,NULL,tv); \ } Where did you see that? Andi as well as being more accurate it would not break max-execution-time. And while we are at it define php_msleep for milliseconds? -- PHP Development Mailing List http://www.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] SSL socket support (LONG!)
Do you have time to map where in PHP we are currently using socket code? I think according to how many places and how we are using it, it'll help us decide how much redesigning we can do. Also keep Win32 in mind while thinking of this. I didn't have much time but I did read through your RFC quickly. On a whole it looks quite interesting and I'd be quite happy to nuke the SOCK_FGETS() and friends from fopen_wrappers.h and other places. Also try and keep in mind regular files. Maybe we can get rid of the ugly code which is in quite a few places in the source tree which does an if (issock) Messy letter but I hope you get my idea :) Andi -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9486 Updated: seems to be memory related
ID: 9486 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: Can you possible reproduce it with a script that does not use databases? It's kinda hard to reproduce this way for us. Previous Comments: --- [2001-02-27 15:16:25] [EMAIL PROTECTED] ?php # Hi: # # Running PHP 4.0.5-dev Feb 20 2001 # Windows NT 4.0 SP 6a # Apache 1.3.6 # MySQL 3.23.32 # # The problem does not exist in 4.0.4-dev Nov 23 2000. # # Problem arises when doing an isset() on a # a multidimensional array inside a function # that has that variable as an optional argument # but the argument hasn't been set, so it # defaults to ''. # # But, it's not that simple. Problem comes # and goes depending on how much memory is # being used. # # Also, situation is only happening when # using results from mysql_field_name(). # # In addition, sometimes the page gets # created by PHP and sent to the browser, # but PHP crashes anyway. # # I've already spent six hours trying to # pinpoint what's going on, though haven't # been able to hit the nail on the head yet. # # Good luck. # # --Dan class Test { var $H = 'localhost'; var $U = 'track'; var $P = 'flight9'; var $D = 'SessionTracker'; function Setup() { $this-C = @mysql_connect("$this-H", "$this-U", "$this-P"); $this-Hand = @mysql_select_db("$this-D", $this-C); $this-Res = @mysql_query("$this-Query",$this-C); $this-Cols = @mysql_num_fields($this-Res); } function FieldName($FileName,$FileLine,$ColNum) { if ( $Output = @mysql_field_name($this-Res, $ColNum) ) { return $Output; } else { echo "Field Name Had Problem"; } } # BEGIN ALTERNATIVE TEST FUNCTIONS HERE... # Uses MySQL data, but doesn't have the "$Col" argument. function Good() { for ($Count = 0; $Count $this-Cols; $Count++) { $FieldNames[] = $this-FieldName('test','here', $Count); if ( !isset($Col[$FieldNames[$Count]]['hide']) ) { $VisibleFields++; echo "$Count = $FieldNames[$Count]. "; } } } # Doesn't use MySQL data, but uses "$Col" argument. function NoProblem($Col='') { for ($Count = 0; $Count 3; $Count++) { $FieldNames[] = 'dog'; $FieldNames[] = 'somename'; $FieldNames[] = 'cat'; if ( !isset($Col[$FieldNames[$Count]]['hide']) ) { $VisibleFields++; echo "$Count = $FieldNames[$Count]. "; } } } # This is the function which causes the problems. # Uses MySQL data and has a "$Col" argument. function Bad($Col='') { for ($Count = 0; $Count $this-Cols; $Count++) { # # "Field Name Call -- Short" # $FieldNames[] = $this-FieldName('test','here', $Count); # # "Field Name Call -- Long" # # $FieldNames[] = $this-FieldName("FieldName() had error when RSATbl() was called by $FileName","$FileLine", $Count); # PROBLEM HAPPENS ON NEXT LINE # Commenting it and the closing } gets the # problems to stop. if ( !isset($Col[$FieldNames[$Count]]['hide']) ) { # Commenting out the following line # completely shifts the pattern of what # is okay, crashes and infinite loops! $VisibleFields++; echo "$Count = $FieldNames[$Count]. "; } }# End of for $Count }# End of Bad() }# End of class $SQL = new Test; # TEST SCENARIOS FOR RUNNING THE BAD() FUNCTION # WHEN:--- # "Field Name Call -- Short" # "$VisibleFields++;" is open # # Okay if 1 or 2 Columns: # $SQL-Query = "SELECT concat('hi') as H"; # $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B"; # Infinite Loop if 3 Columns: # $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B, concat('why') as W"; # Crashes if 4 Columns: $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B, concat('why') as W, concat('oh') as O"; # WHEN:--- # "Field Name Call -- Long" # "$VisibleFields++;" is open # # Okay if 1 Column: # $SQL-Query = "SELECT concat('hi') as H"; # Infinite Loop if 2 Columns: # $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B"; # Crash if 3 or more Columns: # $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B, concat('why') as W"; # $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B, concat('why') as W, concat('oh') as O"; # WHEN:--- # "Field Name Call --
[PHP-DEV] PHP 4.0 Bug #9486 Updated: seems to be memory related
ID: 9486 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Reproduceable crash Description: seems to be memory related I took the ease of your being able to run the tests via database into account. The queries don't call any fields. They just call the concat() function. All you need to do with the database is put in host, user, pass, and name of a valid database. I haven't been able to reproduce it w/o the databse connection. Previous Comments: --- [2001-02-27 15:39:18] [EMAIL PROTECTED] Can you possible reproduce it with a script that does not use databases? It's kinda hard to reproduce this way for us. --- [2001-02-27 15:16:25] [EMAIL PROTECTED] ?php # Hi: # # Running PHP 4.0.5-dev Feb 20 2001 # Windows NT 4.0 SP 6a # Apache 1.3.6 # MySQL 3.23.32 # # The problem does not exist in 4.0.4-dev Nov 23 2000. # # Problem arises when doing an isset() on a # a multidimensional array inside a function # that has that variable as an optional argument # but the argument hasn't been set, so it # defaults to ''. # # But, it's not that simple. Problem comes # and goes depending on how much memory is # being used. # # Also, situation is only happening when # using results from mysql_field_name(). # # In addition, sometimes the page gets # created by PHP and sent to the browser, # but PHP crashes anyway. # # I've already spent six hours trying to # pinpoint what's going on, though haven't # been able to hit the nail on the head yet. # # Good luck. # # --Dan class Test { var $H = 'localhost'; var $U = 'track'; var $P = 'flight9'; var $D = 'SessionTracker'; function Setup() { $this-C = @mysql_connect("$this-H", "$this-U", "$this-P"); $this-Hand = @mysql_select_db("$this-D", $this-C); $this-Res = @mysql_query("$this-Query",$this-C); $this-Cols = @mysql_num_fields($this-Res); } function FieldName($FileName,$FileLine,$ColNum) { if ( $Output = @mysql_field_name($this-Res, $ColNum) ) { return $Output; } else { echo "Field Name Had Problem"; } } # BEGIN ALTERNATIVE TEST FUNCTIONS HERE... # Uses MySQL data, but doesn't have the "$Col" argument. function Good() { for ($Count = 0; $Count $this-Cols; $Count++) { $FieldNames[] = $this-FieldName('test','here', $Count); if ( !isset($Col[$FieldNames[$Count]]['hide']) ) { $VisibleFields++; echo "$Count = $FieldNames[$Count]. "; } } } # Doesn't use MySQL data, but uses "$Col" argument. function NoProblem($Col='') { for ($Count = 0; $Count 3; $Count++) { $FieldNames[] = 'dog'; $FieldNames[] = 'somename'; $FieldNames[] = 'cat'; if ( !isset($Col[$FieldNames[$Count]]['hide']) ) { $VisibleFields++; echo "$Count = $FieldNames[$Count]. "; } } } # This is the function which causes the problems. # Uses MySQL data and has a "$Col" argument. function Bad($Col='') { for ($Count = 0; $Count $this-Cols; $Count++) { # # "Field Name Call -- Short" # $FieldNames[] = $this-FieldName('test','here', $Count); # # "Field Name Call -- Long" # # $FieldNames[] = $this-FieldName("FieldName() had error when RSATbl() was called by $FileName","$FileLine", $Count); # PROBLEM HAPPENS ON NEXT LINE # Commenting it and the closing } gets the # problems to stop. if ( !isset($Col[$FieldNames[$Count]]['hide']) ) { # Commenting out the following line # completely shifts the pattern of what # is okay, crashes and infinite loops! $VisibleFields++; echo "$Count = $FieldNames[$Count]. "; } }# End of for $Count }# End of Bad() }# End of class $SQL = new Test; # TEST SCENARIOS FOR RUNNING THE BAD() FUNCTION # WHEN:--- # "Field Name Call -- Short" # "$VisibleFields++;" is open # # Okay if 1 or 2 Columns: # $SQL-Query = "SELECT concat('hi') as H"; # $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B"; # Infinite Loop if 3 Columns: # $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B, concat('why') as W"; # Crashes if 4 Columns: $SQL-Query = "SELECT concat('hi') as H, concat('bye') as B, concat('why') as W, concat('oh') as O"; # WHEN:--- # "Field Name Call -- Long" # "$VisibleFields++;" is open # # Okay if 1 Column: #
[PHP-DEV] Not a Bug but Please...CVS doubt!?
Hello, partners... sorry for interrupt the grate list with this message, i need know... ..how i can get the cvs account? ...Thanks..! ...and Where i can find info about modules for php3? ..Celestino Roberto
Re: [PHP-DEV] Not a Bug but Please...CVS doubt!?
On Tue, 27 Feb 2001, Celestino Roberto Alejandro wrote: Hello, partners... sorry for interrupt the grate list with this message, i need know... ..how i can get the cvs account? Why do you need a CVS account? Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] SRM: Site Resource Manager - www.vl-srm.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 #9487: POST using HTTP/1.0 HTTP/1.1 mix makes PHP crash
From: [EMAIL PROTECTED] Operating system: NetBSD 1.5S (-current) PHP version: 4.0.4pl1 PHP Bug Type: Reproduceable crash Bug description: POST using HTTP/1.0 HTTP/1.1 mix makes PHP crash I'm using Apache 1.3.17, PHP 4.0.4pl1. Seems like PHP doesn't like some POST data if they are send via HTTP/1.0 and HTTP/1.1 in different requests. The script in question is like this (name: var.php): FORM NAME="FORM_POST" ACTION="var.php" METHOD=POST Form with POST:INPUT TYPE=SUBMIT NAME="TEST" VALUE="+ìèøýáíé" /FORM The way to crash PHP: 1) in HTTP/1.0 browser (like Netscape 4.76), click on the submit button couple of times, enough so that the POST request got to each running httpd daemon 2) do HTTP/1.1 request, possibly via telnet, like: POST /var.php HTTP/1.1 Host: localhost Content-Length: 1 at this point, server should wait for the data, but it crashes instead. If I look at traceback in gdb, it crashes in _efree() (I can provide the exact backtrace if needed). If the bug is not repeatable for you and would need some more information, feel free to contact me. -- Edit Bug report at: http://bugs.php.net/?id=9487edit=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 #9488 Updated: Imap connection silently fails.
ID: 9488 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: IMAP related Assigned To: Comments: Change the '||' to 'or' and it should work ok. --Jani Previous Comments: --- [2001-02-27 17:09:01] [EMAIL PROTECTED] This problem is similar to that I submitted in bug # 7816, however it expands on it. It appears that the imap_open function fails silently if you have used any other socket-type function previously in the script. Specifically I have seen this with calls to fsockopen, and also the mysql_connect functions. In a script that I have written I was trying to athenticate the user before calling the imap_open function, because the imap_open function takes so long to fail when given an incorrect username-password pair. Origanally I was trying to authenticate to a mysql radius database for authentication, however when the imap function refused to work with mysql_connect called prior to it, I tried using fsockopen to connect to the pop3 port on the server so that I could manually attemp authentication. However this produced the same results as the mysql attempt. Specifically I am calling a function for imap_open in the following manner... $mbox = imap_open("{my.mail.server:143}" . $mailbox, $username, $password) || die ("can't connect: " . imap_last_error()); This works fine unless I have call fsockopen or mysql_connect before this. If you use either of those functions prior to this statement in the php script however the imap_open function appears to succeed and a value is assigned to $mbox, however subsequent calls to imap functions attempting to use the "imap stream" stored in $mbox will fail with an error stating that $mbox is not a valid imap stream. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9488edit=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 #7816 Updated: Imap + mysql fails
ID: 7816 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: IMAP related Assigned To: Comments: || -- OR Previous Comments: --- [2000-11-14 12:44:18] [EMAIL PROTECTED] Opening a connection to a mysql database server before opening a connection to an imap server appears to fail. In a script that I was testing a opened a mysql database to authenticate a user to a RADIUS table before opening an imap connection for the user. The imap_open function returned something other than false, however subsequent calls to that imap connection would fail. Specifically doing... ? $db_server = "my.db.server"; $db_username = "username"; $db_password = "*"; $mailbox = "{myimap.server.com:143}INBOX"; $imap_user = "myimapuser"; $imap_password = "myimappassword"; $mysql_connection = mysql_open($db_server, $db_username, $db_password); $mbox = imap_open($mailbox, $imap_user, $imap_password); || die("imap didn't work: " . imap_last_error()); echo "This is my imap stream: " . $mbox . "br"; if (imap_ping($mbox)) { echo "Imap is alive!br"; } else { echo "Imap is dead!br"; } ? Will always result in an output of This is my imap stream: 1 (or some other number) Imap is dead! However simply reversing the order of the mysql_open and imap_open statements so that you open the imap connection first seems to allow both imap and mysql to function correctly. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7816edit=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 #9489: The mail() function doesn't return the success or error
From: [EMAIL PROTECTED] Operating system: solaris and freebsd PHP version: 4.0.4pl1 PHP Bug Type: Mail related Bug description: The mail() function doesn't return the success or error The mail() function give no return value since 4.0.3. In earlier version I've got a return value if the mail has been sent or not. I've tried to set the sendmail_path in the php.ini without success. Nils Hoyer -- Edit Bug report at: http://bugs.php.net/?id=9489edit=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 #9473 Updated: Blank screen. Scripting engine does not run
ID: 9473 User Update by: [EMAIL PROTECTED] Status: Bogus Bug Type: *Configuration Issues Description: Blank screen. Scripting engine does not run Thanks for the advice, I have tried reading through the articles but no answer. I guess I will need to find a different scripting engine to meet my deadlines. Previous Comments: --- [2001-02-27 08:42:46] [EMAIL PROTECTED] Please ask support questions on [EMAIL PROTECTED] / [EMAIL PROTECTED] --Jani --- [2001-02-27 00:39:07] [EMAIL PROTECTED] I am not sure what to send as I have done every thing in the documentation. My Internet Explorer 5.5 browser shows me my file phpinfo.php as blank. When I do a view source, I see the contents ? phpinfo(); ?. I changed the text to be ?php phpinfo(); ?. Same problem. It 1) I unzipped php-4.0.4pl1-Win32.zip into my L: drive as L:php on my Windows 2000 professional PC. Followed the instructions. In regards to the MM console, created a virtual directory php and provided read, write, script and execute. Restarted service no luck. 2) Decided to install Apache 1.3. Followed the instructions to modify the httpd.conf file. Restarted the service same symptoms. It process normal htm files but refuses to process the php commands. 3) Decided to install windows 98 and use PWS. Followed the instructions which included modifying registry settings. Still nothing. 4) Backed off all 3 approaches and tried to install easywindows in case I made mistakes manually for IIS 5, Apache 1.3, and PWS. Same problem. 5) Tried to do a google search and went to the bugs.php.net and found an article on my symptoms. One of them was for PWs which indicated that I should modify my php.ini and change the document root and modify for browscap. Still nothing. Anyways, here is a php.ini from my windows 2000 PC. I don't know why IIS 5 will not process php.exe when I used configuration to define php or even my isapi file php4ts.dll from isapi tab for my php files. Thanks in advance Ken [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
[PHP-DEV] PHP 4.0 Bug #8545 Updated: Session variables not carried forward in Netscape Client
ID: 8545 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: *Session related Assigned To: Comments: Does this happen with latest CVS snapshot from http://snaps.php.net/ ?? --Jani Previous Comments: --- [2001-01-16 08:03:21] [EMAIL PROTECTED] Hi, an update on this. This problem is observed if the server type in apache web server is INETD. If we run apache as standalone it works fine. can u check this and revert why sessions are not working in netscape if apache runs as inetd. rgds Bhaskar --- [2001-01-10 06:59:28] [EMAIL PROTECTED] can i have the design team views asap. thanks in advance Bhaskar --- [2001-01-08 04:42:01] [EMAIL PROTECTED] I am attaching the script of two files first.php and second.php which can be used to reproduce this. beginning of first.php- ? session_start(); session_register(test); $test="firstpage"; ? html head titlePhp Bug reporting page/title/head body a href="second.php"Click here to goto next page/a/table /body /html -end of first.php--- ---beginning of second.php--- ? session_start(); echo $test; session_unset();? htmlhead titlePhp Bug reporting page/title/head body a href="first.php"Click here to goto first page/a/table /body /html --end of second.php- On clicking the hyperlink of the first page, i should see the value of variable test and an hyperlink. this comes in Ie and not in netscape. hope this will help u in finding the problem i am having. rgds Bhaskar --- [2001-01-08 03:37:44] [EMAIL PROTECTED] I am attaching the script of two files first.php and second.php which can be used to reproduce this. beginning of first.php- ? session_start(); session_register(test); $test="firstpage"; ? html head titlePhp Bug reporting page/title/head body a href="second.php"Click here to goto next page/a/table /body /html -end of first.php--- ---beginning of second.php--- ? session_start(); echo $test; session_unset();? htmlhead titlePhp Bug reporting page/title/head body a href="first.php"Click here to goto first page/a/table /body /html --end of second.php- On clicking the hyperlink of the first page, i should see the value of variable test and an hyperlink. this comes in Ie and not in netscape. hope this will help u in finding the problem i am having. rgds Bhaskar --- [2001-01-08 03:33:45] [EMAIL PROTECTED] I am attaching the script of two files first.php and second.php which can be used to reproduce this. beginning of first.php- ? session_start(); session_register(test); $test="firstpage"; ? html head titlePhp Bug reporting page/title/head body a href="second.php"Click here to goto next page/a/table /body /html -end of first.php--- ---beginning of second.php--- ? session_start(); echo $test; session_unset();? htmlhead titlePhp Bug reporting page/title/head body a href="first.php"Click here to goto first page/a/table /body /html --end of second.php- On clicking the hyperlink of the first page, i should see the value of variable test and an hyperlink. this comes in Ie and not in netscape. hope this will help u in finding the problem i am having. rgds Bhaskar --- 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=8545edit=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 #9490: removing config.cache but still getting same install as before
From: [EMAIL PROTECTED] Operating system: linux redhat6.2 PHP version: 4.0.4pl1 PHP Bug Type: *Install and Config Bug description: removing config.cache but still getting same install as before i compiled php with gd and all was well. a few days later on i upgraded gd and restarted apache, apache: Starting httpd: Syntax error on line 250 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp4.so into server: /usr/lib/libgd.so.1: undefined symbol: png_set_dither make output: could not find libgd.(a|so) anywhere in /usr/lib (although its there for sure) to get php up and running again without any loss of time i decided to do a recompile without gd. so i recompiled php: rm config.cache ./configure --with-apxs make make install but apache still gives the same error when starting although gd isnt even compiled into php this time!! this made me think. so i decided to to try a few different versions of gd and kept getting exactly the same apache error everytime although gd was working fine for webalizer.. solution: delete the whole source dir. untar src again and compile again. now it works. so removing the config.cache doesnt give you a clean install at all, it seems to repeat the first install exactly everytime, although the INSTALL file says that removing the config.cache file should get you a fresh install. maybe this isnt a bug but a feature, but i dont seem to remember php did this in previous versions? -- Edit Bug report at: http://bugs.php.net/?id=9490edit=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 #9418 Updated: Upload image file is broken
ID: 9418 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: *General Issues Description: Upload image file is broken Ok, this fragment of my script: form enctype="multipart/form-data" method="post" action="? $PHP_SELF ??action=add" table width="100%" border="0" cellspacing="0" cellpadding="0" . skip . tr td width="29%" height="30"? print $lang["photo"]?/td td width="71%" height="30" input type="file" name="photo" size="50" maxlength="255" /td /tr ..skip... /table p input type="reset" name="Reset" value="? print $lang["reset"]?" input type="submit" name="Submit" value="? print $lang["save"]?" /p /form ..skip... copy ($photo, $photopath.$id); unlink($photo); Previous Comments: --- [2001-02-27 08:45:40] [EMAIL PROTECTED] And the example script is where? --Jani --- [2001-02-25 22:28:23] [EMAIL PROTECTED] Hi! 1. yes, uploaded file exsit 2. filesize uploaded file equal filesize of original, but cmp say, what this files differ cmp file1.gif file2.gif file1.gif file2.gif differ: char 8, line 1 3. both file begin with string: GIF89 4. I open files in browser using http address: http://my.website.com/path/file.gif --- [2001-02-25 18:28:55] [EMAIL PROTECTED] Reopening. jmoore : what's the hurry to close something just one day after the issue is reported? nekto replied "What info yuo need?" nekto: well does the uploaded file exist? does the file 0 filesize? what are the differences between the files - is the uploaded file prepended with a content-type header? what code are you using to reference the uploaded file? --- [2001-02-24 13:23:34] [EMAIL PROTECTED] Not enough information supplied closing. --- [2001-02-23 05:04:14] [EMAIL PROTECTED] I have a problem with upload gif image (original differ from upload image). With yours recommendation, i install last cvs version of php4. But this not solved my problem. What i must doing for solving my problem? --- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=9418 -- PHP Development Mailing List http://www.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 #8661 Updated: a copy of the internal array elements is sometimes not made
ID: 8661 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Description: a copy of the internal array elements is sometimes not made My bad, my email address is [EMAIL PROTECTED] Please detail on a fix for this bug. Thanks, Larry Previous Comments: --- [2001-01-11 16:55:42] [EMAIL PROTECTED] The workaround that I have had to implement is doing an explicit clone method (similar to a copy constructor) and when making a copy, say $new = $old-clone(); instead of $new = $old; example implementation: class Element { var $value; function clone() { $obj = new Element(); $obj=value = $this-value; } } class X { var $array; function clone() { $obj = new X(); foreach($this-array as $index = $value) { $obj-array[$index] = $value-clone(); } return $obj; } } --- [2001-01-11 16:46:44] [EMAIL PROTECTED] Yes, this is the same, if I change the method to do_nothing() in the Element class and print out a message, the same behavior happens. The behavior is that if I call a method on an array object after the array has been copied, the copy now refers to the original. Also, if the method is called on the original object, the copy is then linked with the original. --- [2001-01-11 16:41:44] [EMAIL PROTECTED] This might be the same as 8130, but I'm not sure. --- [2001-01-11 16:27:34] [EMAIL PROTECTED] ?php // buggy.php // If I leave both A1 and A2 commented out, the code works fine. // If I uncomment A1 only, the code works as expected // If I uncomment A2 only, the code does not work as expected class Element { var $val; function set_value($newval) { $this-val = $newval; } } class Owner { var $elementArray; function dump() { foreach ($this-elementArray as $index = $value) { print("index [$index] value [$value-val]BR"); } } } $myOwner = new Owner(); $myOwner-elementArray[0] = new Element; // -- A1 -- // this works as expected $myOwner-elementArray[0]-val = 10; // -- A2 -- // if this line is uncommented the code does not work as expected //$myOwner-elementArray[0]-set_value(10); print("dump myOwnerBR"); $myOwner-dump(); print("BR"); print("make a copy of myOwnerBR"); $copyOwner = $myOwner; print("BR"); print("dump copyOwnerBR"); $copyOwner-dump(); print("BR"); print("change copyOwner index 0 to 99BR"); $copyOwner-elementArray[0]-val = 99; print("dump copyOwnerBR"); $copyOwner-dump(); print("BR"); print("dump myOwnerBR"); $myOwner-dump(); print("BR"); ? --- Full Bug description available at: http://bugs.php.net/?id=8661 -- PHP Development Mailing List http://www.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 #9492: libmysqlclient.so.6 not found
From: [EMAIL PROTECTED] Operating system: Soalris 2.6 PHP version: 4.0.4pl1 PHP Bug Type: *Install and Config Bug description: libmysqlclient.so.6 not found Compiling PHP4 as an Apache DSO module with the following: ./configure --with-apxs=/www/server/apache/bin/apxs --with-yaz=/www/src/yaz-1.6 --with-mysql=/www/mysql --with-sybase=/usr/local/sybase/client --with-xml --enable-ftp --with-gd=/www/src/gd1.2 --disable-pear --with-dbase --enable-libgcc No complaints through the configure, make or make install process but when I go to test Apache with the new AddModule LoadModule statments added to httpd.conf, I get: Wed12:03:11am|/www/server/apache/libexec../bin/apachectl configtest Syntax error on line 234 of /www/server/apache/conf/httpd.conf: Cannot load /www/server/apache/libexec/libphp4.so into server: ld.so.1: /www/server/apache /bin/httpd: fatal: libmysqlclient.so.6: open failed: No such file or directory I've seen mention in the other bug reports that on Linux systems you can change the ld configuration. Any suggestions for a Solaris environment?? -- Edit Bug report at: http://bugs.php.net/?id=9492edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] RE: [PHP-QA] Re: [PHP-DEV] ctype function (re?)naming
Stanislav Malyshev wrote: RC I think it is helpful for the PHP user base to be RC able to comprehend the use of a function based on the name. On its name, yes - but not on underscores in it. Do you really think anybody will remember/care for those underscores? Yes. I find it annoying having to look up reference manuals for every function, to figure out whether or not I need to use underscores, and if so, where in the function name should they be used the general point in *having* the underscores is that they provide a visual separation of words, so they can be read (and comprehended) more easily, so the purpose of the function is less ambiguous. Without them, the name becomes less legible. Much of the time I already know the function names, I just don't know all of the choices that were made on whether it's "*_num_rows" or "*_numrows", on whether it's "is_var" or "isvar". I do lots of code that uses both mysql and postgres, and it's an ongoing hassle to not only switch the family name (pg/mysql), but to also switch out other names because of a lack of consistency, and never be quite sure what the right thing to do actually is. Well, life's female canis familiaris. No naming scheme would resolve the problem that if you make typos it probably won't compile. To a point, yes... Which to me, means we should make *generating* the proper text as easy as possible for the end user. It will confuse the users with most of the functions having "family_word_word" formats and some which switch to "family_wordword" (or even worse, family_wordword_word). RC skilled coders can differentiate between 89DEGU567S_open() and RC 89D3GU5675_open().. it's because new language adopters *can't* RC differentiate. I don't see how it proves that is_alpha is better than isapha. The point is that we don't seem to have any reason to force newbies to work harder, to look at names super-closely, to guess at the particular invention-of-the-day for function naming. People who have typed the function 200 times know it already. People still in between 1 and 200 uses or so are wasting lots of their time guessing and debugging, or re-reading manual pages. For unwashed masses, it's manual lookup anyway - they have no idea how it even _could_ be called. For people knowing C and descendants, it's a cookie (not http one, the pleasant one) - one more function they already know. Well, put me somewhere in between unwashed and just plain annoyed when I can remember the function's name, but not the arcane non-ruleset for the function word delimiting. I certainly don't consider expertise in obtuse naming to be that much of a cookie. More of a burden, a training problem, a learning curve problem. -Bop --2D426F70|759328624|00101101011001100111 Personal: [EMAIL PROTECTED], 520-326-6109, http://www.opus1.com/ron/ Work: [EMAIL PROTECTED], 520-546-8993, http://www.pnsinc.com/ The opinions expressed in this email are not necessarily those of myself, my employers, or any of the other little voices in my head. -- PHP Development Mailing List http://www.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] SSL - joining sockets and files ?
On 2001-02-27 06:53:05, Stig Venaas wrote: But with for instance IPv6, you won't know what socket you need until you're done with the resolving. That's why hostconnect() is like it is. It even needs to connect before it knows what socket to use. That I must have missed hostconnect(). I Don't know how - I certainly remember you talking about a long time ago. I'm not convinced we should put socket(), resolve() etc. into the structure. I agree that we need those, and others, but I don't see the value of putting them in a structure. I was just thinking in terms of modularity; it would mean that someone could provide support for their own weird and wonderful network transport without having to touch the core code in fsock.c. For SSL it should be possible to connect() as usual using hostconnect() and then do the SSL negotiation, right? Yes. close, read and write is fine, we need that abstraction. I think perhaps we should have destruct() rather than close() where close() first calls destruct to let for instance SSL clean up whatever is needed, and then do the normal socket close and free the php_sockbuf structure. ... By abstracting read and write, it could be possible to put fopen_wrappers in extensions (completely modularized), seems sensible to me to put the SSL wrapper in the openssl extension. Yes, I was thinking along those lines too. I think what we need depends on how far we are willing to go to make the codebase nicer. Andi Gutmans suggested that it would be nice to nuke all the checks for sockets in the code; depending on how far we go towards that ideal, we might need to approach this in a different way. The problem we have is that file handles in php can be regular files or sockets, but we have to use either stdio FILEs or unix/posix sockets to represent them, and the php code has to take special steps whenever it needs to write to a file. This causes a conflict in the case of SSL enabled sockets because the thing that is passed back is neither a socket nor a FILE, but does have an underlying socket, hence the "cookie" and socketd parameters/ returns from the abstraction. If we expand the abstraction to cover regular files as well as sockets, would it be worth it? I'm going to look into it in more depth and come back with more info about where we are using this stuff and where we check for sockets, and think some more about the open/connect/construct part of it. --Wez.
Re: [PHP-DEV] SSL socket support (LONG!)
On 2001-02-27 20:07:09, Andi Gutmans wrote: Do you have time to map where in PHP we are currently using socket code? I think according to how many places and how we are using it, it'll help us decide how much redesigning we can do. Also keep Win32 in mind while thinking of this. As is the same with everyone these days, "I have no time (tm)". But, seeing as this needs doing properly if it is to be done at all, I will make time. I didn't have much time but I did read through your RFC quickly. On a whole it looks quite interesting and I'd be quite happy to nuke the SOCK_FGETS() and friends from fopen_wrappers.h and other places. Also try and keep in mind regular files. Maybe we can get rid of the ugly code which is in quite a few places in the source tree which does an if (issock) Yeah, I didn't like the issock stuff either, but the fundamental reason for it being there makes it hard to avoid without having an abstraction on top of the stdio FILE stuff. If we were to nuke it completely and be able to use regular files and sockets without special consideration, we would need to have our own set of stdio compatible functions. Do we want to go down that path? I will look into it, and the hostconnect call that I somehow managed to miss while looking at the fsockopen call... --Wez.