PHP 4.0 Bug #6461 Updated: Various warnings - not critical but might be helpful to improve the code
| From: | cahagn_o at epita dot fr | Date: | Thu, 30 Nov 2000 00:09:47 +0000 |
| Subject: | PHP 4.0 Bug #6461 Updated: Various warnings - not critical but might be helpful to improve the code | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39658@lists.php.net to get a copy of this message | ||
ID: 6461
User Update by: cahagn_o@epita.fr
Status: Open
Bug Type: Compile Warning
Description: Various warnings - not critical but might be helpful to improve the code
With latest snapshot 200011291245 and a simple ./configure,
I only get this warning:
php_mysql.c: In function `php_mysql_do_connect':
php_mysql.c:508: warning: cast from pointer to integer of
different size
It runs fine anyway. Might consider closing this bug report
as the MySQL code is not from the PHP team.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-01 06:30:42] cahagn_o@epita.fr
I remember testing snapshots from 2 weeks ago and some of the warnings had disappeared, the only
warnings left were 64-bit specific as I could reproduce them on an ia-64 platform with the latest
gcc.
However, I now face a new problem I never had, I still compile on the same platform with ./configure
--enable-sockets and get these warnings and a compile failure:
Making all in Zend
flex -Pzend -ozend_language_scanner.c -i ./zend_language_scanner.l
flex: unknown flag 'P'
*** Exit 1
Stop.
*** Exit 1
Stop.
This is with native flex version from Digital Unix 4.0
When I try flex 2.5.3, it passes this file but then, with changes in PATH, it's really hard to
switch with bison, gcc 2.8.1, etc. so it doesn't really compile. If I can get natve flex to
work, I might be able to compile it again.
But the point is that it worked before, through 4.0.3pl and 4.0.4-dev (when sockets.c was fixed) it
compiled out-of-the-box.
---------------------------------------------------------------------------
[2000-10-30 13:06:51] derick@php.net
Thx for this report, but is it possible that you try another build of the new PHP 4.0.3pl1 and see
if these warnings still occur? The files have change so much that's not easily found.
---------------------------------------------------------------------------
[2000-08-31 07:21:40] cahagn_o@epita.fr
Sorry for the OS mismatch, I changed the OS to the real OS
Digital Unix 4.0.
---------------------------------------------------------------------------
[2000-08-31 07:12:26] cahagn_o@epita.fr
Hi,
OS: Digital Unix v.4.0 (64-bit)
gcc: 2.7.2.3
This is with PHP 4.0.2 final release.
simple configure line: ./configure
Here're are the various warnings:
php_ini.c: In function `php_ini_refresh_caches':
php_ini.c:165: warning: cast to pointer from integer of
different size
php_virtual_cwd.c: In function `virtual_getcwd':
php_virtual_cwd.c:228: warning: passing arg 1 of
`virtual_getcwd_ex' from incompatible pointer type
php_mysql.c: In function `php_mysql_do_connect':
php_mysql.c:498: warning: cast from pointer to integer of
different size
dl.c:91: warning: `IS_SLASH' redefined
/nfs/s3/space/users/a3/cahagn_o/fichiers/php-4.0.2/main/php_virtual_cwd.h:54:
warning: this is the location of the previous definition
file.c: In function `php_passthru_fd':
file.c:1451: warning: comparison between pointer and integer
(I cannot go further because of lack of processes for my
user on this machine :)
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6461