Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Aug 21, 2024
1 parent b5d618c commit 85419ad
Show file tree
Hide file tree
Showing 4 changed files with 14,551 additions and 117 deletions.
225 changes: 110 additions & 115 deletions ext/bongo.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,125 +45,120 @@ PHP_FUNCTION(test2)

PHP_FUNCTION(test3)
{
const char *var = "World";
zend_string *retval;
ZEND_PARSE_PARAMETERS_NONE();

#if defined(ZTS)
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
#else

retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
retval = strpprintf(0, "Hello %s", var);
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
php_printf("The extension %s is loaded and working!\r\n", "bongo");
#endif

retval = strpprintf(0, "Hello %s", var);

RETURN_STR(retval);
php_printf("The extension %s is loaded and working!\r\n", "bongo");
}

/* {{{ PHP_RINIT_FUNCTION */
Expand Down
60 changes: 60 additions & 0 deletions ext/config.h.in~
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* config.h.in. Generated from configure.ac by autoheader. */

/* Whether to build bongo as dynamic module */
#undef COMPILE_DL_BONGO

/* Have bongo support */
#undef HAVE_BONGO

/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H

/* Define to 1 if you have the <stdio.h> header file. */
#undef HAVE_STDIO_H

/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H

/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H

/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H

/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H

/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

/* Define to the address where bug reports for this package should be sent. */
/* #undef PACKAGE_BUGREPORT */

/* Define to the full name of this package. */
/* #undef PACKAGE_NAME */

/* Define to the full name and version of this package. */
/* #undef PACKAGE_STRING */

/* Define to the one symbol short name of this package. */
/* #undef PACKAGE_TARNAME */

/* Define to the home page for this package. */
/* #undef PACKAGE_URL */

/* Define to the version of this package. */
/* #undef PACKAGE_VERSION */

/* Define to 1 if all of the C90 standard headers exist (not just the ones
required in a freestanding environment). This macro is provided for
backward compatibility; new code need not use it. */
#undef STDC_HEADERS
Loading

0 comments on commit 85419ad

Please sign in to comment.