#29907 [Opn->Fbk]: stange str comparing results
ID: 29907 Updated by: [EMAIL PROTECTED] -Summary: stange str comparing results when using usort Reported By: benjamin dot lewis at samail dot net -Status: Open +Status: Feedback Bug Type: Arrays related Operating System: redhat PHP Version: 4.3.7 New Comment: Try to reduce the code so we can understand the problem without having to read huge and tangled scripts. Btw, 4.3.7 is not the current stable version, so you'd better update it. Previous Comments: [2004-08-31 08:50:46] benjamin dot lewis at samail dot net usort [2004-08-31 08:48:02] benjamin dot lewis at samail dot net Description: cases length and value give the expected results, but when mixed in the case of length_and_value it gives unexpected results. Sorry for posting more than 20 lines i don't have an open server to post it to. Ben Reproduce code: --- '.$id; echo ''; usort($doesntwork, 'length'); foreach($doesntwork as $id) echo ''.$id; echo ''; usort($doesntwork, 'value'); foreach($doesntwork as $id) echo ''.$id; echo ''; usort($doesntwork, 'length_and_value'); foreach($doesntwork as $id) echo ''.$id; echo ''; } ?> -- Edit this bug report at http://bugs.php.net/?id=29907&edit=1
#29907 [Opn]: stange str comparing results when using usort
ID: 29907 User updated by: benjamin dot lewis at samail dot net -Summary: stange str comparing results Reported By: benjamin dot lewis at samail dot net Status: Open Bug Type: Arrays related Operating System: redhat PHP Version: 4.3.7 New Comment: usort Previous Comments: [2004-08-31 08:48:02] benjamin dot lewis at samail dot net Description: cases length and value give the expected results, but when mixed in the case of length_and_value it gives unexpected results. Sorry for posting more than 20 lines i don't have an open server to post it to. Ben Reproduce code: --- '.$id; echo ''; usort($doesntwork, 'length'); foreach($doesntwork as $id) echo ''.$id; echo ''; usort($doesntwork, 'value'); foreach($doesntwork as $id) echo ''.$id; echo ''; usort($doesntwork, 'length_and_value'); foreach($doesntwork as $id) echo ''.$id; echo ''; } ?> -- Edit this bug report at http://bugs.php.net/?id=29907&edit=1
#29907 [NEW]: stange str comparing results
From: benjamin dot lewis at samail dot net Operating system: redhat PHP version: 4.3.7 PHP Bug Type: Arrays related Bug description: stange str comparing results Description: cases length and value give the expected results, but when mixed in the case of length_and_value it gives unexpected results. Sorry for posting more than 20 lines i don't have an open server to post it to. Ben Reproduce code: --- '.$id; echo ''; usort($doesntwork, 'length'); foreach($doesntwork as $id) echo ''.$id; echo ''; usort($doesntwork, 'value'); foreach($doesntwork as $id) echo ''.$id; echo ''; usort($doesntwork, 'length_and_value'); foreach($doesntwork as $id) echo ''.$id; echo ''; } ?> -- Edit bug report at http://bugs.php.net/?id=29907&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29907&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29907&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29907&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29907&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29907&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29907&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29907&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29907&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29907&r=support Expected behavior: http://bugs.php.net/fix.php?id=29907&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29907&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29907&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29907&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29907&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29907&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29907&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29907&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29907&r=float
#29888 [Opn->Bgs]: Compile Failure due to mbstring error: redefinition of `struct re_registers'
ID: 29888 Updated by: [EMAIL PROTECTED] Reported By: alietss at yahoo dot com -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Fedora Core 2 PHP Version: 5.0.1 New Comment: Do never use that option if you don't know what you're doing. (see the disclaimer when you do ./configure --help). Previous Comments: [2004-08-31 02:00:23] alietss at yahoo dot com Tested with http://snaps.php.net/php5-STABLE-latest.tar.gz , but the error is still there, I changed --with-regex=system \, with --with-regex, and it worked... Regards [2004-08-30 08:18:53] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip [2004-08-30 06:33:48] alietss at yahoo dot com Description: Hi php team, I'm trying to build rpms of php 5.0.1 on a Fedora Core 2 system, with httpd-2.0.50, but the compile process is failing to a error related to mbstring here my configure line and the error... %configure \ --cache-file=../config.cache \ --with-config-file-path=%{_sysconfdir} \ --with-config-file-scan-dir=%{_sysconfdir}/php.d \ --enable-force-cgi-redirect \ --disable-debug \ --enable-pic \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-db4=%{_prefix} \ --with-curl \ --with-exec-dir=%{_bindir} \ --with-freetype-dir=%{_prefix} \ --with-png-dir=%{_prefix} \ --with-gd \ --enable-gd-native-ttf \ --without-gdbm \ --with-gettext \ --with-ncurses \ --with-gmp \ --with-iconv \ --with-jpeg-dir=%{_prefix} \ --with-openssl \ --with-png \ --with-pspell \ --with-regex=system \ --with-xml \ --with-expat-dir=%{_prefix} \ --with-dom=shared,%{_prefix} \ --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \ --with-xmlrpc=shared \ --with-pcre-regex=%{_prefix} \ --with-zlib \ --with-layout=GNU \ --enable-bcmath \ --enable-exif \ --enable-ftp \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-track-vars \ --enable-trans-sid \ --enable-yp \ --enable-wddx \ --with-pear=/usr/share/pear \ --with-imap=shared --with-imap-ssl \ --with-kerberos \ --with-ldap=shared \ --with-mysql=shared,%{_prefix} \ %{?_with_oci8:--with-oci8=shared} \ %{?_with_mssql:--with-mssql=shared} \ %{?_with_mhash:--with-mhash=shared} \ --with-pgsql=shared \ --with-snmp=shared,%{_prefix} \ --with-snmp=shared \ --enable-ucd-snmp-hack \ --with-unixODBC=shared,%{_prefix} \ --enable-memory-limit \ --enable-bcmath \ --enable-shmop \ --enable-calendar \ --enable-dbx \ --enable-dio \ --enable-mcal \ --enable-mbstring=shared --enable-mbstr-enc-trans \ --enable-mbregex \ $* make %{?_smp_mflags} } the error... In file included from /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/php_mbregex.h:28, from /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/mbstring.h:77, from /usr/src/redhat/BUILD/php-5.0.1/ext/standard/html.c:52: /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/oniguruma/oniguruma.h:573: error: redefinition of `struct re_registers' make: *** [ext/standard/html.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.73791 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.73791 (%build) Expected result: php builds -- Edit this bug report at http://bugs.php.net/?id=29888&edit=1
#29904 [Opn->Bgs]: php crash ( object creation + autoload )
ID: 29904 Updated by: [EMAIL PROTECTED] Reported By: segv at sayclub dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: linux PHP Version: 5.0.1 New Comment: Not a PHP bug -> bogus. Previous Comments: [2004-08-31 07:38:32] segv at sayclub dot com I'm sorry. It was a problem of xdebug. :-) I'm really sorry for annoying you. [2004-08-31 07:06:37] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Cannot reproduce. Please try it with the latest snapshot. [2004-08-31 06:33:57] segv at sayclub dot com Description: It seems that php crashes when creating object with arguments of autoloaded class. Reproduce code: --- test.inc test.php Actual result: -- % php test.php segment fault -- Edit this bug report at http://bugs.php.net/?id=29904&edit=1
#29905 [Opn->Bgs]: mysqli prepare() does not work
ID: 29905 Updated by: [EMAIL PROTECTED] Reported By: lucas at maurobenevides dot com dot br -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: Windows 2000 PHP Version: 5.0.1 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php ext/mysqli doesn't work with MySQL 4.0.x. You need MySQL >= 4.1.3. Previous Comments: [2004-08-31 06:36:48] lucas at maurobenevides dot com dot br Description: I could not use Prepared Statement in my program. Any query I use within $mysqli->prepare() returns a null variable. When I print the $mysqli->error it prints out "Unknown command" I am pretty sure it is not the query string, because the same Query I use with the query() (without prepare) statement and it works fine. I haven't changed my php.ini, except by uncommenting the line extension=php_mysql.dll and adding the line: extension=php_mysqli.dll Please, Test it in the Windows 2000 I use Mysql 4.0.2 Reproduce code: --- $conn = new mysqli(HOST_MYSQL, USER_MYSQL, PASSWD_MYSQL, DBNAME_MYSQL); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $consulta = $conn->prepare("SELECT MD5_PASSWORD FROM tb_user WHERE TXT_LOGIN=?" ); if (!$consulta) printf($conn->error); $consulta->bind_param("s", $_POST["password"]); $result = $consulta->fetch(); Expected result: Unknown command Fatal error: Call to a member function fetch() on a non-object in C:mydir on line 17 -- Edit this bug report at http://bugs.php.net/?id=29905&edit=1
#29904 [Fbk->Opn]: php crash ( object creation + autoload )
ID: 29904 User updated by: segv at sayclub dot com Reported By: segv at sayclub dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: linux PHP Version: 5.0.1 New Comment: I'm sorry. It was a problem of xdebug. :-) I'm really sorry for annoying you. Previous Comments: [2004-08-31 07:06:37] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Cannot reproduce. Please try it with the latest snapshot. [2004-08-31 06:33:57] segv at sayclub dot com Description: It seems that php crashes when creating object with arguments of autoloaded class. Reproduce code: --- test.inc test.php Actual result: -- % php test.php segment fault -- Edit this bug report at http://bugs.php.net/?id=29904&edit=1
#28417 [Opn->Fbk]: pages not completly loaded
ID: 28417 Updated by: [EMAIL PROTECTED] Reported By: prof_moriarty at veryfast dot biz -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: win XP PHP Version: 5.0.0RC2 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: [2004-05-16 20:50:38] prof_moriarty at veryfast dot biz Description: Running PHP5RC2 on Apache2.0.recent as a module (MYSQL 4.0.18). When running phpmyadmin, and listing tables (i.e. listing the contents of a MySQL table in HTML tables, or listing the table list itself etc (anything that uses HTML tables)), much of the time the server only bothers returning Partial tables. Some-times it even finishs with a page in the middle of a tag. This should be reproduceable by anyone using a similar setup to the above. Just nab a copy of phpmyadmin, and play around. You can't miss it. It doesn't always happen. 1 in 10 pages may load properly (just keep hitting that reload :) ). Note: Works fine with Apache 1.3.recent. Therefore the problem lies with apache 2 or php5's support thereof. Note2: There are no errors returned by apache or PHP. (php error reporting is on e_all in phpmyadmin) note3: Similar to bug 23653. But with much more recent versions of everything. -- Edit this bug report at http://bugs.php.net/?id=28417&edit=1
#29902 [Opn->Bgs]: oci8 doesn't disconnect sessions, overloads oracle server
ID: 29902 Updated by: [EMAIL PROTECTED] Reported By: jwoodrich at avaya dot com -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: Solaris 7 PHP Version: 5.0.1 New Comment: OCI8 module doesn't close connections and leaves this duty to the Oracle server. That was done intentionally long time ago and that's how it works. Currently all OCI8 connections are persistent (except those established with oci_new_connect()/ocinlogon()), i.e. most often you will have one OCI8 connection for each Apache child. You should tune your Oracle to be able to close connections after a timeout. Look here http://php.net/oci_close for additional info. Previous Comments: [2004-08-30 20:54:50] jwoodrich at avaya dot com Description: PHP's oci8 opens connections to the database server but does not disconnect. This appears to be done for each instance of apache that uses PHP oci8. Eventually the maximum number of sessions is reached on the database server and no more connections can be made. This has occured on three different Solaris servers (two v7 and one v8) running PHP 5.0.1. After downgrading to PHP 4.3.8 the problem disappeared and connections disappeared from session listing in Oracle as web transactions completed. Config line: ./configure --with-apxs --with-oci8 \ --enable-ftp --with-curl --with-informix \ --with-imap \ --with-ldap --with-gd --with-jpeg- \ --with-pgsql \ --with-libxml-dir \ --prefix \ --with-png-dir --with-zlib --enable-pcntl --disable-debug Oracle Server version: 8.1.7.2 Oracle Client version: 8.1.7 Reproduce code: --- Example: $dbh=ocilogon("LOGIN","PASSWORD","DATABASE"); $sth=ociparse($dbh,"select sysdate from dual"); ociexecute($sth); ocifetchinto($sth,&$svret,OCI_ASSOC+OCI_RETURN_NULLS); ocifreestatement($sth); oci_close($dbh); var_dump($svret); Expected result: array(1) { ["SYSDATE"]=>string(11) "<>" } Actual result: -- Once the maximum number of sessions is reached this error message is returned: ORA-00604: error occurred at recursive SQL level 1 ORA-00018: maximum number of sessions exceeded -- Edit this bug report at http://bugs.php.net/?id=29902&edit=1
#29903 [Opn->Bgs]: sapi_apache2.c is not compatible
ID: 29903 Updated by: [EMAIL PROTECTED] Reported By: jakawan at jakawan dot com -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: Redhat 9 PHP Version: 5.0.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. You are trying to load 4.2.2 module instead of your new, 5.0.1 module. Check your Apache config. Previous Comments: [2004-08-30 23:12:08] jakawan at jakawan dot com Description: Can somebody help please? I'm really desperate now. I have read the install.txt, support forum about 50 times. I recompiled back and forth about 10 times. Download the latest PHP from both PHP.net and http://snaps.php.net. I still get the same error below: httpd: module "/usr/src/build/274778-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c" is not compatible with this version of Apache (found 20020628, need 20020903). Please contact the vendor for the correct version. Here is my Apache and PHP version: [EMAIL PROTECTED] etc]# apachectl -v Server version: Apache/2.0.50 Server built: Aug 24 2004 16:21:47 [EMAIL PROTECTED] etc]# php -v PHP 5.0.2-dev (cli) (built: Aug 24 2004 10:40:57) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.2-dev, Copyright (c) 1998-2004 Zend Technologies When I compile, I only use the basic switches: ./configure --prefix=/usr/local/apache2 then do make & make install for PHP, I follow the INSTALL document: ./configure --with-apxs2=/usr/local/apache2/bin/apxs then make & make install... - Here's what I have in the httpd.conf (partially) LoadModule php5_module modules/libphp5.so ... DocumentRoot /home/httpd/vhosts/webmail ServerName webmail ServerAlias webmail.* UseCanonicalName Off php_admin_flag engine on php_admin_flag magic_quotes_gpc off php_admin_value safe_mode off php_admin_value open_basedir "/home/httpd/vhosts/webmail:/etc/psa:/tmp" php_admin_value include_path "/home/httpd/vhosts/webmail/horde/lib:/home/httpd/vhosts/webmail/horde/pe ar:." Everything went well during the compilation, but I cannot run apache anymore. I searched in http://www.php.net/support.php and other php forums, I can't find anything related to this issue. I have also download the latest from http://snaps.php.net and recompile - still not working. I know that there is something hanging on my server that I have missed. Any great advice would be appriciated. I'm really desperate now. My server has been down for almost a week already. Thanks in advance. Jak -- Edit this bug report at http://bugs.php.net/?id=29903&edit=1
#29904 [Opn->Fbk]: php crash ( object creation + autoload )
ID: 29904 Updated by: [EMAIL PROTECTED] Reported By: segv at sayclub dot com -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: linux PHP Version: 5.0.1 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Cannot reproduce. Please try it with the latest snapshot. Previous Comments: [2004-08-31 06:33:57] segv at sayclub dot com Description: It seems that php crashes when creating object with arguments of autoloaded class. Reproduce code: --- test.inc test.php Actual result: -- % php test.php segment fault -- Edit this bug report at http://bugs.php.net/?id=29904&edit=1
#29905 [NEW]: mysqli prepare() does not work
From: lucas at maurobenevides dot com dot br Operating system: Windows 2000 PHP version: 5.0.1 PHP Bug Type: MySQL related Bug description: mysqli prepare() does not work Description: I could not use Prepared Statement in my program. Any query I use within $mysqli->prepare() returns a null variable. When I print the $mysqli->error it prints out "Unknown command" I am pretty sure it is not the query string, because the same Query I use with the query() (without prepare) statement and it works fine. I haven't changed my php.ini, except by uncommenting the line extension=php_mysql.dll and adding the line: extension=php_mysqli.dll Please, Test it in the Windows 2000 I use Mysql 4.0.2 Reproduce code: --- $conn = new mysqli(HOST_MYSQL, USER_MYSQL, PASSWD_MYSQL, DBNAME_MYSQL); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $consulta = $conn->prepare("SELECT MD5_PASSWORD FROM tb_user WHERE TXT_LOGIN=?" ); if (!$consulta) printf($conn->error); $consulta->bind_param("s", $_POST["password"]); $result = $consulta->fetch(); Expected result: Unknown command Fatal error: Call to a member function fetch() on a non-object in C:mydir on line 17 -- Edit bug report at http://bugs.php.net/?id=29905&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29905&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29905&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29905&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29905&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29905&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29905&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29905&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29905&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29905&r=support Expected behavior: http://bugs.php.net/fix.php?id=29905&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29905&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29905&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29905&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29905&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29905&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29905&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29905&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29905&r=float
#29904 [NEW]: php crash ( object creation + autoload )
From: segv at sayclub dot com Operating system: linux PHP version: 5.0.1 PHP Bug Type: Reproducible crash Bug description: php crash ( object creation + autoload ) Description: It seems that php crashes when creating object with arguments of autoloaded class. Reproduce code: --- test.inc test.php Actual result: -- % php test.php segment fault -- Edit bug report at http://bugs.php.net/?id=29904&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29904&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29904&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29904&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29904&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29904&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29904&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29904&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29904&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29904&r=support Expected behavior: http://bugs.php.net/fix.php?id=29904&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29904&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29904&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29904&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29904&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29904&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29904&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29904&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29904&r=float
#29394 [Opn->Bgs]: Cant delete folder with name 2003
ID: 29394 Updated by: [EMAIL PROTECTED] Reported By: m at shnee dot com -Status: Open +Status: Bogus Bug Type: Directory function related Operating System: winxp pro PHP Version: 4.3.7 New Comment: Tested in WinXP Home SP2, both functions work fine for me. - Davey Previous Comments: [2004-07-26 21:03:16] m at shnee dot com Description: Its funny, when a directory is named "2003", I am unable to rmdir or rename it. If I change the folder name (using windows explorer) to 2005, then I can run rmdir and rename with no problem. The return error is Permission Denied. But that isnt the issue as I can create a 2003 folder and 2005 folder at the same time, and I get the same problem. I can only edit/delete 2005, and 2003 always gives permission denied no matter what. I realize its possible this could be a windows issue. Just curious don't ya think? Reproduce code: --- rmdir("2003"); rename ("2003", "2002); Expected result: I expect it to delete/rename the directory. Actual result: -- Warning: rmdir(2003): Permission denied in C:\Documents and Settings\Mark\Desktop\www\new_pics\index.php on line 401 -- Edit this bug report at http://bugs.php.net/?id=29394&edit=1
#29441 [Bgs]: After copying a class, changes to new class affect old class.
ID: 29441 User updated by: php at cyruslesser dot com Reported By: php at cyruslesser dot com Status: Bogus Bug Type: Class/Object related Operating System: * PHP Version: 5.* New Comment: BTW, for anyone else reading this who also had trouble finding the documention, check this URL which is details the changes in the Zend 2 engine: http://www.php.net/zend-engine-2.php Specifically, the solution to my problem was very simple: $new_object = clone $old_object; Although I still feel that always forcing passing objects by reference to functions is a bit silly, I'm willing to live with it for the sake of the many great improvements to PHP5. Thanks. Cyrus Previous Comments: [2004-08-03 03:38:32] [EMAIL PROTECTED] http://zend.com/manual/migration5.oop.php scroll down to "Objects Cloning" [2004-08-03 03:30:50] php at cyruslesser dot com Sorry, that was supposed to read "ARE THERE new functions to aid in the duplication of objects by value?" Cyrus [2004-08-03 03:26:24] php at cyruslesser dot com Yes, why must everyone I ask about this point out the blatantly obvious when I ask about this? :) It's passing classes by reference (or pointer if you prefer the C analog) not by value. I get it. Honestly I do. I just don't get why. Please, is there a way I can quickly copy an object? Where is memcpy()? Why can't I call clone() directly? Are the new functions to aid in the duplication of objects by value? I'm assuming that they do exist, and that I just don't know about them. I have faith in you guys... your language is the easiest and most intuitive language I have ever seen, and I love it. But what I do not understand why you have chosen to do this, or how it aids the language. I appreciate that copying a pointer (or reference) to a class is somewhat quicker than copying the entire object itself, but I don't really see how duplicating pointers is more useful that duplicating complete copies of the object. I just don't think that a small time saving (surely it's just a few memcpy() calls) is worth the extra time it now takes when you wish to duplicate an object. Or the problems this is going to cause with PHP4 software running under PHP5. In PHP5, if I have an object containing data retrieved from a database, and I want to copy it, I have to instantiate a new object, and either repeat all the calls to the database to retrieve the data, or copy every member variable individually to the new class. Either way it's slow and tedious. But I'm very hopeful that there is a new object copy function that wasn't in the PHP5 "what's new" documentation. I have to say, even C++ will automatically copy the contents of a class unless you override the assignment operator. Another irksome factor about this whole thing, is the inconsistency that this brings to the language. Previously a string object could be treated identically to a class object. $string1 = "a"; $string2 = $string1; $string2 = "b"; Which of course, will leave $string1 == "a". But if they where class objects, then the behavior suddenly changes, and $string1 is changed. This is going to be very confusing to people who have never learnt a lower-level OO language before. Even in C++ (which I would regard by todays standard, as a pretty hard language to learn), strings and class objects behave in the same fashion when assigned, or used as arguments to functions. While we're on the topic of functions: In PHP4: function ($object) { /* pass by value */ /* This doesn't change the original object */ $object->change(); } function (&$object) { /* pass by reference */ /* This DOES change the original object */ $object->change(); } That made sense. There are two different ways to pass an object, and you can chose which one you wish to use in the declaration of the function, using '&'. In PHP5, both of those function have the same effect, they both modify the original object which is now always passed by reference. Is this the way it's going to stay? Cyrus Lesser [2004-08-02 18:24:11] [EMAIL PROTECTED] You don't copy a class, you copy an instance. And since PHP 5.0.0 you no longer copy by value but instead by object id. [2004-08-02 14:21:08] php at cyruslesser dot com Well, in version 4.3.8, it returns a: 1 b: 2 In version 5.0.0 it returns (without error or notification) a: 2 b: 2 That may or may not be intentional, but if there's a way to copy an object instead of a pointer to an object, I can't find it in the manual. Cyrus Lesser --
#29665 [NoF->Opn]: PHP Fails to compile when soap is enabled
ID: 29665 Updated by: [EMAIL PROTECTED] Reported By: moontumbo at hotmail dot com -Status: No Feedback +Status: Open Bug Type: Compile Failure Operating System: Red Hat Enterprise Linux WS 3.0 PHP Version: 5.0.1 Previous Comments: [2004-08-31 01:30:36] clewis at myfonts dot com I too saw this problem on RedHat Enterprise 3 using libxml2 2.5.10. Upgrading to 2.6.12 solved the problem. [2004-08-28 16:52:52] michiel at dotgeek dot org same problem, slack 9.0 $ xml2-config --version 2.6.12 [2004-08-25 01:00:11] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2004-08-17 23:17:13] ibrash at gaernin dot aswwc dot net Issue reproduced on Slackware 9.1 with libxml2 2.5.11. [2004-08-17 08:06:37] [EMAIL PROTECTED] Which libxml2 did you have installed before? 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/29665 -- Edit this bug report at http://bugs.php.net/?id=29665&edit=1
#29888 [Fbk->Opn]: Compile Failure due to mbstring error: redefinition of `struct re_registers'
ID: 29888 User updated by: alietss at yahoo dot com Reported By: alietss at yahoo dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: Fedora Core 2 PHP Version: 5.0.1 New Comment: Tested with http://snaps.php.net/php5-STABLE-latest.tar.gz , but the error is still there, I changed --with-regex=system \, with --with-regex, and it worked... Regards Previous Comments: [2004-08-30 08:18:53] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip [2004-08-30 06:33:48] alietss at yahoo dot com Description: Hi php team, I'm trying to build rpms of php 5.0.1 on a Fedora Core 2 system, with httpd-2.0.50, but the compile process is failing to a error related to mbstring here my configure line and the error... %configure \ --cache-file=../config.cache \ --with-config-file-path=%{_sysconfdir} \ --with-config-file-scan-dir=%{_sysconfdir}/php.d \ --enable-force-cgi-redirect \ --disable-debug \ --enable-pic \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-db4=%{_prefix} \ --with-curl \ --with-exec-dir=%{_bindir} \ --with-freetype-dir=%{_prefix} \ --with-png-dir=%{_prefix} \ --with-gd \ --enable-gd-native-ttf \ --without-gdbm \ --with-gettext \ --with-ncurses \ --with-gmp \ --with-iconv \ --with-jpeg-dir=%{_prefix} \ --with-openssl \ --with-png \ --with-pspell \ --with-regex=system \ --with-xml \ --with-expat-dir=%{_prefix} \ --with-dom=shared,%{_prefix} \ --with-dom-xslt=%{_prefix} --with-dom-exslt=%{_prefix} \ --with-xmlrpc=shared \ --with-pcre-regex=%{_prefix} \ --with-zlib \ --with-layout=GNU \ --enable-bcmath \ --enable-exif \ --enable-ftp \ --enable-magic-quotes \ --enable-safe-mode \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-track-vars \ --enable-trans-sid \ --enable-yp \ --enable-wddx \ --with-pear=/usr/share/pear \ --with-imap=shared --with-imap-ssl \ --with-kerberos \ --with-ldap=shared \ --with-mysql=shared,%{_prefix} \ %{?_with_oci8:--with-oci8=shared} \ %{?_with_mssql:--with-mssql=shared} \ %{?_with_mhash:--with-mhash=shared} \ --with-pgsql=shared \ --with-snmp=shared,%{_prefix} \ --with-snmp=shared \ --enable-ucd-snmp-hack \ --with-unixODBC=shared,%{_prefix} \ --enable-memory-limit \ --enable-bcmath \ --enable-shmop \ --enable-calendar \ --enable-dbx \ --enable-dio \ --enable-mcal \ --enable-mbstring=shared --enable-mbstr-enc-trans \ --enable-mbregex \ $* make %{?_smp_mflags} } the error... In file included from /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/php_mbregex.h:28, from /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/mbstring.h:77, from /usr/src/redhat/BUILD/php-5.0.1/ext/standard/html.c:52: /usr/src/redhat/BUILD/php-5.0.1/ext/mbstring/oniguruma/oniguruma.h:573: error: redefinition of `struct re_registers' make: *** [ext/standard/html.lo] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.73791 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.73791 (%build) Expected result: php builds -- Edit this bug report at http://bugs.php.net/?id=29888&edit=1
#29665 [Com]: PHP Fails to compile when soap is enabled
ID: 29665 Comment by: clewis at myfonts dot com Reported By: moontumbo at hotmail dot com Status: No Feedback Bug Type: Compile Failure Operating System: Red Hat Enterprise Linux WS 3.0 PHP Version: 5.0.1 New Comment: I too saw this problem on RedHat Enterprise 3 using libxml2 2.5.10. Upgrading to 2.6.12 solved the problem. Previous Comments: [2004-08-28 16:52:52] michiel at dotgeek dot org same problem, slack 9.0 $ xml2-config --version 2.6.12 [2004-08-25 01:00:11] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2004-08-17 23:17:13] ibrash at gaernin dot aswwc dot net Issue reproduced on Slackware 9.1 with libxml2 2.5.11. [2004-08-17 08:06:37] [EMAIL PROTECTED] Which libxml2 did you have installed before? [2004-08-16 21:51:08] ppritzl at hotmail dot com Upgrading the libxml2 to 2.6.11-1 solved this issue for me on both RH9 and RH Enterprise 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/29665 -- Edit this bug report at http://bugs.php.net/?id=29665&edit=1
#29613 [Fbk->NoF]: construct Class error when used 2 parameters or more
ID: 29613 Updated by: [EMAIL PROTECTED] Reported By: onebird at 21cn dot com -Status: Feedback +Status: No Feedback Bug Type: Zend Engine 2 problem Operating System: win2k PHP Version: 5.0.0 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: [2004-08-23 08:09:10] [EMAIL PROTECTED] Can't reproduce it with your code. Works fine. [2004-08-11 17:00:01] onebird at 21cn dot com if I used an object to $DB , like : $a = new system_login ($Global_DB_Connection, "Form"); I found the "Form" can't transfer to $mode also ! [2004-08-11 16:49:57] onebird at 21cn dot com More for code : // file base.inc //this is other file db_conn = $Global_DB_Connection; else $this->db_conn = $DB; if ($mode == 'http') { if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'please login at first !'; exit; } else { Base::sys_login($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW']); // ...anything.. } } else { //... something for Form submit to login ... } } } $a = new system_login ("","Form"); ?> if changed the : function system_login( $DB = "", $mode = "http" ) to function system_login( $DB, $mode ) used the $a = new system_login ("","Form"); or $a = new system_login ("",""); The PHP5 told me all the parameters missing !! [2004-08-11 13:41:27] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. [2004-08-11 13:33:09] onebird at 21cn dot com Description: construct Class error when used 2 parameters or more ; The first parameter can't used the Default value !! Reproduce code: --- class Base {.} class system_login extends Base { var $db_conn; var $user_table = 'user'; function system_login( $DB = "", $mode = "http" ) {.} } $a = new system_login ("","Form"); Expected result: I found the $mode == "http" always ; but it will be $mode == "Form" when construct this class; if I used :$a = new system_login ("ss","Form"); the $mode == "Form" is OK! The first parameter can't used the Default value !! this code can used under PHP4 , it OK always ! -- Edit this bug report at http://bugs.php.net/?id=29613&edit=1
#28595 [Com]: "sapi/apache/sapi_apache2.c" is not compatible with Apach 2.0.49
ID: 28595 Comment by: jakawan at jakawan dot com Reported By: btnguyen2k at yahoo dot com Status: Bogus Bug Type: Apache2 related Operating System: Linux Redhat 8.0 PHP Version: 4.3.6 New Comment: So what is the solution to this problem. I know something is hanging on the server, but what exactly I need to look for? Please help. Previous Comments: [2004-06-01 08:14:39] [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. You probably have some old headers on your system somewhere which interfere with the compilation of PHP against a newer Apache. Please contact the appropriate support channels as this is not a bug. [2004-06-01 00:55:20] btnguyen2k at yahoo dot com Description: Today I installed a new server (clean install) with Apache 2.0.49 and PHP 4.3.6. Everythings was fine from ./configure to make, make test, and make install. However, when restarting Apache, I got the following error message: Starting httpd: httpd: module "/root/download/php-4.3.6/sapi/apache2filter/sapi_apache2.c" is not compatible with this version of Apache. Please contact the vendor for the correct version. On my old servers (Apache 2.0.47/48 with PHP 4.3.4) there was no such an error message. This is the configuration command I used for PHP: ./configure --enable-force-cgi-redirect --disable-debug --with-gd --with-ttf --with-zlib --enable-memory-limit --enable-mbstring --with-mysql --enable-safe-mode --enable-pic --with-png --with-jpeg Note: I do find some previous bug reports regarding to this issue, but with different versions of Apache and PHP. The solution in all of those bug reports was "download the CVS version of PHP". However it's not the choice for me now because I need a stable version of PHP that works with my current Apache. -- Edit this bug report at http://bugs.php.net/?id=28595&edit=1
#26286 [Com]: Parent: child process exited with status 3221225477 -- Restarting
ID: 26286 Comment by: ajvdhek at dds dot nl Reported By: igg10 at alu dot ua dot es Status: No Feedback Bug Type: Apache2 related Operating System: Windows 2000 PHP Version: 4.3.4 New Comment: Exact same bug for me... Win XP pro + XAMMP 1.4.6 (Apache/2.0.50 (Win32) mod_ssl/2.0.50 OpenSSL/0.9.7c PHP/5.0.1 MySQL 4.0.20a-nt) Previous Comments: [2004-07-05 16:23:19] adam dot phillips at orange dot net Continuing from my post above, I tried replacing the switch statement with if () {} elseif ... and still got the error so it appears it is not the switch statement [2004-07-05 16:01:24] adam dot phillips at orange dot net I experienced the same problem on 2 systems - Win2k with Apache 2.0.48/PHP 4.3.4 and Red Hat Linux with Apache 1.3.29 and PHP 4.3.5. So far as i can tell, the cause of the error is a switch statement. I have a function withian a class module declared as follows: function getsales($scope="", $returnasobjects=false) { } Inside this function is a switch statment based on $scope. There are four cases. The first three perform different functions which all return arrays and the fourth case (which is the default) performs all 3 of the previous cases and merges the results into a single array (I won't write out all the code since it all appears to work outside of this switch statement. Please e-mail if needed). The error occurs in the fourth case but originally the code was identical to that of the first 3 'stuck together'. I have since tried a number of alternatives none of which work. Most intriguing was when instead of using default: for the fourth case i renamed it case "all". Then it worked when called from another page but not when called from within the same class module. I then renamed it "everything" and the opposite was true. I then tried changed my function declaration to function getsales($scope="all", $returnasobjects=false) {} and it wouldn't work in either case. Similarly if i replaced "all" with everything. The final bit of strangeness was that i tried using the following code in the default case return array_merge($this->getsales("case1"), $this->getsales("case2"), $this->getsales("case3")) which wouldn't work even tho each of the cases worked individually. Each time i get the same error in my Apache Error Log Parent: child process exited with status 3221225725 -- Restarting [2004-06-28 16:54:47] joker at localfoo dot info The snippet posted by ''hakk at email dot it'' reproduces the ...Restarting... problem with the following packages also under WinXP/SP1 (not tested under Win2000) ===HOST: P3-1GHz/256MB Notebook Windows XP/SP1 Apache 2.0.49 PHP 4.3.7 (php4apache2.dll) with/without ZendOptimizer 2.5.1 ===TESTED WITH: PHP 4-win32-STABLE-200406272030 (PHP 4.3.8-dev as module) PHP 5-win32-200406271830 (PHP5.0.0-dev as module) ===SNIP OD SYSLOG: Ereignistyp:Informationen Ereignisquelle: Application Popup Ereigniskategorie: Keine Ereigniskennung:26 Datum: 28.06.2004 Zeit: 16:36:16 Benutzer: Nicht zutreffend Computer: LT04 Beschreibung: Anwendungspopup: apache.exe - Fehler in Anwendung: Die Anweisung in "0x" verweist auf Speicher in "0x". Der Vorgang "read" konnte nicht auf dem Speicher durchgeführt werden. ===END OF SNIP This also occurs on some webapplications (e.g. mamboserver-cms, mylansite). They RIP sometimes under several circumstances preferred running with php as module. They work almost fine with PHP in CGI mode. I also had a user reporting Error 128 instead of 3221225477 - [Referring: http://bugs.php.net/bug.php?id=26771] The author of Bug 26771 has similar problems (...restarting...) executing the 'tick'-script (see the mentioned BUG report and http://nl.php.net/manual/en/control-structures.declare.php) crashes my constellation without ANY log (Apache2 error) entry. It doesn't even make the ...Restarting... log entry in Apache2 but this occurs on several applications as well. So the 'tick'-script might be an appropriate script for reproducing this error... My host closed with the following syslog message when executing the 'tick': ===SNIP OF SYSLOG: Ereignistyp:Informationen Ereignisquelle: Application Popup Ereigniskategorie: Keine Ereigniskennung:26 Datum: 28.06.2004 Zeit: 14:26:17 Benutzer: Nicht zutreffend Computer: LT04 Beschreibung: Anwendungspopup: apache.exe - Fehler in Anwendung: Die Anweisung in "0x100c0afd" verweist auf Speicher in "0x". Der Vorgang "written" konnte nicht auf dem Speicher durchgeführt werden. ===END OF SNIP Thx Chris
#29903 [NEW]: sapi_apache2.c is not compatible
From: jakawan at jakawan dot com Operating system: Redhat 9 PHP version: 5.0.1 PHP Bug Type: Apache2 related Bug description: sapi_apache2.c is not compatible Description: Can somebody help please? I'm really desperate now. I have read the install.txt, support forum about 50 times. I recompiled back and forth about 10 times. Download the latest PHP from both PHP.net and http://snaps.php.net. I still get the same error below: httpd: module "/usr/src/build/274778-i386/BUILD/php-4.2.2/sapi/apache2filter/sapi_apache2.c" is not compatible with this version of Apache (found 20020628, need 20020903). Please contact the vendor for the correct version. Here is my Apache and PHP version: [EMAIL PROTECTED] etc]# apachectl -v Server version: Apache/2.0.50 Server built: Aug 24 2004 16:21:47 [EMAIL PROTECTED] etc]# php -v PHP 5.0.2-dev (cli) (built: Aug 24 2004 10:40:57) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.2-dev, Copyright (c) 1998-2004 Zend Technologies When I compile, I only use the basic switches: ./configure --prefix=/usr/local/apache2 then do make & make install for PHP, I follow the INSTALL document: ./configure --with-apxs2=/usr/local/apache2/bin/apxs then make & make install... - Here's what I have in the httpd.conf (partially) LoadModule php5_module modules/libphp5.so ... DocumentRoot /home/httpd/vhosts/webmail ServerName webmail ServerAlias webmail.* UseCanonicalName Off php_admin_flag engine on php_admin_flag magic_quotes_gpc off php_admin_value safe_mode off php_admin_value open_basedir "/home/httpd/vhosts/webmail:/etc/psa:/tmp" php_admin_value include_path "/home/httpd/vhosts/webmail/horde/lib:/home/httpd/vhosts/webmail/horde/pe ar:." Everything went well during the compilation, but I cannot run apache anymore. I searched in http://www.php.net/support.php and other php forums, I can't find anything related to this issue. I have also download the latest from http://snaps.php.net and recompile - still not working. I know that there is something hanging on my server that I have missed. Any great advice would be appriciated. I'm really desperate now. My server has been down for almost a week already. Thanks in advance. Jak -- Edit bug report at http://bugs.php.net/?id=29903&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29903&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29903&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29903&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29903&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29903&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29903&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29903&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29903&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29903&r=support Expected behavior: http://bugs.php.net/fix.php?id=29903&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29903&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29903&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29903&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29903&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29903&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29903&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29903&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29903&r=float
#29892 [NEW]: strtotime('now'); doesn't work
From: alexander dot over at koeln dot de Operating system: Suse9.1 PHP version: 5.0.1 PHP Bug Type: Unknown/Other Function Bug description: strtotime('now'); doesn't work Description: the result from strtotime("now"); gives me only the timestamp from the beginning of the actual day. Reproduce code: --- Expected result: 1093854300 Actual result: -- 1093816800 -> 30.08.2004 00:00:00 -- Edit bug report at http://bugs.php.net/?id=29892&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29892&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29892&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29892&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29892&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29892&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29892&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29892&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29892&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29892&r=support Expected behavior: http://bugs.php.net/fix.php?id=29892&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29892&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29892&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29892&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29892&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29892&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29892&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29892&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29892&r=float
#29608 [Com]: OCi reports OCIStmtExecute: ORA-24324: service handle not initialized
ID: 29608 Comment by: symedeot at yahoo dot fr Reported By: tomek at matrox dot pl Status: No Feedback Bug Type: OCI8 related Operating System: W2k, Red Hat PHP Version: 5.0.0 New Comment: I have exactly the same problem ! If works sometimes, sometime not. If you ask the same page again, it should work or not... Warning: oci_execute() [function.oci-execute]: OCIStmtExecute: ORA-24324: descripteur de service non initialisé in ... Warning: ocifetch() [function.ocifetch]: OCIFetch: ORA-24338: descripteur d'instruction non exécuté in... Just try to access Oracle like this : $conn = OCILogon("GPE", "gpe","PLSE"); $stmt = OCIParse($conn,$myrequest); OCI_Execute($stmt,OCI_DEFAULT); while ( OCIFetch($stmt) ) { } OCIFreeStatement($stmt); OCILogoff($conn); Oracle 9.i under RedHat 9, php 5.00 and 5.01(same), any Apache 2 version. Everything fine on same server when using PHP 4.3x It is clearly a bug ! And we are quite a lot to report it ! Previous Comments: [2004-08-19 01:00:08] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2004-08-12 11:02:53] izhekov at ppartner dot com I've tried to reproduce this problem. I've installed 2 apache services on different ports 80 and 81 - first of them using PHP5 and the other using PHP4 then I restarted the system. When first I access my scripts using PHP5 on port 80 everythings goes fine. Running scripts afterthat with PHP4 on port 81 also worked fine. When I tried to access again scripts on apache service running on 80 port, errors occured again: - Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-24324: service handle not initialized in C:\SERVER\HTTPD\htdocs\service\db_modul.php on line 21 Warning: ocifetch() [function.ocifetch]: OCIFetch: ORA-24338: statement handle not executed in C:\SERVER\HTTPD\htdocs\service\db_modul.php on line 27 -- [2004-08-12 10:09:03] izhekov at ppartner dot com I migrate from PHP 4 to PHP 5 on my Windows 2003 server. Everything goes fine, but when I try to use an PHP application that uses Oracle database I receive the error mentioned above. I restarted the Oracle server but that not helped me. Other applications and PHP 4 works fine with my Oracle server, but PHP 5 did not. Last night the power supply goes down unexpectally and both Oracle server and web server was restarted. Now everything seems to be fine, but I'm sure the problem exists and many people will have the same problems also. Searching in Google for: http://www.google.com/search?hl=bg&ie=UTF-8&q=%22service+handle+not+initialized+in%22+%2Bwarning&lr= shows many sites with the same problem. [2004-08-11 17:43:31] [EMAIL PROTECTED] >I think the OCI8 functions did not work at all in PHP 5. you're wrong. OCI8 functions work for most of the people. Perhaps you're misusing them or having some problems with Oracle client/Oracle server. I still need more info to find out what happens and/or to reproduce your situation. Feel free to provide this info and open the bug report again. [2004-08-11 16:34:48] izhekov at ppartner dot com I have the same problem. If you search in google for this error, you'll find some sites that have the same problem. I'm using Windows 2003 Server. I think this bug is fatal for many people. I think the OCI8 functions did not work at all in PHP 5. 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/29608 -- Edit this bug report at http://bugs.php.net/?id=29608&edit=1
#29891 [Opn->Bgs]: PHP attempts to load all extensions via relative path
ID: 29891 Updated by: [EMAIL PROTECTED] Reported By: jtyocum at publicmx dot com -Status: Open +Status: Bogus Bug Type: Dynamic loading Operating System: RH Linux 9.0/Virtuozzo 2.6 PHP Version: 4.3.9RC1 New Comment: You cannot specify path in extension= line in php.ini. Use extension_dir and try reading the instructions the next time. Previous Comments: [2004-08-30 09:32:07] jtyocum at publicmx dot com Description: When running PHP via commandline, it'll complain the paths for the modules are invalid. It appears to be trying to load the modules via a relative path, e.g. prepending ./ to the path. However, the zend_extension seems to be fine, as it loads the module. ;Enable MySQL extension="/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so" ;Enable SNMP extension="/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so" ;Turck MMCache zend_extension="/usr/lib/extensions/no-debug-non-zts-20020429/mmcache.so" Expected result: This what I would expect to get from PHP. In fact, if I am at the root of the file system /, it works fine. [EMAIL PROTECTED] /]# php -v PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov Actual result: -- In this case, i'm in /usr and PHP generates the error. However, as you can see the zend_extension Turck MMCache doesn't have this problem. [EMAIL PROTECTED] usr]# php -v PHP Warning: Unknown(): Unable to load dynamic library './/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so' - .//usr/lib/extensions/no-debug-non-zts-20020429/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library './/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so' - .//usr/lib/extensions/no-debug-non-zts-20020429/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov -- Edit this bug report at http://bugs.php.net/?id=29891&edit=1
#12038 [Com]: problem with closing database handles
ID: 12038 Comment by: dennis at benade dot co dot za Reported By: kirill at mns dot ru Status: Bogus Bug Type: InterBase related Operating System: RedHat 7.1 PHP Version: 4.0.6 New Comment: I had exactly the same problem and got it to work by using: ibase_free_result($res); before: ibase_close($dbhandle); This solved the problem for me. Previous Comments: [2002-07-01 07:15:43] [EMAIL PROTECTED] Better try the CVS snapshots as there have been few fixes in CVS for interbase.. [2002-07-01 06:22:14] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. [2001-07-11 04:26:56] kirill at mns dot ru Here is warning for sample code: Warning: InterBase: invalid statement handle in /var/www/users/kirill/bug.php on line 2 [2001-07-11 04:25:14] kirill at mns dot ru PHP reports warning about invalid statement handle after I use ibase_close() to close opened with ipbase_connect() database connection. If I comment ibase_close that removes this warning (all this code must be in function to get warning,in plain use - there are no warnings in any case). I think that it's a bug in cleanup code at shutdown. './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' '--with-mod_charset' '--without-pgsql' '--without-interbase' '--without-recode' '--without-mhash' '--without-sablot' -- Edit this bug report at http://bugs.php.net/?id=12038&edit=1
#29891 [NEW]: PHP attempts to load all extensions via relative path
From: jtyocum at publicmx dot com Operating system: RH Linux 9.0/Virtuozzo 2.6 PHP version: 4.3.9RC1 PHP Bug Type: Dynamic loading Bug description: PHP attempts to load all extensions via relative path Description: When running PHP via commandline, it'll complain the paths for the modules are invalid. It appears to be trying to load the modules via a relative path, e.g. prepending ./ to the path. However, the zend_extension seems to be fine, as it loads the module. ;Enable MySQL extension="/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so" ;Enable SNMP extension="/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so" ;Turck MMCache zend_extension="/usr/lib/extensions/no-debug-non-zts-20020429/mmcache.so" Expected result: This what I would expect to get from PHP. In fact, if I am at the root of the file system /, it works fine. [EMAIL PROTECTED] /]# php -v PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov Actual result: -- In this case, i'm in /usr and PHP generates the error. However, as you can see the zend_extension Turck MMCache doesn't have this problem. [EMAIL PROTECTED] usr]# php -v PHP Warning: Unknown(): Unable to load dynamic library './/usr/lib/extensions/no-debug-non-zts-20020429/mysql.so' - .//usr/lib/extensions/no-debug-non-zts-20020429/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: Unknown(): Unable to load dynamic library './/usr/lib/extensions/no-debug-non-zts-20020429/snmp.so' - .//usr/lib/extensions/no-debug-non-zts-20020429/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP 4.3.9RC1 (cli) (built: Aug 28 2004 11:05:56) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Turck MMCache v2.4.6, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov -- Edit bug report at http://bugs.php.net/?id=29891&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29891&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29891&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29891&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29891&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29891&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29891&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29891&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29891&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29891&r=support Expected behavior: http://bugs.php.net/fix.php?id=29891&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29891&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29891&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29891&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29891&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29891&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29891&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29891&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29891&r=float
#29890 [NEW]: set_error_handler race
From: maurice at alletha dot nl Operating system: Windows/Linux PHP version: Irrelevant PHP Bug Type: Unknown/Other Function Bug description: set_error_handler race Description: When creating a error function which has a parameter with an reference, php will create an endless loop in calling itself (i think). The proces keeps running and will not stop. You can blog up a windows machine running under iis/cgi because it doesn't react on set_time_limit(). I've seen this problem in php 4.x and 5.x under windows and in linux on a dual system. Linux with a single cpu seemed not to have this problem (?) (I'm using an additional parameter to my error function because of custom calling of the function) Reproduce code: --- Expected result: There should be a notice about the redefined "TEST" define Actual result: -- An endless loop. -- Edit bug report at http://bugs.php.net/?id=29890&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29890&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29890&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29890&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=29890&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=29890&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29890&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29890&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29890&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29890&r=support Expected behavior: http://bugs.php.net/fix.php?id=29890&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29890&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29890&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=29890&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29890&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=29890&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29890&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29890&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29890&r=float