]> granicus.if.org Git - php/commit
Fix escapes for namespaced classes in gen_stub.php
authorTyson Andre <tysonandre775@hotmail.com>
Fri, 23 Aug 2019 01:14:00 +0000 (21:14 -0400)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 23 Aug 2019 10:29:55 +0000 (12:29 +0200)
commit0c09089cafeb8a540986fa0a9dfe6c408508e946
treef7619e8f937ec72333163e8187a49703237ff60b
parent9b227640c162bf5de05d1105b58aa5c94e7e7272
Fix escapes for namespaced classes in gen_stub.php

Fix the string generated when the `ns\class` is passed to a macro

    #define ESCAPE(x) #x
    // puts(ESCAPE(ns\class));  // warning: unknown escape sequence: \c
    puts(ESCAPE(ns\\class));  // Properly prints ns\class to stdout.
scripts/dev/gen_stub.php