#49370 [NEW]: Missing constants MYSQL_CLIENT_MULTI_RESULTS

2009-08-26 Thread dg at artegic dot de
From: dg at artegic dot de
Operating system: 
PHP version:  5.2.10
PHP Bug Type: MySQL related
Bug description:  Missing constants MYSQL_CLIENT_MULTI_RESULTS

Description:

When dealing with MySQL STORED PROCEDURES it's often necessary to set 
flags as a parameter for mysql_connect which are not (yet?) defined in 
the current versions:

CLIENT_MULTI_STATEMENT (65536) and
CLIENT_MULTI_RESULTS (131072)

Otherwise the application will return a "PROCEDURE xxx can't return a 
result set in the given context" error, even if a CALL from phpMyAdmin 
or any other client is working without problems.


Reproduce code:
---
  mysql_connect ($host, $user, $pw, $newlink);
  mysql_unbuffered_query ('CALL myproc()');

won't work, but

  mysql_connect ($host, $user, $pw, $newlink, 131072)
  mysql_unbuffered_query ('CALL myproc()');

will work just as expected.



-- 
Edit bug report at http://bugs.php.net/?id=49370&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=49370&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=49370&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=49370&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=49370&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49370&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=49370&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=49370&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=49370&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=49370&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=49370&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=49370&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=49370&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=49370&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=49370&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=49370&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=49370&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=49370&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=49370&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=49370&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=49370&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=49370&r=mysqlcfg



#46952 [NoF->Opn]: mysqlnd compile failure with suncc

2009-07-03 Thread dg at artegic dot de
 ID:   46952
 User updated by:  dg at artegic dot de
 Reported By:  dg at artegic dot de
-Status:   No Feedback
+Status:   Open
 Bug Type: MySQL related
 Operating System: Solaris 10
-PHP Version:  5.3CVS-2008-12-27 (snap)
+PHP Version:  5.3.0
 Assigned To:  mysql
 New Comment:

Set the status to OPEN again.


Previous Comments:


[2009-07-03 06:35:09] dg at artegic dot de

Same error with php 5.3.0, suncc:

ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo 
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd.h", line 381: warning: syntax 
error:  empty declaration
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 82: undefined 
symbol: MYSQLND_LLU_SPEC
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 82: warning: 
improper pointer/integer combination: arg #2
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 90: undefined 
symbol: MYSQLND_LLU_SPEC
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 90: warning: 
improper pointer/integer combination: arg #2
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 111: undefined 
symbol: MYSQLND_LL_SPEC
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 111: warning: 
improper pointer/integer combination: arg #2
cc: acomp failed for /home/remote/compile/php-
5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c
*** Error code 1
make: Fatal error: Command failed for target 
`ext/mysqlnd/mysqlnd_ps_codec.lo'



[2009-06-29 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2009-06-22 00:22:50] d...@php.net

Please try using this CVS snapshot:

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

  http://windows.php.net/snapshots/



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

[2008-12-27 11:40:01] dg at artegic dot de

Description:

Using Sun Studio 12 C Compiler including latest bugfixes with Solaris 
10/x86 on a Sun Fire X2200 M2 (2 Dual Core AMD Opteron).

Configure script runs with no failures/warnings. If (and only if) 
using --with-mysql=mysqlnd compiling fails:

/bin/sh .../libtool --silent --preserve-dup-deps --mode=compile cc  -
Iext/mysqlnd/ -I.../ext/mysqlnd/ -DPHP_ATOM_INC -I.../include -
I.../main -I... -I.../ext/ereg/regex -I/opt/csw/include/libxml2 -
I/opt/csw/include -I.../ext/date/lib -I/opt/csw/include/freetype2 -
I.../ext/mbstring/oniguruma -I.../ext/mbstring/libmbfl -
I.../ext/mbstring/libmbfl/mbfl -I/usr/include/libxml2 -I.../TSRM -
I.../Zend  -D_POSIX_PTHREAD_SEMANTICS  -I/opt/csw/include -fsimple=2 -
xnorunpath -xO4 -xalias_level=basic -xipo=1 -xlibmopt -
xprefetch_level=1 -xprefetch=auto -xstrconst -xtarget=native -
zlazyload -DZTS   -c .../ext/mysqlnd/mysqlnd_ps_codec.c -o 
ext/mysqlnd/mysqlnd_ps_codec.lo 
".../ext/mysqlnd/mysqlnd.h", line 372: warning: syntax error:  empty 
declaration
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 82: undefined symbol: 
MYSQLND_LLU_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 82: warning: improper 
pointer/integer combination: arg #2
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 90: undefined symbol: 
MYSQLND_LLU_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 90: warning: improper 
pointer/integer combination: arg #2
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 111: undefined symbol: 
MYSQLND_LL_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 111: warning: improper 
pointer/integer combination: arg #2
cc: acomp failed for .../ext/mysqlnd/mysqlnd_ps_codec.c
*** Error code 1
make: Fatal error: Command failed for target 
`ext/mysqlnd/mysqlnd_ps_codec.lo'







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



#46952 [Com]: mysqlnd compile failure with suncc

2009-07-02 Thread dg at artegic dot de
 ID:   46952
 Comment by:   dg at artegic dot de
 Reported By:  dg at artegic dot de
 Status:   No Feedback
 Bug Type: MySQL related
 Operating System: Solaris 10
 PHP Version:  5.3CVS-2008-12-27 (snap)
 Assigned To:  mysql
 New Comment:

Same error with php 5.3.0, suncc:

ext/mysqlnd/mysqlnd_ps_codec.c -o ext/mysqlnd/mysqlnd_ps_codec.lo 
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd.h", line 381: warning: syntax 
error:  empty declaration
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 82: undefined 
symbol: MYSQLND_LLU_SPEC
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 82: warning: 
improper pointer/integer combination: arg #2
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 90: undefined 
symbol: MYSQLND_LLU_SPEC
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 90: warning: 
improper pointer/integer combination: arg #2
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 111: undefined 
symbol: MYSQLND_LL_SPEC
"xxx/php-5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c", line 111: warning: 
improper pointer/integer combination: arg #2
cc: acomp failed for /home/remote/compile/php-
5.3.0/ext/mysqlnd/mysqlnd_ps_codec.c
*** Error code 1
make: Fatal error: Command failed for target 
`ext/mysqlnd/mysqlnd_ps_codec.lo'


Previous Comments:


[2009-06-29 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2009-06-22 00:22:50] d...@php.net

Please try using this CVS snapshot:

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

  http://windows.php.net/snapshots/



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

[2008-12-27 11:40:01] dg at artegic dot de

Description:

Using Sun Studio 12 C Compiler including latest bugfixes with Solaris 
10/x86 on a Sun Fire X2200 M2 (2 Dual Core AMD Opteron).

Configure script runs with no failures/warnings. If (and only if) 
using --with-mysql=mysqlnd compiling fails:

/bin/sh .../libtool --silent --preserve-dup-deps --mode=compile cc  -
Iext/mysqlnd/ -I.../ext/mysqlnd/ -DPHP_ATOM_INC -I.../include -
I.../main -I... -I.../ext/ereg/regex -I/opt/csw/include/libxml2 -
I/opt/csw/include -I.../ext/date/lib -I/opt/csw/include/freetype2 -
I.../ext/mbstring/oniguruma -I.../ext/mbstring/libmbfl -
I.../ext/mbstring/libmbfl/mbfl -I/usr/include/libxml2 -I.../TSRM -
I.../Zend  -D_POSIX_PTHREAD_SEMANTICS  -I/opt/csw/include -fsimple=2 -
xnorunpath -xO4 -xalias_level=basic -xipo=1 -xlibmopt -
xprefetch_level=1 -xprefetch=auto -xstrconst -xtarget=native -
zlazyload -DZTS   -c .../ext/mysqlnd/mysqlnd_ps_codec.c -o 
ext/mysqlnd/mysqlnd_ps_codec.lo 
".../ext/mysqlnd/mysqlnd.h", line 372: warning: syntax error:  empty 
declaration
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 82: undefined symbol: 
MYSQLND_LLU_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 82: warning: improper 
pointer/integer combination: arg #2
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 90: undefined symbol: 
MYSQLND_LLU_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 90: warning: improper 
pointer/integer combination: arg #2
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 111: undefined symbol: 
MYSQLND_LL_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 111: warning: improper 
pointer/integer combination: arg #2
cc: acomp failed for .../ext/mysqlnd/mysqlnd_ps_codec.c
*** Error code 1
make: Fatal error: Command failed for target 
`ext/mysqlnd/mysqlnd_ps_codec.lo'







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



#48637 [NEW]: ext/standard/tests/file/bug27508.phpt fails if curlwrappers enabled

2009-06-22 Thread dg at artegic dot de
From: dg at artegic dot de
Operating system: 
PHP version:  5.2.10
PHP Bug Type: cURL related
Bug description:  ext/standard/tests/file/bug27508.phpt fails if curlwrappers 
enabled

Description:

make test produces the following error:

Fatal error: Out of memory (allocated -187170816) (tried to allocate -
190054388 bytes) in xxx/php-5.2.10/run-tests.php on line 1071



Reproduce code:
---
cURL Information => libcurl/7.19.4 OpenSSL/0.9.7d zlib/1.2.3

./configure \
--prefix=/php \
--with-config-file-path=/etc \
--with-curl \
--with-curlwrappers


Expected result:

cURL wrappers should work.


Actual result:
--
make -> no errors
make test -> fatal error


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



#48198 [Com]: error: 'MYSQLND_LLU_SPEC' undeclared

2009-05-14 Thread dg at artegic dot de
 ID:   48198
 Comment by:   dg at artegic dot de
 Reported By:  ajmiller at engr dot psu dot edu
 Status:   Assigned
 Bug Type: MySQL related
 Operating System: Mac OS X Server 10.5.6
 PHP Version:  5.3.0RC2
 Assigned To:  mysql
 New Comment:

Same with SUNCC / Solaris 10:

"/home/remote/compile/php5.3-
200905141630/ext/mysqlnd/mysqlnd_ps_codec.c", line 82: undefined
symbol: 
MYSQLND_LLU_SPEC
"/home/remote/compile/php5.3-
200905141630/ext/mysqlnd/mysqlnd_ps_codec.c", line 90: undefined
symbol: 
MYSQLND_LLU_SPEC
"/home/remote/compile/php5.3-
200905141630/ext/mysqlnd/mysqlnd_ps_codec.c", line 111: undefined 
symbol: MYSQLND_LL_SPEC
cc: acomp failed for /home/remote/compile/php5.3-
200905141630/ext/mysqlnd/mysqlnd_ps_codec.c


Previous Comments:


[2009-05-08 21:32:39] ajmiller at engr dot psu dot edu

Description:

Compiling with mysqlnd drivers failed. 
System: Mac OS X Server 10.5.6 on a G5 iMac with XCode 3.1.2

This bug is similar to that described in Bug #47992
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: 'MYSQLND_LLU_SPEC' 
undeclared (first use in this function)
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:111: error: 'MYSQLND_LL_SPEC' 
undeclared (first use in this function)

changing line 177 in ext/mysqlnd/mysqlnd_portability.h from
#if __powerpc64__ to #if __powerpc64__ || __ppc64__
and line 192 from 
#if __powerpc__  && !__powerpc64__ 
 to 
#if (__powerpc__ || __ppc__ ) && !(__powerpc64__ || __ppc64__)
resolves the error.






Reproduce code:
---
./configure '--prefix=/usr/local' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs'
'--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli'
'--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif'
'--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx'
'--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr'
'--with-config-file-path=/etc' '--sysconfdir=/private/etc'
'--with-mysql-sock=/var/mysql' '--with-mysqli=mysqlnd'
'--with-mysql=mysqlnd' '--with-openssl' '--with-xmlrpc'
'--with-xsl=/usr' '--with-pear'



Expected result:

Compile with out errors.

Actual result:
--
/bin/sh /Users/ajmiller/Desktop/php-5.3.0RC2/libtool --silent --
preserve-dup-deps --mode=compile gcc  -Iext/mysqlnd/ -
I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mysqlnd/ -DPHP_ATOM_INC -
I/Users/ajmiller/Desktop/php-5.3.0RC2/include -
I/Users/ajmiller/Desktop/php-5.3.0RC2/main -
I/Users/ajmiller/Desktop/php-5.3.0RC2 -I/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/ereg/regex -I/usr/include/libxml2 -
I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/date/lib -
I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mbstring/oniguruma -
I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mbstring/libmbfl -
I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mbstring/libmbfl/mbfl -
I/Users/ajmiller/Desktop/php-5.3.0RC2/ext/sqlite3/libsqlite -
I/Users/ajmiller/Desktop/php-5.3.0RC2/TSRM -
I/Users/ajmiller/Desktop/php-5.3.0RC2/Zend  -no-cpp-precomp  -O2 -
I/usr/include -fvisibility=hidden  -c /Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c -o 
ext/mysqlnd/mysqlnd_ps_codec.lo 
In file included from /Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd.h:59,
 from /Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:23:
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:471:1: warning: "float8get"

redefined
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:423:1: warning: this is the

location of the previous definition
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:472:1: warning: 
"float8store" redefined
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_portability.h:413:1: warning: this is the

location of the previous definition
/Users/ajmiller/Desktop/php-5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c: 
In function 'ps_fetch_from_1_to_8_bytes':
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: 'MYSQLND_LLU_SPEC' 
undeclared (first use in this function)
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: (Each undeclared 
identifier is reported only once
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:82: error: for each function 
it appears in.)
/Users/ajmiller/Desktop/php-
5.3.0RC2/ext/mysqlnd/mysqlnd_ps_codec.c:111: error: 'MYSQLND_LL_SPEC' 
undeclared (first use in this function)
make: *** [ext/mysqlnd/mysqlnd_ps_codec.lo] Error 1





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



#48200 [Fbk->Opn]: Compilation fails on mbstring.c

2009-05-10 Thread dg at artegic dot de
 ID:   48200
 User updated by:  dg at artegic dot de
 Reported By:  dg at artegic dot de
-Status:   Feedback
+Status:   Open
 Bug Type: mbstring related
 Operating System: Solaris 10
 PHP Version:  5.3.0RC2
 New Comment:

No problem compiling php5.2-200905100630, EVEN WITH CFLAGS="-i ..."
(I had to remove the mysql native driver).

Compiling php5.3-200905100630 WITH EMPTY CFLAGS (CFLAGS="") leads to 
the same "undefined symbol" in mbstring.c error.

Compiling WITHOUT ANY CFLAGS didn't work either:

"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c", 
line 4757: undefined symbol: php_mb_encoding_detector
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c", 
line 4757: warning: improper pointer/integer combination: op "="
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c", 
line 4758: undefined symbol: php_mb_encoding_converter
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c", 
line 4758: warning: improper pointer/integer combination: op "="
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c", 
line 4759: undefined symbol: php_mb_oddlen
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c", 
line 4759: warning: improper pointer/integer combination: op "="
"/home/remote/compile/php5.3-200905100630/ext/mbstring/mbstring.c", 
line 4787: warning: argument #3 is incompatible with prototype:


Previous Comments:


[2009-05-09 21:04:21] j...@php.net

Drop this first: CFLAGS="-i -zlazyload -w"
Then get the latest CVS snapshots of both PHP 5.2 and 5.3 branches
here:
http://snaps.php.net/ and test your configure line with both. 




[2009-05-09 11:48:05] dg at artegic dot de

Description:

Compilation of mbstring.c fails on Sun C 5.9 SunOS_i386 Patch 124868-09

2009/04/14, independent of compiler settings i.e. "-fast"




Reproduce code:
---
CFLAGS="-i -zlazyload -w" \
./configure \
--prefix=/xxx \
--with-config-file-path=/xxx \
--enable-mysqlnd-threading \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-zlib \
--with-openssl=/xxx \
--with-apxs2=/xxx \
--with-curl \
--with-curlwrappers \
--with-pspell \
--with-tidy=/xxx \
--with-iconv \
--with-gd \
--with-jpeg-dir \
--enable-gd-native-ttf \
--with-freetype-dir=/xxx \
--enable-pcntl \
--enable-mbstring \
--enable-zend-multibyte \
--enable-zip \
--without-pear \
--without-sqlite \
--without-sqlite3 \
--without-cdb \
--disable-posix \
--disable-pdo \
--disable-cgi \
--disable-ipv6 \
--disable-json \
--disable-phar


Actual result:
--
/bin/sh /home/remote/compile/php5.3-200905090630/libtool --silent --
preserve-dup-deps --mode=compile cc  -Iext/mbstring/ -
I/home/remote/compile/php5.3-200905090630/ext/mbstring/ -DPHP_ATOM_INC

-I/home/remote/compile/php5.3-200905090630/include -
I/home/remote/compile/php5.3-200905090630/main -
I/home/remote/compile/php5.3-200905090630 -
I/home/remote/compile/php5.3-200905090630/ext/ereg/regex -
I/usr/include/libxml2 -I/usr/sfw/include -I/usr/local/include -
I/home/remote/compile/php5.3-200905090630/ext/date/lib -
I/usr/sfw/include/freetype2 -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/oniguruma -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/libmbfl -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -
I/home/remote/compile/php5.3-200905090630/TSRM -
I/home/remote/compile/php5.3-200905090630/Zend  -
D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -i -zlazyload -w -DZTS   -c 
/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c -o 
ext/mbstring/mbstring.lo 
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c", 
line 4757: undefined symbol: php_mb_encoding_detector
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c", 
line 4758: undefined symbol: php_mb_encoding_converter
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c", 
line 4759: undefined symbol: php_mb_oddlen
cc: acomp failed for /home/remote/compile/php5.3-
200905090630/ext/mbstring/mbstring.c
*** Error code 1
make: Fatal error: Command failed for target 
`ext/mbstring/mbstring.lo'






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



#48200 [NEW]: Compilation fails on mbstring.c

2009-05-09 Thread dg at artegic dot de
From: dg at artegic dot de
Operating system: Solaris 10
PHP version:  5.3.0RC2
PHP Bug Type: Compile Failure
Bug description:  Compilation fails on mbstring.c

Description:

Compilation of mbstring.c fails on Sun C 5.9 SunOS_i386 Patch 124868-09 
2009/04/14, independent of compiler settings i.e. "-fast"




Reproduce code:
---
CFLAGS="-i -zlazyload -w" \
./configure \
--prefix=/xxx \
--with-config-file-path=/xxx \
--enable-mysqlnd-threading \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-zlib \
--with-openssl=/xxx \
--with-apxs2=/xxx \
--with-curl \
--with-curlwrappers \
--with-pspell \
--with-tidy=/xxx \
--with-iconv \
--with-gd \
--with-jpeg-dir \
--enable-gd-native-ttf \
--with-freetype-dir=/xxx \
--enable-pcntl \
--enable-mbstring \
--enable-zend-multibyte \
--enable-zip \
--without-pear \
--without-sqlite \
--without-sqlite3 \
--without-cdb \
--disable-posix \
--disable-pdo \
--disable-cgi \
--disable-ipv6 \
--disable-json \
--disable-phar


Actual result:
--
/bin/sh /home/remote/compile/php5.3-200905090630/libtool --silent --
preserve-dup-deps --mode=compile cc  -Iext/mbstring/ -
I/home/remote/compile/php5.3-200905090630/ext/mbstring/ -DPHP_ATOM_INC 
-I/home/remote/compile/php5.3-200905090630/include -
I/home/remote/compile/php5.3-200905090630/main -
I/home/remote/compile/php5.3-200905090630 -
I/home/remote/compile/php5.3-200905090630/ext/ereg/regex -
I/usr/include/libxml2 -I/usr/sfw/include -I/usr/local/include -
I/home/remote/compile/php5.3-200905090630/ext/date/lib -
I/usr/sfw/include/freetype2 -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/oniguruma -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/libmbfl -I/home/remote/compile/php5.3-
200905090630/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -
I/home/remote/compile/php5.3-200905090630/TSRM -
I/home/remote/compile/php5.3-200905090630/Zend  -
D_POSIX_PTHREAD_SEMANTICS  -I/usr/include -i -zlazyload -w -DZTS   -c 
/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c -o 
ext/mbstring/mbstring.lo 
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c", 
line 4757: undefined symbol: php_mb_encoding_detector
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c", 
line 4758: undefined symbol: php_mb_encoding_converter
"/home/remote/compile/php5.3-200905090630/ext/mbstring/mbstring.c", 
line 4759: undefined symbol: php_mb_oddlen
cc: acomp failed for /home/remote/compile/php5.3-
200905090630/ext/mbstring/mbstring.c
*** Error code 1
make: Fatal error: Command failed for target 
`ext/mbstring/mbstring.lo'


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



#46952 [NEW]: mysqlnd compile failure with suncc

2008-12-27 Thread dg at artegic dot de
From: dg at artegic dot de
Operating system: Solaris 10
PHP version:  5.3CVS-2008-12-27 (snap)
PHP Bug Type: Compile Failure
Bug description:  mysqlnd compile failure with suncc

Description:

Using Sun Studio 12 C Compiler including latest bugfixes with Solaris 
10/x86 on a Sun Fire X2200 M2 (2 Dual Core AMD Opteron).

Configure script runs with no failures/warnings. If (and only if) 
using --with-mysql=mysqlnd compiling fails:

/bin/sh .../libtool --silent --preserve-dup-deps --mode=compile cc  -
Iext/mysqlnd/ -I.../ext/mysqlnd/ -DPHP_ATOM_INC -I.../include -
I.../main -I... -I.../ext/ereg/regex -I/opt/csw/include/libxml2 -
I/opt/csw/include -I.../ext/date/lib -I/opt/csw/include/freetype2 -
I.../ext/mbstring/oniguruma -I.../ext/mbstring/libmbfl -
I.../ext/mbstring/libmbfl/mbfl -I/usr/include/libxml2 -I.../TSRM -
I.../Zend  -D_POSIX_PTHREAD_SEMANTICS  -I/opt/csw/include -fsimple=2 -
xnorunpath -xO4 -xalias_level=basic -xipo=1 -xlibmopt -
xprefetch_level=1 -xprefetch=auto -xstrconst -xtarget=native -
zlazyload -DZTS   -c .../ext/mysqlnd/mysqlnd_ps_codec.c -o 
ext/mysqlnd/mysqlnd_ps_codec.lo 
".../ext/mysqlnd/mysqlnd.h", line 372: warning: syntax error:  empty 
declaration
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 82: undefined symbol: 
MYSQLND_LLU_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 82: warning: improper 
pointer/integer combination: arg #2
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 90: undefined symbol: 
MYSQLND_LLU_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 90: warning: improper 
pointer/integer combination: arg #2
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 111: undefined symbol: 
MYSQLND_LL_SPEC
".../ext/mysqlnd/mysqlnd_ps_codec.c", line 111: warning: improper 
pointer/integer combination: arg #2
cc: acomp failed for .../ext/mysqlnd/mysqlnd_ps_codec.c
*** Error code 1
make: Fatal error: Command failed for target 
`ext/mysqlnd/mysqlnd_ps_codec.lo'



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



#43850 [NEW]: Error #43105 still exists! File close problem

2008-01-14 Thread dg at artegic dot de
From: dg at artegic dot de
Operating system: Solaris 10 x86
PHP version:  5.2CVS-2008-01-15 (snap)
PHP Bug Type: Apache2 related
Bug description:  Error #43105 still exists! File close problem

Description:

PHP (php5.2-200801141730) is still not closing open files, resulting in 
an email-related error after a while...as mentioned in error #43105:

"Could not execute mail delivery program '/usr/lib/sendmail -t -i'"

lsof -u daemon|grep httpd|wc -l
3937

...still growing...

Using Apache 2.2.6, mpm-worker, Solaris 10 x86.


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


#40449 [Fbk->Csd]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

2007-02-13 Thread dg at artegic dot de
 ID:   40449
 User updated by:  dg at artegic dot de
 Reported By:  dg at artegic dot de
-Status:   Feedback
+Status:   Closed
 Bug Type: Reproducible crash
 Operating System: SunsOS 5.9
 PHP Version:  5.2.1
 New Comment:

The error is libtidy related. Thanks for your help!


Previous Comments:


[2007-02-13 09:49:04] [EMAIL PROTECTED]

Also cannot reproduce on Solaris 8 (using libtidy from CVS).



[2007-02-12 23:10:54] [EMAIL PROTECTED]

can you please try with libtidy from cvs
(http://sf.net/cvs/?group_id=27659) please? libtidy uses php emalloc
calls, so it is probable that the error is in tidy itself.
(I couldn't try myself yet, because my other pc is not on-line..)



[2007-02-12 19:34:03] [EMAIL PROTECTED]

Works perfectly fine on Linux.



[2007-02-12 19:17:33] dg at artegic dot de

Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same 
result...



[2007-02-12 18:15:14] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





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

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


#40449 [Fbk->Opn]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

2007-02-12 Thread dg at artegic dot de
 ID:   40449
 User updated by:  dg at artegic dot de
 Reported By:  dg at artegic dot de
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: SunsOS 5.9
 PHP Version:  5.2.1
 New Comment:

Tried the CVS snapshot PHP 5.2.2-dev 200702121730 - same 
result...


Previous Comments:


[2007-02-12 18:15:14] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2007-02-12 18:10:53] dg at artegic dot de

Description:

Script produces error message: "zend_mm_heap corrupted"


Configure Command =>  './configure' '--disable-all' '--
disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
shared' '--enable-thread-safety' '--enable-mbstring' '--
enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
with-curlwrappers' '--with-dom' '--with-curl' '--without-
sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


tidy
Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21 
2007/01/23 19:23:29 nlopess Exp $)
tidy.clean_output => no value => no value
tidy.default_config => no value => no value


Reproduce code:
---

a html document
 true,
   'output-xhtml'  => true,
   'wrap'  => 200);
$tidy = new tidy;
$tidy->parseString($html, $config, 'utf8');
$tidy->cleanRepair();
echo $tidy;
?>

Actual result:
--
Sorry - no GDB backtrace on this machine...






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


#40449 [NEW]: libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

2007-02-12 Thread dg at artegic dot de
From: dg at artegic dot de
Operating system: SunsOS 5.9
PHP version:  5.2.1
PHP Bug Type: Reproducible crash
Bug description:  libTidy Rel. 2007-01-23 produces "zend_mm_heap corrupted"

Description:

Script produces error message: "zend_mm_heap corrupted"


Configure Command =>  './configure' '--disable-all' '--
disable-cgi' '--disable-ipv6' '--enable-static' '--enable-
shared' '--enable-thread-safety' '--enable-mbstring' '--
enable-mbregex' '--with-pcre-regex' '--with-zlib' '--with-
iconv' '--enable-libxml' '--enable-xml' '--with-libxml-dir=/
usr/local/lib' '--with-tidy' '--enable-zend-multibyte' '--
with-curlwrappers' '--with-dom' '--with-curl' '--without-
sqlite' '--without-pdo-sqlite' '--with-mysql=/usr/local/
mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config'


tidy
Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.8.2.21 
2007/01/23 19:23:29 nlopess Exp $)
tidy.clean_output => no value => no value
tidy.default_config => no value => no value


Reproduce code:
---

a html document
 true,
   'output-xhtml'  => true,
   'wrap'  => 200);
$tidy = new tidy;
$tidy->parseString($html, $config, 'utf8');
$tidy->cleanRepair();
echo $tidy;
?>

Actual result:
--
Sorry - no GDB backtrace on this machine...


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