[PHP-DEV] Redefinition of strnlen in PHP 5.3 head

2009-01-01 Thread Bernhard Schmalhofer

Hi,

after syncing with PHP 5.3 head I have a problem with compiling under Linux.
After the first failure I went through a 'make distclean; ./configure; 
make' - cycle,

but got the same failure:

bernh...@heist:~/devel/PHP/php5$ cvs status main/spprintf.c
===
File: spprintf.cStatus: Up-to-date

  Working revision:1.25.2.2.2.10.2.6
  Repository revision: 1.25.2.2.2.10.2.6   
/repository/php-src/main/spprintf.c,v

  Sticky Tag:  PHP_5_3 (branch: 1.25.2.2.2.10.2)
  Sticky Date: (none)
  Sticky Options:  (none)

bernh...@heist:~/devel/PHP/php5$ make
/bin/bash /home/bernhard/devel/PHP/php5/libtool --silent 
--preserve-dup-deps --mode=compile gcc  -Imain/ 
-I/home/bernhard/devel/PHP/php5/main/ -DPHP_ATOM_INC 
-I/home/bernhard/devel/PHP/php5/include 
-I/home/bernhard/devel/PHP/php5/main -I/home/bernhard/devel/PHP/php5 
-I/home/bernhard/devel/PHP/php5/ext/ereg/regex -I/usr/include/libxml2 
-I/home/bernhard/devel/PHP/php5/ext/date/lib 
-I/home/bernhard/devel/PHP/php5/ext/sqlite3/libsqlite 
-I/home/bernhard/devel/PHP/php5/TSRM 
-I/home/bernhard/devel/PHP/php5/Zend-I/usr/include -g -O2 
-fvisibility=hidden  -c /home/bernhard/devel/PHP/php5/main/spprintf.c -o 
main/spprintf.lo
/home/bernhard/devel/PHP/php5/main/spprintf.c:186: error: static 
declaration of 'strnlen' follows non-static declaration

/usr/include/string.h:249: error: previous declaration of 'strnlen' was here
make: *** [main/spprintf.lo] Fehler 1
bernh...@heist:~/devel/PHP/php5$ uname -a
Linux heist 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 
GNU/Linux

bernh...@heist:~/devel/PHP/php5$ gcc --version
gcc (Ubuntu 4.3.2-1ubuntu11) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE 
ZWECKE.


bernh...@heist:~/devel/PHP/php5$


Regards,
  Bernhard

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Redefinition of strnlen in PHP 5.3 head

2009-01-01 Thread Bernhard Schmalhofer

Antony Dovgal schrieb:

On 01.01.2009 18:03, Bernhard Schmalhofer wrote:
  

Hi,

after syncing with PHP 5.3 head I have a problem with compiling under Linux.
After the first failure I went through a 'make distclean; ./configure; 
make' - cycle,

but got the same failure:



./cvsclean && ./buildconf

  

Thanks,

that did the trick. Sorry for the newbie question.

Regards,
  Bernhard

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] RFC: Namespace declaration with leading backslash

2009-01-16 Thread Bernhard Schmalhofer

Hi,

I was looking at namespaces in PHP 5.3, 
http://de3.php.net/manual/en/language.namespaces.definition.php.
There I found myself wondering  why a leading backslash in namespace 
declaration

is not allowed. For example:




I image that a trailing backslash could become a common programming error,
especially as it is required when refering to symbols with their 
absolute name.




Best regards,
  Bernhard Schmalhofer





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php