Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:1879 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15181 invoked from network); 22 May 2003 10:04:37 -0000 Received: from unknown (HELO ananke.ferschmann.cz) (81.0.234.145) by pb1.pair.com with SMTP; 22 May 2003 10:04:37 -0000 Received: from localhost (localhost [127.0.0.1]) by ananke.ferschmann.cz (Postfix) with ESMTP id 3EE485A0A5 for ; Thu, 22 May 2003 12:04:37 +0200 (CEST) Received: from [10.1.0.2] (elara.home.ferschmann.cz [10.1.0.2]) by ananke.ferschmann.cz (Postfix) with ESMTP id 2A7EB5A097 for ; Thu, 22 May 2003 12:04:35 +0200 (CEST) To: internals@lists.php.net Content-Type: text/plain Organization: Message-ID: <1053597866.1679.4.camel@elara> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 22 May 2003 12:04:27 +0200 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030314-p1 (Debian) Subject: sizeof() != strlen() From: konference@ferschmann.cz (Petr Ferschmann) Hello, I want you let know that sizeof() is not strlen(). It is in macro INIT_CLASS_ENTRY. When I do this: char* name = "className"; INIT_CLASS_ENTRY(class_entry, name, function_entry); Then class_entry.name_length is 3 (pointer - 1). It works well when I use: char name[] = "className"; And I have dynamicaly created class types and can't use char[]. With regards