Bug #60863 [Opn]: mysqlnd does not compile in the combination NTS & Debug (Windows)

2012-01-23 Thread cseiler
Edit report at https://bugs.php.net/bug.php?id=60863&edit=1

 ID: 60863
 Updated by: csei...@php.net
 Reported by:csei...@php.net
 Summary:mysqlnd does not compile in the combination NTS &
 Debug (Windows)
 Status: Open
 Type:   Bug
 Package:MySQL related
 Operating System:   Windows XP
 PHP Version:5.4SVN-2012-01-23 (SVN)
 Block user comment: N
 Private report: N

 New Comment:

The following error messages are produced by the VC9 compiler (messages 
unfortunately in German, but "nichtdeklarierter Bezeichner" means "undeclared 
identifier"):

d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2143: Syntaxfehler: Es fehlt ';' vor 'Typ'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2275: 'uint64_t': UngÃŒltige Verwendung dieses Typs als Ausdruck
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\win32\php_stdint.h(87): Siehe 
Deklaration von 'uint64_t'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner '__dbg_prof_start'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2065: '__dbg_prof_start': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2275: 'zend_bool': UngÃŒltige Verwendung dieses Typs als Ausdruck
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\zend\zend_types.h(25): Siehe 
Deklaration von 'zend_bool'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'dbg_skip_trace'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2065: 'dbg_skip_trace': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2065: 'dbg_skip_trace': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2065: '__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
warning C4133: 'Funktion': Inkompatible Typen - von 'int *' zu 'timeval *'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2065: '__dbg_prof_start': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2065: '__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2224: Der linke Teil von '.tv_sec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2065: '__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(100) : 
error C2224: Der linke Teil von '.tv_usec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : 
error C2065: '__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : 
warning C4133: 'Funktion': Inkompatible Typen - von 'int *' zu 'timeval *'
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : 
error C2065: '__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : 
error C2224: Der linke Teil von '.tv_sec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : 
error C2065: '__dbg_prof_tp': nichtdeklarierter Bezeichner
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : 
error C2224: Der linke Teil von '.tv_usec' muss eine Struktur/Union sein
d:\php-sdk\php54dev\vc9\x86\php5.4-svn\ext\mysqlnd\mysqlnd_driver.c(104) : 
error C2065: '__dbg_prof_start': nichtdeklarierter Bezeichner


Previous Comments:

[2012-01-23 23:11:44] csei...@php.net

Description:

The mysqlnd driver does not compile in the combination NTS (thread UNsafe) + 
Debug build under Microsoft Windows XP. (WinSDK 6.1, VC9 SP1 Pro)

See  for further details 
and discussion.

The following configure line was used:

cscript /nologo configure.js
 "--disable-phar"
 "--disable-ipv6"
 "--disable-zts"
 "--enable-cgi"
 "--disable-bcmath"
 "--disable-calendar"
 "--disable-odbc"
 "--disable-tokenizer"
 "--disable-xmlreader"
 "--disable-xmlwriter"
 "--without-wddx"
 "--enable-debug"
 "--enable-cli-win32"
 "--enable-pdo"
 "--with-openssl"
 "--with-php-build=..\deps"
 "--with-libxml"
 "--with-pdo-sqlite"

It chokes on the following two lines:

mysqlnd_driver.c, 100:
DBG_ENTER("mysqlnd_error_list_pdtor");

mysqlnd_driver.c, 104:
DBG_VOID_RETURN;

Debug + ZTS (thread safe

Bug #51576 [Asn->Fbk]: compile failure on zend_float.c

2010-04-22 Thread cseiler
Edit report at http://bugs.php.net/bug.php?id=51576&edit=1

 ID:   51576
 Updated by:   csei...@php.net
 Reported by:  i2r at pacbell dot net
 Summary:  compile failure on zend_float.c
-Status:   Assigned
+Status:   Feedback
 Type: Bug
 Package:  Compile Failure
 Operating System: AIX 5.3
 PHP Version:  5.3.2
 Assigned To:  cseiler

 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Since I don't have Visual Age myself, I'd appreciate it if you could
provide the following pieces of information:



* On which operating system are you using Visual Age?

* Which steps did you take to compile PHP? configure & make? If so, with
which configure options?


Previous Comments:

[2010-04-22 02:14:42] ka...@php.net

Christian, here is some feedback for the rounding patch ;-)


[2010-04-16 23:02:21] i2r at pacbell dot net

version of zend_float.c



/* $Id: zend_float.c 293155 2010-01-05 20:46:53Z sebastian $ */


[2010-04-16 21:39:59] i2r at pacbell dot net

Description:

Compiler  IBM visual age ver 6

".../php-5.3.2/Zend/zend_float.c", line 33.9: 1506-579 (W) The __asm
directive is ignored.

".../php-5.3.2/Zend/zend_float.c", line 34.9: 1506-579 (W) The __asm
directive is ignored.

".../php-5.3.2/Zend/zend_float.c", line 44.10: 1506-276 (S) Syntax
error: possible missing 'while'?

".../php-5.3.2/Zend/zend_float.c", line 48.17: 1506-579 (W) The __asm
directive is ignored.

".../php-5.3.2/Zend/zend_float.c", line 51.9: 1506-276 (S) Syntax error:
possible missing 'while'?

".../php-5.3.2/Zend/zend_float.c", line 55.1: 1506-276 (S) Syntax error:
possible missing 'while'?

".../php-5.3.2/Zend/zend_float.c", line 62.9: 1506-579 (W) The __asm
directive is ignored.

".../php-5.3.2/Zend/zend_float.c", line 64.10: 1506-204 (S) Unexpected
end of file.

make: *** [Zend/zend_float.lo] Error 1







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


#46980 [Asn->Fbk]: Rounding Error

2008-12-31 Thread cseiler
 ID:   46980
 Updated by:   csei...@php.net
 Reported By:  gimmicklessgpt at gmail dot com
-Status:   Assigned
+Status:   Feedback
 Bug Type: Math related
 Operating System: Linux
 PHP Version:  5.2.8
 Assigned To:  cseiler
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


I cannot reproduce this issue with PHP 5.2.8. Could you check again if
the version used was actually PHP 5.2.8? If so, could you please give
some more details on the operating system and/or environment that was
used? (i.e. also the processor architecture etc.)

That said: PHP's rounding behaviour improved somewhat in 5.2.7 and
significantly in 5.3.0 alpha 3. I'm quite certain the problem you
describe is fixed in 5.3.0 alpha 3 - but the case you are describing
should not occur in 5.2.8 either, so I'd appreciate further details on
your OS and platform.


Previous Comments:


[2009-01-01 02:04:47] ka...@php.net

Christian, you were working with some rounding issues in 5.3, could you
clarrify this?



[2008-12-31 02:00:39] gimmicklessgpt at gmail dot com

additional note: 

while 0.145 rounds to 0.14 (incorrect)
0.155 rounds to 0.16 (correct)



[2008-12-31 01:57:20] gimmicklessgpt at gmail dot com

Description:

When rounding, it will round incorrectly on one certain instance for
sure. when rounding 0.145 with a precision of 2 it comes up with 0.14

Reproduce code:
---
echo round(0.145,2);

Expected result:

0.15

Actual result:
--
0.14





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



Bug #15690 Updated: $PHP_SELF empty

2002-02-24 Thread cseiler

 ID:   15690
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Windows 2000
 PHP Version:  4.1.1
 New Comment:

I've got a workaround for this problem, that seems to work perfectly:

1. Create a file somewhere, e.g. c:\self_fix.php
2. Insert to following content:
 
   (This will create a 'new' variable $PHP_SELF by pasting $SERVER_URL
   and $SCRIPT_NAME together)
3. Close and save the file. Now open your php.ini (probabely located
   in your C:\Windows-directoy).
4. Add the following lines to the [php] section:
 auto_prepend_file = c:\self_fix.php
 register_globals = on
   (These will prepend the file created above to every PHP-file called
   by the interpreter. The second line makes $PHP_SELF globally
available.)


Previous Comments:


[2002-02-23 12:07:19] [EMAIL PROTECTED]

Using PHP 4.1.1. (I downloaded the *.msi package) and Xitami 2.4d9 on
Windows 2000. $PHP_SELF seems not to be set. phpinfo() gives me an
empty field, in scripts it is not set at all. When I use PHP3
everything is okay. Who can I fix this? Does it work with the ZIP-file
(but it's 4 MB, phew, I'm a modem user)? Anybody got a solution?




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