#32342 [Asn]: Problems compiling with support to zlib
ID: 32342 Updated by: [EMAIL PROTECTED] Reported By: andre at softexpert dot com Status: Assigned Bug Type: Compile Failure Operating System: Fedora Core 3 PHP Version: 4CVS-2005-03-16 (stable) Assigned To: sniper New Comment: Fixed in CVS now. (all branches :) Previous Comments: [2005-03-17 08:22:53] [EMAIL PROTECTED] Jani, you probably broke this - other people have problems with it too (helly). [2005-03-16 19:18:41] andre at softexpert dot com Description: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mssql=/usr/local/freetds/ --with-zlib-dir=/usr/lib --with-interbase=/opt/firebird --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-mhash=/usr/local/mhash --with-dom --enable-bcmath --enable-dba=shared --with-db4=/usr/include/db4 php4-STABLE-200503161530/Zend/../TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory In file included from /root/install/php4-STABLE-200503161530/ext/zlib/zlib.c:28: /root/install/php4-STABLE-200503161530/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory make: ** [ext/zlib/zlib.lo] Erro 1 -- Edit this bug report at http://bugs.php.net/?id=32342&edit=1
#32342 [Asn->Csd]: Problems compiling with support to zlib
ID: 32342 Updated by: [EMAIL PROTECTED] Reported By: andre at softexpert dot com -Status: Assigned +Status: Closed Bug Type: Compile Failure Operating System: Fedora Core 3 PHP Version: 4CVS-2005-03-16 (stable) Assigned To: sniper Previous Comments: [2005-03-17 09:18:03] [EMAIL PROTECTED] Fixed in CVS now. (all branches :) [2005-03-17 08:22:53] [EMAIL PROTECTED] Jani, you probably broke this - other people have problems with it too (helly). [2005-03-16 19:18:41] andre at softexpert dot com Description: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mssql=/usr/local/freetds/ --with-zlib-dir=/usr/lib --with-interbase=/opt/firebird --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-mhash=/usr/local/mhash --with-dom --enable-bcmath --enable-dba=shared --with-db4=/usr/include/db4 php4-STABLE-200503161530/Zend/../TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory In file included from /root/install/php4-STABLE-200503161530/ext/zlib/zlib.c:28: /root/install/php4-STABLE-200503161530/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory make: ** [ext/zlib/zlib.lo] Erro 1 -- Edit this bug report at http://bugs.php.net/?id=32342&edit=1
php-bugs@lists.php.net
ID: 31245 Updated by: [EMAIL PROTECTED] Reported By: rhm31 at cam dot ac dot uk -Status: Open +Status: Bogus -Bug Type: Zend Engine 2 problem +Bug Type: Scripting Engine problem Operating System: FreeBSD PHP Version: 4.3.9 New Comment: Yeah, don't do that. You can crash PHP with other infinite recursive things too. This won't change. Previous Comments: [2004-12-22 15:41:02] rhm31 at cam dot ac dot uk In the example code, the first $obj=&new A; is not needed, sorry. [2004-12-22 15:39:24] rhm31 at cam dot ac dot uk Description: Assigning an global object to be a reference of itself causes the object to point to $GLOBALS, but only when read from $GLOBALS. This shows up as the *RECURSION* in the acutal result below. Note also that Win32 works fine but FreeBSD gives this problem. Reproduce code: --- "); var_dump($obj); print_r($GLOBALS); echo(""); ?> Expected result: object(a)(0) { } Array ( ... [GLOBALS] => Array *RECURSION* [obj] => a Object ( ) ) //Note this result is obtained in PHP 4.3.9 on Win32 Actual result: -- object(a)(0) { } Array ( ... [GLOBALS] => Array *RECURSION* [obj] => Array *RECURSION* ) //Note this result is obtained in PHP 4.3.9 on FreeBSD -- Edit this bug report at http://bugs.php.net/?id=31245&edit=1
#32323 [Opn->Asn]: imagecreatefromjpeg only black picture
ID: 32323 Updated by: [EMAIL PROTECTED] Reported By: bavaglino at west dot de -Status: Open +Status: Assigned -Bug Type: *Graphics related +Bug Type: GD related Operating System: Linux infong 2.4 #1 PHP Version: 4.3.10 Assigned To: pajoye Previous Comments: [2005-03-16 13:58:30] bavaglino at west dot de ok here we go. i made a few test with different sizes of pictures. above 2900 x 1933 pixel the thumbnail is only black. i use this code for upload the picture: -- ###links zum Uploadverzeichnis### $bildlink = "thumbs" ; $dateiname = $_FILES['datei']['name'] ; $dateitype = $_FILES['datei']['type'] ; $dateisize = $_FILES['datei']['size'] ; if (empty($dateiname)) {$fehlermeldung = ''.$TEXT['FILENAME'].'' ; } elseif ( $dateisize > '524') {$fehlermeldung = ''.$TEXT['FILESIZE'].'' ; } elseif ( strlen( $dateiname ) > '25') { $dateinamengroesse = strlen($dateiname) - 25 ; $fehlermeldung = ''.$TEXT['FILELAENGE'].'' ; } elseif ( $dateitype == 'image/jpeg' || $dateitype == 'image/pjpeg' ) { ## umwandeln von umlauten ## $dateiname1 = strtr("$dateiname", " äöüß", "_aous") ; ## umwandeln in kleinbuchstaben ## $dateiname2 = strtolower("$dateiname1") ; $bildteil = split("[.]",$dateiname2) ; $dateivorhanden = file_exists($bildlink.'/'.$bildteil[0].'_norm.'.$bildteil[1]) ; if ($dateivorhanden) {$fehlermeldung = ''.$TEXT['FILEEXIST'].'' ;} else { ## originalbild uploaden ## move_uploaded_file( $datei , $bildlink.'/'.$dateiname2 ) ; ## wie groß ist das originalbild ## $gross = getimagesize( $bildlink.'/'.$dateiname2 ) ; $breite = $gross[0] ; $hoehe = $gross[1] ; $typ = $gross[2] ; $hoehe_norm = $hoehe * 200 / $breite ; $image_norm = imagecreatetruecolor( 200 , $hoehe_norm ) ; ## neuen namen fürs thumbnail vergeben ## $bild_s = split("[.]",$dateiname2); $dateiname2_norm = $bild_s[0].'_norm.'.$bild_s[1] ; ## thumbnail erstellen ## $image_norm = imagecreatetruecolor(200, $hoehe_norm); $image = imagecreatefromjpeg( $bildlink.'/'.$dateiname2 ) ; imagecopyresampled($image_norm, $image, 0,0, 0,0,200,$hoehe_norm,$breite,$hoehe); imagejpeg($image_norm, $bildlink.'/'.$dateiname2_norm , 100 ); $fehlermeldung = ''.$TEXT['FILEDONE'].'' ; } } else {$fehlermeldung = ''.$TEXT['FILEDONEERROR'].''; } } - please download example pictures here: original picture with 3072 pixel: http://www.klixx.com/picsearch/thumbs/testbild_3072.jpg example picture with 2600 pixel: http://www.klixx.com/picsearch/thumbs/testbild_2600.jpg example picture with 2900 pixel: http://www.klixx.com/picsearch/thumbs/testbild_2900.jpg thanks for help [2005-03-15 21:51:41] [EMAIL PROTECTED] Please provide the original image. Use a simple script without dynamic values, something like the sample available at http://de3.php.net/imagecopyresampled --Pierre [2005-03-15 20:23:14] bavaglino at west dot de i changed $image_norm with $image now it's correct for this post, but still larger pictures only thumbnails in black. imagecopyresampled($image_norm, $image, 0,0, 0,0,200,$hoehe_norm,$breite,$hoehe); [2005-03-15 19:57:49] bavaglino at west dot de Description: I have a picture upload which upload the original file and a thumbnail pic. it works fine, but when i use a picture for example with 180DPI and 3000 x 2000 Pixel, the created thumbnail is only black. with a smaller resolution it works fine. Reproduce code: --- $image = imagecreatefromjpeg( $bildlink.'/'.$dateiname2 ) ; imagecopyresampled($image, $image_norm, 0,0, 0,0,200,$hoehe_norm,$breite,$hoehe); imagejpeg($image_norm, $bildlink.'/'.$dateiname2_norm , 100 ); Expected result: i want to see the picture in a smaller version but not a black picture. -- Edit this bug report at http://bugs.php.net/?id=32323&edit=1
#32349 [NEW]: basename with \
From: zamorov at edinorog dot ru Operating system: FreeBSD PHP version: 4.3.10 PHP Bug Type: Filesystem function related Bug description: basename with \ Description: basename not work correctly with windows path Reproduce code: --- $win = basename('C:\Windows\win.ini'); $unix = basename('/usr/local/etc/win.ini'); Expected result: $win = 'win.ini'; $unix = 'win.ini'; Actual result: -- $win = 'C:\Windows\win.ini'; $unix = 'win.ini'; -- Edit bug report at http://bugs.php.net/?id=32349&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32349&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32349&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32349&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32349&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32349&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32349&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32349&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32349&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32349&r=support Expected behavior: http://bugs.php.net/fix.php?id=32349&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32349&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32349&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32349&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32349&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32349&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32349&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32349&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32349&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32349&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32349&r=mysqlcfg
#32349 [Opn->Fbk]: basename with \
ID: 32349 Updated by: [EMAIL PROTECTED] Reported By: zamorov at edinorog dot ru -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 4.3.10 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2005-03-17 09:28:13] zamorov at edinorog dot ru Description: basename not work correctly with windows path Reproduce code: --- $win = basename('C:\Windows\win.ini'); $unix = basename('/usr/local/etc/win.ini'); Expected result: $win = 'win.ini'; $unix = 'win.ini'; Actual result: -- $win = 'C:\Windows\win.ini'; $unix = 'win.ini'; -- Edit this bug report at http://bugs.php.net/?id=32349&edit=1
#32343 [Opn->Bgs]: oci8.so problem
ID: 32343 Updated by: [EMAIL PROTECTED] Reported By: Gustavo_Portillo at cantv dot net -Status: Open +Status: Bogus -Bug Type: Oracle related +Bug Type: OCI8 related Operating System: suse 9.1 PHP Version: 4.3.10 New Comment: We don't support any binary releases which we don't release ourselves.. Ask SUSE support for help. Previous Comments: [2005-03-16 22:01:03] Gustavo_Portillo at cantv dot net Description: Good Afternoon. I need connect to a oracle 9 database from a php page. I installed oracle 9.2.0 client on my web sever, when I try to run the php-oci8-4.3.2-19.ent.O9206.i386.rpm its fail. The oracle client was installed ok, you can connect to the data base using sqplplus. I wish use oci8.so to connect to the data base, but oci8.so not exists in /usr/lib/php/extension paht, toh solve this I tried to run php-oci8-4.3.2-19.ent.O9206.i386.rpm but it´s fail an show the message: warning: php-oci8-4.3.2-19.ent.O9206.i386.rpm: V3 DSA signature: NOKEY, key ID 0c98ff9d error: Failed dependencies: libclntsh.so.9.0 is needed by php-oci8-4.3.2-19.ent.O9206 I don´t know wath is happend. The variable LD_LIBRERY_PATH, was defined in .bashrc file, and it's contain : export LD_LIBRARY_PATH=$ORACLE_HOME/lib. If you could help me it´s going to be very pretiated. Greettings Gustavo. Reproduce code: --- rpm -ivh php-oci8-4.3.2-19.ent.O9206.i386.rpm Expected result: warning: php-oci8-4.3.2-19.ent.O9206.i386.rpm: V3 DSA signature: NOKEY, key ID 0c98ff9d error: Failed dependencies: libclntsh.so.9.0 is needed by php-oci8-4.3.2-19.ent.O9206 Actual result: -- warning: php-oci8-4.3.2-19.ent.O9206.i386.rpm: V3 DSA signature: NOKEY, key ID 0c98ff9d error: Failed dependencies: libclntsh.so.9.0 is needed by php-oci8-4.3.2-19.ent.O9206 -- Edit this bug report at http://bugs.php.net/?id=32343&edit=1
#32341 [Opn->Fbk]: PHP failing to instantiate COM object
ID: 32341 Updated by: [EMAIL PROTECTED] Reported By: osman dot anwer at utoronto dot ca -Status: Open +Status: Feedback Bug Type: COM related Operating System: Window 2000 Server PHP Version: 4.3.10 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2005-03-16 18:33:29] osman dot anwer at utoronto dot ca Description: PHP 4.3.10 is failing to instantiate COM objects for me. I am trying to instantiate the Microsoft XML parser but it is silently failing. When I try it with PHP 4.3.8, it works perfectly. I am running Windows 2000 server with Apache 1.3.31 and PHP 4.3.10 Reproduce code: --- $xml_obj = new COM("Msxml2.DOMDocument.4.0")or die("Could not instantiate MSXML parser"); Actual result: -- I get an error saying page failed to load. -- Edit this bug report at http://bugs.php.net/?id=32341&edit=1
#32340 [Opn->Fbk]: insert_before($node,NULL) does not return
ID: 32340 Updated by: [EMAIL PROTECTED] Reported By: felix at fbreuer dot de -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: Windows PHP Version: 4.3.10 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2005-03-16 16:41:06] felix at fbreuer dot de Description: When using insert_before($node,NULL) to insert a DOM element as the last child of some other element, insert_before never returns (and does not throw an error). This call will work, if $node is unlinked before. The documentation of insert_node, however, says that unlinking is not required. See example code below. Reproduce code: --- "); $dom = domxml_open_mem(""); $root = $doc->document_element(); $node = $dom->document_element(); //$node->unlink_node(); // uncomment this to work $root->insert_before($node,NULL); echo $doc->dump_mem(); ?> Expected result: Ideally: If it is desired that the user has to explicitly unlink the node before inserting it, it would be nice to have an error message. insert_before should not hang. Actual result: -- insert_before does not return. The page is never sent to the client. No error message is given. -- Edit this bug report at http://bugs.php.net/?id=32340&edit=1
#32330 [Opn->Fbk]: session_destroy, "Failed to initialize storage module", custom session handler
ID: 32330 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type:Session related PHP Version: 4.3.10 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2005-03-16 09:29:18] [EMAIL PROTECTED] Description: When I use custom session handling functions and use the following session functions in this order: [...] session_set_save_handler(...) [...] session_start() [...] session_destroy() [...] session_start() I get "Fatal error: session_start(): Failed to initialize storage module: user (path: /var/lib/php4) in test.php on line 9" After session_destroy is called, the functions assigned with session_set_save_handler() do not work anymore and have to be assigned again. By calling session_set_save_handler() again after session_destroy() it will work. This applies to 4.9.10 and 5.0.3 as well. I think the cause is in session.c in php_session_destroy: [...] if (PS(mod)->s_destroy(&PS(mod_data), PS(id) TSRMLS_CC) == FAILURE) { retval = FAILURE; php_error_docref(NULL TSRMLS_CC, E_WARNING, "Session object destruction failed"); } php_rshutdown_session_globals(TSRMLS_C); php_rinit_session_globals(TSRMLS_C); [...] First, the user defined destroy-handler is called then php_rshutdown_session_globals and then php_rinit_session_globals. In php_rinit_session_globals PS(mod_data) is cleared static void php_rinit_session_globals(TSRMLS_D) { PS(id) = NULL; PS(session_status) = php_session_none; PS(mod_data) = NULL; PS(http_session_vars) = NULL; } which is a struct for the user defined functions. The current documentation says: "session_destroy() destroys all of the data associated with the current session." But it seems to do more: it also clears any custom set session save handlers which unexpected. Reproduce code: --- Expected result: No fatal error message Actual result: -- Fatal error: session_start(): Failed to initialize storage module: user -- Edit this bug report at http://bugs.php.net/?id=32330&edit=1
#32318 [Opn->Bgs]: memory_limit does not work
ID: 32318 Updated by: [EMAIL PROTECTED] Reported By: camka at email dot ee -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.3.10 New Comment: Broken GCC or some other tool in that system. No PHP bug if it works elsewhere.. Previous Comments: [2005-03-16 23:20:08] camka at email dot ee No. Last snapshot didn't help either. The situation is the same. On other servers code works allrigh though. What could be the clue here? [2005-03-15 23:56:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip This works fine here.. [2005-03-15 17:33:31] camka at email dot ee Description: php compiled with --enable-memory-limit, but setting the value of memory_limit more then certain number won't affect scripts. tried set the value of memory_limit in both php.ini and script body - nothing helped. Reproduce code: --- \n";flush(); } ?> Expected result: allocate at least 100MB of memory and die if exceeded. Actual result: -- 100M 1 1 - 12912 2 - 12912 3 - 12920 4 - 12944 5 - 12960 6 - 13032 7 - 13096 8 - 13224 9 - 13480 10 - 13992 11 - 15016 12 - 17064 13 - 21160 14 - 29352 15 - 45736 16 - 78504 17 - 144040 18 - 275112 19 - 537256 20 - 1061544 21 - 2110120 22 - 4207272 23 - 8401576 error_log: FATAL: erealloc(): Unable to allocate 16777217 bytes -- Edit this bug report at http://bugs.php.net/?id=32318&edit=1
#32317 [Opn->Fbk]: glibc detected double free or corruption in session_start()
ID: 32317 Updated by: [EMAIL PROTECTED] Reported By: ian_real at dominios dot net -Status: Open +Status: Feedback Bug Type: Session related Operating System: Suse 2.6.8-24-smp x86_64 PHP Version: 4.3.10 New Comment: Try again. I broke the build with bad commit. (I fixed it just a few minutes ago though :) Previous Comments: [2005-03-16 09:47:57] ian_real at dominios dot net I cant even compile php4-STABLE-200503160730 >make gcc -Iext/session/ -I/temp/php4-STABLE-200503160730/ext/session/ -DPHP_ATOM_INC -I/temp/php4-STABLE-200503160730/include -I/temp/php4-STABLE-200503160730/main -I/temp/php4-STABLE-200503160730 -I/temp/php4-STABLE-200503160730/Zend-g -Wall -c /temp/php4-STABLE-200503160730/ext/session/session.c -o ext/session/session.o && echo > ext/session/session.lo In file included from /temp/php4-STABLE-200503160730/Zend/zend_alloc.h:26, from /temp/php4-STABLE-200503160730/Zend/zend.h:223, from /temp/php4-STABLE-200503160730/main/php.h:34, from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory In file included from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory /temp/php4-STABLE-200503160730/ext/session/session.c: In function `php_session_create_id': /temp/php4-STABLE-200503160730/ext/session/session.c:579: warning: implicit declaration of function `VCWD_OPEN' /temp/php4-STABLE-200503160730/ext/session/session.c: In function `last_modified': /temp/php4-STABLE-200503160730/ext/session/session.c:759: warning: implicit declaration of function `VCWD_STAT' make: *** [ext/session/session.lo] Error 1 [2005-03-16 00:45:27] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Try using this snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz And this configure line: # ./configure --disable-all --enable-session --enable-debug And use the sapi/cli/php binary in your script. [2005-03-15 17:04:43] ian_real at dominios dot net Description: The problem only happens on our systems with two nocona 64 bit CPUs Configure Command => './configure' '--with-_lib=lib64' '--enable-sockets' '--enable-pcntl' '--enable-sigchild' '--with-bz2' '--enable-discard-path' '--with-mysql=/usr/local/mysql' '--with-curl=/usr/local' '--with-dbase' '--disable-short-tags' '--enable-track-vars' '--without-gd' '--enable-sysvshm' '--enable-sysvsem' '--disable-debug' '--enable-magic-quotes' '--enable-memory-limit' '--with-config-file-path=/usr/local/lib' '--with-zlib' Reproduce code: --- #!/usr/local/bin/php-cli Expected result: shouldnt produce any output Actual result: -- *** glibc detected *** double free or corruption: 0x0073d9a0 *** -- Edit this bug report at http://bugs.php.net/?id=32317&edit=1
#32312 [Opn->Fbk]: Error in PCRE
ID: 32312 Updated by: [EMAIL PROTECTED] Reported By: xanthor at xanthor dot tk -Status: Open +Status: Feedback Bug Type: PCRE related Operating System: GNU/Linux PHP Version: 4.3.10 New Comment: What DOES it return with PHP 4.3.2 ? Previous Comments: [2005-03-16 21:31:52] xanthor at xanthor dot tk It works with 4.3.2 [2005-03-16 00:47:24] [EMAIL PROTECTED] And with what PHP version does this work with? [2005-03-15 10:32:34] xanthor at xanthor dot tk Description: The following code returns a wrong result with some strings, but when we reduce them, it swich back to expected behaviour. Tested on PHP 4.3.10, 4.3.9, 5.0.2, and 5.0.3RC2 PCRE Library Version => 4.5 01-December-2003 Reproduce code: --- preg_match("/((.*<.*>.*)*.(.*<.+>.+<.>.+)*b)?/",'<><'.str_repeat('a',14).'>'.str_repeat('a',33).''.str_repeat('a',92).''.str_repeat('a',8).'a') Expected result: This code should return true Actual result: -- The code returns false. Reduce one of the str_repeat, and it'll return true. -- Edit this bug report at http://bugs.php.net/?id=32312&edit=1
#32323 [Asn->Bgs]: imagecreatefromjpeg only black picture
ID: 32323 Updated by: [EMAIL PROTECTED] Reported By: bavaglino at west dot de -Status: Assigned +Status: Bogus Bug Type: GD related Operating System: Linux infong 2.4 #1 PHP Version: 4.3.10 Assigned To: pajoye New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Even if you think it is not a bug, we often know better than you, please consult the support channels first before even considering to reopen this report. Thank you for your interest in PHP. testbild_2900.jpg is a correct jpeg and imagecopyresamples works with an image created using it. The two others are broken. --Pierre Previous Comments: [2005-03-16 13:58:30] bavaglino at west dot de ok here we go. i made a few test with different sizes of pictures. above 2900 x 1933 pixel the thumbnail is only black. i use this code for upload the picture: -- ###links zum Uploadverzeichnis### $bildlink = "thumbs" ; $dateiname = $_FILES['datei']['name'] ; $dateitype = $_FILES['datei']['type'] ; $dateisize = $_FILES['datei']['size'] ; if (empty($dateiname)) {$fehlermeldung = ''.$TEXT['FILENAME'].'' ; } elseif ( $dateisize > '524') {$fehlermeldung = ''.$TEXT['FILESIZE'].'' ; } elseif ( strlen( $dateiname ) > '25') { $dateinamengroesse = strlen($dateiname) - 25 ; $fehlermeldung = ''.$TEXT['FILELAENGE'].'' ; } elseif ( $dateitype == 'image/jpeg' || $dateitype == 'image/pjpeg' ) { ## umwandeln von umlauten ## $dateiname1 = strtr("$dateiname", " äöüß", "_aous") ; ## umwandeln in kleinbuchstaben ## $dateiname2 = strtolower("$dateiname1") ; $bildteil = split("[.]",$dateiname2) ; $dateivorhanden = file_exists($bildlink.'/'.$bildteil[0].'_norm.'.$bildteil[1]) ; if ($dateivorhanden) {$fehlermeldung = ''.$TEXT['FILEEXIST'].'' ;} else { ## originalbild uploaden ## move_uploaded_file( $datei , $bildlink.'/'.$dateiname2 ) ; ## wie groß ist das originalbild ## $gross = getimagesize( $bildlink.'/'.$dateiname2 ) ; $breite = $gross[0] ; $hoehe = $gross[1] ; $typ = $gross[2] ; $hoehe_norm = $hoehe * 200 / $breite ; $image_norm = imagecreatetruecolor( 200 , $hoehe_norm ) ; ## neuen namen fürs thumbnail vergeben ## $bild_s = split("[.]",$dateiname2); $dateiname2_norm = $bild_s[0].'_norm.'.$bild_s[1] ; ## thumbnail erstellen ## $image_norm = imagecreatetruecolor(200, $hoehe_norm); $image = imagecreatefromjpeg( $bildlink.'/'.$dateiname2 ) ; imagecopyresampled($image_norm, $image, 0,0, 0,0,200,$hoehe_norm,$breite,$hoehe); imagejpeg($image_norm, $bildlink.'/'.$dateiname2_norm , 100 ); $fehlermeldung = ''.$TEXT['FILEDONE'].'' ; } } else {$fehlermeldung = ''.$TEXT['FILEDONEERROR'].''; } } - please download example pictures here: original picture with 3072 pixel: http://www.klixx.com/picsearch/thumbs/testbild_3072.jpg example picture with 2600 pixel: http://www.klixx.com/picsearch/thumbs/testbild_2600.jpg example picture with 2900 pixel: http://www.klixx.com/picsearch/thumbs/testbild_2900.jpg thanks for help [2005-03-15 21:51:41] [EMAIL PROTECTED] Please provide the original image. Use a simple script without dynamic values, something like the sample available at http://de3.php.net/imagecopyresampled --Pierre [2005-03-15 20:23:14] bavaglino at west dot de i changed $image_norm with $image now it's correct for this post, but still larger pictures only thumbnails in black. imagecopyresampled($image_norm, $image, 0,0, 0,0,200,$hoehe_norm,$breite,$hoehe); [2005-03-15 19:57:49] bavaglino at west dot de Description: I have a picture upload which upload the original file and a thumbnail pic. it works fine, but when i use a picture for example with 180DPI and 3000 x 2000 Pixel, the created thumbnail is only black. with a smaller resolution it works fine. Reproduce code: --- $image = imagecreatefromjpeg( $bildlink.'/'.$dateiname2 ) ; imagecopyresampled($image, $image_norm, 0,0, 0,0,200,$hoehe_norm,$breite,$hoehe); imagejpeg($image_norm, $bildlink.'/'.$dateiname2_norm , 100 ); Expected result: i want to see the picture in a smaller version but not a black picture. -- Edit this bug report at http://bugs.php.net/?
#32330 [Opn->Asn]: session_destroy, "Failed to initialize storage module", custom session handler
ID: 32330 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Assigned Bug Type: Session related -Operating System: +Operating System: * -PHP Version: 4.3.10 +PHP Version: 4CVS, 5CVS (2005-03-17) -Assigned To: +Assigned To: sniper New Comment: I see that the php_session_destroy() is called in php_session_decode() too.. Previous Comments: [2005-03-17 10:14:08] [EMAIL PROTECTED] I unfortunately lack the time to verify this with a new php installation currently. By looking at http://cvs.php.net/co.php/php-src/ext/session/session.c?r=1.336.2.50 (latest commit of 4_3 branch) the relevant parts of the code haven't changed. PS(mod_data) is still set to NULL in php_rinit_session_globals which is called from php_session_destroy, this when a user from PHP calls session_destroy(), the custom session save handlers are removed. Thanks [2005-03-17 09:43:47] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-16 09:29:18] [EMAIL PROTECTED] Description: When I use custom session handling functions and use the following session functions in this order: [...] session_set_save_handler(...) [...] session_start() [...] session_destroy() [...] session_start() I get "Fatal error: session_start(): Failed to initialize storage module: user (path: /var/lib/php4) in test.php on line 9" After session_destroy is called, the functions assigned with session_set_save_handler() do not work anymore and have to be assigned again. By calling session_set_save_handler() again after session_destroy() it will work. This applies to 4.9.10 and 5.0.3 as well. I think the cause is in session.c in php_session_destroy: [...] if (PS(mod)->s_destroy(&PS(mod_data), PS(id) TSRMLS_CC) == FAILURE) { retval = FAILURE; php_error_docref(NULL TSRMLS_CC, E_WARNING, "Session object destruction failed"); } php_rshutdown_session_globals(TSRMLS_C); php_rinit_session_globals(TSRMLS_C); [...] First, the user defined destroy-handler is called then php_rshutdown_session_globals and then php_rinit_session_globals. In php_rinit_session_globals PS(mod_data) is cleared static void php_rinit_session_globals(TSRMLS_D) { PS(id) = NULL; PS(session_status) = php_session_none; PS(mod_data) = NULL; PS(http_session_vars) = NULL; } which is a struct for the user defined functions. The current documentation says: "session_destroy() destroys all of the data associated with the current session." But it seems to do more: it also clears any custom set session save handlers which unexpected. Reproduce code: --- Expected result: No fatal error message Actual result: -- Fatal error: session_start(): Failed to initialize storage module: user -- Edit this bug report at http://bugs.php.net/?id=32330&edit=1
#32337 [Com]: Per Directory Values registry not working
ID: 32337 Comment by: baricak at post dot cz Reported By: jsonger at maintree dot com Status: Open Bug Type: PHP options/info functions Operating System: Windows 2000 PHP Version: 5.0.3 New Comment: And Last But not Least: When I try to echo ini_get(); ,the value is correct as set in the registry, but the system does not work like it says- phpinfo() returns the old php.ini value and the system reacts as only the old php.ini was set. Previous Comments: [2005-03-17 10:30:23] baricak at post dot cz Hello, I have the same problems. I just installed php5.0-win32-200503170130.zip on IIS5 with Windows 2000 as ISAPI module and Per Directory Values does not work with some of the settings. For instance, display_errors directive works fine, but register_globals DOES NOT. The another problem is, phpinfo() output is not correct. When I set display_errors in the registry to a different value as in php.ini, in the output of phpinfo() the value of "local" column stays untouched, even though the system reactions are like the new value was set. The Version 5.0.3 has the same problems. [2005-03-16 14:30:14] jsonger at maintree dot com Description: In both 5.0.3 and 5.0.4RC1 built on Mar 16 2005 10:19:30, the ISAPI module is not using the Per Directory Values registry settings. I have not tried this with the CGI version. -- Edit this bug report at http://bugs.php.net/?id=32337&edit=1
#30760 [Fbk->Opn]: php hangs when extension does not exist
ID: 30760 User updated by: Claus-Werner dot Lermen at zf dot com Reported By: Claus-Werner dot Lermen at zf dot com -Status: Feedback +Status: Open Bug Type: IIS related Operating System: Windows 2000/2003 PHP Version: 4CVS-2005-02-11 New Comment: display_startup_error = off but the behaviour is the same no matter what the value of this variable is! Previous Comments: [2005-03-16 01:30:47] [EMAIL PROTECTED] Do you have "display_startup_errors" ini option on? [2005-02-11 11:59:40] Claus-Werner dot Lermen at zf dot com the latest snapshot does not solve the problem: php stills hangs when an extension cannot be loaded. When php.exe is called from the commandline the messagebox still pops up, even when I disable the E_CORE_WARNING. php is normally running in the background, therefore a messagebox should never be used - any message should be written to a logfile! [2005-02-11 06:16:54] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-01-04 11:22:56] programmer at bardware dot de Hi, I'm a PHP user too, I can only tell from my experience and of how I understand the sources of PHP. In the PHP source-distribution there is a file main.c It reads: if (!module_initialized || PG(log_errors)) { char *log_buffer; #ifdef PHP_WIN32 if (type==E_CORE_ERROR || type==E_CORE_WARNING) { MessageBox(NULL, buffer, error_type_str, MB_OK|ZEND_SERVICE_MB_STYLE); } #endif "Unable to load dynamic library..." is a CORE_WARNING according to what I see in the log. That means - according to my understanding of this code - if you don't log or display CORE_WARNINGs the messagebox should not appear. Try to set error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR in the PHP.ini I don't understand why the PHP-developers decided to pop up a messagebox even if you decided to only log errors and warnings. I understand your problem because I wanted to restart the Apache-Server after updating the PHP-version through a Win2K-Terminal-Session and had to go to the physical webserver though, because the MessageBoxes are shown on Windowstation 0 and not on the very console created for my Terminal-Session. Best wishes and happy new year, Bernhard [2004-11-11 12:05:28] Claus-Werner dot Lermen at zf dot com Description: php hangs when it tries to load an non existing extension. This happens no matter if cgi or ISAPI. The effect is most dramatic, if php runs als ISAPI Filter; then it is no longer possible to stop IIS. When running as cgi, the cgi timeout will evetually clean up the situation. A small typo in php.ini can thus make an webserver unavailable - which I would consider a bug. When I call php.exe from the commandline, a message box with an errormessage pops up (... unable to load dynamic library ...)! If php tries to to the same while running without a screen, could this cause the observed behaviour? I tried several php Version up to 5.02 - they all do the same! Reproduce code: --- any php code Expected result: php writes an error message! Actual result: -- php hange when running without a screen -- Edit this bug report at http://bugs.php.net/?id=30760&edit=1
#32317 [Fbk->Opn]: glibc detected double free or corruption in session_start()
ID: 32317 User updated by: ian_real at dominios dot net Reported By: ian_real at dominios dot net -Status: Feedback +Status: Open Bug Type: Session related Operating System: Suse 2.6.8-24-smp x86_64 PHP Version: 4.3.10 New Comment: It works now, thanks! Just the snapshot version seems to have even more bugs... Bug #22544 (TrueColor transparency in PNG images). [ext/gd/tests/bug22544.phpt] Bug #24155 (gdImageRotate270 rotation problem). [ext/gd/tests/bug24155.phpt] gdimagefill() function (Bug #19366 (fixed in bundled libgd)) [ext/gd/tests/bug27582_1.phpt] Bug #31213 (Sideeffects caused by bug #29493) [ext/standard/tests/array/bug31213.phpt] xslt_set_object function [ext/xslt/tests/xslt_set_object.phpt] Any idea when 4.3.11 will be released? Previous Comments: [2005-03-17 09:45:15] [EMAIL PROTECTED] Try again. I broke the build with bad commit. (I fixed it just a few minutes ago though :) [2005-03-16 09:47:57] ian_real at dominios dot net I cant even compile php4-STABLE-200503160730 >make gcc -Iext/session/ -I/temp/php4-STABLE-200503160730/ext/session/ -DPHP_ATOM_INC -I/temp/php4-STABLE-200503160730/include -I/temp/php4-STABLE-200503160730/main -I/temp/php4-STABLE-200503160730 -I/temp/php4-STABLE-200503160730/Zend-g -Wall -c /temp/php4-STABLE-200503160730/ext/session/session.c -o ext/session/session.o && echo > ext/session/session.lo In file included from /temp/php4-STABLE-200503160730/Zend/zend_alloc.h:26, from /temp/php4-STABLE-200503160730/Zend/zend.h:223, from /temp/php4-STABLE-200503160730/main/php.h:34, from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory In file included from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory /temp/php4-STABLE-200503160730/ext/session/session.c: In function `php_session_create_id': /temp/php4-STABLE-200503160730/ext/session/session.c:579: warning: implicit declaration of function `VCWD_OPEN' /temp/php4-STABLE-200503160730/ext/session/session.c: In function `last_modified': /temp/php4-STABLE-200503160730/ext/session/session.c:759: warning: implicit declaration of function `VCWD_STAT' make: *** [ext/session/session.lo] Error 1 [2005-03-16 00:45:27] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Try using this snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz And this configure line: # ./configure --disable-all --enable-session --enable-debug And use the sapi/cli/php binary in your script. [2005-03-15 17:04:43] ian_real at dominios dot net Description: The problem only happens on our systems with two nocona 64 bit CPUs Configure Command => './configure' '--with-_lib=lib64' '--enable-sockets' '--enable-pcntl' '--enable-sigchild' '--with-bz2' '--enable-discard-path' '--with-mysql=/usr/local/mysql' '--with-curl=/usr/local' '--with-dbase' '--disable-short-tags' '--enable-track-vars' '--without-gd' '--enable-sysvshm' '--enable-sysvsem' '--disable-debug' '--enable-magic-quotes' '--enable-memory-limit' '--with-config-file-path=/usr/local/lib' '--with-zlib' Reproduce code: --- #!/usr/local/bin/php-cli Expected result: shouldnt produce any output Actual result: -- *** glibc detected *** double free or corruption: 0x0073d9a0 *** -- Edit this bug report at http://bugs.php.net/?id=32317&edit=1
#32317 [Opn]: glibc detected double free or corruption in session_start()
ID: 32317 Updated by: [EMAIL PROTECTED] Reported By: ian_real at dominios dot net Status: Open Bug Type: Session related Operating System: Suse 2.6.8-24-smp x86_64 PHP Version: 4.3.10 New Comment: Hello, Please do not mix topics :) If you find other bugs not related to this one, open new ones. Thanks. For the record, about gd tests, it seems that the md5 signatures of result images differ but the tests work. --Pierre Previous Comments: [2005-03-17 12:40:55] ian_real at dominios dot net It works now, thanks! Just the snapshot version seems to have even more bugs... Bug #22544 (TrueColor transparency in PNG images). [ext/gd/tests/bug22544.phpt] Bug #24155 (gdImageRotate270 rotation problem). [ext/gd/tests/bug24155.phpt] gdimagefill() function (Bug #19366 (fixed in bundled libgd)) [ext/gd/tests/bug27582_1.phpt] Bug #31213 (Sideeffects caused by bug #29493) [ext/standard/tests/array/bug31213.phpt] xslt_set_object function [ext/xslt/tests/xslt_set_object.phpt] Any idea when 4.3.11 will be released? [2005-03-17 09:45:15] [EMAIL PROTECTED] Try again. I broke the build with bad commit. (I fixed it just a few minutes ago though :) [2005-03-16 09:47:57] ian_real at dominios dot net I cant even compile php4-STABLE-200503160730 >make gcc -Iext/session/ -I/temp/php4-STABLE-200503160730/ext/session/ -DPHP_ATOM_INC -I/temp/php4-STABLE-200503160730/include -I/temp/php4-STABLE-200503160730/main -I/temp/php4-STABLE-200503160730 -I/temp/php4-STABLE-200503160730/Zend-g -Wall -c /temp/php4-STABLE-200503160730/ext/session/session.c -o ext/session/session.o && echo > ext/session/session.lo In file included from /temp/php4-STABLE-200503160730/Zend/zend_alloc.h:26, from /temp/php4-STABLE-200503160730/Zend/zend.h:223, from /temp/php4-STABLE-200503160730/main/php.h:34, from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory In file included from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory /temp/php4-STABLE-200503160730/ext/session/session.c: In function `php_session_create_id': /temp/php4-STABLE-200503160730/ext/session/session.c:579: warning: implicit declaration of function `VCWD_OPEN' /temp/php4-STABLE-200503160730/ext/session/session.c: In function `last_modified': /temp/php4-STABLE-200503160730/ext/session/session.c:759: warning: implicit declaration of function `VCWD_STAT' make: *** [ext/session/session.lo] Error 1 [2005-03-16 00:45:27] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Try using this snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz And this configure line: # ./configure --disable-all --enable-session --enable-debug And use the sapi/cli/php binary in your script. [2005-03-15 17:04:43] ian_real at dominios dot net Description: The problem only happens on our systems with two nocona 64 bit CPUs Configure Command => './configure' '--with-_lib=lib64' '--enable-sockets' '--enable-pcntl' '--enable-sigchild' '--with-bz2' '--enable-discard-path' '--with-mysql=/usr/local/mysql' '--with-curl=/usr/local' '--with-dbase' '--disable-short-tags' '--enable-track-vars' '--without-gd' '--enable-sysvshm' '--enable-sysvsem' '--disable-debug' '--enable-magic-quotes' '--enable-memory-limit' '--with-config-file-path=/usr/local/lib' '--with-zlib' Reproduce code: --- #!/usr/local/bin/php-cli Expected result: shouldnt produce any output Actual result: -- *** glibc detected *** double free or corruption: 0x0073d9a0 *** -- Edit this bug report at http://bugs.php.net/?id=32317&edit=1
#32317 [Opn]: glibc detected double free or corruption in session_start()
ID: 32317 User updated by: ian_real at dominios dot net Reported By: ian_real at dominios dot net Status: Open Bug Type: Session related Operating System: Suse 2.6.8-24-smp x86_64 PHP Version: 4.3.10 New Comment: can you tell me which part of the code you changed, so I can patch it on 4.3.10? Thanks Previous Comments: [2005-03-17 12:48:24] [EMAIL PROTECTED] Hello, Please do not mix topics :) If you find other bugs not related to this one, open new ones. Thanks. For the record, about gd tests, it seems that the md5 signatures of result images differ but the tests work. --Pierre [2005-03-17 12:40:55] ian_real at dominios dot net It works now, thanks! Just the snapshot version seems to have even more bugs... Bug #22544 (TrueColor transparency in PNG images). [ext/gd/tests/bug22544.phpt] Bug #24155 (gdImageRotate270 rotation problem). [ext/gd/tests/bug24155.phpt] gdimagefill() function (Bug #19366 (fixed in bundled libgd)) [ext/gd/tests/bug27582_1.phpt] Bug #31213 (Sideeffects caused by bug #29493) [ext/standard/tests/array/bug31213.phpt] xslt_set_object function [ext/xslt/tests/xslt_set_object.phpt] Any idea when 4.3.11 will be released? [2005-03-17 09:45:15] [EMAIL PROTECTED] Try again. I broke the build with bad commit. (I fixed it just a few minutes ago though :) [2005-03-16 09:47:57] ian_real at dominios dot net I cant even compile php4-STABLE-200503160730 >make gcc -Iext/session/ -I/temp/php4-STABLE-200503160730/ext/session/ -DPHP_ATOM_INC -I/temp/php4-STABLE-200503160730/include -I/temp/php4-STABLE-200503160730/main -I/temp/php4-STABLE-200503160730 -I/temp/php4-STABLE-200503160730/Zend-g -Wall -c /temp/php4-STABLE-200503160730/ext/session/session.c -o ext/session/session.o && echo > ext/session/session.lo In file included from /temp/php4-STABLE-200503160730/Zend/zend_alloc.h:26, from /temp/php4-STABLE-200503160730/Zend/zend.h:223, from /temp/php4-STABLE-200503160730/main/php.h:34, from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/TSRM/TSRM.h:18:26: tsrm_config.h: No such file or directory In file included from /temp/php4-STABLE-200503160730/ext/session/session.c:26: /temp/php4-STABLE-200503160730/main/php.h:393:30: tsrm_virtual_cwd.h: No such file or directory /temp/php4-STABLE-200503160730/ext/session/session.c: In function `php_session_create_id': /temp/php4-STABLE-200503160730/ext/session/session.c:579: warning: implicit declaration of function `VCWD_OPEN' /temp/php4-STABLE-200503160730/ext/session/session.c: In function `last_modified': /temp/php4-STABLE-200503160730/ext/session/session.c:759: warning: implicit declaration of function `VCWD_STAT' make: *** [ext/session/session.lo] Error 1 [2005-03-16 00:45:27] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Try using this snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz And this configure line: # ./configure --disable-all --enable-session --enable-debug And use the sapi/cli/php binary in your script. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32317 -- Edit this bug report at http://bugs.php.net/?id=32317&edit=1
#32168 [Bgs]: A recovering of variable while using reference to $_SESSION
ID: 32168 User updated by: KRomas at goldentele dot com Reported By: KRomas at goldentele dot com Status: Bogus Bug Type: Session related Operating System: Linux PHP Version: 4CVS-2005-03-09 New Comment: There is register_globals=on on my system. I understand this as value has recovered from global variable. But why recovering not complete if I replace $val= & $_SESSION['a']; on $val= $_SESSION['a']; ? Previous Comments: [2005-03-14 21:55:58] [EMAIL PROTECTED] I'm getting the expected result with Linux. Check your php.ini settings, the ones important are: register_globals=off, and all the session.bug_compat* [2005-03-11 08:23:36] KRomas at goldentele dot com Have you the same result array(1) { ["a"]=> &array(1) { ["b"]=> int(1) } } on Linux-version of PHP? [2005-03-10 10:29:12] KRomas at goldentele dot com Yes. I have downloaded php4-win32-STABLE-latest.zip, completely removed d:\Program Files\php\, got message "The requested URL /php/php.exe/3.php was not found on this server", extracted archive to d:\Program Files\php\, executed script and got right response in contrast to Linux-version. -- phpinfo: PHP Version 4.3.11-dev System Windows NT 5.0 build 2195 Zend Engine v1.3.0 SERVER_SOFTWARE Apache/1.3.33 (Win32) [2005-03-09 22:07:43] [EMAIL PROTECTED] Are you sure you're trying same PHP version in Windows? (before installing the snapshot delete EVERY file even remotely related to PHP..) [2005-03-09 08:31:49] KRomas at goldentele dot com For now PHP Version is 4.3.11-dev (Linux) and there is the same error: array(1) { ["a"]=> &array(1) { ["b"]=> int(1) } } Win-version work perfectly however: array(1) { ["a"]=> NULL } The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32168 -- Edit this bug report at http://bugs.php.net/?id=32168&edit=1
#32351 [NEW]: Problems with freetds and mssql
From: andre at softexpert dot com Operating system: Fedora Core 3 PHP version: 4CVS-2005-03-17 (stable) PHP Bug Type: Compile Failure Bug description: Problems with freetds and mssql Description: In file included from /usr/local/freetds/include/sybfront.h:23, from /usr/local/freetds/include/sqlfront.h:23, from /root/install/php4/ext/mssql/php_mssql.h:34, from main/internal_functions.c:39: /usr/local/freetds/include/sybdb.h:118: error: redefinition of typedef 'USHORT' /opt/firebird/include/ibase.h:101: error: previous declaration of 'USHORT' was here /usr/local/freetds/include/sybdb.h:165: error: redefinition of typedef 'BYTE' /opt/firebird/include/ibase.h:156: error: previous declaration of 'BYTE' was here make: ** [main/internal_functions.lo] Erro 1 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mssql=/usr/local/freetds --with-zlib-dir=/usr/lib --with-interbase=/opt/firebird --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-mhash=/usr/local/mhash --with-dom --enable-bcmath --enable-dba=shared --with-db4=/usr/include/db4 Freetds Version: the last stable -- Edit bug report at http://bugs.php.net/?id=32351&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32351&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32351&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32351&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32351&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32351&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32351&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32351&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32351&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32351&r=support Expected behavior: http://bugs.php.net/fix.php?id=32351&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32351&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32351&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32351&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32351&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32351&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32351&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32351&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32351&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32351&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32351&r=mysqlcfg
#32352 [NEW]: Bit operator '<<' bug
From: mm at elec dot ru Operating system: FreeBSD PHP version: 4.3.10 PHP Bug Type: *General Issues Bug description: Bit operator '<<' bug Description: Operation " 9000 << 18 " return incorrect result => "-1935671296" Reproduce code: --- $userid - get unsigned value from DB $userid = 8000; $base = $userid << 18; Expected result: -1935671296 Actual result: -- 2359296000 -- Edit bug report at http://bugs.php.net/?id=32352&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32352&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32352&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32352&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32352&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32352&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32352&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32352&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32352&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32352&r=support Expected behavior: http://bugs.php.net/fix.php?id=32352&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32352&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32352&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32352&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32352&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32352&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32352&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32352&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32352&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32352&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32352&r=mysqlcfg
#32352 [Opn->Bgs]: Bit operator '<<' bug
ID: 32352 Updated by: [EMAIL PROTECTED] Reported By: mm at elec dot ru -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: FreeBSD PHP Version: 4.3.10 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Even if you think it is not a bug, we often know better than you, please consult the support channels first before even considering to reopen this report. Thank you for your interest in PHP. You are out of the integer range. Check the php manual. Previous Comments: [2005-03-17 13:45:17] mm at elec dot ru Description: Operation " 9000 << 18 " return incorrect result => "-1935671296" Reproduce code: --- $userid - get unsigned value from DB $userid = 8000; $base = $userid << 18; Expected result: -1935671296 Actual result: -- 2359296000 -- Edit this bug report at http://bugs.php.net/?id=32352&edit=1
#32353 [NEW]: SoapServer onServerRequest() 'event'
From: wb at pro-net dot co dot uk Operating system: FreeBSD 5.2.1 PHP version: 5.0.3 PHP Bug Type: Feature/Change Request Bug description: SoapServer onServerRequest() 'event' Description: I would like to be able to intercept the SoapServer when it is about to call an assigned function/method to handle a request. This would allow people to check methods before they are run and could then, for example, check that that the request service is currently enabled/active and if not throw a SoapFault which would then be sent as the soap responce for that method. If no SoapFault was thrown then it would carry and run the request as normal. An example follows. Reproduce code: --- -- Edit bug report at http://bugs.php.net/?id=32353&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32353&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32353&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32353&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32353&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32353&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32353&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32353&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32353&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32353&r=support Expected behavior: http://bugs.php.net/fix.php?id=32353&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32353&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32353&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32353&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32353&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32353&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32353&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32353&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32353&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32353&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32353&r=mysqlcfg
#32340 [Fbk->Csd]: insert_before($node,NULL) does not return
ID: 32340 Updated by: [EMAIL PROTECTED] Reported By: felix at fbreuer dot de -Status: Feedback +Status: Closed Bug Type: DOM XML related Operating System: Windows PHP Version: 4.3.10 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: [2005-03-17 09:43:22] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-16 16:41:06] felix at fbreuer dot de Description: When using insert_before($node,NULL) to insert a DOM element as the last child of some other element, insert_before never returns (and does not throw an error). This call will work, if $node is unlinked before. The documentation of insert_node, however, says that unlinking is not required. See example code below. Reproduce code: --- "); $dom = domxml_open_mem(""); $root = $doc->document_element(); $node = $dom->document_element(); //$node->unlink_node(); // uncomment this to work $root->insert_before($node,NULL); echo $doc->dump_mem(); ?> Expected result: Ideally: If it is desired that the user has to explicitly unlink the node before inserting it, it would be nice to have an error message. insert_before should not hang. Actual result: -- insert_before does not return. The page is never sent to the client. No error message is given. -- Edit this bug report at http://bugs.php.net/?id=32340&edit=1
#32354 [NEW]: Warning: ftp_get(): Unable to build data connection: No route to host
From: amit2001_shah at yahoo dot com Operating system: Linux PHP version: 4.3.8 PHP Bug Type: FTP related Bug description: Warning: ftp_get(): Unable to build data connection: No route to host Description: I am trying to connect one server with mine through ftp. Connection is working nice. but when im trying to download file from the server then its give me one Warning: ftp_get(): Unable to build data connection: No route to host Reproduce code: --- $ftpobj = new ftpclass(); $ftp_server = "server_name"; $conn_id = ftp_connect($ftp_server); $ftp_user_name = "user"; $ftp_user_pass = "password"; $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); if ((!$login_result)) { echo "Attempted to connect to $ftp_server for user $ftp_user_name has failed!"; exit; } $local_file = "3026_1491378_mp.txt.gz"; $remote_file = "merchandiser/3026_1491378_mp.txt.gz"; $download = ftp_get ( $conn_id, $local_file, $remote_file, FTP_BINARY); if ($download) { echo "Successfully written to $local_file\n"; } else { echo "No such file or directory available for download \n"; } Expected result: Successfully written to $local_file Actual result: -- Warning: ftp_get(): Unable to build data connection: No route to host -- Edit bug report at http://bugs.php.net/?id=32354&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32354&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32354&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32354&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32354&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32354&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32354&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32354&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32354&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32354&r=support Expected behavior: http://bugs.php.net/fix.php?id=32354&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32354&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32354&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32354&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32354&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32354&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32354&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32354&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32354&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32354&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32354&r=mysqlcfg
#32354 [Opn->Fbk]: Warning: ftp_get(): Unable to build data connection: No route to host
ID: 32354 Updated by: [EMAIL PROTECTED] Reported By: amit2001_shah at yahoo dot com -Status: Open +Status: Feedback Bug Type: FTP related Operating System: Linux PHP Version: 4.3.8 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2005-03-17 14:57:54] amit2001_shah at yahoo dot com Description: I am trying to connect one server with mine through ftp. Connection is working nice. but when im trying to download file from the server then its give me one Warning: ftp_get(): Unable to build data connection: No route to host Reproduce code: --- $ftpobj = new ftpclass(); $ftp_server = "server_name"; $conn_id = ftp_connect($ftp_server); $ftp_user_name = "user"; $ftp_user_pass = "password"; $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); if ((!$login_result)) { echo "Attempted to connect to $ftp_server for user $ftp_user_name has failed!"; exit; } $local_file = "3026_1491378_mp.txt.gz"; $remote_file = "merchandiser/3026_1491378_mp.txt.gz"; $download = ftp_get ( $conn_id, $local_file, $remote_file, FTP_BINARY); if ($download) { echo "Successfully written to $local_file\n"; } else { echo "No such file or directory available for download \n"; } Expected result: Successfully written to $local_file Actual result: -- Warning: ftp_get(): Unable to build data connection: No route to host -- Edit this bug report at http://bugs.php.net/?id=32354&edit=1
#32351 [Opn->Fbk]: Problems with freetds and mssql
ID: 32351 Updated by: [EMAIL PROTECTED] Reported By: andre at softexpert dot com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: Fedora Core 3 PHP Version: 4CVS-2005-03-17 (stable) New Comment: Just recompiled FreeTDS (0.64 dev from CSV) and the latest version of both PHP4 and PHP5 from CVS. I do not have that problem. What version of FreeTDS are you using? Previous Comments: [2005-03-17 13:39:47] andre at softexpert dot com Description: In file included from /usr/local/freetds/include/sybfront.h:23, from /usr/local/freetds/include/sqlfront.h:23, from /root/install/php4/ext/mssql/php_mssql.h:34, from main/internal_functions.c:39: /usr/local/freetds/include/sybdb.h:118: error: redefinition of typedef 'USHORT' /opt/firebird/include/ibase.h:101: error: previous declaration of 'USHORT' was here /usr/local/freetds/include/sybdb.h:165: error: redefinition of typedef 'BYTE' /opt/firebird/include/ibase.h:156: error: previous declaration of 'BYTE' was here make: ** [main/internal_functions.lo] Erro 1 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mssql=/usr/local/freetds --with-zlib-dir=/usr/lib --with-interbase=/opt/firebird --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-mhash=/usr/local/mhash --with-dom --enable-bcmath --enable-dba=shared --with-db4=/usr/include/db4 Freetds Version: the last stable -- Edit this bug report at http://bugs.php.net/?id=32351&edit=1
#32318 [Bgs]: memory_limit does not work
ID: 32318 User updated by: camka at email dot ee Reported By: camka at email dot ee Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.3.10 New Comment: the apache was configured as: './configure' '--bindir=/usr/bin' '--mandir=/usr/share/man' '--with-apache=../apache_1.3.33' '--with-config-file-path=/etc/apache' '--with-gnu-ld' '--without-pear' '--enable-track-vars' '--enable-memory-limit' '--enable-short-tags' '--enable-inline-optimization' '--disable-display-source' '--disable-url-fopen-wrapper' '--disable-cli' '--disable-posix' '--with-pcre-regex' '--disable-ctype' '--disable-overload' '--disable-tokenizer' '--disable-ipv6' '--disable-simplexml' '--without-sqlite' '--with-mysql=/usr' '--disable-session' '--enable-sockets' '--without-zlib' '--with-iconv' '--enable-mbstring=all' '--enable-mbregex' software versions: - fedora-release-2-4 - gcc-3.3.3-7 - binutils-2.15.90.0.3-5 perhaps any other information to provide? Previous Comments: [2005-03-17 09:44:30] [EMAIL PROTECTED] Broken GCC or some other tool in that system. No PHP bug if it works elsewhere.. [2005-03-16 23:20:08] camka at email dot ee No. Last snapshot didn't help either. The situation is the same. On other servers code works allrigh though. What could be the clue here? [2005-03-15 23:56:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip This works fine here.. [2005-03-15 17:33:31] camka at email dot ee Description: php compiled with --enable-memory-limit, but setting the value of memory_limit more then certain number won't affect scripts. tried set the value of memory_limit in both php.ini and script body - nothing helped. Reproduce code: --- \n";flush(); } ?> Expected result: allocate at least 100MB of memory and die if exceeded. Actual result: -- 100M 1 1 - 12912 2 - 12912 3 - 12920 4 - 12944 5 - 12960 6 - 13032 7 - 13096 8 - 13224 9 - 13480 10 - 13992 11 - 15016 12 - 17064 13 - 21160 14 - 29352 15 - 45736 16 - 78504 17 - 144040 18 - 275112 19 - 537256 20 - 1061544 21 - 2110120 22 - 4207272 23 - 8401576 error_log: FATAL: erealloc(): Unable to allocate 16777217 bytes -- Edit this bug report at http://bugs.php.net/?id=32318&edit=1
#32345 [Asn->Csd]: php_cli.c fails to compile after being updated to version 1.118
ID: 32345 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Assigned +Status: Closed Bug Type: Compile Failure Operating System: windows XP PHP Version: 5CVS-2005-03-16 (dev) Assigned To: andrei Previous Comments: [2005-03-17 08:31:46] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2005-03-16 23:47:08] [EMAIL PROTECTED] Description: When compiling PHP with VC++ 7.0 on windows XP, I recieve the following error: c:\work\PHP-5-1\sapi\cli\php_cli.c(414) : error C2065: 'tsrm_ls' : undeclared identifier c:\work\PHP-5-1\sapi\cli\php_cli.c(414) : warning C4022: 'php_dl' : pointer mismatch for actual parameter 4 NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2' Stop. By replacing the file with version 1.117, all compiles well. Reproduce code: --- compile it yourself and you'll see Expected result: should compile ok Actual result: -- throws an error -- Edit this bug report at http://bugs.php.net/?id=32345&edit=1
#30962 [Com]: Space being returned for NULL columns
ID: 30962 Comment by: beschr at free dot fr Reported By: richard dot quadling at bandvulc dot co dot uk Status: No Feedback Bug Type: MSSQL related Operating System: Windows XP Pro SP2 PHP Version: 5.0.3 New Comment: I've got this problem too with php 5.0.3 on IIS/Windows XP Pro SP2. With the mssql.dll of this snaps: Built On: Mar 17, 2005 01:30 GMT it work great. So I think the correction in CVs is ok and you can close this bug. Previous Comments: [2005-03-08 01:00:11] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2005-02-28 21:19:22] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-02-15 19:13:23] erudd at netfor dot com -- The reason I say this, is that if I make the column NULL, -- then I get NULL. If I make the column an empty string -- (i.e. select all and then delete - doing this in -- Enterprise Manager), I get a space in the result set! I recently came across this issue when upgrading to the lastest FreeTDS and the lastet PHP 4.3.x connecting to MS SQL Server 2000. The issue was actualy not php, as it was easily fixed by editing the freetds.conf and set the global "tds version" from 4.2 to 7.0 and the space issue went away. [2005-01-12 21:15:26] public at nexia dot ca I second the request by wchannospam at tomoye dot com to port this bug fix to 4.3.x stream. Its causing major issues for my PHP apps on Windows. [2005-01-12 21:02:43] wchannospam at tomoye dot com This problem is also appearing in PHP 4.3.x where x>=4. Can you implement the same fix there as well. Thank you very much. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30962 -- Edit this bug report at http://bugs.php.net/?id=30962&edit=1
#32283 [Opn->Fbk]: zlib.output_compression = 1 but no headers sent
ID: 32283 Updated by: [EMAIL PROTECTED] Reported By: plasmahh at gmx dot net -Status: Open +Status: Feedback Bug Type: Output Control Operating System: Linux PHP Version: 5CVS-2005-03-14 New Comment: What headers are being sent by the browser making the request? Previous Comments: [2005-03-14 19:45:02] plasmahh at gmx dot net Does not work too with the snapshot... I have changed parts of the php_enable_output_compression as followed, which works around my problem... if (php_memnstr(Z_STRVAL_PP(a_encoding), "gzip", 4, Z_STRVAL_PP(a_encoding) + Z_STRLEN_PP(a_encoding))) { ZLIBG(compression_coding) = CODING_GZIP; sapi_add_header("Content-Encoding: gzip", sizeof("Content-Encoding: gzip") - 1, 1); } else if (php_memnstr(Z_STRVAL_PP(a_encoding), "deflate", 7, Z_STRVAL_PP(a_encoding) + Z_STRLEN_PP(a_encoding))) { ZLIBG(compression_coding) = CODING_DEFLATE; sapi_add_header("Content-Encoding: deflate", sizeof("Content-Encoding: deflate") - 1, 1); } else { return FAILURE; } [2005-03-12 14:42:12] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-03-12 00:10:04] plasmahh at gmx dot net Description: When setting zlib.output_compression in php.ini and outputting any page (tried with ) no proper headers are sent. From zlib manual : Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. It looks like in zlib.c the php_enable_output_compression function should enable the compression, which it also does (the data is sent gzipped properly if the client has a proper Accept-Encoding header sent) but nowhere in there is a header sent with Content-Encoding. The only occurence is in the ob_gzhandler but it seems like this is a totally different feature. I have set a header output in my php_enable_output_compression and it works for me, dont know if this is the proper solution. -- Edit this bug report at http://bugs.php.net/?id=32283&edit=1
#32313 [Opn->Fbk]: mb_decode_mimeheader drops <> encoded parts
ID: 32313 Updated by: [EMAIL PROTECTED] Reported By: mortoray at ecircle-ag dot com -Status: Open +Status: Feedback Bug Type: mbstring related Operating System: Windows2000 PHP Version: 4.3.10 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2005-03-16 07:09:46] mortoray at ecircle-ag dot com The snapshop provided does not contain an php_mbstring.dll, and thus this function does not appear to be defined [2005-03-16 00:45:44] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-15 11:06:22] mortoray at ecircle-ag dot com Description: mb_decode_mimeheader appears to be dropping parts of the input string if encoded in angle brackets. mb_encode_mimeheader also appears to drop these bracketed sections. Reproduce code: --- $text .= '=?iso-8859-1?q?this=20is=20some=20text?= '; print( mb_decode_mimeheader( $text ) ); Expected result: this is some text Actual result: -- this is some text -- Edit this bug report at http://bugs.php.net/?id=32313&edit=1
#32311 [Opn->Fbk]: mb_encode_mimeheader does not properly escape characters
ID: 32311 Updated by: [EMAIL PROTECTED] Reported By: mortoray at ecircle-ag dot com -Status: Open +Status: Feedback Bug Type: mbstring related Operating System: Windows2000 PHP Version: 4.3.10 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: [2005-03-16 07:11:03] mortoray at ecircle-ag dot com The snapshop provided does not contain an php_mbstring.dll, and thus this function does not appear to be defined (Windows ZIP) [2005-03-16 00:58:48] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-15 10:30:51] mortoray at ecircle-ag dot com Description: At least for Q encoding, this function is unsafe and does not encode correctly. Raw characters which appear as RFC2047 sequences are simply left as is. Ex: mb_encode_mimeheader( '=?iso-8859-1?q?this=20is=20some=20text?=' ); returns '=?iso-8859-1?q?this=20is=20some=20text?=' The exact same string, which is obviously not the encoding for the source string. That is, mb_encode_mimeheader does not do any type of escaping. That is, the following condition is not always true: mb_decode_mimeheader( mb_encode_mimeheader( $text ) ) == $text Reproduce code: --- $text = '=?iso-8859-1?q?this=20is=20some=20text?='; assert( mb_decode_mimeheader( mb_encode_mimeheader( $text ) ) == $text ); Expected result: The decode/encode sequence should always return the original text. Actual result: -- Returned result is different than original (that is, the assertion fails). -- Edit this bug report at http://bugs.php.net/?id=32311&edit=1
#32345 [Csd]: php_cli.c fails to compile after being updated to version 1.118
ID: 32345 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Compile Failure Operating System: windows XP PHP Version: 5CVS-2005-03-16 (dev) Assigned To: andrei New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Fixed TSRM issue. Previous Comments: [2005-03-17 08:31:46] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2005-03-16 23:47:08] [EMAIL PROTECTED] Description: When compiling PHP with VC++ 7.0 on windows XP, I recieve the following error: c:\work\PHP-5-1\sapi\cli\php_cli.c(414) : error C2065: 'tsrm_ls' : undeclared identifier c:\work\PHP-5-1\sapi\cli\php_cli.c(414) : warning C4022: 'php_dl' : pointer mismatch for actual parameter 4 NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2' Stop. By replacing the file with version 1.117, all compiles well. Reproduce code: --- compile it yourself and you'll see Expected result: should compile ok Actual result: -- throws an error -- Edit this bug report at http://bugs.php.net/?id=32345&edit=1
#32355 [NEW]: Directory-access with dirname
From: eisbrenner at gid-gmbh dot de Operating system: Windows / All Webserver PHP version: 4.3.10 PHP Bug Type: Feature/Change Request Bug description: Directory-access with dirname Description: If, the copy-function is called with copy (dirname(__FILE__) . '/anyname', '/path/to/new/place'); on windows-systems thtis will result in i.e. copy (c:\temp\my_subdir/anyname this is not handled correctly, so the file won't be copied. it's not just related to 4.3.10, 4.3.x, 4.2.x, maybe elder versions. for solutions, that should work independet to the OS installed it's necassary to use copy (str_replace("\\", "/", dirname(__FILE__)) . '/anyname', '/path/to/new/place'); instead. it would be nice not to need this. or is there an undocumented parameter for windows to get slash instead of the BS ? same behaviour with move_uploaded_file, move. include works fine without str_replace. Reproduce code: --- see description -- Edit bug report at http://bugs.php.net/?id=32355&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32355&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32355&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32355&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32355&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32355&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32355&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32355&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32355&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32355&r=support Expected behavior: http://bugs.php.net/fix.php?id=32355&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32355&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32355&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32355&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32355&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32355&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32355&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32355&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32355&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32355&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32355&r=mysqlcfg
#32356 [NEW]: doesn't show the characters of the items
From: lavitaesbena at hotmail dot com Operating system: Windows XP PHP version: 4.3.10 PHP Bug Type: MSSQL related Bug description: doesn't show the characters of the items Description: Doesn't perform the query Reproduce code: --- $get_colors = "select item_color from store_item_color where item_id=$item_id order by item_color"; // $get_colors_res = mysql_query($get_colors) or die(mysql_error()); Expected result: To get the colours of the items Actual result: -- You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 -- Edit bug report at http://bugs.php.net/?id=32356&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32356&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32356&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32356&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32356&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32356&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32356&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32356&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32356&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32356&r=support Expected behavior: http://bugs.php.net/fix.php?id=32356&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32356&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32356&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32356&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32356&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32356&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32356&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32356&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32356&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32356&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32356&r=mysqlcfg
#32355 [Opn->Fbk]: Directory-access with dirname
ID: 32355 Updated by: [EMAIL PROTECTED] Reported By: eisbrenner at gid-gmbh dot de -Status: Open +Status: Feedback Bug Type: Feature/Change Request Operating System: Windows / All Webserver PHP Version: 4.3.10 New Comment: Why don't you just use DIRECTORY_SEPARATOR constant ? Previous Comments: [2005-03-17 19:18:01] eisbrenner at gid-gmbh dot de Description: If, the copy-function is called with copy (dirname(__FILE__) . '/anyname', '/path/to/new/place'); on windows-systems thtis will result in i.e. copy (c:\temp\my_subdir/anyname this is not handled correctly, so the file won't be copied. it's not just related to 4.3.10, 4.3.x, 4.2.x, maybe elder versions. for solutions, that should work independet to the OS installed it's necassary to use copy (str_replace("\\", "/", dirname(__FILE__)) . '/anyname', '/path/to/new/place'); instead. it would be nice not to need this. or is there an undocumented parameter for windows to get slash instead of the BS ? same behaviour with move_uploaded_file, move. include works fine without str_replace. Reproduce code: --- see description -- Edit this bug report at http://bugs.php.net/?id=32355&edit=1
#32356 [Opn->Bgs]: doesn't show the characters of the items
ID: 32356 Updated by: [EMAIL PROTECTED] Reported By: lavitaesbena at hotmail dot com -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: Windows XP PHP Version: 4.3.10 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Even if you think it is not a bug, we often know better than you, please consult the support channels first before even considering to reopen this report. Thank you for your interest in PHP. Previous Comments: [2005-03-17 19:25:27] lavitaesbena at hotmail dot com Description: Doesn't perform the query Reproduce code: --- $get_colors = "select item_color from store_item_color where item_id=$item_id order by item_color"; // $get_colors_res = mysql_query($get_colors) or die(mysql_error()); Expected result: To get the colours of the items Actual result: -- You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 -- Edit this bug report at http://bugs.php.net/?id=32356&edit=1
#29205 [Fbk->NoF]: NaN in php_sunrise_sunset()
ID: 29205 Updated by: php-bugs@lists.php.net Reported By: bjdouma at xs4all dot nl -Status: Feedback +Status: No Feedback Bug Type: Date/time related Operating System: Linux 2.6.7 PHP Version: 5.0.0 Assigned To: momo New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: [2005-03-06 20:48:45] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2004-09-21 08:33:07] [EMAIL PROTECTED] date_sunrise(gmmktime(1,1,1,7,21,2004),SUNFUNCS_RET_STRING, 67, 0, 90.83); returns 03:42 but yes i need to activate the check. [2004-07-16 11:54:17] bjdouma at xs4all dot nl Description: Good morning, Re. php-5.0.0 I noticed in sunfuncs.c/php_sunrise_sunset() there's this commented out snippet: /* XXX: What's the use of this block.. ? * if (!calc_sunset && cosH > 1 || calc_sunset && cosH < -1) { *throw doesnthappen(); * } */ What the 'if' clause actually would detect is cases where you have no sunrise or sunset, i.e. during the midnight sun period, on the Northern hemisphere around June 21st, above ca. 66.5 deg latitude. For instance, try: php_sunrise_sunset( 182, 66, 0, 90.83, 0 ); this should give a good value for sunrise, very early in the morning. Now try php_sunrise_sunset( 182, 67, 0, 90.83, 0 ); this should give NaN. The reason is obvious: above ca. 66.56 deg latitude in the summer (here day 182) you have the midnight sun period: the sun doesn't set and/or rise. However, this function isn't used anywhere -- is it? --bjd [EMAIL PROTECTED] -- Edit this bug report at http://bugs.php.net/?id=29205&edit=1
#32158 [Fbk->NoF]: imap_headerinfo() function can crash
ID: 32158 Updated by: php-bugs@lists.php.net Reported By: matti dot aarnio at kv9 dot net -Status: Feedback +Status: No Feedback Bug Type: IMAP related Operating System: Solaris 8 PHP Version: 5.0.3 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: [2005-03-04 16:39:59] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip [2005-03-02 00:51:49] matti dot aarnio at kv9 dot net Description: We have php-4.3.10 and php-5.0.3 crashing in identical manner. That isn't surprising given that relevant code inside PHPs is identical. C-Client -library is from UW-IMAP 2004c1, and oldish IMP script is asking for headers of following message: (addresses obfuscated, but structure left intact) >From [EMAIL PROTECTED] Tue Oct 12 17:18:14 2004 Received: from mx4.uuu.fi ([193.167.224.118]:48474 "EHLO mx4.uuu.fi" TLS-CIPHER: ) by mail.dnainternet.net with ESMTP id S199057AbUJLOSO (ORCPT ); Tue, 12 Oct 2004 17:18:14 +0300 Received: from localhost (localhost.localdomain [127.0.0.1]) by mx4.uuu.fi (8.12.10/8.12.10) with ESMTP id i9CEIC9I018154 for <[EMAIL PROTECTED]>; Tue, 12 Oct 2004 17:18:12 +0300 From: "Oooo Nnnn" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" =?ISO-8859-1?Q?=20?= Date: Tue, 12 Oct 2004 17:18:08 +0300 MIME-Version: 1.0 Subject: =?ISO-8859-1?Q?kfjsdkfjksdjfksdjfk_dsfsdfds=E4sfsdfsdf_28.10._sfsdfdsfsdf=E4 _sdfsdfsd_sdfsdf_sdfsdfs?= CC: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body A debug session gave functional libphp, when I preallocated excessively large string spaces in the php_imap.c::_php_imap_parse_address() function. Throwing in an extra kilobyte safety buffer for malloc()s just in case does not match my idea of sensible code, however. (Nor does it feel _safe_.) Used C-Client API is an abomination in itself, its caller must have sufficient buffer space, but there is no way to ask it to tell of how much must be allocated, and while PHP tries do figure that out, under some conditions with abnormal input it fails miserably, and the rfc822_write_address() will scribble over the end of malloc()ed buffer space, along with all merryment that such things cause... The least harm that happens is heap corruption, and Apache/PHP instance crashing. Can it lead to execution of arbitrary code in apache, that I won't speculate about. Reproduce code: --- Oldish IMP installation calling imap_headerinfo(). Any PHP-webmail setup should do with IMAP access to message store. Actual result: -- Program received signal SIGSEGV, Segmentation fault. 0xff1c158c in _malloc_unlocked () from /usr/lib/libc.so.1 (gdb) where #0 0xff1c158c in _malloc_unlocked () from /usr/lib/libc.so.1 #1 0xff1c1414 in malloc () from /usr/lib/libc.so.1 #2 0xfefdc060 in _emalloc (size=44) at /home/mea/src/php-4.3.10/Zend/zend_alloc.c:164 #3 0xfeff140c in zend_hash_add_or_update (ht=0x4d8458, arKey=0xff0af130 "personal", nKeyLength=9, pData=0xffbe3d1c, nDataSize=4, pDest=0x0, flag=1) at /home/mea/src/php-4.3.10/Zend/zend_hash.c:275 #4 0xfefefd74 in add_property_string_ex (arg=0x4cf8d0, key=0xff0af130 "personal", key_len=9, str=0x4bacf0 "[EMAIL PROTECTED] =?ISO-8859-1?Q?=20", duplicate=1) at /home/mea/src/php-4.3.10/Zend/zend_API.c:980 #5 0xfef1105c in _php_imap_parse_address (addresslist=0xffbe3d94, fulladdress=0x290, paddress=0x4cf8f8) at /home/mea/src/php-4.3.10/ext/imap/php_imap.c:3701 #6 0xfef112f4 in _php_make_header_object (myzvalue=0x4d02a0, en=0x4bac90) at /home/mea/src/php-4.3.10/ext/imap/php_imap.c:3733 #7 0xfef07f78 in zif_imap_headerinfo (ht=4957520, return_value=0x4d02a0, this_ptr=0x0, return_value_used=1) at /home/mea/src/php-4.3.10/ext/imap/php_imap.c:1506 #8 0xfefffba8 in execute (op_array=0x373880) at /home/mea/src/php-4.3.10/Zend/zend_execute.c:1642 #9 0xfefed900 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/mea/src/php-4.3.10/Zend/zend.c:900 #10 0xfefbeb98 in php_execute_script (primary_file=0xffbef620) at /home/mea/src/php-4.3.10/main/main.c:1736 #11 0xff0061f4 in apache_php_module_main (r=0x1cc7b8, display_source_mode=0) at /home/mea/src/php-4.3.10/sapi/apache/sapi_apache.c:54 #12 0xff00726c in send_php (r=0x1cc7b8, display_source_mode=0, filename=0x0)
#32266 [Fbk->NoF]: Apache with PHP as module crashes
ID: 32266 Updated by: php-bugs@lists.php.net Reported By: ew at telecom dot by -Status: Feedback +Status: No Feedback Bug Type: XML related Operating System: windows PHP Version: Irrelevant New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: [2005-03-10 18:20:57] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. There is no "Irrelevant" version. Please try it with latest snapshots and update version field with correct values. And provide more info about the problem. Just claiming that something is wrong doesn't help much as we are not able to reproduce and to distingiush the problem. [2005-03-10 17:49:00] ew at telecom dot by Description: Apache CRASHES (PHP is used as Apache module) when trying to parse simple XML document (few xml tags, generally, it does not depends on XML document size or/and structure) using xml_parser_create() / xml_parse() functions. This bug is not stable - on some machines it happens, on others - not. Main condition for bug to happen is to use handlers xml_set_element_handler(). Sometimes it's possible to avoid the bug by placing some operators or lines of code like: $a = 'gfdhfghdfgh'; in start_element_handler. I was trying to play PHP settings, to disconnect different extensions and/or Zend Optimizer and so on. This gave no effect. Both PHP 4.3.x and 5.0.0.x are bug-liable. Reproduce code: --- It's impossible to make reproduction code because of bug appearance instability. -- Edit this bug report at http://bugs.php.net/?id=32266&edit=1
#32313 [Fbk]: mb_decode_mimeheader drops <> encoded parts
ID: 32313 Updated by: [EMAIL PROTECTED] Reported By: mortoray at ecircle-ag dot com Status: Feedback Bug Type: mbstring related Operating System: Windows2000 PHP Version: 4.3.10 New Comment: Probably you are trying to show the result in your browser. every <> and the enclosed string form a tag that won't be visible. Previous Comments: [2005-03-17 18:09:21] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-16 07:09:46] mortoray at ecircle-ag dot com The snapshop provided does not contain an php_mbstring.dll, and thus this function does not appear to be defined [2005-03-16 00:45:44] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-15 11:06:22] mortoray at ecircle-ag dot com Description: mb_decode_mimeheader appears to be dropping parts of the input string if encoded in angle brackets. mb_encode_mimeheader also appears to drop these bracketed sections. Reproduce code: --- $text .= '=?iso-8859-1?q?this=20is=20some=20text?= '; print( mb_decode_mimeheader( $text ) ); Expected result: this is some text Actual result: -- this is some text -- Edit this bug report at http://bugs.php.net/?id=32313&edit=1
#32358 [NEW]: GD Functionality Missing JPEG
From: kklee at cbs dot com Operating system: Linux Fedora Core 3 PHP version: 4.3.10 PHP Bug Type: GD related Bug description: GD Functionality Missing JPEG Description: When I ran an standard "./configure --with-zlib --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr" I am able to create PNG images but not JPEG images. The symptoms I experienced are: 1. imagepng() works but imagejpeg() does not 2. phpinfo() does not show "JPG Support enabled" under the GD module I have tried the gd-2.0.28 and gd-2.0.32-3.rpm from Fedora Core installed. I also have libjpeg-6b-33 and libpng-1.2.7-1 rpms installed. I couldn't figure out what else to try to I compiled php 4.3.9 with the exact same options and all JPEG features listed above works. Am I the only one unable to utilize JPEG in 4.3.10? Sorry for the neophyte bug report but I could not find the related bug in your bug database. -- Edit bug report at http://bugs.php.net/?id=32358&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32358&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32358&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32358&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32358&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32358&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32358&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32358&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32358&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32358&r=support Expected behavior: http://bugs.php.net/fix.php?id=32358&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32358&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32358&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32358&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32358&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32358&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32358&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32358&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32358&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32358&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32358&r=mysqlcfg
#32313 [Fbk->Csd]: mb_decode_mimeheader drops <> encoded parts
ID: 32313 User updated by: mortoray at ecircle-ag dot com Reported By: mortoray at ecircle-ag dot com -Status: Feedback +Status: Closed Bug Type: mbstring related Operating System: Windows2000 PHP Version: 4.3.10 New Comment: moriyoshi is correct. I had another case of text not showing up, but as I am unable to reproduce it again, we can assume I made a mistake. Previous Comments: [2005-03-18 01:44:01] [EMAIL PROTECTED] Probably you are trying to show the result in your browser. every <> and the enclosed string form a tag that won't be visible. [2005-03-17 18:09:21] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-16 07:09:46] mortoray at ecircle-ag dot com The snapshop provided does not contain an php_mbstring.dll, and thus this function does not appear to be defined [2005-03-16 00:45:44] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip [2005-03-15 11:06:22] mortoray at ecircle-ag dot com Description: mb_decode_mimeheader appears to be dropping parts of the input string if encoded in angle brackets. mb_encode_mimeheader also appears to drop these bracketed sections. Reproduce code: --- $text .= '=?iso-8859-1?q?this=20is=20some=20text?= '; print( mb_decode_mimeheader( $text ) ); Expected result: this is some text Actual result: -- this is some text -- Edit this bug report at http://bugs.php.net/?id=32313&edit=1
#32332 [Com]: In safe mode, Authorization headers are not accesible
ID: 32332 Comment by: lacak at users dot sourceforge dot net Reported By: lacak at sourceforge dot net Status: Open Bug Type: Feature/Change Request Operating System: ANY PHP Version: 4.3.10 New Comment: if safe_mode=On there is no possibility to obtain HTTP Authorization header, so no validation can be make. The solution : why not include Authorization header in $_SERVER["Authorization"] ... ? Sample code : Previous Comments: [2005-03-16 13:09:38] lacak at sourceforge dot net Description: if PHP is running as Apache module in safe mode and I use "Digest Authorization", there is no possibility obtain supplied Authorization header. When I use apache_request_headers() function, Authorization header is not included ! So I can not authenticate request. -- Edit this bug report at http://bugs.php.net/?id=32332&edit=1
#32332 [Opn]: In safe mode, Authorization headers are not accesible
ID: 32332 User updated by: lacak at users dot sourceforge dot net -Reported By: lacak at sourceforge dot net +Reported By: lacak at users dot sourceforge dot net Status: Open Bug Type: Feature/Change Request Operating System: ANY PHP Version: 4.3.10 New Comment: if PHP is running as Apache module in safe_mode=On and I use "HTTP Digest Authorization", there is no possibility obtain supplied Authorization header. When I use apache_request_headers() function, Authorization header is not included (if safe_mode=On)! So I can not authenticate request. Previous Comments: [2005-03-18 07:35:37] lacak at users dot sourceforge dot net if safe_mode=On there is no possibility to obtain HTTP Authorization header, so no validation can be make. The solution : why not include Authorization header in $_SERVER["Authorization"] ... ? Sample code : [2005-03-16 13:09:38] lacak at users dot sourceforge dot net Description: if PHP is running as Apache module in safe mode and I use "Digest Authorization", there is no possibility obtain supplied Authorization header. When I use apache_request_headers() function, Authorization header is not included ! So I can not authenticate request. -- Edit this bug report at http://bugs.php.net/?id=32332&edit=1
#32359 [NEW]: Ingres_II config.w32
From: vogje01 at ca dot com Operating system: Win2k3 PHP version: 5CVS-2005-03-18 (dev) PHP Bug Type: Ingres II related Bug description: Ingres_II config.w32 Description: Hi, I tried to compile php5-200503170530 with ingres support on Win2k3 using VC7 (.net). All worked fine except that the config.w32 was missing. Using the following: ARG_WITH("ingres_ii", "Ingres support", "no"); if (PHP_INGRES_II != "no") { if (CHECK_LIB("libingres.lib", "ingres_ii", PHP_INGRES_II + "\\ingres\\lib") && CHECK_LIB("iilibapi.lib", "ingres_ii", PHP_INGRES_II + "\\ingres\\lib") && CHECK_HEADER_ADD_INCLUDE("iiapi.h", "CFLAGS_INGRES_II", PHP_INGRES_II + "\\ingres\\files")) { EXTENSION("ingres_ii", "ii.c"); AC_DEFINE('HAVE_II', 1, 'Have Ingres library'); } else { WARNING("Ingres not enabled; libraries and headers not found"); } } solved the problem. Configure line was: cscript configure.js --with-ingres_ii="%II_SYSTEM%" --enable-sockets --disable-spl --with-iconv --without-dom --without-xml --without-simplexml --without-wddx --enable-prefix=c:\dev\nsmi\php I'm testing it now extensively Could you please include the config.w32 into the next release? Best regards Dr. Jens Vogt Reproduce code: --- cscript configure.js --with-ingres_ii="%II_SYSTEM%" --enable-sockets --disable-spl --with-iconv --without-dom --without-xml --without-simplexml --without-wddx --enable-prefix=c:\dev\nsmi\php Expected result: Checking for library libingres.lib ... ..\..\Program Files\CA\SharedComponents\Ingres_WV\ingres\lib\libingres.lib Checking for library iilibapi.lib ... ..\..\Program Files\CA\SharedComponents\Ingres_WV\ingres\lib\iilibapi.lib Checking for iiapi.h ... C:\Program Files\CA\SharedComponents\Ingres_WV\ingres\files Enabling extension ext\ingres_ii Actual result: -- Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Unknown option --with-ingres_ii; please try configure.js --help for a list of valid options -- Edit bug report at http://bugs.php.net/?id=32359&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32359&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32359&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32359&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32359&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32359&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32359&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32359&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32359&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32359&r=support Expected behavior: http://bugs.php.net/fix.php?id=32359&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32359&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32359&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32359&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32359&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32359&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32359&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32359&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32359&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32359&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32359&r=mysqlcfg