[PHP-DEV] Re: 4.3.2RC4 OCI8 crash

2003-05-27 Thread Michael Mauch
Michael Bretterklieber wrote:

 we discovered a crash using 4.3.2RC4 with oci8, here's the bt:

Is your Apache linked to pthread, like it's written on
http://www.php.net/oci8?

And your extension_dir .../no-debug-non-zts-20020429
is probably the wrong one, as you are using --enable-debug.

Regards...
Michael

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: 4.3.2RC4 OCI8 crash

2003-05-27 Thread Michael Bretterklieber
On Tue, 27 May 2003, Michael Mauch wrote:

 Michael Bretterklieber wrote:

  we discovered a crash using 4.3.2RC4 with oci8, here's the bt:

 Is your Apache linked to pthread, like it's written on
 http://www.php.net/oci8?
sure, and all other neat things like library-preload, etc.

we usualy start this script with the cli-php, but sometimes also from
apache.


 And your extension_dir .../no-debug-non-zts-20020429
 is probably the wrong one, as you are using --enable-debug.

we don't load any extensions dynamicaly (all exts are staticaly
compiled in) and usualy we use a non debug-build :-)

however we could workaround this, we had a function like this:

function foo()
{
$db = new DB;
$db-query(..)
..
}

this function was invoked several times, and our database-objects
connected also several times to oracle, then I declared $db static:
function foo()
{
static $db;
$db = new DB;
$db-query(..)
..
}

et voila, the script didn't crashed anymore :-)

It looks like that the oci extension has some bugs in freeing resources,
because according to the bt, the oci module freees an already freeed
resource, if I'm right, or maybe a problem with the reference counting,
...

tomorrow I can send the output with ociinternaldebug(true)

another hint, I tried all php versions down to 4.2.1, and all versions
caused the script to crash.

bye,
--
--- --
Michael Bretterklieber  - http://www.bretterklieber.com
JAWA Management Software GmbH   - http://www.jawa.at
Tel: ++43-(0)316-403274-12  - GSM: ++43-(0)676-84 03 15 712
--- --
...the number of UNIX installations has grown to 10, with more
expected... - Dennis Ritchie and Ken Thompson, June 1972

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] 4.3.2RC4: patch for php.ini-dist and php.ini-recommended

2003-05-27 Thread Giovanni Giacobbi

PHP version:  4.3.2RC4
PHP Bug Type: *General Issues
Bug description:  php.ini-dist and php.ini-recommended cleanup patch

There are various typos and differences between the to files mentioned in
the subject. I made a cleanup of that and I'd like to send you the patch
file, but i couldn't find an email address where to direct ready patches
for CVS. (maybe you should write it in the package documentation?)

Regards

-- 
Giovanni Giacobbi
--- php-4.3.2RC4/php.ini-dist.orig	Thu May  8 03:23:35 2003
+++ php-4.3.2RC4/php.ini-dist	Tue May 27 17:08:04 2003
@@ -67,7 +67,7 @@
 ; Enable the PHP scripting language engine under Apache.
 engine = On
 
-; Allow the ? tag.  Otherwise, only ?php and script tags are recognized.  
+; Allow the ? tag.  Otherwise, only ?php and script tags are recognized.
 ; NOTE: Using short tags should be avoided when developing applications or
 ; libraries that are meant for redistribution, or deployment on PHP
 ; servers which are not under your control, because short tags may not
@@ -99,18 +99,18 @@
 ; Setting any output handler automatically turns on output buffering.
 ; Note: People who wrote portable scripts should not depend on this ini
 ;   directive. Instead, explicitly set the output handler using ob_start().
-;   Using this ini directive may cause problems unless you know what script 
+;   Using this ini directive may cause problems unless you know what script
 ;   is doing.
 ; Note: You cannot use both mb_output_handler with ob_iconv_handler
-;   and you cannot use both ob_gzhandler and zlib.output_compression. 
+;   and you cannot use both ob_gzhandler and zlib.output_compression.
 ;output_handler =
 
 ; Transparent output compression using the zlib library
 ; Valid values for this option are 'off', 'on', or a specific buffer size
 ; to be used for compression (default is 4KB)
-; Note: Resulting chunk size may vary due to nature of compression. PHP 
-;   outputs chunks that are few hundreds bytes each as a result of 
-;   compression. If you prefer a larger chunk size for better 
+; Note: Resulting chunk size may vary due to nature of compression. PHP
+;   outputs chunks that are few hundreds bytes each as a result of
+;   compression. If you prefer a larger chunk size for better
 ;   performance, enable output_buffering in addition.
 ; Note: You need to use zlib.output_handler instead of the standard
 ;   output_handler, or otherwise the output will be corrupted.
@@ -133,7 +133,7 @@
 ; which should be instanciated.
 ; A warning appears if the specified function is not defined, or if the
 ; function doesn't include/implement the missing class.
-; So only set this entry, if you really want to implement such a 
+; So only set this entry, if you really want to implement such a
 ; callback-function.
 unserialize_callback_func=
 
@@ -153,6 +153,7 @@
 ; reference).
 allow_call_time_pass_reference = On
 
+;
 ; Safe Mode
 ;
 safe_mode = Off
@@ -166,7 +167,7 @@
 ; including files from this directory and its subdirectories.
 ; (directory must also be in include_path or full path must
 ; be used when including)
-safe_mode_include_dir =
+safe_mode_include_dir =
 
 ; When safe_mode is on, only executables located in the safe_mode_exec_dir
 ; will be allowed to be executed via the exec family of functions.
@@ -231,6 +232,7 @@
 max_input_time = 60	; Maximum amount of time each script may spend parsing request data
 memory_limit = 8M  ; Maximum amount of memory a script may consume (8MB)
 
+
 ;;
 ; Error handling and logging ;
 ;;
@@ -294,13 +296,13 @@
 ; line until ignore_repeated_source is set true.
 ignore_repeated_errors = Off
 
-; Ignore source of message when ignoring repeated messages. When this setting 
+; Ignore source of message when ignoring repeated messages. When this setting
 ; is On you will not log errors with repeated messages from different files or
 ; sourcelines.
 ignore_repeated_source = Off
 
 ; If this parameter is set to Off, then memory leaks will not be shown (on
-; stdout or in the log). This has only effect in a debug compile, and if 
+; stdout or in the log). This has only effect in a debug compile, and if
 ; error reporting includes E_WARNING in the allowed list
 report_memleaks = On
 
@@ -309,16 +311,16 @@
 
 ; Disable the inclusion of HTML tags in error messages.
 ;html_errors = Off
-  
-; If html_errors is set On PHP produces clickable error messages that direct 
+
+; If html_errors is set On PHP produces clickable error messages that direct
 ; to a page describing the error or function causing the error in detail.
-; You can download a copy of the PHP manual from http://www.php.net/docs.php 
+; You can download a copy of the PHP manual from http://www.php.net/docs.php
 ; and change docref_root to the base URL of your local copy including the
-; leading '/'. You must also specify the file extension being used including 
+; leading '/'.