|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-02-22 12:28 UTC] info at gknw dot de
Description:
------------
Hi,
the compiler I have to use for producing a NetWare php_svn binary is very strict, and breaks with const char* type mismatch...
Reproduce code:
---------------
--- svn.c.orig Sun Feb 12 23:52:36 2006
+++ svn.c Sun Feb 12 23:59:30 2006
@@ -1942,7 +1942,7 @@
{
zval *ztxn;
struct php_svn_repos_fs_txn *txn;
- char *conflicts;
+ const char *conflicts;
svn_revnum_t new_rev;
svn_error_t *err;
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
Hi, now I've also succeeded with the Win32 binary which needed another include svn_utf.h which in turn caused me another type mismatch for NetWare...., argh! So the new complete patch which works on both NetWare and Win32 looks now: --- svn.c.orig Sun Feb 12 23:52:36 2006 +++ svn.c Sun Mar 19 19:51:02 2006 @@ -36,6 +36,7 @@ #include "svn_path.h" #include "svn_fs.h" #include "svn_repos.h" +#include "svn_utf.h" /* If you declare any globals in php_svn.h uncomment this: */ ZEND_DECLARE_MODULE_GLOBALS(svn) @@ -778,7 +779,7 @@ PHP_FUNCTION(svn_log) { - char *repos_url = NULL, *utf8_repos_url = NULL; + const char *repos_url = NULL, *utf8_repos_url = NULL; int repos_url_len; int revision = -2; svn_error_t *err; @@ -1942,7 +1943,7 @@ { zval *ztxn; struct php_svn_repos_fs_txn *txn; - char *conflicts; + const char *conflicts; svn_revnum_t new_rev; svn_error_t *err;