ID: 16360
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Analyzed
Bug Type: Scripting Engine problem
Operating System: Linux, Windows
PHP Version: 4.0CVS-2002-03-3
New Comment:
When you report error. Disable Zend Optimizer _ALWAYS_. We don't
support ZendOptimizer and it's waste of time for both of us. Zend
optimizer probably does not work with the patch.
To locate line, use die().
Previous Comments:
------------------------------------------------------------------------
[2002-03-31 21:44:32] [EMAIL PROTECTED]
Please give me a hint how to locate the line, for I don't know :-)
I'm using the Zend Optimizer in addition, nothing else.
------------------------------------------------------------------------
[2002-03-31 20:56:36] [EMAIL PROTECTED]
wolfram,
Could you locate which line is causing following error?
"Unsupported operand types in Unknown on line 0"
I don't get this error message with my applicatins.
Are you using any cache products?
------------------------------------------------------------------------
[2002-03-31 12:42:45] [EMAIL PROTECTED]
After applying the patch above, my Apache segfaults on scripts which
ran fine before or just prints "Unsupported operand types in Unknown on
line 0". Using PHP 4.2.0RC1.
------------------------------------------------------------------------
[2002-03-31 12:21:32] [EMAIL PROTECTED]
Increasing the refcount width from short to long doesn't
solve the issue. A strict upper limit test is badly needed
to check whether the refcounter can be increased in the
given limit or not.
I suggest to throw a memory exhausted error with a hint
that no more reference counters could be allocated.
------------------------------------------------------------------------
[2002-03-31 05:06:08] [EMAIL PROTECTED]
This should be refcount issue.
Change _zval_struct's refcount data type from unsingned short to
unsinged int, then PHP should be fine upto 4G.
Without patch refcount can be upto 64K and no error check
is done -> segfualts.
ZE2 is changed to use unsinged int already. IIRC.
Index: Zend/zend.h
===================================================================
RCS file: /repository/Zend/zend.h,v
retrieving revision 1.152
diff -u -r1.152 zend.h
--- Zend/zend.h 15 Mar 2002 04:33:05 -0000 1.152
+++ Zend/zend.h 31 Mar 2002 10:03:41 -0000
@@ -209,9 +209,9 @@
struct _zval_struct {
/* Variable information */
zvalue_value value; /* value */
+ zend_uint refcount;
zend_uchar type; /* active type */
zend_uchar is_ref;
- zend_ushort refcount;
};
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16360
--
Edit this bug report at http://bugs.php.net/?id=16360&edit=1