}
break;
+ case M_JFIF:
+ /* Regular jpegs always have this tag, exif images have the
+ * exif marker instead, althogh ACDsee will write images with
+ * both markers. this program will re-create this marker on
+ * absence of exif marker. Hence no need to keep the copy
+ * from the file. */
+ efree(Sections[--(*SectionsRead)].Data);
+ break;
case M_SOF0:
case M_SOF1:
Return a string to confirm that the module is compiled in */
PHP_FUNCTION(confirm_extname_compiled)
{
- zval **arg;
- int len;
+ char *arg = NULL;
+ int arg_len, len;
char string[256];
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
- ZEND_WRONG_PARAM_COUNT();
- }
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &arg, &arg_len) == FAILURE)
+ return;
- convert_to_string_ex(arg);
-
- len = sprintf(string, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", Z_STRVAL_PP(arg));
+ len = sprintf(string, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg);
RETURN_STRINGL(string, len, 1);
}
/* }}} */
<?
+if(!extension_loaded('extname')) {
+ dl('extname.so');
+}
$module = 'extname';
+$functions = get_extension_funcs($module);
+echo "Functions available in the test extension:<br>\n";
+foreach($functions as $func) {
+ echo $func."<br>\n";
+}
+echo "<br>\n";
$function = 'confirm_' . $module . '_compiled';
if (extension_loaded($module)) {
$str = $function($module);