Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104370 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33203 invoked from network); 12 Feb 2019 19:38:25 -0000 Received: from unknown (HELO mail-qt1-f177.google.com) (209.85.160.177) by pb1.pair.com with SMTP; 12 Feb 2019 19:38:25 -0000 Received: by mail-qt1-f177.google.com with SMTP id a48so3612680qtb.4 for ; Tue, 12 Feb 2019 08:21:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YY7ahK0Ee3Dpk//0YEt4ryQdsNYl542hkoHSFz4HmuE=; b=SRYIEkY/MLSMskm0ealzDnujIhwMYuYwyUgk6roPymEmTpSAUw/Gq0D5LC83kJzMPh 9MTy6CqOVxtVqjCObOto8oO9g76RFTBlj3lse8vW4u3cHBV0dfB+BAZU79tiV9Qea3s9 jddtFpFpQ5O2Krify5ocHzXgLyFdqT7neB0bFqQLhGsUc7IhmhoJDGESbbRJcrLu8QG4 3+2jkqpaJjzMIQkd3wpX/CsJE5yC45/CTK8fTWIcBTSgWhYmGj4Jyym5dj/Xp/uLcKkk S8Qumv0kNco57NzWM68XnioJ452vk70xbtw0bd9pRjkvdwtbD7+JFBc1x59QeR7qsNjY 4WbA== X-Gm-Message-State: AHQUAuYy1sU4nxb7erRVvs++t093B/RonplYrtWDAEMeSZBLfUJaEOhq JoyEJDe3bDyeHqaR3FrBXd/+3kOX+M1X+BYX/gnpRA== X-Google-Smtp-Source: AHgI3Ib6AZVUsFud19JYSGqV+wE2FHmDPooFrLBc48E74eUrhISdGMv4RdQ/CrLFiW8wHGUMOHWjLKqZ3roCdC5oEo0= X-Received: by 2002:aed:3bd2:: with SMTP id s18mr3445041qte.353.1549988480392; Tue, 12 Feb 2019 08:21:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 12 Feb 2019 10:21:09 -0600 Message-ID: To: Nikita Popov Cc: Bishop Bettini , PHP internals Content-Type: multipart/alternative; boundary="000000000000c7b2ab0581b4d010" Subject: Re: [PHP-DEV] Convert ext/xml to use an object instead of resource From: pollita@php.net (Sara Golemon) --000000000000c7b2ab0581b4d010 Content-Type: text/plain; charset="UTF-8" On Tue, Feb 12, 2019 at 10:18 AM Nikita Popov wrote: > Very much opposed to any kind of special handling for is_resource(). We > used to do this for is_object() and __PHP_Incomplete_Class and I'm very > happy to be rid of this special behavior. Let's not add is back in a new > place. > Agreed. This is something that we discuss every time a resource->object conversion comes up and we always agree that special-casing lies the way of madness and the tiny fraction of user code that actually checks this can adapt `if (is_resource($x) || $x instanceof NewClassName)` Done and sorted. Let's skip this repeat of the past and move forward with the killing all resources with fire. -Sara --000000000000c7b2ab0581b4d010--