- fprintf($cpp_hnd, "#if defined(PHP_PECL_%s_VERSION)\n", $uname);
- fprintf($cpp_hnd, "PHP_PECL_%s_VERSION\n", $uname);
- fprintf($cpp_hnd, "#elif defined(PHP_%s_VERSION)\n", $uname);
- fprintf($cpp_hnd, "PHP_%s_VERSION\n", $uname);
- fprintf($cpp_hnd, "#elif defined(%s_VERSION)\n", $uname);
- fprintf($cpp_hnd, "%s_VERSION\n", $uname);
+ fprintf($cpp_hnd, "#if defined(PHP_PECL_%s_VERSION)\n", $uc_name);
+ fprintf($cpp_hnd, "PHP_PECL_%s_VERSION\n", $uc_name);
+ fprintf($cpp_hnd, "#elif defined(PHP_%s_VERSION)\n", $uc_name);
+ fprintf($cpp_hnd, "PHP_%s_VERSION\n", $uc_name);
+ fprintf($cpp_hnd, "#elif defined(%s_VERSION)\n", $uc_name);
+ fprintf($cpp_hnd, "%s_VERSION\n", $uc_name);