<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating Global Symbol In PHP? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306354#M44818</link>
    <description>Looks like it :-&lt;BR /&gt;&lt;BR /&gt;function_entry openvms_functions[] = {&lt;BR /&gt; PHP_FE(openvms_cvt_filename, NULL)&lt;BR /&gt; PHP_FE(openvms_getdvi, NULL)&lt;BR /&gt; PHP_FE(openvms_getjpi, NULL)&lt;BR /&gt; PHP_FE(openvms_getsyi, NULL)&lt;BR /&gt; PHP_FE(openvms_message, NULL)&lt;BR /&gt; PHP_FE(openvms_status, NULL)&lt;BR /&gt; PHP_FE(openvms_time, NULL)&lt;BR /&gt; PHP_FE(openvms_uptime, NULL)&lt;BR /&gt; {NULL, NULL, NULL}&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;I think the logical translation is probably more transparent than running the command file, but both require code changes.&lt;BR /&gt;&lt;BR /&gt;Looking at the size and complexity of the existing functions, it would probably be very easy to add a DCL Symbol routine, but plugging anything into the current version and trying to compile it seems to be a minefield!&lt;BR /&gt;&lt;BR /&gt;Lets hope the v5 release has some extra VMS functionality to it.&lt;BR /&gt;&lt;BR /&gt;Rob.</description>
    <pubDate>Fri, 14 Nov 2008 16:16:31 GMT</pubDate>
    <dc:creator>Robert Atkinson</dc:creator>
    <dc:date>2008-11-14T16:16:31Z</dc:date>
    <item>
      <title>Creating Global Symbol In PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306351#M44815</link>
      <description>I'm trying to create a global symbol in a PHP program, like this :-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It looks like the exec() creates it's own context, as I can't see anything when I do $ show symbol test_var.&lt;BR /&gt;&lt;BR /&gt;Anyone know of a way to create a symbol available back at DCL?&lt;BR /&gt;&lt;BR /&gt;BTW, I already know I can do $ DEFINE/JOB TEST_VAR value instead, but I want this to be compatible with existing procedures :)&lt;BR /&gt;&lt;BR /&gt;Rob.</description>
      <pubDate>Fri, 14 Nov 2008 13:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306351#M44815</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2008-11-14T13:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Global Symbol In PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306352#M44816</link>
      <description>Last solution : write it to a file and @ the file before you need the value ?&lt;BR /&gt;&lt;BR /&gt;The openvms extentions I have don't mention anything about symbols.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Nov 2008 15:53:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306352#M44816</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2008-11-14T15:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Global Symbol In PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306353#M44817</link>
      <description>This looks to be the php variant of the classic DCL spawn "where'd my symbols go?" question; spawn gets you a new process context, and symbols and process logical names don't come back to the parent from that subprocess.&lt;BR /&gt;&lt;BR /&gt;I don't see a PEAR package or such that matches DCL or OpenVMS or VMS over at php.net, and I don't see a listing of what's in the CSWS_PHP package.  (The specific implementation of the php_openvms pieces inside that should give you a start, if there's not a solution there for you already.)&lt;BR /&gt;&lt;BR /&gt;If you end up writing (or extending) the php_openvms pieces, that should be able to give you access to lib$set_symbol or such; the calls that are needed to modify the DCL symbol tables (or process logical name tables, via lib$set_logical) in the current process context.</description>
      <pubDate>Fri, 14 Nov 2008 16:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306353#M44817</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-11-14T16:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Global Symbol In PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306354#M44818</link>
      <description>Looks like it :-&lt;BR /&gt;&lt;BR /&gt;function_entry openvms_functions[] = {&lt;BR /&gt; PHP_FE(openvms_cvt_filename, NULL)&lt;BR /&gt; PHP_FE(openvms_getdvi, NULL)&lt;BR /&gt; PHP_FE(openvms_getjpi, NULL)&lt;BR /&gt; PHP_FE(openvms_getsyi, NULL)&lt;BR /&gt; PHP_FE(openvms_message, NULL)&lt;BR /&gt; PHP_FE(openvms_status, NULL)&lt;BR /&gt; PHP_FE(openvms_time, NULL)&lt;BR /&gt; PHP_FE(openvms_uptime, NULL)&lt;BR /&gt; {NULL, NULL, NULL}&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;I think the logical translation is probably more transparent than running the command file, but both require code changes.&lt;BR /&gt;&lt;BR /&gt;Looking at the size and complexity of the existing functions, it would probably be very easy to add a DCL Symbol routine, but plugging anything into the current version and trying to compile it seems to be a minefield!&lt;BR /&gt;&lt;BR /&gt;Lets hope the v5 release has some extra VMS functionality to it.&lt;BR /&gt;&lt;BR /&gt;Rob.</description>
      <pubDate>Fri, 14 Nov 2008 16:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306354#M44818</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2008-11-14T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Global Symbol In PHP?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306355#M44819</link>
      <description>In fact, it's probably as easy as this :-&lt;BR /&gt;&lt;BR /&gt;#ifdef __VMS&lt;BR /&gt;struct  dsc$descriptor_s  symbol_name_desc;&lt;BR /&gt;struct  dsc$descriptor_s  symbol_value_desc;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;symbol_name_desc.dsc$w_length = strlen("ICALC_OUT");&lt;BR /&gt;symbol_name_desc.dsc$a_pointer =  "ICALC_OUT";&lt;BR /&gt;symbol_name_desc.dsc$b_class =  DSC$K_CLASS_S;&lt;BR /&gt;symbol_name_desc.dsc$b_dtype =  DSC$K_DTYPE_T;&lt;BR /&gt;&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#ifdef __VMS&lt;BR /&gt;  symbol_value_desc.dsc$w_length = strlen(symbol_value);&lt;BR /&gt;  symbol_value_desc.dsc$a_pointer =  symbol_value;&lt;BR /&gt;  symbol_value_desc.dsc$b_class =  DSC$K_CLASS_S;&lt;BR /&gt;  symbol_value_desc.dsc$b_dtype =  DSC$K_DTYPE_T;&lt;BR /&gt;  LIB$SET_SYMBOL(&amp;amp;symbol_name_desc,&amp;amp;symbol_value_desc);&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(Caught Hoff's post after I wrote this!)</description>
      <pubDate>Fri, 14 Nov 2008 16:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/creating-global-symbol-in-php/m-p/4306355#M44819</guid>
      <dc:creator>Robert Atkinson</dc:creator>
      <dc:date>2008-11-14T16:21:12Z</dc:date>
    </item>
  </channel>
</rss>

