]> granicus.if.org Git - php/commitdiff
- Fix build
authorMarcus Boerger <helly@php.net>
Thu, 13 Mar 2008 19:43:14 +0000 (19:43 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 13 Mar 2008 19:43:14 +0000 (19:43 +0000)
ext/phar/phar_object.c

index c143e447f63e3790247c83bd0c97cb24904c2c34..1f912bed8c95887b5eef5cc8be269352b8f3a7cb 100755 (executable)
@@ -1144,7 +1144,11 @@ PHP_METHOD(Phar, __construct)
 #endif
        }
 
+#if PHP_VERSION_ID >= 60000
+       objname = phar_obj->std.ce->name.s;
+#else
        objname = phar_obj->std.ce->name;
+#endif
 
        if (phar_open_or_create_filename(fname, fname_len, alias, alias_len, objname, REPORT_ERRORS, &phar_data, &error TSRMLS_CC) == FAILURE) {