#31174 [NEW]: const compile warning in url.c
| From: | lukem at NetBSD dot org | Date: | Sat, 18 Dec 2004 03:09:13 +0000 |
| Subject: | #31174 [NEW]: const compile warning in url.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-70581@lists.php.net to get a copy of this message | ||
From: lukem at NetBSD dot org
Operating system: NetBSD
PHP version: 4.3.10
PHP Bug Type: Compile Warning
Bug description: const compile warning in url.c
Description:
------------
ext/standard/url.c::php_url_parse_ex() uses 'char *' pointers at various
places where 'char const *' (aka 'const char *') pointers should be used
instead. This causes problems when compiling php with a higher level of
compiler warnings.
The fix is trivial. Replace line 100 of ext/standard/url.c:
char *s, *e, *p, *pp, *ue;
with
char const *s, *e, *p, *pp, *ue;
--
Edit bug report at http://bugs.php.net/?id=31174&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31174&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31174&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31174&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31174&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31174&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31174&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31174&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31174&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31174&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31174&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31174&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31174&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31174&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31174&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31174&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31174&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31174&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31174&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31174&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31174&r=mysqlcfg