[PATCH] Constification of some PHP API calls

From: Date: Mon, 29 Jul 2013 10:01:20 +0000
Subject: [PATCH] Constification of some PHP API calls
Groups: php.internals 
Request: Send a blank email to internals+get-68331@lists.php.net to get a copy of this message
Hi, after experiencing again warnings about conversion from const char * to char * when calling some PHP API functions I decided to spend some time and constify a few of these. The result is a patch that constifies the Streams API, and few functions in Zend and TSRM (to which I have no karma). Most of the changes are conversion of "char *" to "const char *" parameters, where applicable. In a few places string lengths are changed from int to size_t. Few functions return now "const char *" instead of "char *" (the caller did not modify/release these before). The patch is against php-src because it changes API which can be only done in a new version. Opinions? Best, Andrey

Attachment: [text/x-patch] php_api_constify.patch
« previous php.internals (#68331) next »