result = (struct gfxinfo *) ecalloc(1, sizeof(struct gfxinfo));
- // loop chunks to find BMHD chunk
+ /* loop chunks to find BMHD chunk */
do {
if (php_stream_read(stream, a, 8) != 8) {
efree(result);
if ((size & 1) == 1) {
size++;
}
- if (chunkId == 0x424d4844) { // BMHD chunk
+ if (chunkId == 0x424d4844) { /* BMHD chunk */
if (php_stream_read(stream, a, 9) != 9) {
efree(result);
return NULL;
dwWindowsMajorVersion, dwWindowsMinorVersion);
php_uname = tmp_uname;
} else if (mode == 'n') {
- // XXX HOW TO GET THIS ON WINDOWS?
+ /* XXX HOW TO GET THIS ON WINDOWS? */
php_uname = "localhost";
} else if (mode == 'v') {
dwBuild = (DWORD)(HIWORD(dwVersion));
snprintf(tmp_uname, sizeof(tmp_uname), "build %d", dwBuild);
php_uname = tmp_uname;
} else if (mode == 'm') {
- // XXX HOW TO GET THIS ON WINDOWS?
+ /* XXX HOW TO GET THIS ON WINDOWS? */
php_uname = "i386";
- } else { // assume mode == 'a'
+ } else { /* assume mode == 'a' */
/* Get build numbers for Windows NT or Win95 */
if (dwVersion < 0x80000000){
dwBuild = (DWORD)(HIWORD(dwVersion));
php_uname = buf.version;
} else if (mode == 'm') {
php_uname = buf.machine;
- } else { // assume mode == 'a'
+ } else { /* assume mode == 'a' */
snprintf(tmp_uname, sizeof(tmp_uname), "%s %s %s %s %s",
buf.sysname, buf.nodename, buf.release, buf.version,
buf.machine);
php_info_print_table_row(2, "Registered PHP Streams", stream_protocols_buf);
efree(stream_protocols_buf);
} else {
- // Any chances we will ever hit this?
+ /* Any chances we will ever hit this? */
php_info_print_table_row(2, "Registered PHP Streams", "no streams registered");
}
} else {
- // Any chances we will ever hit this?
- php_info_print_table_row(2, "PHP Streams", "disabled"); // ??
+ /* Any chances we will ever hit this? */
+ php_info_print_table_row(2, "PHP Streams", "disabled"); /* ?? */
}
}
self->mode = mode;
stream = php_stream_alloc(&php_stream_temp_ops, self, 0, "rwb");
self->innerstream = php_stream_memory_create(mode);
-// php_stream_temp_write(stream, NULL, 0 TSRMLS_CC);
+/* php_stream_temp_write(stream, NULL, 0 TSRMLS_CC); */
return stream;
}
/* }}} */