RE: [PHP-DEV] PHP 4.0 Bug #9197: crash in _efree

2001-02-19 Thread David Benson

 could you plz try:
 
 ?
 $Conn = OCINLogon ('vignette', 'vignette', 'wom_dev');
 $Clob = OCINewDescriptor($Conn, OCI_D_LOB);
 $ExtraXML = $Clob-load();
 ?
 
 if that still causes the crash then the bug is fixed in CVS!

Not sure what that was supposed to do ;-), but it caused the same crash.

David


-- 
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 #9197: crash in _efree

2001-02-19 Thread Thies C. Arntzen

On Mon, Feb 19, 2001 at 08:23:42AM -0700, David Benson wrote:
  could you plz try:
  
  ?
  $Conn = OCINLogon ('vignette', 'vignette', 'wom_dev');
  $Clob = OCINewDescriptor($Conn, OCI_D_LOB);
  $ExtraXML = $Clob-load();
  ?
  
  if that still causes the crash then the bug is fixed in CVS!
 
 Not sure what that was supposed to do ;-), but it caused the same crash.

nothing;-) - but your crash should be fixed in CVS. just examine
your code-snippet again and you'll see that the sequence that
caused your crash can be reduced to the 3 liner i sent.

tc

-- 
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 #9197: crash in _efree

2001-02-18 Thread Thies C. Arntzen

On Mon, Feb 12, 2001 at 09:11:32AM -0700, David Benson wrote:
  Is there a short script (independent of other scripts) that
  reproduces this problem?  Can you try to cut it down to the
  smallest piece of code that still produces a crash?
 
 Thanks for the response. I've narrowed this down to just a problem (with
 workaround) in Oci8. Included is a short script that reproduces the problem.
 
 The first part contains a workaround, that I have implemented in my code.
 From the docs I was under the impresison I had to manipulate the clob
 through the clob calls, but OCIFetchStatement appears to handle the data
 correctly.

could you plz try:

?
$Conn = OCINLogon ('vignette', 'vignette', 'wom_dev');
$Clob = OCINewDescriptor($Conn, OCI_D_LOB);
$ExtraXML = $Clob-load();
?

if that still causes the crash then the bug is fixed in CVS!

tc

-- 
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 #9197: crash in _efree

2001-02-09 Thread Zeev Suraski

Is there a short script (independent of other scripts) that reproduces this 
problem?  Can you try to cut it down to the smallest piece of code that 
still produces a crash?

Zeev

At 23:45 9/2/2001, [EMAIL PROTECTED] wrote:
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.4pl1
PHP Bug Type: Reproduceable crash
Bug description:  crash in _efree

Getting periodic crashes in some of my templates. Crash is reproduceable 
using cgi or apache builds. Crash also occurs under solaris 2.7. Backtrace 
is from Linux RedHat 7.0

211 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p-size);
(gdb) bt
#0  0x80aaa14 in _efree (ptr=0x735740) at zend_alloc.c:211
#1  0x80b53bf in _zval_dtor (zvalue=0x81a44fc) at zend_variables.c:62
#2  0x80af555 in _zval_ptr_dtor (zval_ptr=0x81dd818) at zend_execute_API.c:261
#3  0x80b9198 in zend_hash_clean (ht=0x8153124) at zend_hash.c:590
#4  0x80d30b0 in execute (op_array=0x814e504) at ./zend_execute.c:1575
#5  0x80b637d in zend_execute_scripts (type=8, file_count=3) at zend.c:729
#6  0x805d733 in php_execute_script (primary_file=0xb6e0) at main.c:1221
#7  0x805bee8 in main (argc=3, argv=0xb784) at cgi_main.c:738
#8  0x40698b65 in __libc_start_main (main=0x805b77c main, argc=3,
 ubp_av=0xb784, init=0x805a0ec _init, fini=0x80d86cc _fini,
 rtld_fini=0x4000df24 _dl_fini, stack_end=0xb77c)
 at ../sysdeps/generic/libc-start.c:111


./configure --prefix=/var/mancala \
 #--with-apache=/src/linux/build/apache_1.3.17 \
 --with-oci8 \
 --without-mysql \
 --with-zlib=/usr/lib \
 --with-dom=/src/linux/build/libxml2-2.2.11 \
 --enable-sysvsem \
 --enable-sysvshm \
 --disable-xml

[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=   On  ; 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