Comments (3)
This is full report of warnings errors when trying to build suhosin with visual studio 2008 and php 5.3 sources:
ext\suhosin\execute.c(169) : warning C4018: '<=' : signed/unsigned mismatch
ext\suhosin\header.c(212) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\execute.c(169) : warning C4018: '>=' : signed/unsigned mismatch
ext\suhosin\execute.c(212) : warning C4018: '<=' : signed/unsigned mismatch
ext\suhosin\execute.c(212) : warning C4018: '>=' : signed/unsigned mismatch
ext\suhosin\execute.c(1090) : warning C4033: 'ih_function_exists' must return a value
ext\suhosin\execute.c(1321) : warning C4293: '>>' : shift count negative or too big, undefined behavior
ext\suhosin\execute.c(1322) : warning C4293: '>>' : shift count negative or too big, undefined behavior
ext\suhosin\execute.c(1323) : warning C4293: '>>' : shift count negative or too big, undefined behavior
ext\suhosin\execute.c(1334) : warning C4244: '=' : conversion from 'double' to 'php_uint32', possible loss of data
ext\suhosin\execute.c(1347) : warning C4133: 'function' : incompatible types - from 'php_uint32 ' to 'unsigned char *'
ext\suhosin\execute.c(1319) : warning C4101: 'fd' : unreferenced local variable
ext\suhosin\execute.c(1504) : warning C4033: 'ih_getrandmax' must return a value
ext\suhosin\execute.c(1139) : warning C4715: 'ih_function_exists' : not all control paths return a value
ext\suhosin\execute.c(1515) : warning C4715: 'ih_getrandmax' : not all control paths return a value
ext\suhosin\ifilter.c(417) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(425) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(433) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(441) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(459) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(465) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(473) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(479) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(487) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(493) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(501) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(507) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(526) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(534) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(542) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(550) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(564) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(572) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(580) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ifilter.c(588) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\log.c(242) : warning C4013: 'gettimeofday' undefined; assuming exter
ext\suhosin\log.c(89) : warning C4101: 's' : unreferenced local variable
ext\suhosin\log.c(89) : warning C4101: 'r' : unreferenced local variable
ext\suhosin\post_handler.c(170) : error C2065: 'tsrm_ls' : undeclared identifier
ext\suhosin\post_handler.c(173) : error C2065: 'tsrm_ls' : undeclared identifier
ext\suhosin\session.c(387) : warning C4244: '=' : conversion from 'long' to 'cha
ext\suhosin\session.c(547) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'char ()[4]'
ext\suhosin\session.c(547) : warning C4024: 'suhosin_get_ipv4' : different types for formal and actual parameter 1
ext\suhosin\session.c(647) : warning C4018: '>' : signed/unsigned mismatch
ext\suhosin\session.c(691) : warning C4018: '>' : signed/unsigned mismatch
ext\suhosin\session.c(734) : warning C4018: '>' : signed/unsigned mismatch
ext\suhosin\session.c(864) : warning C4090: '=' : different 'const' qualifiers
ext\suhosin\session.c(799) : warning C4101: 'ps_globals_id_ptr' : unreferenced local variable
ext\suhosin\rfc1867.c(1103) : warning C4018: '>' : signed/unsigned mismatch
ext\suhosin\rfc1867.c(1108) : warning C4018: '>' : signed/unsigned mismatch
ext\suhosin\ufilter.c(106) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ufilter.c(112) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ufilter.c(118) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ufilter.c(124) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ufilter.c(141) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ufilter.c(147) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ufilter.c(159) : warning C4018: '<' : signed/unsigned mismatch
ext\suhosin\ufilter.c(165) : warning C4018: '<' : signed/unsigned mismatch
from suhosin.
Hello,
I've also spotted that there is an unhook that isn't called ( suhosin_unhook_session )
I've done the following patch which, I believe, fixes the build issues, calls suhosin_unhook_session, and fixes a comment in session.c
from suhosin.
ZTS build is fixed in GIT HEAD
Some compile warnings have been fixed
suhosin_unhook_session() is not called intentionally, because it caused problems depending on extension load order.
from suhosin.
Related Issues (20)
- Handling cookies set on clientside when using encryption HOT 4
- Incompatibility with pcs ext. HOT 3
- Disable or uninstall Suhosin? 404 for everything HOT 1
- Loadable extension for HHVM HOT 1
- Too long syslog line HOT 2
- Ini section HOT 4
- filter HTTP_PROXY HOT 2
- disable URL-based sessions HOT 5
- suhosin should not restrict on cli access HOT 4
- Revive the php < 5.4 support HOT 6
- View log in system with systemd HOT 1
- Segmentation fault with enabled suhosin HOT 1
- http://download.suhosin.org is not acting properly HOT 1
- /suhosin.c:35:10: fatal error: 'php_logos.h' file not found HOT 1
- Apache24 segfault when OPcache + Suhosin are enabled HOT 6
- HTTPS certificate expired on suhosin.org HOT 3
- Repository key expired HOT 2
- ini priority for debian/ubuntu HOT 1
- PHP 5.6 with empty POST array HOT 7
- Need to disable suhosin for one Directory ( live chat ) HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suhosin.