php4-beta | 200004
Date: 04/20/00
- Next message: Alexander Fordyce: "[PHP4BETA] number_format problem (?)"
- Previous message: Zeev Suraski: "[PHP4BETA] cvs: /php4/ext/imap imap.dsp /php4/ext/ldap ldap.dsp"
- Next in thread: Alexander Fordyce: "[PHP4BETA] number_format problem (?)"
- Reply: Alexander Fordyce: "[PHP4BETA] number_format problem (?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
zeev Thu Apr 20 16:35:58 2000 EDT
Modified files:
/php4/ext/imap php_imap.c
Log:
Compile fixes
Index: php4/ext/imap/php_imap.c
diff -u php4/ext/imap/php_imap.c:1.16 php4/ext/imap/php_imap.c:1.17
--- php4/ext/imap/php_imap.c:1.16 Thu Apr 20 10:48:22 2000
+++ php4/ext/imap/php_imap.c Thu Apr 20 16:35:28 2000
@@ -23,11 +23,11 @@
| PHP 4.0 updates: Zeev Suraski <zeev <email protected>> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_imap.c,v 1.16 2000/04/20 17:48:22 zeev Exp $ */
+/* $Id: php_imap.c,v 1.17 2000/04/20 23:35:28 zeev Exp $ */
#define IMAP41
-#define OP_RELOGIN
+#undef OP_RELOGIN
#include "php.h"
#include "php_ini.h"
@@ -631,7 +631,7 @@
* out the server's hostname.
*/
if (persistent
- && !mail_valid_net_parse(ZSTRVAL_PP(mailbox), &netmbx)) {
+ && !mail_valid_net_parse(Z_STRVAL_PP(mailbox), &netmbx)) {
persistent = 0;
}
@@ -670,10 +670,7 @@
/* If we found a node, do a relogin. */
if (node) {
- imap_stream = mail_open(
- node->imap_stream,
- ZSTRVAL_PP(mailbox),
- flags | OP_RELOGIN);
+ imap_stream = mail_open(node->imap_stream, Z_STRVAL_PP(mailbox), flags | OP_RELOGIN);
if (imap_stream) {
/* Ping the stream to see if it is
* still good.
@@ -688,10 +685,7 @@
/* Get a fresh stream if we don't have one yet. */
if (imap_stream == NIL) {
/* Open a new connection. */
- imap_stream = mail_open(
- NIL,
- ZSTRVAL_PP(mailbox),
- flags | OP_RELOGIN);
+ imap_stream = mail_open(NIL, Z_STRVAL_PP(mailbox), flags | OP_RELOGIN);
}
/* Do we have a stream yet? If not, bail. */
@@ -760,7 +754,7 @@
imap_le_struct = node;
} else {
#endif
- imap_stream = mail_open(NIL, (*mailbox)->value.str.val, flags);
+ imap_stream = mail_open(NIL, Z_STRVAL_PP(mailbox), flags);
if (imap_stream == NIL) {
php_error(E_WARNING, "Couldn't open stream %s\n", (*mailbox)->value.str.val);
RETURN_FALSE;
@@ -795,7 +789,8 @@
PHP_FUNCTION(imap_popen)
{
#ifdef OP_RELOGIN
- return imap_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
+ imap_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
+ RETURN_TRUE;
#else
php_error(E_WARNING, "Persistent IMAP connections are not yet supported.\n");
RETURN_FALSE;
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Alexander Fordyce: "[PHP4BETA] number_format problem (?)"
- Previous message: Zeev Suraski: "[PHP4BETA] cvs: /php4/ext/imap imap.dsp /php4/ext/ldap ldap.dsp"
- Next in thread: Alexander Fordyce: "[PHP4BETA] number_format problem (?)"
- Reply: Alexander Fordyce: "[PHP4BETA] number_format problem (?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

