[PHP-DEV] Bug #15361 Updated: preg_split PREG_SPLIT_DELIM_CAPTURE does not work like in 4.0.6
ID: 15361 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: PCRE related Operating System: NetBSD 1.5.2 PHP Version: 4.1.1 New Comment: sorry, simple reason my host does NOT linked - php-pcre-4.1.1 PHP4 extension for Perl-compatible regular expressions - into his build and error-reporting was off, - error_reporting (E_ALL ); - inside a script doesn´t changes anything, so I got no error-report like he in his - /var/log/httpd/error_log - cu tlb Previous Comments: [2002-02-03 18:09:07] [EMAIL PROTECTED] hello for my small logic parser and sql-query-generator I used preg_split with PREG_SPLIT_DELIM_CAPTURE flag like shown below, but now with 4.1.1 my result $elements is empty an the rest of my function work with a empty array and nothing happen. // my input is like $inString = array('tlb | test'); // use of preg_split $elements = preg_split (/\s+|(\()|(\))|(\)|(\+)|(,)|()|(!)|(\|)/, $inString, -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE); // output, result was in 4.0.6 like ... $elements[0] ='tlb' $elements[1] ='|' $elements[2] ='test' cu tlb -- Edit this bug report at http://bugs.php.net/?id=15361edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #15361: preg_split PREG_SPLIT_DELIM_CAPTURE does not work like in 4.0.6
From: [EMAIL PROTECTED] Operating system: NetBSD 1.5.2 PHP version: 4.1.1 PHP Bug Type: PCRE related Bug description: preg_split PREG_SPLIT_DELIM_CAPTURE does not work like in 4.0.6 hello for my small logic parser and sql-query-generator I used preg_split with PREG_SPLIT_DELIM_CAPTURE flag like shown below, but now with 4.1.1 my result $elements is empty an the rest of my function work with a empty array and nothing happen. // my input is like $inString = array('tlb | test'); // use of preg_split $elements = preg_split (/\s+|(\()|(\))|(\)|(\+)|(,)|()|(!)|(\|)/, $inString, -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE); // output, result was in 4.0.6 like ... $elements[0] ='tlb' $elements[1] ='|' $elements[2] ='test' cu tlb -- Edit bug report at http://bugs.php.net/?id=15361edit=1 -- Fixed in CVS:http://bugs.php.net/fix.php?id=15361r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=15361r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15361r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15361r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15361r=support Expected behavior: http://bugs.php.net/fix.php?id=15361r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15361r=notenoughinfo -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Bug #14410: imap_fetch_overview: is missing in_reply_to
From: [EMAIL PROTECTED] Operating system: Any PHP version: 4.1.0 PHP Bug Type: IMAP related Bug description: imap_fetch_overview: is missing in_reply_to Please add in function PHP_FUNCTION(imap_fetch_overview) in file php4/ext/imap/php_imap.c : if (env-in_reply_to) { add_property_string(myoverview, in_reply_to, env-in_reply_to, 1); } It can be tested with this: $imap = imap_open('{servername:port}', 'login','passwd'); $header = imap_fetch_overview($imap,1:20,0); for($i=0;$icount($header);$i++) { print $header[$i]-in_reply_to.\n; } Thanks. -- Edit bug report at: http://bugs.php.net/?id=14410edit=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 #9167: imap_status()
From: [EMAIL PROTECTED] Operating system: Linux 2.2.17 PHP version: 4.0.4pl1 PHP Bug Type: IMAP related Bug description: imap_status() This works: $mbox = imap_open ("{rapanden.dk:143}", "$login", "$passwd", OP_HALFOPEN); $status = imap_status($mbox,"{rapanden.dk:143}INBOX",SA_MESSAGES); and this dos'nt: $mbox = imap_open ("{localhost:143}", "$login", "$passwd", OP_HALFOPEN); $status = imap_status($mbox,"{localhost:143}INBOX",SA_MESSAGES); The problem is that imap_status will only accept the machine name, even if I use mail.rapanden.dk that points to the same ip as rapanden.dk it won't work. I found another description of the problem here: http://faqchest.dynhost.com/prgm/imp-l/imp-00/imp-0012/imp-001206/imp00121423_34248.html Troels Liebe Bentsen -- Edit Bug report at: http://bugs.php.net/?id=9167edit=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 #9167 Updated: imap_status()
ID: 9167 User Update by: [EMAIL PROTECTED] Status: Open Bug Type: IMAP related Description: imap_status() Here is my current: 127.0.0.1 localhost.rapanden.dk localhost And no it does not fix the problem. Previous Comments: --- [2001-02-07 17:29:08] [EMAIL PROTECTED] I remember this problem being solved by putting a valid entry for localhost into /etc/hosts on the machine in question. Do you have an entry, and if not, does adding one fix the problem? --- [2001-02-07 17:18:24] [EMAIL PROTECTED] This works: $mbox = imap_open ("{rapanden.dk:143}", "$login", "$passwd", OP_HALFOPEN); $status = imap_status($mbox,"{rapanden.dk:143}INBOX",SA_MESSAGES); and this dos'nt: $mbox = imap_open ("{localhost:143}", "$login", "$passwd", OP_HALFOPEN); $status = imap_status($mbox,"{localhost:143}INBOX",SA_MESSAGES); The problem is that imap_status will only accept the machine name, even if I use mail.rapanden.dk that points to the same ip as rapanden.dk it won't work. I found another description of the problem here: http://faqchest.dynhost.com/prgm/imp-l/imp-00/imp-0012/imp-001206/imp00121423_34248.html Troels Liebe Bentsen --- Full Bug description available at: http://bugs.php.net/?id=9167 -- 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]