Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103646 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46018 invoked from network); 28 Dec 2018 15:40:40 -0000 Received: from unknown (HELO mail-yb1-f171.google.com) (209.85.219.171) by pb1.pair.com with SMTP; 28 Dec 2018 15:40:40 -0000 Received: by mail-yb1-f171.google.com with SMTP id e1so3765734ybn.11 for ; Fri, 28 Dec 2018 04:12:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:date:from:to:subject :message-id:user-agent; bh=CUbkWh2MZF57WoFwzdqB1lCOcIh2GqH4OhOxkqzk0r4=; b=QUUJsW5tF1Fhwxleq/7+SKGa9ABI6t2fqX2cyLLFPc5hqY0+qwwiTLkaQknl1AwylU hv2mHjPDeLBkFvmNdUYvVHB+tFwMaklFpbGYXFjxD2WVnJkfHdWnWhO621ySGB8HBLbD cwVFpoFXzmW/PZC5H5jLteko4jrt4my4uWOdpWDuzccoRIM3k/TzNwBFsb4ky2MoCRQA YFlJjXQoPYA9wdqWfxcRO0qbjLeCSakT0R02SFAsd8x6bCMXzbiboHkMBotmeK9mW515 FqFSP2z3+uoCEMTHrpZ0PvLLR362HRw3SypYkQWKEHnAf5bEuMA2hW2tn9vKw/U9f+LP +OrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:date:from :to:subject:message-id:user-agent; bh=CUbkWh2MZF57WoFwzdqB1lCOcIh2GqH4OhOxkqzk0r4=; b=BGqYPaFLDsojaALAnssFlH8Qid36wUau6WlO1NrjkYk8hgtpkmnRuRn8m9iru7unX+ s1gCV/ZO9zWhlL5D2qURYpdP8Q4Bd/ytkqicmC2+hd7mYbKqmh7bnF1knFzP0VR0UGMD xgXjaokK1T5QSHHXBZ0Etv5vs/hea0aBtiFAGkrJmFTtSVKw/YcJgrbFkqFzJuQLTzn1 Re5zrZ3l/oIV+HslkGudQPCimJvEL+olwe5HHeJYynIL1dcBUifTQfGmuheijwCWPj2m WwM3DUiSx9gklb6FDamO/G7U6AyktRsTsa/FAeA+vs4EXnwi7OBHQJ5PD+V1tl08D57L FGTg== X-Gm-Message-State: AA+aEWZD1mWLazuLi/pHLO+0/2oANNv9yjDGMIMcitj+u4JENxy87hup pcI9BwoM2yUBXTu8jVRqj6b6Zkwi X-Google-Smtp-Source: ALg8bN5gMD39qBthMk3VWBI5n2b5i3VHyqCzvkPByzuXnERx3gZTWI4P11o/O38axzxvHZXxUl6A4Q== X-Received: by 2002:a25:60a:: with SMTP id 10-v6mr27787409ybg.139.1545999122472; Fri, 28 Dec 2018 04:12:02 -0800 (PST) Received: from k-piste.fi (k-piste.fi. [178.62.210.197]) by smtp.gmail.com with ESMTPSA id t129sm11701607ywe.11.2018.12.28.04.12.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Dec 2018 04:12:01 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 28 Dec 2018 14:11:59 +0200 To: internals Message-ID: <603603454c2012e00554a7ce6fe18b86@gmail.com> X-Sender: lauri.kentta@gmail.com User-Agent: Roundcube Webmail/1.3.8 Subject: Bug or not: accel_init_interned_string_for_php returns non-interned strings From: lauri.kentta@gmail.com (=?UTF-8?Q?Lauri_Kentt=C3=A4?=) I'm investigating the various segfault bugs in PHP 7.3.0. I was looking at ext/opcache/ZendAccelerator.c:545 and :552, where accel_init_interned_string_for_php returns normal strings instead of interned strings. As I understand it, there could be (buggy) code which frees a string prematurely (possible with normal string but would not happen with interned), causing corruption. Is this a bug or just some Zend quirk? -- Lauri Kenttä