dmitry Mon Apr 23 10:21:43 2007 UTC
Modified files:
/php-src/ext/standard var.c
Log:
64-bit support
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/var.c?r1=1.264&r2=1.265&diff_format=u
Index: php-src/ext/standard/var.c
diff -u php-src/ext/standard/var.c:1.264 php-src/ext/standard/var.c:1.265
--- php-src/ext/standard/var.c:1.264 Tue Mar 6 20:35:49 2007
+++ php-src/ext/standard/var.c Mon Apr 23 10:21:43 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: var.c,v 1.264 2007/03/06 20:35:49 tony2001 Exp $ */
+/* $Id: var.c,v 1.265 2007/04/23 10:21:43 dmitry Exp $ */
@@ -682,8 +682,8 @@
by its object handle and the class entry since 5.0. */
if ((Z_TYPE_P(var) == IS_OBJECT) && Z_OBJ_HT_P(var)->get_class_entry) {
p = smart_str_print_long(id + sizeof(id) - 1,
- (((unsigned long)Z_OBJCE_P(var) << 5)
- | ((unsigned long)Z_OBJCE_P(var) >>
(sizeof(long) * 8 - 5)))
+ (((size_t)Z_OBJCE_P(var) << 5)
+ | ((size_t)Z_OBJCE_P(var) >> (sizeof(long) * 8
- 5)))
+ (long) Z_OBJ_HANDLE_P(var));
*(--p) = 'O';
len = id + sizeof(id) - 1 - p;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php