[PHP-DEV] PHP 4.0 Bug #9250: Nested Functions are BAD, they make for inefficient debugging
From: [EMAIL PROTECTED] Operating system: Any PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Nested Functions are BAD, they make for inefficient debugging If you have a missing close-bracket "}" somewhere in your code, the PHP parser tells you that the error is at the last line. If you have a multi-hundred or thousand line file, this makes life a bitch. Rasmus tells me that the reason for this behavior is because functions can be nested, which means that: function a { function b { } } is OK. This is a silly feature. Why do you have it, for scoping reasons? It means that you can't effectively tell where syntax errors occur. Suggestion: Either make nested functions turned off by default but you can turn them on with a PHP global variable, like $PHP_BIZARRO_NESTED_FUNCTIONS = 1; or have the parser syntax set up so that it marks where a possible syntax error occurred (IOW it sees a possible nested function, but it could also be a syntax error), and if it reaches the end of the file with a missing "}" or two, that it displays the location where it parsed the nested function. -- Edit Bug report at: http://bugs.php.net/?id=9250edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9251: Fatal error: Call to undefined function: ocilogon()
From: [EMAIL PROTECTED] Operating system: windows98 PHP version: 4.0.0 PHP Bug Type: Oracle related Bug description: Fatal error: Call to undefined function: ocilogon() Fatal error: Call to undefined function: ocilogon() -- Edit Bug report at: http://bugs.php.net/?id=9251edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9251 Updated: Fatal error: Call to undefined function: ocilogon()
ID: 9251 Updated by: cynic Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Oracle related Assigned To: Comments: 1) you need php_oci.dll 2) you need OCI client libraries Previous Comments: --- [2001-02-14 04:49:11] [EMAIL PROTECTED] Fatal error: Call to undefined function: ocilogon() --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9251edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9252: Bad database name leaves open connection
From: [EMAIL PROTECTED] Operating system: Linux and FreeBSD 4 PHP version: 4.0.4pl1 PHP Bug Type: MySQL related Bug description: Bad database name leaves open connection A Zend Help Desk customer (54) reported having an unreasonable number of connections to his database server in TIME_WAIT or CLOSE_WAIT state. On closer inspection it was found that the database name passed to mysql_selectDB was invalid. Correcting the database name appears to have hidden the problem again. This became a major problem on his heavily loaded site because all the available Apache processes ended up waiting for database connections to close and made the server unavailable. He is using Apache 1.13.14/PHP 4.04 on one server and MySQL 3.23.32 on another. I am able to reproduce the problem on PHP4.0.2PL1 on SuSE Linux 6.3 using MySQL 3.22.25. I do get an error back from the mysql_selectDB() call, but the network connection to the database server stays open for a minute or so, in a TIME_WAIT state. Connecting to the same database server, with the same username and password using the mysql command line interpreter, then attempting to use an invalid database name does not result in hanging connections. The following script will demonstrate the problem: --- ? mysql_connect( $host, $user, $password ) or die( 'Unable to Connect - ' . mysql_error()); mysql_selectDB( 'invalid database name' ) or die( 'Unable to Select - ' . mysql_error()); ? All done --- Set $host, $user, $password to a MySQL database on another machine, then hit this program a few times with your browser. It ends properly in the die() for Unable to Select, but you will find that it leaves network connections to the database server open in TIME_WAIT state for about a minute after the script dies. You can verify this with netstat -na -- Edit Bug report at: http://bugs.php.net/?id=9252edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] On objects, sessions, and class definitions
"Chris A. Henesy" wrote: I see a few possible solutions to the problem. The first would be to store complete object session variables, i.e. store the actuall code contained in the object's methods as part of the serialized object. The second would be to simplify the session_start function so that it returned the serialized session data instead of unsearializing it back into the environment which would allow it to be greped first for class names or something before being unserialized. The last would be some additional function like session_class_names() which returns the class names of any serialized object in the current session. 4) provide a way to register a callback function (or a chain of those) to be called with the class name as argument whenever unserialize encounters a yet unknown classname (which almost immediately will lead us to the necessiy namespaces?) -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9253: Class constructors can't return values
From: [EMAIL PROTECTED] Operating system: All PHP version: 4.0.4pl1 PHP Bug Type: Feature/Change Request Bug description: Class constructors can't return values Class constructors can't abort instance creation, for example by returning false... This leads to a lot of "if (! $newobj-status)" crap. Why is that ? I found a message on the PHP3 mailing list about this, but it's still not there. -- Edit Bug report at: http://bugs.php.net/?id=9253edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9254: Problem in the MSVCRT.DLL file system occurs, when call to number_format()
From: [EMAIL PROTECTED] Operating system: Windows 95 PHP version: 4.0.4 PHP Bug Type: Filesystem function related Bug description: Problem in the MSVCRT.DLL file system occurs, when call to number_format() Here is the message tha crushes php.exe after calling the "number_format" data function, under Windows 95: - PHP caused an invalid page fault in module MSVCRT.DLL at 014f:7800d0b9. Registers: EAX=00730078 CS=014f EIP=7800d0b9 EFLGS=00010206 EBX= SS=0157 ESP=0063fae4 EBP=0063fb00 ECX=0160 DS=0157 ESI=0086356c FS=0fcf EDX= ES=0157 EDI=0004 GS= Bytes at CS:EIP: 89 5a 04 8b 55 0c 89 4d fc 8b 5a 04 8b 52 08 89 Stack dump: 00734240 00863570 00863580 007309cc 0560 0160 0063fb44 7800cc1c 0083000c 008636cc 00734240 00863570 00863580 ffe2906d bff798cf I have not test this function under windows 2000 yet, but at a first use under windows 95, this problem occured. Maybe it's just something with my windows 95, but anyway I thought I'd better mention it to you. I'll test this under Windows 2000 too, and let you know also about this. Thank you for your Attention, and I'd like to thank you for the programming language you support. I think it's the best of all the web programming ones I've learned till now. Very powerfull, and very friendly to C's and perl's developers. Thank you again, Alkis Doulgeris -- Edit Bug report at: http://bugs.php.net/?id=9254edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #7070 Updated: un-decipherable error (php version: 3.0.16)
ID: 7070 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Closed Status: Bogus Bug Type: *General Issues Assigned To: Comments: Previous Comments: --- [2000-10-06 15:34:21] [EMAIL PROTECTED] Warning: REG_BADRPT in --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=7070edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #8895 Updated: xslt_process() documentation problem
ID: 8895 Updated by: sterling Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Sablotron XSL Assigned To: Comments: not a bug. xslt_process() returns false on failure, you can supress errors using the @ sign. Previous Comments: --- [2001-01-25 02:02:18] [EMAIL PROTECTED] According to the documentation xslt_process() is supposed to return false and allow you to check errors with xslt_errno() xslt_error(). I found several situations where a validation error in the XSL stylesheet would cause it to instead fail with a fatal error: PHP Fatal error: msgtype: error in /var/www/stone2/index.php on line 18 (One example of an error would be a HTML tag with unquoted parameters (e.g. BORDER=0), which is legal for numeric values in HTML but not XML) Needless to say, this made debugging rather tricky as it never reached the error display in my code: if (xslt_process($XSL, $XML, $result)) { echo $result; } else { echo 'PXSL transformation error: /P'; echo xslt_errno() . ': ' . xslt_error(); } PHP config info: PHP Version 4.0.4pl1 System Linux gigante 2.2.18pre21 #1 Sat Nov 18 18:47:15 EST 2000 i686 unknown Build Date Jan 24 2001 Configure Command './configure' '--with-apxs' '--enable-shared' '--with-bz2' '--with-java=/usr/local/jdk1.3' '--with-gettext' '--with-mcrypt' '--with-zlib' '--with-openssl=/usr/local/ssl' '--enable-magic-quotes' '--enable-calendar' '--with-curl' '--with-mcrypt' '--with-dom=/usr/local/lib' '--enable-ftp' '--enable-gd-imgstrttf' '--with-gd' '--with-jpeg-dir' '--with-ttf' '--with-t1lib' '--with-imap-ssl' '--with-imap' '--with-ldap' '--with-mysql' '--with-pdflib=/usr/local/lib' '--with-zlib-dir' '--with-jpeg-dir' '--with-png-dir' '--with-tiff-dir' '--with-pgsql' '--with-pspell' '--with-readline' '--with-sablot' '--with-sablot-errors-descriptive' '--enable-trans-sid' '--enable-shmop' '--enable-sockets' '--with-swf' '--enable-sysvsem' '--enable-sysvshm' '--enable-inline-optimization' '--enable-memory-limit' --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8895edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #8928 Updated: xslt_process randomly fails on valid xml/xsl data (xslt_run works fine)
ID: 8928 Updated by: sterling Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Sablotron XSL Assigned To: Comments: you can have an xslt_error function without the parser, just omit the parser argument and it will be the global error handler. Previous Comments: --- [2001-02-13 01:58:59] [EMAIL PROTECTED] It's probably just enough to remove ?xml version="1.0" encoding="utf-8"? from XSL data to make it working stable. Is it bug or feature ? --- [2001-01-26 02:04:10] [EMAIL PROTECTED] This script randomly fails (on the same xml/xsl data it works or randomly fails with the only error: Fatal error: msgtype: error in /home/httpd/html/photo/tstxsl1.php on line 29 , which is xslt_process call. I can't set the user error handler while using xslt_process to get more error information, because can't pass $parser to this function.) : ?php function xsl_error($parser, $code, $level, $errors) { echo "Parser: $parsernbrn"; echo "Code: $codenbrn"; echo "Level: $levelnbrn"; echo "Errors: nbrnbrn"; var_dump($errors); } $fp = fopen("pic1.xsl", "r"); $lenxsl = filesize("pic1.xsl"); $xslData = fread($fp, $lenxsl); fclose($fp); $fp = fopen("pic.xml", "r"); $lenxml = filesize("pic.xml"); $xmlData = fread($fp, $lenxml); fclose($fp); /* Parser creation could be omitted, it doesn't influence on the random crashes */ $parser = xslt_create(); print "Parser Handle[$parser]br"; xslt_set_error_handler($parser, "xsl_error"); if (xslt_process($xslData, $xmlData, $result)) { echo $result; } else { echo "tError number: " . xslt_errno() . "n"; echo "tError string: " . xslt_error() . "n"; exit; } /* this should be omitted if xsl_creat() is commented out */ xslt_free($parser); ? Sablotron comand line utility sabcmd parses xml/xsl data from the files pic1.xsl and pic.xml without any errors/warnings. The following script, which doesn't use xslt_process, works stable and without errors on the same data files: ?php function xsl_error($parser, $code, $level, $errors) { echo "Parser: $parsernbrn"; echo "Code: $codenbrn"; echo "Level: $levelnbrn"; echo "Errors: nbrnbrn"; var_dump($errors); } $parser = xslt_create(); print "Parser Handle[$parser]br"; xslt_set_error_handler($parser, "xsl_error"); xslt_run($parser, './pic1.xsl', './pic.xml'); print "brHere is the output:br".xslt_fetch_result($parser); xslt_free($parser); ? But I need at least xml "in-memory" data for my application, so I can't use xslt_run for my production purposes. Suggestion - something wrong with xslt_process :) php.ini - standard configuration from php4.04pl1 distribution Sablotron 0.50 Expat 1.95.1 php4 configuration: --with-apxs --prefix=/usr --with-gd --with-gettext --with-yp --with-system-regex --with-mysql=/usr --enable-safe-mode --enable-sysvsem --enable-sysvshm --with-exec-dir=/home/httpd/php/bin --with-zlib --with-config-file-path=/etc/httpd --disable-debug --enable-magic-quotes --enable-bcmath --with-mod_charset --with-pdflib --with-cpdflib --enable-calendar --with-sablot configure script was hacked a little to provide libexpat and libiconv (glibc-2.0.7 has no native iconv) for Sablotron instead of old libxmlparse and libxmltok. There were no any problem with compilation of php4. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8928edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9256: INSERT SQL command doesnt work
From: [EMAIL PROTECTED] Operating system: W2K PHP version: 4.0.4pl1 PHP Bug Type: ODBC related Bug description: INSERT SQL command doesnt work I§m using ODBC connection to Access (only for testing purposes, I§m not stupid :)). SQL command¨SELECT work OK, but all updates doesnt work to me - last version I used was 4.0.1 and there it works perfectly. NO WARNING OR ERROR MESSAGE APPEARS! php.ini part: [ODBC] odbc.allow_persistent = On odbc.check_persistent =On odbc.max_persistent = -1 odbc.max_links = -1 odbc.defaultlrl = 4096 odbc.defaultbinmode = 1 -- Edit Bug report at: http://bugs.php.net/?id=9256edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9144 Updated: /tmp/php?????? file created without reference in POST array
ID: 9144 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Filesystem function related Assigned To: Comments: The files are of 0 bytes long and are deleted after script finishes by PHP itself. The cleaning should work in 4.0.4pl1 so please upgrade. --Jani Previous Comments: --- [2001-02-07 06:29:01] [EMAIL PROTECTED] Example HTML file upload form: FORM ENCTYPE="multipart/form-data" ACTION="./phpscript.php" METHOD=POST INPUT NAME="myfile" TYPE="file" INPUT TYPE="submit" /FORM If a user puts a false reference to a file in that filebox and then clicks the submit button, a "/tmp/php??" temp file is actually created. But, the reference to that temp file in the HTTP_POST_FILES["myfile"]["tmp_name"] says "none". This means you cannot unlink() these files normally. Configure line: './configure' '--with-apxs' '--with-pgsql=/var/lib/pgsql' '--enable-track-vars' '--with-ftp' '--enable-trans-sid' regards, David --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9144edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] CVS Account Request
Full name: Carlos Eduardo Vargas Miranda Email: [EMAIL PROTECTED] ID: CEVM Purpose: Take part in the group who will translate PHP Manual to Portuguese (pt-BR). -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9257: Problem with values returned from a select statement
From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.0.4pl1 PHP Bug Type: InterBase related Bug description: Problem with values returned from a select statement $sele = "select data,hora,historico,valor from saldos "; $sele .= "where data between '$dataini1' and '$datafin1'"; $q = ibase_prepare($i,$sele); $result = ibase_execute($q); while ($row = ibase_fetch_object($result)) { echo $row-VALOR; } // saldos is a view and its defined as: CREATE VIEW "SALDOS" ( "DATA", "HORA", "CAIXA", "VALOR", "HISTORICO" ) AS SELECT data,hora,caixa,valor,historico FROM entradas UNION SELECT data, hora, caixa, (valor*-1) "VALOR", historico FROM saidas ; The field "valor" in the tables "entradas" and "saidas" is defined as numeric(11,2)... The problem is that the code above returns for example "10.10" when the value of the field is "10.01"... it's a really big problem, and i dont know what to do... :( -- Edit Bug report at: http://bugs.php.net/?id=9257edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #6901 Updated: odbc_columns
ID: 6901 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Status: Open Bug Type: ODBC related Assigned To: kalowsky Comments: starting to play with odbc on windows... all i have is 98 though... Previous Comments: --- [2000-09-27 06:32:41] [EMAIL PROTECTED] Hi, I am using the pre-built version of PHP 4.0.1pl2 on Win98. and connecting to a MSAccess data source with ODBC. This code fragment works, $result = odbc_columns($link); while this on does not, $result = odbc_columns($link, "%", "%", "%", "%"); it generates, Warning: SQL error: ,SQL state 0 in SQLColumns in ... I get the same error message with, $result = odbc_tables($link, "%", "%", "%", "%" ); I hope this is helpful. -John --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=6901edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9260 Updated: Strange effects ...
ID: 9260 Updated by: cynic Reported By: [EMAIL PROTECTED] Old-Status: Closed Status: Bogus Bug Type: Performance problem Assigned To: Comments: 1) microtime() isn't exactly microtime() on win32. IIRC it was improved somewhat _after_ the release of 4.0.4 pl1, but it still goes only to miliseconds. 2) there are already bug reports concerning microtime. bogusifying Previous Comments: --- [2001-02-14 09:18:01] [EMAIL PROTECTED] This is not a performance problem, but a bug in the microtime function. It was recently fixed in CVS. Please try a snapshot from snaps.php.net. If the problem persists, please reopen this bugreport. --- [2001-02-14 09:13:42] [EMAIL PROTECTED] The following script only generates an array and walks through it with 2 different loops. There are some strange effects while watching the durations of the loops. 1. Sometimes loop 1 is faster 1. Sometimes loop 2 is faster 1. Sometimes there is a negativ duration ... ? PHP seems to behave in real bizarre way ... looks like it has a will of it's own ;-) ? function test() { for ($i=0;$i3;$i++) { $GLOBALS['myVar'][$i]=$i; } $a = microtime(); for ($i=0;$icount($GLOBALS['myVar']);$i++) { $GLOBALS['myVar'][$i] = $GLOBALS['myVar'][$i] *2; } $b = microtime(); foreach($GLOBALS['myVar'] as $i = $d) { $GLOBALS['myVar'][$i] = $d * 2; } $c = microtime(); echo('Results ... br'); echo("b$abr$bbr$c/bbr"); list($m,$s)=explode(' ',$a);$a = doubleval($s)+doubleval($m); list($m,$s)=explode(' ',$b);$b = doubleval($s)+doubleval($m); list($m,$s)=explode(' ',$c);$c = doubleval($s)+doubleval($m); echo("b$a | $b | $c/bbrbr"); echo("Loop 1: ".($b-$a)." secondsbr"); echo("Loop 2: ".($c-$b)." secondsbr"); echo("hr"); } test();test();test();test();test(); ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9260edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9260 Updated: Strange effects ...
ID: 9260 Updated by: cynic Reported By: [EMAIL PROTECTED] Old-Status: Bogus Status: Closed Bug Type: Performance problem Assigned To: Comments: ah, concurrency... Previous Comments: --- [2001-02-14 09:18:41] [EMAIL PROTECTED] 1) microtime() isn't exactly microtime() on win32. IIRC it was improved somewhat _after_ the release of 4.0.4 pl1, but it still goes only to miliseconds. 2) there are already bug reports concerning microtime. bogusifying --- [2001-02-14 09:18:01] [EMAIL PROTECTED] This is not a performance problem, but a bug in the microtime function. It was recently fixed in CVS. Please try a snapshot from snaps.php.net. If the problem persists, please reopen this bugreport. --- [2001-02-14 09:13:42] [EMAIL PROTECTED] The following script only generates an array and walks through it with 2 different loops. There are some strange effects while watching the durations of the loops. 1. Sometimes loop 1 is faster 1. Sometimes loop 2 is faster 1. Sometimes there is a negativ duration ... ? PHP seems to behave in real bizarre way ... looks like it has a will of it's own ;-) ? function test() { for ($i=0;$i3;$i++) { $GLOBALS['myVar'][$i]=$i; } $a = microtime(); for ($i=0;$icount($GLOBALS['myVar']);$i++) { $GLOBALS['myVar'][$i] = $GLOBALS['myVar'][$i] *2; } $b = microtime(); foreach($GLOBALS['myVar'] as $i = $d) { $GLOBALS['myVar'][$i] = $d * 2; } $c = microtime(); echo('Results ... br'); echo("b$abr$bbr$c/bbr"); list($m,$s)=explode(' ',$a);$a = doubleval($s)+doubleval($m); list($m,$s)=explode(' ',$b);$b = doubleval($s)+doubleval($m); list($m,$s)=explode(' ',$c);$c = doubleval($s)+doubleval($m); echo("b$a | $b | $c/bbrbr"); echo("Loop 1: ".($b-$a)." secondsbr"); echo("Loop 2: ".($c-$b)." secondsbr"); echo("hr"); } test();test();test();test();test(); ? --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9260edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] CVS Account Request
Full name: Dmitry Tkatchenko Email: [EMAIL PROTECTED] ID: dim Purpose: authoring mnogosearch documentation -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9261: odbc to an oracle 'view' fails
From: [EMAIL PROTECTED] Operating system: RedHat Linux 6.1 PHP version: 4.0.4pl1 PHP Bug Type: ODBC related Bug description: odbc to an oracle 'view' fails Hi, I' running openlink to an oracle(8.1.5) server. When I try to do a 'select' from a view I get the error from PHP: "Warning: SQL error: [OpenLink][ODBC][Driver]No key columns found for table referenced by keyset driven cursor., SQL state IM909 in SQLPrepare " (Using the same driver from Perl works fine) -- Edit Bug report at: http://bugs.php.net/?id=9261edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9261 Updated: odbc to an oracle 'view' fails
ID: 9261 Updated by: kara Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: ODBC related Assigned To: Comments: You could try to pass SQL_CUR_USE_ODBC as additional parameter to odbc_connect() and see if this helps. Previous Comments: --- [2001-02-14 09:54:19] [EMAIL PROTECTED] Hi, I' running openlink to an oracle(8.1.5) server. When I try to do a 'select' from a view I get the error from PHP: "Warning: SQL error: [OpenLink][ODBC][Driver]No key columns found for table referenced by keyset driven cursor., SQL state IM909 in SQLPrepare " (Using the same driver from Perl works fine) --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9261edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9263: COM returns bad characters
From: [EMAIL PROTECTED] Operating system: NT 4.0 SP5 PHP version: 4.0.4pl1 PHP Bug Type: COM related Bug description: COM returns bad characters My COM returns characters from 1 to 255 (ASCII) converted to unicode ofcourse (VC++ macro A2OLE). Calling COM from VC++ returns characters 1 to 255. Calling COM from PHP returns characters 1 to 127 and next characters are different. [PHP] ;;; ; About this file ; ;;; ; This file controls many aspects of PHP's behavior. In order for PHP to ; read it, it must be named 'php.ini'. PHP looks for it in the current ; working directory, in the path designated by the environment variable ; PHPRC, and in the path that was defined in compile time (in that order). ; Under Windows, the compile-time path is the Windows directory. The ; path in which the php.ini file is looked for can be overriden using ; the -c argument in command line mode. ; ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression ; (e.g. E_ALL ~E_NOTICE), or a quoted string ("foo"). ; ; Expressions in the INI file are limited to bitwise operators and parentheses: ; | bitwise OR ; bitwise AND ; ~ bitwise NOT ; ! boolean NOT ; ; Boolean flags can be turned on using the values 1, On, True or Yes. ; They can be turned off using the values 0, Off, False or No. ; ; An empty string can be denoted by simply not writing anything after the equal ; sign, or by using the None keyword: ; ; foo = ; sets foo to an empty string ; foo = none ; sets foo to an empty string ; foo = "none"; sets foo to the string 'none' ; ; If you use constants in your value, and these constants belong to a dynamically ; loaded extension (either a PHP extension or a Zend extension), you may only ; use these constants *after* the line that loads the extension. ; ; All the values in the php.ini-dist file correspond to the builtin ; defaults (that is, if no php.ini is used, or if you delete these lines, ; the builtin defaults will be identical). ; Language Options ; engine = On ; Enable the PHP scripting language engine under Apache short_open_tag = On ; allow the ? tag. otherwise, only ?php and script tags are recognized. asp_tags= Off ; allow ASP-style % % tags precision = 14 ; number of significant digits displayed in floating point numbers y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers) output_buffering= Off ; Output buffering allows you to send header lines (including cookies) ; even after you send body content, in the price of slowing PHP's ; output layer a bit. ; You can enable output buffering by in runtime by calling the output ; buffering functions, or enable output buffering for all files ; by setting this directive to On. output_handler = ; You can redirect all of the output of your scripts to a function, ; that can be responsible to process or log it. For example, ; if you set the output_handler to "ob_gzhandler", than output ; will be transparently compressed for browsers that support gzip or ; deflate encoding. Setting an output handler automatically turns on ; output buffering. implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself ; automatically after every output block. This is equivalent to ; calling the PHP function flush() after each and every call to print() ; or echo() and each
Re: [PHP-DEV] Compiling under Borland C Builder / NoBEGIN_EXTERN_C?
Andi Gutmans wrote: There is no good reason the BEGIN_EXTERN_C() haven't been included. We'd welcome a patch. Check out the other places we do put these to get an idea where they should be. I've already got all this done. I'll send a patch for this first. In any case, one thing I've wanted to do for a long time is get PHP to compile with the freeware Borland C++ compiler. However, as it doesn't read .dsp it would have been lots of work. Yeah, you're telling me :) There's a vctobpr utility included in BCB5 which will convert the dsp file to a bpr file. It does most of the work, but you can only select one configuration (debug/release/release inline) from each project, so you have to convert each one manually, and select one configuration. There are also some changes needed to some headers, since BCB defines things like uid_t, gid_t, and has some different syntax for conditional defines. I'll put these changes in a second patch, since they have a chance of affecting other builds. Any chance you can export makefiles from the Builder once things work for you and share them with us? If it works nicely you could be the maintainer :) It would allow people who don't have Visual C++ to compile PHP 4 on Windows. Yeah, once I get it going, no prob. I'll also see if I can whip up a shell script for converting the dsp dsw files and building the makefiles from them. This will probably take a while (since it's a pain, and rather low priority), so don't hold your breath on it Bry -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Language Question
Is there any way in php to create macros for inline execution of code without creating scoping issues like function() does. For Example: if you had a macro set up so like this Macro($x) { for($i=0;$i$x;$i++) { echo $x; } } and a program like this $x=15; Macro($x); $x=45 Macro($45); you could call this macro an php would basically make the substitutions and execute the code within the current scope of the program without dropping into the scope of a function. Although this would be inefficient for most things it could be a useful for some applications. The reason I am looking to do this is because I have a very large codebase of php scripts that are broken into modular pieces. I have a function called Uses($includes) that allows you to pass in a string of include files. Uses() runs through a loop to include the files but, because Uses is a function all variables within the included files go out of scope when the function executes. Many of the included files have defined global variables that are defined for use with the included file. If there were some sort of Macro syntax then every time the Macro is called the code is copyied and in-lined executed within the current running scope. There may be way to do this. For some scripts with complicated and nested includes the uses() function might get called several times to include files needed by submodules of modules. I could do this with the include function but the way we have it set up it makes the scripts easier to read. i.e. Uses("Sql Date Http Browser") would include the sql.inc date.inc http.inc and browser.inc without having to specifiy Include('sql.inc'); Include('date.inc'); Include('httpd.inc'); Include('browser.inc.'); the current uses function looks like this Uses ($includes); $libs=explode(" ",$includes); for ($i=0;$icount($libs);$i++) { $filename= trim(strtolower($libs[$i])) . '.inc.'; include($filename); } } Any feedback would be appreciated. John Woolbright -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9231 Updated: when usign ob_gzhandler HTTP HEAD does not work
ID: 9231 Updated by: andre Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Output Control Assigned To: Comments: shouldn't it reaad HEAD / HTTP/1.0 bogus Previous Comments: --- [2001-02-12 15:05:20] [EMAIL PROTECTED] php.ini: output_handler = ob_gzhandler tests: a plain html request: root@orange:~# telnet 0 80 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. HEAD / HTTP-1.0 HTTP/1.1 200 OK Date: Mon, 12 Feb 2001 19:57:47 GMT Server: Apache/1.3.17 (Unix) PHP/4.0.5-dev Last-Modified: Mon, 04 Dec 2000 13:01:35 GMT ETag: "ac04-1f6-3a2b95af" Accept-Ranges: bytes Content-Length: 502 Connection: close Content-Type: text/html Connection closed by foreign host. php script request: root@orange:~# telnet 0 80 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. HEAD / HTTP-1.0 host: mail.bonev.com same php script, but now GET instead of HEAD: root@orange:~# telnet 0 80 Trying 0.0.0.0... Connected to 0. Escape character is '^]'. GET / HTTP/1.0 host: mail.bonev.com HTTP/1.1 302 Found Date: Mon, 12 Feb 2001 19:57:22 GMT Server: Apache/1.3.17 (Unix) PHP/4.0.5-dev X-Powered-By: PHP/4.0.5-dev location: /6bcf63364235c745643078ff1e0df2d6/ Connection: close Content-Type: text/html Connection closed by foreign host. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9231edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Language Question
just replace $var with $GLOBALS['var'] where you want a global no matter what. However, I would also welcome macros. At 18:16 14.2. 2001, John Woolbright wrote the following: -- Is there any way in php to create macros for inline execution of code without creating scoping issues like function() does. For Example: if you had a macro set up so like this Macro($x) { for($i=0;$i$x;$i++) { echo $x; } } and a program like this $x=15; Macro($x); $x=45 Macro($45); you could call this macro an php would basically make the substitutions and execute the code within the current scope of the program without dropping into the scope of a function. Although this would be inefficient for most things it could be a useful for some applications. The reason I am looking to do this is because I have a very large codebase of php scripts that are broken into modular pieces. I have a function called Uses($includes) that allows you to pass in a string of include files. Uses() runs through a loop to include the files but, because Uses is a function all variables within the included files go out of scope when the function executes. Many of the included files have defined global variables that are defined for use with the included file. If there were some sort of Macro syntax then every time the Macro is called the code is copyied and in-lined executed within the current running scope. There may be way to do this. For some scripts with complicated and nested includes the uses() function might get called several times to include files needed by submodules of modules. I could do this with the include function but the way we have it set up it makes the scripts easier to read. i.e. Uses("Sql Date Http Browser") would include the sql.inc date.inc http.inc and browser.inc without having to specifiy Include('sql.inc'); Include('date.inc'); Include('httpd.inc'); Include('browser.inc.'); the current uses function looks like this Uses ($includes); $libs=explode(" ",$includes); for ($i=0;$icount($libs);$i++) { $filename= trim(strtolower($libs[$i])) . '.inc.'; include($filename); } } Any feedback would be appreciated. John Woolbright -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --end of quote-- Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9264: Using session_encode with user-level session storage functions causes a crash
From: [EMAIL PROTECTED] Operating system: win98 SE PHP version: 4.0 Latest CVS (14/02/2001) PHP Bug Type: Reproduceable crash Bug description: Using session_encode with user-level session storage functions causes a crash Hi! Be indulgent for my poorly english level please... To force session data to be saved when using a database based session storage system and 'register_globals' is set to off I've build this (very) simplified structure of script: function dbSessionClose() { return true; } function dbSessionRead($id) { return true; } function dbSessionWrite($id, $data) { return true; } function dbSessionDestroy($id) { return true; } function dbSessionGarbageCollector($sessionLifeTime) { return true; } function dbSessionSave() { return dbSessionWrite(session_id(), session_encode()); // The note below is about this line } session_set_save_handler('dbSessionOpen', 'dbSessionClose', 'dbSessionRead', 'dbSessionWrite', 'dbSessionDestroy', 'dbSessionGarbageCollector'); /** * Uses session */ session_start(); session_register('myVar'); $myVar = 'crash'; dbSessionSave(); Then each time I run it with the latest PHP 4.0.5dev loaded as an apache module, PHP crash and produces this error: APACHE a causé une défaillance de page dans le module PHP4TS.DLL à 016f:008a533e. Registres : EAX= CS=016f EIP=008a533e EFLGS=00010246 EBX= SS=0177 ESP=01e2f274 EBP=007f7df0 ECX=007ee7a0 DS=0177 ESI=007ee164 FS=2217 EDX=007ee130 ES=0177 EDI=007f7c46 GS= Octets à CS : EIP : 8b 00 8b 4c 24 0c 8b 54 24 08 51 8b 4c 24 08 42 État de la pile : 008a57b4 007f7c40 0005 01e2f2a4 007ee7a0 007ee130 007dd720 0001 007dd720 007f7b10 007f7c40 007ee7a0 007dd720 An amazing note: if... - ... at the first run I replace the call to the session_encode() function by the string 'crash', fire the script... - ... then resume to the original 'dbSessionSave()' function and run the script again... ... everything go right! -- Edit Bug report at: http://bugs.php.net/?id=9264edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9104 Updated: imap support will not compile
ID: 9104 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Compile Problem Assigned To: Comments: Please ask support questions on [EMAIL PROTECTED] as this is not any bug in PHP. Also check the http://www.php.net/imap page for more info about how to install the necessacry header files and library. --Jani Previous Comments: --- [2001-02-04 16:02:31] [EMAIL PROTECTED] ./configure --with-mysql --with-ldap --with-imap=/usr --prefix=/usr/local/software/php-4.0pl1 --with-apache=../apache_1.3.17 --enable-sysvsem --enable-sysvshm --disable-debug --enable-track-vars when I run a make, I get: make[3]: Entering directory `/usr/local/src/php-4.0.4pl1/ext/imap' gcc -I. -I/usr/local/src/php-4.0.4pl1/ext/imap -I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1 -I/usr/local/src/apache_1.3.17/src/include -I/usr/local/src/apache_1.3.17/src/os/unix -I/usr/local/src/php-4.0.4pl1/Zend -I/usr/local/include -I/usr/local/src/php-4.0.4pl1/ext/mysql/libmysql -I/usr/local/src/php-4.0.4pl1/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=12 -g -O2 -c php_imap.c touch php_imap.lo php_imap.c: In function `php_minit_imap': php_imap.c:397: `unixdriver' undeclared (first use in this function) php_imap.c:397: (Each undeclared identifier is reported only once php_imap.c:397: for each function it appears in.) php_imap.c:403: `mhdriver' undeclared (first use in this function) php_imap.c:404: `mxdriver' undeclared (first use in this function) php_imap.c:406: `mbxdriver' undeclared (first use in this function) php_imap.c:407: `tenexdriver' undeclared (first use in this function) php_imap.c:408: `mtxdriver' undeclared (first use in this function) php_imap.c:410: `mmdfdriver' undeclared (first use in this function) php_imap.c:411: `newsdriver' undeclared (first use in this function) php_imap.c:412: `philedriver' undeclared (first use in this function) make[3]: *** [php_imap.lo] Error 1 make[3]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext/imap' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext/imap' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9104edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9113 Updated: Apache will not restart
ID: 9113 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Apache related Assigned To: Comments: 1. You should do ./apachectl stop ; ./apachectl start instead of restart. 2. If above hint doesn't help, is there anything in the apache error_log or does it give any error messages? --Jani Previous Comments: --- [2001-02-05 10:22:13] [EMAIL PROTECTED] I'm using the following configuration ./configure --with-interbase=/opt/interbase --with-mysql --with-apxs --with-zlib --with-zlib-dir and It works with version 4.0.3pl1 but if I compile the 4.0.4pl1 apache would not restart. Thanks --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9113edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9103 Updated: error starting apache 3.1.17 on Addmodule mod_php4.c
ID: 9103 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: What was the configure line you used for PHP 4 ? And check your httpd.conf if there are some IfDefine SSL tags around either in the list of loadmodule list or clearmodulelist. --Jani Previous Comments: --- [2001-02-04 15:57:40] [EMAIL PROTECTED] after successefull installation of apache 3.1.17, SSL and php 4.0.4 when start apache received message "cannot add module via name "mod_php4.c" : not in the list of loaded module. If I take out of httpd.conf apache start but php did not worked --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9103edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9126 Updated: Compilation stop with PDF_show_boxed in -lpdf... no
ID: 9126 Updated by: sniper Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Compile Problem Assigned To: Comments: --enable-shared-pdflib Previous Comments: --- [2001-02-06 08:12:35] [EMAIL PROTECTED] You need to compile pdflib --with-shared-pdflib for use with PHP. IF this still causes problems, reopen this report. --- [2001-02-06 08:04:04] [EMAIL PROTECTED] Including PDflib 3.0.3 into PHP4.0.4pl1 stops with checking for PDF_show_boxed in -lpdf... no configure: error: pdflib extension requires pdflib 3.x. Somehow, PDFlib 3.0.3 created shared libs with the names libpdf_java.so.0.1.1 wich are not recognized by PHPs configure Made a symbolic link resulting in a libpdf.so Works ... Kind regards, Frank Gadegast --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9126edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9133 Updated: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/
ID: 9133 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: *Install and Config Assigned To: Comments: Not enough info. And most likely an user error. Please ask support questions on [EMAIL PROTECTED] --Jani Previous Comments: --- [2001-02-06 14:06:44] [EMAIL PROTECTED] --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9133edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9134 Updated: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/
ID: 9134 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: *Install and Config Assigned To: Comments: Please READ the INSTALL file. If you use --with-apache you're compiling PHP as static module ie. you should point the path to the apache SOURCES. --Jani Previous Comments: --- [2001-02-06 14:09:46] [EMAIL PROTECTED] It is the script that I write to ./configure the system: ./configure --with-apache=/usr/local/apache/include/httpd.h --enable-ftp --with-mysql And it is the result configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache/include/httpd.h (The problem is that the path to httpd.h is correct, and the file is where I say) THANKS --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9134edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9139 Updated: Broken link from your website
ID: 9139 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Unknown/Other Function Assigned To: Comments: Previous Comments: --- [2001-02-06 22:07:16] [EMAIL PROTECTED] when visiting http://php.net/manual/en/install-windows95-nt.php, the http://www.umesd.k12.or.us/php/win32install.html link does not work FYI. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9139edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9146 Updated: date() doesn't return the RFC 822 date
ID: 9146 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Analyzed Old-Bug Type: Date/time related Bug Type: Documentation problem Assigned To: Comments: Reclassified as documentation problem as the 'r' option was added in PHP 4.0.4 and the manual page misses the note about this.. --Jani Previous Comments: --- [2001-02-07 08:19:28] [EMAIL PROTECTED] echo date("r") returns "r" instead of RFC 822 date. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9146edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] error in ext/mnogosearch/config.m4
Hi, there's an error in this config macro file: MNOGOSEARCH_VERSION_ID=$MNOGOSEARCH_BINDIR/udm-config -version-id it should be --version-id (two hyphens) otherwise, configure will fail. Please fix it. TIA! -- Bjrn Schotte [EMAIL PROTECTED] http://rent-a-phpwizard.de/ [EMAIL PROTECTED] Software dev advocate: http://www.advogato.org/person/baerli/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9149 Updated: syntax error
ID: 9149 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Compile Failure Assigned To: Comments: The dav extension should be rewritten and is not going to be included in next release (if nobody comes up with a new one before release, that is) . Thank you anyway. --Jani Previous Comments: --- [2001-02-07 10:13:57] [EMAIL PROTECTED] file ext/dav/dav.c has a syntax error ( wrong place for ";" ) in line 143 PHP_RSHUTDOWN_FUNCTION(phpdav); should be PHP_RSHUTDOWN_FUNCTION(phpdav) --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9149edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0 Bug #9261: odbc to an oracle 'view' fails
Andrew Hill wrote: Hi, This error indicates that there is no index/primary key in a result set that the driver is attempting to read into a cursor. Adding a primary key to the table will fix this, or passing a different cursor type in will fix this - keyset driven cursors are essentially 'sliding windows' - they read a set of rows in, and then scroll back and forth. Upon reaching the end of the set, they grab the next keyset in the direction of scroll. On a related note, does anyone know to pass different cursor models in the select statement? There are essentially 5 cursor models supported by SQL, Static, Keyset, Mixed, Forward Scrollable, Bi-Directional Scrollable. PHP's cursor handling has always been a bit of a mystery to me - if anyone can point me towards the current implementation of it I will dig. PHP tries to set the cursor type to Dynamic (or Bi-Directional Scrollable) if the driver supports SQLExtendedFetch. If a driver doesn't support this cursor model, the next best available model is substituted by the driver. This was to enable absolute positing in the resultset without bothering the user with choosing a cursor type. Unfortunately, there is currently no way to explicitly set the cursor type for a statement (I didn't myself really understand the ODBC cursor model at that point and was mainly focused on being able to scroll through a resultset). I could add another parameter to odbc_prepare/odbc_exec to set the cursor type. I'm unsure to what type the cursor should be set, if not specified. Either keep the existing behaviour and be backwards compatible or use the default static cursor provided. Any Opinions? -Andreas -- Andreas Karajannis mediaworx berlin AG Fon (0 30) 2 75 80 - 266 Fax (0 30) 2 75 80 - 200 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9158 Updated: Mysql client version
ID: 9158 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: MySQL related Assigned To: Comments: It will be in PHP 4.0.5 --Jani Previous Comments: --- [2001-02-07 13:07:28] [EMAIL PROTECTED] I am wondering when a patch will come out that will have the version 3.23.32 stable version of mysql incorporated in it? Currently the 4.0.4pl1 has 3.23.28-beta. Thanks! Jeff Williams --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9158edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9160 Updated: When using the include() function, the file being included is cached by php
ID: 9160 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Unknown/Other Function Assigned To: Comments: Are you sure it isn't the browser that caches the page? Try reloading the page with pressing shift key down and click reload. That way it shouldn't get cached. With which browser did you try with? Have you tried lynx? :) --Jani Previous Comments: --- [2001-02-07 13:14:38] [EMAIL PROTECTED] When I use the include() command to include one PHP script inside another, the script that is being incuded gets cached by PHP for a long period of time. I have not experienced this in any previous version of PHP4, using exactly the same scripts. When I edit, or even delete the script thats being included, PHP still behaves as if the script is still there and hasn't been modified. The final page which PHP outputs to the the browser is NOT being cached, I have verified this by making a change to the script that is using the include() command to include the 2nd script. When I change that first script the change shows up in the browser, so it is clear that the page is not being cached. The only thing being cached is that second script which is include()ed from the first one. The output of phpinfo() running on my server can be viewed at this url: http://salvador.ida-corp.net/test.php --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9160edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9161 Updated: Undefined symbols in static apache build using PHP 4.0.4pl1
ID: 9161 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Apache related Assigned To: Comments: Try doing 'make clean ; make install' for PHP 4 and then try making Apache again. --Jani Previous Comments: --- [2001-02-07 13:18:52] [EMAIL PROTECTED] apache_1.3.17 php-4.0.4pl1 (Solaris 2.6 GCC 2.95.2) Atempting to static link php into apache. Getting undefined symbols in apache (shown below). config'd apache 1st, then config'd php using: ./configure --with-mysql --with-apache=../apache_1.3.17 --enable-track-vars did a make and make install and all worked. Then configured apache with: ./configure --prefix=/opt/apache --activate-module=src/modules/php4/libphp4.a and make fails with the following. Suggestions? gcc -DSOLARIS2=260 -I/opt/local/src/php-4.0.4pl1 -I/opt/local/src/php-4.0.4pl1/ main -I/opt/local/src/php-4.0.4pl1/main -I/opt/local/src/php-4.0.4pl1/Zend -I/op t/local/src/php-4.0.4pl1/Zend -I/opt/local/src/php-4.0.4pl1/TSRM -I/opt/local/sr c/php-4.0.4pl1/TSRM -I/opt/local/src/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -o httpd buildmark.o modules.o modules/php4/libphp4.a modules/standard/lib standard.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat. a -R/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -L/usr/uc blib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2 -Lmodules/php4 -L../mo dules/php4 -L../../modules/php4 -lmodphp4 -lpam -ldl -lresolv -lresolv -lm -ld l -lcrypt -lnsl -lsocket -lsocket -lgcc -lsocket -lnsl Undefined first referenced symbol in file php_register_variable modules/php4/libphp4.a(mod_php4.o) core_globalsmodules/php4/libphp4.a(mod_php4.o) sapi_startupmodules/php4/libphp4.a(mod_php4.o) sapi_shutdown modules/php4/libphp4.a(mod_php4.o) zend_ini_rshutdown modules/php4/libphp4.a(mod_php4.o) php_module_shutdown_for_execmodules/php4/libphp4.a(mod_php4.o) apache_php_module_main modules/php4/libphp4.a(mod_php4.o) php_request_shutdown_for_exec modules/php4/libphp4.a(mod_php4.o) zend_hash_apply modules/php4/libphp4.a(mod_php4.o) executor_globalsmodules/php4/libphp4.a(mod_php4.o) zend_hash_destroy modules/php4/libphp4.a(mod_php4.o) _estrdupmodules/php4/libphp4.a(mod_php4.o) zend_error modules/php4/libphp4.a(mod_php4.o) sapi_get_default_content_type modules/php4/libphp4.a(mod_php4.o) php_module_shutdown_wrapper modules/php4/libphp4.a(mod_php4.o) sapi_globalsmodules/php4/libphp4.a(mod_php4.o) zend_startup_module modules/php4/libphp4.a(mod_php4.o) php_request_shutdownmodules/php4/libphp4.a(mod_php4.o) php_handle_aborted_connection modules/php4/libphp4.a(mod_php4.o) zend_hash_add_or_update modules/php4/libphp4.a(mod_php4.o) zend_alter_ini_entrymodules/php4/libphp4.a(mod_php4.o) apache_module_entry modules/php4/libphp4.a(mod_php4.o) zend_hash_merge_ex modules/php4/libphp4.a(mod_php4.o) zend_hash_init modules/php4/libphp4.a(mod_php4.o) empty_stringmodules/php4/libphp4.a(mod_php4.o) _efree modules/php4/libphp4.a(mod_php4.o) php_module_startup modules/php4/libphp4.a(mod_php4.o) ld: fatal: Symbol referencing errors. No output written to httpd --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9161edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9174 Updated: Core Dump
ID: 9174 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Date/time related Assigned To: Comments: Works for me just fine. Can you try latest CVS snapshot from http://snaps.php.net/ ?? And add some short example code into this bug report in case I misunderstood what you meant. --Jani Previous Comments: --- [2001-02-08 11:01:00] [EMAIL PROTECTED] Not so much a bug, more a lack of dieing gracefully. If the DATE function does not have quotes around the string format, is causes a core dump. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9174edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9261 Updated: odbc to an oracle 'view' fails
ID: 9261 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: ODBC related Description: odbc to an oracle 'view' fails I've tried SQL_CUR_USE_ODBC, SQL_CUR_USE_IF_NEEDED, SQL_CUR_USE_DRIVER and SQL_CUR_DEFAULT with the same result. /Bengt Previous Comments: --- [2001-02-14 10:19:50] [EMAIL PROTECTED] You could try to pass SQL_CUR_USE_ODBC as additional parameter to odbc_connect() and see if this helps. --- [2001-02-14 09:54:19] [EMAIL PROTECTED] Hi, I' running openlink to an oracle(8.1.5) server. When I try to do a 'select' from a view I get the error from PHP: "Warning: SQL error: [OpenLink][ODBC][Driver]No key columns found for table referenced by keyset driven cursor., SQL state IM909 in SQLPrepare " (Using the same driver from Perl works fine) --- Full Bug description available at: http://bugs.php.net/?id=9261 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9188 Updated: it seems that mysql-module doesn't support any charsets except latin1
ID: 9188 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: MySQL related Assigned To: Comments: Please try the latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-02-09 03:43:56] [EMAIL PROTECTED] ./configure --with-mysql --with-apxs=/var/lib/apache/bin/apxs make make install were successed mysql version is 3.23.32 ===Error message [Fri Feb 9 14:59:11 2001] [error] [client 202.112.216.5] File does not exist: /home/changx/public_html/test/phpinfo File 'NONEXISTENT/charsets/?.conf' not found (Errcode: 2) Character set '#24' is not a compiled character set and is not specified in the 'NONEXISTENT/charsets/Index' file = after i change back the libphp4.so to 4.0.2, no errors! --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9188edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9192 Updated: configure script needs -lxml2 for XML-DOM
ID: 9192 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: *Install and Config Assigned To: Comments: This is fixed in CVS. Please try latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-02-09 09:01:02] [EMAIL PROTECTED] For XML-DOM support, the PHP docs say you need libxml 2.00. These are known as "libxml2", and you need to link against "-lxml2". The current "configure" script for 4.0.4pl1 specifies "-lxml", which does not work. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9192edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9265: passing preg_split a limit parameter of 0 supresses all matches
From: [EMAIL PROTECTED] Operating system: Linux 2.2 PHP version: 4.0 Latest CVS (14/02/2001) PHP Bug Type: PCRE related Bug description: passing preg_split a limit parameter of 0 supresses all matches Somewhere in the last few weeks, preg_split changed so that specifiying a limit parameter of 0 returns the string to be split unchanged. Before that, 0 was seemingly treated as no limit, meaning that you could safely specify 0 as the limit argument in order to specify a flag as the fourth argument. ?php $foo = 'a|b|c|d'; $m = preg_split('/|/', $foo, 0); var_dump($m); ? will return everything in the same array, whereas if the limit argument is left off (or increased), the string gets split up. The behavior allowing 0 to be no limit should be returned, or another safe argument for limit that means no limit documented. -- Edit Bug report at: http://bugs.php.net/?id=9265edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9266: Unable to load 14 of php's extensions
From: [EMAIL PROTECTED] Operating system: WInMe, Win98, Win2000 PHP version: 4.0.4pl1 PHP Bug Type: *Database Functions Bug description: Unable to load 14 of php's extensions I spent almost 2 day trying to figure out how to load the sybase extension under windows. I tried everything I could, but 14 of the extensions would not load under WinMe, Win98, Win2000, with any combination of apache, pws, iis. The extension_dir is just set all fine, and the rest of the extensions load and function well. I only wanted to get some data from a sybase db. I could actually solve it with ODBC, but I still thought it's not the real way. I discussed this problem on the local php mailing list, everyone knew it, noone knew why. I searched through the php manual and the rest of the web just to find a fraction of information that could be helpful either way, but there was no. The extensions that made me 2 horribe days: php_curl.dll php_fdf.dll php_gettext.dll php_ifx.dll php_interbase.dll php_ldap.dll php_mssql65.dll php_mssql70.dll php_oci8.dll php_openssl.dll php_oracle.dll php_sablot.dll php_sybase_ct.dll php_yaz.dll A sample message: PHP Warning: Unable to load dynamic library 'c:\php\extensions\php_sybase_ct.dll' My question is if it is possible to load these extensions some way, or should I give up trying, becouse they will never load. Thank you a lot. I wish you nice developing. Best regards: Mike Myers -- Edit Bug report at: http://bugs.php.net/?id=9266edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9201 Updated: automatically inserted HTML with --trans-sid breaks page compliance to w3c std
ID: 9201 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Feature/Change Request Assigned To: Comments: This is fixed in CVS. Try latest CVS snapshot from http://snaps.php.net/ --Jani Previous Comments: --- [2001-02-09 20:22:32] [EMAIL PROTECTED] I'm trying to use the latest w3c recommendation (xhtml 1.0) in building a new site, but the hidden form elements inserted by --trans-sid break compliance. Obviously not high priority, but perhaps a .ini option like session.htmlver could be used to determine what sort of text trans-sid spits out. For a sample, hit http://clarkhall.ca/ An XHTML 1.0 compliant version of the item in question would be: INPUT type="hidden" name="RegistryID value="dfc59efe2f4f3fe82ca321c40a635f0b" / --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9201edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9266 Updated: Unable to load 14 of php's extensions
ID: 9266 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Status: Analyzed Old-Bug Type: *Database Functions Bug Type: Feature/Change Request Assigned To: Comments: all of theese extensions depend on other DLLs being installed on your system like, for example, sybase_ct client DLLs (this is the native sybase call interface, _not_ the ODBC stuff) maybe we could improve the error message? (moved to feature request) Previous Comments: --- [2001-02-14 16:49:10] [EMAIL PROTECTED] all of theese extensions depend on other DLLs being installed on your system like, for example, sybase_ct client DLLs (this is the native sybase call interface, _not_ the ODBC stuff) maybe we could improve the error message? (moved to feature request) --- [2001-02-14 16:41:08] [EMAIL PROTECTED] I spent almost 2 day trying to figure out how to load the sybase extension under windows. I tried everything I could, but 14 of the extensions would not load under WinMe, Win98, Win2000, with any combination of apache, pws, iis. The extension_dir is just set all fine, and the rest of the extensions load and function well. I only wanted to get some data from a sybase db. I could actually solve it with ODBC, but I still thought it's not the real way. I discussed this problem on the local php mailing list, everyone knew it, noone knew why. I searched through the php manual and the rest of the web just to find a fraction of information that could be helpful either way, but there was no. The extensions that made me 2 horribe days: php_curl.dll php_fdf.dll php_gettext.dll php_ifx.dll php_interbase.dll php_ldap.dll php_mssql65.dll php_mssql70.dll php_oci8.dll php_openssl.dll php_oracle.dll php_sablot.dll php_sybase_ct.dll php_yaz.dll A sample message: PHP Warning: Unable to load dynamic library 'c:phpextensionsphp_sybase_ct.dll' My question is if it is possible to load these extensions some way, or should I give up trying, becouse they will never load. Thank you a lot. I wish you nice developing. Best regards: Mike Myers --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9266edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9186 Updated: string compare with == does not work correctly
ID: 9186 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Analyzed Old-Bug Type: Scripting Engine problem Bug Type: Documentation problem Assigned To: Comments: Previous Comments: --- [2001-02-09 10:59:10] [EMAIL PROTECTED] I think there is no reason to convert any type if both operands of the comparision are of the same type. It costs time and it's completely not necessary. This is a bug. I can not see any description of this behavior in the manual. The string type section descibes only what is happen if a string is converted. --- [2001-02-09 10:27:46] [EMAIL PROTECTED] Actually, this is a feature - it is described in the manual. Strings that look like numbers are converted to numbers. Large numbers - like the ones below may not convert perfectly from a string to a number. Review the manual section on PHP types in general and strings in particular (http://uk.php.net/manual/en/language.types.string.php) While this is a relatively subtle bug, you can ensure that you are dealing with strings by quoting the variables being compared or by using the === operator. This behavior is exploited quite often in PHP scripts. However, perhaps it would be nice if PHP generated an notice level error when it occured so that users have some recourse when it happens unexpectedly. If you feel strongly about this, propose it to the developers as a feature request. Post your request on the [EMAIL PROTECTED] list (sub at [EMAIL PROTECTED]) - if you get no response, be polite but persistant. :) --- [2001-02-09 03:25:24] [EMAIL PROTECTED] First the test script: ? $a = '012345678901234567'; $b = '012345678901234568'; echo ($a == $b) ? "a equal bn" : "a not equal bn"; echo ($a === $b) ? "a equal bn" : "a not equal bn"; printf ("as string: a=%s b=%sn", $a, $b); printf ("as float: a=%.0f b=%.0fn", $a, $b); printf ("as int: a=%d b=%dn", $a, $b); ? and its output: a equal b a not equal b as string: a=012345678901234567 b=012345678901234568 as float: a=12345678901234567 b=12345678901234567 as int: a=2147483647 b=2147483647 Zend trys to convert the arguments to numbers if both arguments are strings. This is not good and its not a feature. --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9186edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9204 Updated: Crash when I opent a particular page
ID: 9204 Updated by: sniper Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: And please try latest CVS snapshot from http://snaps.php.net/ as I have a feeling this has been fixed already.. --Jani Previous Comments: --- [2001-02-10 09:20:10] [EMAIL PROTECTED] Please send a cut down version of the page. you need to remove bits of the page until you can get it to crash with the minimal amount of code. DO NOT send full page as we are too lazy to do it ourselves. In cases like these you should always create a test case, it would also be helpful to create a back trace see http://bugs.php.net for instructions on that. James --- [2001-02-10 09:16:16] [EMAIL PROTECTED] When I open a particular page, my browser says zero sized reply. error_log says that one of the apache clients crashed. There does not seem to be any way around this - it crashes every time I load it. The page is complex, but it does not use any exotic functions. I can't seem to get a core file from apache. I run it with -X, but when it segfaults, no corefile is dumped, even with ulimit -c unlimied. I can send the page that causes the problem if required. Apache version: Server version: Apache/1.3.14 (Unix) Server built: Feb 9 2001 22:46:23 Configure command: './configure' '--with-pgsql=/opt/postgres' '--with-mysql=/opt/mysql' '--with-dom' '--enable-ftp' '--with-apache=../apache_1.3.14' '--with-gdbm' Thanks for you help, Charlie Dyson --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9204edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #3611 Updated: switch() limitation and gcc invoked instead of cc
ID: 3611 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Compile Failure Assigned To: Comments: I'm pretty sure this is fixed already. If this is not the case (when using PHP 4.0.4pl1) reopen this bug report. --Jani Previous Comments: --- [2001-02-10 16:21:48] [EMAIL PROTECTED] fixing version. --- [2000-02-24 16:44:38] [EMAIL PROTECTED] This is actually for 4.0rc1 beta, but it's not in your selection box. I'm compiling it under HP-UX 10. HP-UX CC fails in zend_compile.c because the optline-extended_value is too large for a HP switch(). Rewriting the two switches in this file using if's solves the problem. Also, when make attempts to "Making all in db", it invokes gcc instead of cc (we don't have gcc installed). I haven't finished compiling the beta yet but I thought I'd pass these obvious bugs on. Ken Burtch --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=3611edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0 Bug #9266 Updated: Unable to load 14 of php's extensions
request for a new bug categorie: misleading error message -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9267: vars are set to instead of NULL
From: [EMAIL PROTECTED] Operating system: win2k PHP version: 4.0.4pl1 PHP Bug Type: *Database Functions Bug description: vars are set to "" instead of NULL don't know if this is only related to the mssql extension, but when i retrieve a NULL - field from the database the var will be set to "" or 0 or whatever in php. is_null() returns false. harald. -- Edit Bug report at: http://bugs.php.net/?id=9267edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9257 Updated: Problem with values returned from a select statement
ID: 9257 Updated by: jah Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Assigned Bug Type: InterBase related Assigned To: jah Comments: Yes, this seems quite bad, and I got today another email (privately) complaining about a same kind of thing happening. I'm afraid it takes a few days before I can really look what's happening, it can take some time (which I don't have much...). Fortunately, the other bug reporter gave quite a good hint where exactly in the source the bug seems to be. Previous Comments: --- [2001-02-14 08:14:05] [EMAIL PROTECTED] $sele = "select data,hora,historico,valor from saldos "; $sele .= "where data between '$dataini1' and '$datafin1'"; $q = ibase_prepare($i,$sele); $result = ibase_execute($q); while ($row = ibase_fetch_object($result)) { echo $row-VALOR; } // saldos is a view and its defined as: CREATE VIEW "SALDOS" ( "DATA", "HORA", "CAIXA", "VALOR", "HISTORICO" ) AS SELECT data,hora,caixa,valor,historico FROM entradas UNION SELECT data, hora, caixa, (valor*-1) "VALOR", historico FROM saidas ; The field "valor" in the tables "entradas" and "saidas" is defined as numeric(11,2)... The problem is that the code above returns for example "10.10" when the value of the field is "10.01"... it's a really big problem, and i dont know what to do... :( --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9257edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9268: Inconsistent behaviour for per-session cookies
From: [EMAIL PROTECTED] Operating system: SuSe 6.1 Linux 2.2.17 PHP version: 4.0.3pl1 PHP Bug Type: *Session related Bug description: Inconsistent behaviour for per-session cookies Configure line: './configure' '--with-apxs' '--with-oci8' '--with-iodbc=/usr/lib' Standard php.ini. session.cookie_lifetime is 0. A very simple test script: ?php session_start(); ? Session started. Now, the problem is related to so called per-session cookies. These are meant to disappear when the user closes his browser. The problem is that cookies sometimes get an expires value of "end of session" as they should with the lifetime set to 0, but sometimes they get an expire value of some timestamp. I first discovered this problem in IE5, and thinking that it could be an IE5 bug, I tested with Opera 5 and Netscape 6, and the same error arose. I was unable to see any pattern in the way expires alternated between "end of session" and a time. Sometimes I could get "end of session" for 4-5 times in a row, then a timestamp, then a end of session, then a timestamp several times and so on. I then tested this with PHP on a computer running FreeBSD and was unable to reproduce the error here. Both the Linux and the FreeBSD ran Apache 1.3.14. The easiest way of testing this behaviour is probably by using the test "script" mentioned above, and use Opera as your browser. Make Opera prompt you every time it recieves a cookie, this way you will see the expires value immediately on loading the page, so you can just reload (F5) and then refuse the cookie. Keep on doing this. By using this method I'm pretty sure the expires value is always 5 minutes in the future when a it's a timestamp. I was sometimes able to see a pattern; either timestamp, timestamp, end of session (repeating) or end of session, end of session, timestamp (repeating). But my testing was not at all conclusive at this particular point. Finally I would like to mention that I tested this from browsers in Windows 98 and Win2K with the same result. Sometimes cookies can appear correctly for a very long time, so please be patient when trying to reproduce this strange bug. And hopefully you will be able to crush it! -- Edit Bug report at: http://bugs.php.net/?id=9268edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9261 Updated: odbc to an oracle 'view' fails
ID: 9261 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: ODBC related Description: odbc to an oracle 'view' fails Hi, I disabled "#define HAVE_SQL_EXTENDED_FETCH 1 " and that seems to do the thing. /Bengt Previous Comments: --- [2001-02-14 14:26:15] [EMAIL PROTECTED] I've tried SQL_CUR_USE_ODBC, SQL_CUR_USE_IF_NEEDED, SQL_CUR_USE_DRIVER and SQL_CUR_DEFAULT with the same result. /Bengt --- [2001-02-14 10:19:50] [EMAIL PROTECTED] You could try to pass SQL_CUR_USE_ODBC as additional parameter to odbc_connect() and see if this helps. --- [2001-02-14 09:54:19] [EMAIL PROTECTED] Hi, I' running openlink to an oracle(8.1.5) server. When I try to do a 'select' from a view I get the error from PHP: "Warning: SQL error: [OpenLink][ODBC][Driver]No key columns found for table referenced by keyset driven cursor., SQL state IM909 in SQLPrepare " (Using the same driver from Perl works fine) --- Full Bug description available at: http://bugs.php.net/?id=9261 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9269: Premature end of script headers error
From: [EMAIL PROTECTED] Operating system: Radhat 7.0 PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: Premature end of script headers error I compiled and installed php4 for the first time and it seems that all went right ,execute normal html page and CGI page such as .cgi .pl no any problem ,but when I try to execute any sort of php script I´m stuck with an Internal Server error and error_log says: Premature end of script headers: /usr/local/httpd/cgi-bin/test.php I check the system as following: a. -/httpd -l : it list all the compile module , the "mod_php4.c" include in it . b. check the server_software with perl is : "Apache/1.3.17 (unix)php/4.0.4pl1" Thanks for reply. -- Edit Bug report at: http://bugs.php.net/?id=9269edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9266 Updated: Unable to load 14 of php's extensions
ID: 9266 User Update by: [EMAIL PROTECTED] Status: Analyzed Bug Type: Feature/Change Request Description: Unable to load 14 of php's extensions Yes, a more detailed error message, or/and two more lines in the manual could have saved me some time. And maybe it would for others too. Thank you. Previous Comments: --- [2001-02-14 16:49:32] [EMAIL PROTECTED] all of theese extensions depend on other DLLs being installed on your system like, for example, sybase_ct client DLLs (this is the native sybase call interface, _not_ the ODBC stuff) maybe we could improve the error message? (moved to feature request) --- [2001-02-14 16:49:10] [EMAIL PROTECTED] all of theese extensions depend on other DLLs being installed on your system like, for example, sybase_ct client DLLs (this is the native sybase call interface, _not_ the ODBC stuff) maybe we could improve the error message? (moved to feature request) --- [2001-02-14 16:41:08] [EMAIL PROTECTED] I spent almost 2 day trying to figure out how to load the sybase extension under windows. I tried everything I could, but 14 of the extensions would not load under WinMe, Win98, Win2000, with any combination of apache, pws, iis. The extension_dir is just set all fine, and the rest of the extensions load and function well. I only wanted to get some data from a sybase db. I could actually solve it with ODBC, but I still thought it's not the real way. I discussed this problem on the local php mailing list, everyone knew it, noone knew why. I searched through the php manual and the rest of the web just to find a fraction of information that could be helpful either way, but there was no. The extensions that made me 2 horribe days: php_curl.dll php_fdf.dll php_gettext.dll php_ifx.dll php_interbase.dll php_ldap.dll php_mssql65.dll php_mssql70.dll php_oci8.dll php_openssl.dll php_oracle.dll php_sablot.dll php_sybase_ct.dll php_yaz.dll A sample message: PHP Warning: Unable to load dynamic library 'c:phpextensionsphp_sybase_ct.dll' My question is if it is possible to load these extensions some way, or should I give up trying, becouse they will never load. Thank you a lot. I wish you nice developing. Best regards: Mike Myers --- Full Bug description available at: http://bugs.php.net/?id=9266 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Curly Brackets equate to variables?
Hello, I have the following string: input type=hidden name=Products value=\"Price::Qty::Code::Desciption::Flags|0.01::1::12::Your eShop (1 Store License)::{USD}{TEST}|\" When I print it out I get this: input type=hidden name=Products value="Price::Qty::Code::Desciption::Flags|0.01::1::12::Your eShop (1 Store License)::|" Notice the missing {USD}{TEST} Is this indented behaviour for the curly braces to disappear? Thanks, Brad Atkins Manager, Technical Development 1-877-YRE-4YOU (Canada US) 1-705-692-3442 (International) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0 Bug #9270: Informix Remote Host Connection
From: [EMAIL PROTECTED] Operating system: Solaris, HPUX, Linux PHP version: 4.0.4pl1 PHP Bug Type: Informix related Bug description: Informix Remote Host Connection This is NOT a bug report but a request report on Informix features. Currently, PHP4 can use Informix native drive to connect to localhost database, What about remote host? For example: There are 2 mechines, hostname are FOO1 and FOO2. Both of them have Informix Database running (Not mirroring, clustering nor replicating, there are different database). PHP4 (--with-informix) is installed in FOO1, of course it can access local database in FOO1. Can PHP4 in FOO1 access the database in FOO2? How do get the connection for the 2 host? -- Edit Bug report at: http://bugs.php.net/?id=9270edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] CVS Account Request
Full name: Jacky Chou Email: [EMAIL PROTECTED] ID: bhchou Purpose: Check PHP version frequently -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Session management by web server admin
How hard would it be to add the ability (via a seperate utility that ships with PHP perhaps?) for a web server admin to view active PHP sessions, and session_destroy them? I ask because we want to set up our application so that the admin can force users to logoff (by destroying their session) -Chris -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] PHP 4.0 Bug #9266 Updated: Unable to load 14 of php's extensions
Are there enough of these to warrant a category? --zak - Original Message - From: "Hartmut Holzgraefe" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 14, 2001 3:06 PM Subject: [PHP-QA] Re: [PHP-DEV] PHP 4.0 Bug #9266 Updated: Unable to load 14 of php's extensions request for a new bug categorie: misleading error message -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4 -- PHP Quality Assurance Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] PHP 4.0 Bug #9266 Updated: Unable to load 14 of php's extensions
Zak Greant wrote: request for a new bug categorie: misleading error message Are there enough of these to warrant a category? I think this a question of quality, not quantity. -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 Besuchen Sie uns auf der CeBIT 2001 - in Halle 6 Stand F62/4 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]