[xdebug-dev] svn: /xdebug/trunk/ xdebug.c

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Thu, 31 Dec 2009 15:21:08 +0000

derick Thu, 31 Dec 2009 15:21:08 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=3184

Log:
- Use workaround for Windows which lacks memrchr().
#- Patch by Pierre.

Changed paths:
    U xdebug/trunk/xdebug.c

Modified: xdebug/trunk/xdebug.c
===================================================================
--- xdebug/trunk/xdebug.c 2009-12-31 15:20:42 UTC (rev 3183)
+++ xdebug/trunk/xdebug.c 2009-12-31 15:21:08 UTC (rev 3184)
@@ -2689,7 +2689,7 @@
                                 /* find first new line */
                                 p = strchr(buffer, '\n');
                                 /* find last quote */
- p = memrchr(buffer, '\'', p - buffer) + 1;
+ p = ((char *) zend_memrchr(buffer, '\'', p - buffer)) + 1;
                                 /* Create new buffer */
                                 tmp_buf = calloc(p - buffer + 1, 1);
                                 strncpy(tmp_buf, buffer, p - buffer );
Received on Thu Dec 31 2009 - 15:21:08 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST