[PHP-DEV] Bug #13089: Simple Char Swapping in String crashes Webserver
From: [EMAIL PROTECTED] Operating system: Suse Linux 7.1 PHP version: 4.0.4pl1 PHP Bug Type: Reproducible crash Bug description: Simple Char Swapping in String crashes Webserver Hey there i just managed something that i never accomplished beforei kill a httpd process from PHP, i run the following code ? $slen=strlen($enc); for ($i=0;$i$slen;$i=$i+2) { $swap=$enc[$i]; $enc[$i]=$enc[$i+1]; $enc[$i+1]=$swap; } ? $enc is a string and has an even length This silly lines of code make the apache child process crash, if i change it to ? $slen=strlen($enc); for ($i=0;$i$slen;$i=$i+2) { $swap=$enc[$i]; $swap2=$enc[$i+1]; $enc[$i]=$swap2; $enc[$i+1]=$swap; } ? it works well. what the hell is happening here? i run php 4.04pl1 as apache module under linux. -- Edit bug report at: http://bugs.php.net/?id=13089edit=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] BC-breaking changes
The plan was/is to break BC hard when it is going to be broken. What about including the BC-breaking changes within #ifdef BREAK_COMPAT or something similiar (#if PHP_VERSION 500?) Otherwise one risks to forget what changes to make, and also you can already start making those changes. AND you can add a compile-time option 'do-not-break-compatibility' Greetz, Jeroen -- PHP Development Mailing List http://www.php.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] Quickie: does estr(n)dup NUL-terminate the newly allocated string?
Couldn't find it anywhere (manpages, zend-api, source...) --jeroen -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13090: function is unable to find files via absolute path.
From: [EMAIL PROTECTED] Operating system: win2k PHP version: 4.0.6 PHP Bug Type: GetImageSize related Bug description: function is unable to find files via absolute path. config: php 4.0.6 win32 binary dist, apache 1.3.20. while calling getimagesize on a file with relative path or via URL works, it fails to find a file specified via absolute path. example: verified path via browser is: http:/127.0.0.1/pics/foo/blah.jpg from a script in directory /pics called: getimagesize(foo/blah.jpg) .. works getimagesize(http:/127.0.0.1/pics/foo/blah.jpg) .. works getimagesize(/pics/foo/blah.jpg) .. fails: Unable to open '/pics/foo/blah.jpg' for reading. mike. -- Edit bug report at: http://bugs.php.net/?id=13090edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13013 Updated: libphp4.so: undefined symbol: zendtext
ID: 13013 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Feedback Status: Open Bug Type: Apache related Operating System: FreeBSD 4.2-RELEASE PHP Version: 4.0.6 New Comment: Dear sniper : Thanks for ur nice help. But I have a bad news : It still the same error messages like before : sudo /www/apache-1.3.20/bin/apachectl start Password: Syntax error on line 232 of /www/apache-1.3.20/conf/httpd.conf: Cannot load /www/apache-1.3.20/libexec/libphp4.so into server: /www/apache-1.3.20/libexec/libphp4.so: Undefined symbol pcre_malloc /www/apache-1.3.20/bin/apachectl start: httpd could not be started I also try the latest php snapshot. Any idea ? BTW, I reply this by web, thanks for ur remind. with Best Regards, -- Stone Yu Previous Comments: [2001-08-31 09:07:33] [EMAIL PROTECTED] Please read this email carefully. You will find the link to the reply page in the end. Also, using the latest snapshot and by doing these steps: # ./configure --with-apxs=/www/apache-1.3.20/bin/apxs # make clean ; make ; make install Does it work then? (note: Get fresh sources first) --Jani [2001-08-30 20:08:26] [EMAIL PROTECTED] User feedback: -- No. The latest CVS snapshot fix this problem, but have a new one :) % sudo /www/apache-1.3.20/bin/apachectl start Syntax error on line 232 of /www/apache-1.3.20/conf/httpd.conf: Cannot load /www/apache-1.3.20/libexec/libphp4.so into server: /www/apache-1.3.20/libexec/libphp4.so: Undefined symbol pcre_malloc ^^^ /www/apache-1.3.20/bin/apachectl start: httpd could not be started --- Next time, use the web interface to reply. Also, what was the configure line used this time? You're most likely doing something wrong so please include all steps you made. [2001-08-29 09:43:43] [EMAIL PROTECTED] Does this happen with latest CVS snapshot: http://snaps.php.net/ [2001-08-28 22:23:35] [EMAIL PROTECTED] Hi, This is Stone Yu. When I running php 4.0.6, I got some error messages : % sudo /www/apache-1.3.20/bin/apachectl start Password: Syntax error on line 232 of /www/apache-1.3.20/conf/httpd.conf: Cannot load /www/apache-1.3.20/libexec/libphp4.so into server: /www/apache-1.3.20/libexec/libphp4.so: Undefined symbol zendtext /www/apache-1.3.20/bin/apachectl start: httpd could not be started O.S. : FreeBSD 4.2-RELEASE Apache version : 1.3.20 + mod_ssl-2.8.4-1.3.20(both with DSO[max] mode) compiler : gcc 2.95.2 I install apache + mod_ssl first, then configure and install php with DSO mode, here's my configure parameter : ./configure --with-apxs=/www/apache-1.3.20/bin/apxs --with-config-file-path=/www/apache-1.3.20/conf --with-mysql=/usr/local/mysql --enable-sysvsem --enable-sysvshm --with-xml --with-mod_charset --enable-force-cgi-redirect --enable-inline-wwwimization --with-openssl=/usr/local --enable-track-vars --with-bz2 --enable-ftp --with-gdbm=/usr/local --with-db2 --with-jpeg-dir --with-tiff-dir --with-xpm-dir --with-ttf --with-mm --disable-posix I also found the old php version(4.0.2) has the same bugs(bug no. #6664 #6868), but I can't find any solution for it. Any suggestion will be nice, thanks a lot. with Best Regards, -- Stone Yu Edit this bug report at http://bugs.php.net/?id=13013edit=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] Quickie: does estr(n)dup NUL-terminate the newly allocated string?
estrdup() assumes that the string is NULL terminated, and it copies the entire string, including the NULL. estrndup() forces a NULL byte at the end of the duplicated string. It *is* in the source, it'd be a bit of a problem if it wasn't :) Zeev At 18:06 01-09-01, [EMAIL PROTECTED] wrote: Couldn't find it anywhere (manpages, zend-api, source...) --jeroen -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13090 Updated: function is unable to find files via absolute path.
ID: 13090 Updated by: rasmus Reported By: [EMAIL PROTECTED] Status: Open Bug Type: GetImageSize related Operating System: win2k PHP Version: 4.0.6 New Comment: Are you sure that is the right path and not relative to your document root? It wants the real on-disk absolute path. Previous Comments: [2001-09-01 11:05:05] [EMAIL PROTECTED] config: php 4.0.6 win32 binary dist, apache 1.3.20. while calling getimagesize on a file with relative path or via URL works, it fails to find a file specified via absolute path. example: verified path via browser is: http:/127.0.0.1/pics/foo/blah.jpg from a script in directory /pics called: getimagesize(foo/blah.jpg) .. works getimagesize(http:/127.0.0.1/pics/foo/blah.jpg) .. works getimagesize(/pics/foo/blah.jpg) .. fails: Unable to open '/pics/foo/blah.jpg' for reading. mike. Edit this bug report at http://bugs.php.net/?id=13090edit=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 3.0 Bug Summary Report
PHP 3.0 Bug Database summary - http://bugs.php.net Num Status Summary (543 total including feature requests) ===[*General Issues]== 4180 Open is_link returns false when target doesnt exist (should return true) 9610 Bogus Dead link 9820 Open File upload with any input tag 10101 Bogus apache + mysqld + php3 == libphp3.so incorrect symbol... 10457 Bogus ALKHOBAR ===[*Install and Config]== 7386 Feedback referenced symbol not found when starting Apache ===[Compile Failure]== 1145 Open Ypu cannot compile with --with-ldap using the Solaris7 bundled ldap-libs/header 1298 Open need to use -taso with Netscape LDAP libs 1461 Open won't compile with Stronghold 2.2 or 2.3 1933 Open Unable to compile PHP3 with Oracle8 support 1997 Open Compilation Problems 2225 Open Compile error in ldap.c 2282 Open Compile failure with Stronghold 2.4.1 2490 Open Perl regular expression functions not available in windows binary 2585 Open Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4 2658 Open error while compiling PHP as apache module 2729 Open Fatal error: Unable to open ??? in - on line 0 2751 Open Storage size of buf isn't known 2823 Open undefined symbol: SQLParamData 2824 Open Inconsistent parameter list declaration for... 2903 Open fails to compile ifx.ec, report a syntax-error 3033 Open Fatal compile error on functions/ldap.c 3185 Open Undefined symbol 3217 Open ld error when compiling as Apache DSO and --with-mysql 3218 Open Can't compile php_ftp.dll 3426 Open make with iodbc failed and I've found the problem 3501 Open Compiling errors with Oracle-Funktions 3528 Open Can't compile php 3.0.14 with Oracle support 3677 Open files not found 3766 Open configure doesn't allow for the Oracle N32 client SDK to be used 3776 Open functions/db.c:107: parse error before '*' 4028 Open wrong directories included for oracle 8.1.6 4217 Open IBM DB2 will not compile. 4233 Open The Interbase module won't compile. 4266 Open Undeclared variables in function/imap.c starting ar line 435 4392 Open Compile failure with GD 1.7, possibly others 4412 Open xml failure 4417 Open Informix specific parse error in functions/ifx.ec 4544 Open Incompatiblility with latest (3.0) version of PDFlib 4899 Open PHP Core Dumps With Apache 1.3.12 7734 Open missing php3_ifx.h ===[Compile Warning]== 3151 Open php.exe compile warnings because of arpa/inet.h 6942 Open php sockets unusable with irix-OS ===[dBase related] 3091 Open dbase_replace_record miscounts number of fields 3429 Open Warning: Unable to open database... 4802 Open php.exe crashes while trying to execute the get_record function ===[DBM/DBA related]== 2890 Open DBM extension on win32 does not valid database identifier error 3371 Open dbmfetch reurns an empty string 3423 Open dbmopen() not thread-safe 3809 Duplicate DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw 3862 Open dbmReplace dbmDelete return inverse value 6720 Open persistent Warning: driver initialization failed on db_open db2 2.7.7 ===[Documentation problem] 11155 Bogus bogus report ===[Dynamic loading related]== 1188 Open Configuration not work 1586 Open In the compiled Win32 package, the php3_ldap doesn't load. 1993 Open Startup failure of liphp3.so 2027 Open Can't dynamicly load any extension dll file 2250 Open nt-service problem 2414 Open php3_vmailmgr.so refuses to load 2862 Open LDAP in Win32 Bin dist is linked to MSVCRTD.DLL 3168 Open cannot start apache 1.3.9 if mysql is compiled in, but can RESTART successfully 3292 Open MySQL module causes DSO to fail. 3321 Open Apache Complaining about undefined symbol: dlst_first 3659 Open mod_php + apache w/mod_so hangs in sched_yield 3680 Open Apache won't start after install php3 3752 Open Apache configtest dumps core with DSO versioning 3781 Open Cannot load /libexec/libphp3.so 3861 Open php as a dyn. mod. configured with IBM db2 support prevents svr startup 9565 Open php3_ldap.dll is compiled as DEBUG ===[Feature/Change Request]=== 2393 Open Can't use parse_url for url validation ===[IMAP related]= 2816 Open
[PHP-DEV] Bug #13090 Updated: function is unable to find files via absolute path.
ID: 13090 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: GetImageSize related Operating System: win2k PHP Version: 4.0.6 New Comment: /pics/foo/blah.jpg Means on Windows, in a php script: [current drive, ie. C]:\pics\foo\blah.jpg On all platforms, in a request to a webserver, it means: [documentroot]/pics/foo/blah.jpg Use $DOCUMENT_ROOT/pics/foo/blah.jpg in your PHP-script to emulate this behaviour. Previous Comments: [2001-09-01 11:48:31] [EMAIL PROTECTED] Are you sure that is the right path and not relative to your document root? It wants the real on-disk absolute path. [2001-09-01 11:05:05] [EMAIL PROTECTED] config: php 4.0.6 win32 binary dist, apache 1.3.20. while calling getimagesize on a file with relative path or via URL works, it fails to find a file specified via absolute path. example: verified path via browser is: http:/127.0.0.1/pics/foo/blah.jpg from a script in directory /pics called: getimagesize(foo/blah.jpg) .. works getimagesize(http:/127.0.0.1/pics/foo/blah.jpg) .. works getimagesize(/pics/foo/blah.jpg) .. fails: Unable to open '/pics/foo/blah.jpg' for reading. mike. Edit this bug report at http://bugs.php.net/?id=13090edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13090 Updated: function is unable to find files via absolute path.
ID: 13090 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Closed Status: Bogus Bug Type: GetImageSize related Operating System: win2k PHP Version: 4.0.6 New Comment: Oops... not closed, it's a bogus... Previous Comments: [2001-09-01 12:04:00] [EMAIL PROTECTED] /pics/foo/blah.jpg Means on Windows, in a php script: [current drive, ie. C]:\pics\foo\blah.jpg On all platforms, in a request to a webserver, it means: [documentroot]/pics/foo/blah.jpg Use $DOCUMENT_ROOT/pics/foo/blah.jpg in your PHP-script to emulate this behaviour. [2001-09-01 11:48:31] [EMAIL PROTECTED] Are you sure that is the right path and not relative to your document root? It wants the real on-disk absolute path. [2001-09-01 11:05:05] [EMAIL PROTECTED] config: php 4.0.6 win32 binary dist, apache 1.3.20. while calling getimagesize on a file with relative path or via URL works, it fails to find a file specified via absolute path. example: verified path via browser is: http:/127.0.0.1/pics/foo/blah.jpg from a script in directory /pics called: getimagesize(foo/blah.jpg) .. works getimagesize(http:/127.0.0.1/pics/foo/blah.jpg) .. works getimagesize(/pics/foo/blah.jpg) .. fails: Unable to open '/pics/foo/blah.jpg' for reading. mike. Edit this bug report at http://bugs.php.net/?id=13090edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13091: Compile Failure
From: [EMAIL PROTECTED] Operating system: Slackware 8.0 - Linux, 2.2.19 PHP version: 4.0.6 PHP Bug Type: *Compile Issues Bug description: Compile Failure Since PHP4 started calling the module phplib4.module things break. The Apache Makefiles still use the term phplib4.a in the Makefiles - when I change these I then get a compile error in Apache stating: /usr/i386-slackware-linux/bin/ld:modules/php4/libphp4.module: file format not recognized; treated as linker script Some Slackware help for people manually installing PHP/MySQL/Apache would really be helpful - Not everyone is using RedHat or Mandrake linux with RPM's or point and click package installers.. =( Thanks. -- Edit bug report at: http://bugs.php.net/?id=13091edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13091 Updated: Compile Failure
ID: 13091 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Compile Issues Operating System: Slackware 8.0 - Linux, 2.2.19 PHP Version: 4.0.6 New Comment: I have no idea what you are talking about. The included INSTALL file gives you all the info you need to compile from source. And the string phplib4.module doesn't appear anywhere in the PHP distribution. And likewise, nowhere in the standard Apache distribution is there any reference to phplib4. Download the standard Apache tarball and the standard PHP tarball and follow the instructions in the INSTALL file in the PHP distribution and everything will work just fine. Previous Comments: [2001-09-01 13:17:18] [EMAIL PROTECTED] Since PHP4 started calling the module phplib4.module things break. The Apache Makefiles still use the term phplib4.a in the Makefiles - when I change these I then get a compile error in Apache stating: /usr/i386-slackware-linux/bin/ld:modules/php4/libphp4.module: file format not recognized; treated as linker script Some Slackware help for people manually installing PHP/MySQL/Apache would really be helpful - Not everyone is using RedHat or Mandrake linux with RPM's or point and click package installers.. =( Thanks. Edit this bug report at http://bugs.php.net/?id=13091edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12285 Updated: Problem in header parameter
ID: 12285 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Duplicate Bug Type: Mail related Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: Duplicate of 11165 Previous Comments: [2001-07-20 10:37:23] [EMAIL PROTECTED] I am using PHP 4.0.6 (the same applies with version 4.0.5) on Windows 2000. I have written a page where someone can send MIME mail including multiple attachments. The attachments go into the header parameter of the mail() function. The bug I'm reporting is that when the attached part(s) are more than 2KB in size, the mail() function crashes and together PHP.exe. I believe there must be some unreasonable limitation in the size of the header parameter. I don't know if this problem exists in Unix environments, but I know at least another developer who has reported the same problem on the Windows platform. Edit this bug report at http://bugs.php.net/?id=12285edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #12959 Updated: XML methods don't have $this set!
ID: 12959 Updated by: sander Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: XML related Operating System: Win98SE/Linux PHP Version: 4.0.6 New Comment: Just ask it! I'm sure there's someone on the PHP-GENERAL list who can explain it to you. If you do not get a decent answer, reopen this report. Previous Comments: [2001-08-25 09:49:34] [EMAIL PROTECTED] $this outside a class? All references to $this are inside the class methods. [2001-08-25 09:49:27] [EMAIL PROTECTED] I should have been clearer this ISNT a bug, its an error in your programming, ask on the php-general list. - James [2001-08-25 09:47:51] [EMAIL PROTECTED] I noticed this bug is reported in several ways here (I didn't see these before posting, the 10 bug on 1 page limit, oops :). I hope this demonstrates this bug is not yet solved, and very annoying. (The script should also be clearer than others) [2001-08-25 09:47:02] [EMAIL PROTECTED] Ask on the PHP-GEneral mailling list, you are trying to use $this outside of a class so it does not work. - James [2001-08-25 09:41:10] [EMAIL PROTECTED] When you use XML methods in a script, $this doesn't get set or is buggy. That means you can't use instance variables or methods of that object. When you run the following script you only get SE,SE,EE,EE but the variables content and instancevar aren't set. The only solution I could think of is that $this points to a wrong object, not the object that the XML methods are called in. Example script: ? class ContentParser { var $parser, $content = ; var $instancevar; function ContentParser() { $this-parser = xml_parser_create(); xml_set_object($this-parser, $this); xml_set_element_handler($this-parser, start_element, end_element); xml_set_character_data_handler($this-parser, character_data); xml_set_processing_instruction_handler($this-parser, processing_instruction); } function parse_text ($data) { return xml_parse ($this-parser, $data, true); } function add_content($text) { $this-content .= $text; } function processing_instruction($parser, $target, $data) { } function start_element($parser, $name, $attribs) { echo SEbr; $this-add_content(Start_element $namebr); $this-instancevar = I should be set!!!; } function end_element($parser, $name) { echo EEbr; $this-add_content(End element $namebr); } function character_data($parser, $data) { $this-add_content($data); } } $c = new ContentParser(); $c-parse_text(documentparagraphWell this doesn't work. Bug!/paragraph/document); echo $c-content; // Zip. No bonus. echo $c-instancevar; ? Am I doing something wrong or is this really a bug? Edit this bug report at http://bugs.php.net/?id=12959edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: Bug #13091 Updated: Compile Failure
When I added "--with-zlib" to the PHP ./configure line it then worked. If you wanna see what works to get MySQL/PHP/Apache working on a Slackware Linux machine I posted the step by step stuff at: http://209.125.21.145/~tim/mysql.htmlIf any other Slackware users bug you feel free to shoot 'em back that URL. =) (The domain is usually 'www.rocketry.org', but Network Solutions hasn't yet done my DNS change since moving the boxes..) Thanks for the speedy response. =) TIM From: Bug Database <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Bug #13091 Updated: Compile Failure Date: 1 Sep 2001 17:28:39 - ID: 13091 Updated by: rasmus Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Compile Issues Operating System: Slackware 8.0 - Linux, 2.2.19 PHP Version: 4.0.6 New Comment: I have no idea what you are talking about. The included INSTALL file gives you all the info you need to compile from source. And the string "phplib4.module" doesn't appear anywhere in the PHP distribution. And likewise, nowhere in the standard Apache distribution is there any reference to "phplib4". Download the standard Apache tarball and the standard PHP tarball and follow the instructions in the INSTALL file in the PHP distribution and everything will work just fine. Previous Comments: [2001-09-01 13:17:18] [EMAIL PROTECTED] Since PHP4 started calling the module "phplib4.module" things break. The Apache Makefiles still use the term "phplib4.a" in the Makefiles - when I change these I then get a compile error in Apache stating: /usr/i386-slackware-linux/bin/ld:modules/php4/libphp4.module: file format not recognized; treated as linker script Some Slackware help for people manually installing PHP/MySQL/Apache would really be helpful - Not everyone is using RedHat or Mandrake linux with RPM's or point and click package installers.. =( Thanks. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=13091edit=2 Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #13093: A garbage collection error with an array
From: [EMAIL PROTECTED] Operating system: Linux RedHat 7.0 PHP version: 4.0.6 PHP Bug Type: Reproducible crash Bug description: A garbage collection error with an array ? $token['not'] = '¬'; $token['or'] = 'V'; $token['and'] = '^'; $token['xor'] = 'x'; $statement = A^BVC; function parse($statement) { global $token; for($i = 0; $i strlen($statement); $i++) { $c = substr($statement, $i, 1); if($c == $token['and'] || $c == $token['or'] || $c == $token['xor']) { if(!$a) echo Error: $c requires 2 argumentsbr\n; else if($a $b) { $a[$o][a] = $a; $a[$o][b] = $b; unset($b); } $o = $c; } else { if($o) $b .= $c; else $a .= $c; } } if($a $o $b) { $ret[$o][a] = $a; $ret[$o][b] = $b; } else { echo Error: missing statementbr\n; } return $ret; } function aview($var) { while(list($key, $val) = each($var)) { echo $key; if(is_array($val)) aview($val); else echo $val; } } $parse_tree = parse($statement); // aview($parse_tree); ? My machine is compiled with: ./configure --with-mysql=/usr/local --with-gd The php binary is copied to /bin It also has php built as a shared apache module (--with-apxs=/www/bin/apxs) It crashes on both. I ftp'd the file to 2 of our production servers. One has php/apache installed from RPM's the other is built from source. It crashes with or without the aview function. If you put an echo hello; at the very end, it crashes after printing hello. here is the gdb backtrace: #0 chunk_free (ar_ptr=0x40202d40, p=0x8173a30) at malloc.c:3049 #1 0x4016df9a in __libc_free (mem=0x8173a38) at malloc.c:3023 #2 0x80c51c9 in _efree (ptr=0x8173a44) at zend_alloc.c:232 #3 0x80c55e8 in shutdown_memory_manager (silent=0, clean_cache=0) at zend_alloc.c:437 #4 0x805e8a9 in php_request_shutdown (dummy=0x0) at main.c:667 #5 0x805d9fa in main (argc=2, argv=0xbb94) at cgi_main.c:751 -- Edit bug report at: http://bugs.php.net/?id=13093edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #11168 Updated: Problem with serializing more dimensional array with references ...
ID: 11168 Updated by: joey Reported By: [EMAIL PROTECTED] Status: Duplicate Bug Type: Feature/Change Request Operating System: RedHat PHP Version: 4.0.5 New Comment: I'm afraid I just don't see the bug here. On my machine, this shows: Wrong: Array ( [0] = Array ( [0] = Ape1 [one] = Ape1 ) [1] = Array ( [0] = Ape2 [two] = Ape2 ) ) Right: Array ( [0] = Array ( [0] = Ape1 [one] = Ape1 ) [1] = Array ( [0] = Ape2 [two] = Ape2 ) ) What's the problem? Previous Comments: [2001-08-31 11:10:21] [EMAIL PROTECTED] Not a bug. Making it a feature request. Duplicate of 10863. [2001-05-29 08:17:03] [EMAIL PROTECTED] Here is the smallest programm I could make to reproduce the problem. ? $a[0][0]=Ape1; $a[1][0]=Ape2; $a[0][one]=$a[0][0]; $a[1][two]=$a[1][0]; $wrong_a=unserialize( serialize ( $a) ); echo Wrong:\n; print_r( $wrong_a ); echo Right:\n; print_r( $a ); ? Edit this bug report at http://bugs.php.net/?id=11168edit=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] Freshmeat.net needs to know who is responsible.
Howdy, I am writing on behalf of freshmeat.net. PHP is listed there, yet I do not have a contact e-mail for the person responsible for the freshmeat.net project listing. As I am sure you can see, this makes it VERY diffcult to contact the correct person when something goes wrong (which is why I am contacting you guys/gals). Could the relevant person please send me an e-mail so that I can get in contact with them and clear up the problem we have with their freshmeat.net posting. If I do not hear anything in 3 days I am afraid I will have to remove PHP from the freshmeat.net archive (and I am sure no-one wants that : ) Cheers Stephen Graham [EMAIL PROTECTED] -- Time was invented so that everything in the universe would not happen at once. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]