Re: [PHP-DEV] Cast trap with INI entries compiling C++ extension

2011-10-03 Thread Olivier Favre
I finally managed to submit the patch... I used iceweasel 6.0.2 instead of Google Chrome 14.0.835.186... or maybe the captcha was just in a better mood! The link to the bug report: https://bugs.php.net/bug.php?id=55835 Yours, -- Olivier Favre Software engineer Yakaz www.yakaz.com 2011/9/30

Re: [PHP-DEV] Cast trap with INI entries compiling C++ extension

2011-09-30 Thread Olivier Favre
. If the target fields were const char*, no compilation warning would be rose. - - - Solve the problem 17 + 23 = ?: 40 (I even checked the answer using a calculator) Submit: Send bug report (I'm going mad, really...) -- Olivier Favre Software engineer Yakaz www.yakaz.com --- zend_ini.

Re: [PHP-DEV] Cast trap with INI entries compiling C++ extension

2011-09-29 Thread Olivier Favre
s what, it is a char* too. Other fields of the structure are set to const char* though. Conclusion: I thing const char * should be used, for consistency. By compiling my extension, I didn't see any other warnings. Thanks, --- Olivier Favre Software engineer Yakaz http://www.yakaz.com 2011/9/

[PHP-DEV] Cast trap with INI entries compiling C++ extension

2011-09-29 Thread Olivier Favre
sizeof(NULL) for compatibility, but 0 should probably be a better value. I only tested that change with building my C++ PHP extension, whole PHP recompilation. Best, --- Olivier Favre Software engineer Yakaz http://www.yakaz.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php