Skip to content

Commit ae22fe4

Browse files
committed
- Update .dsp's
- Fix a possible crash bug in failed file open error message - Fix SAPI initialization issue that could lead to a crash
1 parent a0f2e9b commit ae22fe4

File tree

5 files changed

+12
-30
lines changed

5 files changed

+12
-30
lines changed

ext/imap/imap.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ void imap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
838838
Open an IMAP stream to a mailbox */
839839
PHP_FUNCTION(imap_open)
840840
{
841-
return imap_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
841+
imap_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
842842
}
843843
/* }}} */
844844

@@ -2583,6 +2583,7 @@ PHP_FUNCTION(imap_utf7_decode)
25832583
case ST_DECODE0:
25842584
state++;
25852585
case ST_NORMAL:
2586+
;
25862587
}
25872588
}
25882589
}
@@ -2639,6 +2640,7 @@ PHP_FUNCTION(imap_utf7_decode)
26392640
*outp++ |= UNB64(*inp);
26402641
state = ST_DECODE0;
26412642
case ST_NORMAL:
2643+
;
26422644
}
26432645
}
26442646
}
@@ -2765,6 +2767,7 @@ PHP_FUNCTION(imap_utf7_encode)
27652767
*outp++ = B64(*inp++);
27662768
state = ST_ENCODE0;
27672769
case ST_NORMAL:
2770+
;
27682771
}
27692772
}
27702773
}

ext/imap/imap.dsp

+4-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/mysql/php_mysql.h

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
#endif
3535

3636
#if HAVE_MYSQL
37-
#ifndef DLEXPORT
38-
#define DLEXPORT
39-
#endif
4037

4138
#ifdef __ZTS
4239
#include "TSRM.h"

ext/pgsql/pgsql.dsp

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main/SAPI.c

+2
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ SAPI_API void sapi_activate(SLS_D)
202202
sapi_module.sapi_error(E_COMPILE_ERROR, "No content-type in POST request");
203203
}
204204
sapi_read_post_data(SLS_C);
205+
} else {
206+
SG(request_info).content_type_dup = NULL;
205207
}
206208
SG(request_info).cookie_data = sapi_module.read_cookies(SLS_C);
207209
if (sapi_module.activate) {

0 commit comments

Comments
 (0)