#24452 [Bgs]: Installation not possible
ID: 24452 User updated by: T dot Jansen at ArachNet dot de Reported By: T dot Jansen at ArachNet dot de Status: Bogus Bug Type: *General Issues Operating System: Windows XP professional PHP Version: 5.0.0b1 (beta1) New Comment: @philip Various posibilities have been tested no one works (didn't know if yours have been under it but i tried yet, same result) Previous Comments: [2003-07-02 10:38:40] [EMAIL PROTECTED] What's so unintuitive about this? ;-) LoadModule php5_module d:/programme/apache2/php/sapi/php4apache2.dll BTW, this is seen as bogus because it's already come up, the documentation has been changed in CVS and will show up in the next beta (or any snap), and there is already an open bug report on the abiguity of php5 loading a php4. [2003-07-02 03:19:34] titou at ht dot st And where I can find php5_module ? [2003-07-02 03:09:42] [EMAIL PROTECTED] We're using PHP 5 here: php5_module [2003-07-02 03:01:58] T dot Jansen at ArachNet dot de On my Computer runs Windows XP professional with Servicepack1, Apache2 and (til yesterday) PHP4, mySQL without of any Problems. Yesterday i loaded the Beta1 and replaced the PHP-Directory by the new one. Also the php4apache2.dll and the php4ts.dll have been replaced. Apache2 is not able to start again. Following errors have been added to the Event-Logs: -- The Apache service named reported the following error: Syntax error on line 174 of D:/Programme/Apache2/conf/httpd.conf: -- The Apache service named reported the following error: Cannot load D:/Programme/Apache2/php/sapi/php4apache2.dll into server: Das angegebene Modul wurde nicht gefunden. -- The mentioned Line 174 is the following: LoadModule php4_module d:/programme/apache2/php/sapi/php4apache2.dll it worked until i changed the versions, of course the files are on the selected Path. [2003-07-02 01:55:10] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. 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/24452 -- Edit this bug report at http://bugs.php.net/?id=24452edit=1
#24472 [NEW]: Cannot add support for openssl
From: bond at skali dot net Operating system: Redhat 8.0 PHP version: 5.0.0b1 (beta1) PHP Bug Type: OpenSSL related Bug description: Cannot add support for openssl Description: When I am configuring php with openssl, it return that libssl not found. i already install openssl-0.9.7b. -- Edit bug report at http://bugs.php.net/?id=24472edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24472r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24472r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24472r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24472r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24472r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24472r=support Expected behavior: http://bugs.php.net/fix.php?id=24472r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24472r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24472r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24472r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24472r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24472r=dst IIS Stability: http://bugs.php.net/fix.php?id=24472r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24472r=gnused
#24174 [Com]: Seg. fault when calling imagecreatefromstring
ID: 24174 Comment by: tim at sparkart dot com Reported By: legion at altlinux dot org Status: Closed Bug Type: GD related Operating System: ALTLinux PHP Version: 4.3.2 New Comment: I ran into this same issue and went and spent some time debugging it. Here is the backtrace: #0 0x40359f9d in _int_free () from /lib/libc.so.6 #1 0x40358dda in free () from /lib/libc.so.6 #2 0x400c3e3f in gdFree (ptr=0x8224114) at gdhelpers.c:100 #3 0x400bae28 in gdFreeDynamicCtx (ctx=0x8224114) at gd_io_dp.c:154 #4 0x0806dcaa in _php_image_create_from_string (data=0x82105c4, tn=0x81922e2 JPEG, ioctx_func_p=0x806433c gdImageCreateFromJpegCtx) at /usr/local/build/php-4.3.2/ext/gd/gd.c:1286 #5 0x0806de1f in zif_imagecreatefromstring (ht=1, return_value=0x8215ed4, this_ptr=0x0, return_value_used=1) at /usr/local/build/php-4.3.2/ext/gd/gd.c:1315 #6 0x08189f24 in execute (op_array=0x8216074) at /usr/local/build/php-4.3.2/Zend/zend_execute.c:1606 #7 0x0817838c in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/build/php-4.3.2/Zend/zend.c:869 #8 0x081442d3 in php_execute_script (primary_file=0xb830) at /usr/local/build/php-4.3.2/main/main.c:1671 #9 0x081908dc in main (argc=2, argv=0xb8e4) at /usr/local/build/php-4.3.2/sapi/cgi/cgi_main.c:1501 #10 0x402fadc4 in __libc_start_main () from /lib/libc.so.6 It looks like the cause of the seg fault is the GD library (I used gd-2.0.15gif) trying to free some of the memory that php is using. Specifically php's pointer to the image data. So the work around was to null out the data pointer on php's side before it made its call to GD to free up stuff it was using. Details: The call made from php that eventually causes the seg fault is in ext/gd/gd.c around line 1284 in the _php_image_create_from_string function: io_ctx-gd_free(io_ctx); This calls the gdFreeDynamicCtx function in gd_io_dp.c (line 141 in my copy). To null out the data pointer contained under the io_ctx variables to prevent GD from trying to free the memory I added the following above the gd_free call: **((void***)(io_ctx+1)) = NULL; Its kinda messy since we don't have access to any of the GD structs. The equivalent code on the GD side of things, for example in the gdFreeDynamicCtx function, would be something like: ((dynamicPtr*)((dpIOCtx*)ctx)-dp)-data = NULL; Here is what the whole section of code in ext/gd/gd.c looks like (in my copy): ... if (!im) { php_error_docref(NULL TSRMLS_CC, E_WARNING, Passed data is not in '%s' format, tn); return NULL; } // tp - 7/2/2003 - we don't want gd trying to free() our data **((void***)(io_ctx+1)) = NULL; #if HAVE_LIBGD204 io_ctx-gd_free(io_ctx); #else io_ctx-free(io_ctx); #endif ... PHP's built in Gd library doesn't try to free the PHP's data so this work around shouldn't effect any of the built in stuff (assuming the structs have the same layouts). Previous Comments: [2003-06-16 13:33:13] [EMAIL PROTECTED] Not really, but what do you want us to do? We can't fix segfaults in 3rd-party libraries. Well, we can, we can fix them and redistribute them, exactly like we are doing. So either use the 3rd-party stuff and hope you get one which doesn't segfault or use the one we bundle that we have tested and fixed. [2003-06-16 13:25:43] legion at altlinux dot org This is the official position of mantainers of this module ? You don't support external GD library and use your own fork. Am i right ? [2003-06-16 13:00:15] [EMAIL PROTECTED] Then next bug is: i can't use function imagegif() in your solution. Can i post it ? No, this is not a bug. Even Boutell does not support gif export. I strongly suggest you to use only the bundled GD (and thinking about alternatives for the gif format), its quality and its integration to php is really better. pierre [2003-06-16 12:40:21] legion at altlinux dot org This is not the solution at all. Then next bug is: i can't use function imagegif() in your solution. Can i post it ? [2003-06-16 11:54:26] [EMAIL PROTECTED] There is the solution then, use the bundled library (which has some bugs fixed the external one hasn't) 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/24174 -- Edit this bug report at http://bugs.php.net/?id=24174edit=1
#24453 [Opn]: w32api registerfunction fails on 3rd call
ID: 24453 User updated by: jlim at natsoft dot com Reported By: jlim at natsoft dot com Status: Open Bug Type: Feature/Change Request Operating System: Windows XP PHP Version: 4.3.2 New Comment: OK, tested again with 4.3.3RC2-dev, Windows XP with the following results C:\php4\php43bphp d:\inetpub\wwwroot\php\w32.inc.php Content-type: text/html X-Powered-By: PHP/4.3.3RC2-dev Ticks=57669013 u='jlim ' Array ( [0] = registerfunction [1] = unregisterfunction [2] = registercallback [3] = definetype [4] = gettypesize [5] = inittype [6] = decref [7] = gettickcount [8] = getusername ) br / bFatal error/b: Call to undefined function: registerfunction() in bd:\in etpub\wwwroot\php\w32.inc.php/b on line b18/bbr / Also tested on a 2nd windows 2000 server, with php 4.3.2. Same result. Previous Comments: [2003-07-02 15:04:25] [EMAIL PROTECTED] Works here as expected with 4.3.2 CLI and CGI on XP Pro. [2003-07-02 01:11:52] jlim at natsoft dot com Description: If the 3rd registerfunction (for messageboxa) is commented out, the code works properly. Tested with cli version of php. Reproduce code: --- ?php error_reporting(E_ALL); $api = new win32(); $api-registerfunction(long GetTickCount () From Kernel32.dll); echo Ticks=,$api-GetTickCount(),\n; $api-registerfunction(long GetUserName (string a, int b) From advapi32.dll); $s1 = ; $size = strlen($s1); $api-GetUsername($s1,$size); $s1 = substr($s1,0,$size); echo u='$s1'\n; print_r(get_class_methods($api)); $api-registerfunction(int MessageBoxA(long hWnd, string title, string lpCaption, int uType) from User32.dll); ? Expected result: Ticks=192755858 u='jlim ' Array ( [0] = registerfunction [1] = unregisterfunction [2] = registercallback [3] = definetype [4] = gettypesize [5] = inittype [6] = decref [7] = gettickcount [8] = getusername ) br / Actual result: -- Ticks=192755858 u='jlim ' Array ( [0] = registerfunction [1] = unregisterfunction [2] = registercallback [3] = definetype [4] = gettypesize [5] = inittype [6] = decref [7] = gettickcount [8] = getusername ) br / bFatal error/b: Call to undefined function: registerfunction() in bd:\in etpub\wwwroot\php\w32.inc.php/b on line b18/bbr / -- Edit this bug report at http://bugs.php.net/?id=24453edit=1
#23922 [Opn-Csd]: With assert(string): $this unavailable inside of eval() code
ID: 23922 Updated by: [EMAIL PROTECTED] Reported By: dave at codewhore dot org -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: Linux 2.4 PHP Version: 5CVS-2003-05-31 (dev) New Comment: This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: [2003-05-31 09:48:09] dave at codewhore dot org Hi: Given the following script, which uses assert to eval() a string that references the current class instance: ?php class foo { var $foo = 1; function as_string() { assert('$this-foo == 1'); } function as_expr() { assert($this-foo == 1); } } $foo = new foo(); $foo-as_expr(); $foo-as_string(); ? PHP 4.3-cvs executes it correctly, but PHP 5.0-cvs with ZE2 fails: Fatal error: Using $this when not in object context in /home/dave/test.php(8) : assert code on line 1 Is this expected behavior? More specifically, is $this no longer available inside of an eval() on ZE2? Thanks in advance, - Dave -- Edit this bug report at http://bugs.php.net/?id=23922edit=1
#24473 [NEW]: Maybe wrong system or exec command
From: habr at iinfo dot cz Operating system: WINXP-Linux PHP version: 4CVS-2003-07-03 (stable) PHP Bug Type: *General Issues Bug description: Maybe wrong system or exec command Description: system(mysqldump --user=*** --password=*** --host=localhost --force database table /www/sqldump.sql); This command executes mysql and doesn't create the file, the output is only on the screen.I don't know why the file isn't created. Thanx Reproduce code: --- system(mysqldump --user=*** --password=*** --host=localhost --force database table /www/sqldump.sql); Expected result: Output to the file, not tho the scrren or to the variable like system( ,$array); Actual result: -- screen output only, no redirection -- Edit bug report at http://bugs.php.net/?id=24473edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24473r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24473r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24473r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24473r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24473r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24473r=support Expected behavior: http://bugs.php.net/fix.php?id=24473r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24473r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24473r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24473r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24473r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24473r=dst IIS Stability: http://bugs.php.net/fix.php?id=24473r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24473r=gnused
#24472 [Opn-Fbk]: Cannot add support for openssl
ID: 24472 Updated by: [EMAIL PROTECTED] Reported By: bond at skali dot net -Status: Open +Status: Feedback Bug Type: OpenSSL related Operating System: Redhat 8.0 PHP Version: 5.0.0b1 (beta1) New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. Previous Comments: [2003-07-03 01:54:26] bond at skali dot net Description: When I am configuring php with openssl, it return that libssl not found. i already install openssl-0.9.7b. -- Edit this bug report at http://bugs.php.net/?id=24472edit=1
#24408 [Bgs]: misinterpretation (file as a folder/directory - without an error)
ID: 24408 User updated by: theo at sponholz dot de Reported By: theo at sponholz dot de Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Linux 2.2.24-6.2.3 PHP Version: 4.3.1 New Comment: i know that i can use absolute links, but i don't want to. an other problem, caused by my first one, is shown @ http://www.sponholz.de/bilder/sp.de.uo.jpg [some searchengines impair my user online status] i installed apache 2 (php432) on my local pc [Win32] to check ... - the same problem my question: is it a feature of php or of apache? THX, THEO Previous Comments: [2003-06-30 13:30:37] postings-php-bug at hans-spath dot de I think the problem is like this: If the stylesheet is located at http://www.sponholz.de/style.css; and is refered like link rel=stylesheet type=text/css href=style.css from theo.php, the browser will search for http://www.sponholz.de/style.css; if the request was http://www.sponholz.de/theo.php; but the browser will search for http://www.sponholz.de/theo.php/style.css; if the request was http://www.sponholz.de/theo.php/; So this is indeed no PHP bug, but an Apache feature. To fix this behavior, theo.php should refer to style.css by using link rel=stylesheet type=text/css href=/style.css or link rel=stylesheet type=text/css href=http://www.sponholz.de/style.css; [2003-06-30 13:00:19] [EMAIL PROTECTED] Without knowing what you're actually doing there, I've no idea how you could 'disable' it.. Using 4.3.2 I can't reproduce anything like your site has. [2003-06-30 12:26:36] theo at sponholz dot de is it possible to disable this feature? THEO [2003-06-30 12:10:54] [EMAIL PROTECTED] Too old PHP version, plus it's not a bug but feature.. :) [2003-06-30 09:40:18] theo at sponholz dot de Description: the Apache/1.3.26 with php-mod misinterprets a file as a directory for example: http://www.sponholz.de/theo.php/ (there is no dir. /theo.php/ under http://www.sponholz.de/;, just a file theo.php) if you type http://www.sponholz.de/theo.php; the site will be shown correctly. if you type http://www.sponholz.de/theo.php/; (with an ending [SLASH]), then the server shows a site without CCS and pictures. Boths are included relativ. further: you can add strings like: http://www.sponholz.de/theo.php/type.PHP.what.PHP.you/.want; instead of returning an error http://www.sponholz.de/theo.php/; will be shown. my problem / wish: i wanna get an error, when a file or a dir./folder does not exist. by the way (i tried this @ php.net, but the php.net-server refers to google ...) thx 4 help, theo -- Edit this bug report at http://bugs.php.net/?id=24408edit=1
#24401 [Com]: register globals does not work correctly??!!
ID: 24401 Comment by: fuhaha at seoul dot com Reported By: eero at jlug dot org Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 5.0.0b1 (beta1) New Comment: php5.0b1 on linux machine. (redhat 9.0) setted register_globals=On and phpinfo() check result is register_globals On On it has problem. do not recognize GET values, and POST values. why happend this problem ? help me plz. Previous Comments: [2003-06-30 08:59:56] philippe dot nonn at cgeyDOT dot com Hi, it seems that register_globals don't even work on the Windows version. When I call a php form which call phpinfo() with parameters (like phpinfo.php?foo=test), there is non global variable $foo. The only way to get the $foo variable is to use get['foo'] Philippe [2003-06-30 06:34:34] petrich at tronic-media dot com Hi, still have the problem; (register_globals = On in php.ini are ignored, ServerApi = Apache2) Configure String: ./configure --disable-all --with-apxs2=/mnt/60giga/samba/public/www/apache2/bin/apxs Hans-Jürgen Petrich [2003-06-30 06:22:57] eero at jlug dot org Now compiled with ./configure --with-mysql --with-apxs=/home/apache/bin/apxs and problems still exists. [2003-06-30 06:01:28] [EMAIL PROTECTED] 1. Drop this: export CFLAGS=-march=athlon -O3 -pipe -fomit-frame-pointer 2. Using /usr/lib as path to ANY php configure option is incorrect (use /usr instead) 3. Remove following configure options: --enable-versioning --enable-inline-optimization 4. Try this configure line instead: # rm config.cache # ./configure --disable-all --with-apxs=home/apache/bin/apxs [2003-06-30 05:43:07] eero at jlug dot org and following settings are also on: register_globals = On register_long_arrays = On register_argc_argv = On echo $QUERY_STRING also stops working and so. 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/24401 -- Edit this bug report at http://bugs.php.net/?id=24401edit=1
#23979 [Com]: @getimagesize
ID: 23979 Comment by: diana dot castillo at nvtechnologies dot com Reported By: diana at interhotel dot com Status: Assigned Bug Type: GetImageSize related Operating System: windows PHP Version: 4.3.2 Assigned To: wez New Comment: I am the one who originally reported this, but I dont remember my password to comment on it, my original report was with [EMAIL PROTECTED] email. I found out that there was something I could change in my error reporting program so that the error would not print out to the screen . Previous Comments: [2003-07-02 23:44:22] nilanjan at unlimitedfx dot com getimagesize() fails for remote files on PHP 4.3.2 on SunOS - so I suppose this kind of a problem is not limited to a Win32 platform... I get the following error: Warning: getimagesize(http://www.exoticindiaart.com/panels/wb05sm.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found [2003-06-03 11:18:58] [EMAIL PROTECTED] I cannot replicate this Linux and the original report suggests that the script was executed on Windows. So, it is likely this is a win32 only bug. [2003-06-03 05:37:03] [EMAIL PROTECTED] Sounds like a stream problem, assigning to Wez. Can you please come up with a short script to reproduce this problem, without using a database? [2003-06-03 05:32:25] diana at interhotel dot com I use @getimagesize to resize pictures that I get from a url which comes from a database which is always changing. The problem is that sometimes the url does not contain the picture is is supposed to , and then I get the following error, I thought this was fixed in version 4.3.2 but I still get it: Warning: getimagesize(http://www.hotelresb2b.com/images/hoteles/P1KYHC022030.JPG): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found at c:\inetpub\wwwroot\web\site\ReservationManager.php line 299. Warning: getimagesize(http://www.hotelresb2b.com/planos/PLKYHC022030.GIF): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found at c:\inetpub\wwwroot\web\site\ReservationManager.php line 312. -- Edit this bug report at http://bugs.php.net/?id=23979edit=1
#24465 [Com]: No abilty to assign value to object array
ID: 24465 Comment by: postings-php-bug at hans-spath dot de Reported By: artpego at hotmail dot com Status: Open Bug Type: COM related Operating System: Windows XP SP1 PHP Version: 4.3.2 New Comment: Maybe this helps you: http://www.phpbuilder.net/columns/alain20001003.php3?page=3 Look for $cell. However, I think this is not a bug, but a support question. So this is not the appropriate place to ask. Previous Comments: [2003-07-03 00:45:49] artpego at hotmail dot com Do not dismiss this so quickly as not understanding PHP syntax. I am a very compentant PHP coder for a large company (a company which I am trying to show that PHP can replace their horrible asp/VB systems for accessing SAP). I understand PHP syntax very well and that using: $optionAdd(1,TEXT)=FCURR = 'NTD'; Will cause a parse error ##using an equal '=' sign after what php would see as a funtion call is impossible## None the less, I have not found a way to assign this value. The whole point is that I have to assign a value to a co-ordinate: TABLE COL1 ROW1 #VALUE# this co-oridinate/value is represented by (1,1) I can retrieve the default value assigned to this co-ordinate by using: $myValue=$optionAdd-value(1,1); ## LEGAL, I get my value back I am unable to ASSIGN a value since every time I try it would be hurting the parser's feelings or breaking the metods rules. $optionAdd-value(1,1)=Some Text; Unexpected '=' Error $optionAdd-value=Some Text; propput failed invalid index $optionAdd-appendRow(1,1); $optionAdd=Some Text; Invalid number of arguments appendRow The list goes on and on. I have spent more time than I can imagine hunting for ways to modify my script. I have researched the SAP COM methods for alternate solutions, I have studied examples in every other language, I tried everything I know how to do. I cannot do this. If you it is as simple as not understanding PHP syntax, then show me how it is done, otherwise, tell me why it can't be done. [2003-07-02 21:38:38] [EMAIL PROTECTED] Learn PHP syntax first. [2003-07-02 15:01:15] artpego at hotmail dot com Description: This is caused while using the RFC_READ_TABLE remote function call for SAP R/3. The ability to add a value to a temporary table at a specified row and column is required. Reproduce code: --- $funSap=new COM(SAP.Functions) or die (Did Not Create); $myFun=$funSap-Add(RFC_READ_TABLE); $optionAdd=$myFun-Tables(OPTIONS); $optionAdd-AppendRow(); $optionAdd(1,TEXT)=FCURR = 'NTD'; Expected result: The script above supposed to do the following: a) $optionAdd=$myFun-Tables(OPTIONS) ## CREATE A TABLE NAMED OPTIONS. b) $optionAdd-AppendRow() ## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE c) $optionAdd(1,TEXT)=FCURR = 'NTD' ## ASSIGN THE VALUE FCURR = 'NTD' TO THE OPTIONS TABLE (ROW 1, COLUMN1)==(1,TEXT) Actual result: -- ## ERROR - parse error, unexpected '=' in line ... This is due to the line $optionAdd(1,TEXT)=FCURR = 'NTD' I have tried countless combinations, read every piece of documentation, searched the internet for over a week and can see exambles in every other language doing exactly this with COM objects (VB,Java,PERL,Etc). Every other part of the script works a) I can connect to SAP b) I can query functions and tables and get results However: If I am unable to use the portion of the script listed above, there is no way to limit my queries through a WHERE CLAUSE or even select specific fields... This means my query results would return every row from the entire table (some have millions of entries) and there is a buffer width of 512 Bytes that can not be exceeded for each row. Your assistance will be greatly appreciated. Michael -- Edit this bug report at http://bugs.php.net/?id=24465edit=1
#24465 [Opn-Bgs]: No abilty to assign value to object array
ID: 24465 Updated by: [EMAIL PROTECTED] Reported By: artpego at hotmail dot com -Status: Open +Status: Bogus Bug Type: COM related Operating System: Windows XP SP1 PHP Version: 4.3.2 New Comment: Right Previous Comments: [2003-07-03 03:51:45] postings-php-bug at hans-spath dot de Maybe this helps you: http://www.phpbuilder.net/columns/alain20001003.php3?page=3 Look for $cell. However, I think this is not a bug, but a support question. So this is not the appropriate place to ask. [2003-07-03 00:45:49] artpego at hotmail dot com Do not dismiss this so quickly as not understanding PHP syntax. I am a very compentant PHP coder for a large company (a company which I am trying to show that PHP can replace their horrible asp/VB systems for accessing SAP). I understand PHP syntax very well and that using: $optionAdd(1,TEXT)=FCURR = 'NTD'; Will cause a parse error ##using an equal '=' sign after what php would see as a funtion call is impossible## None the less, I have not found a way to assign this value. The whole point is that I have to assign a value to a co-ordinate: TABLE COL1 ROW1 #VALUE# this co-oridinate/value is represented by (1,1) I can retrieve the default value assigned to this co-ordinate by using: $myValue=$optionAdd-value(1,1); ## LEGAL, I get my value back I am unable to ASSIGN a value since every time I try it would be hurting the parser's feelings or breaking the metods rules. $optionAdd-value(1,1)=Some Text; Unexpected '=' Error $optionAdd-value=Some Text; propput failed invalid index $optionAdd-appendRow(1,1); $optionAdd=Some Text; Invalid number of arguments appendRow The list goes on and on. I have spent more time than I can imagine hunting for ways to modify my script. I have researched the SAP COM methods for alternate solutions, I have studied examples in every other language, I tried everything I know how to do. I cannot do this. If you it is as simple as not understanding PHP syntax, then show me how it is done, otherwise, tell me why it can't be done. [2003-07-02 21:38:38] [EMAIL PROTECTED] Learn PHP syntax first. [2003-07-02 15:01:15] artpego at hotmail dot com Description: This is caused while using the RFC_READ_TABLE remote function call for SAP R/3. The ability to add a value to a temporary table at a specified row and column is required. Reproduce code: --- $funSap=new COM(SAP.Functions) or die (Did Not Create); $myFun=$funSap-Add(RFC_READ_TABLE); $optionAdd=$myFun-Tables(OPTIONS); $optionAdd-AppendRow(); $optionAdd(1,TEXT)=FCURR = 'NTD'; Expected result: The script above supposed to do the following: a) $optionAdd=$myFun-Tables(OPTIONS) ## CREATE A TABLE NAMED OPTIONS. b) $optionAdd-AppendRow() ## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE c) $optionAdd(1,TEXT)=FCURR = 'NTD' ## ASSIGN THE VALUE FCURR = 'NTD' TO THE OPTIONS TABLE (ROW 1, COLUMN1)==(1,TEXT) Actual result: -- ## ERROR - parse error, unexpected '=' in line ... This is due to the line $optionAdd(1,TEXT)=FCURR = 'NTD' I have tried countless combinations, read every piece of documentation, searched the internet for over a week and can see exambles in every other language doing exactly this with COM objects (VB,Java,PERL,Etc). Every other part of the script works a) I can connect to SAP b) I can query functions and tables and get results However: If I am unable to use the portion of the script listed above, there is no way to limit my queries through a WHERE CLAUSE or even select specific fields... This means my query results would return every row from the entire table (some have millions of entries) and there is a buffer width of 512 Bytes that can not be exceeded for each row. Your assistance will be greatly appreciated. Michael -- Edit this bug report at http://bugs.php.net/?id=24465edit=1
#24465 [Bgs-Sus]: No abilty to assign value to object array
ID: 24465 Updated by: [EMAIL PROTECTED] Reported By: artpego at hotmail dot com -Status: Bogus +Status: Suspended Bug Type: COM related Operating System: Windows XP SP1 PHP Version: 4.3.2 New Comment: PHP does not currently support this kind of thing. PHP 5 *should* allow it using [] array access, but it does not yet. Suspending this until the required hooks are present in the engine. Previous Comments: [2003-07-03 03:56:22] [EMAIL PROTECTED] Right [2003-07-03 03:51:45] postings-php-bug at hans-spath dot de Maybe this helps you: http://www.phpbuilder.net/columns/alain20001003.php3?page=3 Look for $cell. However, I think this is not a bug, but a support question. So this is not the appropriate place to ask. [2003-07-03 00:45:49] artpego at hotmail dot com Do not dismiss this so quickly as not understanding PHP syntax. I am a very compentant PHP coder for a large company (a company which I am trying to show that PHP can replace their horrible asp/VB systems for accessing SAP). I understand PHP syntax very well and that using: $optionAdd(1,TEXT)=FCURR = 'NTD'; Will cause a parse error ##using an equal '=' sign after what php would see as a funtion call is impossible## None the less, I have not found a way to assign this value. The whole point is that I have to assign a value to a co-ordinate: TABLE COL1 ROW1 #VALUE# this co-oridinate/value is represented by (1,1) I can retrieve the default value assigned to this co-ordinate by using: $myValue=$optionAdd-value(1,1); ## LEGAL, I get my value back I am unable to ASSIGN a value since every time I try it would be hurting the parser's feelings or breaking the metods rules. $optionAdd-value(1,1)=Some Text; Unexpected '=' Error $optionAdd-value=Some Text; propput failed invalid index $optionAdd-appendRow(1,1); $optionAdd=Some Text; Invalid number of arguments appendRow The list goes on and on. I have spent more time than I can imagine hunting for ways to modify my script. I have researched the SAP COM methods for alternate solutions, I have studied examples in every other language, I tried everything I know how to do. I cannot do this. If you it is as simple as not understanding PHP syntax, then show me how it is done, otherwise, tell me why it can't be done. [2003-07-02 21:38:38] [EMAIL PROTECTED] Learn PHP syntax first. [2003-07-02 15:01:15] artpego at hotmail dot com Description: This is caused while using the RFC_READ_TABLE remote function call for SAP R/3. The ability to add a value to a temporary table at a specified row and column is required. Reproduce code: --- $funSap=new COM(SAP.Functions) or die (Did Not Create); $myFun=$funSap-Add(RFC_READ_TABLE); $optionAdd=$myFun-Tables(OPTIONS); $optionAdd-AppendRow(); $optionAdd(1,TEXT)=FCURR = 'NTD'; Expected result: The script above supposed to do the following: a) $optionAdd=$myFun-Tables(OPTIONS) ## CREATE A TABLE NAMED OPTIONS. b) $optionAdd-AppendRow() ## METHOD CALLED TO ADD A BLANK ROW TO THE OPTIONS TABLE c) $optionAdd(1,TEXT)=FCURR = 'NTD' ## ASSIGN THE VALUE FCURR = 'NTD' TO THE OPTIONS TABLE (ROW 1, COLUMN1)==(1,TEXT) Actual result: -- ## ERROR - parse error, unexpected '=' in line ... This is due to the line $optionAdd(1,TEXT)=FCURR = 'NTD' I have tried countless combinations, read every piece of documentation, searched the internet for over a week and can see exambles in every other language doing exactly this with COM objects (VB,Java,PERL,Etc). Every other part of the script works a) I can connect to SAP b) I can query functions and tables and get results However: If I am unable to use the portion of the script listed above, there is no way to limit my queries through a WHERE CLAUSE or even select specific fields... This means my query results would return every row from the entire table (some have millions of entries) and there is a buffer width of 512 Bytes that can not be exceeded for each row. Your assistance will be greatly appreciated. Michael -- Edit this bug report at http://bugs.php.net/?id=24465edit=1
#24167 [Csd-Opn]: [PATCH] FastCGI server processes dying when script not found
ID: 24167 User updated by: mweilguni at sime dot com Reported By: mweilguni at sime dot com -Status: Closed +Status: Open Bug Type: CGI related Operating System: Redhat Linux 7.2 PHP Version: 4.3.2 Assigned To: shane New Comment: The bug is not really fixed. The request now works (I get No input file specified), but the affected server process still terminates and after 8 such requests alle servers are gone. What's the reason to terminate the request if no input file was found? Previous Comments: [2003-06-29 18:16:36] [EMAIL PROTECTED] Fixed. See bug #24009. [2003-06-29 15:07:16] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. this is a dup of 24009, patch being submitted shortly [2003-06-18 10:29:45] [EMAIL PROTECTED] Try this patch http://bb.prohost.org/fcgi.txt and let me know if it fixes the problem. [2003-06-13 07:46:40] [EMAIL PROTECTED] Shane should know? :) [2003-06-13 03:14:07] mweilguni at sime dot com Description: We use PHP 4.3.2 + FastCGI + Apache/mod_fcgi. The PHP fastcgi server is started in our setup with 8 preforked php-servers, so after a restart the process tree will look like: \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 so far it's ok. when I request for a non-existant script, I get the error No input file specified.. That's ok too. But after that, one server process died: \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 | \_ /usr/bin/php-fcgi-4.3.2 After requesting a non-existant script 8 times all servers are gone, only the master server process remains: \_ /usr/bin/php-fcgi-4.3.2 I checked the file sapi/cgi/cgi_main.c and it seems the error is in line 1473: if (retval == FAILURE file_handle.handle.fp == NULL) { SG(sapi_headers).http_response_code = 404; PUTS(No input file specified.\n); php_request_shutdown((void *) 0); php_module_shutdown(TSRMLS_C); return FAILURE; } IMO this should be: if (retval == FAILURE file_handle.handle.fp == NULL) { SG(sapi_headers).http_response_code = 404; PUTS(No input file specified.\n); #if PHP_FASTCGI continue; #endif php_request_shutdown((void *) 0); php_module_shutdown(TSRMLS_C); return FAILURE; } It seems to work fine, but I'm not really sure if this is right. -- Edit this bug report at http://bugs.php.net/?id=24167edit=1
#13053 [Com]: oci8 error, this kill oracle-prosseces in the oracle-instance.
ID: 13053 Comment by: mmi at uhb-consulting dot de Reported By: jsun at basefarm dot no Status: Bogus Bug Type: OCI8 related Operating System: sun solaris 64 bits PHP Version: 4.0.6 New Comment: We have the same problem with php4.3.2/Apache/1.3.26 on Linux SUSE 7.2 with Kernel 2.4.4-4GB, Oracle 8.1.7.0 doing a lot of Selects, we tried to update from 4.2.2 to 4.2.3 to 4.3.2 to solve the problem but it didn't. Errors are mixed between Warning: OCISessionBegin: ORA-24327: need explicit attach before authenticating a user and Warning: Unknown(): _oci_close_session: OCISessionEnd: Error while trying to retrieve text for error ORA-03113 The Problem is not really reproduceable, but apears only after a long runtime of apache, after restarting apache the problem doesnt't appear for a time, then suddenly it appears again. Previous Comments: [2003-01-29 02:13:04] [EMAIL PROTECTED] latest infos: Our customer said, that this problem still exists with php4.2.3, but we could not reproduce it yesterday (we made stress-tests, killed the Oracle connections via Oracle). We upgradet to php4.3.0 and the customer will also upgrade their Oracle client from 8.1.7.0 to 8.1.7.4 (at the moment only the Oracle server is running 8.1.7.4). Now I'm waiting for feedback from the customer. [2003-01-28 11:48:17] [EMAIL PROTECTED] Note: Bug #21897 ORA-03113: end-of-file on communication channel is relevant, but close because duplicated. This one seems to be bogus, though i hpe to see whether the bug can still be encountered and have some more details to trace it down. Maxim Maletsky [2002-12-02 09:48:10] ccourtoi at istar dot fr Hi, The last news about our ORA-24327 error We changed the version of php into 4.2.3 and it seems that the connection failed problem has disappeared. Thanx for your advice, Caroline :o) [2002-11-26 10:37:00] [EMAIL PROTECTED] Yes. Try the lastest CVS from snaps.php.net and, if this still happens, give us some more details. [2002-11-26 04:22:55] ccourtoi at istar dot fr I have exactly the same problem with PHP 4.1.1 Do I need to change the php version to solve this bug ? 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/13053 -- Edit this bug report at http://bugs.php.net/?id=13053edit=1
#19859 [Ver-Csd]: __call() does not catch call_user_func_array() calls
ID: 19859 Updated by: [EMAIL PROTECTED] Reported By: tater at potatoe dot com -Status: Verified +Status: Closed Bug Type: Zend Engine 2 problem Operating System: All PHP Version: 5.0.0-dev New Comment: This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. fixed Previous Comments: [2002-10-11 05:33:13] tater at potatoe dot com If an undefined class method is called via call_user_func_array(), the ZE2 __call() handler won't catch it. class test { function __call($method,$args) { print test::__call invoked for method '$method'\n; } } $x = new test; $x-fake(1); call_user_func_array(array($x,'fake'),array(1)); Output: test::__call invoked for method 'fake' Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'test::fake' was given in /usr/local/book/book/catalog/classes/bug.php on line 11 -- Edit this bug report at http://bugs.php.net/?id=19859edit=1
#24474 [NEW]: get_element_by_id doesn`t work
From: grest at interia dot pl Operating system: WinXp PHP version: 4.3.2 PHP Bug Type: DOM XML related Bug description: get_element_by_id doesn`t work Description: get_element_by_id doesn`t work and always returns NULL. Reproduce code: --- MY DTD: ?xml version=1.0 encoding=UTF-8? !ELEMENT LIST (MOVIE+) !ELEMENT MOVIE (TITLE, ORGTITLE, LOC, INFO) !ATTLIST MOVIE ID ID #REQUIRED !ELEMENT TITLE (#PCDATA) !ELEMENT ORGTITLE (#PCDATA) !ELEMENT LOC (#PCDATA) !ELEMENT INFO (#PCDATA) -- Edit bug report at http://bugs.php.net/?id=24474edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24474r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24474r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24474r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24474r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24474r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24474r=support Expected behavior: http://bugs.php.net/fix.php?id=24474r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24474r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24474r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24474r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24474r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24474r=dst IIS Stability: http://bugs.php.net/fix.php?id=24474r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24474r=gnused
#21760 [Com]: socket_read PHP_NORMAL_READ problem
ID: 21760 Comment by: johan at piri dot nu Reported By: sunday at csh dot rit dot edu Status: No Feedback Bug Type: Sockets related Operating System: FreeBSD 4.7 PHP Version: 4.3.0 New Comment: I am experiencing this problem too. And it seems that is has not been fixed with PHP 5.0.0b1. Previous Comments: [2003-06-29 06:43:49] jason at superlink dot net Bug is on 4.3.2 on redhat too. [2003-06-17 11:53:13] zstealer at nospam dot msn dot com Im having a similar problem, Im working on an IRC bot, Im using the latest stable version for windows, (4.3.3 i think) and Windows XP professional with all the latest updates. Obviously, when i do socket_read with PHP_NORMAL_READ, it returns nothing, but PHP_BINARY_READ works fine. Please fix this, I have been looking for help for a long time, Many people told me PHP_NORMAL_READ is currently buggy at the moment. [2003-06-06 21:55:27] jason at superlink dot net I have this problem on PHP 4.3.2 with FreeBSD 4.8. socket_read() will return an infinate amount of \n from the socket. This ends up using a LOT of cpu as you can well imagine. I had to write a script to kill all php processes when over 40% cpu usage. (This was before I knew about the infinate \n output). [2003-05-27 05:59:46] phpbugs at miloware dot org I'm having similar problems (PHP 4.3.1 / Windows 2003 Server Ent). Seems that adding PHP_NORMAL_READ will cause socket_read() to fail: Warning: socket_read() unable to read from socket [0] While ommiting the parameter will cause socket_read() to either not reading all the data available, or cause a never ending loop. Hope this helps [2003-05-15 08:37:44] wills at housing dot ufl dot edu I am having a similar problem with the latest -STABLE snapshot from 8:30GMT today. When I use socket_read with PHP_NORMAL_READ, I get no data returned and 'Operation completed successfully' as the returned error. This is on a Win2k SP3 system, IIS 5.0, again with the latest -STABLE snapshot. This also occurs with 4.3.2-RC2. I would be happy to test patches but I do not have the means to compile a new PHP so I am depending on the SNAPSHOTs. 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/21760 -- Edit this bug report at http://bugs.php.net/?id=21760edit=1
#24474 [Opn-Fbk]: get_element_by_id doesn`t work
ID: 24474 Updated by: [EMAIL PROTECTED] Reported By: grest at interia dot pl -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: WinXp PHP Version: 4.3.2 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. Previous Comments: [2003-07-03 04:33:10] grest at interia dot pl Description: get_element_by_id doesn`t work and always returns NULL. Reproduce code: --- MY DTD: ?xml version=1.0 encoding=UTF-8? !ELEMENT LIST (MOVIE+) !ELEMENT MOVIE (TITLE, ORGTITLE, LOC, INFO) !ATTLIST MOVIE ID ID #REQUIRED !ELEMENT TITLE (#PCDATA) !ELEMENT ORGTITLE (#PCDATA) !ELEMENT LOC (#PCDATA) !ELEMENT INFO (#PCDATA) -- Edit this bug report at http://bugs.php.net/?id=24474edit=1
#24457 [Fbk-Opn]: Segfault when executing a script
ID: 24457 User updated by: s dot vanvelthem at ibelgique dot com Reported By: s dot vanvelthem at ibelgique dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: Sco OpenServer 5.05 PHP Version: 4.3.3RC1 New Comment: Here's the trace (with the latest STABLE release php4-STABLE-200307030930.tar.gz) bash-2.03# /opt/K/SKUNK2000/Gdb/5.0/usr/local/bin/gdb /usr/local/bin/php /u/too ls/printps/core GNU gdb 5.0 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-pc-sco3.2v5.0.5... Core was generated by `printps.php'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libsocket.so.1...done. Loaded symbols for /usr/lib/libsocket.so.1 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib/libc.so.1 #0 0x80021602 in getcwd () from /usr/lib/libc.so.1 (gdb)bt #0 0x80021602 in getcwd () from /usr/lib/libc.so.1 #1 0x8007ffe0 in pathcanon () from /usr/lib/libsocket.so.1 #2 0x800802c0 in realpath () from /usr/lib/libsocket.so.1 #3 0x8129570 in php_execute_script (primary_file=0x8047c54) at /seb/php4-STABLE-200307030930/main/main.c:1652 #4 0x817570f in main (argc=2, argv=0x8047c90) at /seb/php4-STABLE-200307030930/sapi/cli/php_cli.c:818 #5 0x805ff5b in _start () (gdb) Thanks Previous Comments: [2003-07-02 06:54:21] [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. [2003-07-02 06:38:32] s dot vanvelthem at ibelgique dot com Description: when I try to execute a script with PHP4.3.3RC1/OpenServer, I've got a Segmentation fault if I don't specifiy the entire pathname before the script file ex : * ./my_script.php gives me a segmentation fault * /home/seb/my_script.php is OK see also php_scandir.c error at compile time, is this useful? I'm using : SCO OpenServer 5.05 Gcc 2.95.2pl1 UDK 7.1.1 ERRORS AND WARNING NOTES ./configure --enable-cli --disable-cgi - warning : you will need bison 1.28 - warning : you will need bison 1.28 if you want to regenerate the Zend parser (found 1.25) gmake -/seb/php4-STABLE-200307020930/ext/standard/exec.c: In function `proc_open_rsrc_dtor': -/seb/php4-STABLE-200307020930/ext/standard/exec.c:578: warning: cast from pointer to integer of different size -/seb/php4-STABLE-200307020930/ext/standard/exec.c: In function `zif_proc_open': -seb/php4-STABLE-200307020930/ext/standard/exec.c:993: warning: cast to pointer from integer of different size -/seb/php4-STABLE-200307020930/ext/standard/var_unserializer.c: In function `php_var_unserialize': -/seb/php4-STABLE-200307020930/ext/standard/var_unserializer.c:308: warning: comparison is always false due to limited range of data type -seb/php4-STABLE-200307020930/main/php_scandir.c: In function `php_scandir': -/seb/php4-STABLE-200307020930/main/php_scandir.c:116: warning: passing arg 4 of `qsort' from incompatible pointer type -- Edit this bug report at http://bugs.php.net/?id=24457edit=1
#24474 [Opn-Fbk]: get_element_by_id doesn`t work
ID: 24474 Updated by: [EMAIL PROTECTED] Reported By: grest at interia dot pl -Status: Open +Status: Feedback Bug Type: DOM XML related Operating System: WinXp PHP Version: 4.3.2 New Comment: Please provide a FULL self-contained script which should work when we copy and paste it into a file and run it with php filename. This is useles. Previous Comments: [2003-07-03 04:50:30] grest at interia dot pl $fileName = filmy.xml; $fid = $HTTP_POST_VARS['deltitle']; if(!$dom = domxml_open_file($fileName)) { echo Error while parsing the document\n; exit; } $node = $dom-get_element_by_id($fid); $parent = $node-parent_node(); $delnode = $parent-remove_child($node); $dom-dump_file(filmy.xml, true); [2003-07-03 04:36:10] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. [2003-07-03 04:33:10] grest at interia dot pl Description: get_element_by_id doesn`t work and always returns NULL. Reproduce code: --- MY DTD: ?xml version=1.0 encoding=UTF-8? !ELEMENT LIST (MOVIE+) !ELEMENT MOVIE (TITLE, ORGTITLE, LOC, INFO) !ATTLIST MOVIE ID ID #REQUIRED !ELEMENT TITLE (#PCDATA) !ELEMENT ORGTITLE (#PCDATA) !ELEMENT LOC (#PCDATA) !ELEMENT INFO (#PCDATA) -- Edit this bug report at http://bugs.php.net/?id=24474edit=1
#24413 [Opn-Fbk]: exception example provided on php site fails
ID: 24413 Updated by: [EMAIL PROTECTED] Reported By: tleake at ebuyer dot com -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: mandrake linux 9.0 PHP Version: 5.0.0b1 (beta1) New Comment: Could you please point out where is this code on the site? Previous Comments: [2003-06-30 11:34:35] tleake at ebuyer dot com Description: Trying the code below from the php site fails with the following error. This is php-5.0.0 beta1 compiled with --disable-all under linux Call to undefined method exception::__construct() Reproduce code: --- ?php class MyExceptionFoo extends Exception { function __construct($exception) { parent::__construct($exception); } } try { throw new MyExceptionFoo(Hello); } catch (MyException $exception) { print $exception-getMessage(); } ? Expected result: hello Actual result: -- br / bFatal error/b: Call to undefined method exception::__construct() in b/home/tony/software/web/php-5.0.0b1/sapi/cgi/test.php/b on line b4/bbr / -- Edit this bug report at http://bugs.php.net/?id=24413edit=1
#24476 [NEW]: Character translation in mssql_query
From: andrea dot balducci at antos dot it Operating system: WINXP / WIN2000 SRV PHP version: 5.0.0b1 (beta1) PHP Bug Type: MSSQL related Bug description: Character translation in mssql_query Description: I'm trying to insert chars like ò à è é ì in a sql server 2K table. Sometimes the chars are traslated in others. Tryed with php 4.x and 5 Reproduce code: --- Table Sample: CREATE TABLE pippo ( [a] [text] COLLATE Latin1_General_CI_AS NULL , [b] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) Script sample: ?php $conn = mssql_connect('localhost','sa',''); if (!mssql_select_db('mydb', $conn)) { mssql_close($conn); return 0; } mssql_query(INSERT INTO PIPPO (A,B) VALUES ('òàèéìù','òàèéìù'), $conn); mssql_close($conn); ? Expected result: Select * from pippo A B --- --- òàèéìù òàèéìù Actual result: -- Select * from pippo A B --- --- =ÓÞÚý¨ =ÓÞÚý¨ Using Sql Profiler i've discovered that the query issued to sql server by mssql_query has the characters already changed. So sql exec INSERT INTO PIPPO (A,B) VALUES ('=ÓÞÚý¨','=ÓÞÚý¨') -- Edit bug report at http://bugs.php.net/?id=24476edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24476r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24476r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24476r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24476r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24476r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24476r=support Expected behavior: http://bugs.php.net/fix.php?id=24476r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24476r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24476r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24476r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24476r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24476r=dst IIS Stability: http://bugs.php.net/fix.php?id=24476r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24476r=gnused
#24473 [Opn-Bgs]: Maybe wrong system or exec command
ID: 24473 Updated by: [EMAIL PROTECTED] Reported By: habr at iinfo dot cz -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: WINXP-Linux PHP Version: 4CVS-2003-07-03 (stable) New Comment: Works fine here..propably permissions problem. Previous Comments: [2003-07-03 02:19:24] habr at iinfo dot cz Description: system(mysqldump --user=*** --password=*** --host=localhost --force database table /www/sqldump.sql); This command executes mysql and doesn't create the file, the output is only on the screen.I don't know why the file isn't created. Thanx Reproduce code: --- system(mysqldump --user=*** --password=*** --host=localhost --force database table /www/sqldump.sql); Expected result: Output to the file, not tho the scrren or to the variable like system( ,$array); Actual result: -- screen output only, no redirection -- Edit this bug report at http://bugs.php.net/?id=24473edit=1
#24413 [Fbk-Opn]: exception example provided on php site fails
ID: 24413 User updated by: tleake at ebuyer dot com Reported By: tleake at ebuyer dot com -Status: Feedback +Status: Open Bug Type: Zend Engine 2 problem Operating System: mandrake linux 9.0 PHP Version: 5.0.0b1 (beta1) New Comment: Sure its http://www.php.net/zend-engine-2.php in the section exceptions Previous Comments: [2003-07-03 05:01:49] [EMAIL PROTECTED] Could you please point out where is this code on the site? [2003-06-30 11:34:35] tleake at ebuyer dot com Description: Trying the code below from the php site fails with the following error. This is php-5.0.0 beta1 compiled with --disable-all under linux Call to undefined method exception::__construct() Reproduce code: --- ?php class MyExceptionFoo extends Exception { function __construct($exception) { parent::__construct($exception); } } try { throw new MyExceptionFoo(Hello); } catch (MyException $exception) { print $exception-getMessage(); } ? Expected result: hello Actual result: -- br / bFatal error/b: Call to undefined method exception::__construct() in b/home/tony/software/web/php-5.0.0b1/sapi/cgi/test.php/b on line b4/bbr / -- Edit this bug report at http://bugs.php.net/?id=24413edit=1
#24167 [Opn-Asn]: [PATCH] FastCGI server processes dying when script not found
ID: 24167 Updated by: [EMAIL PROTECTED] Reported By: mweilguni at sime dot com -Status: Open +Status: Assigned Bug Type: CGI related Operating System: Redhat Linux 7.2 PHP Version: 4.3.2 Assigned To: shane New Comment: Shane, take a look? Previous Comments: [2003-07-03 04:11:47] mweilguni at sime dot com The bug is not really fixed. The request now works (I get No input file specified), but the affected server process still terminates and after 8 such requests alle servers are gone. What's the reason to terminate the request if no input file was found? [2003-06-29 18:16:36] [EMAIL PROTECTED] Fixed. See bug #24009. [2003-06-29 15:07:16] [EMAIL PROTECTED] Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. this is a dup of 24009, patch being submitted shortly [2003-06-18 10:29:45] [EMAIL PROTECTED] Try this patch http://bb.prohost.org/fcgi.txt and let me know if it fixes the problem. [2003-06-13 07:46:40] [EMAIL PROTECTED] Shane should know? :) 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/24167 -- Edit this bug report at http://bugs.php.net/?id=24167edit=1
#24474 [Fbk-Opn]: get_element_by_id doesn`t work
ID: 24474 User updated by: grest at interia dot pl Reported By: grest at interia dot pl -Status: Feedback +Status: Open Bug Type: DOM XML related Operating System: WinXp PHP Version: 4.3.2 New Comment: del.php ?php $fileName = filmy.xml; $fid = $HTTP_POST_VARS['deltitle']; if(!$dom = domxml_open_file($fileName)) { echo Error while parsing the document\n; exit; } $node = $dom-get_element_by_id($fid); $parent = $node-parent_node(); $delnode = $parent-remove_child($node); $dom-dump_file(filmy.xml, true); $filename = filmy.xsl; $xmldoc = domxml_open_file(filmy.xml); $xsldoc = domxml_xslt_stylesheet_file($filename); $result = $xsldoc-process($xmldoc); print $xsldoc-result_dump_mem($result); ? filmy.xml: ?xml version=1.0 encoding=UTF-8 standalone=no? !DOCTYPE LIST SYSTEM filmy.dtd LIST MOVIE ID=m20036271138360 TITLE13 Duchów/TITLE ORGTITLE/LOCGrzesiek HDD/LOC INFO/ /MOVIE MOVIE ID=m20036271138361 TITLE8 kobiet/TITLE ORGTITLE/ LOCGrzesiek HDD/LOC INFO/ /MOVIE /LIST simply.html: html body form action=del.php method=post style=margin:0px input type=hidden name=deltitle size=1 value=m20036271138360input type=image name=Delete src=del.gif /form /body /html I`m sure that 'deltitle' and $fid variable are correct connected (sorry for my English :P ), but get_element_by_id doesn`t find the node in XML file(filmy.xml) Previous Comments: [2003-07-03 04:57:25] [EMAIL PROTECTED] Please provide a FULL self-contained script which should work when we copy and paste it into a file and run it with php filename. This is useles. [2003-07-03 04:50:30] grest at interia dot pl $fileName = filmy.xml; $fid = $HTTP_POST_VARS['deltitle']; if(!$dom = domxml_open_file($fileName)) { echo Error while parsing the document\n; exit; } $node = $dom-get_element_by_id($fid); $parent = $node-parent_node(); $delnode = $parent-remove_child($node); $dom-dump_file(filmy.xml, true); [2003-07-03 04:36:10] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. [2003-07-03 04:33:10] grest at interia dot pl Description: get_element_by_id doesn`t work and always returns NULL. Reproduce code: --- MY DTD: ?xml version=1.0 encoding=UTF-8? !ELEMENT LIST (MOVIE+) !ELEMENT MOVIE (TITLE, ORGTITLE, LOC, INFO) !ATTLIST MOVIE ID ID #REQUIRED !ELEMENT TITLE (#PCDATA) !ELEMENT ORGTITLE (#PCDATA) !ELEMENT LOC (#PCDATA) !ELEMENT INFO (#PCDATA) -- Edit this bug report at http://bugs.php.net/?id=24474edit=1
#24369 [Opn-Fbk]: Error: 1285-302 The parse tree is too large.
ID: 24369 Updated by: [EMAIL PROTECTED] Reported By: bxny78 at yahoo dot com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: aix 5.1 PHP Version: 4.3.2 New Comment: I bet the compiler version is different in your AIX 4.3.3? Doesn't the native compiler work? (instead of GCC) Previous Comments: [2003-07-02 22:52:07] bxny78 at yahoo dot com FYI - this same code was compiled on AIX 4.3.3 and works well, with the same level of everything (gcc, make, flex, bison, etc) [2003-07-02 22:46:03] bxny78 at aol dot com Config line -- ./configure --with-ibm-db2=/home/db2inst1/sqllib \ --with-apxs=/usr/HTTPServer/bin/apxs \ --prefix=/usr/HTTPServer/php \ --with-config-file-path=/usr/HTTPServer/php/conf \ --with-gd \ --with-jpeg-dir=/usr/lib/ \ --with-png-dir=/usr/local/include/libpng \ --with-odbc \ --with-zlib [2003-07-02 22:17:01] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to Open. Thank you. [2003-06-27 19:02:41] [EMAIL PROTECTED] What was the configure line you used? [2003-06-27 18:03:43] bxny78 at yahoo dot com Description: I have the below error message when running make on aix 5.1 with gcc 2.9-aix51-020209 Reproduce code: --- configure went ok... Expected result: no errors ;-) Actual result: -- gcc -IZend/ -I/php/php-4.3.2/Zend/ -DPHP_ATOM_INC -I/php/php432/include -I/php/php432/main -I/php/php-4.3.2 -I/php/php432/Zend -I/usr/local/include -I/ php/php-4.3.2/ext/xml/expat -I/php/php-4.3.2/main -I/php/php-4.3.2/Zend -I/php/p hp-4.3.2/TSRM -I/php/php432/TSRM -g -O2 -c Zend/zend_language_parser.c -o Zen d/zend_language_parser.o echo Zend/zend_language_parser.lo lex -Pzend -S/php/php-4.3.2/Zend/flex.skl -oZend/zend_language_scanner.c -i /php/php-4.3.2/Zend/zend_language_scanner.l 0: Warning: 1285-300 The P flag is not valid. 0: Warning: 1285-300 The z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The S flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The h flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The h flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The - flag is not valid. 0: Warning: 1285-300 The 4 flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The 3 flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The 2 flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The Z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The f flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The x flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The s flag is not valid. 0: Warning: 1285-300 The k flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The o flag is not valid. 0: Warning: 1285-300 The Z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The _ flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The g flag is not valid. 0: Warning: 1285-300 The u flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The g flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The _ flag is not valid. 0: Warning: 1285-300 The s flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-339 Ratfor is not supported with lex. 0: Warning: 1285-300 The . flag is not valid. 0:
#24474 [Opn-Bgs]: get_element_by_id doesn`t work
ID: 24474 Updated by: [EMAIL PROTECTED] Reported By: grest at interia dot pl -Status: Open +Status: Bogus Bug Type: DOM XML related Operating System: WinXp PHP Version: 4.3.2 New Comment: Your xml is not valid: # /usr/bin/xmllint filmy.xml filmy.xml:5: error: Input is not proper UTF-8, indicate encoding ! TITLE13 Duchów/TITLE ^ filmy.xml:5: error: Bytes: 0xF3 0x77 0x3C 0x2F TITLE13 Duchów/TITLE ^ Previous Comments: [2003-07-03 05:18:31] grest at interia dot pl del.php ?php $fileName = filmy.xml; $fid = $HTTP_POST_VARS['deltitle']; if(!$dom = domxml_open_file($fileName)) { echo Error while parsing the document\n; exit; } $node = $dom-get_element_by_id($fid); $parent = $node-parent_node(); $delnode = $parent-remove_child($node); $dom-dump_file(filmy.xml, true); $filename = filmy.xsl; $xmldoc = domxml_open_file(filmy.xml); $xsldoc = domxml_xslt_stylesheet_file($filename); $result = $xsldoc-process($xmldoc); print $xsldoc-result_dump_mem($result); ? filmy.xml: ?xml version=1.0 encoding=UTF-8 standalone=no? !DOCTYPE LIST SYSTEM filmy.dtd LIST MOVIE ID=m20036271138360 TITLE13 Duchów/TITLE ORGTITLE/LOCGrzesiek HDD/LOC INFO/ /MOVIE MOVIE ID=m20036271138361 TITLE8 kobiet/TITLE ORGTITLE/ LOCGrzesiek HDD/LOC INFO/ /MOVIE /LIST simply.html: html body form action=del.php method=post style=margin:0px input type=hidden name=deltitle size=1 value=m20036271138360input type=image name=Delete src=del.gif /form /body /html I`m sure that 'deltitle' and $fid variable are correct connected (sorry for my English :P ), but get_element_by_id doesn`t find the node in XML file(filmy.xml) [2003-07-03 04:57:25] [EMAIL PROTECTED] Please provide a FULL self-contained script which should work when we copy and paste it into a file and run it with php filename. This is useles. [2003-07-03 04:50:30] grest at interia dot pl $fileName = filmy.xml; $fid = $HTTP_POST_VARS['deltitle']; if(!$dom = domxml_open_file($fileName)) { echo Error while parsing the document\n; exit; } $node = $dom-get_element_by_id($fid); $parent = $node-parent_node(); $delnode = $parent-remove_child($node); $dom-dump_file(filmy.xml, true); [2003-07-03 04:36:10] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. [2003-07-03 04:33:10] grest at interia dot pl Description: get_element_by_id doesn`t work and always returns NULL. Reproduce code: --- MY DTD: ?xml version=1.0 encoding=UTF-8? !ELEMENT LIST (MOVIE+) !ELEMENT MOVIE (TITLE, ORGTITLE, LOC, INFO) !ATTLIST MOVIE ID ID #REQUIRED !ELEMENT TITLE (#PCDATA) !ELEMENT ORGTITLE (#PCDATA) !ELEMENT LOC (#PCDATA) !ELEMENT INFO (#PCDATA) -- Edit this bug report at http://bugs.php.net/?id=24474edit=1
#24477 [NEW]: Problem returning new class by ref from function
From: karl at karlaustin dot com Operating system: RH7.3 PHP version: 5CVS-2003-07-03 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Problem returning new class by ref from function Description: Fatal error: Only variables or references can be returned by reference in /usr/local/php5/lib/php/DB/common.php on line 737 If seems that doing: return new DB_result($this, $result); in a function results in the above error, but: $_tmp = new DB_result($this, $result); return $_tmp; Is fine. -- Edit bug report at http://bugs.php.net/?id=24477edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24477r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24477r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24477r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24477r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24477r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24477r=support Expected behavior: http://bugs.php.net/fix.php?id=24477r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24477r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24477r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24477r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24477r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24477r=dst IIS Stability: http://bugs.php.net/fix.php?id=24477r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24477r=gnused
#24477 [Opn-Ver]: Apache child process segfaults or bus error whil trying to use graph functions
ID: 24477 Updated by: [EMAIL PROTECTED] -Summary: Problem returning new class by ref from function Reported By: karl at karlaustin dot com -Status: Open +Status: Verified Bug Type: Zend Engine 2 problem -Operating System: RH7.3 +Operating System: Solaris 8 9 -PHP Version: 5CVS-2003-07-03 (dev) +PHP Version: 4.3.2 New Comment: Cause: http://news.php.net/article.php?group=php.zend-engine.cvsarticle=1432 I wonder if we really should break BC here... Previous Comments: [2003-07-03 06:13:42] karl at karlaustin dot com Description: Fatal error: Only variables or references can be returned by reference in /usr/local/php5/lib/php/DB/common.php on line 737 If seems that doing: return new DB_result($this, $result); in a function results in the above error, but: $_tmp = new DB_result($this, $result); return $_tmp; Is fine. -- Edit this bug report at http://bugs.php.net/?id=24477edit=1
#24413 [Opn-Csd]: exception example provided on php site fails
ID: 24413 Updated by: [EMAIL PROTECTED] Reported By: tleake at ebuyer dot com -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: mandrake linux 9.0 PHP Version: 5.0.0b1 (beta1) New Comment: This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Should work now (except for MyException should be MyExceptionFoo in the catch). Previous Comments: [2003-07-03 05:15:06] tleake at ebuyer dot com Sure its http://www.php.net/zend-engine-2.php in the section exceptions [2003-07-03 05:01:49] [EMAIL PROTECTED] Could you please point out where is this code on the site? [2003-06-30 11:34:35] tleake at ebuyer dot com Description: Trying the code below from the php site fails with the following error. This is php-5.0.0 beta1 compiled with --disable-all under linux Call to undefined method exception::__construct() Reproduce code: --- ?php class MyExceptionFoo extends Exception { function __construct($exception) { parent::__construct($exception); } } try { throw new MyExceptionFoo(Hello); } catch (MyException $exception) { print $exception-getMessage(); } ? Expected result: hello Actual result: -- br / bFatal error/b: Call to undefined method exception::__construct() in b/home/tony/software/web/php-5.0.0b1/sapi/cgi/test.php/b on line b4/bbr / -- Edit this bug report at http://bugs.php.net/?id=24413edit=1
#24477 [Ver]: Apache child process segfaults or bus error whil trying to use graph functions
ID: 24477 User updated by: karl at karlaustin dot com Reported By: karl at karlaustin dot com Status: Verified Bug Type: Zend Engine 2 problem Operating System: Solaris 8 9 PHP Version: 4.3.2 New Comment: Well from the text of that item it would suggest that doing: return new object(); is fine, but: return (new object()); is not fine, that's how it would seem to me as an end user. PEAR is ridled with returns like the one I list (Although IMHO it should have only one return and assign return values to a variable then return at the end, but that's another story). Previous Comments: [2003-07-03 06:17:54] [EMAIL PROTECTED] Cause: http://news.php.net/article.php?group=php.zend-engine.cvsarticle=1432 I wonder if we really should break BC here... [2003-07-03 06:13:42] karl at karlaustin dot com Description: Fatal error: Only variables or references can be returned by reference in /usr/local/php5/lib/php/DB/common.php on line 737 If seems that doing: return new DB_result($this, $result); in a function results in the above error, but: $_tmp = new DB_result($this, $result); return $_tmp; Is fine. -- Edit this bug report at http://bugs.php.net/?id=24477edit=1
#24480 [NEW]: Unable to load dynamic library php_impa.dll
From: znaminko at finos dot cz Operating system: WINNT 4.0 PHP version: 4.3.2 PHP Bug Type: IIS related Bug description: Unable to load dynamic library php_impa.dll Description: Hello Version 4.3.2: Unable to load dynamic library php_impa.dll - The specified module could not be found OS: WINNT 4.0 IIS 4 Version 4.2.3 no problem Znaminko -- Edit bug report at http://bugs.php.net/?id=24480edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24480r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24480r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24480r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24480r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24480r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24480r=support Expected behavior: http://bugs.php.net/fix.php?id=24480r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24480r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24480r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24480r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24480r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24480r=dst IIS Stability: http://bugs.php.net/fix.php?id=24480r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24480r=gnused
#24465 [Sus]: No abilty to assign value to object array
ID: 24465 User updated by: artpego at hotmail dot com Reported By: artpego at hotmail dot com Status: Suspended Bug Type: Feature/Change Request Operating System: Windows XP SP1 PHP Version: 4.3.2 New Comment: Thank You All for your replies. I have written an Excel-to-tsv program and the cell method syntax is similar; however, the method works nothing like this. Yes, I thought it would be something like [], but, I have tried using [] {}; however, it treats it simply as an array and of course complains when you add a comma [1,1]. I just mainly wanted to make sure I had not lost my mind! Atleast knowing that this *May* be supported in the future is a big relief. Again, Thank you. Previous Comments: [2003-07-03 03:58:16] [EMAIL PROTECTED] PHP does not currently support this kind of thing. PHP 5 *should* allow it using [] array access, but it does not yet. Suspending this until the required hooks are present in the engine. [2003-07-03 03:56:22] [EMAIL PROTECTED] Right [2003-07-03 03:51:45] postings-php-bug at hans-spath dot de Maybe this helps you: http://www.phpbuilder.net/columns/alain20001003.php3?page=3 Look for $cell. However, I think this is not a bug, but a support question. So this is not the appropriate place to ask. [2003-07-03 00:45:49] artpego at hotmail dot com Do not dismiss this so quickly as not understanding PHP syntax. I am a very compentant PHP coder for a large company (a company which I am trying to show that PHP can replace their horrible asp/VB systems for accessing SAP). I understand PHP syntax very well and that using: $optionAdd(1,TEXT)=FCURR = 'NTD'; Will cause a parse error ##using an equal '=' sign after what php would see as a funtion call is impossible## None the less, I have not found a way to assign this value. The whole point is that I have to assign a value to a co-ordinate: TABLE COL1 ROW1 #VALUE# this co-oridinate/value is represented by (1,1) I can retrieve the default value assigned to this co-ordinate by using: $myValue=$optionAdd-value(1,1); ## LEGAL, I get my value back I am unable to ASSIGN a value since every time I try it would be hurting the parser's feelings or breaking the metods rules. $optionAdd-value(1,1)=Some Text; Unexpected '=' Error $optionAdd-value=Some Text; propput failed invalid index $optionAdd-appendRow(1,1); $optionAdd=Some Text; Invalid number of arguments appendRow The list goes on and on. I have spent more time than I can imagine hunting for ways to modify my script. I have researched the SAP COM methods for alternate solutions, I have studied examples in every other language, I tried everything I know how to do. I cannot do this. If you it is as simple as not understanding PHP syntax, then show me how it is done, otherwise, tell me why it can't be done. [2003-07-02 21:38:38] [EMAIL PROTECTED] Learn PHP syntax first. 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/24465 -- Edit this bug report at http://bugs.php.net/?id=24465edit=1
#24482 [NEW]: GLOB_ONLYDIR is not working
From: acoon at acoon dot dk Operating system: FreeBSD 4.5 PHP version: 4.3.2 PHP Bug Type: *Directory/Filesystem functions Bug description: GLOB_ONLYDIR is not working Description: When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error. PHP was configured like this. './configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs' '--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/' '--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath' Changes made to php.ini: register_globals = On Reproduce code: --- ?php foreach (glob(*, GLOB_ONLYDIR) as $dir) { print $dir is a dir!BR; } ? Expected result: I would expect to get all dirs printet. Actual result: -- Warning: glob() expects parameter 2 to be long, string given in index.php on line 43 -- Edit bug report at http://bugs.php.net/?id=24482edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24482r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24482r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24482r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24482r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24482r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24482r=support Expected behavior: http://bugs.php.net/fix.php?id=24482r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24482r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24482r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24482r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24482r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24482r=dst IIS Stability: http://bugs.php.net/fix.php?id=24482r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24482r=gnused
#24483 [Asn]: Mono integration doesn't work
ID: 24483 Updated by: [EMAIL PROTECTED] Reported By: kris dot hofmans at pandora dot be Status: Assigned Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5.0.0b1 (beta1) Assigned To: sterling New Comment: Sorry, that was my mistake... Previous Comments: [2003-07-03 09:10:57] kris dot hofmans at pandora dot be The summary, os and version changed? I'm sorry I'm new at bugzilla. [2003-07-03 08:57:50] kris dot hofmans at pandora dot be Description: I've been trying to get this to work for a couple of days now. When I call a page that uses mono I get this in the apache logs: ** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be reached aborting... [Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted (6) I get this with the most basic helloworld sample from sterling. I'm using the mono repository provided here: http://www.debianplanet.com/mono/ on a freshly installed adamantix (former trusteddebian) system. Reproduce code: --- ?php $Console = new Mono('System.Console'); $Console-WriteLine(Hello World); ? Expected result: Hello World Actual result: -- nothing, just the log entry. -- Edit this bug report at http://bugs.php.net/?id=24483edit=1
#24482 [Ana-Fbk]: GLOB_ONLYDIR is not working
ID: 24482 Updated by: [EMAIL PROTECTED] Reported By: acoon at acoon dot dk -Status: Analyzed +Status: Feedback Bug Type: *Directory/Filesystem functions Operating System: FreeBSD 4.5 PHP Version: 4.3.2 Assigned To: hholzgra 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 should be fixed in PHP 5 CVS now, i will merge the changes into the 4.3 tree as soon as i know that it doesn't break anything Previous Comments: [2003-07-03 07:56:53] [EMAIL PROTECTED] the comment in the manual is missleading, GLOB_ONLYDIR is a GNU extension so it is only available on systems with GNU libc i'm looking into adding an emulation wrapper to the C code if it doesn't work i'll update the documentation [2003-07-03 07:30:22] acoon at acoon dot dk Description: When using GLOB_ONLYDIR on FreeBSD 4.5 is returns an error. PHP was configured like this. './configure' '--with-mysql' '--with-apxs=/usr/local/sbin/apxs' '--with-curl' '--with-gd' '--with-jpeg-dir=/usr/local/include/' '--with-zlib-dir' '--enable-ftp' '--with-ttf' '--enable-bcmath' Changes made to php.ini: register_globals = On Reproduce code: --- ?php foreach (glob(*, GLOB_ONLYDIR) as $dir) { print $dir is a dir!BR; } ? Expected result: I would expect to get all dirs printet. Actual result: -- Warning: glob() expects parameter 2 to be long, string given in index.php on line 43 -- Edit this bug report at http://bugs.php.net/?id=24482edit=1
#24484 [NEW]: SMTP variable in php.ini useless
From: anelson at mlis dot com Operating system: Redhat 7.2/3 PHP version: 4.3.1 PHP Bug Type: Mail related Bug description: SMTP variable in php.ini useless Description: By adding the line: SMTP = 64.90.xxx.xxx where xxx is more of the address, the mail() function still uses localhost. I've seen some stuff about these variables working only on windows. Is this true. Otherwise, there is no error message or anything. Seems like the variable just does nothing. Reproduce code: --- /usr/local/lib/php.ini SMTP = 64.90.xxx.xxx Expected result: I expected to have the mail try to go out through the SMTP server specified Actual result: -- The mail went out from localhost -- Edit bug report at http://bugs.php.net/?id=24484edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24484r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24484r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24484r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24484r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24484r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24484r=support Expected behavior: http://bugs.php.net/fix.php?id=24484r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24484r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24484r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24484r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24484r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24484r=dst IIS Stability: http://bugs.php.net/fix.php?id=24484r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24484r=gnused
#24484 [Opn-Bgs]: SMTP variable in php.ini useless
ID: 24484 Updated by: [EMAIL PROTECTED] Reported By: anelson at mlis dot com -Status: Open +Status: Bogus Bug Type: Mail related Operating System: Redhat 7.2/3 PHP Version: 4.3.1 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. Thank you for your interest in PHP. It's windows only... Previous Comments: [2003-07-03 09:46:30] anelson at mlis dot com Description: By adding the line: SMTP = 64.90.xxx.xxx where xxx is more of the address, the mail() function still uses localhost. I've seen some stuff about these variables working only on windows. Is this true. Otherwise, there is no error message or anything. Seems like the variable just does nothing. Reproduce code: --- /usr/local/lib/php.ini SMTP = 64.90.xxx.xxx Expected result: I expected to have the mail try to go out through the SMTP server specified Actual result: -- The mail went out from localhost -- Edit this bug report at http://bugs.php.net/?id=24484edit=1
#24484 [Bgs]: SMTP variable in php.ini useless
ID: 24484 User updated by: anelson at mlis dot com Reported By: anelson at mlis dot com Status: Bogus Bug Type: Mail related Operating System: Redhat 7.2/3 PHP Version: 4.3.1 New Comment: Ok, I just wanted it documented, since there is no information anywhere else. In the end, modifying the sendmail configuration is the better method. I did try this on multiple machines pointing to multiple SMTP servers to no avail. Also, there is no fix in the changelog to 4.3.2 Previous Comments: [2003-07-03 09:48:01] [EMAIL PROTECTED] 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. Thank you for your interest in PHP. It\'s windows only... [2003-07-03 09:46:30] anelson at mlis dot com Description: By adding the line: SMTP = 64.90.xxx.xxx where xxx is more of the address, the mail() function still uses localhost. I've seen some stuff about these variables working only on windows. Is this true. Otherwise, there is no error message or anything. Seems like the variable just does nothing. Reproduce code: --- /usr/local/lib/php.ini SMTP = 64.90.xxx.xxx Expected result: I expected to have the mail try to go out through the SMTP server specified Actual result: -- The mail went out from localhost -- Edit this bug report at http://bugs.php.net/?id=24484edit=1
#24485 [NEW]: $a = $b; become $a=$b; when I use a function
From: gomez at efrei dot fr Operating system: windows and linux PHP version: 4.3.2 PHP Bug Type: Arrays related Bug description: $a = $b; become $a=$b; when I use a function Description: In an array, classes become classes references when I use a function member. Because of that, I don't copy it anymore, I just produce more pointers to it. (see the '' in the var dump) If you comment the magic line, the bug won't appear. Tested under linux (php 4.1.2 and 4.2.3) and windows (php 4.3.2) Reproduce code: --- ?php class A { var $value; function A() {} function show() { return 5; } } $A = array(new A()); $A[0]-show(); /* magic line */ $A[0]-value = 'A'; $B = $A; $B[0]-value = 'B'; echo $A[0]-value.$B[0]-value; echo \n; var_dump( $A ); ? Expected result: AB array(1) { [0]= object(a)(1) { [value]= string(1) A } } Actual result: -- BB array(1) { [0]= object(a)(1) { [value]= string(1) B } } -- Edit bug report at http://bugs.php.net/?id=24485edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24485r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24485r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24485r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24485r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24485r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24485r=support Expected behavior: http://bugs.php.net/fix.php?id=24485r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24485r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24485r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24485r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24485r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24485r=dst IIS Stability: http://bugs.php.net/fix.php?id=24485r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24485r=gnused
#24224 [Com]: ibase_blob_get overflow
ID: 24224 Comment by: cryo28 at rbcmal dot ru Reported By: cryo28 at rbcmail dot ru Status: Feedback Bug Type: InterBase related Operating System: Win2000 and Linux PHP Version: 4.3.2 New Comment: Got Warning: ibase_blob_get(): PHP module internal error in /usr/local/apache2/wwwroot/objectcms/index.php on line 21 and $image = (bool) FALSE :(( (Linux RedHat 9.0. Patch over PHP 4.3.2) Previous Comments: [2003-06-29 11:40:39] [EMAIL PROTECTED] Try applying the following patch (http://bb.prohost.org/ibase.txt) and please let me know if it fixes the problem. [2003-06-17 09:12:28] cryo28 at rbcmail dot ru Description: Bug was reproduced on Windows 2000 + PHP 4.3.1 + Firebird 1.0(W2K) and on RedHat Linux 9.0 + PHP 4.3.2 + Firebird 1.5 RC3(Linux). If BLOB size 64K actual size of data returned by ibase_blob_get equals to Actual Size minus 64K. Reproduce code: --- while ($res = fetchRow($q)) { $val = $res-BLOBDATA; $blobinfo = ibase_blob_info($val); $blobhndl = ibase_blob_open($val); $image = ibase_blob_get($blobhndl, blobinfo[0]); echo $blobinfo[0].\n; echo strlen($image).\n; ibase_blob_close($blobhndl); } Expected result: Above script produces, for example, 5 5 if BLOBDATA size 5.[OK]. But if BLOBDATA size more than 65535 bytes script producing something like this: 65978 442 i.e. 442=65978-65536. ibase_blob_echo($VAL) works right. -- Edit this bug report at http://bugs.php.net/?id=24224edit=1
#24486 [NEW]: strange behaviour with references
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.2 PHP Bug Type: Unknown/Other Function Bug description: strange behaviour with references Description: we just detected a strange behaviour with references and foreach: after the foreach() is done in the sample code the disappear in the var_dump for the first two elements, the third is of course still a valid reference because $row exists i tried to reproduce that effect in different ways but it only happens when using a foreach Reproduce code: --- pre?php $arr = array(1, 2, 3); for ($i = 0; $i count($arr); $i++) { $row = $arr[$i]; $row = $row * $row; } var_dump($arr); reset ($arr); while (list(, $value) = each ($arr)) echo value: $value\n; var_dump($arr); foreach($arr AS $value) echo value: $value\n; var_dump($arr); ? Actual result: -- array(3) { [0]= int(1) [1]= int(4) [2]= int(9) } value: 1 value: 4 value: 9 array(3) { [0]= int(1) [1]= int(4) [2]= int(9) } value: 1 value: 4 value: 9 array(3) { [0]= int(1) [1]= int(4) [2]= int(9) } -- Edit bug report at http://bugs.php.net/?id=24486edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24486r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24486r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24486r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24486r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24486r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24486r=support Expected behavior: http://bugs.php.net/fix.php?id=24486r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24486r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24486r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24486r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24486r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24486r=dst IIS Stability: http://bugs.php.net/fix.php?id=24486r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24486r=gnused
#24487 [NEW]: Preg_match and '# ... #x' delimiters
From: nightstorm at tlen dot pl Operating system: Mandrake Linux 9 PHP version: 5CVS-2003-07-03 (dev) PHP Bug Type: PCRE related Bug description: Preg_match and '# ... #x' delimiters Description: I've changed my PHP 5 alpha into PHP 5 beta 1 from cvs. And i've noticed that my template parser, which was written on PHP 5 alpha, didn't work. I analyzed the script and i've noticed that problem's with preg_match and preg_match_all instructions. They crashes, when the regular expression contains '#' and '#s', '#is', or other combinations - the browser shows the message that page cannot be found. When I remove or preg_match, or these '#' from the expression, everything works good. Probably someone changed some code in PCRE module, because the same code was working on PHP 5 ALPHA. Reproduce code: --- if(preg_match('#\{(.*?)\}#s', 'tralalalalalahtmlhgkgkgkcompiled {BLOCK} tralalalah', $found)){ echo 'pre'; print_r($found); echo '/pre'; } Expected result: pre print_r result /pre Actual result: -- The browser (Galeon) shows that message (in a message window): http://eniac.block22 couldn't be found. Please check the name and try again. -- Edit bug report at http://bugs.php.net/?id=24487edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24487r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24487r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24487r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24487r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24487r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24487r=support Expected behavior: http://bugs.php.net/fix.php?id=24487r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24487r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24487r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24487r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24487r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24487r=dst IIS Stability: http://bugs.php.net/fix.php?id=24487r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24487r=gnused
#24369 [Fbk-Opn]: Error: 1285-302 The parse tree is too large.
ID: 24369 User updated by: bxny78 at yahoo dot com Reported By: bxny78 at yahoo dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: aix 5.1 PHP Version: 4.3.2 New Comment: The native compiler had many other errors - as I was reading some other url - it seems like GNU gcc was prefered to compile php. I tar the compiled binary from 4.3.3 and moved it to the 5.1 system and it's working... Previous Comments: [2003-07-03 05:19:15] [EMAIL PROTECTED] I bet the compiler version is different in your AIX 4.3.3? Doesn't the native compiler work? (instead of GCC) [2003-07-02 22:52:07] bxny78 at yahoo dot com FYI - this same code was compiled on AIX 4.3.3 and works well, with the same level of everything (gcc, make, flex, bison, etc) [2003-07-02 22:46:03] bxny78 at aol dot com Config line -- ./configure --with-ibm-db2=/home/db2inst1/sqllib \ --with-apxs=/usr/HTTPServer/bin/apxs \ --prefix=/usr/HTTPServer/php \ --with-config-file-path=/usr/HTTPServer/php/conf \ --with-gd \ --with-jpeg-dir=/usr/lib/ \ --with-png-dir=/usr/local/include/libpng \ --with-odbc \ --with-zlib [2003-06-27 19:02:41] [EMAIL PROTECTED] What was the configure line you used? [2003-06-27 18:03:43] bxny78 at yahoo dot com Description: I have the below error message when running make on aix 5.1 with gcc 2.9-aix51-020209 Reproduce code: --- configure went ok... Expected result: no errors ;-) Actual result: -- gcc -IZend/ -I/php/php-4.3.2/Zend/ -DPHP_ATOM_INC -I/php/php432/include -I/php/php432/main -I/php/php-4.3.2 -I/php/php432/Zend -I/usr/local/include -I/ php/php-4.3.2/ext/xml/expat -I/php/php-4.3.2/main -I/php/php-4.3.2/Zend -I/php/p hp-4.3.2/TSRM -I/php/php432/TSRM -g -O2 -c Zend/zend_language_parser.c -o Zen d/zend_language_parser.o echo Zend/zend_language_parser.lo lex -Pzend -S/php/php-4.3.2/Zend/flex.skl -oZend/zend_language_scanner.c -i /php/php-4.3.2/Zend/zend_language_scanner.l 0: Warning: 1285-300 The P flag is not valid. 0: Warning: 1285-300 The z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The S flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The h flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The h flag is not valid. 0: Warning: 1285-300 The p flag is not valid. 0: Warning: 1285-300 The - flag is not valid. 0: Warning: 1285-300 The 4 flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The 3 flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The 2 flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The Z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The f flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The x flag is not valid. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The s flag is not valid. 0: Warning: 1285-300 The k flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The o flag is not valid. 0: Warning: 1285-300 The Z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The / flag is not valid. 0: Warning: 1285-300 The z flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The d flag is not valid. 0: Warning: 1285-300 The _ flag is not valid. 0: Warning: 1285-300 The l flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The g flag is not valid. 0: Warning: 1285-300 The u flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The g flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-300 The _ flag is not valid. 0: Warning: 1285-300 The s flag is not valid. 0: Warning: 1285-300 The a flag is not valid. 0: Warning: 1285-300 The e flag is not valid. 0: Warning: 1285-339 Ratfor is not supported with lex. 0: Warning: 1285-300 The . flag is not valid. 0: Warning: 1285-300 The i flag is not valid. 1210: Error: 1285-302 The
#24476 [Opn-Bgs]: Character translation in mssql_query
ID: 24476 Updated by: [EMAIL PROTECTED] Reported By: andrea dot balducci at antos dot it -Status: Open +Status: Bogus Bug Type: MSSQL related Operating System: WINXP / WIN2000 SRV PHP Version: 5.0.0b1 (beta1) New Comment: I have tested the latest version of both php4 and php5 and I can't reproduce this problem. It sounds like you are using two different methods to access the database. When PHP is used with a web server the MSSQL extension will use codepage 125x (ANSI). When called from a command line the MSSQL extension uses the DOS code page (437 for US). The MS SQL Server client libraries can be configured to do an automatic ANSI to OEM conversion. If that option is enabled you will see the same characters from both web server and command line. If it is disabled the output will not look the same. Previous Comments: [2003-07-03 05:04:11] andrea dot balducci at antos dot it Description: I'm trying to insert chars like ò à è é ì in a sql server 2K table. Sometimes the chars are traslated in others. Tryed with php 4.x and 5 Reproduce code: --- Table Sample: CREATE TABLE pippo ( [a] [text] COLLATE Latin1_General_CI_AS NULL , [b] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) Script sample: ?php $conn = mssql_connect('localhost','sa',''); if (!mssql_select_db('mydb', $conn)) { mssql_close($conn); return 0; } mssql_query(INSERT INTO PIPPO (A,B) VALUES ('òàèéìù','òàèéìù'), $conn); mssql_close($conn); ? Expected result: Select * from pippo A B --- --- òàèéìù òàèéìù Actual result: -- Select * from pippo A B --- --- =ÓÞÚý¨ =ÓÞÚý¨ Using Sql Profiler i've discovered that the query issued to sql server by mssql_query has the characters already changed. So sql exec INSERT INTO PIPPO (A,B) VALUES ('=ÓÞÚý¨','=ÓÞÚý¨') -- Edit this bug report at http://bugs.php.net/?id=24476edit=1
#24484 [Bgs]: SMTP variable in php.ini useless
ID: 24484 Updated by: [EMAIL PROTECTED] Reported By: anelson at mlis dot com Status: Bogus Bug Type: Mail related Operating System: Redhat 7.2/3 PHP Version: 4.3.1 New Comment: From php.ini-dist: [mail function] ; For Win32 only. SMTP = localhost From: http://www.php.net/manual/en/ref.mail.php SMTP Used under Windows only: DNS name or IP address of the SMTP server PHP should use for mail sent with the mail() function. I'm curious where you even found the SMTP ini option since both of these places have documented their Win32-only nature for some time. Previous Comments: [2003-07-03 09:53:09] anelson at mlis dot com Ok, I just wanted it documented, since there is no information anywhere else. In the end, modifying the sendmail configuration is the better method. I did try this on multiple machines pointing to multiple SMTP servers to no avail. Also, there is no fix in the changelog to 4.3.2 [2003-07-03 09:48:01] [EMAIL PROTECTED] 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. Thank you for your interest in PHP. It\'s windows only... [2003-07-03 09:46:30] anelson at mlis dot com Description: By adding the line: SMTP = 64.90.xxx.xxx where xxx is more of the address, the mail() function still uses localhost. I've seen some stuff about these variables working only on windows. Is this true. Otherwise, there is no error message or anything. Seems like the variable just does nothing. Reproduce code: --- /usr/local/lib/php.ini SMTP = 64.90.xxx.xxx Expected result: I expected to have the mail try to go out through the SMTP server specified Actual result: -- The mail went out from localhost -- Edit this bug report at http://bugs.php.net/?id=24484edit=1
#24484 [Bgs]: SMTP variable in php.ini useless
ID: 24484 User updated by: anelson at mlis dot com Reported By: anelson at mlis dot com Status: Bogus Bug Type: Mail related Operating System: Redhat 7.2/3 PHP Version: 4.3.1 New Comment: Maybe on this page there should be a column for OS. Also in Programming PHP from O'Reilly, there isn't any reference to it being Windows only. It was clear that sendmail_from was Windows, but not SMTP itself. http://us2.php.net/manual/en/function.ini-set.php Thanks for being on top of things. Previous Comments: [2003-07-03 13:22:39] [EMAIL PROTECTED] From php.ini-dist: [mail function] ; For Win32 only. SMTP = localhost From: http://www.php.net/manual/en/ref.mail.php SMTP Used under Windows only: DNS name or IP address of the SMTP server PHP should use for mail sent with the mail() function. I'm curious where you even found the SMTP ini option since both of these places have documented their Win32-only nature for some time. [2003-07-03 09:53:09] anelson at mlis dot com Ok, I just wanted it documented, since there is no information anywhere else. In the end, modifying the sendmail configuration is the better method. I did try this on multiple machines pointing to multiple SMTP servers to no avail. Also, there is no fix in the changelog to 4.3.2 [2003-07-03 09:48:01] [EMAIL PROTECTED] 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. Thank you for your interest in PHP. It\'s windows only... [2003-07-03 09:46:30] anelson at mlis dot com Description: By adding the line: SMTP = 64.90.xxx.xxx where xxx is more of the address, the mail() function still uses localhost. I've seen some stuff about these variables working only on windows. Is this true. Otherwise, there is no error message or anything. Seems like the variable just does nothing. Reproduce code: --- /usr/local/lib/php.ini SMTP = 64.90.xxx.xxx Expected result: I expected to have the mail try to go out through the SMTP server specified Actual result: -- The mail went out from localhost -- Edit this bug report at http://bugs.php.net/?id=24484edit=1
#11442 [Csd]: Random Warnig: Failed opening on any php file
ID: 11442 User updated by: aferriz at yahoo dot com Reported By: aferriz at yahoo dot com Status: Closed Bug Type: iPlanet related Operating System: Solaris 7 PHP Version: 4.3.2 New Comment: Ok, its been fixed in 4.3.2. Sorry for my last post, in my last installation, I was using a wrong path and I ended up using 4.3.1 shared library, 4.3.2 works fine now. Previous Comments: [2003-07-02 21:42:43] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, 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/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. [2003-07-02 11:33:15] aferriz at yahoo dot com I've just installed another Solaris 7 server with iPlanet-WebServer-Enterprise/PHP 4.3.2 and I have the same problem Failed opening ... at random points, again, this is a hi-load server. I'll try to install PHP 5.0 Beta just for testing. [2003-05-16 03:52:59] [EMAIL PROTECTED] Closing this one now after the recent fixes for broken Solaris systems. Reopen it if it doesn't work with a snap from http://snaps.php.net or the upcomming 4.3.2 release. [2003-04-02 08:02:40] koralix at konixx dot cjb dot net mustafa at xxx dot lt -- I have read that include_path in php.ini should be set to ., then that include_path shoul be commented, but nothing helps... that helped in my case! WindowsME thanks a lot! [2003-01-10 16:19:28] solarstring at yahoo dot com I have installed the latest version of php (4.3.2 - Jan2) on Solaris 5.8 , IPlanet, and can verify this problem still exists. In fact, a different server with the same build configuration of php, and same versions of Netscape/Iplanet, php works fine... PHP Version 4.3.0 System SunOS wildcat 5.8 Generic_108528-17 sun4u Build Date Jan 2 2003 16:57:46 Configure Command './configure' '--enable-libgcc' '--prefix=/usr/local' '--with-oci8=/u/ora/app/oracle/product/9.0.1' '--with-nsapi=/u/web/netscape/iplanet/' '--enable-sysvsem' '--enable-discard-path' '--enable-magic-quotes' '--enable-memory-limit' '--enable-versioning' '--enable-track-vars' '--enable-trans-sid' '--enable-sigchild' Server API NSAPI Virtual Directory Support enabled Configuration File (php.ini) Path /usr/local/lib/php.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 20021010 Debug Build no Thread Safety enabled Registered PHP Streams php, http, ftp Have there been any bug patches explicitly related to this? 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/11442 -- Edit this bug report at http://bugs.php.net/?id=11442edit=1
#24416 [Com]: Apache2 won't start with PHP5 beta
ID: 24416 Comment by: aaron at gwmicro dot com Reported By: ldf13 at hotmail dot com Status: Bogus Bug Type: Apache2 related Operating System: Windows XP PHP Version: 5CVS-2003-06-30 (dev) New Comment: nuno, Thanks for the info. What you noted still didn't work for me, but it did prompt me to keep trying. Finally, I had success. Here's what I had to do: copy x:/php/php4ts.dll to x:/php/sapi copy x:/php/dlls/iconv.dll to x:/php Plus the obligatory: LoadModule php5_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php A little frustrating that there appear so many different solutions in terms of where to copy what (unless we -- you, me, and a host of Google groupers -- keep mistyping things). But at least it works for now. Thanks for your help, Aaron Previous Comments: [2003-07-02 12:54:49] nuno at dbforums dot com Sure Aaron, copy the files: php4ts.dll iconv.dll to c:/php/sapi/ Then simply add this to your httpd.conf file: LoadModule php5_module c:/php/sapi/php4apache2.dll AddType application/x-httpd-php .php Once that's all done, restart Apache. :) NET STOP APACHE2 NET START APACHE2 [2003-07-02 09:59:31] aaron at gwmicro dot com nuno, Would you care to enlighten the rest of us (me)? Aaron [2003-07-01 22:06:05] nuno at dbforums dot com Thankfully to strace (an amazing little tool BTW) and install.txt (duh), I finally managed to install PHP5 with Apache2.0.46. Therefore, I need to eat my words and I would like to take this opportunity to present my sincere apologies to the PHP Team. To sniper, a special thank you for his support. Best wishes, nuno :) [2003-07-01 16:37:55] aaron at gwmicro dot com I take back my comments about getting this working, sort of. I still have one machine running Apache2 2.0.46, and PHP 5.0.0b2-dev successfully. I have another machine, however, running Apache2 2.0.46 and PHP 5.0.0b2-dev unsuccessfully. What bothers me is that the paths on both systems are EXACTLY the same. So I copied both the Apache2 dir, and the PHP dir to the second machine thinking that, since everything is already working, it ought to just work on the second machine. Foolish me: Cannot load D:/PHP/sapi/php4apache2.dll into server: The specified procedure could not be found. Specified procedure could not be found. Hmmm...that is certainly different from the original error of The specified module could not be found. We're finding the module, but we're not finding the procedure, which makes me think that the php4apache2.dll ain't the right one for this Apache (I remember fighting this battle with the PHP 4.3.X versions), but it works perfectly on the first machine, and the directories are identical! Color me confused... Both machines are Windows XP Pro, Athlon 1.4Ghz, 512MB RAM, practically identical in every way, including the software that is installed. Aaron [2003-07-01 13:37:53] nuno at dbforums dot com Please forgive my ignorance but, how's that suppose to help? [quote] Syntax error on line 169 of C:/Apache2/conf/httpd.conf: Cannot load C:/Apache2/modules/php4apache2.dll into server: The specified module could not be found [/quote] Line 169: LoadModule php5_module modules/php4apache2.dll Can you enlighten me further about this error and how to resolve it? Thank you. 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/24416 -- Edit this bug report at http://bugs.php.net/?id=24416edit=1
#19434 [Opn-Fbk]: oci8 + ldap - crash
ID: 19434 Updated by: [EMAIL PROTECTED] Reported By: ronan dot salmon at staff dot ittralee dot ie -Status: Open +Status: Feedback Bug Type: OCI8 related Operating System: redhat 7.3 -PHP Version: 4.2.3 +PHP Version: 4.3.3RC2-dev New Comment: Try add --enable-experimental-zts to your configure line. (guessing, but e.g. with Apache, you have to have Apache linked with libpthread..) Previous Comments: [2003-07-03 05:56:56] ronan dot salmon at staff dot ittralee dot ie ./configure --prefix=/home/sysadmin/usr --exec-prefix=/home/sysadmin/usr --bindir=/home/sysadmin/usr/bin --sbindir=/home/sysadmin/usr/sbin --sysconfdir=/home/sysadmin/etc --datadir=/home/sysadmin/usr/share --includedir=/home/sysadmin/usr/include --sysconfdir=/home/sysadmin/etc --datadir=/home/sysadmin/usr/share --includedir=/usr/include --libdir=/home/sysadmin/usr/lib --libexecdir=/home/sysadmin/usr/libexec --mandir=/home/sysadmin/usr/share/man --infodir=/home/sysadmin/usr/share/info --with-config-file-path=/home/sysadmin/etc --enable-debug --with-exec-dir=/home/sysadmin/usr/bin --with-ldap=/home/oracle/Oracle-9.0.1/ --enable-sigchild --with-oci8=/home/oracle/Oracle-9.0.1/ [~/php]$ gdb /home/sysadmin/usr/bin/php GNU gdb Red Hat Linux (5.2-2) This GDB was configured as i386-redhat-linux... (gdb) run login.php Starting program: /home/sysadmin/usr/bin/php login.php [New Thread 1024 (LWP 3629)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 3629)] __pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99 99 mutex.c: No such file or directory. in mutex.c (gdb) bt #0 __pthread_mutex_lock (mutex=0xff3a881f) at mutex.c:99 #1 0x40889f94 in __libc_free (mem=0x409dc460) at malloc.c:3152 #2 0x08066b42 in zif_ldap_get_entries (ht=2, return_value=0x820eb94, this_ptr=0x0, return_value_used=1) at /home/sysadmin/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953 #3 0x0817023f in execute (op_array=0x820ed14) at /home/sysadmin/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616 #4 0x081600e2 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/sysadmin/php/php4-STABLE-200307030930/Zend/zend.c:886 #5 0x0812f984 in php_execute_script (primary_file=0xba00) at /home/sysadmin/php/php4-STABLE-200307030930/main/main.c:1685 #6 0x0817664c in main (argc=2, argv=0xbab4) at /home/sysadmin/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542 #7 0x40829316 in __libc_start_main (main=0x8175c74 main, argc=2, ubp_av=0xbab4, init=0x8062af8 _init, fini=0x8176f00 _fini, rtld_fini=0x4000d2fc _dl_fini, stack_end=0xbaac) at ../sysdeps/generic/libc-start.c:129 (gdb) I tried on a Redhat 9.0 with oracle-9.2.0.1 and it does crash as well : ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --mandir=/usr/share/man --infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc --enable-debug --with-exec-dir=/usr/bin --with-ldap=/home/oracle/Oracle-9.2.0.1 --enable-sigchild --with-oci8=/home/oracle/Oracle-9.2.0.1 [~/php]# gdb php (gdb) run login.php Starting program: /usr/bin/php login.php [New Thread 16384 (LWP 376)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 376)] 0x40a20a34 in _int_free () from /lib/libc.so.6 (gdb) bt #0 0x40a20a34 in _int_free () from /lib/libc.so.6 #1 0x40a1f9cc in free () from /lib/libc.so.6 #2 0x080662c3 in zif_ldap_get_entries (ht=2, return_value=0x8209e5c, this_ptr=0x0, return_value_used=1) at /root/php/php4-STABLE-200307030930/ext/ldap/ldap.c:953 #3 0x0816674f in execute (op_array=0x820531c) at /root/php/php4-STABLE-200307030930/Zend/zend_execute.c:1616 #4 0x08156d25 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php/php4-STABLE-200307030930/Zend/zend.c:886 #5 0x081276f4 in php_execute_script (primary_file=0xb9a0) at /root/php/php4-STABLE-200307030930/main/main.c:1685 #6 0x0816ca29 in main (argc=2, argv=0xba54) at /root/php/php4-STABLE-200307030930/sapi/cgi/cgi_main.c:1542 #7 0x409c85cd in __libc_start_main () from /lib/libc.so.6 (gdb) [2003-06-29 21:37:12] [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 [2002-09-27 06:06:22] ronan dot salmon at staff dot ittralee dot ie Configure Command = './configure' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin'
#24483 [Asn-Bgs]: Mono integration doesn't work
ID: 24483 Updated by: [EMAIL PROTECTED] Reported By: kris dot hofmans at pandora dot be -Status: Assigned +Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5.0.0b1 (beta1) Assigned To: sterling New Comment: Mono doesn't work from within Apache, as Console.WriteLine() writes to the *console*, not to apache's stdout. If you want this to work in apache, you need to try something like mod_haydn (http://haydn.sf.net/) or mod_mono (forgot the url). Try it from the command line first though. Previous Comments: [2003-07-03 09:14:23] [EMAIL PROTECTED] Sorry, that was my mistake... [2003-07-03 09:10:57] kris dot hofmans at pandora dot be The summary, os and version changed? I'm sorry I'm new at bugzilla. [2003-07-03 08:57:50] kris dot hofmans at pandora dot be Description: I've been trying to get this to work for a couple of days now. When I call a page that uses mono I get this in the apache logs: ** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be reached aborting... [Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted (6) I get this with the most basic helloworld sample from sterling. I'm using the mono repository provided here: http://www.debianplanet.com/mono/ on a freshly installed adamantix (former trusteddebian) system. Reproduce code: --- ?php $Console = new Mono('System.Console'); $Console-WriteLine(Hello World); ? Expected result: Hello World Actual result: -- nothing, just the log entry. -- Edit this bug report at http://bugs.php.net/?id=24483edit=1
#24486 [Opn-Fbk]: strange behaviour with references
ID: 24486 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback -Bug Type: Unknown/Other Function +Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.3.2 New Comment: And you know that foreach() operates with a copy of the original array..? And this reference thing is problem..why? Previous Comments: [2003-07-03 11:19:53] [EMAIL PROTECTED] Description: we just detected a strange behaviour with references and foreach: after the foreach() is done in the sample code the disappear in the var_dump for the first two elements, the third is of course still a valid reference because $row exists i tried to reproduce that effect in different ways but it only happens when using a foreach Reproduce code: --- pre?php $arr = array(1, 2, 3); for ($i = 0; $i count($arr); $i++) { $row = $arr[$i]; $row = $row * $row; } var_dump($arr); reset ($arr); while (list(, $value) = each ($arr)) echo value: $value\n; var_dump($arr); foreach($arr AS $value) echo value: $value\n; var_dump($arr); ? Actual result: -- array(3) { [0]= int(1) [1]= int(4) [2]= int(9) } value: 1 value: 4 value: 9 array(3) { [0]= int(1) [1]= int(4) [2]= int(9) } value: 1 value: 4 value: 9 array(3) { [0]= int(1) [1]= int(4) [2]= int(9) } -- Edit this bug report at http://bugs.php.net/?id=24486edit=1
#24483 [Bgs]: Mono integration doesn't work
ID: 24483 User updated by: kris dot hofmans at pandora dot be Reported By: kris dot hofmans at pandora dot be Status: Bogus Bug Type: Unknown/Other Function Operating System: Linux PHP Version: 5.0.0b1 (beta1) Assigned To: sterling New Comment: oh boy, is my face red :) Although there is no explicit mention of this I could have figured it out looking at the stack.php example. I expected the console output would be translated to whatever output handling available, I was thinking about using the CLI binary to test but unfortunatly it doesn't compile here (I'm going to look into it though). Now if I could only figure out where you guys are hiding that java extension I'm all set :) Previous Comments: [2003-07-03 14:37:54] [EMAIL PROTECTED] Mono doesn't work from within Apache, as Console.WriteLine() writes to the *console*, not to apache's stdout. If you want this to work in apache, you need to try something like mod_haydn (http://haydn.sf.net/) or mod_mono (forgot the url). Try it from the command line first though. [2003-07-03 09:14:23] [EMAIL PROTECTED] Sorry, that was my mistake... [2003-07-03 09:10:57] kris dot hofmans at pandora dot be The summary, os and version changed? I'm sorry I'm new at bugzilla. [2003-07-03 08:57:50] kris dot hofmans at pandora dot be Description: I've been trying to get this to work for a couple of days now. When I call a page that uses mono I get this in the apache logs: ** ERROR **: file jit.c: line 4100 (mono_get_lmf_addr): should not be reached aborting... [Thu Jul 03 15:41:34 2003] [notice] child pid 7752 exit signal Aborted (6) I get this with the most basic helloworld sample from sterling. I'm using the mono repository provided here: http://www.debianplanet.com/mono/ on a freshly installed adamantix (former trusteddebian) system. Reproduce code: --- ?php $Console = new Mono('System.Console'); $Console-WriteLine(Hello World); ? Expected result: Hello World Actual result: -- nothing, just the log entry. -- Edit this bug report at http://bugs.php.net/?id=24483edit=1
#22108 [Com]: php doesn't ignore the utf-8 BOM
ID: 22108 Comment by: jaanus at heeringson dot com Reported By: bugzilla at jellycan dot com Status: Assigned Bug Type: Feature/Change Request Operating System: Any PHP Version: All (as of the current implementation) Assigned To: moriyoshi New Comment: There are some consequenses that are not mentioned in the above comments. More than one BOM renders a perfectly valid XHTM file non-valid. Apparently the XHTML specification allows BOM characters, but only ONE, not multiple which is what you get if you include other utf-8 files (include, require). This in turn results in the possibility that the xml declaration in not read since it is not found. This is the case with the w3c validator. Previous Comments: [2003-06-04 03:11:51] [EMAIL PROTECTED] That script appears to be written in UTF-16. As for UTF-16, it could actually be a parser problem as well, but this report addresses the issue related to UTF-8. [2003-06-04 02:59:33] [EMAIL PROTECTED] Actually, not totally. A friend mailed me a PHP script, which had the annoying BOM AND the whole file was in double byte (saved by notepad)... which definitely makes it a parser problem too (\0 \0 ? \0 p doesn't match ?p for example). [2003-06-04 02:56:01] [EMAIL PROTECTED] And just for clarification, this is a scanner problem, irrelevant to the parser. [2003-06-04 02:45:43] [EMAIL PROTECTED] It wasn't assigned, just set to open (and I didn't notice your name in the Assign to field). [2003-06-04 02:40:30] [EMAIL PROTECTED] Derick, Please do not change the status of the bug that is already assigned to someone. There's no point that PHP can only handle ASCII documents because if you want to use German in PHP for example, at least you have to use ISO-8859-1 or ISO-8859-15, which is not even part of ASCII. 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/22108 -- Edit this bug report at http://bugs.php.net/?id=22108edit=1
#22108 [Com]: php doesn't ignore the utf-8 BOM
ID: 22108 Comment by: jaanus at heeringson dot com Reported By: bugzilla at jellycan dot com Status: Assigned Bug Type: Feature/Change Request Operating System: Any PHP Version: All (as of the current implementation) Assigned To: moriyoshi New Comment: One thing i forgot to mention in my previous post is that multiple BOM's also inhibit Internet Explorer 6 from rendering pages in standards-compliance mode, which is a big issue when developing by w3c standards. Previous Comments: [2003-07-03 14:59:44] jaanus at heeringson dot com There are some consequenses that are not mentioned in the above comments. More than one BOM renders a perfectly valid XHTM file non-valid. Apparently the XHTML specification allows BOM characters, but only ONE, not multiple which is what you get if you include other utf-8 files (include, require). This in turn results in the possibility that the xml declaration in not read since it is not found. This is the case with the w3c validator. [2003-06-04 03:11:51] [EMAIL PROTECTED] That script appears to be written in UTF-16. As for UTF-16, it could actually be a parser problem as well, but this report addresses the issue related to UTF-8. [2003-06-04 02:59:33] [EMAIL PROTECTED] Actually, not totally. A friend mailed me a PHP script, which had the annoying BOM AND the whole file was in double byte (saved by notepad)... which definitely makes it a parser problem too (\0 \0 ? \0 p doesn't match ?p for example). [2003-06-04 02:56:01] [EMAIL PROTECTED] And just for clarification, this is a scanner problem, irrelevant to the parser. [2003-06-04 02:45:43] [EMAIL PROTECTED] It wasn't assigned, just set to open (and I didn't notice your name in the Assign to field). 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/22108 -- Edit this bug report at http://bugs.php.net/?id=22108edit=1
#24401 [Com]: register globals does not work correctly??!!
ID: 24401 Comment by: Colin_Witt at baylor dot edu Reported By: eero at jlug dot org Status: Open Bug Type: *General Issues Operating System: Linux PHP Version: 5.0.0b1 (beta1) New Comment: Same issue here with PHP 5.0.0b1 running on Mac OS X 10.2.6. php.ini file says register_globals = On phpinfo() says register_globals On On http://localhost/index.php?id=1234 should create $id with value 1234, but it does not. If I add a check at the top of the script like this, it works: if ($id == ) { $id = $_GET['id']; } But there are other GET variables being passed elsewhere in the app, and they too are not properly registered. Previous Comments: [2003-07-03 03:41:06] fuhaha at seoul dot com php5.0b1 on linux machine. (redhat 9.0) setted register_globals=On and phpinfo() check result is register_globals On On it has problem. do not recognize GET values, and POST values. why happend this problem ? help me plz. [2003-06-30 08:59:56] philippe dot nonn at cgeyDOT dot com Hi, it seems that register_globals don't even work on the Windows version. When I call a php form which call phpinfo() with parameters (like phpinfo.php?foo=test), there is non global variable $foo. The only way to get the $foo variable is to use get['foo'] Philippe [2003-06-30 06:34:34] petrich at tronic-media dot com Hi, still have the problem; (register_globals = On in php.ini are ignored, ServerApi = Apache2) Configure String: ./configure --disable-all --with-apxs2=/mnt/60giga/samba/public/www/apache2/bin/apxs Hans-Jürgen Petrich [2003-06-30 06:22:57] eero at jlug dot org Now compiled with ./configure --with-mysql --with-apxs=/home/apache/bin/apxs and problems still exists. [2003-06-30 06:01:28] [EMAIL PROTECTED] 1. Drop this: export CFLAGS=-march=athlon -O3 -pipe -fomit-frame-pointer 2. Using /usr/lib as path to ANY php configure option is incorrect (use /usr instead) 3. Remove following configure options: --enable-versioning --enable-inline-optimization 4. Try this configure line instead: # rm config.cache # ./configure --disable-all --with-apxs=home/apache/bin/apxs 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/24401 -- Edit this bug report at http://bugs.php.net/?id=24401edit=1
#24453 [Opn]: w32api registerfunction fails on 3rd call
ID: 24453 Updated by: [EMAIL PROTECTED] Reported By: jlim at natsoft dot com Status: Open Bug Type: Feature/Change Request Operating System: Windows XP -PHP Version: 4.3.2 +PHP Version: 4.3.3-RC2dev New Comment: No errors with 4.3.3 RC2 dev on XP either. Previous Comments: [2003-07-03 02:02:47] jlim at natsoft dot com OK, tested again with 4.3.3RC2-dev, Windows XP with the following results C:\php4\php43bphp d:\inetpub\wwwroot\php\w32.inc.php Content-type: text/html X-Powered-By: PHP/4.3.3RC2-dev Ticks=57669013 u='jlim ' Array ( [0] = registerfunction [1] = unregisterfunction [2] = registercallback [3] = definetype [4] = gettypesize [5] = inittype [6] = decref [7] = gettickcount [8] = getusername ) br / bFatal error/b: Call to undefined function: registerfunction() in bd:\in etpub\wwwroot\php\w32.inc.php/b on line b18/bbr / Also tested on a 2nd windows 2000 server, with php 4.3.2. Same result. [2003-07-02 15:04:25] [EMAIL PROTECTED] Works here as expected with 4.3.2 CLI and CGI on XP Pro. [2003-07-02 01:11:52] jlim at natsoft dot com Description: If the 3rd registerfunction (for messageboxa) is commented out, the code works properly. Tested with cli version of php. Reproduce code: --- ?php error_reporting(E_ALL); $api = new win32(); $api-registerfunction(long GetTickCount () From Kernel32.dll); echo Ticks=,$api-GetTickCount(),\n; $api-registerfunction(long GetUserName (string a, int b) From advapi32.dll); $s1 = ; $size = strlen($s1); $api-GetUsername($s1,$size); $s1 = substr($s1,0,$size); echo u='$s1'\n; print_r(get_class_methods($api)); $api-registerfunction(int MessageBoxA(long hWnd, string title, string lpCaption, int uType) from User32.dll); ? Expected result: Ticks=192755858 u='jlim ' Array ( [0] = registerfunction [1] = unregisterfunction [2] = registercallback [3] = definetype [4] = gettypesize [5] = inittype [6] = decref [7] = gettickcount [8] = getusername ) br / Actual result: -- Ticks=192755858 u='jlim ' Array ( [0] = registerfunction [1] = unregisterfunction [2] = registercallback [3] = definetype [4] = gettypesize [5] = inittype [6] = decref [7] = gettickcount [8] = getusername ) br / bFatal error/b: Call to undefined function: registerfunction() in bd:\in etpub\wwwroot\php\w32.inc.php/b on line b18/bbr / -- Edit this bug report at http://bugs.php.net/?id=24453edit=1
#24488 [NEW]: php4_module to php5_module rename does NOT work !
From: x86zman at bigfoot dot com Operating system: Win32 (2000 Prof. SP4) PHP version: 5CVS-2003-07-03 (dev) PHP Bug Type: Apache2 related Bug description: php4_module to php5_module rename does NOT work ! Description: Hello PHP-DEV People ! i'd like you to know that the needed correction does NOT solve the module loading issue, why this ? i can't see something i done wrong. I Use this Software : OS : Win32 [ 2000 Prof. w/ sp4 ] (as soon as i get my replacement HD back i'll be on my beloved gentoo/sorcerer again) Web-Server : Apache 2.0.46 PHP : 5.0.0b2-dev (CVS 20030702_1430, got from snaps.php.net) On this Hardware : AMD Athlon 1.6GHz w/ 768MB of RAM (80GB HDD, 1.3GB free on OS partition (where apache2 resides)) and these are my module configuration lines at apache2's httpd.conf : LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so #LoadModule auth_anon_module modules/mod_auth_anon.so #LoadModule auth_dbm_module modules/mod_auth_dbm.so #LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule headers_module modules/mod_headers.so LoadModule imap_module modules/mod_imap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule status_module modules/mod_status.so #LoadModule unique_id_module modules/mod_unique_id.so LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule ssl_module modules/mod_ssl.so LoadModule php5_module modules/mod_php5.so when i comment the last (php5 related) line, apache2 comes up without a hitch. (i've checked it's usable also) i know for sure that this is the exact pathname to the module, and that it do exist where there by that name, as i've ran a quad-check upon it... just to make sure. i've thought about the php4-php5 stuff by myself even before visiting here, as it's so trivial... seems very weird that it don't work though. Reproduce code: --- grab that snapshot from snaps.php.net and test it on W2K.Prof w/ SP4 Apache 2.0.46 configured as reporeted... Expected result: apache2 starts Actual result: -- apache2 don't start -- Edit bug report at http://bugs.php.net/?id=24488edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24488r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24488r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24488r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24488r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24488r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24488r=support Expected behavior: http://bugs.php.net/fix.php?id=24488r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24488r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24488r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24488r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24488r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24488r=dst IIS Stability: http://bugs.php.net/fix.php?id=24488r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24488r=gnused
#24488 [Opn]: php4_module to php5_module rename does NOT work !
ID: 24488 User updated by: x86zman at bigfoot dot com Reported By: x86zman at bigfoot dot com Status: Open Bug Type: Apache2 related Operating System: Win32 (2000 Prof. SP4) -PHP Version: 5CVS-2003-07-03 (dev) +PHP Version: 5CVS-2003-07-02 (dev) New Comment: corrected the PHP Ver. Previous Comments: [2003-07-03 15:57:51] x86zman at bigfoot dot com Description: Hello PHP-DEV People ! i'd like you to know that the needed correction does NOT solve the module loading issue, why this ? i can't see something i done wrong. I Use this Software : OS : Win32 [ 2000 Prof. w/ sp4 ] (as soon as i get my replacement HD back i'll be on my beloved gentoo/sorcerer again) Web-Server : Apache 2.0.46 PHP : 5.0.0b2-dev (CVS 20030702_1430, got from snaps.php.net) On this Hardware : AMD Athlon 1.6GHz w/ 768MB of RAM (80GB HDD, 1.3GB free on OS partition (where apache2 resides)) and these are my module configuration lines at apache2's httpd.conf : LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so #LoadModule auth_anon_module modules/mod_auth_anon.so #LoadModule auth_dbm_module modules/mod_auth_dbm.so #LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule headers_module modules/mod_headers.so LoadModule imap_module modules/mod_imap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule status_module modules/mod_status.so #LoadModule unique_id_module modules/mod_unique_id.so LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule ssl_module modules/mod_ssl.so LoadModule php5_module modules/mod_php5.so when i comment the last (php5 related) line, apache2 comes up without a hitch. (i've checked it's usable also) i know for sure that this is the exact pathname to the module, and that it do exist where there by that name, as i've ran a quad-check upon it... just to make sure. i've thought about the php4-php5 stuff by myself even before visiting here, as it's so trivial... seems very weird that it don't work though. Reproduce code: --- grab that snapshot from snaps.php.net and test it on W2K.Prof w/ SP4 Apache 2.0.46 configured as reporeted... Expected result: apache2 starts Actual result: -- apache2 don't start -- Edit this bug report at http://bugs.php.net/?id=24488edit=1
#24488 [Opn]: php4_module to php5_module rename does NOT work !
ID: 24488 User updated by: x86zman at bigfoot dot com Reported By: x86zman at bigfoot dot com Status: Open Bug Type: Apache2 related -Operating System: Win32 (2000 Prof. SP4) +Operating System: Win32 (2000 Prof. w/ SP4) PHP Version: 5CVS-2003-07-02 (dev) New Comment: corrected the OS Ver. Previous Comments: [2003-07-03 16:04:49] x86zman at bigfoot dot com corrected the PHP Ver. [2003-07-03 15:57:51] x86zman at bigfoot dot com Description: Hello PHP-DEV People ! i'd like you to know that the needed correction does NOT solve the module loading issue, why this ? i can't see something i done wrong. I Use this Software : OS : Win32 [ 2000 Prof. w/ sp4 ] (as soon as i get my replacement HD back i'll be on my beloved gentoo/sorcerer again) Web-Server : Apache 2.0.46 PHP : 5.0.0b2-dev (CVS 20030702_1430, got from snaps.php.net) On this Hardware : AMD Athlon 1.6GHz w/ 768MB of RAM (80GB HDD, 1.3GB free on OS partition (where apache2 resides)) and these are my module configuration lines at apache2's httpd.conf : LoadModule access_module modules/mod_access.so LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so #LoadModule auth_anon_module modules/mod_auth_anon.so #LoadModule auth_dbm_module modules/mod_auth_dbm.so #LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule headers_module modules/mod_headers.so LoadModule imap_module modules/mod_imap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule status_module modules/mod_status.so #LoadModule unique_id_module modules/mod_unique_id.so LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule ssl_module modules/mod_ssl.so LoadModule php5_module modules/mod_php5.so when i comment the last (php5 related) line, apache2 comes up without a hitch. (i've checked it's usable also) i know for sure that this is the exact pathname to the module, and that it do exist where there by that name, as i've ran a quad-check upon it... just to make sure. i've thought about the php4-php5 stuff by myself even before visiting here, as it's so trivial... seems very weird that it don't work though. Reproduce code: --- grab that snapshot from snaps.php.net and test it on W2K.Prof w/ SP4 Apache 2.0.46 configured as reporeted... Expected result: apache2 starts Actual result: -- apache2 don't start -- Edit this bug report at http://bugs.php.net/?id=24488edit=1
#24433 [Bgs-Opn]: Incorrect version-output
ID: 24433 User updated by: sandro dot mathys at blappy dot com Reported By: sandro dot mathys at blappy dot com -Status: Bogus +Status: Open Bug Type: *General Issues Operating System: linux 2.4.20 PHP Version: 5.0.0b1 (beta1) New Comment: could anyone check this? i think it's no longer a bogus... Previous Comments: [2003-07-02 06:59:36] sandro dot mathys at blappy dot com i've found the problem...took the snapshot from today (7:30-snapshot). during installation, the php-installer writes a loadmodule for the php5module into httpd.conf but if there exists a loadmodule-command for the old php4module, this won't be deleted and so the new module won't work. sorry for my bad english... :( ...i hope, ou understood! [2003-07-01 11:26:38] [EMAIL PROTECTED] Either you got a broken snapshot or you got the WRONG snapshot..I just checked the latest PHP 5 snapshot and has the correct version information. [2003-07-01 07:46:23] sandro dot mathys at blappy dot com oh, there is more than this error: Zend Engine v1.3.0 that should be v2.0.0 or something like that... [2003-07-01 07:04:58] postings-bug-php at hans-spath dot de Problem *not* present in *Windows* version: M:\php500b1\php -v PHP 5.0.0b1 (cgi-fcgi) (built: Jun 28 2003 00:31:05) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies M:\php500dev200306301130\php -v PHP 5.0.0b2-dev (cgi-fcgi) (built: Jun 30 2003 13:41:33) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies M:\php500dev200307011030\php -v PHP 5.0.0b2-dev (cgi-fcgi) (built: Jul 1 2003 12:10:02) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies [2003-07-01 07:01:10] sandro dot mathys at blappy dot com Description: php -v and phpinfo() are saying i've installed: PHP Version 4.3.3RC2-dev but it's the latest 5.0.0 b1-snapshot -- Edit this bug report at http://bugs.php.net/?id=24433edit=1
#9852 [Com]: Header redirect and db connection cause CGI misbehaved
ID: 9852 Comment by: fletchsod at juno dot com Reported By: ron dot baldwin at sourceprose dot com Status: Closed Bug Type: IIS related Operating System: Windows 2000 PHP Version: 4.2.1 New Comment: I'm having this problem with II5, Win2000 (Service Pack 4), MS-SQL 2000 (Service Pack 3) and PHP 4.3.2. I have found no workable solution and this is definitely not a Microsoft Problem, it's an PHP error coding. I use the CGI part of the PHP with the odbc scripts, not mssql scripts and I still get error with the header() part most of the time. For those of you who have problem. Fuck the php developers because they aren't going to fix this. I saw a clipping from someone who had a workaround to this problem, so I'll post it here for your convience... --snip-- I had similar problems with close to the same configuration and changed strategies completely by having the IIS server handle the header output. This was done by making the IIS server use the php DLL instead of the .exe as a CGI. My php files work fine now. It took some digging, but there is an installation/configuration explanation in the MS IIS help files. --snip-- Previous Comments: [2003-06-26 17:35:18] nospam at kolbly dot com I am running win2003, IIS6 PHP 4.3.2, Dell Dimension 4400 or T1840 Emachine and have tried EVERY suggestion here with no luck. I have opened up a case with Microsoft with no luck there either. They will look further into the problem if I can duplicate the problem without PHP. So far, I cannot duplicate the problem without using PHP. I have tried the non-php samples here and wrote a simple cgi that connects to the MS sample database and reloads itself, but cannot reproduce the problem without PHP. With PHP, I reproduce the problem 100% of the time. If anybody else has some sample C/C++/C# source code I can compile and demonstrate the problem, please send it to me so I can forward it onto Microsoft. My only conclusion is that this IS a PHP error, or at the very least the culprit is very much in doubt. Please DO reopen the bug - I don't want to have to go the .NET route :-( [2003-06-11 09:52:20] wharrison at pro dot ie To follow up I set cgi.rfc2616_headers = 1 as Pedro suggested and have had no problems reported since. So I suggest trying this to anyone with these problems. [2003-05-29 15:08:55] eduardo at tre-to dot gov dot br Why this bug is Close if no concret solution are found? [2003-05-29 15:03:34] eduardo at tre-to dot gov dot br Hello! I have the error message: HTTP/1.1 502 Gateway Error Server: Microsoft-IIS/5.0 Date: Thu, 29 May 2003 19:24:31 GMT Content-Length: 186 Content-Type: text/html each time that i open an PHP page. With or whiout db conection, header(...), frames, etc. I know that the message is shown always that the time set on IIS to be the timeout to CGI Script: On IIS select the site and click Properties. Click the Home Directory tab. On Application Protection, select:High (Isoleted) Click Configuration. Select Process Options. See the option: CGI Configurations- CGI Script timeout. Always, on this time, the message error appears. If you select the Application Protection to other option, the default time (300s) is set to. I am using php 4.3.3 on cgi mode in IIS5 and W2K Adv Server. On same php and IIS, with W2K Professional the problem don't occurs. The Event Log shows: The script started from the URL '/xxx.php' with parameters '' has not responded within the configured timeout period. The HTTP server is terminating the script. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. I already experienced all of the kinds shown in this(and in others Bug #) but nothing solve the bug. I am desperate because it go well before I reinstalled the system and updated the IIS4 to IIS5 and php 4.0.1 to 4.3.3. Now, only rest me test the isapi, that the self PHP's instruction say that isn't stable... [2003-05-28 08:50:36] wharrison at pro dot ie I am trying Pedro's cgi.rfc2616_headers = 1 tip. We noticed this problem a few times a day on an WinNT, IIS, PHP 4.3, MSSQL 2000 setup. I could also reproduce this with the bounce.php suggested a while ago. I was cosidering switching to Apache untill I read the post above. 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/9852 -- Edit this bug
#24389 [Fbk-Csd]: PHP 5 : Windows build needs a MySQL DLL
ID: 24389 Updated by: [EMAIL PROTECTED] Reported By: philip at cornado dot com -Status: Feedback +Status: Closed Bug Type: Feature/Change Request Operating System: Windows PHP Version: 5CVS-2003-06-29 (dev) Assigned To: edink New Comment: Philip, this bug was fixed, so leave it closed. Previous Comments: [2003-07-02 20:55:21] [EMAIL PROTECTED] ipa, did you copy libmySQL.dll to your SYSTEMROOT? And/or has this been fixed in the newest snap? [2003-07-02 13:08:36] enc at omni dot lt Well, i guess Postgre now will get more attention from PHP Windows users. [2003-06-30 16:16:42] ipa at assis dot lt php_mysql.dll from snap says PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'php_mysql.dll' in Unknown on line 0 [2003-06-29 20:21:31] [EMAIL PROTECTED] OK. PHP 5 snaps and distro's include php_mysql.dll (php extension) and dlls\libmySQL.dll (remember to copy this to the system folder). [2003-06-29 18:04:40] [EMAIL PROTECTED] Hm, anyone know where to find non-GPLed libmysql 3.x for windows? 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/24389 -- Edit this bug report at http://bugs.php.net/?id=24389edit=1
#24490 [NEW]: imap_headerinfo returns only one address in To field
From: bob at midnightweb dot net Operating system: RedHat Linux 8.0 PHP version: 4.3.2 PHP Bug Type: IMAP related Bug description: imap_headerinfo returns only one address in To field Description: The imap_headerinfo() function appears to only return the first address in the To field of messages that contain more than one address in that field. Addresses in the Cc field apear to be unaffected by this bug. I have tried upgrading the C-Client to 2002b-6, and then recompiling the latest stable PHP release ( 4.3.2 ). The examples are given with a message with the following To headers: -- Begin snipit -- From: Bob [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] -- End snipit -- NOTE: The email addresses in this report have been altered to preserve the privacy of the user. Reproduce code: --- $mailbox = imap_open($servername..$cfldr, $username, $password); $msgheader = @imap_headerinfo($mailbox, $msg); ob_start(); print_r( $msgheader ); error_log( ob_get_contents() ); ob_end_clean(); Expected result: In the error_log of the web server, there should be a print_r output of the object returned by imap_headerinfo() that looks as follows with the to and toaddress elements: -- Begin assumed snipit -- [toaddress] = [EMAIL PROTECTED] [EMAIL PROTECTED] [to] = Array ( [0] = stdClass Object ( [personal] = [EMAIL PROTECTED] [mailbox] = user [host] = mydomain.com ) [1] = stdClass Object ( [personal] = [EMAIL PROTECTED] [mailbox] = user2 [host] = mydomain.com ) [2] = stdClass Object ( [personal] = [EMAIL PROTECTED] [mailbox] = user3 [host] = mydomain.com ) ) -- End assumed snipit -- Actual result: -- There is the print_r output, however with incomplete to array and toaddress string elements: -- Begin snipit -- [toaddress] = [EMAIL PROTECTED] [EMAIL PROTECTED] [to] = Array ( [0] = stdClass Object ( [personal] = [EMAIL PROTECTED] [mailbox] = user [host] = mydomain.com ) ) -- End snipit -- -- Edit bug report at http://bugs.php.net/?id=24490edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24490r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24490r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24490r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24490r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24490r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=24490r=support Expected behavior: http://bugs.php.net/fix.php?id=24490r=notwrong Not enough info:http://bugs.php.net/fix.php?id=24490r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=24490r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24490r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24490r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24490r=dst IIS Stability: http://bugs.php.net/fix.php?id=24490r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=24490r=gnused
#24450 [Opn]: TTF and FreeType functions lock font file
ID: 24450 User updated by: choinet at rocketmail dot com Reported By: choinet at rocketmail dot com Status: Open Bug Type: GD related Operating System: Windows XP PHP Version: 4.3.3RC1 New Comment: I don't necessarily want to delete the file, but I want to be able to hypothetically delete the parent directory above it :) I'm developing an image management system that also allows for random image generation with text, and perhaps I would need to remove a parent directory or the file itself. Previous Comments: [2003-07-01 18:37:04] [EMAIL PROTECTED] Just curious..but why do you want to delete the file? :) [2003-07-01 17:45:37] choinet at rocketmail dot com Description: My computer setup is Apache 2.0.46,PHP 4.3.2, and Windows XP SP1. Only modifications to php.ini are: 'extension=php_gd2.dll' and 'log_errors' are enabled. Originally, I was trying to use the imagettftext() function to write text to a png file. I used the function in a similar context as described by the manual, and the text write was successful. However, I stumbled upon the discovery that the font file that the function uses was locked by either the webserver or PHP process, as I was not able to unlink or remove the font file. I tried to isolate the problem by testing the code on Windows XP with Apache 1.3.27, Apache 2.0.46, and IIS 5.1 and either PHP 4.2.3, 4.3.2, 4.3.3RC1, or 5.0, so I am thinking that it has something to do with the operating system. Furthermore, this problem does not occur with a webserver running Apache/PHP 4.3.2 on Linux. Also, this problem applies to various true-type font files. The problem only goes away after I stop or restart the webserver. In summary, there are four functions that use a font file that lock it: imagettftext(), imagettfbbox(), imagefttext(), and imageftbbox(). Reproduce code: --- $im = imagecreatefrompng('test.png'); $blue = imagecolorallocate($im, 0, 102, 255); $font = 'tahoma.ttf'; // // These four functions lock the font file and do not release it // imagettftext($im, 10, 0, 10, 25, $blue, $font, 'text'); imagettfbbox (20, 0, $font, 'text'); imagefttext ($im, 12, 0, 10, 20, 5, $font, 'text', $foo); imageftbbox (12, 0, $font, 'text', $foo); header('Content-Type: image/png'); imagepng($im); imagedestroy($im); unlink($font); Expected result: I expect to see the png image generated and the font file unlinked. Actual result: -- The image displays fine but the font file cannot be deleted. (Windows Error Dialog Box after manually attempting to delete arial.ttf) Cannot delete arial: It is being used by another person or program. Close any programs that might be using the file and try again. (Apache Error Log) [client 127.0.0.1] PHP Warning: unlink(arial.ttf): Permission denied in C:\Apache2\htdocs\gd\dynamic.php on line 16 -- Edit this bug report at http://bugs.php.net/?id=24450edit=1
#24453 [Opn]: w32api registerfunction fails on 3rd call
ID: 24453 User updated by: jlim at natsoft dot com Reported By: jlim at natsoft dot com Status: Open Bug Type: Feature/Change Request Operating System: Windows XP PHP Version: 4.3.3-RC2dev New Comment: Here is my phpinfo: Content-type: text/html X-Powered-By: PHP/4.3.3RC2-dev !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-transitional.dtd htmlhead style type=text/css!-- body {background-color: #ff; color: #00;} body, td, th, h1, h2 {font-family: sans-serif;} pre {margin: 0px; font-family: monospace;} a:link {color: #99; text-decoration: none; background-color: #ff;} a:hover {text-decoration: underline;} table {border-collapse: collapse;} .center {text-align: center;} .center table { margin-left: auto; margin-right: auto; text-align: left;} .center th { text-align: center !important; } td, th { border: 1px solid #00; font-size: 75%; vertical-align: baseline;} h1 {font-size: 150%;} h2 {font-size: 125%;} .p {text-align: left;} .e {background-color: #ff; font-weight: bold; color: #00;} .h {background-color: #cc; font-weight: bold; color: #00;} .v {background-color: #cc; color: #00;} i {color: #66; background-color: #cc;} img {float: right; border: 0px;} hr {width: 600px; background-color: #cc; border: 0px; height: 1px; color: #00;} //--/style titlephpinfo()/title/head bodydiv class=center table border=0 cellpadding=3 width=600 tr class=htd a href=http://www.php.net/;img border=0 src=?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 alt=PHP Logo //ah1 class=pPHP Version 4.3.3RC2-dev/h1 /td/tr /tablebr / table border=0 cellpadding=3 width=600 trtd class=eSystem /tdtd class=vWindows NT TIGRESS 5.1 build 2600 /td/tr trtd class=eBuild Date /tdtd class=vJul 2 2003 10:12:16 /td/tr trtd class=eServer API /tdtd class=vCGI/FastCGI /td/tr trtd class=eVirtual Directory Support /tdtd class=venabled /td/tr trtd class=eConfiguration File (php.ini) Path /tdtd class=vC:\php4\php43b\php.ini /td/tr trtd class=ePHP API /tdtd class=v20020918 /td/tr trtd class=ePHP Extension /tdtd class=v20020429 /td/tr trtd class=eZend Extension /tdtd class=v20021010 /td/tr trtd class=eDebug Build /tdtd class=vno /td/tr trtd class=eThread Safety /tdtd class=venabled /td/tr trtd class=eRegistered PHP Streams /tdtd class=vphp, http, ftp, compress.zlib /td/tr /tablebr / table border=0 cellpadding=3 width=600 tr class=vtd a href=http://www.zend.com/;img border=0 src=?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 alt=Zend logo //a This program makes use of the Zend Scripting Language Engine:br /Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies /td/tr /tablebr / hr / h1a href=?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C1PHP Credits/a/h1 hr / h1Configuration/h1 h2PHP Core/h2 table border=0 cellpadding=3 width=600 tr class=hthDirective/ththLocal Value/ththMaster Value/th/tr trtd class=eallow_call_time_pass_reference/tdtd class=vOn/tdtd class=vOn/td/tr trtd class=eallow_url_fopen/tdtd class=vOn/tdtd class=vOn/td/tr trtd class=ealways_populate_raw_post_data/tdtd class=vOff/tdtd class=vOff/td/tr trtd class=earg_separator.input/tdtd class=vamp;/tdtd class=vamp;/td/tr trtd class=earg_separator.output/tdtd class=vamp;/tdtd class=vamp;/td/tr trtd class=easp_tags/tdtd class=vOff/tdtd class=vOff/td/tr trtd class=eauto_append_file/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=eauto_prepend_file/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=ebrowscap/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=edefault_charset/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=edefault_mimetype/tdtd class=vtext/html/tdtd class=vtext/html/td/tr trtd class=edefine_syslog_variables/tdtd class=vOff/tdtd class=vOff/td/tr trtd class=edisable_classes/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=edisable_functions/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=edisplay_errors/tdtd class=vOn/tdtd class=vOn/td/tr trtd class=edisplay_startup_errors/tdtd class=vOff/tdtd class=vOff/td/tr trtd class=edoc_root/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=edocref_ext/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=edocref_root/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=eenable_dl/tdtd class=vOn/tdtd class=vOn/td/tr trtd class=eerror_append_string/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=eerror_log/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=eerror_prepend_string/tdtd class=vino value/i/tdtd class=vino value/i/td/tr trtd class=eerror_reporting/tdtd class=v2039/tdtd class=v2039/td/tr trtd class=eexpose_php/tdtd class=vOn/tdtd class=vOn/td/tr trtd class=eextension_dir/tdtd class=vC:\php4\php43b\extensions/tdtd class=vC:\php4\php43b\extensions/td/tr trtd class=efile_uploads/tdtd class=vOn/tdtd class=vOn/td/tr trtd class=egpc_order/tdtd class=vGPC/tdtd