#36727 [Fbk->Opn]: needless bindValue make php core dump

2006-03-14 Thread valiak at gmail dot com
 ID:   36727
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PDO related
 Operating System: linux
 PHP Version:  5.1.2
 New Comment:

[EMAIL PROTECTED]:~/tmp$ /usr/local/php5.1-debug/bin/php test.php
Segmentation fault
[EMAIL PROTECTED]:~/tmp$ /usr/local/php5.1-debug/bin/php -v
PHP 5.1.3RC2-dev (cli) (built: Mar 14 2006 14:33:47) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


Previous Comments:


[2006-03-14 12:34:05] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2006-03-13 22:56:16] valiak at gmail dot com

Description:

simple script coredumps

the configure parameters are

./configure --disable-cgi --prefix=/usr/local/php5.1-debug
--with-pdo-pgsql --with-gd --with-gd-native-ttf --with-jpeg-dir
--with-png-dir --with-xpm-dir --with-zlib --with-pgsql
--with-freetype-dir --enable-debug


the coredump is

#0  _zend_is_inconsistent (ht=0x0, file=0x83a6da8
"/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend_hash.c", line=847)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend_hash.c:53
#1  0x082b36a2 in zend_hash_find (ht=0x0, arKey=0x852f924 ":test",
nKeyLength=6, pData=0x0)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend_hash.c:847
#2  0x0811fffe in pgsql_stmt_param_hook (stmt=0x8530ad4,
param=0xbf855654, event_type=PDO_PARAM_EVT_ALLOC)
at
/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/ext/pdo_pgsql/pgsql_statement.c:232
#3  0x081178f4 in really_register_bound_param (param=0xbf855654,
stmt=0x8530ad4, is_param=1)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/ext/pdo/pdo_stmt.c:330
#4  0x081184c1 in zif_PDOStatement_bindValue (ht=3,
return_value=0x8530e04, return_value_ptr=0x0, this_ptr=0x0,
return_value_used=0)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/ext/pdo/pdo_stmt.c:1503
#5  0x082c4dbd in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf855d60) at zend_vm_execute.h:192
#6  0x082c4372 in execute (op_array=0x85274ac) at zend_vm_execute.h:92
#7  0x082a7ce3 in zend_execute_scripts (type=8, retval=0x83a6da8,
file_count=3)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend.c:1101
#8  0x082666f2 in php_execute_script (primary_file=0xbf8581b4) at
/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/main/main.c:1720
#9  0x08345f90 in main (argc=2, argv=0xbf8582f4) at
/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/sapi/cli/php_cli.c:1077


Reproduce code:
---
prepare('SELECT * FROM child');
$stmt->bindValue(':test', 1, PDO::PARAM_INT);
$stmt->execute();
?>

Expected result:

just nothing special - not to coredump, or some kind of error to
indicate that could not bind ":test"

Actual result:
--
[EMAIL PROTECTED]:~/tmp$ /usr/local/php5.1-debug/bin/php test.php
Segmentation fault (core dumped)






-- 
Edit this bug report at http://bugs.php.net/?id=36727&edit=1


#36727 [NEW]: needless bindValue make php core dump

2006-03-13 Thread valiak at gmail dot com
From: valiak at gmail dot com
Operating system: linux
PHP version:  5.1.2
PHP Bug Type: PDO related
Bug description:  needless bindValue make php core dump

Description:

simple script coredumps

the configure parameters are

./configure --disable-cgi --prefix=/usr/local/php5.1-debug
--with-pdo-pgsql --with-gd --with-gd-native-ttf --with-jpeg-dir
--with-png-dir --with-xpm-dir --with-zlib --with-pgsql --with-freetype-dir
--enable-debug


the coredump is

#0  _zend_is_inconsistent (ht=0x0, file=0x83a6da8
"/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend_hash.c", line=847)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend_hash.c:53
#1  0x082b36a2 in zend_hash_find (ht=0x0, arKey=0x852f924 ":test",
nKeyLength=6, pData=0x0)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend_hash.c:847
#2  0x0811fffe in pgsql_stmt_param_hook (stmt=0x8530ad4, param=0xbf855654,
event_type=PDO_PARAM_EVT_ALLOC)
at
/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/ext/pdo_pgsql/pgsql_statement.c:232
#3  0x081178f4 in really_register_bound_param (param=0xbf855654,
stmt=0x8530ad4, is_param=1)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/ext/pdo/pdo_stmt.c:330
#4  0x081184c1 in zif_PDOStatement_bindValue (ht=3,
return_value=0x8530e04, return_value_ptr=0x0, this_ptr=0x0,
return_value_used=0)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/ext/pdo/pdo_stmt.c:1503
#5  0x082c4dbd in zend_do_fcall_common_helper_SPEC
(execute_data=0xbf855d60) at zend_vm_execute.h:192
#6  0x082c4372 in execute (op_array=0x85274ac) at zend_vm_execute.h:92
#7  0x082a7ce3 in zend_execute_scripts (type=8, retval=0x83a6da8,
file_count=3)
at /home/NETAGESOLUTIONS/ce/inst/php-5.1.2/Zend/zend.c:1101
#8  0x082666f2 in php_execute_script (primary_file=0xbf8581b4) at
/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/main/main.c:1720
#9  0x08345f90 in main (argc=2, argv=0xbf8582f4) at
/home/NETAGESOLUTIONS/ce/inst/php-5.1.2/sapi/cli/php_cli.c:1077


Reproduce code:
---
prepare('SELECT * FROM child');
$stmt->bindValue(':test', 1, PDO::PARAM_INT);
$stmt->execute();
?>

Expected result:

just nothing special - not to coredump, or some kind of error to indicate
that could not bind ":test"

Actual result:
--
[EMAIL PROTECTED]:~/tmp$ /usr/local/php5.1-debug/bin/php test.php
Segmentation fault (core dumped)


-- 
Edit bug report at http://bugs.php.net/?id=36727&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36727&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36727&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36727&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36727&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=36727&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=36727&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=36727&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=36727&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=36727&r=support
Expected behavior:http://bugs.php.net/fix.php?id=36727&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=36727&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=36727&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36727&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36727&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36727&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=36727&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=36727&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36727&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=36727&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=36727&r=mysqlcfg


#32223 [Fbk->Opn]: weird behaviour of pg_last_notice

2005-10-10 Thread valiak at gmail dot com
 ID:   32223
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PostgreSQL related
 Operating System: *
-PHP Version:  5CVS-2005-09-02
+PHP Version:  5CVS-2005-10-10
 Assigned To:  helly
 New Comment:

i tried with the new version problem still exists (it does not exists
in version 4)

your script differs from the one I have posted, the main difference is
that I use constant to store the return value of pg_connect, the code
is in funcion, and the include must appear bellow pg_connect, try this
test:

--TEST--
Bug #32223 (weird behaviour of pg_last_notice)
--SKIPIF--

--FILE--

===DONE===
--EXPECTF--
array(1) {
  [0]=>
  string(1) "f"
}
string(14) "NOTICE:  1"
===DONE===


Previous Comments:


[2005-10-09 18:07:55] [EMAIL PROTECTED]

I made up a php test script for this: ext/pgsql/tests/80_bug32223.phpt

But i cannot reproduce your behavior with 5.1-dev or HEAD.

Maybe it is postgres?

marcus=# select version();
   version
--
 PostgreSQL 8.0.1 on i586-mandrake-linux-gnu, compiled by GCC
i586-mandrake-linux-gnu-gcc (GCC) 3.4.3 (Mandrakelinux 10.2
3.4.3-7mdk)

Works in all versions for me. So please try the following:
php run-tests.php ext/pgsql/tests/80_bug32223.phpt

If that fails, can you do a 'memcheck' on that?

And tell me your postgres version.



[2005-09-24 20:36:28] [EMAIL PROTECTED]

Assigned to the maintainer.


--------

[2005-09-23 15:55:35] valiak at gmail dot com

the code snipped is presented in the bug report and is
quite easily reproduced on any machine with postgresql and
php5 I have tried, there were some other users confirming 
the problem, but are deleted from the bug report. 
It has "external resources such as databases, etc." 
because it is a database related bug!! 
I use "Short tags" because it is written here   
http://www.php.net/manual/en/language.basic-syntax.php   
that I can use them.  
  
Anyway . here is even more short version of the 
bug 
(but still with external resources!!! and two files)  
http://ce.noxis.net/pg_last_notice/test.php // the main 
file 
http://ce.noxis.net/pg_last_notice/test.inc.php // the 
include 
http://ce.noxis.net/pg_last_notice/db.sql // the database 
schema - only one function



[2005-09-21 12:24:39] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



--------------------

[2005-09-02 14:48:49] valiak at gmail dot com

still do not work correctly, there is no output even with 
E_ALL



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/32223

-- 
Edit this bug report at http://bugs.php.net/?id=32223&edit=1


#32223 [Fbk->Opn]: weird behaviour of pg_last_notice

2005-09-23 Thread valiak at gmail dot com
 ID:   32223
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PostgreSQL related
 Operating System: *
 PHP Version:  5CVS-2005-09-02
 New Comment:

the code snipped is presented in the bug report and is
quite easily reproduced on any machine with postgresql and
php5 I have tried, there were some other users confirming 
the problem, but are deleted from the bug report. 
It has "external resources such as databases, etc." 
because it is a database related bug!! 
I use "Short tags" because it is written here   
http://www.php.net/manual/en/language.basic-syntax.php   
that I can use them.  
  
Anyway . here is even more short version of the 
bug 
(but still with external resources!!! and two files)  
http://ce.noxis.net/pg_last_notice/test.php // the main 
file 
http://ce.noxis.net/pg_last_notice/test.inc.php // the 
include 
http://ce.noxis.net/pg_last_notice/db.sql // the database 
schema - only one function


Previous Comments:


[2005-09-21 12:24:39] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





[2005-09-02 14:48:49] valiak at gmail dot com

still do not work correctly, there is no output even with 
E_ALL



[2005-08-30 13:05:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And set error_reporting to E_ALL..




[2005-03-08 13:28:02] valiak at gmail dot com

if you switch the places of include_once and define there is no bug

there is no difference in the behaviour if include_once is changed to
include or require_once or require



[2005-03-07 18:13:54] valiak at gmail dot com

Description:

i've tried to localize to as smallest code as I could
the correct result happens even if you comment the include line or the
global directive or not using exceptions ... (there are few other
modifications too)

it happens with the cli version and with the apache module version

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.0.3 (cli) (built: Mar  2 2005 13:13:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

compiled with
./configure --with-gettext --with-oci8 --with-apxs=/usr/bin/apxs
--with-gd --with-pgsql --with-readline --with-zlib --with-mysql=/usr
--with-
jpeg-dir --with-png-dir --enable-mbstring --enable-sockets
--enable-pcntl --enable-sigchild --with-exec-dir=/usr/bin
--with-config-file-path=
/etc/php5


pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.0.1
Multibyte character support => enabled
SSL support => disabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => Off => Off
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited


if some more info is needed tell me what to do?

Reproduce code:
---
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.inc.php

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.php
getMessage(), 1;
}

?>


Expected result:

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
NOTICE:  11


Actual result:
--
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1






-- 
Edit this bug report at http://bugs.php.net/?id=32223&edit=1


#32223 [Fbk->Opn]: weird behaviour of pg_last_notice

2005-09-02 Thread valiak at gmail dot com
 ID:   32223
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PostgreSQL related
 Operating System: *
-PHP Version:  5CVS-2005-05-14
+PHP Version:  php5-200509021030
 New Comment:

still do not work correctly, there is no output even with 
E_ALL


Previous Comments:


[2005-08-30 13:05:52] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And set error_reporting to E_ALL..




[2005-03-08 13:28:02] valiak at gmail dot com

if you switch the places of include_once and define there is no bug

there is no difference in the behaviour if include_once is changed to
include or require_once or require



[2005-03-07 18:13:54] valiak at gmail dot com

Description:

i've tried to localize to as smallest code as I could
the correct result happens even if you comment the include line or the
global directive or not using exceptions ... (there are few other
modifications too)

it happens with the cli version and with the apache module version

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.0.3 (cli) (built: Mar  2 2005 13:13:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

compiled with
./configure --with-gettext --with-oci8 --with-apxs=/usr/bin/apxs
--with-gd --with-pgsql --with-readline --with-zlib --with-mysql=/usr
--with-
jpeg-dir --with-png-dir --enable-mbstring --enable-sockets
--enable-pcntl --enable-sigchild --with-exec-dir=/usr/bin
--with-config-file-path=
/etc/php5


pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.0.1
Multibyte character support => enabled
SSL support => disabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => Off => Off
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited


if some more info is needed tell me what to do?

Reproduce code:
---
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.inc.php

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.php
getMessage(), 1;
}

?>


Expected result:

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
NOTICE:  11


Actual result:
--
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1






-- 
Edit this bug report at http://bugs.php.net/?id=32223&edit=1


#32223 [Fbk->Opn]: weird behaviour of pg_last_notice

2005-05-13 Thread valiak at gmail dot com
 ID:   32223
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PostgreSQL related
 Operating System: *
-PHP Version:  5CVS-2005-03-08
+PHP Version:  5CVS-2005-05-13
 New Comment:

the problem still exists ...

PHP 5.1.0-dev (cli) (built: May 14 2005 02:09:08)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies


Previous Comments:


[2005-05-13 13:08:59] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip





[2005-03-08 13:28:02] valiak at gmail dot com

if you switch the places of include_once and define there is no bug

there is no difference in the behaviour if include_once is changed to
include or require_once or require



[2005-03-08 08:59:31] valiak at gmail dot com

the problem still exists :-(

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.1.0-dev (cli) (built: Mar  8 2005 09:54:24)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies



[2005-03-07 20:06:21] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip





[2005-03-07 18:13:54] valiak at gmail dot com

Description:

i've tried to localize to as smallest code as I could
the correct result happens even if you comment the include line or the
global directive or not using exceptions ... (there are few other
modifications too)

it happens with the cli version and with the apache module version

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.0.3 (cli) (built: Mar  2 2005 13:13:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

compiled with
./configure --with-gettext --with-oci8 --with-apxs=/usr/bin/apxs
--with-gd --with-pgsql --with-readline --with-zlib --with-mysql=/usr
--with-
jpeg-dir --with-png-dir --enable-mbstring --enable-sockets
--enable-pcntl --enable-sigchild --with-exec-dir=/usr/bin
--with-config-file-path=
/etc/php5


pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.0.1
Multibyte character support => enabled
SSL support => disabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => Off => Off
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited


if some more info is needed tell me what to do?

Reproduce code:
---
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.inc.php

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.php
getMessage(), 1;
}

?>


Expected result:

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
NOTICE:  11


Actual result:
--
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1






-- 
Edit this bug report at http://bugs.php.net/?id=32223&edit=1


#32223 [NEW]: weird behaviour of pg_last_notice

2005-04-12 Thread valiak at gmail dot com
From: valiak at gmail dot com
Operating system: debian linux sarge
PHP version:  5.0.3
PHP Bug Type: PostgreSQL related
Bug description:  weird behaviour of pg_last_notice

Description:

i've tried to localize to as smallest code as I could
the correct result happens even if you comment the include line or the
global directive or not using exceptions ... (there are few other
modifications too)

it happens with the cli version and with the apache module version

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.0.3 (cli) (built: Mar  2 2005 13:13:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

compiled with
./configure --with-gettext --with-oci8 --with-apxs=/usr/bin/apxs --with-gd
--with-pgsql --with-readline --with-zlib --with-mysql=/usr --with-
jpeg-dir --with-png-dir --enable-mbstring --enable-sockets --enable-pcntl
--enable-sigchild --with-exec-dir=/usr/bin --with-config-file-path=
/etc/php5


pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.0.1
Multibyte character support => enabled
SSL support => disabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => Off => Off
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited


if some more info is needed tell me what to do?

Reproduce code:
---
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.inc.php

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.php
getMessage(), 1;
}

?>


Expected result:

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
NOTICE:  11


Actual result:
--
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1


-- 
Edit bug report at http://bugs.php.net/?id=32223&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32223&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32223&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32223&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32223&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32223&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32223&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32223&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32223&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32223&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32223&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32223&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32223&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32223&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32223&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32223&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32223&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32223&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32223&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32223&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32223&r=mysqlcfg


#32223 [Opn]: weird behaviour of pg_last_notice

2005-03-08 Thread valiak at gmail dot com
 ID:   32223
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
 Status:   Open
 Bug Type: PostgreSQL related
 Operating System: Irrelevant
 PHP Version:  5.0.3
 New Comment:

if you switch the places of include_once and define there is no bug

there is no difference in the behaviour if include_once is changed to
include or require_once or require


Previous Comments:


[2005-03-08 13:08:12] [EMAIL PROTECTED]

I'm reproducing the bug too.

I'm using PHP 5.0.0 (on Windows) and PostgreSQL 7.4.7 (on Linux):

PHP 5.0.0 (cli) (built: Jul 13 2004 21:39:58)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.0, Copyright (c) 1998-2004 Zend Technologies

Even without the exceptions pg_last_notice() doesn't work as expected.
Try the following code:



It gives me bool(false) on my windows server (PHP 5) and string(14)
"NOTICE:  1" on a linux server (PHP 4.3.9).

If I comment the include line, or move the commands outside of the
function body, it works just fine.

----

[2005-03-08 12:22:44] valiak at gmail dot com

I reproduced the problem on

Darwin ceco.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22
14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC  Power
Macintosh powerpc

with the same php and postgresql installed

----

[2005-03-08 08:59:31] valiak at gmail dot com

the problem still exists :-(

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.1.0-dev (cli) (built: Mar  8 2005 09:54:24)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies



[2005-03-07 20:06:21] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



----

[2005-03-07 18:13:54] valiak at gmail dot com

Description:

i've tried to localize to as smallest code as I could
the correct result happens even if you comment the include line or the
global directive or not using exceptions ... (there are few other
modifications too)

it happens with the cli version and with the apache module version

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.0.3 (cli) (built: Mar  2 2005 13:13:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

compiled with
./configure --with-gettext --with-oci8 --with-apxs=/usr/bin/apxs
--with-gd --with-pgsql --with-readline --with-zlib --with-mysql=/usr
--with-
jpeg-dir --with-png-dir --enable-mbstring --enable-sockets
--enable-pcntl --enable-sigchild --with-exec-dir=/usr/bin
--with-config-file-path=
/etc/php5


pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.0.1
Multibyte character support => enabled
SSL support => disabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => Off => Off
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited


if some more info is needed tell me what to do?

Reproduce code:
---
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.inc.php

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.php
getMessage(), 1;
}

?>


Expected result:

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
NOTICE:  11


Actual result:
--
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1






-- 
Edit this bug report at http://bugs.php.net/?id=32223&edit=1


#32223 [Opn]: weird behaviour of pg_last_notice

2005-03-08 Thread valiak at gmail dot com
 ID:   32223
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
 Status:   Open
 Bug Type: PostgreSQL related
 Operating System: debian linux sarge
 PHP Version:  5.0.3
 New Comment:

I reproduced the problem on

Darwin ceco.local 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22
14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC  Power
Macintosh powerpc

with the same php and postgresql installed


Previous Comments:


[2005-03-08 08:59:31] valiak at gmail dot com

the problem still exists :-(

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.1.0-dev (cli) (built: Mar  8 2005 09:54:24)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies



[2005-03-07 20:06:21] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip





[2005-03-07 18:13:54] valiak at gmail dot com

Description:

i've tried to localize to as smallest code as I could
the correct result happens even if you comment the include line or the
global directive or not using exceptions ... (there are few other
modifications too)

it happens with the cli version and with the apache module version

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.0.3 (cli) (built: Mar  2 2005 13:13:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

compiled with
./configure --with-gettext --with-oci8 --with-apxs=/usr/bin/apxs
--with-gd --with-pgsql --with-readline --with-zlib --with-mysql=/usr
--with-
jpeg-dir --with-png-dir --enable-mbstring --enable-sockets
--enable-pcntl --enable-sigchild --with-exec-dir=/usr/bin
--with-config-file-path=
/etc/php5


pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.0.1
Multibyte character support => enabled
SSL support => disabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => Off => Off
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited


if some more info is needed tell me what to do?

Reproduce code:
---
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.inc.php

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.php
getMessage(), 1;
}

?>


Expected result:

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
NOTICE:  11


Actual result:
--
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1






-- 
Edit this bug report at http://bugs.php.net/?id=32223&edit=1


#32223 [Fbk->Opn]: weird behaviour of pg_last_notice

2005-03-07 Thread valiak at gmail dot com
 ID:   32223
 User updated by:  valiak at gmail dot com
 Reported By:  valiak at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: PostgreSQL related
 Operating System: debian linux sarge
 PHP Version:  5.0.3
 New Comment:

the problem still exists :-(

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.1.0-dev (cli) (built: Mar  8 2005 09:54:24)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies


Previous Comments:


[2005-03-07 20:06:21] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip





[2005-03-07 18:13:54] valiak at gmail dot com

Description:

i've tried to localize to as smallest code as I could
the correct result happens even if you comment the include line or the
global directive or not using exceptions ... (there are few other
modifications too)

it happens with the cli version and with the apache module version

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php -v
PHP 5.0.3 (cli) (built: Mar  2 2005 13:13:40)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies

compiled with
./configure --with-gettext --with-oci8 --with-apxs=/usr/bin/apxs
--with-gd --with-pgsql --with-readline --with-zlib --with-mysql=/usr
--with-
jpeg-dir --with-png-dir --enable-mbstring --enable-sockets
--enable-pcntl --enable-sigchild --with-exec-dir=/usr/bin
--with-config-file-path=
/etc/php5


pgsql

PostgreSQL Support => enabled
PostgreSQL(libpq) Version => 8.0.1
Multibyte character support => enabled
SSL support => disabled
Active Persistent Links => 0
Active Links => 0

Directive => Local Value => Master Value
pgsql.allow_persistent => Off => Off
pgsql.auto_reset_persistent => Off => Off
pgsql.ignore_notice => Off => Off
pgsql.log_notice => Off => Off
pgsql.max_links => Unlimited => Unlimited
pgsql.max_persistent => Unlimited => Unlimited


if some more info is needed tell me what to do?

Reproduce code:
---
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.inc.php

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ cat test.php
getMessage(), 1;
}

?>


Expected result:

[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
NOTICE:  11


Actual result:
--
[EMAIL PROTECTED] ~/tmp/pg_last_notice
$ php test.php
1






-- 
Edit this bug report at http://bugs.php.net/?id=32223&edit=1